/*
Theme Name: XYZ Bierfest Theme
Theme URI: https://xyz-ks.com/wp/themes/xyz-bierfest
Author: XYZ-ks
Author URI: https://xyz-ks.com
Description: A modern, festive WordPress theme for the Fête de la Bière festival in La Chaux-de-Fonds. Features a vibrant Bavarian-inspired design with custom page templates, event schedules, and photo galleries.
Version: 1.6.5
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fete-biere
Tags: festival, events, custom-header, custom-menu, featured-images, flexible-header, full-width-template, sticky-post, theme-options, threaded-comments, translation-ready
*/

/* ============================================
   RESET & BASE STYLES
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #FDB515;
    --color-primary-dark: #F5A623;
    --color-secondary: #003DA5;
    --color-secondary-dark: #002A73;
    --color-accent: #8B6914;
    --color-white: #FFFFFF;
    --color-black: #1A1A1A;
    --color-gray-light: #F5F5F5;
    --color-gray: #CCCCCC;
    --color-gray-dark: #666666;

    --font-primary: 'Poppins', sans-serif;
    --font-display: 'Bebas Neue', cursive;

    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);

    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.2);
}

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

body {
    font-family: var(--font-primary);
    color: var(--color-black);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    cursor: url('cursor.svg') 0 0, auto;
}

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

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

/* Keep the provided SVG cursor visible on interactive elements too. */
a,
button,
[role="button"],
input[type="submit"],
input[type="button"],
.btn,
.lite-youtube,
.lite-youtube-play,
.wpcf7-submit {
    cursor: url('cursor.svg') 0 0, pointer;
}

ul {
    list-style: none;
}

/* ============================================
   LINK CLICK PULSE FEEDBACK
   ============================================ */
.link-click-pulse {
    position: fixed;
    left: 0;
    top: 0;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    border: 2px solid rgba(253, 181, 21, 0.85);
    background: rgba(253, 181, 21, 0.18);
    transform: translate(-50%, -50%) scale(0.2);
    animation: linkClickPulse 0.45s ease-out forwards;
}

@keyframes linkClickPulse {
    0% {
        opacity: 0.85;
        transform: translate(-50%, -50%) scale(0.2);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(4);
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    text-align: center;
    margin-bottom: 1rem;
    color: var(--color-black);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.section-subtitle {
    text-align: center;
    color: var(--color-gray-dark);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition-smooth);
    text-align: center;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-black);
    border-color: var(--color-primary);
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--color-black);
    border-color: var(--color-black);
}

.btn-secondary:hover {
    background: var(--color-black);
    color: var(--color-white);
    transform: translateY(-2px);
}

.white{
    background: var(--color-white) !important;
    color: var(--color-primary) !important;
    border-color: var(--color-primary-dark) !important;
    transition: var(--transition-smooth);
}

.white:hover {
    background: var(--color-white) !important;
    color: var(--color-primary-dark) !important;
    border-color: var(--color-primary) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ============================================
   NAVIGATION — STATE 1 (top) → STATE 2 (scrolled)
   ============================================ */

/*
 * .navbar          – fixed shell, transparent bg; provides the pill curve via ::after
 * .navbar-pill     – the curved-bottom pill bg that morphs as user scrolls
 * .navbar-inner    – flex row for left-menu / logo-center / right-menu
 * .nav-logo-center – holds text + icon; centered in State 1
 * .nav-split       – left / right menu halves; invisible in State 1
 */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    /* transparent – the pill provides all the background */
    background: transparent;
    pointer-events: none; /* children opt back in */
    overflow: visible; /* allow navbar-pill-curve to paint below navbar bounds */
}

/* ---- Curved background — full-width in both states ---- */
.navbar-pill {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    /* State 1: taller to let the SVG logo breathe */
    height: 110px;
    background: rgba(255, 248, 230, 0.97);
    border-bottom: 1px solid rgba(139, 105, 20, 0.12);
    /* No border-radius — straight full-width bar; belly SVG handles the bottom curve */
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(16px);
    will-change: height;
    pointer-events: auto;
    overflow: visible; /* allow belly SVG to extend below */
    z-index: 0;
}

/* ---- Belly-curve: a soft downward bulge centered at the bottom of the pill ---- */
.navbar-pill-curve {
    position: absolute;
    bottom: -50px; /* overlap by 1px to hide the border seam */
    left: 0;
    width: 100%;  /* explicit 100% width so preserveAspectRatio="none" stretches correctly */
    height: 50px;
    display: block;
    fill: rgba(255, 248, 230, 0.97); /* same as pill background */
    pointer-events: none;
    z-index: 1;
}

/* ---- Inner flex row ---- */
.navbar-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2.5rem;
    height: 110px; /* matches pill height in State 1 */
    pointer-events: auto;
    will-change: height;
}

/* ---- Logo center block ---- */
.nav-logo-center {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    flex: 0 0 auto;
    position: relative;
    z-index: 2;
}

/* .nav-logo-text spans removed — text is embedded in the SVG itself */

/* ---- Logo icon ---- */
.nav-logo-icon {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: transform;
}

.nav-logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-logo-svg {
    /* State 1: show full wordmark – wide enough to see all rays & text */
    width: 380px;
    height: auto;
    display: block;
    will-change: width, height;
    overflow: visible;
}

/* ---- Split menus (left / right) ---- */
.nav-split {
    flex: 1;
    display: flex;
    align-items: center;
    /* Hidden in State 1; GSAP reveals them */
    opacity: 0;
    pointer-events: none;
    will-change: opacity;
}

.nav-split--left  { justify-content: flex-end;  padding-right: 2.4rem; }
.nav-split--right { justify-content: flex-start; padding-left:  2.4rem; }

/* ---- Nav menu items ---- */
.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
    list-style: none;
}

.nav-menu a {
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    position: relative;
    color: var(--color-black);
    text-decoration: none;
    white-space: nowrap;
    padding-bottom: 4px;
}

/* Underline for active / hover */
.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu li.current-menu-item > a::after,
.nav-menu a.current-menu-item::after {
    width: 100%;
}

/* ---- Mobile toggle ---- */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--color-black);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

/* ============================================
   NAVBAR — RESPONSIVE
   ============================================ */

/* Tablet (≤900px): collapse split wrappers out of the flex row,
   but keep .nav-menu accessible so the mobile overlay can still open */
@media (max-width: 900px) {
    .nav-split {
        flex: 0;
        width: 0;
        overflow: visible; /* let .nav-menu.active escape as position:fixed */
        padding: 0;
        opacity: 1 !important; /* override GSAP inline opacity so overlay works */
        pointer-events: none;
    }

    .nav-logo-svg {
        width: 280px;
    }

    .mobile-menu-toggle {
        display: flex;
    }
}

/* Mobile (≤600px): smaller pill, smaller logo */
@media (max-width: 600px) {
    .navbar-pill {
        height: 72px;
    }

    .navbar-inner {
        height: 72px;
        padding: 0 1.2rem;
    }

    .nav-logo-svg {
        width: 280px;
    }

    .navbar-pill-curve {
        height: 35px;
        bottom: -35px;
    }
}

/* Small phones (≤400px): tightest sizing */
@media (max-width: 400px) {
    .navbar-pill {
        height: 62px;
    }

    .navbar-inner {
        height: 62px;
    }

    .nav-logo-svg {
        width: 160px;
    }
}

/* ---- Logo + navbar sizing legacies (kept for other templates) ---- */
.logo { display: none; }
.logo-img { display: block; }

