:root {
    --light-brown: #f8f4ec;
    --light-yellow: #fefbf0;
    --medium-brown: #e8dfca;
    --dark-brown: #7a6240;
    --accent-brown: #a68a5f;
    --text-color: #2c2416;
    --text-light: #5a523f;
    --white: #ffffff;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-hover: rgba(0, 0, 0, 0.2);
    --border-radius: clamp(20px, 2vw, 30px);
    --border-radius-small: clamp(10px, 1vw, 15px);
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

html {
    font-size: clamp(16px, 1.5vw, 20px);
    scroll-behavior: smooth;
}

body {
    font-family: 'Crimson Text', serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--light-brown);
    overflow-x: hidden;
    text-align: justify;
    min-width: 320px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Crimson Text', serif;
    font-weight: 700;
    line-height: 1.3;
    text-align: left;
}

p, li, span, div {
    text-align: justify;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

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

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.05); }
}

/* ── Language toggle ── */
.language-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.5s ease;
    pointer-events: none;
}

.language-toggle.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.language-toggle.hidden {
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 17px 20px;
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--dark-brown);
    border: 2px solid var(--accent-brown);
    border-radius: var(--border-radius);
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    box-shadow: 0 6px 12px var(--shadow);
    backdrop-filter: blur(10px);
    min-width: 120px;
    justify-content: center;
}

.lang-btn:hover {
    background-color: var(--white);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 20px var(--shadow-hover);
}

.lang-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.signup-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background-color: var(--dark-brown);
    color: var(--white);
    border-radius: var(--border-radius);
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 6px 12px var(--shadow);
    transition: var(--transition);
    border: 2px solid var(--accent-brown);
}

.signup-btn:hover {
    background-color: var(--accent-brown);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 20px var(--shadow-hover);
}

/* ── Preloader ── */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--light-brown);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 6px solid var(--medium-brown);
    border-top-color: var(--accent-brown);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* ── Video loading ── */
.video-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 5;
    display: none;
}

.video-container.loading .video-loading { display: block; }
.video-container.loading .play-button   { opacity: 0.5; }

/* ── Layout ── */
.container {
    width: 100%;
    max-width: min(1400px, 95vw);
    margin: 0 auto;
    padding: 0 clamp(1rem, 3vw, 3rem);
    position: relative;
}

section {
    padding: clamp(3rem, 16vh, 7rem) 0;
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

section.animated { opacity: 1; }
section:nth-child(even)           { background-color: var(--light-yellow); }
section:nth-child(odd):not(.hero) { background-color: var(--light-brown); }

/* ── Hero ── */
.hero {
    height: 100vh;
    min-height: 600px;
    max-height: 1200px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
    padding: 0;
    opacity: 1;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.8s ease-in-out;
    transform: scale(1.25);
    animation: zoomEffect 25s infinite;
}

.slide.active {
    opacity: 1;
    transform: scale(1.05);
}

@keyframes zoomEffect {
    0%   { transform: scale(1.25); }
    50%  { transform: scale(1.05); }
    100% { transform: scale(1.25); }
}

/* ── Hero overlay — reversed split ── */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.55));
    z-index: 2;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    flex-direction: row-reverse;
    padding: 0;
}

/* ── Hero content ── */
.hero-content {
    position: relative;
    z-index: 3;
    flex: 1;
    min-width: 0;
    padding: clamp(2rem, 4vw, 3rem) clamp(3rem, 6vw, 6rem) clamp(2rem, 4vw, 3rem) clamp(2rem, 3vw, 3rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    animation: fadeInUp 1s ease 0.3s both;
}

.hero-content-inner {
    background-color: rgba(0, 0, 0, 0.42);
    border-radius: var(--border-radius);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: clamp(1.5rem, 3vw, 2.5rem);
    max-width: min(900px, 100%);
    width: 100%;
    text-align: left;
}

.hero-content-inner .btn {
    align-self: flex-start;
    display: inline-block;
    margin-top: 0.5rem;
}

.hero h1 {
    font-size: clamp(2.5rem, 3.5vw, 5.2rem);
    margin-bottom: clamp(1rem, 2vh, 1.5rem);
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.7);
    font-weight: 700;
    line-height: 1.2;
    text-align: left;
    animation: fadeInUp 0.8s ease 0.5s both;
}

.hero-subtitle {
    display: flex;
    flex-direction: column;
    gap: clamp(1rem, 2vh, 1.5rem);
    margin-bottom: clamp(1.2rem, 4vh, 3rem);
    animation: fadeInUp 0.8s ease 0.7s both;
}

