/* Hero */

/* ==========================================================================
   5. Hero & Slider Components - STABLE GRID-COMPATIBLE VERSION
   ========================================================================== */

#af-hero-modern-wrapper {
    width: 100%;
    position: relative;
    left: 0;
    transform: none;
    margin: 0 auto;
    margin-bottom: 0 !important; /* Prevents height leaking */
    overflow: hidden;
    background: #000b1a; /* Deep navy base */
    height: 420px !important; /* Forced strict height */
    max-height: 420px !important; /* Added to cap stretch */
    min-height: 420px !important; /* Matches height to prevent jumping */
    display: block;
    clear: both;
    contain: layout paint; /* Performance & Layout Optimization */
}

.hero-flex-row,
.hero-slider-col,
.hero-slides-wrapper {
    height: 100%;
    width: 100%;
    position: relative;
    overflow: hidden; /* Contains children within wrapper */
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    transform: translateZ(0); /* Force GPU acceleration */
    content-visibility: auto;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 5;
}

/* Background & Image Handling */
.hero-bg-wrapper {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    background-color: #000b1a;
}

.hero-background-image,
.hero-background-image img,
.hero-background-image .wp-post-image {
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    object-fit: cover !important;
    object-position: center 35% !important;
    display: block;
    aspect-ratio: 1920 / 420; /* Prevents Cumulative Layout Shift */
}

/* Cinematic Mask Overlay */
.hero-blur-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    transform: translateZ(0);
    will-change: backdrop-filter, mask-image;
    background: rgba(0, 0, 0, 0.4) !important;
    backdrop-filter: blur(15px) saturate(120%);
    -webkit-backdrop-filter: blur(15px) saturate(120%);
    mask-image: linear-gradient(to right, black 0%, black 30%, transparent 70%) !important;
    -webkit-mask-image: linear-gradient(to right, black 0%, black 30%, transparent 70%) !important;
}

/* Content Layout & Typography */
.hero-inner-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1400px;
    height: 100%;
    margin: 0 auto;
    padding: 0 50px !important;
    display: flex;
    justify-content: flex-start !important;
    align-items: center;
    pointer-events: none;
}

.hero-text-content {
    width: 100%;
    max-width: 600px;
    pointer-events: auto;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    position: relative;
}

.hero-text-content h1 {
    color: #ffffff !important;
    font-size: 52px;
    font-weight: 800;
    margin-bottom: 22px;
    line-height: 1.1;
    text-transform: uppercase;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 1) !important;
}

/* Primary CTA Button (Story Button) - STABLE POSITIONING */
.hero-read-story-btn,
.hero-cta {
    display: inline-flex !important;
    align-items: center;
    background: #ffd700 !important;
    color: #002e86 !important;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none !important;
    font-weight: 900;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    
    /* DESKTOP STABLE POSITION: Attached to text flow */
    position: relative !important;
    right: auto !important;
    bottom: auto !important;
    margin-top: 10px;
    
    z-index: 99;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    will-change: transform;
    pointer-events: auto;
}

.hero-read-story-btn:hover,
.hero-cta:hover {
    background: #ffffff !important;
    color: #002e86 !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.5);
}

/* Navigation Controls */
.slider-arrow,
.slider-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #ffffff !important;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    will-change: transform, background;
}

.slider-arrow:hover,
.slider-nav-btn:hover {
    background: #ffd700 !important;
    color: #002e86 !important;
    border-color: #ffd700 !important;
}

.prev-btn { left: 15px; }
.next-btn { right: 15px; }

/* Pagination Dots */
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 20;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #ffd700;
    width: 30px;
    border-radius: 10px;
}

/* View All News Bar below Hero */
.view-all-container {
    width: 100%;
    padding: 15px 50px;
    display: flex;
    justify-content: flex-end;
    box-sizing: border-box;
    background: #f8fafc;
    border-bottom: 3px solid #ffd700;
}

