/* CSS Variables for Premium Aesthetic */
:root {
    --color-bg: #ffffff;
    --color-text: #1a1a1a;
    --color-accent: #000000;
    --color-gray: #f4f4f4;
    --color-gray-dark: #666666;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;
    
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: var(--space-sm) var(--space-md);
    background: transparent;
    color: #fff; /* White initially for hero */
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    color: var(--color-text);
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
    padding: 10px var(--space-md);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1600px;
    margin: 0 auto;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.header-left, .header-right {
    display: flex;
    align-items: center;
    flex: 1;
}

.header-center {
    flex: 1;
    text-align: center;
}

.header-right {
    justify-content: flex-end;
    gap: var(--space-md);
}

.nav-link {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    font-weight: 500;
}

.nav-link:hover {
    opacity: 0.7;
}

/* ======================================
   HAMBURGER + DROPDOWN MENU
   ====================================== */

.hamburger-wrapper {
    position: relative;
}

.hamburger {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
    z-index: 1001;
    position: relative;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: currentColor;
    transition: var(--transition);
    transform-origin: center;
}

/* Icône X quand ouvert */
.hamburger.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger.is-open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.hamburger.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Panel dropdown */
.hamburger-dropdown {
    position: absolute;
    top: calc(100% + 14px);
    left: 0;
    width: 300px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 4px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.20);

    /* Animation */
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1000;
}

.hamburger-dropdown.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

/* Chaque carte */
.hd-card {
    position: relative;
    display: block;
    height: 140px;
    border-radius: 3px;
    overflow: hidden;
    text-decoration: none;
    flex-shrink: 0;
}

.hd-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hd-card:hover .hd-card-bg {
    transform: scale(1.06);
}

/* Overlay sombre en dégradé */
.hd-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.52) 0%,
        rgba(0, 0, 0, 0.20) 100%
    );
    transition: background 0.4s ease;
}

.hd-card:hover .hd-card-overlay {
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.65) 0%,
        rgba(0, 0, 0, 0.30) 100%
    );
}

/* Titre de la carte */
.hd-card-title {
    position: absolute;
    bottom: 16px;
    left: 16px;
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    line-height: 1;
    z-index: 2;
}

/* Bouton flèche cercle blanc */
.hd-card-arrow {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #ffffff;
    color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.hd-card:hover .hd-card-arrow {
    background: #000000;
    color: #ffffff;
    transform: translateX(2px);
}

.search-btn {
    background: none;
    border: none;
    color: currentColor;
    cursor: pointer;
}

/* Hero Parallax */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-parallax {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%; /* Taller for parallax effect */
    background-size: cover;
    background-position: center;
    z-index: -1;
    transform: translateZ(0); /* Hardware accel */
    will-change: transform;
}

/* Add an overlay to make text readable */
.hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
    max-width: 800px;
    padding: var(--space-md);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 5vw, 6rem);
    line-height: 1.1;
    margin-bottom: var(--space-sm);
    font-weight: 400;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: var(--space-md);
    font-weight: 300;
    opacity: 0.9;
}

.btn-primary {
    display: inline-block;
    padding: 15px 40px;
    background: #fff;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 40px;
}

.btn-primary:hover {
    background: #000;
    color: #fff;
}

/* Categories Nav */
.categories-nav {
    padding: var(--space-md) 0;
    border-bottom: 1px solid #eee;
    margin-bottom: var(--space-lg);
    background: #fff;
    position: sticky;
    top: 60px; /* Below sticky header */
    z-index: 90;
}

.categories-list {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: var(--space-lg);
    overflow-x: auto;
    padding: 0 var(--space-md);
}

.categories-list a {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: var(--color-gray-dark);
    padding-bottom: 5px;
}

.categories-list a.active, .categories-list a:hover {
    color: var(--color-text);
    border-bottom: 1px solid var(--color-text);
}

/* Masonry Grid */
.gallery-section {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 var(--space-md) var(--space-xl);
}

.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    grid-auto-rows: 20px;
    gap: var(--space-md);
}

.grid-item {
    grid-row-end: span 22; /* Default height */
    display: flex;
    flex-direction: column;
    text-decoration: none;   /* <a> sans soulignement */
    color: inherit;          /* <a> hérite de la couleur du texte */
}