.hero-subtitle p {
    font-size: clamp(1rem, 1.2vw, 1.6rem);
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
    max-width: min(800px, 100%);
    text-align: justify;
    line-height: 1.6;
}

/* ── Winners panel ── */
.winners-panel {
    flex-shrink: 0;
    width: clamp(280px, 32vw, 420px);
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    border-right: 1px solid rgba(212, 175, 55, 0.3);
    border-left: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(1.2rem, 2.5vh, 2rem) clamp(1rem, 2vw, 1.8rem);
    gap: clamp(0.8rem, 1.5vh, 1.2rem);
    z-index: 3;
}

.winners-panel-label {
    font-family: 'Crimson Text', serif;
    font-size: clamp(0.75rem, 1vw, 1rem);
    letter-spacing: 5px;
    text-transform: uppercase;
    color: #d4af37;
    text-align: center;
    font-weight: 700;
}

.winners-panel-hint {
    font-size: clamp(0.7rem, 0.85vw, 0.85rem);
    color: rgba(212, 175, 55, 0.7);
    text-align: center;
    line-height: 1.5;
    font-style: italic;
}

/* ── Carousel track ── */
.winners-panel-track-wrap {
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    height: clamp(340px, 58vh, 560px);
}

.winners-panel-track {
    display: flex;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.winners-panel-card {
    flex-shrink: 0;
    width: 100%;
    height: 100%;
    display: block;
    text-decoration: none;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: box-shadow 0.3s ease;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.6);
    background-color: #1a1208;
}

.winners-panel-card:hover {
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.75);
}

/*
 * Blurred ambient backdrop — same image as the foreground, scaled up and
 * blurred to fill empty space for any aspect ratio. Kept as a sibling (not
 * parent) of the foreground so filter: blur() does not cascade down.
 */
.winners-panel-card-bg {
    position: absolute;
    inset: -15px; /* overshoot prevents soft blur edges showing at card border */
    background-size: cover;
    background-position: center;
    filter: blur(18px) brightness(0.45) saturate(1.4);
    z-index: 0;
}

/*
 * Clean contained foreground — contain works for every aspect ratio:
 * portrait book covers, landscape video thumbnails, square photobooks.
 */
.winners-panel-card-img {
    position: absolute;
    inset: 0;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: transparent;
    z-index: 1;
    transition: transform 0.4s ease;
}

.winners-panel-card:hover .winners-panel-card-img {
    transform: scale(1.04);
}

/* Play button overlay for video cards */
.winners-panel-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.25);
    z-index: 2;
}

.winners-panel-play i {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    color: rgba(255, 255, 255, 0.9);
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

/* Card type badge */
.winners-panel-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: #d4af37;
    font-size: 0.6rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Crimson Text', serif;
    z-index: 3;
}

/* Dots */
.winners-panel-dots {
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: center;
}

.winners-panel-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    border: none;
    padding: 0;
}

.winners-panel-dot.active {
    background: #d4af37;
    transform: scale(1.3);
}

/* ── Buttons ── */
.btn {
    display: inline-block;
    padding: clamp(0.5rem, 1.5vh, 1.2rem) clamp(1.5rem, 3vw, 3rem);
    background-color: var(--dark-brown);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    font-size: clamp(1rem, 1.3vw, 1.4rem);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    box-shadow: 0 6px 12px var(--shadow);
    letter-spacing: 0.5px;
    min-width: max-content;
}

.btn:hover {
    background-color: var(--accent-brown);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 20px var(--shadow-hover);
    animation: pulse 1s ease infinite;
}

/* ── Share memories ── */
.shareMemoriesRightNow {
    display: flex;
    flex-direction: row;
    position: absolute;
    bottom: -150px;
    right: 0;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

#shareMemoriesQuestion {
    font-size: 1.6rem;
    font-weight: 700;
    font-style: italic;
    letter-spacing: 0.8px;
    line-height: 45px;
}

.share-memories-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background-color: var(--dark-brown);
    color: var(--white);
    border-radius: var(--border-radius);
    font-family: 'Crimson Text';
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-decoration: none;
    box-shadow: 0 6px 12px var(--shadow);
    transition: var(--transition);
    border: 2px solid var(--dark-brown);
    cursor: pointer;
    margin-left: 10px;
    min-width: fit-content;
}

.share-memories-btn:hover {
    background-color: var(--accent-brown);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 20px var(--shadow-hover);
}