.view-all-inner {
    max-width: 1200px;
    margin: 0 0 0 auto;
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

.view-all-news-white {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    border: 2px solid #002e86;
    color: #002e86;
    text-decoration: none;
    font-size: 11px;
    font-weight: 900;
    border-radius: 4px;
    text-transform: uppercase;
    transition: 0.3s ease;
}

.view-all-news-white:hover {
    background: #002e86;
    color: #ffffff;
}

    /* 2. HERO COMPONENT - Full Width */
    .grid-hero {
        grid-column: 1 / -1 !important; 
        grid-row: 1 !important;
        margin-bottom: 20px !important;
    }
/* ==========================================================================
   MOBILE OPTIMIZATION
   ========================================================================== */
@media (max-width: 768px) {
    #af-hero-modern-wrapper {
        height: 280px !important;
        max-height: 280px !important;
        min-height: 280px !important;
        width: 100%;
        left: 0;
        transform: none;
    }

    /* REMOVE BLUR FOR MOBILE */
    .hero-blur-overlay {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: rgba(0, 0, 0, 0.5) !important; /* Solid overlay for text readability */
        mask-image: none !important;
        -webkit-mask-image: none !important;
    }

    .slider-arrow, 
    .slider-nav-btn {
        display: flex !important;
        width: 36px;
        height: 36px;
    }

    .hero-inner-container {
        padding: 0 60px !important;
        justify-content: center !important;
        align-items: center !important;
        padding-bottom: 0 !important;
        text-align: center;
    }

    .hero-text-content {
        max-width: 100%;
    }

    .hero-text-content h1 {
        font-size: 20px !important;
        margin-bottom: 15px;
        line-height: 1.3;
        text-shadow: 0 2px 10px rgba(0,0,0,0.9) !important;
    }

    .hero-read-story-btn,
    .hero-cta {
        position: relative !important;
        right: auto !important;
        bottom: auto !important;
        margin: 0 auto;
        padding: 8px 16px;
        font-size: 10px;
        display: inline-flex !important;
    }

    .slider-dots {
        bottom: 15px;
    }
}

/* Hero */


/* About Book  */
/* ==========================================================================
   COMPONENT: ABOUT THE BOOK
   Updated: Refined Height & Spacing (Slightly Decreased)
   ========================================================================== */

.book-section-container {
    background: #ffffff;
    border-radius: var(--border-radius);
    padding: 25px; /* Decreased from 30px */
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    gap: 20px; /* Decreased from 25px */
    height: 100%;
    min-height: 540px; /* Reduced from 600px to sit lower */
}

.book-header h2 {
    color: var(--af-blue-navy);
    font-size: 24px; /* Refined to 24px */
    font-weight: 800;
    text-transform: uppercase;
    margin: 0 0 15px 0;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.book-header span {
    color: var(--brand-orange);
}

.book-preview-box {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9; /* Reverted to 16/9 for a slightly shorter image */
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0; 
}

.book-bg-blur {
    position: absolute;
    inset: -10px;
    background-size: cover;
    background-position: center;
    filter: blur(20px) brightness(0.4);
    opacity: 0.7;
}

.book-cover-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 2;
}

.book-cover-link img {
    width: 100%;
    height: 100%;
    object-fit: contain; 
    border: none;
    transition: transform 0.5s ease;
    position: relative;
    z-index: 3;
}

.book-cover-link:hover img {
    transform: scale(1.05);
}

/* Content Styling - Balanced Font Sizes */
.book-subheading {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--af-blue-brand);
    font-size: 19px; /* Slightly decreased */
    font-weight: 700;
    margin-bottom: 8px;
}

.book-icon {
    width: 18px;
    height: 18px;
    color: var(--brand-gold);
}

.book-lead {
    font-size: 15px; /* Slightly decreased */
    line-height: 1.6;
    color: #444;
    margin-bottom: 12px;
}

.book-chapters-box {
    background: #f8f9fa;
    border-left: 4px solid var(--brand-gold);
    padding: 15px; /* Decreased from 20px */
    border-radius: 6px;
    margin-bottom: 12px;
}

.chapters-label {
    display: block;
    font-weight: 800;
    font-size: 13px; /* Slightly decreased */
    color: var(--af-blue-navy);
    margin-bottom: 6px;
    text-transform: uppercase;
}

.book-chapters-box p {
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
}

/* Download Button - Standardized size */
.book-download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--af-blue-navy);
    color: #fff !important;
    text-decoration: none;
    padding: 15px; /* Decreased from 18px */
    border-radius: 8px;
    font-weight: 800;
    font-size: 15px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.book-download-btn:hover {
    background: var(--brand-orange);
    transform: translateY(-2px);
}

.btn-icon {
    width: 18px;
    height: 18px;
}

/* ==========================================================================
   COMPONENT: ANNIVERSARY CELEBRATION GALLERY
   ========================================================================== */