.grid-item.tall {
    grid-row-end: span 30; /* Taller item for asymmetric look */
}

.item-img-wrapper {
    flex-grow: 1;
    overflow: hidden;
    position: relative;
    margin-bottom: var(--space-sm);
    background: var(--color-gray);
}

.item-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.item-info {
    padding-top: 10px;
}

.category {
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 1px;
    color: var(--color-gray-dark);
    margin-bottom: 5px;
    display: block;
}

.item-info .title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 5px;
}

.artist {
    font-size: 0.9rem;
    color: var(--color-gray-dark);
}

/* Carousel Section */
.carousel-section {
    background-color: var(--color-gray);
    padding: var(--space-xl) var(--space-md);
    overflow: hidden;
}

.section-header {
    max-width: 1600px;
    margin: 0 auto var(--space-md);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 400;
}

.carousel-controls {
    display: flex;
    gap: 15px;
}

.swiper-button-prev-custom, .swiper-button-next-custom {
    background: none;
    border: 1px solid var(--color-text);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.swiper-button-prev-custom:hover, .swiper-button-next-custom:hover {
    background: var(--color-text);
    color: #fff;
}

.featured-swiper {
    max-width: 1600px;
    margin: 0 auto;
    padding-bottom: 50px; /* Space for scrollbar if needed */
}

.slide-content .img-wrapper {
    aspect-ratio: 3/4;
    overflow: hidden;
    margin-bottom: var(--space-sm);
}

.slide-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-info h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 400;
}

.slide-info span {
    font-size: 0.8rem;
    color: var(--color-gray-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Footer */
.footer {
    background: var(--color-text);
    color: #fff;
    padding: var(--space-xl) var(--space-md) var(--space-md);
}

.footer-inner {
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.footer-brand .logo {
    font-size: 2rem;
    margin-bottom: 10px;
}

.footer-brand p {
    color: #999;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 100px;
}

.link-column h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: var(--space-sm);
    font-weight: 400;
}

.link-column a {
    display: block;
    color: #999;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.link-column a:hover {
    color: #fff;
}

.footer-newsletter h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: var(--space-sm);
    font-weight: 400;
}

.newsletter-form {
    display: flex;
    border-bottom: 1px solid #555;
    padding-bottom: 10px;
}

.newsletter-form input {
    background: none;
    border: none;
    color: #fff;
    flex: 1;
    outline: none;
    font-family: var(--font-body);
}

.newsletter-form button {
    background: none;
    border: none;
    color: #fff;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    cursor: pointer;
    font-weight: 600;
}

.footer-bottom {
    max-width: 1600px;
    margin: 0 auto;
    border-top: 1px solid #333;
    padding-top: var(--space-md);
    text-align: center;
    color: #666;
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .categories-list {
        justify-content: flex-start;
    }
    .footer-inner {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    .footer-links {
        justify-content: flex-start;
        gap: 50px;
    }
}

@media (max-width: 768px) {
    .header-right .nav-link {
        display: none;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    /* ============================================
       LAYOUT MOBILE - MASONRY GRID
       Layout independant, sans lien avec le desktop
       ============================================ */

    /* 1. On desactive completement le systeme grid du desktop */
    .masonry-grid {
        display: block !important;
        grid-template-columns: none !important;
        grid-auto-rows: none !important;
        gap: 0 !important;
    }

    /* 2. Chaque carte : bloc simple, pleine largeur, l'un apres l'autre */
    .grid-item,
    .grid-item.tall {
        display: block !important;
        width: 100% !important;
        grid-column: unset !important;
        grid-row: unset !important;
        grid-row-end: unset !important;
        margin-bottom: 2rem;
        text-decoration: none;
        color: inherit;
    }

    /* 3. Image : hauteur fixe, jamais de flex-grow */
    .grid-item .item-img-wrapper,
    .grid-item.tall .item-img-wrapper {
        display: block !important;
        width: 100% !important;
        height: 220px !important;
        flex-grow: 0 !important;
        aspect-ratio: unset !important;
        overflow: hidden;
        margin-bottom: 0.75rem;
    }

    .grid-item .item-img-wrapper img,
    .grid-item.tall .item-img-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    /* 4. Texte : bloc simple sous l'image */
    .grid-item .item-info,
    .grid-item.tall .item-info {
        display: block !important;
        padding: 0 0 0.5rem 0;
    }

    .grid-item .item-info .category {
        display: block;
        font-size: 0.7rem;
        letter-spacing: 1px;
        text-transform: uppercase;
        color: #666;
        margin-bottom: 4px;
    }

    .grid-item .item-info .title {
        font-size: 1.15rem;
        line-height: 1.3;
        margin-bottom: 4px;
    }

    .grid-item .item-info .artist {
        font-size: 0.85rem;
        color: #666;
    }
    /* ============================================ */
}



/* Article Page Layout */
.article-page {
    padding-top: 100px;
    background: var(--color-bg);
}

.article-container {
    display: flex;
    max-width: 1600px;
    margin: 0 auto;
    padding: var(--space-md) var(--space-md) var(--space-xl);
    gap: var(--space-xl);
    align-items: flex-start;
}

.article-sidebar {
    width: 35%;
    position: sticky;
    top: 100px;
}

.article-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 10px;
    line-height: 1.2;
}

.article-author {
    font-size: 1rem;
    color: var(--color-gray-dark);
    margin-bottom: var(--space-lg);
}

.article-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-text);
    margin-bottom: var(--space-md);
    text-align: justify;
}