.nav-shell {
    --nav-glow-x: 18%;
    --nav-glow-y: 50%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1rem 1.15rem 1rem 1.35rem;
    border-radius: 34px;
    background:
        linear-gradient(135deg, rgba(255, 250, 239, 0.98) 0%, rgba(255, 242, 210, 0.98) 52%, rgba(255, 251, 242, 0.98) 100%);
    border: 1px solid rgba(139, 105, 20, 0.16);
    box-shadow:
        0 24px 44px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
    transition: var(--transition-smooth);
    position: relative;
    overflow: visible;
    will-change: transform;
    backdrop-filter: blur(18px);
    pointer-events: auto;
    isolation: isolate;
}

.nav-shell::before {
    content: '';
    position: absolute;
    inset: 14px;
    border-radius: 24px;
    border: 1px solid rgba(253, 181, 21, 0.28);
    pointer-events: none;
    z-index: 0;
}

.nav-shell-aura {
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background:
        radial-gradient(circle at var(--nav-glow-x) var(--nav-glow-y), rgba(0, 61, 165, 0.14), transparent 28%),
        radial-gradient(circle at 14% 18%, rgba(253, 181, 21, 0.38), transparent 24%),
        radial-gradient(circle at 85% 25%, rgba(255, 255, 255, 0.66), transparent 18%);
    mix-blend-mode: multiply;
    opacity: 0.9;
    z-index: 0;
    pointer-events: none;
}

.nav-scroll-progress {
    position: absolute;
    left: 26px;
    right: 26px;
    bottom: 10px;
    height: 4px;
    border-radius: 999px;
    transform-origin: left center;
    transform: scaleX(0);
    background: linear-gradient(90deg, var(--color-secondary) 0%, var(--color-primary) 100%);
    box-shadow: 0 0 18px rgba(0, 61, 165, 0.24);
    z-index: 1;
    pointer-events: none;
}

.navbar.scrolled .nav-shell {
    padding: 0.78rem 1rem 0.78rem 1.2rem;
    border-radius: 28px;
    box-shadow:
        0 18px 36px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.brand-mark {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    min-width: 0;
    flex: 0 1 auto;
    position: relative;
    z-index: 2;
}

.brand-emblem {
    width: 92px;
    height: 92px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 30px;
    background:
        radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.99), rgba(255, 246, 219, 0.96) 52%, rgba(253, 181, 21, 0.2) 100%);
    border: 1px solid rgba(253, 181, 21, 0.52);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 14px 28px rgba(253, 181, 21, 0.2);
    position: relative;
    transition: var(--transition-smooth);
    will-change: transform;
    transform-style: preserve-3d;
    margin-block: -0.6rem;
}

.brand-emblem::after {
    content: '';
    position: absolute;
    inset: 9px;
    border-radius: 22px;
    border: 1px dashed rgba(0, 61, 165, 0.16);
}

.brand-emblem::before {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 36px;
    background: radial-gradient(circle, rgba(253, 181, 21, 0.18) 0%, rgba(253, 181, 21, 0) 72%);
    z-index: -1;
    pointer-events: none;
}

.brand-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.16));
}

.brand-copy {
    display: grid;
    gap: 0.28rem;
    min-width: 0;
    transition: var(--transition-smooth);
    will-change: transform;
}

.navbar.scrolled .brand-emblem {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.88),
        0 10px 20px rgba(253, 181, 21, 0.18);
}

.brand-subtitle {
    display: block;
    font-size: 0.68rem;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--color-secondary);
}

.brand-title {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 3vw, 3.7rem);
    line-height: 0.88;
    letter-spacing: 0.08em;
    color: var(--color-black);
    text-transform: uppercase;
    white-space: nowrap;
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.4);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    position: relative;
    z-index: 2;
}

.nav-menu-shell {
    display: flex;
    align-items: center;
    position: relative;
    min-height: 82px;
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.42) 0%, rgba(253, 181, 21, 0.2) 100%);
    border: 1px solid rgba(253, 181, 21, 0.34);
    padding: 0.45rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
    overflow: hidden;
}

.logo {
    display: none;
}

.logo-img {
    /* width: 50px; */
    /* height: 50px; */
}

/* Legacy .navbar.scrolled class-based opacity removed — GSAP now controls
   visibility via the .nav-split wrapper; .nav-menu itself is always opaque */

.nav-menu-wrapper {
    display: flex;
    gap: 2rem;
    align-items: center;
    will-change: opacity;
}

.nav-menu a {
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    color: var(--color-black);
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s ease-in-out;
}

.nav-menu a:hover::after,
.nav-menu a.current-menu-item::after {
    width: 100%;
}

button.mobile-menu-toggle:hover{
    background: none;
    border: none;
    box-shadow: none;
    transform: none;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    will-change: opacity;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--color-black);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

/* ============================================
   GLOBAL CTA DOCK
   ============================================ */
/*
.cta-dock {
    position: fixed;
    top: 50%;
    right: 2rem;
    transform: translateY(-50%);
    display: grid;
    gap: 1rem;
    z-index: 1200;
}

.cta-dock__item {
    position: relative;
    display: grid;
    gap: 0.35rem;
    padding: 1.1rem 1.4rem 1.1rem 1.2rem;
    border-radius: 18px;
    min-width: 230px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    isolation: isolate;
    transform: translateZ(0);
    transition: var(--transition-bounce);
}

.cta-dock__item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at -12px 50%, rgba(255, 255, 255, 0) 0 14px, rgba(0, 0, 0, 0.2) 15px, rgba(255, 255, 255, 0) 16px),
        radial-gradient(circle at calc(100% + 12px) 50%, rgba(255, 255, 255, 0) 0 14px, rgba(0, 0, 0, 0.2) 15px, rgba(255, 255, 255, 0) 16px);
    opacity: 0.6;
    z-index: 0;
}

.cta-dock__item::after {
    content: '';
    position: absolute;
    inset: auto 1.2rem 1.1rem 1.2rem;
    height: 2px;
    background: rgba(255, 255, 255, 0.45);
    z-index: 0;
}

.cta-dock__item:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 22px 40px rgba(0, 0, 0, 0.28);
}

.cta-dock__eyebrow {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    opacity: 0.85;
}

.cta-dock__title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.cta-dock__icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    z-index: 1;
}

.cta-dock__item--reserve {
    background: linear-gradient(135deg, #ffe08a 0%, #fdb515 55%, #f28c18 100%);
    color: var(--color-black);
}

.cta-dock__item--reserve .cta-dock__icon {
    background: rgba(0, 0, 0, 0.1);
}

.cta-dock__item--volunteer {
    background: linear-gradient(135deg, #0b2f6a 0%, #003da5 50%, #0a4dcc 100%);
    color: var(--color-white);
    border-color: rgba(255, 255, 255, 0.25);
}

.cta-dock__item--volunteer::after {
    background: rgba(255, 255, 255, 0.35);
}

.cta-dock__item--volunteer .cta-dock__icon {
    background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 1024px) {
    .cta-dock {
        right: 1.2rem;
    }
}

@media (max-width: 820px) {
    .cta-dock {
        top: auto;
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        transform: none;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cta-dock__item {
        min-width: 0;
    }
}

@media (max-width: 560px) {
    .cta-dock {
        grid-template-columns: 1fr;
    }
} */

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    overflow: hidden;
    padding-top: 80px;
    text-align: center;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255,255,255,.05) 35px, rgba(255,255,255,.05) 70px),
        repeating-linear-gradient(-45deg, transparent, transparent 35px, rgba(0,0,0,.05) 35px, rgba(0,0,0,.05) 70px);
    opacity: 0.5;
}