.gallery-box-wrapper {
    position: relative;
    width: 100%;
    height: 240px; /* Reduced from 250px for a cleaner match */
    border-radius: 10px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.gallery-bg-blur {
    position: absolute;
    inset: -10px;
    background-size: cover;
    background-position: center;
    filter: blur(15px) brightness(0.4);
    opacity: 0.6;
    z-index: 1;
}

.gallery-box-inner {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 2;
}

.photo-item img {
    position: relative;
    z-index: 3;
    width: 100%;
    height: 100%;
    object-fit: cover !important; 
    display: block;
}
/* About Book  */



/* Celebrations */
/* ==========================================================================
   COMPONENT: ANNIVERSARY CELEBRATION GALLERY
   Updated: Increased Height while Maintaining "Atom Bomb" Full-Width Fix
   ========================================================================== */

.celebration-gallery-container {
    padding: 20px;
    background: #ffffff;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.celebration-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
}

.celebration-header h3 {
    margin: 0;
    font-size: 24px;
    color: var(--af-blue-navy);
    text-transform: uppercase;
    font-weight: 800;
}

.celebration-header .accent {
    color: var(--brand-orange);
}

.celebration-grid {
    display: grid;
    /* Maintained the 350px min-width to ensure boxes stay wide */
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)) !important; 
    gap: 20px;
    align-items: start;
}

.gallery-box-wrapper {
    position: relative;
    width: 100% !important;
    /* UPDATED: Increased height to 250px to make the boxes taller */
    height: 250px !important; 
    border-radius: 10px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.gallery-bg-blur {
    position: absolute;
    inset: -10px;
    background-size: cover;
    background-position: center;
    filter: blur(15px) brightness(0.6); 
    opacity: 1;
    z-index: 1;
}

.gallery-box-inner {
    width: 100% !important;
    height: 100% !important;
    position: relative;
    z-index: 2;
}

.photo-item {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, transform 1.2s ease-out;
}

.photo-item.active {
    opacity: 1 !important;
    visibility: visible !important;
}

.photo-item img {
    /* ATOM BOMB: Forces image to fill new height completely without black bars */
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    object-fit: cover !important; 
    object-position: center !important;
    display: block !important;
    position: relative;
    z-index: 3;
}

.photo-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(transparent, rgba(0,0,0,0.85)) !important;
    color: #fff !important;
    font-size: 13px;
    line-height: 1.4;
    z-index: 4;
}

.photo-caption p {
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.gallery-box-wrapper:hover .photo-item.active img {
    transform: scale(1.05) !important;
    transition: transform 0.5s ease;
}


/* Celebrations */

/* Information Material */

/* ==========================================================================
   COMPONENT: INFORMATION MATERIAL SLIDER
   ========================================================================== */

.area-material {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.area-material h3 {
    margin-bottom: 15px;
    font-weight: 800;
    color: var(--af-blue-navy);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
}

/* Main Container */
.info-material-box {
    position: relative;
    height: 650px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: #000;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

/* Progress Bar */
#slider-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 4px;
    background: var(--brand-gold);
    width: 0%;
    z-index: 20;
    transition: width 0.1s linear;
}

/* Slider Wrapper */
#material-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Navigation Buttons */
.slider-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 15;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.slider-nav-btn:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
}

.prev-btn { left: 15px; }
.next-btn { right: 15px; }

/* Individual Slides */
.material-slide {
    display: none;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.material-slide.active {
    display: block;
    opacity: 1;
}

/* Background Blur Effect */
.slide-bg-blur {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    filter: blur(25px) brightness(0.4);
    transform: scale(1.15);
}

/* Image Content Container */
.slide-content-wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px 100px 20px;
}

.slide-content-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    transition: transform 0.5s ease;
    border-radius: 4px;
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, transparent 40%, rgba(0,0,0,0.2) 100%);
    pointer-events: none;
}

/* Action Button */
.view-doc-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 50px;
    background: var(--af-blue-navy);
    color: #fff;
    border: 2px solid var(--brand-gold);
    cursor: pointer;
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
}

.view-doc-btn:hover {
    background: var(--brand-gold);
    color: var(--af-blue-navy);
    transform: translateX(-50%) translateY(-2px);
}

