/* ==========================================================================
   1. GLOBAL CANVAS SETTINGS & CORE TYPOGRAPHY
   ========================================================================== */

/* Universal Box Model Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Base Body Framework with the Blue Gradient Layout */
/* Master Background Lightened to act as the primary blue sky canvas */
body {
    background: #5ba7cc; /* The soft base sky blue from your original palette */
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Dense midnight tone to anchor the header nav bar */
.top-nav {
    width: 100%;
    background-color: #0b2234; /* Locks header to matching corporate navy */
    border-bottom: 2px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    position: relative;
    z-index: 1000;
}


/* Master Grid Width Enforcer */
.main-container,
.slider-section,
.stations-section,
.seo-content-section {
    max-width: 1100px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* Standard Section Headline Typography Styling */
.section-title {
    font-size: 1.8rem;
    margin-bottom: 25px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
    text-align: left;
    padding: 0 20px;
}
/* ==========================================================================
   2. HEADER NAVIGATION MENU & BANNER CAROUSEL
   ========================================================================== */

/* Top Navigation Bar Structure */
.top-nav {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    position: relative;
    z-index: 1000;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
}

.logo-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    overflow: hidden;
}

/* Desktop Horizontal Links */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-menu a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: opacity 0.2s;
}

.nav-menu a:hover {
    opacity: 0.8;
}

/* Hamburger Icon Design Trigger */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: 0.3s;
}

/* Header Slide Section Frame */
.slider-section {
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 0 20px;
}

.slider-container {
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    position: relative;
}

.slider-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.slide {
    min-width: 100%;
    width: 100%;
}

.slide img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

/* Manual Navigation Arrow Buttons */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.5);
    color: #ffffff;
    border: none;
    font-size: 1.5rem;
    padding: 12px 16px;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.2s;
    z-index: 10;
}

.slider-btn:hover {
    background-color: rgba(0,0,0,0.8);
}

.prev-btn { left: 15px; }
.next-btn { right: 15px; }
/* ==========================================================================
   3. STATION GRID, STREAM DRAWER & BREAKPOINTS
   ========================================================================== */

.stations-section {
    padding: 0 20px;
    margin-top: 40px;
    margin-bottom: 40px;
}

/* Desktop Main Grid Component Layout */
.stations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
    width: 100%;
}

/* Desktop Structural Card Defaults */
.station-card {
    background-color: #ffffff;
    color: #333333;
    border-radius: 8px;
    padding: 25px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s, box-shadow 0.2s;
}

.station-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.station-logo-box {
    width: 100px;
    height: 100px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.station-logo-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.station-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* Option A: Separate Player Landing Link */
.station-name-link {
    font-size: 1.2rem;
    font-weight: bold;
    color: #1b4d6b;
    text-decoration: none;
    margin-bottom: 5px;
}

.station-name-link:hover {
    text-decoration: underline;
}

.station-location {
    font-size: 0.85rem;
    color: #666666;
    margin-bottom: 15px;
}

/* Option B: Inline Immediate Playback Button Element */
.listen-now-btn {
    background-color: transparent;
    color: #d11244;
    border: 2px solid #d11244;
    border-radius: 20px;
    padding: 8px 25px;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
    margin-bottom: 15px;
    width: 80%;
}

.listen-now-btn:hover {
    background-color: #d11244;
    color: #ffffff;
}

.station-card.playing-active {
    border: 2px solid #d11244;
}

.station-card.playing-active .listen-now-btn {
    background-color: #d11244;
    color: #ffffff;
}

.station-genre {
    font-size: 0.8rem;
    color: #888888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Global Floating Audio Control Drawer Layout */
.global-audio-drawer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #111111;
    border-top: 3px solid #d11244;
    padding: 15px 20px;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.5);
    z-index: 2000;
    display: none; 
    align-items: center;
    justify-content: center;
}

.drawer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1100px;
    width: 100%;
}

.now-playing-info {
    color: #ffffff;
    font-size: 0.95rem;
}

