/* ========================================
   GALLERY PAGE STYLES - PREMIUM VERSION
   Based on LAC Gallery Design
   ======================================== */

:root {
    --color-primary: #E91E63;
    --color-primary-dark: #C2185B;
    --color-primary-light: #F06292;
    --color-accent: #CDEED6;
    --color-accent-dark: #b5d9c0;
    --color-white: #ffffff;
    --color-black: #000000;
    --color-gray-50: #f8f9fa;
    --color-gray-100: #e9ecef;
    --color-gray-200: #dee2e6;
    --color-gray-300: #ced4da;
    --color-gray-600: #6c757d;
    --color-gray-700: #495057;
    --color-gray-900: #212529;
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Playfair Display', serif;
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 32px;
    --spacing-xl: 48px;
    --transition-base: all 0.3s ease;
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --shadow-xl: 0 12px 48px rgba(0, 0, 0, 0.20);
}

/* ========================================
   PAGE HEADER - ENHANCED
   ======================================== */

.page-header {
    position: relative;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    padding: 120px 0 100px;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(205, 238, 214, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(205, 238, 214, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

/* ========================================
   BREADCRUMB - WHITE BACKGROUND STYLE
   ======================================== */

.breadcrumb {
    background: rgba(255, 255, 255, 0.95);
    padding: 12px 24px;
    margin-bottom: 30px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    display: inline-flex;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.breadcrumb-item {
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.breadcrumb-item a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition-base);
    padding: 4px 8px;
    border-radius: 6px;
    position: relative;
}

.breadcrumb-item a:hover {
    color: var(--color-primary-dark);
    background: rgba(42, 103, 104, 0.1);
}

.breadcrumb-item a:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.breadcrumb-item.active {
    color: var(--color-gray-700);
    font-weight: 600;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: var(--color-gray-600);
    font-size: 1.2rem;
    padding: 0 10px;
    font-weight: 400;
}

/* Page Title & Subtitle */
.page-title {
    font-family: var(--font-secondary);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 15px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.page-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: rgba(255, 255, 255, 0.95);
    max-width: 750px;
    line-height: 1.7;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
}

/* ========================================
   STATISTICS SECTION - FLOATING CARDS
   ======================================== */

.stats-section {
    margin-top: -60px;
    position: relative;
    z-index: 10;
    padding: 0 var(--spacing-lg) 70px;
    background: transparent;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 28px;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-card {
    background: var(--color-white);
    border-radius: 20px;
    padding: 32px 28px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    gap: 24px;
    transition: var(--transition-smooth);
    border-left: 5px solid var(--color-primary);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(42, 103, 104, 0.03), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 16px 50px rgba(42, 103, 104, 0.25);
    border-left-color: var(--color-accent);
}

.stat-card:focus-within {
    outline: 3px solid var(--color-accent);
    outline-offset: 3px;
}

.stat-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    flex-shrink: 0;
    font-size: 2rem;
    box-shadow: 0 6px 20px rgba(42, 103, 104, 0.35);
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.stat-card:hover .stat-icon {
    transform: scale(1.15) rotate(10deg);
}

.stat-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.stat-number {
    font-size: clamp(2.2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--color-primary);
    margin: 0;
    font-family: var(--font-secondary);
    line-height: 1;
}

.stat-label {
    font-size: 1rem;
    color: var(--color-gray-600);
    margin: 10px 0 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========================================
   FILTER SECTION - ENHANCED
   ======================================== */

.filter-section {
    background: var(--color-gray-50);
    padding: 0 0 50px 0;
}

.filter-container {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    background: var(--color-white);
    padding: 24px 28px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    flex-wrap: wrap;
    border: 1px solid var(--color-gray-100);
}

.filter-header {
    display: flex;
    align-items: center;
    font-weight: 700;
    color: var(--color-primary);
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    gap: 10px;
}

.filter-header i {
    color: var(--color-primary-light);
    font-size: 1.2rem;
}

.filter-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    flex: 1;
}

.filter-btn {
    padding: 12px 24px;
    border: 2px solid var(--color-gray-200);
    background: var(--color-white);
    color: var(--color-gray-700);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(42, 103, 104, 0.1);
    transition: width 0.4s ease, height 0.4s ease;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.filter-btn:hover::before {
    width: 300px;
    height: 300px;
}

.filter-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(42, 103, 104, 0.2);
}

.filter-btn:focus {
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    color: var(--color-white);
    border-color: var(--color-primary);
    box-shadow: 0 6px 20px rgba(42, 103, 104, 0.35);
}

.filter-btn i {
    position: relative;
    z-index: 1;
}

.filter-btn span {
    position: relative;
    z-index: 1;
}

.search-box {
    position: relative;
    min-width: 300px;
}

.search-box i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-gray-600);
    font-size: 1.1rem;
    z-index: 1;
}

.search-box input {
    width: 100%;
    padding: 12px 20px 12px 50px;
    border: 2px solid var(--color-gray-200);
    border-radius: 50px;
    font-size: 0.95rem;
    transition: var(--transition-base);
    font-family: var(--font-primary);
    background: var(--color-white);
}

.search-box input::placeholder {
    color: var(--color-gray-600);
}

.search-box input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(42, 103, 104, 0.1);
}

/* ========================================
   SECTION COMMON STYLES
   ======================================== */

.gallery-content-section {
    background: var(--color-gray-50);
    padding: 0 0 80px 0;
}

.section-label {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    text-transform: uppercase;
    letter-spacing: 2.5px;
    margin-bottom: 15px;
    padding: 10px 24px;
    background: var(--color-accent);
    border-radius: 50px;
    box-shadow: 0 2px 8px rgba(42, 103, 104, 0.2);
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--color-primary);
    margin-bottom: 20px;
    font-weight: 700;
    font-family: var(--font-secondary);
    letter-spacing: -0.5px;
}