/* ── Content cards ── */
.content-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(500px, 100%), 1fr));
    gap: clamp(1.5rem, 3vw, 3rem);
    margin-top: 5rem;
}

.content-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: clamp(2rem, 3vw, 3rem) clamp(1.5rem, 2.5vw, 2.5rem);
    text-align: center;
    box-shadow: 0 10px 30px var(--shadow);
    transition: var(--transition);
    border: 2px solid var(--medium-brown);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.content-card:nth-child(1) { animation-delay: 0.2s; }
.content-card:nth-child(2) { animation-delay: 0.4s; }
.content-card:nth-child(3) { animation-delay: 0.6s; }
.content-card:nth-child(4) { animation-delay: 0.8s; }

.content-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 20px 40px var(--shadow-hover);
    border-color: var(--accent-brown);
}

.card-icon {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    color: var(--accent-brown);
    margin-bottom: clamp(1rem, 2vh, 1.5rem);
    height: clamp(60px, 10vh, 80px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.content-card h3 {
    font-size: clamp(1.5rem, 2vw, 1.8rem);
    margin-bottom: clamp(1rem, 2vh, 1.5rem);
    color: var(--dark-brown);
    text-align: center;
}

.content-card p {
    font-size: clamp(1rem, 1.3vw, 1.2rem);
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: clamp(1.5rem, 3vh, 2rem);
    text-align: center;
}

.content-section {
    display: flex;
    align-items: center;
    gap: clamp(2rem, 5vw, 5rem);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
    padding-bottom: 4rem;
    border-bottom: 1px solid var(--accent-brown);
}

.content-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.content-section.reverse { flex-direction: row-reverse; }

.content-text,
.content-media {
    flex: 1;
    min-width: 0;
}

.content-text h2 {
    font-size: clamp(1.8rem, 3vw, 3rem);
    margin-bottom: clamp(1.5rem, 3vh, 2rem);
    color: var(--dark-brown);
    position: relative;
    padding-bottom: 1rem;
    animation: fadeInUp 0.6s ease both;
}

.content-text h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: clamp(50px, 8vw, 80px);
    height: 4px;
    background-color: var(--accent-brown);
    border-radius: 2px;
    animation: widthGrow 0.8s ease 0.3s both;
}

@keyframes widthGrow {
    from { width: 0; }
    to   { width: clamp(50px, 8vw, 80px); }
}

.content-text p {
    font-size: clamp(1.1rem, 1.5vw, 1.2rem);
    line-height: 1.5;
    color: var(--text-light);
    margin-bottom: clamp(1.2rem, 2vh, 1.8rem);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.content-text p:nth-child(1) { animation-delay: 0.2s; }
.content-text p:nth-child(2) { animation-delay: 0.4s; }
.content-text p:nth-child(3) { animation-delay: 0.6s; }

/* ── Video container ── */
.video-container {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 15px 35px var(--shadow);
    background-color: var(--medium-brown);
    aspect-ratio: 16/9;
    border: clamp(4px, 0.8vw, 8px) solid var(--white);
    transform: perspective(1000px) rotateY(0deg);
    transition: all 0.5s ease;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.5s both;
    min-width: 0;
}

.video-container:hover {
    transform: perspective(1000px) rotateY(5deg) scale(1.02);
    box-shadow: 0 25px 50px var(--shadow-hover);
}

.video-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: all 0.5s ease;
}

.video-container:hover .video-cover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    z-index: 3;
}

.video-placeholder:hover { background-color: transparent; }

.play-button {
    width: clamp(60px, 10vw, 100px);
    height: clamp(60px, 10vw, 100px);
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-brown);
    font-size: clamp(1.5rem, 3vw, 3rem);
    transition: var(--transition);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    z-index: 4;
    animation: float 3s ease-in-out infinite;
}

.video-placeholder:hover .play-button {
    transform: scale(1.15);
    background-color: var(--white);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
    animation: pulse 0.5s ease;
}

.video-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.4));
    border-radius: var(--border-radius);
    z-index: 2;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.video-container:hover::before { opacity: 0.7; }

/* ── Video popup ── */
.video-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.video-popup.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.popup-content {
    position: relative;
    width: 95%;
    max-width: min(1400px, 95vw);
    background-color: #000;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.4s ease;
}

.close-popup {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: clamp(40px, 5vw, 50px);
    height: clamp(40px, 5vw, 50px);
    border-radius: 50%;
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    cursor: pointer;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.close-popup:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg) scale(1.1);
}