.hero-logo-container {
    position: relative;
    display: inline-block;
    margin-top: 2rem;
}

.hero-logo-bg {
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.hero-logo {
    width: 200px;
    height: 200px;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-logo .beer-mug {
    animation: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    /* max-width: 900px; */
    margin: 0 auto;
    padding: 2rem;
}

.hero-title-image{
    display: flex;
    justify-content: center;
}

.hero-badge {
    display: inline-block;
    background: var(--color-white);
    color: var(--color-black);
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 10vw, 7rem);
    line-height: 1;
    margin-bottom: 2rem;
    letter-spacing: 3px;
}

.title-line {
    display: block;
}

.title-line.highlight {
    color: var(--color-white);
    text-shadow: 4px 4px 0 var(--color-secondary);
}

.hero-details {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 1rem 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.detail-icon {
    font-size: 2rem;
}

.detail-text {
    text-align: left;
    font-weight: 600;
    line-height: 1.4;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about {
    padding: 6rem 0;
    background: var(--color-white);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--color-gray-dark);
    margin-bottom: 3rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 4rem;
    color: var(--color-primary);
    line-height: 1;
}

.stat-label {
    display: block;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
}

/* ============================================
   PROGRAMME SECTION
   ============================================ */

.programme {
    padding: 6rem 0;
    background: var(--color-gray-light);
}

.programme .container{
    max-width: 1400px;
}

.programme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.programme-day {
    background: var(--color-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
}

.programme-day:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.day-header {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-dark) 100%);
    color: var(--color-white);
    padding: 1rem;
    text-align: center;
}

.day-number {
    display: block;
    font-family: var(--font-display);
    font-size: 3rem;
    line-height: 1;
}

.day-date {
    display: block;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
}

.day-events {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.event-card {
    padding: 1rem;
    border-radius: 10px;
    transition: var(--transition-smooth);
}

.event-card.yellow {
    background: var(--color-primary);
    color: var(--color-black);
}

.event-card.dark {
    background: var(--color-black);
    color: var(--color-white);
}

.event-card h3 {
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.event-card p {
    font-size: 0.9rem;
    line-height: 1.5;
    opacity: 0.9;
}

.event-card:hover {
    transform: translateX(5px);
}

/* Event time row */
.event-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-card.yellow .event-time {
    color: var(--color-black);
}

.event-card.dark .event-time {
    color: var(--color-white);
    opacity: 0.85;
}

.time-icon {
    font-size: 0.9rem;
    margin-right: 0.2rem;
}

.time-separator {
    margin: 0 0.25rem;
    opacity: 0.7;
}

/* ============================================
   INFO PRATIQUES SECTION
   ============================================ */

.infos {
    padding: 6rem 0;
    background: var(--color-white);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.info-card {
    background: var(--color-gray-light);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition-smooth);
    border: 3px solid transparent;
}

.info-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

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

.info-card h3 {
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-card p {
    color: var(--color-gray-dark);
    line-height: 1.6;
}

.booking-section {
    /* max-width: 600px; */
    margin: 4rem auto 0;
    text-align: center;
    padding: 3rem;
    background: var(--color-primary);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.booking-section h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.booking-section p {
    margin-bottom: 2rem;
    font-weight: 500;
}

/* ============================================
   NEWS SECTION
   ============================================ */

.news {
    padding: 6rem 0;
    background: var(--color-gray-light);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.news-card {
    background: var(--color-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.news-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.news-content {
    padding: 2rem;
}

.news-content h3 {
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--color-black);
}

.news-content p {
    color: var(--color-gray-dark);
    line-height: 1.6;
}

/* ============================================
   VIDEO SECTION
   ============================================ */

.video-section {
    padding: 6rem 0;
    background: var(--color-secondary);
    color: var(--color-white);
}

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

.video-container {
    display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
    margin: 0 auto;
    gap: 3rem;
}


.video-placeholder {
    position: relative;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.7) 100%),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect fill="%23003DA5" width="100" height="100"/></svg>');
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.video-placeholder:hover {
    transform: scale(1.02);
}

.play-button {
    width: 80px;
    height: 80px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--color-black);
    margin-bottom: 2rem;
    transition: var(--transition-bounce);
}

.video-placeholder:hover .play-button {
    transform: scale(1.2);
}

.video-container p, .video-placeholder p {
    font-size: 1.2rem;
    font-weight: 500;
    text-align: center;
    padding: 0 2rem;
}

/**
 * Lite YouTube Embed - Custom minimal player
 * Shows only thumbnail + play button, loads iframe on click
 * @version 1.0.0 - Initial lite embed implementation
 */
.lite-youtube {
    position: relative;
    width: 100%;
    max-width: 900px;
    aspect-ratio: 16 / 9;
    background-color: #000;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
}

.lite-youtube-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.lite-youtube:hover .lite-youtube-thumbnail {
    transform: scale(1.05);
}

.lite-youtube-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: var(--transition-bounce);
}

.lite-youtube-play svg {
    width: 68px;
    height: 48px;
    filter: drop-shadow(0 2px 10px rgba(0,0,0,0.5));
    transition: var(--transition-bounce);
}

.lite-youtube:hover .lite-youtube-play svg {
    transform: scale(1.15);
}

.lite-youtube-activated {
    cursor: default;
}

.lite-youtube-activated .lite-youtube-play {
    display: none;
}

/**
 * Responsive wrapper for embedded videos (YouTube, Vimeo, etc.)
 * Forces iframe to maintain 16:9 aspect ratio and stay within container bounds.
 * @version 1.0.0 - Initial responsive video implementation
 */
.video-container iframe,
.lite-youtube iframe {
    width: 100%;
    max-width: 900px;
    aspect-ratio: 16 / 9;
    height: auto;
    border-radius: 20px;
    border: none;
}

.lite-youtube iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    border-radius: 0;
}

/**
 * Video section responsive styles
 * @version 1.0.0 - Initial mobile breakpoints
 */
@media (max-width: 768px) {
    .video-section {
        padding: 4rem 0;
    }

    .video-container {
        gap: 2rem;
    }

    .video-container iframe {
        border-radius: 12px;
    }

    .video-placeholder,
    .lite-youtube {
        border-radius: 12px;
    }

    .play-button {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .lite-youtube-play svg {
        width: 58px;
        height: 40px;
    }

    .video-container p, .video-placeholder p {
        font-size: 1rem;
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .video-section {
        padding: 3rem 0;
    }

    .video-container {
        gap: 1.5rem;
    }

    .video-container iframe {
        border-radius: 8px;
    }

    .video-placeholder,
    .lite-youtube {
        border-radius: 8px;
    }

    .play-button {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }

    .lite-youtube-play svg {
        width: 50px;
        height: 35px;
    }

    .video-container p, .video-placeholder p {
        font-size: 0.9rem;
        padding: 0 0.5rem;
    }
}

/* ============================================
   GALLERY SECTION
   ============================================ */

.gallery {
    padding: 6rem 0;
    background: var(--color-white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 1rem;
    margin-bottom: 3rem;
}

.gallery-item {
    aspect-ratio: 1;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: var(--transition-smooth);
    pointer-events: none;
}

.gallery-item:hover {
    transform: scale(1.05);
    z-index: 10;
}

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-load-more {
    display: block;
    margin: 0 auto;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    position: relative;
    background: var(--color-black);
    color: var(--color-white);
    padding: 4rem 0 2rem;
}

.footer-pattern {
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255,255,255,.02) 35px, rgba(255,255,255,.02) 70px);
    opacity: 0.5;
}

.footer-content {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    margin: 1rem 0 0.5rem;
    letter-spacing: 1px;
}

/* .footer-logo {
    width: 60px;
    height: 60px;
} */

.footer-links h4,
.footer-contact h4 {
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-primary);
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links a:hover {
    color: var(--color-primary);
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 0.8rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--color-primary);
    color: var(--color-black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    transition: var(--transition-smooth);
}

.social-links a:hover {
    background: var(--color-white);
    transform: translateY(-3px);
}

.footer-bottom {
    position: relative;
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-gray);
    font-size: 0.9rem;

    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-content: center;
    justify-items: center;
    align-items: center;
    gap: 18px;
    width: 100%;
}

:root {
    --footSize: min(5vw, 35px);
  }

  .wrap {
    padding-top: 0;
    display: grid;
    place-items: center;
    -webkit-user-select: none;
       -moz-user-select: none;
            user-select: none;
    margin: 0 auto;
    width: 100%;
    max-width: 750px;
  }
  .wrap .xyz-logo {
    width: var(--footSize);
    height: auto;
    display: block;
    transition: transform 0.3s ease;
  }
  .wrap .xyz-logo:hover {
    transform: scale(1.05);
  }



/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--color-white);
        flex-direction: column;
        justify-content: flex-start;
        padding: 2rem;
        gap: 1.5rem;
        transition: var(--transition-smooth);
        box-shadow: var(--shadow-lg);
    }

    .nav-menu.active {
        left: 0;
        pointer-events: auto;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .hero-details {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-cta {
        flex-direction: column;
        gap: 1rem;
    }

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

    .info-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
    .infos{
        padding: 2rem 0;
    }

    .gallery{
        padding: 2rem 0;
    }

    .booking-section{
        padding: 0.5rem;
        margin: 1rem auto 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-logo {
        width: 150px;
        height: 150px;
    }

    .stat-number {
        font-size: 3rem;
    }
}

/* ============================================
   WORDPRESS SPECIFIC STYLES
   ============================================ */

.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    text-align: center;
    font-size: 0.9rem;
    color: var(--color-gray-dark);
    margin-top: 0.5rem;
}

.sticky {
    /* Sticky post styles */
}

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

.bypostauthor {
    /* Author highlight */
}

/* Screen reader text */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.screen-reader-text:focus {
    background-color: var(--color-gray-light);
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    color: var(--color-black);
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* ============================================
   LIGHTBOX GALLERY
   ============================================ */

.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: fixed;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--color-black);
    border: none;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    padding: 15px 20px;
    transition: all 0.3s ease;
    z-index: 10000;
    border-radius: 5px;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: scale(1.1);
}

.lightbox-close {
    top: 20px;
    right: 20px;
    font-size: 2.5rem;
    line-height: 1;
    padding: 10px 20px;
}

.lightbox-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-prev:hover {
    transform: translateY(-50%) scale(1.1);
}

.lightbox-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next:hover {
    transform: translateY(-50%) scale(1.1);
}

.lightbox-counter {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--color-black);
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    z-index: 10000;
}