.section-divider {
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    margin-bottom: 25px;
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(42, 103, 104, 0.3);
}

.section-description {
    font-size: 1.15rem;
    color: var(--color-gray-600);
    max-width: 750px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ========================================
   YEAR SECTION - WHITE TITLES
   ======================================== */

.year-section-wrapper {
    margin-bottom: 40px;
}

.year-card {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    border: 2px solid rgba(205, 238, 214, 0.2);
}

.year-card:hover {
    background: linear-gradient(135deg, var(--color-primary-dark), #0f3334);
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    border-color: var(--color-accent);
}

.year-card:focus {
    outline: 3px solid var(--color-accent);
    outline-offset: 3px;
}

.year-card-content {
    padding: 28px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.year-info {
    flex: 1;
}

.year-title {
    color: var(--color-white);
    margin: 0 0 12px 0;
    font-size: 1.9rem;
    font-weight: 700;
    font-family: var(--font-secondary);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.3px;
}

.year-title i {
    color: var(--color-accent);
    margin-right: 12px;
}

.year-count {
    display: inline-block;
    color: var(--color-white);
    font-size: 1rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 18px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.year-count i {
    color: var(--color-accent);
}

.year-toggle {
    margin-left: 20px;
}

.year-toggle i {
    color: var(--color-white);
    font-size: 2rem;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.year-toggle i.rotated {
    transform: rotate(180deg);
}

.year-section {
    display: none;
    margin-top: 32px;
    animation: fadeSlideIn 0.5s ease;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   PROGRAMME FOLDER - WHITE TITLES
   ======================================== */

.programme-folder {
    background: var(--color-white);
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 32px;
    border: 1px solid var(--color-gray-200);
    transition: var(--transition-smooth);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.programme-folder:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
}

.programme-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--color-gray-100);
    flex-wrap: wrap;
    gap: 16px;
}

.programme-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--color-primary);
    margin: 0;
    flex: 1;
    min-width: 250px;
    letter-spacing: -0.2px;
    line-height: 1.4;
    font-family: var(--font-secondary);
}

.programme-title i {
    color: var(--color-primary-light);
    margin-right: 12px;
}

.programme-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.meta-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--color-gray-50);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-gray-700);
    border: 1px solid var(--color-gray-200);
    transition: var(--transition-base);
}

.meta-badge:hover {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

.meta-badge i {
    color: var(--color-primary);
}

.meta-badge:hover i {
    color: var(--color-accent);
}

/* ========================================
   MEDIA GRID - ENHANCED
   ======================================== */

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
}