.article-text p {
    margin-bottom: 1.2rem;
}

.article-text blockquote {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-style: italic;
    border-left: 2px solid var(--color-text);
    padding-left: 1.5rem;
    margin: 2rem 0;
    color: var(--color-text);
    line-height: 1.6;
}

.article-social {
    margin-top: var(--space-xl);
}

.article-social a {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    font-weight: 600;
    border-bottom: 1px solid currentColor;
    padding-bottom: 3px;
}

.article-social a:hover {
    color: var(--color-gray-dark);
}

.article-content {
    width: 65%;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.article-image {
    width: 100%;
}

.article-image img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 900px) {
    .article-container {
        flex-direction: column;
    }
    .article-sidebar {
        width: 100%;
        position: static;
        padding-right: 0;
        margin-bottom: var(--space-lg);
    }
    .article-content {
        width: 100%;
    }
}



/* Hero Marquee */
.hero-marquee {
    position: absolute;
    bottom: var(--space-md);
    right: 0;
    width: 300px;
    overflow: hidden;
    white-space: nowrap;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 10px 0;
    font-size: 0.85rem;
    letter-spacing: 1px;
    z-index: 2;
    border-radius: 4px 0 0 4px;
    backdrop-filter: blur(4px);
}

.hero-marquee-content {
    display: inline-block;
    animation: marquee 15s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Articles Section Overlay */
.articles-section {
    background-color: var(--color-bg);
}

.article-slide-link {
    display: block;
    text-decoration: none;
}

.article-slide-content {
    position: relative;
    overflow: hidden;
}

.article-slide-content .img-wrapper {
    margin-bottom: 0;
}

.article-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    padding: var(--space-md);
}

.article-slide-content:hover .article-overlay {
    opacity: 1;
}

.article-slide-title {
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.article-slide-content:hover .article-slide-title {
    transform: translateY(0);
}



/* Histoire d'Art Section */
.histoire-section {
    padding: var(--space-xl) 0;
    width: 100%;
    overflow: hidden;
}

.histoire-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.histoire-image-wrapper {
    width: 58vw;
    height: 85vh;
    margin-left: 6vw;
    overflow: hidden;
    position: relative;
}

.histoire-parallax-img {
    width: 100%;
    height: 120%;
    object-fit: cover;
    position: absolute;
    top: -10%;
    left: 0;
    will-change: transform;
    /* Smooth JS updates */
    transition: transform 0.1s ease-out;
}

.histoire-container:hover .histoire-parallax-img {
    filter: brightness(0.9);
}

.histoire-text-wrapper {
    width: 25vw;
    margin-right: 6vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0; /* Controlled by JS */
    transform: translateY(40px); /* Controlled by JS */
    will-change: opacity, transform;
}

.histoire-text-wrapper .category {
    font-size: 0.8rem;
    color: var(--color-gray-dark);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--space-sm);
}

.histoire-text-wrapper .title {
    font-family: var(--font-heading);
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: var(--space-md);
    font-weight: 400;
}

.histoire-text-wrapper .description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--color-gray-dark);
    margin-bottom: var(--space-lg);
}