/* ============================================
   COUNTDOWN SECTION
   ============================================ */

.countdown {
    padding: 0;
    background: var(--color-dark-gray);
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.countdown .section-title {
    padding: 4rem 0 2rem;
}

.countdown-wrapper {
    position: relative;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 4rem 2rem;
    background: linear-gradient(to bottom, var(--color-dark-gray) 0%, var(--color-dark-gray) 70%, var(--color-primary) 100%);
    overflow: visible;
}

.flipper {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    text-align: center;
    perspective: 400px;
    position: relative;
    z-index: 100;
    gap: 2rem;
    width: 100%;
    max-width: 100%;
    padding: 0 2rem;
    pointer-events: auto;
}

.flipper * {
    box-sizing: border-box;
}

.flipper *:before,
.flipper *:after {
    box-sizing: border-box;
}

.flip-clock__piece {
    display: inline-block;
    margin: 0 0.5rem;
}

.flip-clock__slot {
    position: relative;
    z-index: 100;
    font-size: clamp(1rem, 3vw, 1.5rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-black);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-top: 1rem;
}

.flip-card {
    display: block;
    position: relative;
    z-index: 20;
    padding-bottom: 0.72em;
    font-size: clamp(2rem, 6vw, 5rem);
    line-height: 0.95;
}

.card__top,
.card__bottom {
    position: relative;
    z-index: 100;
    display: block;
    height: 0.72em;
    color: var(--color-primary);
    background: var(--color-black);
    padding: 0.25em 0.5em;
    border-radius: 0.15em 0.15em 0 0;
    backface-visibility: hidden;
    transform-style: preserve-3d;
    min-width: clamp(80px, 15vw, 300px);
    transform: translateZ(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.card__back::before,
.card__back::after {
    display: block;
    height: 0.72em;
    color: var(--color-primary);
    background: var(--color-black);
    padding: 0.25em 0.5em;
    border-radius: 0.15em 0.15em 0 0;
    backface-visibility: hidden;
    transform-style: preserve-3d;
    min-width: clamp(80px, 15vw, 300px);
    transform: translateZ(0);
}

.card__bottom {
    position: absolute;
    top: 49%;
    left: 0;
    /* width: 100%; */
    /* z-index: 100; */
    color: var(--color-primary);
    /* display: block; */
    /* height: 0.72em; */
    background: var(--color-black);
    /* padding: 0.25em 0.5em; */
    border-radius: 0 0 0.15em 0.15em;
    border-top: solid 1px var(--color-black);
    pointer-events: none;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.8);
}

.card__bottom::after {
    display: block;
    margin-top: -0.72em;
}

.card__back::before,
.card__bottom::after {
    content: attr(data-value);
    display: block;
    text-align: center;
}

.card__back {
    position: absolute;
    top: 0;
    height: 100%;
    left: 0%;
    pointer-events: none;
}

.card__back::before {
    position: relative;
    z-index: -1;
    overflow: hidden;
}

.flip .card__back::before {
    animation: flipTop 0.3s cubic-bezier(0.37, 0.01, 0.94, 0.35);
    animation-fill-mode: both;
    transform-origin: center bottom;
}

.flip .card__back .card__bottom {
    transform-origin: center top;
    animation-fill-mode: both;
    animation: flipBottom 0.6s cubic-bezier(0.15, 0.45, 0.28, 1);
}

@keyframes flipTop {
    0% {
        transform: rotateX(0deg);
        z-index: 2;
    }
    0%, 99% {
        opacity: 0.99;
    }
    100% {
        transform: rotateX(-90deg);
        opacity: 0;
    }
}

@keyframes flipBottom {
    0%, 50% {
        z-index: -1;
        transform: rotateX(90deg);
        opacity: 0;
    }
    51% {
        opacity: 0.99;
    }
    100% {
        opacity: 0.99;
        transform: rotateX(0deg);
        z-index: 5;
    }
}

/* Responsive countdown */
@media (max-width: 768px) {
    .countdown {
        margin-left: calc(-50vw + 50%);
        width: 100vw;
    }

    .countdown .section-title {
        padding: 3rem 2rem 1.5rem;
    }

    .countdown-wrapper {
        min-height: 380px;
        padding: 3rem 1rem;
        background: linear-gradient(to bottom, var(--color-dark-gray) 0%, var(--color-dark-gray) 65%, var(--color-primary) 100%);
    }

    .flipper {
        gap: 1rem;
        padding: 0 1rem;
    }

    .flip-clock__slot {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .countdown {
        margin-left: calc(-50vw + 50%);
        width: 100vw;
    }

    .countdown .section-title {
        padding: 2rem 1.5rem 1rem;
        font-size: 1.8rem;
    }

    .countdown-wrapper {
        min-height: 320px;
        padding: 2rem 0.75rem;
        background: linear-gradient(to bottom, var(--color-dark-gray) 0%, var(--color-dark-gray) 60%, var(--color-primary) 100%);
    }

    .flipper {
        gap: 0.5rem;
        padding: 0 0.5rem;
    }

    .flip-clock__piece {
        margin: 0 0.1rem;
    }

    .flip-clock__slot {
        font-size: 0.7rem;
        margin-top: 0.3rem;
    }

    .flip-card {
        font-size: clamp(1rem, 3.5vw, 2rem);
    }

    .card__top,
    .card__bottom {
        min-width: 125px;
        padding: 0.15em 0.25em;
        font-size: clamp(0.9rem, 3vw, 1.5rem);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .lightbox-close,
    .lightbox-prev,
    .lightbox-next {
        padding: 10px 15px;
        font-size: 1.5rem;
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
        font-size: 2rem;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-counter {
        bottom: 20px;
        font-size: 0.9rem;
        padding: 8px 16px;
    }

    .lightbox-image {
        max-height: 80vh;
    }
}

/* ============================================
   MENU TEMPLATE STYLES
   ============================================ */

.menu-content {
    padding: 6rem 0;
    background: var(--color-white);
}

.menu-category {
    background: var(--color-gray-light);
    padding: 2.5rem;
    border-radius: 15px;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-md);
}

.menu-category .category-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--color-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    text-align: left;
}

.menu-items-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1rem 0;
}

.menu-item .item-name {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--color-black);
    display: block;
    margin-bottom: 0.25rem;
}

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

.menu-item .item-dots {
    flex-grow: 1;
    border-bottom: 2px dotted var(--color-gray);
    margin: 0.5rem 1rem 0;
    align-self: center;
}

.menu-item .item-price {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-primary);
    white-space: nowrap;
    text-align: right;
    margin-left: 1rem;
}

