/* ===== CSS Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 20-Year Anniversary Theme Colors */
    --gold: #FFD700;
    --bronze: #CD7F32;
    --navy: #1e2a7b;
    --navy-dark: #152056;
    --navy-light: #2d3f9f;

    /* Gradient Colors */
    --gradient-gold: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    --gradient-bronze: linear-gradient(135deg, #CD7F32 0%, #B8860B 100%);
    --gradient-anniversary: linear-gradient(135deg, #FFD700 0%, #CD7F32 50%, #B8860B 100%);
    --gradient-navy: linear-gradient(135deg, #1e2a7b 0%, #152056 100%);
    --gradient-overlay: linear-gradient(135deg, rgba(30, 42, 123, 0.9) 0%, rgba(21, 32, 86, 0.95) 100%);

    /* Background Colors */
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.95);
    --bg-dark: #0f172a;

    /* Text Colors */
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-white: #ffffff;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 0.75rem;
    --spacing-md: 1.25rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2.5rem;
    --spacing-2xl: 3.5rem;
    --spacing-3xl: 4.5rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --radius-2xl: 32px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);
    --shadow-gold: 0 8px 32px rgba(255, 215, 0, 0.3);
    --shadow-navy: 0 8px 32px rgba(30, 42, 123, 0.3);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-bounce: 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--gradient-navy);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('image/KyYeu/background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    filter: blur(2px);
    transform: scale(1.1);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(30, 42, 123, 0.85) 0%,
            rgba(30, 42, 123, 0.75) 50%,
            rgba(30, 42, 123, 0.85) 100%);
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(205, 127, 50, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 215, 0, 0.05) 0%, transparent 70%);
    animation: particleFloat 20s ease-in-out infinite;
}

@keyframes particleFloat {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-20px) scale(1.05);
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: var(--spacing-2xl) var(--spacing-lg);
    animation: fadeInUp 1s ease;
}

.hero-logo {
    margin-bottom: var(--spacing-xl);
    animation: fadeInDown 0.8s ease;
}

.hero-logo-img {
    max-width: 500px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 8px 24px rgba(255, 215, 0, 0.3));
}

.hero-title {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.hero-title-main {
    font-family: 'Playfair Display', serif;
    font-size: clamp(4rem, 12vw, 8rem);
    font-weight: 800;
    background: var(--gradient-anniversary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 20px rgba(255, 215, 0, 0.5);
    animation: titleGlow 3s ease-in-out infinite;
}

.hero-title-sub {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: 0.05em;
}

@keyframes titleGlow {

    0%,
    100% {
        filter: brightness(1);
    }

    50% {
        filter: brightness(1.2);
    }
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-2xl);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-2xl);
    flex-wrap: wrap;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: var(--radius-lg);
    min-width: 120px;
    transition: all var(--transition-normal);
}

.hero-stat:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: var(--shadow-gold);
}

.hero-stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.hero-stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: var(--spacing-xs);
}

.hero-actions {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    align-items: center;
    margin-top: var(--spacing-lg);
    flex-wrap: wrap;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

/* Primary Highlight CTA */
.highlight-cta {
    background: var(--gradient-gold);
    color: var(--navy);
    box-shadow: var(--shadow-gold), 0 0 0 4px rgba(255, 215, 0, 0.1);
    animation: pulseGlow 2s infinite;
}

.highlight-cta:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.4), 0 0 0 6px rgba(255, 215, 0, 0.2);
}

.highlight-cta .cta-icon {
    font-size: 1.3rem;
}

/* Secondary Outline CTA */
.secondary-cta {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.secondary-cta:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
    border-color: white;
}

.secondary-cta svg {
    transition: transform 0.3s ease;
}

.secondary-cta:hover svg {
    transform: translateY(5px);
}