.popup-video {
    width: 100%;
    display: block;
    border-radius: var(--border-radius-small);
}

/* ── Video end overlay ── */
.video-end-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(122, 98, 64, 0.97) 0%, rgba(90, 69, 48, 0.97) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
    z-index: 100;
    padding: 2rem;
    text-align: center;
}

.video-end-overlay.active {
    opacity: 1;
    visibility: visible;
}

.video-end-overlay h4 {
    color: var(--white);
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    margin-bottom: clamp(0.5rem, 1vh, 1rem);
    text-align: center;
    animation: fadeInUp 0.5s ease 0.2s both;
}

.video-end-overlay p {
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(0.9rem, 1.3vw, 1.1rem);
    margin-bottom: clamp(1.2rem, 2vh, 1.8rem);
    max-width: 400px;
    text-align: center;
    animation: fadeInUp 0.5s ease 0.3s both;
}

.video-end-overlay .btn-overlay-register {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: clamp(0.7rem, 1.2vh, 1rem) clamp(1.5rem, 3vw, 2.5rem);
    background: var(--white);
    color: var(--dark-brown);
    border: none;
    border-radius: var(--border-radius);
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.5s ease 0.4s both, pulse 2s ease-in-out 1s infinite;
}

.video-end-overlay .btn-overlay-register:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    animation: none;
}

.video-end-overlay .btn-replay {
    margin-top: clamp(0.8rem, 1.5vh, 1.2rem);
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.6);
    color: var(--white);
    padding: clamp(0.5rem, 1vh, 0.7rem) clamp(1.2rem, 2vw, 1.8rem);
    border-radius: var(--border-radius-small);
    font-size: clamp(0.85rem, 1.1vw, 1rem);
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    animation: fadeInUp 0.5s ease 0.5s both;
}

.video-end-overlay .btn-replay:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--white);
    transform: scale(1.05);
}

/* ── Footer ── */
footer {
    background-color: var(--dark-brown);
    color: var(--white);
    padding: clamp(3rem, 6vh, 4rem) 0 clamp(2rem, 4vh, 3rem);
    opacity: 0;
    animation: fadeIn 1s ease 0.3s forwards;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: clamp(2rem, 4vw, 8rem);
    margin-bottom: clamp(1.5rem, 3vh, 2rem);
}