.menu-footer {
    background: var(--color-primary);
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    margin-top: 3rem;
}

.menu-footer h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--color-black);
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.menu-footer p {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.8;
    color: var(--color-black);
}

@media (max-width: 768px) {
    .menu-category {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }

    .menu-category .category-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .menu-item {
        padding: 0.75rem 0;
        flex-wrap: wrap;
    }

    .menu-item .item-name {
        font-size: 1rem;
        width: 100%;
    }

    .menu-item .item-quantity {
        font-size: 0.85rem;
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .menu-item .item-dots {
        flex-grow: 1;
        margin: 0.25rem 0.75rem 0;
        border-bottom: 1px dotted var(--color-gray);
    }

    .menu-item .item-price {
        font-size: 1rem;
        margin-left: 0.75rem;
        width: auto;
    }

    .menu-footer {
        padding: 1.5rem;
        margin-top: 2rem;
    }

    .menu-footer h3 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    .menu-footer p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
}

@media (max-width: 480px) {
    .menu-content {
        padding: 3rem 0;
    }

    .menu-category {
        padding: 1rem;
        margin-bottom: 1.5rem;
        border-radius: 10px;
    }

    .menu-category .category-title {
        font-size: 1.2rem;
        margin-bottom: 1rem;
        letter-spacing: 1px;
    }

    .menu-items-list {
        gap: 0;
    }

    .menu-item {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0.5rem 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    .menu-item:last-child {
        border-bottom: none;
    }

    .menu-item > div:first-child {
        display: contents;
    }

    .menu-item .item-name {
        font-size: 0.95rem;
        font-weight: 700;
        margin-bottom: 0.25rem;
        width: auto;
    }

    .menu-item .item-quantity {
        font-size: 0.8rem;
        color: var(--color-gray-dark);
        margin-bottom: 0.5rem;
        width: auto;
    }

    .menu-item .item-dots {
        display: none;
    }

    .menu-item .item-price {
        text-align: left;
        font-size: 1rem;
        margin-left: 0;
        margin-top: -1.8rem;
        text-align: right;
    }

    .menu-footer {
        padding: 1rem;
        margin-top: 1.5rem;
        border-radius: 10px;
    }

    .menu-footer h3 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
        letter-spacing: 1px;
    }

    .menu-footer p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
}

@media (max-width: 360px) {
    .menu-category {
        padding: 0.75rem;
    }

    .menu-category .category-title {
        font-size: 1.1rem;
    }

    .menu-item .item-name {
        font-size: 0.9rem;
    }

    .menu-item .item-price {
        font-size: 0.95rem;
    }

    .menu-footer h3 {
        font-size: 1rem;
    }

    .menu-footer p {
        font-size: 0.85rem;
    }
}

/* ============================================
   FLEXIBLE TEMPLATE
   ============================================ */

.flexible-section {
    padding: 4rem 0;
}

.flexible-row {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: flex-start;
}

.flexible-col {
    flex: 1 1 100%;
    min-width: 0;
}

.flexible-col-half {
    flex: 1 1 calc(50% - 1rem);
}

.flexible-col-third {
    flex: 1 1 calc(33.333% - 1.34rem);
}

.flexible-col h1,
.flexible-col h2,
.flexible-col h3,
.flexible-col h4 {
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}

.flexible-col p {
    margin-bottom: 1rem;
    color: var(--color-gray-dark);
}

.flexible-col ul,
.flexible-col ol {
    margin: 0 0 1rem 1.5rem;
}

.flexible-col a {
    color: var(--color-secondary);
    font-weight: 600;
}

.flexible-col a:hover {
    color: var(--color-secondary-dark);
}

.organisation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.organisation-card {
    background: var(--color-white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition-smooth);
}

.organisation-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.organisation-avatar {
    width: 110px;
    height: 110px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--color-primary);
    background: var(--color-gray-light);
}

.organisation-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.organisation-meta h3 {
    margin-bottom: 0.35rem;
}

.organisation-meta p {
    margin-bottom: 1rem;
    color: var(--color-gray-dark);
}

.organisation-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.4rem;
    border-radius: 30px;
    background: var(--color-secondary);
    color: var(--color-white);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.organisation-link:hover {
    background: var(--color-secondary-dark);
}

.flexible-map-embed iframe {
    width: 100%;
    min-height: 360px;
    border: 0;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.flexible-empty {
    padding: 4rem 0;
    text-align: center;
    color: var(--color-gray-dark);
}

@media (max-width: 900px) {
    .flexible-col-half,
    .flexible-col-third {
        flex: 1 1 100%;
    }
}

.logo-title{
    font-family: "sirenia", sans-serif !important;
    font-weight: 700;
    font-style: normal;
}

/* ============================================
   FORMS (GLOBAL + CF7)
   ============================================ */

form {
    display: grid;
    gap: 1rem;
}

label {
    font-weight: 600;
    color: var(--color-black);
    letter-spacing: 0.3px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="number"],
input[type="date"],
input[type="search"],
textarea,
select,
.wpcf7-form-control.wpcf7-text,
.wpcf7-form-control.wpcf7-email,
.wpcf7-form-control.wpcf7-tel,
.wpcf7-form-control.wpcf7-number,
.wpcf7-form-control.wpcf7-date,
.wpcf7-form-control.wpcf7-textarea,
.wpcf7-form-control.wpcf7-select {
    width: 100%;
    padding: 0.9rem 1.1rem;
    border-radius: 16px;
    border: 2px solid #e7e7e7;
    background: #fff;
    font-family: var(--font-primary);
    font-size: 1rem;
    color: var(--color-black);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
    transition: var(--transition-smooth);
}

textarea,
.wpcf7-form-control.wpcf7-textarea {
    min-height: 160px;
    resize: vertical;
}

select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--color-secondary) 50%),
        linear-gradient(135deg, var(--color-secondary) 50%, transparent 50%);
    background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 2.4rem;
}