/* Shine Effect for Highlight CTA */
.cta-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.4) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }

    20% {
        left: 200%;
    }

    100% {
        left: 200%;
    }
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(255, 215, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(5px);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: var(--spacing-xl);
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.scroll-indicator:hover {
    opacity: 1;
    cursor: pointer;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 4px solid var(--gold);
    border-bottom: 4px solid var(--gold);
    transform: rotate(45deg);
    margin-bottom: 5px;
    animation: scrollBounce 2s infinite;
}

.scroll-arrow::before {
    content: '';
    /* Ensure empty content just in case */
    display: none;
}

@keyframes scrollBounce {
    0% {
        transform: rotate(45deg) translate(0, 0);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: rotate(45deg) translate(6px, 6px);
        opacity: 0;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Section Titles ===== */
.section-title {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    font-family: 'Playfair Display', serif;
}

.section-title-number {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-anniversary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title-text {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--text-primary);
}

.statistics .section-title-text {
    color: var(--text-white);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
}

/* ===== Board Message Section ===== */
.board-message {
    padding: var(--spacing-xl) 0;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.message-container-full {
    width: 100%;
    margin: 0 auto;
    perspective: 1000px;
}

.message-card {
    position: relative;
    width: 100%;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    background: var(--bg-glass);
    transition: all var(--transition-slow);
    animation: fadeInUp 1s ease;
}

.message-card:hover {
    transform: translateY(-10px) rotateX(2deg);
    box-shadow: 0 30px 60px rgba(30, 42, 123, 0.15), var(--shadow-gold);
}

.message-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-xl);
}

.message-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid transparent;
    border-radius: var(--radius-2xl);
    background: linear-gradient(135deg, var(--gold) 0%, transparent 40%, transparent 60%, var(--bronze) 100%) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.5;
}

/* ===== Leadership Section ===== */
.leadership {
    padding: var(--spacing-2xl) 0;
    background: var(--bg-secondary);
}

.leadership-wrapper {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2xl);
    align-items: center;
}

/* Tab System */
.leadership-tabs {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-2xl);
    position: relative;
    z-index: 2;
}

.tab-btn {
    padding: 12px 30px;
    border-radius: 50px;
    background: var(--bg-glass);
    border: 1px solid rgba(30, 42, 123, 0.1);
    color: var(--navy);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.tab-btn:hover {
    border-color: var(--gold);
    transform: translateY(-2px);
}

.tab-btn.active {
    background: var(--navy);
    color: var(--text-white);
    border-color: var(--navy);
    box-shadow: var(--shadow-navy);
}

.leadership-tab-content {
    display: none;
    animation: fadeIn 0.6s ease forwards;
}

.leadership-tab-content.active {
    display: block;
}

.historical-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-xl);
    width: 100%;
}

.historical-principals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 450px));
    gap: var(--spacing-xl);
    width: 100%;
    justify-content: center;
    margin-bottom: var(--spacing-xl);
}

.principal-box {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: var(--spacing-xl);
}

.vice-principals-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
    width: 100%;
}

.vice-principals-grid .leader-card {
    flex: 1 1 220px;
    max-width: 280px;
}

@media (max-width: 1200px) {
    .vice-principals-grid .leader-card {
        flex: 1 1 200px;
    }
}

.leader-card {
    background: var(--bg-glass);
    border-radius: var(--radius-xl);
    padding: var(--spacing-md);
    border: 1px solid rgba(30, 42, 123, 0.1);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.leader-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.leader-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl), 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--gold);
}

.leader-card:hover::after {
    transform: scaleX(1);
}

.principal-card {
    max-width: 450px;
    border-width: 2px;
    border-color: rgba(255, 215, 0, 0.3);
    background: linear-gradient(to bottom, rgba(255, 215, 0, 0.05), var(--bg-glass));
}

.principal-card .leader-image {
    width: 150px;
    height: 150px;
}

.leader-image {
    width: 160px;
    height: 160px;
    margin: 0 auto var(--spacing-md);
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--gold);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    background: white;
}

.leader-card:hover .leader-image {
    border-color: var(--bronze);
    transform: scale(1.05);
}

.leader-image img {
    width: 100%;
    /* height: 100%; */
    object-fit: cover;
}

.leader-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: var(--spacing-xs);
}

.leader-position {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--bronze);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--spacing-xs);
}

.leader-period {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ===== Achievements Section ===== */
.achievements {
    padding: var(--spacing-3xl) 0;
    background: var(--bg-primary);
    position: relative;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
    width: 100%;
}

.achievement-card {
    background: white;
    padding: var(--spacing-xl) var(--spacing-md);
    border-radius: var(--radius-xl);
    text-align: center;
    border: 2px solid rgba(255, 215, 0, 0.2);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.achievement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-anniversary);
    opacity: 0.5;
    transition: opacity var(--transition-normal);
}

.achievement-card:hover {
    transform: translateY(-10px);
    border-color: var(--gold);
    box-shadow: var(--shadow-xl), 0 0 30px rgba(255, 215, 0, 0.2);
}

.achievement-card:hover::before {
    opacity: 1;
}