.histoire-text-wrapper .read-more {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-style: italic;
    position: relative;
    display: inline-block;
    align-self: flex-start;
}

.histoire-text-wrapper .read-more::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-text);
    transition: width 0.4s ease;
}

.histoire-container:hover .read-more::after {
    width: 100%;
}

/* Dossiers Section — mirrored layout */
.dossiers-section {
    padding: var(--space-xl) 0;
    width: 100%;
    overflow: hidden;
}

.dossiers-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.dossiers-image-wrapper {
    width: 58vw;
    height: 85vh;
    margin-right: 6vw;
    overflow: hidden;
    position: relative;
}

.dossiers-parallax-img {
    width: 100%;
    height: 120%;
    object-fit: cover;
    position: absolute;
    top: -10%;
    left: 0;
    will-change: transform;
    transition: transform 0.1s ease-out;
}

.dossiers-container:hover .dossiers-parallax-img {
    filter: brightness(0.9);
}

.dossiers-text-wrapper {
    width: 25vw;
    margin-left: 6vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    transform: translateY(40px);
    will-change: opacity, transform;
}

.dossiers-text-wrapper .category {
    font-size: 0.8rem;
    color: var(--color-gray-dark);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--space-sm);
}

.dossiers-text-wrapper .title {
    font-family: var(--font-heading);
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: var(--space-md);
    font-weight: 400;
}

.dossiers-text-wrapper .description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--color-gray-dark);
    margin-bottom: var(--space-lg);
}

.dossiers-text-wrapper .read-more {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-style: italic;
    position: relative;
    display: inline-block;
    align-self: flex-start;
}

.dossiers-text-wrapper .read-more::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-text);
    transition: width 0.4s ease;
}

.dossiers-container:hover .read-more::after {
    width: 100%;
}

@media (max-width: 900px) {
    .histoire-container {
        flex-direction: column;
    }
    .histoire-image-wrapper {
        width: 88vw;
        height: 60vh;
        margin-left: 6vw;
        margin-bottom: var(--space-lg);
    }
    .histoire-text-wrapper {
        width: 88vw;
        margin-left: 6vw;
        margin-right: 6vw;
    }
    .histoire-text-wrapper .title {
        font-size: 2.2rem;
    }
}

@media (max-width: 900px) {
    .dossiers-container {
        flex-direction: column;
    }
    .dossiers-image-wrapper {
        width: 100%;
        height: 50vh;
        margin-right: 0;
        margin-bottom: var(--space-lg);
    }
    .dossiers-text-wrapper {
        width: 100%;
        margin-left: 0;
    }
}

/* ==========================================================================
   Calendar Page Styles
   ========================================================================== */

.calendar-page-body {
    background-color: var(--color-gray);
}

.calendar-page {
    padding-top: 120px;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: var(--space-xl);
}

/* Header & Filters */
.calendar-header {
    margin-bottom: var(--space-xl);
    padding: 0 var(--space-md);
}

.calendar-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 400;
    margin-bottom: 10px;
    color: var(--color-text);
}

.calendar-subtitle {
    font-size: 1.1rem;
    color: var(--color-gray-dark);
    margin-bottom: var(--space-lg);
}

.calendar-filters {
    display: flex;
    gap: var(--space-md);
    background: #fff;
    padding: var(--space-sm) var(--space-md);
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    align-items: flex-end;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 200px;
}

.filter-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-gray-dark);
    font-weight: 600;
}

.filter-select {
    appearance: none;
    background: transparent;
    border: none;
    border-bottom: 1px solid #ddd;
    padding: 8px 0;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text);
    cursor: pointer;
    border-radius: 0;
    outline: none;
}

.filter-select:focus {
    border-bottom-color: var(--color-text);
}

.filter-btn {
    background: var(--color-text);
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-family: var(--font-body);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 2px;
}

.filter-btn:hover {
    background: #000;
    transform: translateY(-2px);
}

/* Event List */
.events-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    padding: 0 var(--space-md);
}

.event-item {
    display: grid;
    grid-template-columns: 200px 250px 1fr;
    gap: var(--space-md);
    background: #fff;
    padding: var(--space-md);
    border-radius: 4px;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.event-item:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transform: translateX(5px);
    border-left-color: var(--color-text);
}