input:focus,
textarea:focus,
select:focus,
.wpcf7-form-control:focus {
    outline: none;
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 4px rgba(0, 61, 165, 0.15);
}

input::placeholder,
textarea::placeholder {
    color: #9a9a9a;
}

input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--color-secondary);
}

.wpcf7 {
    background: #fff;
    border-radius: 24px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
}

.wpcf7-form p {
    margin: 0;
}

.wpcf7 form .wpcf7-response-output {
    margin: 1rem 0 0;
    border-radius: 12px;
}

.wpcf7-not-valid-tip {
    color: #b10000;
    font-weight: 600;
    margin-top: 0.35rem;
}

button,
input[type="submit"],
.wpcf7-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2.2rem;
    border-radius: 999px;
    border: 2px solid var(--color-secondary);
    background: var(--color-secondary);
    color: var(--color-white);
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition-smooth);
}

button:hover,
input[type="submit"]:hover,
.wpcf7-submit:hover {
    background: var(--color-secondary-dark);
    border-color: var(--color-secondary-dark);
    /* transform: translateY(-2px); */
    box-shadow: var(--shadow-md);
}

button:disabled,
input[type="submit"]:disabled,
.wpcf7-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ============================================
   CTA PROTOTYPES
   ============================================ */

.cta-rail {
    position: fixed;
    right: -250px;
    top: 35%;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 1500;
    pointer-events: none;
    transition: right 0.3s ease;
    animation: railIntro 4s ease-in-out;
}

@keyframes railIntro {
    0% {
        right: -250px;
    }
    15% {
        right: 24px;
    }
    85% {
        right: 24px;
    }
    100% {
        right: -250px;
    }
}

.cta-rail:hover {
    right: 24px;
}

.cta-rail::before {
    content: '';
    position: absolute;
    inset: -20px 8px 10px -30px;
    background: linear-gradient(180deg, rgba(0, 61, 165, 0.08) 0%, rgba(0, 61, 165, 0) 100%);
    filter: blur(14px);
    border-radius: 24px;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cta-rail:hover::before {
    opacity: 1;
}

.cta-rail-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.9rem 1rem;
    border-radius: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: var(--shadow-lg);
    border: 2px solid transparent;
    pointer-events: auto;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    backdrop-filter: blur(6px);
}

.cta-rail-btn.primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-black);
}

.cta-rail-btn.secondary {
    background: rgba(255, 255, 255, 0.9);
    color: var(--color-black);
    border-color: rgba(0, 61, 165, 0.2);
}

.cta-rail-btn:hover {
    transform: translateX(-4px);
    box-shadow: var(--shadow-xl);
}

.cta-rail-icon {
    font-size: 1.15rem;
    flex-shrink: 0;
}

.cta-rail-text {
    white-space: nowrap;
}

.cta-hub {
    position: fixed;
    right: 24px;
    bottom: 28px;
    z-index: 1501;
}

.cta-hub-toggle {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: var(--color-secondary);
    color: var(--color-white);
    box-shadow: var(--shadow-xl);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.cta-hub-toggle:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.24);
    background: var(--color-secondary-dark);
}

.cta-hub[data-state="open"] .cta-hub-toggle {
    background: var(--color-primary);
    color: var(--color-black);
}

.cta-hub-panel {
    position: absolute;
    right: 0;
    bottom: 74px;
    width: 260px;
    background: var(--color-white);
    border-radius: 18px;
    box-shadow: var(--shadow-xl);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.cta-hub-panel[hidden] {
    display: none;
}

.cta-hub[data-state="open"] .cta-hub-panel {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.cta-hub-label {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--color-secondary);
    margin-bottom: 0.2rem;
    font-size: 0.75rem;
}

.cta-hub-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    font-weight: 700;
    font-size: 0.85rem;
    border: 2px solid transparent;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-hub-link.primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-black);
}

.cta-hub-link.secondary {
    background: rgba(0, 61, 165, 0.06);
    color: var(--color-black);
    border-color: rgba(0, 61, 165, 0.16);
}

.cta-hub-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.cta-hub-icon {
    font-size: 1.15rem;
}

@media (min-width: 1025px) {
    .cta-hub {
        display: none;
    }
}

@media (max-width: 1024px) {
    .cta-rail {
        display: none;
    }

    .cta-hub {
        right: 16px;
        bottom: 20px;
    }

    .cta-hub-panel {
        width: calc(100vw - 48px);
        right: 0;
    }
}

@media (max-width: 640px) {
    .cta-hub-panel {
        width: calc(100vw - 32px);
    }

    .cta-hub-link {
        padding: 0.85rem 0.9rem;
        font-size: 0.8rem;
    }
}

/* ============================================
   Blog Templates Styles - Compiled from SCSS
   Fête de la Bière WordPress Theme
   ============================================ */

/* Single Post Template Styles */
.single-post-template .post-hero {
  position: relative;
  padding: 10rem 0 4rem;
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-dark) 100%);
  overflow: hidden;
}

.single-post-template .post-hero .post-hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.15;
}

.single-post-template .post-hero .post-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.single-post-template .post-hero .hero-pattern {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255,255,255,.03) 35px, rgba(255,255,255,.03) 70px);
  opacity: 0.5;
}

.single-post-template .post-hero .container {
  position: relative;
  z-index: 10;
  max-width: 900px;
}

.single-post-template .post-hero .post-category-badge {
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-black);
  padding: 0.5rem 1.5rem;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
}

.single-post-template .post-hero .post-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--color-white);
  text-shadow: 3px 3px 10px rgba(0,0,0,0.5);
  line-height: 1.2;
  margin-bottom: 2rem;
  letter-spacing: 1px;
}

.single-post-template .post-hero .post-meta {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: center;
}

.single-post-template .post-hero .post-meta .meta-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-white);
}

.single-post-template .post-hero .post-meta .meta-item > div:first-child {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--color-primary);
}

.single-post-template .post-hero .post-meta .meta-item:nth-child(2) {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  padding: 0.75rem 1.25rem;
  border-radius: 30px;
  font-weight: 600;
}

.single-post-template .post-featured-image {
  margin-top: -6rem;
  position: relative;
  z-index: 20;
}

.single-post-template .post-featured-image .container {
  max-width: 1000px;
}

.single-post-template .post-featured-image .featured-image-wrapper {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 8px solid var(--color-white);
}

.single-post-template .post-featured-image .featured-image-wrapper img {
  width: 100%;
  display: block;
}

.single-post-template .post-content-section {
  padding: 6rem 0;
  background: var(--color-white);
}

.single-post-template .post-content-section .container {
  max-width: 800px;
}

.single-post-template .post-content-section .post-excerpt {
  font-size: 1.3rem;
  line-height: 1.8;
  color: var(--color-gray-dark);
  font-weight: 500;
  padding: 2rem;
  background: var(--color-gray-light);
  border-left: 5px solid var(--color-primary);
  border-radius: 10px;
  margin-bottom: 3rem;
  font-style: italic;
}

.single-post-template .post-content-section .entry-content {
  font-size: 1.15rem;
  line-height: 1.9;
  color: var(--color-black);
}

.single-post-template .post-content-section .entry-content p {
  margin-bottom: 1.5rem;
}

.single-post-template .post-content-section .entry-content h2 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  margin: 3rem 0 1.5rem;
  color: var(--color-secondary);
  letter-spacing: 1px;
}