.featured-achievement {
    grid-column: span 2;
    background: var(--gradient-navy);
    border-color: var(--gold);
    color: white;
    flex-direction: row;
    gap: var(--spacing-xl);
    text-align: left;
    padding: var(--spacing-xl);
}

.featured-achievement .achievement-icon {
    font-size: 4.5rem;
    margin-bottom: 0;
}

.featured-achievement .achievement-title {
    color: var(--gold);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.featured-achievement .achievement-desc {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

.achievement-icon {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-sm);
}

.achievement-number {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    background: var(--gradient-anniversary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-sm);
    font-family: 'Playfair Display', serif;
}

.achievement-label {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.3;
}

.featured-achievement .achievement-label {
    color: white;
}

@media (max-width: 1200px) {
    .achievements-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .achievements-grid {
        grid-template-columns: 1fr;
    }

    .featured-achievement {
        grid-column: span 1;
        flex-direction: column;
        text-align: center;
    }
}

/* ===== Timeline Section ===== */
.timeline {
    padding: var(--spacing-2xl) 0;
    background: var(--bg-secondary);
}

.timeline-wrapper {
    position: relative;
    padding: var(--spacing-2xl) 0;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    top: 0;
    left: 80px;
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, var(--gold), var(--bronze));
    border-radius: 2px;
}

.timeline-items {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2xl);
}

.timeline-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-lg);
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.timeline-item:nth-child(1) {
    animation-delay: 0.1s;
}

.timeline-item:nth-child(2) {
    animation-delay: 0.2s;
}

.timeline-item:nth-child(3) {
    animation-delay: 0.3s;
}

.timeline-marker {
    position: relative;
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.milestone-icon {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-md);
    object-fit: cover;
    border: 3px solid var(--gold);
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    cursor: zoom-in;
    position: relative;
    z-index: 1;
}

/* Hover effect specifically on the image/marker */
.timeline-marker:hover {
    z-index: 100;
}

.timeline-marker:hover .milestone-icon {
    transform: scale(3.5);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border-color: var(--gold);
    z-index: 100;
    animation: none;
}

/* Subtle effect for row hover */
.timeline-item:hover .timeline-content {
    transform: translateX(8px);
    box-shadow: var(--shadow-lg), var(--shadow-gold);
    border-color: rgba(255, 215, 0, 0.4);
}

.timeline-item-featured .milestone-icon {
    width: 140px;
    height: 140px;
    border-width: 4px;
    animation: pulse-shadow 2s ease-in-out infinite;
}

@keyframes pulse-shadow {

    0%,
    100% {
        box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4);
    }

    50% {
        box-shadow: 0 8px 40px rgba(255, 215, 0, 0.8);
    }
}

.timeline-content {
    flex: 1;
    padding: var(--spacing-lg) var(--spacing-xl);
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.timeline-content:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-lg), var(--shadow-gold);
    border-color: rgba(255, 215, 0, 0.4);
}

.timeline-year {
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--gradient-anniversary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-xs);
}

.timeline-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: var(--spacing-xs);
}

.timeline-description {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ===== Historical Galleries Group ===== */
.galleries-group {
    background: var(--gradient-navy);
    position: relative;
    overflow: hidden;
    padding: var(--spacing-xl) 0;
}

.galleries-group::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 20%, rgba(255, 215, 0, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(205, 127, 50, 0.1) 0%, transparent 40%);
    pointer-events: none;
}

/* ===== Statistics Section ===== */
.statistics {
    padding: var(--spacing-xl) 0;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.supham-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--spacing-lg);
    position: relative;
    z-index: 1;
}

.supham-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 16/10;
    box-shadow: var(--shadow-lg);
    border: 3px solid rgba(255, 255, 255, 0.8);
    transition: all var(--transition-normal);
}

.supham-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.supham-item:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--gold);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.6), var(--shadow-xl);
    animation: suphamGlow 2s ease-in-out infinite;
}

@keyframes suphamGlow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.4), var(--shadow-xl);
    }

    50% {
        box-shadow: 0 0 40px rgba(255, 215, 0, 0.8), var(--shadow-xl);
    }
}

.supham-item:hover img {
    transform: scale(1.1);
}

.supham-year {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: var(--spacing-md);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--gold);
    font-weight: 700;
    font-size: 1.2rem;
    text-align: center;
}