/* Dates */
.event-dates {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.date-start {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.1;
}

.date-sep {
    color: #ccc;
    margin: 4px 0;
}

.date-end {
    font-size: 0.9rem;
    color: var(--color-gray-dark);
}

/* Location */
.event-location {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid #eee;
    padding-right: var(--space-md);
}

.location-type {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    margin-bottom: 5px;
}

.location-name {
    font-weight: 500;
    font-size: 1.05rem;
}

/* Details */
.event-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: var(--space-sm);
}

.event-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 10px;
}

.event-title a {
    position: relative;
    display: inline-block;
}

.event-title a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-text);
    transition: width 0.3s ease;
}

.event-item:hover .event-title a::after {
    width: 100%;
}

.event-description {
    font-size: 0.95rem;
    color: var(--color-gray-dark);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Pagination */
.calendar-pagination {
    margin-top: var(--space-xl);
    text-align: center;
}

@media (max-width: 900px) {
    .event-item {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }
    
    .event-location {
        border-right: none;
        border-bottom: 1px solid #eee;
        padding-right: 0;
        padding-bottom: var(--space-sm);
        margin-bottom: var(--space-sm);
    }
    
    .event-dates {
        flex-direction: row;
        align-items: baseline;
        gap: 10px;
    }
    
    .calendar-title {
        font-size: 2.5rem;
    }
}

/* ==========================================================================
   Contact Page Styles
   ========================================================================== */

.contact-page-body {
    background-color: var(--color-bg);
}

.contact-main {
    padding-top: 80px; /* offset for header */
}

.contact-section {
    position: relative;
    display: flex;
    min-height: calc(100vh - 80px);
    width: 100vw;
    overflow: hidden;
}

.contact-bg-left {
    width: 50vw;
    height: calc(100vh - 80px);
}

.contact-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-bg-right {
    width: 50vw;
    height: calc(100vh - 80px);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    background-color: var(--color-bg);
}

.contact-info-right {
    width: 400px;
    padding-right: 6vw;
}

.contact-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text);
}

.contact-text p {
    margin-bottom: var(--space-md);
}

.contact-text a {
    color: var(--color-text);
    text-decoration: underline;
    transition: var(--transition);
}

.contact-text a:hover {
    color: var(--color-gray-dark);
}

/* Floating Central Box */
.contact-center-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70vw;
    max-width: 900px;
    height: auto;
    min-height: 350px;
    background: transparent;
    display: flex;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    z-index: 10;
}

.box-left, .box-right {
    flex: 1;
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bg-white {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: var(--color-text);
}

.bg-black {
    background-color: #1a1a1a;
    color: #fff;
    align-items: center;
}

.contact-logo {
    font-size: 3.5rem;
    color: #fff;
    margin: 0;
    text-align: center;
    font-family: var(--font-heading);
}

.contact-center-box h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: var(--space-md);
    font-weight: 400;
}

/* Forms inside central box */
.contact-form-simple {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.contact-form-simple input,
.contact-form-simple textarea {
    width: 100%;
    padding: 15px 0;
    border: none;
    border-bottom: 1px solid #ddd;
    background: transparent;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text);
    outline: none;
    transition: border-color 0.3s ease;
}

.contact-form-simple input:focus,
.contact-form-simple textarea:focus {
    border-bottom-color: var(--color-text);
}

.contact-form-simple textarea {
    resize: vertical;
    min-height: 80px;
}

.contact-form-simple button {
    margin-top: var(--space-md);
    align-self: flex-start;
    background: var(--color-text);
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-family: var(--font-body);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
}

.contact-form-simple button:hover {
    background: #000;
}

@media (max-width: 900px) {
    .contact-section {
        flex-direction: column;
        overflow: auto;
        height: auto;
        min-height: 100vh;
    }
    .contact-bg-left {
        width: 100vw;
        height: 50vh;
    }
    .contact-bg-right {
        width: 100vw;
        height: auto;
        padding: var(--space-xl) var(--space-md);
        justify-content: flex-start;
    }
    .contact-info-right {
        width: 100%;
        padding-right: 0;
    }
    .contact-center-box {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        width: 90vw;
        margin: -10vh auto var(--space-xl) auto;
        flex-direction: column;
    }
    .bg-black {
        padding: var(--space-xl);
    }
}
