/* Modern Media Page Styles */

/* Page Background */
body {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf3 50%, #c3cfe2 100%);
    min-height: 100vh;
}

/* News Section Container */
#news {
    padding: 20px 0 60px 0;
}

#news .container {
    background: white;
    border-radius: 24px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.1);
    padding: 35px 40px 50px;
    margin-top: 10px;
}

/* Page Heading */
#news-heading {
    color: #1a237e;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    margin-top: 0;
    position: relative;
    display: inline-block;
    width: 100%;
}

#news-heading::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #3f51b5, #ff9800);
    border-radius: 2px;
}

/* Section intro */
.news-intro {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 30px;
    margin-top: 15px;
    padding: 0 15%;
}

/* News Cards Row */
#news .row {
    margin-bottom: 25px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

/* Card Column */
#news .row > .col {
    display: flex;
    margin-bottom: 20px;
}

/* Modern Card Styling */
#news .card {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.04);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    background: white;
    width: 100%;
}

#news .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(63, 81, 181, 0.15);
}

/* Card Content */
#news .card .card-content {
    padding: 25px 25px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Card Date/Title */
#news .card .card-title {
    color: #3f51b5 !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px !important;
    padding-bottom: 12px;
    border-bottom: 2px solid #e8eaf6;
    display: flex;
    align-items: center;
    gap: 8px;
}

#news .card .card-title::before {
    content: '📰';
    font-size: 1.1rem;
}

/* Card Text */
#news .card .card-content p {
    color: #444;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 8px;
}

#news .card .card-content p:last-of-type {
    margin-bottom: 0;
}

/* Card Action */
#news .card .card-action {
    background: linear-gradient(135deg, #f8f9ff 0%, #e8eaf6 100%);
    padding: 15px 25px;
    border-top: none;
}

#news .card .card-action a {
    color: #3f51b5 !important;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

#news .card .card-action a::after {
    content: '→';
    transition: transform 0.3s ease;
}

#news .card .card-action a:hover {
    color: #1a237e !important;
}

#news .card .card-action a:hover::after {
    transform: translateX(5px);
}

/* Modal Styling */
#news .modal {
    border-radius: 20px;
    max-width: 90%;
    max-height: 90%;
    overflow: hidden;
}

#news .modal .content {
    padding: 0;
}

#news .modal .content img {
    width: 100%;
    height: auto;
    display: block;
}

/* Hero/Banner - Hidden */
#banner.media {
    display: none;
}

/* Animation for cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#news .card {
    animation: fadeInUp 0.6s ease-out both;
}

#news .row:nth-child(1) .col:nth-child(1) .card { animation-delay: 0.1s; }
#news .row:nth-child(1) .col:nth-child(2) .card { animation-delay: 0.2s; }
#news .row:nth-child(1) .col:nth-child(3) .card { animation-delay: 0.3s; }
#news .row:nth-child(2) .col:nth-child(1) .card { animation-delay: 0.4s; }
#news .row:nth-child(2) .col:nth-child(2) .card { animation-delay: 0.5s; }
#news .row:nth-child(2) .col:nth-child(3) .card { animation-delay: 0.6s; }
#news .row:nth-child(3) .col:nth-child(1) .card { animation-delay: 0.7s; }
#news .row:nth-child(3) .col:nth-child(2) .card { animation-delay: 0.8s; }

/* Card hover effect - subtle glow */
#news .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(63, 81, 181, 0.05) 0%, rgba(255, 152, 0, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 16px;
    pointer-events: none;
}

#news .card:hover::before {
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    #news .container {
        padding: 30px 25px;
        margin: 10px;
        border-radius: 16px;
    }
    
    #news-heading {
        font-size: 2rem;
    }
    
    .news-intro {
        padding: 0 5%;
    }
}

@media (max-width: 600px) {
    #news .container {
        padding: 25px 20px;
    }
    
    #news .card .card-content {
        padding: 20px;
    }
    
    #news .card {
        min-height: 250px;
    }
    
    #news .row > .col {
        width: 100%;
    }
    
    #banner.media::after {
        font-size: 1.8rem;
    }
}

/* News Icon Decoration */
.news-icon {
    text-align: center;
    margin-bottom: 5px;
}

.news-icon i {
    font-size: 48px;
    background: linear-gradient(135deg, #3f51b5 0%, #5c6bc0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Shift June 2018 card to the left */
.june-2018-card {
    transform: translateX(-40%) !important;
}