/* ===== Gallery Section ===== */
.gallery {
    padding: var(--spacing-2xl) 0;
    background: var(--bg-primary);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.gallery-card {
    position: relative;
    padding: var(--spacing-xl);
    background: var(--bg-secondary);
    border: 1px solid rgba(30, 42, 123, 0.1);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    cursor: pointer;
    overflow: hidden;
}

.gallery-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 4px;
    background: var(--gradient-anniversary);
    transition: left var(--transition-normal);
}

.gallery-card:hover::before {
    left: 0;
}

.gallery-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-xl), var(--shadow-navy);
    border-color: var(--gold);
}

.gallery-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.gallery-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: var(--spacing-sm);
}

.gallery-count {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.gallery-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--gradient-navy);
    color: var(--text-white);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.gallery-btn:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-navy);
}

/* ===== Highlights Section ===== */
.highlights {
    padding: var(--spacing-2xl) 0;
    background: var(--bg-secondary);
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-md);
    grid-auto-flow: dense;
}

.highlight-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    cursor: pointer;
    aspect-ratio: 4/3;
}

.highlight-item:nth-child(3n+1) {
    grid-column: span 2;
    grid-row: span 2;
}

.highlight-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.highlight-item:hover img {
    transform: scale(1.1);
}

.highlight-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: var(--spacing-lg);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--text-white);
    transform: translateY(100%);
    transition: transform var(--transition-normal);
}

.highlight-item:hover .highlight-overlay {
    transform: translateY(0);
}

/* ===== Footer ===== */
.footer {
    padding: var(--spacing-2xl) 0;
    background: var(--gradient-navy);
    color: var(--text-white);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-lg);
    text-align: center;
}

.footer-logo-img {
    max-width: 300px;
    width: 100%;
    filter: drop-shadow(0 4px 12px rgba(255, 215, 0, 0.3));
}

.footer-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
}

.footer-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-copyright {
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 215, 0, 0.3);
    color: rgba(255, 255, 255, 0.7);
}

/* ===== Lightbox ===== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-close {
    position: absolute;
    top: var(--spacing-lg);
    right: var(--spacing-lg);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: var(--text-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--radius-lg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: var(--text-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: var(--spacing-lg);
}

.lightbox-next {
    right: var(--spacing-lg);
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .timeline-wrapper {
        max-width: 100%;
    }

    .timeline-line {
        left: 30px;
    }

    .timeline-marker {
        width: 80px;
        height: 80px;
    }

    .milestone-icon {
        width: 80px;
        height: 80px;
    }

    .timeline-item-featured .milestone-icon {
        width: 100px;
        height: 100px;
    }

    .timeline-content {
        padding: var(--spacing-md) var(--spacing-lg);
    }

    .timeline-year {
        font-size: 1.5rem;
    }

    .timeline-title {
        font-size: 1.1rem;
    }

    .timeline-description {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .hero-stats {
        gap: var(--spacing-md);
    }

    .hero-stat {
        min-width: 100px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .highlights-grid {
        grid-template-columns: 1fr;
    }

    .highlight-item:nth-child(3n+1) {
        grid-column: span 1;
        grid-row: span 1;
    }

    /* Lightbox Mobile Adjustments */
    .lightbox-nav {
        width: 48px;
        height: 48px;
        background: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(5px);
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .hero-logo-img {
        max-width: 280px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-xs);
    }

    /* Further reduce lightbox nav footprint on very small screens */
    .lightbox-nav {
        top: auto;
        bottom: 30px;
        transform: none;
        width: 44px;
        height: 44px;
    }

    .lightbox-nav:hover {
        transform: scale(1.1);
    }
}

/* ===== Scroll Reveal Animations ===== */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.reveal-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Stagger delay for children if needed */
.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

/* ===== Wall of Wishes Section ===== */
.wishes-section {
    padding: var(--spacing-xl) 0;
    background: #ffffff;
    position: relative;
}

.wishes-grid {
    column-count: 4;
    column-gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-sm);
}

@media (max-width: 1200px) {
    .wishes-grid {
        column-count: 3;
    }
}

