/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #041c2c;
    color: #ffffff;
    padding-bottom: 90px; /* Space for the sticky player */
}

/* Typography & Colors */
:root {
    --accent: #00d2ff; /* Vibrant Red/Pink */
    --dark-bg: #0b3954;
    --light-text: #e0f2fe;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background-color: rgba(4, 28, 44, 0.95);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 24px;
    font-weight: 800;
}

.logo span {
    color: var(--accent);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
    background: linear-gradient(rgba(4, 28, 44, 0.8), rgba(11, 57, 84, 0.8)), url('images/nustfm.jpg') center/cover;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin: 15px 0;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--light-text);
    margin-bottom: 30px;
}

.live-badge {
    background-color: rgba(255, 0, 0, 0.982);
    color: var(--accent);
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.live-dot {
    font-size: 0.6rem;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}

.btn-primary {
    background-color: var(--accent);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: transform 0.2s, background 0.3s;
}

.btn-primary:hover {
    transform: translateY(-3px);
    background-color: #00a8cc;
}

/* Schedule Section */
.shows-section {
    padding: 80px 5%;
}

.shows-section h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
}

.show-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.show-card {
    background-color: var(--dark-bg);
    padding: 30px;
    border-radius: 15px;
    border-left: 4px solid var(--accent);
    transition: transform 0.3s;
}

.show-card:hover {
    transform: translateY(-5px);
}

.show-card .time {
    color: var(--accent);
    font-weight: 600;
    margin: 10px 0;
}

/* Sticky Player */
.audio-player {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 90px;
    background-color: rgba(4, 28, 44, 0.98);
    backdrop-filter: blur(10px);
    border-top: 1px solid #0b3954;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    z-index: 1000;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 30%;
}

.album-art {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.now-playing-label {
    font-size: 0.7rem;
    color: var(--accent);
    letter-spacing: 1px;
    font-weight: 800;
}

.track-title {
    font-weight: 600;
    font-size: 1.1rem;
}

.player-controls {
    display: flex;
    justify-content: center;
    width: 40%;
}

.control-btn {
    background-color: var(--accent);
    color: white;
    border: none;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.control-btn:hover {
    transform: scale(1.1);
}

.volume-control {
    width: 30%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    color: #aaa;
}

#volume-slider {
    width: 100px;
    cursor: pointer;
    accent-color: var(--accent);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .player-info { width: 50%; }
    .volume-control { display: none; } /* Hide volume on mobile to save space */
    .hero-content h1 { font-size: 2.5rem; }
}

/* --- Now On Air Widget --- */
.now-on-air-widget {
    background: rgba(4, 28, 44, 0.6); /* Corporate blue with transparency */
    backdrop-filter: blur(8px); /* Blurs the background image behind it */
    border: 1px solid rgba(0, 210, 255, 0.2); /* Faint light blue border */
    border-left: 4px solid var(--accent); /* Solid light blue left edge */
    border-radius: 10px;
    padding: 20px;
    margin: 25px 0 35px 0;
    max-width: 450px;
    text-align: left;
}

.widget-header {
    font-size: 0.85rem;
    color: var(--accent); /* Light blue */
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Custom glowing pulse effect */
.pulse-icon {
    width: 10px;
    height: 10px;
    background-color: var(--accent);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(0, 210, 255, 0.7);
    animation: pulse-light 1.5s infinite;
}

@keyframes pulse-light {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 210, 255, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(0, 210, 255, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 210, 255, 0); }
}

.widget-body h3 {
    font-size: 1.6rem;
    margin-bottom: 5px;
    color: #ffffff;
}

.widget-body p {
    font-size: 1rem;
    color: var(--light-text);
    margin: 0 0 5px 0;
}
/* --- Hero Layout Updates --- */
.hero {
    height: auto; /* Changed from 100vh to auto to fit new content */
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 5% 50px 5%; /* Added top padding to clear the fixed navbar */
    background: linear-gradient(rgba(4, 28, 44, 0.8), rgba(11, 57, 84, 0.8)), 
                url('images/nustfm.jpg') center center/cover no-repeat;
}

.hero-content-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-left {
    flex: 1;
    max-width: 600px;
}

.hero-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

/* --- Featured Podcast Card --- */
.featured-podcast-card {
    background: rgba(4, 28, 44, 0.7); /* Transparent corporate blue */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 210, 255, 0.3); /* Light blue border */
    border-radius: 15px;
    padding: 20px;
    max-width: 350px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
    transition: transform 0.3s ease;
}