.single-post-template .post-content-section .entry-content h3 {
  font-size: 1.8rem;
  margin: 2.5rem 0 1.25rem;
  font-weight: 700;
}

.single-post-template .post-content-section .entry-content ul,
.single-post-template .post-content-section .entry-content ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.single-post-template .post-content-section .entry-content ul li,
.single-post-template .post-content-section .entry-content ol li {
  margin-bottom: 0.75rem;
  line-height: 1.8;
}

.single-post-template .post-content-section .entry-content blockquote {
  border-left: 5px solid var(--color-primary);
  background: var(--color-gray-light);
  padding: 2rem;
  margin: 2rem 0;
  font-style: italic;
  font-size: 1.2rem;
  border-radius: 10px;
}

.single-post-template .post-content-section .entry-content img {
  border-radius: 15px;
  margin: 2rem 0;
  box-shadow: var(--shadow-md);
}

.single-post-template .post-content-section .entry-content a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: underline;
}

.single-post-template .post-content-section .entry-content a:hover {
  color: var(--color-secondary);
}

.single-post-template .post-content-section .page-links {
  margin-top: 3rem;
  padding: 2rem;
  background: var(--color-gray-light);
  border-radius: 15px;
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.single-post-template .post-content-section .page-links > span:first-child {
  font-weight: 700;
  margin-right: 1rem;
}

.single-post-template .post-content-section .page-links .page-number {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--color-white);
  border-radius: 8px;
  font-weight: 600;
}

.single-post-template .post-content-section .post-taxonomies {
  margin-top: 4rem;
  padding: 2.5rem;
  background: var(--color-gray-light);
  border-radius: 20px;
}

.single-post-template .post-content-section .post-taxonomies .post-categories h3,
.single-post-template .post-content-section .post-taxonomies .post-tags h3 {
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  color: var(--color-gray-dark);
}

.single-post-template .post-content-section .post-taxonomies .post-categories > div,
.single-post-template .post-content-section .post-taxonomies .post-tags > div {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.single-post-template .post-content-section .post-taxonomies .post-categories {
  margin-bottom: 2rem;
}

.single-post-template .post-content-section .post-taxonomies .post-categories a {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--color-secondary);
  color: var(--color-white);
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.single-post-template .post-content-section .post-taxonomies .post-categories a:hover {
  background: var(--color-secondary-dark);
  transform: translateY(-2px);
}

.single-post-template .post-content-section .post-taxonomies .post-tags a {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  background: var(--color-white);
  border: 2px solid var(--color-primary);
  color: var(--color-black);
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.single-post-template .post-content-section .post-taxonomies .post-tags a:hover {
  background: var(--color-primary);
  transform: translateY(-2px);
}

.single-post-template .post-content-section .post-share {
  margin-top: 3rem;
  padding: 2.5rem;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  border-radius: 20px;
  text-align: center;
}

.single-post-template .post-content-section .post-share h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
}

.single-post-template .post-content-section .post-share > div {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.single-post-template .post-content-section .post-share > div a,
.single-post-template .post-content-section .post-share > div button {
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-smooth);
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.single-post-template .post-content-section .post-share > div a:hover,
.single-post-template .post-content-section .post-share > div button:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  opacity: 0.9;
}

.single-post-template .post-content-section .post-share > div a span,
.single-post-template .post-content-section .post-share > div button span {
  font-size: 1.2rem;
}

.single-post-template .post-content-section .post-share > div .share-facebook {
  background: #1877F2;
  border-color: #1877F2;
  color: white;
}

.single-post-template .post-content-section .post-share > div .share-twitter {
  background: #1DA1F2;
  border-color: #1DA1F2;
  color: white;
}

.single-post-template .post-content-section .post-share > div .share-linkedin {
  background: #0A66C2;
  border-color: #0A66C2;
  color: white;
}

.single-post-template .post-content-section .post-share > div .share-copy {
  background: var(--color-black);
  border-color: var(--color-black);
  color: white;
}

.single-post-template .author-bio-section {
  padding: 6rem 0;
  background: var(--color-gray-light);
}

.single-post-template .author-bio-section .container {
  max-width: 900px;
}

.single-post-template .author-bio-section .author-bio-card {
  background: var(--color-white);
  padding: 3rem;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.single-post-template .author-bio-section .author-bio-card .author-avatar {
  flex-shrink: 0;
}

.single-post-template .author-bio-section .author-bio-card .author-avatar > div {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid var(--color-primary);
  box-shadow: var(--shadow-lg);
}

.single-post-template .author-bio-section .author-bio-card .author-info {
  flex: 1;
  min-width: 300px;
}

.single-post-template .author-bio-section .author-bio-card .author-info h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
}

.single-post-template .author-bio-section .author-bio-card .author-info p {
  color: var(--color-gray-dark);
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  line-height: 1.7;
}

.single-post-template .related-posts-section {
  padding: 6rem 0;
  background: var(--color-white);
}

.single-post-template .related-posts-section .related-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
}

.single-post-template .related-posts-section .related-posts-grid .related-post-card {
  background: var(--color-gray-light);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
}

.single-post-template .related-posts-section .related-posts-grid .related-post-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.single-post-template .related-posts-section .related-posts-grid .related-post-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.single-post-template .related-posts-section .related-posts-grid .related-post-card > div {
  padding: 2rem;
}

.single-post-template .related-posts-section .related-posts-grid .related-post-card > div > div:first-child {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.single-post-template .related-posts-section .related-posts-grid .related-post-card > div h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.3;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}

.single-post-template .related-posts-section .related-posts-grid .related-post-card > div h3 a {
  color: var(--color-black);
}

.single-post-template .related-posts-section .related-posts-grid .related-post-card > div h3 a:hover {
  color: var(--color-primary);
}

.single-post-template .related-posts-section .related-posts-grid .related-post-card > div p {
  color: var(--color-gray-dark);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.single-post-template .related-posts-section .related-posts-grid .related-post-card > div a.btn {
  width: 100%;
  text-align: center;
}

.single-post-template .post-navigation-section {
  padding: 4rem 0;
  background: var(--color-gray-light);
}

.single-post-template .post-navigation-section .container {
  max-width: 1000px;
}

.single-post-template .post-navigation-section .post-navigation-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.single-post-template .post-navigation-section .post-navigation-wrapper .nav-post {
  background: var(--color-white);
  padding: 2rem;
  border-radius: 15px;
  display: block;
  transition: var(--transition-smooth);
}

.single-post-template .post-navigation-section .post-navigation-wrapper .nav-post > div:first-child {
  color: var(--color-gray-dark);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.single-post-template .post-navigation-section .post-navigation-wrapper .nav-post > div:last-child {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--color-black);
}

.single-post-template .post-navigation-section .post-navigation-wrapper .nav-post.nav-prev:hover {
  transform: translateX(-5px);
  box-shadow: var(--shadow-lg);
}

.single-post-template .post-navigation-section .post-navigation-wrapper .nav-post.nav-next {
  text-align: right;
}

.single-post-template .post-navigation-section .post-navigation-wrapper .nav-post.nav-next:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-lg);
}

.single-post-template .comments-section {
  padding: 6rem 0;
  background: var(--color-white);
}

.single-post-template .comments-section .container {
  max-width: 900px;
}

@media (max-width: 768px) {
  .single-post-template .author-bio-card {
    flex-direction: column;
    text-align: center;
  }

  .single-post-template .post-navigation-wrapper {
    grid-template-columns: 1fr;
  }

  .single-post-template .post-hero {
    padding: 8rem 0 4rem !important;
  }

  .single-post-template .post-content-section .entry-content {
    padding: 0 1rem;
  }
}