@media (max-width: 768px) {
    .wishes-grid {
        column-count: 2;
    }

    /* Wish Form Responsive */
    .wish-form-wrapper {
        border-radius: 20px;
        padding: var(--spacing-sm);
        bottom: 10px;
        width: 95%;
    }

    .form-group-inline {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .wish-input {
        text-align: center;
        border-bottom: 1px solid rgba(251, 245, 245, 0.1);
        padding-bottom: 5px;
    }

    .role-select-wrapper {
        width: 100%;
    }

    .wish-role-select {
        width: 100%;
        text-align: center;
        border: 1px solid rgba(30, 42, 123, 0.2);
        border-radius: 20px;
    }

    .wish-submit-btn {
        width: 100%;
        border-radius: 20px;
    }
}

@media (max-width: 480px) {
    .wishes-grid {
        column-count: 1;
        padding: 5px;
    }

    .wish-form-wrapper {
        border-radius: 15px;
    }
}

.wish-card {
    background: #ffffff;
    border: 1px solid #1e2a7b;
    /* Blue border as requested */
    border-radius: var(--radius-md);
    /* Rounded corners */
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    break-inside: avoid;
    box-shadow: 4px 4px 0px rgba(30, 42, 123, 0.1);
    /* Subtle depth */
    transition: all 0.3s ease;
    animation: fadeInUp 0.5s ease backwards;
    position: relative;
}

.wish-card:hover {
    transform: translateY(-5px);
    box-shadow: 6px 6px 0px rgba(30, 42, 123, 0.2);
}

.wish-pin {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%) rotate(-45deg);
    width: 24px;
    height: 24px;
    z-index: 10;
    filter: drop-shadow(1px 2px 1px rgba(0, 0, 0, 0.1));
    opacity: 0.8;
}

.wish-pin svg {
    width: 100%;
    height: 100%;
    stroke: #64748b;
}

.wish-content {
    font-size: 1rem;
    color: #1e2a7b;
    /* Dark Blue text */
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: var(--spacing-sm);
    font-family: 'Playfair Display', serif;
    /* Elegant font for wishes */
    quotes: "“" "”";
}

.wish-content::before {
    content: open-quote;
    font-size: 2rem;
    color: var(--gradient-primary);
    opacity: 0.2;
    margin-right: 5px;
    vertical-align: -10px;
}

.wish-content::after {
    content: close-quote;
    font-size: 2rem;
    color: var(--gradient-primary);
    opacity: 0.2;
    margin-left: 5px;
    vertical-align: -10px;
}

.wish-meta {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border-top: 1px solid rgba(30, 42, 123, 0.1);
    padding-top: var(--spacing-xs);
}

.wish-role {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    color: #1e2a7b;
    background: rgba(30, 42, 123, 0.05);
    padding: 2px 8px;
    border-radius: 12px;
}

/* === Wish Form === */
.wish-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: #ffffff;
    padding: var(--spacing-md);
    border-radius: 50px;
    border: 2px solid #1e2a7b;
    box-shadow: 0 10px 30px rgba(30, 42, 123, 0.15);
    position: sticky;
    bottom: 20px;
    z-index: 100;
}

.form-group-inline {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.wish-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    padding: 10px;
    background: transparent;
    color: var(--text-primary);
}

.wish-role-select {
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.9rem;
    color: #1e2a7b;
    font-weight: 600;
    cursor: pointer;
    padding: 5px;
    text-align: right;
}

.wish-submit-btn {
    background: #1e2a7b;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wish-submit-btn:hover {
    transform: scale(1.1) rotate(10deg);
    background: #2d3f9f;
}

/* Post-it / Bubble variations (optional) */
.wish-card:nth-child(3n) {
    transform: rotate(1deg);
}

.wish-card:nth-child(3n+1) {
    transform: rotate(-1deg);
}

.wish-card:nth-child(3n+2) {
    transform: rotate(0.5deg);
}

/* Mobile FAB Styles */
.mobile-wish-fab {
    display: none;
    /* Hidden by default */
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #1e2a7b;
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    border: none;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(30, 42, 123, 0.4);
    z-index: 9999;
    /* Max z-index */
    cursor: pointer;
    font-size: 1rem;
    animation: bounceIn 0.5s ease;
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    60% {
        transform: scale(1.1);
        opacity: 1;
    }

    100% {
        transform: scale(1);
    }
}