.footer-section {
    flex: 1;
    min-width: min(250px, 100%);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.footer-section:nth-child(1) { animation-delay: 0.4s; }
.footer-section:nth-child(2) { animation-delay: 0.5s; }
.footer-section:nth-child(3) { animation-delay: 0.6s; }

.footer-section h3 {
    font-size: clamp(1.2rem, 1.8vw, 1.5rem);
    margin-bottom: clamp(1rem, 2vh, 1.5rem);
    color: var(--light-yellow);
    position: relative;
    padding-bottom: 0.8rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: clamp(30px, 5vw, 50px);
    height: 3px;
    background-color: var(--accent-brown);
    border-radius: 2px;
}

.footer-section p,
.footer-section li {
    font-size: clamp(1rem, 1.3vw, 1.2rem);
    line-height: 1.8;
    margin-bottom: clamp(0.8rem, 1.5vh, 1rem);
    color: rgba(255, 255, 255, 0.85);
}

.footer-section ul { list-style: none; }

.footer-section ul a {
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.footer-section li {
    margin-bottom: 0.8rem;
    transform: translateX(0);
    transition: var(--transition);
}

.footer-section li:hover       { transform: translateX(10px); }
.footer-section li:hover a     { color: var(--light-yellow); }

.footer-bottom {
    text-align: center;
    padding-top: clamp(1.5rem, 3vh, 2rem);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
    color: rgba(255, 255, 255, 0.7);
    opacity: 0;
    animation: fadeIn 0.8s ease 0.8s forwards;
}

/* ── Scroll animate ── */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.scroll-animate.animated {
    opacity: 1;
    transform: translateY(0);
}

/* ── CTA Registration ── */
.cta-registration {
    margin-top: clamp(2rem, 4vh, 3rem);
    margin-bottom: clamp(2rem, 4vh, 3rem);
    padding: clamp(2rem, 4vw, 3.5rem);
    background: linear-gradient(135deg, var(--dark-brown) 0%, #5a4530 50%, var(--accent-brown) 100%);
    border-radius: var(--border-radius);
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease 0.8s forwards;
}

.cta-registration::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: shimmer 8s linear infinite;
}

@keyframes shimmer {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.cta-registration-content { position: relative; z-index: 2; }

.cta-registration h3 {
    color: var(--white);
    font-size: clamp(1.6rem, 2.5vw, 2.2rem);
    margin-bottom: clamp(0.8rem, 1.5vh, 1.2rem);
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.cta-registration p {
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1rem, 1.3vw, 1.2rem);
    margin-bottom: clamp(1.5rem, 2.5vh, 2rem);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.cta-registration .btn-register {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: clamp(0.8rem, 1.5vh, 1.2rem) clamp(2rem, 4vw, 3.5rem);
    background: linear-gradient(135deg, var(--light-yellow) 0%, var(--white) 100%);
    color: var(--dark-brown);
    border: none;
    border-radius: var(--border-radius);
    font-size: clamp(1rem, 1.4vw, 1.3rem);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-registration .btn-register:hover {
    transform: translateY(-5px) scale(1.08);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, var(--white) 0%, var(--light-yellow) 100%);
}

.cta-registration .btn-register i {
    font-size: 1.1em;
    transition: transform 0.3s ease;
}

.cta-registration .btn-register:hover i { transform: translateX(5px); }

.ctaBtn-container { text-align: center; }

.cta-notice {
    margin-top: 15px;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.4;
}

/* ── Social icons ── */
.social-icons {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icons a {
    width: 40px;
    height: 40px;
    display: flex;
    text-decoration: none !important;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.social-icons a i {
    font-size: 1.3rem;
    color: var(--white);
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--light-yellow);
    transform: translateY(-4px);
}

.social-icons a:hover i { color: var(--dark-brown); }

/* ── Legal links ── */
#footerLegalLink {
    text-decoration: none;
    color: inherit;
}

#footerLegalLink:hover { text-decoration: underline; }

#footerPrivacyLink,
#footerTermsLink,
#footerCookieLink {
    text-decoration: none;
    color: var(--light-brown);
}

/* ── Memories modal ── */
.memories-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.3s ease;
}

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

.modal-content {
    background-color: var(--white);
    border-radius: var(--border-radius);
    width: 100%;
    max-width: 900px;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.4s ease;
    position: relative;
    scale: 0.95;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--medium-brown);
}

.modal-header h3 {
    color: var(--dark-brown);
    font-size: clamp(1.3rem, 2vw, 1.7rem);
    margin: 0;
}

.close-modal {
    background: transparent;
    border: none;
    color: var(--dark-brown);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-modal:hover {
    background-color: var(--light-brown);
    transform: rotate(90deg);
}

.form-group { margin-bottom: 1.5rem; }

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark-brown);
    font-weight: 600;
    font-size: 1.05rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid var(--medium-brown);
    border-radius: var(--border-radius-small);
    font-family: 'Crimson Text', serif;
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--light-yellow);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-brown);
    box-shadow: 0 0 0 3px rgba(166, 138, 95, 0.2);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-note {
    font-size: 1rem;
    color: var(--text-light);
    margin-top: 0.5rem;
    font-style: italic;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

.btn-submit {
    padding: 0.8rem 2rem;
    background-color: var(--dark-brown);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

.btn-submit:hover {
    background-color: var(--accent-brown);
    transform: translateY(-2px);
}

.btn-cancel {
    padding: 0.8rem 1.5rem;
    background-color: transparent;
    color: var(--dark-brown);
    border: 2px solid var(--medium-brown);
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

.btn-cancel:hover {
    background-color: var(--light-brown);
    border-color: var(--dark-brown);
}

.form-message {
    padding: 0.8rem 1rem;
    border-radius: var(--border-radius-small);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    display: none;
}

.form-message.success {
    background-color: rgba(76, 175, 80, 0.1);
    color: #2e7d32;
    border: 1px solid #4caf50;
    display: block;
}

.form-message.error {
    background-color: rgba(244, 67, 54, 0.1);
    color: #c62828;
    border: 1px solid #f44336;
    display: block;
}

.form-message.info {
    background-color: rgba(33, 150, 243, 0.1);
    color: #1565c0;
    border: 1px solid #2196f3;
    display: block;
}

/* ── Responsive ── */
@media screen and (max-width: 1425px) {
    .container {
        max-width: min(1300px, 98vw);
        padding: 0 clamp(0.8rem, 2.5vw, 2.5rem);
    }
    .content-cards {
        grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    }
}

@media screen and (max-width: 1220px) {
    html { font-size: clamp(14px, 1.8vw, 18px); }
    .container {
        max-width: min(1200px, 99vw);
        padding: 0 clamp(0.5rem, 2vw, 2rem);
    }
    .content-section {
        flex-direction: column;
        gap: clamp(2rem, 4vh, 3rem);
    }
    .content-text,
    .content-media { width: 100%; }
    .winners-panel {
        width: clamp(220px, 26vw, 320px);
    }
    .hero-content-inner { max-width: min(680px, 100%); }
}

@media screen and (max-width: 1067px) {
    html { font-size: clamp(13px, 2vw, 16px); }
    .container {
        max-width: 100vw;
        padding: 0 clamp(0.5rem, 1.5vw, 1.5rem);
    }
    .hero {
        min-height: 500px;
        max-height: 800px;
    }
    .content-cards {
        grid-template-columns: 1fr;
        gap: clamp(1rem, 2vh, 1.5rem);
    }
    .btn {
        padding: clamp(0.7rem, 1.2vh, 0.9rem) clamp(1.5rem, 2.5vw, 2rem);
        font-size: clamp(0.9rem, 1.1vw, 1.1rem);
    }
    .lang-btn {
        min-width: 100px;
        padding: 10px 16px;
    }
    .winners-panel {
        width: clamp(180px, 22vw, 240px);
    }
    .hero-content-inner { max-width: 100%; }
}

@media screen and (max-width: 800px) {
    body { overflow-x: auto; }
    .container { padding: 0 1rem; }
    section { padding: clamp(2rem, 6vh, 4rem) 0; }
    .hero-content { padding: 1.5rem; }
    .hero h1 { font-size: clamp(2rem, 4vw, 2.5rem); }
    .play-button {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    p, li, span {
        font-size: max(12px, 1.6vw) !important;
        line-height: 1.6 !important;
    }
    h2 { font-size: max(1.5rem, 2.5vw) !important; }
    h3 { font-size: max(1.2rem, 2vw) !important; }
}

@media (max-width: 768px) {
    .winners-panel { display: none; }
    .hero-overlay {
        flex-direction: row;
        justify-content: center;
    }
    .footer-content {
        flex-direction: column;
        gap: clamp(1.5rem, 3vh, 2.5rem);
    }
    .footer-section { min-width: 100%; }
    .language-toggle { top: 15px; right: 15px; }
    .lang-btn {
        padding: 8px 14px;
        font-size: 0.9rem;
        min-width: 90px;
    }
    .cta-registration { padding: clamp(1.5rem, 3vw, 2rem); }
    .cta-registration h3 { font-size: clamp(1.3rem, 4vw, 1.6rem); }
    .cta-registration .btn-register {
        padding: 0.8rem 1.8rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 600px) {
    .memories-modal { padding: 0.5rem; }
    .modal-content { padding: 1.5rem; }
    .form-actions { flex-direction: column; }
    .btn-submit,
    .btn-cancel { width: 100%; }
}

@media (max-width: 480px) {
    .container { padding: 0 0.8rem; }
    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    .content-card { padding: 1.5rem 1.2rem; }
    .lang-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
        min-width: 80px;
    }
}

/* ── Zoom level overrides ── */
body.zoom-level-high .content-section  { flex-direction: column; }
body.zoom-level-high .content-cards    { grid-template-columns: 1fr; }
body.zoom-level-high .footer-content   { flex-direction: column; }
body.zoom-level-high .winners-panel,
body.zoom-level-extreme .winners-panel { display: none; }


/* NEW STYLES FOR VIDEO CARD LANDING */
.featured-video-card {
    width: 100%;
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(44, 36, 22, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    cursor: pointer;
    padding: 10px;
}

.featured-video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(44, 36, 22, 0.3);
}

.featured-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 15px !important;
}

.featured-thumbnail video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 15px !important;
}

.thumbnail-overlay {
    position: absolute;
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 2;
    border-radius: 15px !important;
    transition: background 0.3s ease;
}

.featured-video-card:hover .thumbnail-overlay {
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.8) 100%);
    border-radius: 15px !important;
}

.play-button {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.play-button i {
    color: #866334;
    font-size: 2.5rem;
    margin-left: 3px;
}

.featured-video-card:hover .play-button {
    transform: scale(1.1);
}

.video-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    text-align: center;
    z-index: 3;
    pointer-events: none;
}

.video-title h3 {
    margin: 0;
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    color: #ffffff;
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    text-align: center;
}