.media-item {
    position: relative;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.media-item:nth-child(1) { animation-delay: 0.1s; }
.media-item:nth-child(2) { animation-delay: 0.15s; }
.media-item:nth-child(3) { animation-delay: 0.2s; }
.media-item:nth-child(4) { animation-delay: 0.25s; }
.media-item:nth-child(5) { animation-delay: 0.3s; }
.media-item:nth-child(6) { animation-delay: 0.35s; }
.media-item:nth-child(n+7) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.media-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.media-link:focus {
    outline: 3px solid var(--color-accent);
    outline-offset: 4px;
    border-radius: 16px;
}

/* ========================================
   GALLERY CARDS - ENHANCED
   ======================================== */

.gallery-card {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
    transition: var(--transition-smooth);
    height: 100%;
    cursor: pointer;
    position: relative;
    background: var(--color-white);
}

.gallery-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent, rgba(42, 103, 104, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.gallery-card:hover::before {
    opacity: 1;
}

.gallery-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
}

/* Image Card */
.image-card {
    position: relative;
    background: var(--color-black);
}

.image-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-card:hover img {
    transform: scale(1.15);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(42, 103, 104, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
}

.image-card:hover .image-overlay {
    opacity: 1;
}

.image-overlay i {
    color: var(--color-white);
    font-size: 3.5rem;
    animation: zoomPulse 0.6s ease infinite alternate;
}

@keyframes zoomPulse {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.1);
    }
}

/* PDF Card */
.pdf-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    transition: var(--transition-smooth);
}