@media (max-width: 480px) {

    /* Hide inline form on mobile */
    .wish-form-wrapper {
        display: none;
    }

    /* Show FAB on mobile */
    .mobile-wish-fab {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .wishes-grid {
        column-count: 1;
        padding: 5px;
        padding-bottom: 80px;
        /* Space for FAB */
    }
}

/* ===== Wishes Popup Modal ===== */
.wish-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

.wish-modal.active {
    opacity: 1;
    visibility: visible;
}

.wish-modal-content {
    background: #ffffff;
    width: 90%;
    max-width: 500px;
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(30, 42, 123, 0.3);
    border: 1px solid #1e2a7b;
    position: relative;
    transform: translateY(50px);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.wish-modal.active .wish-modal-content {
    transform: translateY(0);
}

.wish-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.2s ease;
}

.wish-modal-close:hover {
    color: #1e2a7b;
}

.wish-modal-header {
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.wish-modal-header h3 {
    color: #1e2a7b;
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
}

.wish-modal-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.wish-modal-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.wish-modal-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(30, 42, 123, 0.2);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    resize: none;
    outline: none;
    transition: border-color 0.2s ease;
}

.wish-modal-textarea:focus {
    border-color: #1e2a7b;
    box-shadow: 0 0 0 3px rgba(30, 42, 123, 0.1);
}

.wish-modal-select {
    width: 100%;
    padding: 10px;
    border: 1px solid rgba(30, 42, 123, 0.2);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    color: #1e2a7b;
    outline: none;
}

.wish-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wish-modal-btn {
    padding: 12px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    font-size: 1rem;
}

.primary-btn {
    background: #1e2a7b;
    color: white;
    border: none;
}

.primary-btn:hover {
    background: #2d3f9f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 42, 123, 0.2);
}

.secondary-btn {
    background: transparent;
    color: #1e2a7b;
    border: 1px solid #1e2a7b;
}

.secondary-btn:hover {
    background: rgba(30, 42, 123, 0.05);
}

/* ===== Toast Notification ===== */
.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    color: #333;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10000;
    animation: slideInRight 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-left: 4px solid #10b981;
    max-width: 350px;
}

.toast-notification.error {
    border-left-color: #ef4444;
}

.toast-icon {
    font-size: 1.5rem;
}

.toast-message {
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.4;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* === Student Album Section === */
#student-album {
    position: relative;
    padding-bottom: 6rem;
}

.album-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    z-index: 2;
    position: relative;
}

.album-tab {
    padding: 0.8rem 1.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.album-tab:hover {
    background: rgba(255, 215, 0, 0.1);
    color: #FFD700;
    border-color: rgba(255, 215, 0, 0.4);
    transform: translateY(-2px);
}

.album-tab.active {
    background: #FFD700;
    color: #1e2a7b;
    border-color: #FFD700;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    min-height: 200px;
    width: 100%;
    /* Ensure grid doesn't overflow container */
}

.album-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    width: 100%;
    /* Strict width */
}

.album-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 215, 0, 0.3);
}

.album-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* Remove inline spacing */
    max-width: 100%;
    /* Prevent overflow */
    transition: transform 0.5s ease;
}

.album-item:hover img {
    transform: scale(1.05);
}

.album-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    text-align: center;
}

.album-item:hover .album-caption {
    transform: translateY(0);
}

.album-loading {
    grid-column: 1 / -1;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    padding: 2rem;
    font-style: italic;
}

@media (max-width: 768px) {
    .album-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .album-tab {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
}

/* === Album Cards Grid (Redesigned) === */
.album-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    position: relative;
    z-index: 10;
}

.album-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    z-index: 5;
    background: rgba(40, 52, 133, 0.4);
    /* Stronger background for better contrast */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.album-card.force-reveal {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}


.album-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FFD700, #CD7F32);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.album-card:hover::before {
    transform: scaleX(1);
}

.album-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 215, 0, 0.4);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.album-card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.album-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #FFD700;
    margin-bottom: 0.5rem;
}

.album-card-count {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

/* Album Modal */
.album-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.album-modal.active {
    display: flex;
}

.album-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.album-modal-content {
    position: relative;
    background: #fff;
    border-radius: 20px;
    width: 100%;
    max-width: 1200px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.album-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.album-modal-close:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: rotate(90deg);
}

.album-modal-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: #1e2a7b;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.album-modal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.album-modal-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
    border: 2px solid #f0f0f0;
    background: #f8f8f8;
    transition: all 0.3s ease;
    cursor: pointer;
}

.album-modal-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-color: #FFD700;
}

.album-modal-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.album-modal-item-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: #fff;
    font-weight: 600;
    text-align: center;
    font-size: 0.9rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.album-modal-item:hover .album-modal-item-caption {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .album-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .album-modal-content {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }

    .album-modal-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .album-modal-title {
        font-size: 1.5rem;
    }
}