/* Blog Archive Template Styles */
.blog-archive-main .blog-header {
  padding: 10rem 0 6rem;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-primary) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-top: 70px;
}

.blog-archive-main .blog-header .hero-pattern {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255,255,255,.05) 35px, rgba(255,255,255,.05) 70px);
  opacity: 0.5;
}

.blog-archive-main .blog-header > div:not(.container):not(.hero-pattern) {
  position: absolute;
  animation: float 3s ease-in-out infinite;
}

.blog-archive-main .blog-header > div:not(.container):not(.hero-pattern):first-of-type {
  top: 3rem;
  left: 10%;
  font-size: 3rem;
  opacity: 0.2;
}

.blog-archive-main .blog-header > div:not(.container):not(.hero-pattern):nth-of-type(2) {
  bottom: 4rem;
  right: 12%;
  font-size: 2.5rem;
  opacity: 0.15;
  animation-delay: 1.5s;
}

.blog-archive-main .blog-header .container {
  position: relative;
  z-index: 10;
}

.blog-archive-main .blog-header .section-title {
  color: var(--color-white);
  text-shadow: 3px 3px 0 var(--color-secondary);
  margin-bottom: 1rem;
}

.blog-archive-main .blog-header > div > div > p {
  font-size: 1.3rem;
  color: var(--color-black);
  max-width: 700px;
  margin: 0 auto;
}

.blog-archive-main .blog-header form[role="search"] {
  max-width: 500px;
  margin: 3rem auto 0;
  display: flex;
  gap: 0.5rem;
}

.blog-archive-main .blog-header form[role="search"] input[type="search"] {
  flex: 1;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  box-shadow: var(--shadow-md);
}

.blog-archive-main .blog-header form[role="search"] input[type="search"]:focus {
  outline: 2px solid var(--color-secondary);
}

.blog-archive-main .blog-header form[role="search"] button {
  white-space: nowrap;
  background: var(--color-secondary);
  color: var(--color-white);
  border-color: var(--color-secondary);
}

@media (max-width: 768px) {
  .blog-archive-main .blog-header {
    padding: 8rem 0 4rem;
  }
}

.blog-archive-main .blog-content {
  padding: 6rem 0;
  background: var(--color-white);
}

.blog-archive-main .blog-content .featured-post {
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-dark) 100%);
  border-radius: 30px;
  overflow: hidden;
  margin-bottom: 4rem;
  box-shadow: var(--shadow-xl);
  position: relative;
  animation: fadeInUp 0.6s ease;
}

.blog-archive-main .blog-content .featured-post > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 500px;
}

@media (max-width: 768px) {
  .blog-archive-main .blog-content .featured-post > div {
    grid-template-columns: 1fr;
  }
}

.blog-archive-main .blog-content .featured-post .featured-image {
  position: relative;
  overflow: hidden;
}

.blog-archive-main .blog-content .featured-post .featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-archive-main .blog-content .featured-post .featured-image .featured-badge {
  position: absolute;
  top: 2rem;
  left: 2rem;
  background: var(--color-primary);
  color: var(--color-black);
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: var(--shadow-md);
}

.blog-archive-main .blog-content .featured-post .featured-content {
  padding: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--color-white);
}

@media (max-width: 768px) {
  .blog-archive-main .blog-content .featured-post .featured-content {
    padding: 2rem;
  }
}

.blog-archive-main .blog-content .featured-post .featured-content .post-meta {
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.blog-archive-main .blog-content .featured-post .featured-content h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--color-white);
}

.blog-archive-main .blog-content .featured-post .featured-content h2 a {
  color: var(--color-white);
}

.blog-archive-main .blog-content .featured-post .featured-content h2 a:hover {
  text-shadow: 0 0 20px rgba(253, 181, 21, 0.5);
}

.blog-archive-main .blog-content .featured-post .featured-content p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.blog-archive-main .blog-content .featured-post .featured-content .btn {
  background: var(--color-primary);
  color: var(--color-black);
  border-color: var(--color-primary);
}

.blog-archive-main .blog-content .blog-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 3rem;
}

@media (max-width: 768px) {
  .blog-archive-main .blog-content .blog-posts-grid {
    grid-template-columns: 1fr;
  }
}

.blog-archive-main .blog-content .blog-posts-grid .blog-post-card {
  background: var(--color-gray-light);
  border-radius: 25px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.blog-archive-main .blog-content .blog-posts-grid .blog-post-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.blog-archive-main .blog-content .blog-posts-grid .blog-post-card:hover .post-thumbnail img {
  transform: scale(1.1);
}

.blog-archive-main .blog-content .blog-posts-grid .blog-post-card .post-thumbnail {
  position: relative;
  overflow: hidden;
  height: 280px;
}

.blog-archive-main .blog-content .blog-posts-grid .blog-post-card .post-thumbnail a {
  display: block;
  height: 100%;
}

.blog-archive-main .blog-content .blog-posts-grid .blog-post-card .post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-archive-main .blog-content .blog-posts-grid .blog-post-card .post-thumbnail .post-category-badge {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: var(--color-primary);
  color: var(--color-black);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  box-shadow: var(--shadow-md);
}

.blog-archive-main .blog-content .blog-posts-grid .blog-post-card .post-content {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-archive-main .blog-content .blog-posts-grid .blog-post-card .post-content .post-meta {
  color: var(--color-gray-dark);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.blog-archive-main .blog-content .blog-posts-grid .blog-post-card .post-content .post-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.blog-archive-main .blog-content .blog-posts-grid .blog-post-card .post-content .post-title a {
  color: var(--color-black);
}

.blog-archive-main .blog-content .blog-posts-grid .blog-post-card .post-content .post-title a:hover {
  color: var(--color-primary);
}

.blog-archive-main .blog-content .blog-posts-grid .blog-post-card .post-content p {
  color: var(--color-gray-dark);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex: 1;
}

.blog-archive-main .blog-content .blog-posts-grid .blog-post-card .post-content .btn {
  width: 100%;
  text-align: center;
}

.blog-archive-main .blog-content .blog-pagination {
  margin-top: 5rem;
  text-align: center;
}

.blog-archive-main .blog-content .blog-pagination .pagination {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.blog-archive-main .blog-content .blog-pagination .pagination .page-numbers {
  display: inline-block;
  padding: 1rem 1.5rem;
  background: var(--color-gray-light);
  color: var(--color-black);
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition-smooth);
  border: 2px solid transparent;
}

.blog-archive-main .blog-content .blog-pagination .pagination .page-numbers:hover,
.blog-archive-main .blog-content .blog-pagination .pagination .page-numbers.current {
  background: var(--color-primary);
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

.blog-archive-main .blog-content .blog-pagination .pagination .page-numbers.dots {
  background: transparent;
  border: none;
}

.blog-archive-main .blog-content .blog-pagination .pagination .page-numbers.dots:hover {
  transform: none;
}

.blog-archive-main .blog-content > div > div:last-child {
  text-align: center;
  padding: 6rem 2rem;
  background: var(--color-gray-light);
  border-radius: 30px;
}

.blog-archive-main .blog-content > div > div:last-child > div:first-child {
  font-size: 5rem;
  margin-bottom: 2rem;
  opacity: 0.3;
}

.blog-archive-main .blog-content > div > div:last-child h2 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--color-black);
}

.blog-archive-main .blog-content > div > div:last-child p {
  font-size: 1.1rem;
  color: var(--color-gray-dark);
  margin-bottom: 2rem;
}

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

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