.now-playing-title { font-weight: bold; color: #ffffff; }
.now-playing-meta { font-size: 0.8rem; color: #aaaaaa; }
.global-audio-drawer audio { max-width: 400px; width: 100%; height: 36px; }

/* SEO Content Typography Element Section */
.seo-content-section {
    background-color: #ffffff;
    color: #222222;
    padding: 40px;
    border-radius: 8px;
    margin-bottom: 100px; /* Safe space margin rule for audio tray */
}

/* ==========================================================================
   MOBILE & TABLET VIEWPORT TRANSFORMS (MAGIC SHIFT HAPPENS HERE)
   ========================================================================== */
@media (max-width: 768px) {
    .menu-toggle { display: flex; }
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #1b4d6b;
        position: absolute;
        top: 100%;
        left: 0;
        padding: 20px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
        gap: 15px;
    }
    .nav-menu.active { display: flex; }

    /* Convert 25 vertical blocks into streamlined horizontal lists */
    .stations-grid {
        grid-template-columns: 1fr; /* Single column list stacking */
        gap: 12px;
    }

    .station-card {
        flex-direction: row; /* Layout items side-by-side */
        justify-content: space-between;
        align-items: center;
        padding: 12px 20px;
        text-align: left;
    }

    .station-logo-box {
        width: 50px;
        height: 50px;
        margin-bottom: 0;
        margin-right: 15px;
        flex-shrink: 0;
    }

    .station-details {
        align-items: flex-start;
        justify-content: center;
    }

    .station-name-link {
        font-size: 1.1rem;
        margin-bottom: 2px;
    }

    .station-location {
        font-size: 0.8rem;
        margin-bottom: 0;
    }

    .listen-now-btn {
        width: auto;
        margin-bottom: 0;
        padding: 6px 16px;
        font-size: 0.85rem;
        white-content: nowrap;
        order: 3; /* Places button securely on the far right */
    }

    .station-genre {
        display: none; /* Hide background metadata tags on mobile layout viewports to avoid cramping */
    }
}

@media (max-width: 480px) {
    .drawer-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}
/* ==========================================================================
   4. SECTION BREAK IMAGES & CONTAINMENT 
   ========================================================================== */

/* This controls the outer wrapper for the images between your station rows */
.mid-section-banner {
    width: 100%;
    max-width: 1100px;
    margin: 30px auto;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

/* This forces those specific banner images to stay contained and responsive */
.mid-section-banner img {
    width: 100%;
    height: auto;
    aspect-ratio: 21 / 9; /* Modern wide banner style */
    object-fit: cover;
    display: block;
}

/* Mobile responsive boundary overrides */
@media (max-width: 768px) {
    .mid-section-banner {
        padding: 0 10px;
        box-shadow: none;
        margin: 20px auto;
    }
    .mid-section-banner img {
        border-radius: 6px;
        aspect-ratio: 16 / 9; /* Shorter widescreen standard for phone screens */
    }
}
/* ==========================================================================
   5. DEEP CORPORATE NAVY FOOTER LINK MATRIX DESIGN RULES
   ========================================================================== */

.site-footer-wrapper {
    background-color: #0b2234; /* Rich dark navy inspired by your layout reference */
    color: #ffffff;
    width: 100%;
    padding: 60px 40px 20px 40px;
    margin-top: 40px;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-inner-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
}

.footer-column-block h4 {
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    color: #ffd700; /* Subtle gold visual anchor tone accent */
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 8px;
}

.footer-links-tree {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links-tree a {
    color: #b0c4de;
    text-decoration: none;
    transition: color 0.2s, padding-left 0.2s;
    display: inline-block;
}

.footer-links-tree a:hover {
    color: #ffffff;
    padding-left: 4px;
}

.footer-baseline-strip {
    max-width: 1100px;
    margin: 0 auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    color: #8fa4b8;
    font-size: 0.8rem;
}

/* 📱 SMART HANDHELD MOBILE VIEWPORT OPTIMIZATIONS */
@media (max-width: 768px) {
    .site-footer-wrapper { padding: 20px; }
    .footer-inner-grid { grid-template-columns: 1fr; gap: 0; }
    .footer-column-block h4 { margin-bottom: 0; padding: 15px 0; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
    .footer-column-block h4::after { content: '▼'; font-size: 0.7rem; transition: transform 0.3s; color: #8fa4b8; }
    .footer-column-block.accordion-open h4::after { transform: rotate(-180deg); color: #ffd700; }
    .footer-links-tree { display: none; padding: 15px 5px; background-color: rgba(0,0,0,0.15); border-radius: 4px; margin-bottom: 5px; }
    .footer-column-block.accordion-open .footer-links-tree { display: flex; }
    .footer-baseline-strip { flex-direction: column; text-align: center; }
}
/* ==========================================================================
   6. TRENDY ACTION-YELLOW ADVERTISING BANNER SYSTEM
   ========================================================================== */

.ad-space-banner-box {
    background-color: #ffd700; /* Vibrant action yellow color tone block */
    color: #0b2234; /* Crisp deep corporate dark navy typography contrast */
    max-width: 1100px;
    width: 100%;
    margin: 30px auto;
    padding: 30px 40px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    gap: 20px;
}

.ad-banner-content h3 {
    font-size: 1.8rem;
    font-weight: 900; /* Ultra-thick bold punchy alert style lettering */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.ad-banner-content p {
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.9;
}

/* Eye-Catching Tappable Contact Button Element */
.ad-banner-action-btn {
    background-color: #0b2234;
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    padding: 14px 28px;
    border-radius: 25px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: transform 0.2s, background-color 0.2s;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.ad-banner-action-btn:hover {
    background-color: #11334f;
    transform: scale(1.03); /* Subtle interactive click pop animation wrapper */
}

/* 📱 MOBILE RESPONSIVE LAYOUT CONVERSION OVERRIDES */
@media (max-width: 768px) {
    .ad-space-banner-box {
        flex-direction: column; /* Stacks items vertically on small mobile phone screens */
        text-align: center;
        padding: 25px 20px;
        margin: 20px auto;
        width: calc(100% - 40px); /* Leave clean side safety padding margins */
    }
    
    .ad-banner-content h3 {
        font-size: 1.5rem;
    }
    
    .ad-banner-action-btn {
        width: 100%; /* Spreads button boundary full width for comfortable mobile thumb tapping */
        text-align: center;
    }
}
/* ==========================================================================
   7. LAYERED MULTI-SHADED BACKGROUND DEPTH OVERRIDES
   ========================================================================== */

/* Wraps the radio stations in a crisp, clean light-blue shaded panel card layer */
.stations-section {
    background-color: rgba(255, 255, 255, 0.15); /* Semi-transparent panel creating depth */
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 40px 20px;
    margin-top: 30px;
    margin-bottom: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Swaps the SEO articles panel to a beautiful soft slate-blue backdrop container */
.seo-content-section {
    background-color: #3a7596 !important; /* Medium slate blue tone for seamless readability */
    color: #ffffff !important; /* Forces typography text cleanly white */
    padding: 40px;
    border-radius: 8px;
    margin-top: 20px;
    margin-bottom: 40px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Golden pop headers look gorgeous against slate-blue layers */
.seo-content-section h2, 
.seo-content-section h3 {
    color: #ffd700 !important; 
    margin-top: 20px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}
/* ==========================================================================
   8. ELECTRIC RED AD BANNER & DEEP CORPORATE FOOTER
   ========================================================================== */

/* High-Visibility Electric Red Banner Container */
.ad-space-banner-box {
    background-color: #ff003c !important; /* Pure energetic electric red */
    color: #ffffff !important; /* Sharp white text contrast */
    max-width: 1100px;
    width: calc(100% - 40px);
    margin: 40px auto;
    padding: 30px 40px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 8px 30px rgba(255, 0, 60, 0.25);
    gap: 20px;
}

.ad-banner-content h3 {
    font-size: 1.8rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
    color: #ffffff !important;
}

.ad-banner-content p {
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.95;
    color: #ffffff !important;
}

/* Contrast Action Button inside the Red Banner */
.ad-banner-action-btn {
    background-color: #ffffff !important;
    color: #ff003c !important; /* Text matches the electric red backdrop */
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    padding: 14px 28px;
    border-radius: 25px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: transform 0.2s, box-shadow 0.2s;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: inline-block;
}

.ad-banner-action-btn:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

/* Deep Corporate Dark Navy Footer Framework */
.site-footer-wrapper {
    background-color: #0b2234 !important; /* Solid corporate midnight backdrop */
    color: #ffffff !important;
    width: 100%;
    padding: 60px 40px 20px 40px;
    margin-top: 60px;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-inner-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
}

.footer-column-block h4 {
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    color: #ffd700 !important; /* Gold visual category titles */
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 8px;
}

.footer-links-tree {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links-tree a {
    color: #b0c4de !important;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links-tree a:hover {
    color: #ffffff !important;
}

.footer-baseline-strip {
    max-width: 1100px;
    margin: 0 auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    color: #8fa4b8;
    font-size: 0.8rem;
}

/* Mobile responsive collapsing stack layout overrides */
@media (max-width: 768px) {
    .ad-space-banner-box {
        flex-direction: column;
        text-align: center;
        padding: 25px 20px;
    }
    .ad-banner-action-btn {
        width: 100%;
        text-align: center;
    }
    .footer-inner-grid { grid-template-columns: 1fr; gap: 20px; }
}