.pdf-card:hover {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.pdf-content {
    padding: 40px 20px;
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.pdf-icon-wrapper {
    position: relative;
    width: 160px;
    height: 160px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pdf-card:hover .pdf-icon-wrapper {
    transform: scale(1.15) rotate(5deg);
}

.pdf-icon-base {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: var(--color-white);
    border: 3px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
}

.pdf-card:hover .pdf-icon-base {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
    border-color: #d0d0d0;
}

.pdf-corner {
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 45px 45px 0;
    border-color: transparent #f5f5f5 transparent transparent;
    z-index: 2;
}

.pdf-main-icon {
    font-size: 5rem;
    color: #E74C3C;
    z-index: 1;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.1));
}

.pdf-color-bar {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 85%;
    height: 14px;
    display: flex;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.pdf-color-bar span {
    flex: 1;
}

.bar-blue { background-color: #4285F4; }
.bar-red { background-color: #DB4437; }
.bar-yellow { background-color: #F4B400; }
.bar-green { background-color: #0F9D58; }

.pdf-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, 26px);
    background-color: rgba(0, 0, 0, 0.85);
    color: white;
    font-weight: 700;
    padding: 8px 24px;
    border-radius: 8px;
    font-size: 16px;
    letter-spacing: 2.5px;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.pdf-label {
    color: var(--color-gray-700);
    font-weight: 700;
    font-size: 1.05rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Video Card */
.video-card {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    position: relative;
    overflow: hidden;
}

.video-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, var(--color-accent), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    transform: translate(-50%, -50%);
}

.video-card:hover::after {
    opacity: 0.15;
}

.video-content {
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    gap: 26px;
    z-index: 2;
}

.play-button {
    width: 95px;
    height: 95px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(12px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    position: relative;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.play-button::before {
    content: '';
    position: absolute;
    width: 110%;
    height: 110%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation: ripple 2s ease-out infinite;
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.play-button i {
    color: white;
    font-size: 3rem;
    margin-left: 8px;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
}

.video-card:hover .play-button {
    transform: scale(1.25);
    background-color: rgba(255, 255, 255, 0.4);
    border-color: var(--color-accent);
}

.video-label {
    background: rgba(0, 0, 0, 0.8);
    padding: 12px 26px;
    border-radius: 12px;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    position: relative;
    z-index: 2;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.video-label i {
    color: var(--color-accent);
}

/* ========================================
   EMPTY STATE
   ======================================== */

.empty-state {
    padding: 80px 40px;
    text-align: center;
    background: var(--color-white);
    border-radius: 20px;
    border: 2px dashed var(--color-gray-300);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.empty-state i {
    font-size: 6rem;
    color: var(--color-gray-300);
    margin-bottom: 24px;
}

.empty-state h4 {
    color: var(--color-primary);
    margin-bottom: 12px;
    font-size: 1.8rem;
    font-weight: 700;
}

.empty-state p {
    color: var(--color-gray-600);
    font-size: 1.15rem;
}

/* ========================================
   VIDEO MODAL
   ======================================== */

.modal-content {
    border-radius: 20px;
    overflow: hidden;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.modal-header {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: white;
    border-bottom: none;
    padding: 24px 28px;
}

.modal-title {
    font-weight: 600;
    font-size: 1.4rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.modal-title i {
    color: var(--color-accent);
}

.btn-close-white {
    filter: brightness(0) invert(1);
    opacity: 0.9;
    transition: var(--transition-base);
}

.btn-close-white:hover {
    opacity: 1;
    transform: rotate(90deg);
}

.modal-body {
    padding: 0;
    background: var(--color-black);
}

#videoPlayer {
    width: 100%;
    max-height: 80vh;
    background: var(--color-black);
}

/* ========================================
   SCROLL PROGRESS BAR
   ======================================== */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    z-index: 9999;
    transition: width 0.1s ease;
    box-shadow: 0 2px 6px rgba(42, 103, 104, 0.4);
}

/* ========================================
   BACK TO TOP BUTTON
   ======================================== */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(42, 103, 104, 0.4);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: var(--transition-smooth);
    font-size: 1.4rem;
}

.back-to-top:hover {
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 12px 36px rgba(42, 103, 104, 0.5);
}

.back-to-top:active {
    transform: translateY(-4px) scale(1.05);
}

.back-to-top:focus {
    outline: 3px solid var(--color-accent);
    outline-offset: 3px;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1200px) {
    .media-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 24px;
    }
}

@media (max-width: 991px) {
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .filter-container {
        flex-direction: column;
        align-items: stretch;
        gap: var(--spacing-md);
    }
    
    .filter-buttons {
        justify-content: center;
    }
    
    .search-box {
        min-width: 100%;
    }
    
    .media-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .image-card img,
    .video-content,
    .pdf-content {
        height: 260px;
    }
    
    .pdf-icon-wrapper {
        width: 140px;
        height: 140px;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 100px 0 80px;
    }
    
    .breadcrumb {
        padding: 10px 20px;
        margin-bottom: 24px;
    }
    
    .stats-section {
        margin-top: -50px;
        padding-bottom: 50px;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .stat-card {
        padding: 24px 20px;
    }
    
    .stat-icon {
        width: 60px;
        height: 60px;
        font-size: 1.6rem;
    }
    
    .filter-section {
        padding-bottom: 40px;
    }
    
    .programme-folder {
        padding: 24px 20px;
    }
    
    .programme-header {
        margin-bottom: 20px;
        padding-bottom: 16px;
    }
    
    .programme-title {
        font-size: 1.4rem;
    }
    
    .year-title {
        font-size: 1.6rem;
    }
    
    .year-card-content {
        padding: 24px;
    }
    
    .back-to-top {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 576px) {
    .page-header {
        padding: 90px 0 70px;
    }
    
    .breadcrumb {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .media-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .filter-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .filter-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
    }
    
    .image-card img,
    .video-content,
    .pdf-content {
        height: 240px;
    }
    
    .pdf-icon-wrapper {
        width: 120px;
        height: 120px;
    }
    
    .pdf-main-icon {
        font-size: 4rem;
    }
    
    .play-button {
        width: 75px;
        height: 75px;
    }
    
    .play-button i {
        font-size: 2.4rem;
    }
    
    .year-title {
        font-size: 1.4rem;
    }
    
    .programme-title {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 1.9rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .page-header,
    .stats-section,
    .filter-section,
    .back-to-top,
    .scroll-progress {
        display: none !important;
    }
    
    .programme-folder {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
        background: white !important;
    }
    
    .media-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .media-item {
        width: 48%;
    }
    
    .year-section {
        display: block !important;
    }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 3px;
}

@media (prefers-contrast: high) {
    .gallery-card,
    .year-card,
    .filter-btn,
    .stat-card {
        border: 3px solid currentColor;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .media-item {
        animation: none;
        opacity: 1;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ========================================
   SCROLLBAR STYLING
   ======================================== */

::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: var(--color-gray-100);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    border-radius: 6px;
    border: 2px solid var(--color-gray-100);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-accent));
}

* {
    scrollbar-width: thin;
    scrollbar-color: var(--color-primary) var(--color-gray-100);
}

/* ========================================
   SELECTION STYLES
   ======================================== */

::selection {
    background: var(--color-accent);
    color: var(--color-primary-dark);
}

::-moz-selection {
    background: var(--color-accent);
    color: var(--color-primary-dark);
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.text-white {
    color: var(--color-white) !important;
}

html {
    scroll-behavior: smooth;
}

button, a, input, select, textarea {
    transition: var(--transition-base);
}

.gallery-card,
.filter-btn,
.year-card,
.back-to-top,
.stat-card {
    transform: translateZ(0);
    will-change: transform;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}