.view-doc-btn span {
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* Pagination Dots */
.slider-dots {
    position: absolute;
    bottom: 15px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 15;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: 0.4s;
    border: 1px solid rgba(0,0,0,0.2);
}

.dot.active {
    background: #fff;
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(255,255,255,0.5);
}

/* Tablet / Mobile Adjustments */
@media (max-width: 1024px) {
    .info-material-box { height: 500px; }
    .view-doc-btn { padding: 12px 24px; bottom: 40px; }
    .view-doc-btn span { font-size: 12px; }
}

/* Information Material */


/* Publications */

/* ==========================================================================
   COMPONENT: PUBLICATIONS GRID
   ========================================================================== */

.publications-full-section { 
    padding: 60px 0; 
    background: #f8fafc; 
    width: 100%; 
}

.pub-grid-container { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px; 
    max-width: 1250px; 
    margin: 0 auto; 
    padding: 0 20px; 
}

.info-col h3 { 
    color: var(--af-blue-navy); 
    font-size: 14px; 
    font-weight: 900; 
    margin-bottom: 12px; 
    text-transform: uppercase; 
    padding-left: 0;
}

.pub-card { 
    background: #fff; 
    border-radius: 8px; 
    overflow: hidden; 
    display: flex; 
    flex-direction: column; 
    flex: 1; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); 
    border-bottom: 4px solid var(--brand-gold);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pub-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.pub-card-top { 
    height: 280px; 
    background: linear-gradient(to bottom, #7d8ea3 0%, #ffffff 100%); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    padding: 20px; 
}

.pub-card-top img { 
    height: 85%; 
    width: auto;
    object-fit: contain;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.pub-card-content { 
    padding: 20px; 
    text-align: center; 
    flex: 1; 
    display: flex; 
    flex-direction: column; 
}

.pub-card-content h4 { 
    color: var(--af-blue-navy); 
    font-size: 16px; 
    font-weight: 800; 
    line-height: 1.3; 
    margin-bottom: 20px;
    min-height: 42px;
}

.pub-actions {
    margin-top: auto;
}

.btn-summary { 
    background: #f0f4f8; 
    color: var(--af-blue-navy); 
    text-decoration: none; 
    font-size: 11px; 
    font-weight: 800; 
    text-transform: uppercase; 
    padding: 12px; 
    border-radius: 6px; 
    display: block; 
    transition: all 0.3s ease; 
    border: none;
}

.btn-summary:hover { 
    background: var(--af-blue-navy); 
    color: #fff !important; 
}

/* Responsive adjustment */
@media (max-width: 1024px) {
    .pub-grid-container { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .pub-card-top { height: 220px; }
}

@media (max-width: 600px) {
    .pub-grid-container { grid-template-columns: 1fr; }
    .publications-full-section { padding: 40px 0; }
}
/* Publications */


/* Video Section */
/* ==========================================================================
   COMPONENT: VIDEO HUB (SINGLE PLAYER)
   ========================================================================== */

.video-hub-container {
    background: #000;
    border-radius: var(--border-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    /* Fix: prevents the container from stretching the grid and creating blank pages */
    height: auto; 
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Header Styling */
.video-hub-header {
    background: #1a1a1a;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid #333;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hub-icon {
    width: 24px;
    height: 24px;
    color: #ff0000;
}

.video-hub-header h3 {
    margin: 0;
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.video-hub-header .accent {
    color: var(--brand-gold);
}

.video-title-display {
    color: #aaa;
    font-size: 12px;
    font-weight: 600;
    max-width: 55%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Video Stage & Responsive Wrapper */
.video-hub-main {
    padding: 10px;
    background: linear-gradient(to bottom, #1a1a1a, #000);
}

.video-stage {
    width: 100%;
    position: relative;
}

.iframe-wrapper {
    position: relative;
    width: 100%;
    /* Standard 16:9 widescreen ratio - prevents vertical jumping */
    aspect-ratio: 16 / 9; 
    background: #000;
    border-radius: 4px;
    overflow: hidden;
}

.iframe-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Footer Link */
.video-hub-footer {
    background: #111;
    padding: 12px;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.channel-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    text-decoration: none;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.channel-link:hover {
    color: var(--brand-orange);
    transform: translateY(-1px);
}

.channel-link svg {
    transition: transform 0.3s ease;
}

.channel-link:hover svg {
    transform: translateX(4px);
}

    /* 6. MIDDLE ROW: MERGED CENTER (Video Hub) */
    .grid-videos {
        grid-column: 2 / span 2 !important; 
        grid-row: 4 !important;
        width: 100% !important;
    }

    /* 7. BOTTOM ROW: MERGED CENTER (Information Material) */
    .grid-info-material {
        grid-column: 2 / span 2 !important; 
        grid-row: 5 !important;
        width: 100% !important;
    }
/* Responsive Fixes */
@media (max-width: 768px) {
    .video-title-display {
        display: none;
    }
    .video-hub-header h3 {
        font-size: 16px;
    }
}
/* Video Section */

/* Srtip*/
   /* 3. ANNIVERSARY STRIP - Aligned with Content & Right Sidebar */
    .grid-anniversary-strip {
        grid-column: 2 / -1 !important;  
        grid-row: 2 !important;
        margin-bottom: 20px !important;
    }
	
	/* Strip */
	
	
	/* Left Sidebar */
	 /* 4. SIDEBAR LEFT - Perfectly flush with left edge */
    .grid-sidebar-left {
        grid-column: 1 !important;
        /* FIX: Changed span 30 to span 5 to remove ghost bottom space */
        grid-row: 2 / span 5 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        align-self: start;
    }
	
	/* 9. GLOBAL BOX REFINEMENT */
    .af-box {
        width: 100% !important;
        background: #fff;
        border-radius: 8px;
        overflow: hidden;
        margin-bottom: 0 !important; /* Grid gap handles spacing */
    }

    /* 10. TYPOGRAPHY SCALING */
    .grid-anniversary-strip .org-name { font-size: 28px !important; }
    .grid-anniversary-strip .milestone-text { font-size: 48px !important; }

    /* 11. FULL WIDTH SECTIONS (Footer) */
    .grid-publication,
    .grid-divider {
        grid-column: 1 / -1 !important;
        grid-row: 6 !important;
        margin-top: 20px !important;
        width: 100% !important;
    }
} /* End of Media Query */


/* ==========================================================================
   SIDEBAR LAYOUT CONFIGURATION 
   ========================================================================== */

.grid-sidebar-left {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important; 
    gap: 20px;
    align-self: start;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

/* Base wrapper for any sidebar item */
.af-box {
    width: 100% !important;
    height: auto;
    margin: 0 0 20px 0 !important;
    padding: 0;
    box-sizing: border-box !important;
}

.af-box:last-child {
    margin-bottom: 0 !important;
}

/* ==========================================================================
   MOBILE LAYOUT FIXES
   ========================================================================== */

@media (max-width: 1024px) {
    .grid-sidebar-left {
        order: 7; /* Adjusted to match consolidated order below */
        margin-top: 30px !important;
        padding: 0 20px !important;
        width: 100% !important;
    }
}

	/* Left Sidebar */
	
	
	/* Celebration */
	
    /* 5. TOP ROW: TWO COLUMNS (Celebration & About Book) */
    .grid-celebration {
        grid-column: 2 !important;
        grid-row: 3 !important;
    }

    .grid-about-book {
        grid-column: 3 !important;
        grid-row: 3 !important;
    }
	/* Celebration */
	
	
	/* Sidebar Right */
	    /* 8. SIDEBAR RIGHT - Perfectly flush with right edge */
  .grid-sidebar-right {
    grid-column: 4 !important;
    /* FIX: Changed span 30 to span 4 to match inner content */
    grid-row: 3 / span 4 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    
    /* UPDATED: Added Light Gray Background */
    background-color: #f1f5f9 !important;
}
  
	/* Sidebar Right */
	
	
	/* Messages */
	/* ==========================================================================
   COMPONENT: FELICITATION MESSAGES (RIGHT SIDEBAR)
   ========================================================================== */

.messages-widget-container {
    background: #ffffff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    width: 100%;
    height: auto; 
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    box-sizing: border-box;
}

.messages-header {
    padding: 20px 20px 0px 20px;
    position: relative;
}

.messages-header::after {
    content: "";
    display: block;
    width: calc(100% - 40px);
    height: 1px;
    background: #e2e8f0;
    margin-top: 15px;
}

.messages-header h2 {
    color: #002e86;
    font-size: 26px; 
    font-weight: 900;
    line-height: 1.1;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.messages-header h2 span {
    color: var(--brand-orange);
    margin-left: 5px;
}

.messages-honor-bar {
    background: #002e86;
    padding: 12px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-bottom: 3px solid var(--brand-gold);
    margin: 15px 20px 0 20px; 
}

.messages-honor-bar span {
    font-weight: 900;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
}

.messages-stack-wrapper {
    padding: 45px 15px 20px 15px;
    display: flex;
    flex-direction: column;
    gap: 40px; 
    position: relative;
}

.message-box-logic {
    position: relative;
    min-height: 280px; 
    width: 100%;
}

.box-counter-badge {
    position: absolute;
    top: -35px;
    right: 0;
    background: #002e86;
    color: var(--brand-gold);
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 10px;
    font-weight: 800;
    z-index: 30;
    border: 1px solid var(--brand-gold);
}

.af-logic-slide { 
    opacity: 0; 
    visibility: hidden; 
    display: none;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    position: absolute;
    width: 100%;
    height: 100%; 
    top: 0;
    left: 0;
    flex-direction: column;
    overflow: visible; 
}

.af-logic-slide.active { 
    opacity: 1; 
    visibility: visible; 
    display: flex;
    z-index: 2;
}

.slide-avatar-frame {
    position: absolute;
    top: -35px; 
    left: 20px;
    width: 75px;
    height: 75px;
    border-radius: 15px;
    overflow: hidden; 
    border: 4px solid #fff;
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
    background: #002e86;
    z-index: 10;
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-body {
    padding: 55px 20px 15px 20px; 
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.slide-body h5 {
    margin: 0 0 5px 0;
    color: #002e86;
    font-weight: 800;
    font-size: 16px;
    line-height: 1.3;
}

.slide-body .designation {
    display: block;
    font-size: 10px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.custom-scrollbar {
    overflow-y: auto;
    padding-right: 5px;
    flex: 1;
}

.custom-scrollbar::-webkit-scrollbar { width: 3px; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: #002e86; border-radius: 10px; }

.message-text {
    font-size: 13px;
    line-height: 1.4;
    font-style: italic;
    color: #475569;
}

.slide-footer {
    margin-top: auto; 
    padding-top: 10px;
    display: flex;
    justify-content: flex-end;
}

.full-story-link {
    color: #002e86;
    font-size: 11px;
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
}
	/* Messages */
	
	
	/* Header & other elements */
	/* ==========================================================================
   UI REFINEMENT: ALIGNMENT & COLOR SYNC
   ========================================================================== */

/* Force Logo and Header Text to Left */
.header-main-inner, 
.logo-container, 
.site-branding {
    justify-content: flex-start !important;
    text-align: left !important;
    margin-left: 0 !important;
}

/* Unify Section Backgrounds with Navigation */
body, 
#primary-content, 
.main-wrapper {
    background-color: #cce9f5 !important;
}

/* Fix "View All" Button Colors */
.view-all-btn, 
.btn-view-more,
.stk-nav-btn {
    background-color: #ffffff !important;
    color: #002e86 !important;
    border: 1px solid #002e86 !important;
}

.view-all-btn:hover {
    background-color: var(--brand-orange) !important;
    color: #ffffff !important;
    border-color: var(--brand-orange) !important;
}

/* 1. Header Container - Force Full Screen Width */
.site-branding {
    width: 100% !important;
    background: transparent !important;
    padding: 0 !important;
}

.branding-full-width {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important; 
    padding: 15px 50px !important; /* Space from extreme left/right edges */
    box-sizing: border-box !important;
}

.logo-title-group {
    display: flex;
    align-items: center;
    gap: 25px;
}

/* 2. Pushes Social Wrapper to the Absolute Right */
.header-social-wrap {
    display: flex !important;
    gap: 20px;
    align-items: center;
    margin-left: auto !important; /* The secret for right alignment */
    flex-shrink: 0;
}

/* 3. Icon Sizing & Colors */
.header-social-link svg {
    width: 28px;
    height: 28px;
    display: block;
    transition: transform 0.2s ease;
}

.header-social-link:hover svg {
    transform: scale(1.1);
}

.icon-facebook { fill: #1877F2 !important; }
.icon-instagram { fill: #E4405F !important; }
.icon-linkedin { fill: #0A66C2 !important; }

/* YouTube Brand Color */
.icon-youtube { 
    fill: #FF0000 !important; 
}


/* 4. Mobile Cleanup */
@media (max-width: 992px) {
    .branding-full-width {
        flex-direction: column;
        text-align: center;
        padding: 15px 20px !important;
    }
    .logo-title-group {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 15px;
    }
    .header-social-wrap {
        margin-left: 0 !important;
        justify-content: center;
    }
}
/* ==========================================================================
   MOBILE BOX RE-ORDERING & ICON ALIGNMENT
   ========================================================================== */


	
		/* Header & other elements */