.featured-podcast-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.podcast-badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background-color: var(--accent);
    color: #041c2c; /* Deep navy text for contrast */
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 800;
    box-shadow: 0 5px 15px rgba(0, 210, 255, 0.4);
}

.podcast-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.podcast-info h4 {
    font-size: 1.2rem;
    color: #ffffff;
    margin-bottom: 5px;
}

.podcast-info p {
    font-size: 0.9rem;
    color: var(--light-text);
    margin-bottom: 15px;
}

.btn-outline-accent {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-outline-accent:hover {
    background: var(--accent);
    color: #041c2c;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 992px) {
    .hero-content-wrapper {
        flex-direction: column; /* Stacks the content on smaller screens */
        text-align: center;
    }
    
    .hero-right {
        justify-content: center;
        width: 100%;
        margin-top: 30px;
    }
    
    .now-on-air-widget {
        margin: 25px auto 35px auto; /* Centers the widget on mobile */
    }
}

/* --- Latest News Section --- */
.news-section {
    padding: 80px 5%;
    background-color: #041c2c; /* Deep navy to blend with the site */
}

.news-section .section-header {
    text-align: center;
    margin-bottom: 50px;
}

.news-section .section-header h2 {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 10px;
}

.news-section .section-header p {
    color: var(--light-text);
    font-size: 1.1rem;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.news-card {
    background-color: var(--dark-bg); /* Corporate Blue */
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(0, 210, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column; /* Ensures the button stays at the bottom */
}

.news-card:hover {
    transform: translateY(-10px); /* Lifts the card up */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    border-color: rgba(0, 210, 255, 0.5); /* Glows light blue */
}

.news-img-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.news-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Zooms the image slightly when the user hovers over the card */
.news-card:hover .news-img-wrapper img {
    transform: scale(1.1); 
}

.news-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--accent); /* Light blue badge */
    color: #041c2c;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 800;
    z-index: 2;
}

.news-content {
    padding: 25px;
    flex-grow: 1; /* Pushes the 'read more' link to the bottom */
    display: flex;
    flex-direction: column;
}

.news-date {
    color: var(--accent);
    font-size: 0.85rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.news-content h3 {
    color: #ffffff;
    font-size: 1.3rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.news-content p {
    color: var(--light-text);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}


.read-more {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease;
    align-self: flex-start;
}

/* Moves the arrow icon to the right when hovered */
.read-more:hover {
    gap: 15px; 
}

.view-all-btn {
    text-align: center;
    margin-top: 40px;
}

/* --- Meet the DJs Section --- */
.team-section {
    padding: 80px 5%;
    /* Using a gradient to blend seamlessly with the sections above and below */
    background: linear-gradient(to bottom, #041c2c, var(--dark-bg)); 
}

.team-section .section-header {
    text-align: center;
    margin-bottom: 50px;
}

.team-section .section-header h2 {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 10px;
}

.team-section .section-header p {
    color: var(--light-text);
    font-size: 1.1rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.team-card {
    background-color: #041c2c; /* Deep navy for the card background */
    border-radius: 15px;
    overflow: hidden;
    text-align: center;
    border: 1px solid rgba(0, 210, 255, 0.1);
    transition: all 0.3s ease;
}

.team-card:hover {
    border-color: var(--accent);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    transform: translateY(-5px);
}

.team-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 280px;
}

.team-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.team-card:hover .team-img-wrapper img {
    transform: scale(1.05); /* Slight zoom on the DJ photo */
}

/* Hidden Social Icons Overlay */
.team-socials {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(4, 28, 44, 0.85); /* Transparent corporate blue */
    backdrop-filter: blur(5px);
    padding: 15px 0;
    display: flex;
    justify-content: center;
    gap: 15px;
    transform: translateY(100%); /* Pushes it down out of view */
    transition: transform 0.3s ease;
}

.team-card:hover .team-socials {
    transform: translateY(0); /* Slides up on hover */
}

.team-socials a {
    color: #ffffff;
    font-size: 1.2rem;
    background: var(--accent);
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: background 0.3s, color 0.3s;
}

.team-socials a:hover {
    background: #ffffff;
    color: var(--dark-bg);
}

.team-info {
    padding: 20px 15px;
}

.team-info h3 {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.team-info span {
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 600;
}

/* --- Navbar FB Live Button --- */
.nav-live-btn {
    display: flex;
    align-items: center;
    margin-left: 15px; /* Adds a little space between regular links and the button */
}

.nav-live-btn a {
    background-color: #E4262C; /* Broadcasting Red */
    color: #ffffff !important; /* Forces the text to stay white */
    padding: 6px 16px !important;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 0 0 0 rgba(228, 38, 44, 0.7);
    animation: pulse-nav-red 2s infinite;
    transition: background-color 0.3s ease;
}

.nav-live-btn a:hover {
    background-color: #c92227; /* Slightly darker red on hover */
    color: #ffffff;
    animation: none; /* Stops pulsing when they hover over it */
}

/* The pulsing animation for the navbar */
@keyframes pulse-nav-red {
    0% { box-shadow: 0 0 0 0 rgba(228, 38, 44, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(228, 38, 44, 0); }
    100% { box-shadow: 0 0 0 0 rgba(228, 38, 44, 0); }
}

/* Mobile tweak to ensure it fits nicely in the menu */
@media (max-width: 768px) {
    .nav-live-btn {
        margin-left: 0;
        margin-top: 15px;
        justify-content: center;
    }
}

/* --- Upcoming Events Section --- */
.events-section {
    padding: 80px 5%;
    background-color: var(--dark-bg); /* Corporate Blue */
    border-top: 1px solid rgba(0, 210, 255, 0.1);
}

.events-section .section-header {
    text-align: center;
    margin-bottom: 40px;
}

.events-section .section-header h2 {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 10px;
}

.events-section .section-header p {
    color: var(--light-text);
    font-size: 1.1rem;
}

/* Filter Buttons */
.event-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.filter-btn {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--accent); /* Light Blue */
    color: #041c2c;
    border-color: var(--accent);
}

/* Event List Layout */
.events-list {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.event-card {
    display: flex;
    align-items: center;
    background-color: #041c2c; /* Deep Navy */
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(0, 210, 255, 0.1);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.event-card:hover {
    transform: translateX(10px); /* Slides slightly to the right on hover */
    border-color: var(--accent);
}

/* Calendar Date Box */
.event-date {
    background: rgba(0, 210, 255, 0.1);
    border: 2px solid var(--accent);
    min-width: 90px;
    height: 90px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-right: 25px;
}

.event-date .month {
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.event-date .day {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

/* Event Info */
.event-info {
    flex-grow: 1;
}

.event-category {
    font-size: 0.8rem;
    color: var(--accent);
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 1px;
}

.event-info h3 {
    color: #ffffff;
    font-size: 1.4rem;
    margin: 5px 0;
}

.event-location {
    color: #a0a0a0;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.event-location i {
    color: var(--accent);
    margin-right: 5px;
}

.event-desc {
    color: var(--light-text);
    font-size: 0.95rem;
    margin: 0;
}

/* Event Action Button */
.event-action {
    margin-left: 20px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .event-card {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    
    .event-date {
        margin-bottom: 20px;
        min-width: 70px;
        height: 70px;
    }
    
    .event-date .day { font-size: 1.5rem; }
    
    .event-action {
        margin-left: 0;
        margin-top: 20px;
        width: 100%;
    }
    
    .event-action button {
        width: 100%; /* Makes button full width on phones */
    }
}
/* --- Professional Footer Section --- */
.footer {
    background-color: var(--dark-bg); /* Corporate Blue */
    color: var(--light-text);
    padding: 70px 5% 20px 5%;
    border-top: 2px solid rgba(0, 210, 255, 0.1);
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 50px;
}

.footer h4 {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

/* Adds a small light blue underline to the footer headings */
.footer h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background-color: var(--accent);
    border-radius: 2px;
}

.brand-col .logo {
    font-size: 28px;
    margin-bottom: 15px;
}

.brand-col p {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Quick Links Styling */
.links-col ul {
    list-style: none;
}

.links-col ul li {
    margin-bottom: 12px;
}

.links-col ul li a {
    color: var(--light-text);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

/* Makes the link slide slightly to the right and turn light blue on hover */
.links-col ul li a:hover {
    color: var(--accent);
    transform: translateX(5px); 
}

/* App Download Buttons */
.app-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
}

.app-btn {
    background-color: #041c2c; /* Deep Navy */
    border: 1px solid rgba(0, 210, 255, 0.3); /* Faint Light Blue Border */
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    width: fit-content;
}

.app-btn:hover {
    background-color: var(--accent);
    color: #041c2c;
    border-color: var(--accent);
}

.app-btn i {
    font-size: 1.4rem;
}

/* Social Media Circles */
.footer-socials {
    display: flex;
    gap: 15px;
}

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: #041c2c;
    color: #ffffff;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 210, 255, 0.1);
}

.footer-socials a:hover {
    background-color: var(--accent);
    color: #041c2c;
    transform: translateY(-5px); /* Bounces up slightly */
    box-shadow: 0 5px 15px rgba(0, 210, 255, 0.4);
}

/* Copyright Bottom Bar */
.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

/* --- Top Charts Section --- */
.charts-section {
    padding: 80px 5%;
    background-color: #041c2c; /* Deep Navy */
    border-top: 1px solid rgba(0, 210, 255, 0.1);
}

.charts-section .section-header {
    text-align: center;
    margin-bottom: 50px;
}

.charts-section .section-header h2 {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 10px;
}

.charts-section .section-header p {
    color: var(--light-text);
    font-size: 1.1rem;
}

.chart-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chart-row {
    background-color: var(--dark-bg); /* Corporate Blue */
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

.chart-row:hover {
    border-color: var(--accent);
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 210, 255, 0.1);
}

.chart-rank {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent); /* Light Blue */
    min-width: 40px;
    text-align: center;
}

.chart-img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.chart-info {
    flex-grow: 1;
}

.chart-info h3 {
    color: #f8f7f7;
    font-size: 1.2rem;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chart-info p {
    color: #888888;
    font-size: 0.95rem;
    margin: 0;
}

.new-entry-badge {
    background-color: rgba(0, 210, 255, 0.15);
    color: var(--accent);
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: 800;
    letter-spacing: 1px;
}

.chart-play-btn {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chart-play-btn:hover {
    background: var(--accent);
    color: #041c2c;
    transform: scale(1.1);
}

/* Mobile Adjustments */
@media (max-width: 600px) {
    .chart-row {
        padding: 15px;
        gap: 15px;
    }
    .chart-rank {
        font-size: 2rem;
        min-width: 30px;
    }
    .chart-info h3 {
        font-size: 1.1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
}

.logo-img {
    height: 40px;
    margin-right: 10px;
}
/* Update your News Container */
.news-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    
    /* ADD THIS LINE: Pushes the container down below the header */
    margin-top: 100px; 
}

.title-wrapper { text-align: center; }

.page-title {
    color: #002D62; /* NUST Navy Blue */
    font-size: 2.5rem;
    margin-bottom: 30px;
    border-bottom: 2px solid #FDBB30; /* NUST Gold */
    display: inline-block;
    padding-bottom: 10px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.loading-text { text-align: center; width: 100%; color: #666; }
.error-text { text-align: center; width: 100%; color: red; }

/* Individual News Card */
.news-card {
    background-color: #f4f2f2;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.news-image {
    height: 200px;
    width: 100%;
    background-color: #e0e0e0;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-category {
    background-color: #FDBB30;
    color: #002D62;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    align-self: flex-start;
    margin-bottom: 10px;
}

.news-date {
    color: #777;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.news-info h2 {
    color: #002D62;
    font-size: 1.3rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.news-info p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.read-more-btn {
    background-color: #002D62;
    color: #ffffff;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    transition: background-color 0.3s;
}

.read-more-btn:hover {
    background-color: #FDBB30;
    color: #002D62;
}

/* Update your Article Container */
.article-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    padding-bottom: 40px;
    
    /* ADD THIS LINE: Pushes the article down below the header */
    margin-top: 100px; 
}

.article-header {
    text-align: center;
    padding: 40px 20px 20px;
}

.article-category {
    background-color: #FDBB30; /* NUST Gold */
    color: #002D62; /* NUST Navy Blue */
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 15px;
}

.article-title {
    color: #002D62;
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 15px;
}

.article-meta {
    color: #777;
    font-size: 0.95rem;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.article-separator {
    color: #ccc;
}

.article-featured-image {
    width: 100%;
    margin-bottom: 30px;
}

.article-featured-image img {
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: cover;
}

.article-content {
    padding: 0 40px;
    font-size: 1.15rem;
    line-height: 1.8;
    color: #333;
}

.article-content p {
    margin-bottom: 25px;
}

.article-footer {
    margin-top: 40px;
    padding: 20px 40px 0;
    border-top: 1px solid #eee;
    text-align: center;
}

.back-btn {
    display: inline-block;
    background-color: #002D62;
    color: #ffffff;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.back-btn:hover {
    background-color: #FDBB30;
    color: #002D62;
}

/* Make it look good on mobile phones */
@media (max-width: 600px) {
    .article-title { font-size: 2rem; }
    .article-content { padding: 0 15px; font-size: 1.05rem; }
    .article-header { padding: 30px 10px 15px; }
}

/* --- The "See Bio" Button --- */
.bio-btn {
    background-color: transparent;
    border: 2px solid #e74c3c; /* Radio red */
    color: #e74c3c;
    padding: 6px 15px;
    border-radius: 20px;
    margin-top: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.bio-btn:hover {
    background-color: #e74c3c;
    color: white;
}

/* --- The Modal Overlay Background --- */
.dj-modal-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Dark semi-transparent background */
    align-items: center;
    justify-content: center;
}

/* --- The Modal Box --- */
.dj-modal-content {
    background-color: #fff;
    width: 90%;
    max-width: 600px;
    border-radius: 15px;
    padding: 30px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Modal Close Button --- */
.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
}

.close-modal:hover {
    color: #e74c3c;
}

/* --- Modal Internal Layout --- */
.modal-layout {
    display: flex;
    gap: 20px;
    align-items: center;
}

.modal-left img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #e74c3c;
}

.modal-right h2 {
    margin: 0 0 5px 0;
    color: #2c3e50;
}

.modal-right .show-title {
    margin: 0 0 15px 0;
    color: #e74c3c;
    text-transform: uppercase;
    font-size: 14px;
}

.modal-right p {
    color: #555;
    line-height: 1.6;
}

/* Make it responsive for mobile */
@media (max-width: 600px) {
    .modal-layout {
        flex-direction: column;
        text-align: center;
    }
}

/* --- The Slider Wrapper --- */
.slider-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

/* --- Upgrading the Grid into a Scroll Track --- */
.team-grid {
    display: flex; /* Changed from grid to flex */
    gap: 30px;
    overflow-x: auto; /* Enables horizontal scrolling */
    scroll-snap-type: x mandatory; /* Forces the scroll to "snap" to a card perfectly */
    scroll-behavior: smooth;
    padding: 20px 10px;
    width: 100%;
    
    /* Hides the scrollbar to make it look like a clean app */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}
.team-grid::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* --- The Cards --- */
.team-card {
    /* MATH: (100% / 4 cards) minus a little bit for the gap space */
    flex: 0 0 calc(25% - 22.5px); 
    scroll-snap-align: start; /* This tells the browser where to snap */
    /* ... keep your existing .team-card styling (background, border-radius, hover effects) ... */
}

/* --- The Arrow Buttons --- */
.slider-btn {
    background-color: #e74c3c;
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    position: absolute;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: transform 0.2s;
}

.slider-btn:hover {
    transform: scale(1.1);
    background-color: #c0392b;
}

/* Position the buttons on the edges */
.prev-btn { left: -20px; }
.next-btn { right: -20px; }

/* --- Responsive Math (The Magic Part) --- */
/* Tablets: Show 2 cards at a time */
@media (max-width: 900px) {
    .team-card { flex: 0 0 calc(50% - 15px); }
    .prev-btn { left: 0px; }
    .next-btn { right: 0px; }
}

/* Mobile: Show 1 card at a time */
@media (max-width: 600px) {
    .team-card { flex: 0 0 100%; }
    .slider-btn { display: none; } /* Hide arrows on phones so people just swipe with their thumbs */
}

