:root {
    --text-primary: #3D5A30;
    /* Olive Green */
    --bg-color: #FBFBF9;
    /* Warm White */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

html {
    box-sizing: border-box;
    font-size: 16px;
    /* Base font size */
    overflow-x: hidden;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    overflow-x: hidden;

    /* --- Menu Overlay --- */
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: var(--bg-color);
        z-index: 90;
        /* Below header button but above content */
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .menu-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }

    .menu-list {
        list-style: none;
        padding: 0;
        margin: 0;
        text-align: center;
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    .menu-link {
        font-family: var(--font-heading);
        font-size: 2rem;
        font-weight: 600;
        text-decoration: none;
        color: var(--text-primary);
        transition: color 0.2s ease;
    }

    .menu-link:hover {
        color: #666;
        /* Subtle hover state */
    }

    color: var(--text-primary);
    font-family: var(--font-body);
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

/* --- Header / Menu --- */
.header {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 100;
}

.menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
}

.line {
    width: 28px;
    height: 2px;
    background-color: #1a1a1a;
    /* Dark almost black for contrast */
    border-radius: 1px;
    transition: all 0.3s ease;
}

/* --- Main Layout: Mobile First (Column) --- */
.content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* On mobile, we might need closer spacing */
    gap: 3rem;
    padding: 1rem;
    padding-top: 4rem;
    /* Reduced from 4rem to move content up slightly */
}

/* --- Brand Section --- */
.brand-container {
    display: flex;
    flex-direction: column;
    /* Title first, Logo second on Mobile */
    align-items: center;
    gap: 1.5rem;
}

/* The stacked textual title "AI Novel Prize" */
.brand-title {
    --title-size: 2rem;
    font-family: var(--font-heading);
    font-size: var(--title-size);
    font-weight: 700;
    line-height: 0.9;
    /* Much tighter spacing as requested (was 1.2) */
    margin: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Ensure the words themselves are centered in the stack */
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.logo-box {
    /* Height of 3 lines at 0.9 line-height = 2.7 */
    /* Height of 3 lines at 0.9 line-height = 2.7 */
    /* We assume the logo has internal whitespace, so we scale it up */
    /* Multiplier 3.1 to match visual size */
    width: calc(2rem * 3.1);
    height: calc(2rem * 3.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

/* --- Award Statement --- */
.award-statement {
    font-family: var(--font-body);
    font-size: 1.125rem;
    /* ~18px */
    font-weight: 500;
    line-height: 2.0;
    /* Increased line-height as requested */
    text-align: center;
    color: #363636;
    margin: 0;
    max-width: 90%;
    /* Prevent hitting edges on mobile */
    font-family: 'Satoshi', sans-serif;
}

/* --- Desktop / Tablet Style (Min-width 768px) --- */
@media (min-width: 768px) {
    .header {
        top: 3rem;
        right: 3rem;
    }

    .menu-btn .line {
        width: 32px;
    }

    .content-wrapper {
        gap: 5rem;
        /* More breathing room on desktop */
        padding-top: 5rem;
        /* Reduced from 8rem to move content up */
    }

    .brand-container {
        flex-direction: row;
        /* Side by side on Desktop */
        align-items: center;
        gap: 3rem;
    }

    .brand-title {
        --title-size: 2.75rem;
        font-size: var(--title-size);
        /* Override previous right-align to ensure centering persists */
        text-align: center;
        /* On desktop row, Title aligns right towards logo */
        align-items: center;
        /* Align words to the right edge against the logo */
        line-height: 0.9;
        /* Keep the tight spacing on desktop too */
    }

    .logo-box {
        width: calc(2.75rem * 3.1);
        height: calc(2.75rem * 3.1);
    }

    .award-statement {
        font-size: 1.4rem;
        max-width: 650px;
        line-height: 2.2;
        /* Even looser on desktop for elegance */
    }
}

/* --- Jury / Squares Section --- */
.jury-section {
    width: 100%;
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

.jury-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 600px;
    /* Reduced max-width */
}

.jury-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 1.5rem 0;
    align-self: flex-start;
    padding-left: 1rem;
    width: 100%;
    text-align: center;
    /* Center title on mobile */
}

.juror-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2 cols on mobile */
    gap: 1rem;
    justify-items: center;
    /* Center items in their cells */
    width: 100%;
    padding: 0 1rem;
}

.juror-item {
    background-color: #fff;
    border: 1px solid #d0d0d0;
    border-radius: 12px;
    box-shadow: 0 5px 15px -3px rgba(0, 0, 0, 0.05);
    /* Lighter shadow for smaller items */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    transition: transform 0.3s ease;
    width: 100px;
    /* Fixed small size */
    height: 100px;
}



.juror-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* mix-blend-mode: multiply; OPTIONAL: if backgrounds aren't perfectly white */
}

/* Desktop: 3 columns with Staggered Middle Column */
@media (min-width: 768px) {
    .jury-content {
        align-items: center;
        /* Keep center focus */
    }

    .jury-title {
        padding-left: 0;
        font-size: 1.75rem;
        margin-bottom: 2rem;
        width: auto;
        /* Allow auto width */
        align-self: flex-start;
        /* Actually user said "left aligned text on top of logos" */
        margin-left: 13%;
        /* Rough alignment with the grid start */
    }

    .juror-grid {
        grid-template-columns: repeat(4, 100px);
        /* 4 columns as requested */
        gap: 1.5rem;
        /* Spacing */
        width: auto;
        /* Shrink to fit */
    }

    /* All logos aligned - straight line */
    .juror-item {
        transform: translateY(0);
    }

    /* Hover bounce */
    .juror-item:hover {
        transform: translateY(-3px);
    }

    /* Ensure the container has space at the bottom for the shift */
    .juror-grid {
        margin-bottom: 1.6rem;
        padding-top: 1rem;
        /* Space for stagger */
    }
}

/* --- Finalists Section --- */
.finalists-section {
    width: 100%;
    margin-top: 2.24rem;
    /* Reduced by 30% from 4rem */
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 4rem;
}

.finalists-title {
    /* Reduced font size by another 25% from 2.35rem -> 1.75rem */
    font-family: var(--font-heading);
    font-size: 2.1rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-primary);
    text-align: center;
    padding: 0 1rem;
}

.finalists-grid {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    /* Increased gap */
    width: 100%;
    max-width: 1200px;
    padding: 0 1rem;
    margin-top: 2.8rem;
    /* Matched to section top margin for symmetry */
}

.subject-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.subject-title {
    font-family: var(--font-heading);
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 4rem;
    /* Doubled from 2rem */
    color: var(--text-primary);
}

.cards-container {
    position: relative;
    width: 100%;
    max-width: 320px;
    /* Card width constraint */
    height: 480px;
    /* Increased to allow gap between card and larger arrow */
    margin-bottom: 2rem;
}

.card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 400px;
    /* Fixed height for the card itself */
    border-radius: 20px;
    border: 1px solid #000000;
    /* Thin black frame */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.8s ease, box-shadow 0.8s ease;
    padding: 2rem;
    padding-bottom: 4.75rem;
    display: flex;
    flex-direction: column;
    /* justify-content: center; Removed centering to allow top text alignment */
}

/* Stacking Logic based on DOM order (Last child is top) */
/* Assuming Button is the LAST child. So cards are nth-last-child(6) to (2). */
/* If 5 cards + 1 button. */
/* Top Card = nth-last-child(2) */
.card:nth-last-child(2) {
    z-index: 5;
    transform: translateY(0) scale(1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.card:nth-last-child(3) {
    z-index: 4;
    transform: translateY(-15px) scale(0.98);
}

.card:nth-last-child(4) {
    z-index: 3;
    transform: translateY(-30px) scale(0.96);
}

.card:nth-last-child(5) {
    z-index: 2;
    transform: translateY(-45px) scale(0.94);
}

.card:nth-last-child(6) {
    z-index: 1;
    transform: translateY(-60px) scale(0.92);
}

/* Fallback for more carrds or ensure they hide behind */
.card:nth-last-child(n+7) {
    z-index: 0;
    transform: translateY(-75px) scale(0.90);
    opacity: 0;
}

/* Colors - Scaled Palette from Image */
.card-cream {
    background-color: #FDFBF7;
    /* Cream */
}

.card-dark {
    background-color: #bdbdbd;
    /* Lighter Grey */
}



.card-dots {
    display: flex;
    flex-direction: row;
    /* Horizontal layout */
    gap: 4px;
    margin-bottom: 0.5rem;
}

.dot {
    width: 6px;
    height: 6px;
    background-color: black;
    border-radius: 50%;
}

/* White dots for dark cards - Removed white, back to default black */
.card-dark .dot {
    background-color: black;
}

.card-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
    padding-bottom: 2rem;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: black;
    text-decoration: underline;
    cursor: pointer;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

/* External link icon - styled like nav-arrow */
.external-link-icon {
    display: inline-block;
    vertical-align: middle;
    stroke: currentColor;
    flex-shrink: 0;
}

/* Vote button - now below cards, dark green with text */
.vote-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    background: none;
    border: 3px solid #52463D;
    border-radius: 9px;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-heading);
    font-size: 1.3125rem;
    font-weight: 600;
    color: #52463D;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.vote-btn:hover {
    background-color: rgba(82, 70, 61, 0.1);
    transform: translateY(-2px);
}

.card-text {
    font-family: 'IBM Plex Sans', sans-serif;
    /* Updated to IBM Plex Sans */
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1.4;
    color: black;
    margin: 0;

    /* Ellipsis for 10 lines */
    display: -webkit-box;
    -webkit-line-clamp: 10;
    line-clamp: 10;
    /* limit to 10 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Read more toggle on cards */
.read-toggle {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    background: none;
    border: 2px solid #52463D;
    border-radius: 9px;
    padding: 0.55rem 0.95rem;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: #52463D;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
    z-index: 2;
}

.read-toggle:hover {
    background-color: rgba(82, 70, 61, 0.12);
    transform: translateY(-1px);
}

/* Nav arrow - now inside cards, borderless icon */
.nav-arrow {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: inherit;
    transition: transform 0.2s ease;
}

.nav-arrow:hover {
    transform: translateX(5px);
}

/* White arrow for dark cards - Removed white, back to default inherited black */
.card-dark .nav-arrow {
    color: inherit;
}

/* --- Card Details Modal --- */
.card-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(61, 90, 48, 0.12);
    z-index: 1800;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1rem, 3vw, 2.25rem);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.card-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.card-modal {
    width: min(760px, 100%);
    max-width: 900px;
    max-height: 88vh;
    background-color: #FBFBF9;
    border-radius: 20px;
    border: 1px solid #000000;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    will-change: transform;
}

.card-modal-header {
    display: flex;
    justify-content: flex-end;
    padding: clamp(0.75rem, 2vw, 1.25rem) clamp(1rem, 3vw, 2rem) 0;
    background-color: inherit;
}

.card-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
    padding: 0.4rem;
    transition: transform 0.2s ease;
}

.card-modal-close:hover {
    transform: scale(1.08);
}

.card-modal-body {
    padding: 0 clamp(1rem, 3vw, 2rem);
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.card-modal-title {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 700;
    color: #000000;
    text-decoration: underline;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0 0 1rem;
}

.card-modal-intro {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #2f2f2f;
    margin: 0 0 1.5rem;
}

.card-modal-sections {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
}

.card-modal-section h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.5rem;
}

.card-modal-section p {
    font-family: var(--font-body);
    font-size: 0.98rem;
    line-height: 1.6;
    color: #3f3f3f;
    margin: 0;
    white-space: pre-line;
}

.card-modal-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem clamp(1rem, 3vw, 2rem) clamp(1rem, 3vw, 1.5rem);
    border-top: 1px solid #d7d7d7;
    background-color: inherit;
}

.card-modal-actions .read-toggle {
    position: static;
}

.card-modal-actions .nav-arrow {
    position: static;
    right: auto;
    bottom: auto;
}

/* --- Vote Modal --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(61, 90, 48, 0.4);
    /* Tinted overlay */
    backdrop-filter: blur(8px);
    /* The blur effect */
    z-index: 2000;
    /* Highest priority */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: clamp(1rem, 3vw, 2.25rem);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    overflow-x: hidden;
    overscroll-behavior: contain;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    width: 100%;
    margin: 0;
    max-width: 900px;
    /* Desktop max-width */
    /* Strict viewport constraint for mobile safety */
    max-width: 100vw;
    background-color: #FBFBF9;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    /* Reduced padding for small mobile screens (iPhone SE) */
    width: min(760px, 100%);
    padding: clamp(1.25rem, 4vw, 2.75rem);
    padding-bottom: max(2.75rem, env(safe-area-inset-bottom));
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    margin: 0 auto;
    will-change: scroll-position;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}

/* ... existing styles ... */

.close-icon {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
    padding: 0.5rem;
    transition: transform 0.2s ease;
    z-index: 10;
}

.close-icon:hover {
    transform: scale(1.1);
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    width: 100%;
    text-align: center;
}

.modal-intro {
    font-family: var(--font-body);
    font-size: 1rem;
    color: #4a4a4a;
    line-height: 1.6;
    margin-bottom: 2rem;
    text-align: left;
    width: 100%;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.modal-intro p {
    margin: 0 0 1rem 0;
}

.vote-form {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 2rem;
    overflow: visible;
    position: relative;
    z-index: 1;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-family: var(--font-body);
    font-weight: 600;
    color: #363636;
    font-size: 0.95rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
}

.field-error {
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: #d9534f;
    margin-top: 0.25rem;
    font-weight: 500;
}

/* Cloudflare Turnstile layout helper */
.turnstile-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
}

.turnstile-wrapper .cf-turnstile {
    width: 100%;
    max-width: 420px;
    min-width: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.25rem 0;
}

.turnstile-wrapper .cf-turnstile iframe,
.turnstile-wrapper .cf-turnstile>div {
    width: 100% !important;
    max-width: 100%;
}

@media (max-width: 420px) {
    .turnstile-wrapper .cf-turnstile {
        max-width: 100%;
    }
}

/* Cloudflare Turnstile widget - make it match form fields */
.form-group select,
.form-group textarea,
.form-group input {
    width: 100%;
    padding: 0.8rem 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    background-color: white;
    appearance: none;
    /* Custom arrow for selects usually needed, simplifying for now */
    border-radius: 6px;
    -webkit-appearance: none;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    z-index: 1;
}

/* Custom Select styling hook */
.form-group select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

.submit-btn {
    background-color: var(--text-primary);
    color: white;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-top: 1rem;
}

.submit-btn:hover {
    background-color: #2a3e21;
}

@media (max-width: 480px) {
    .modal-content {
        border-radius: 14px;
        padding-bottom: 3rem;
    }

    .modal-title {
        font-size: 1.75rem;
        text-align: center;
    }

    .modal-intro {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .vote-form {
        gap: 1.25rem;
        padding-bottom: 3rem;
    }

    .form-agreement {
        padding: 0.75rem 0;
        margin: 1.25rem 0;
        min-height: 3rem;
    }

    .form-agreement input[type="checkbox"] {
        width: 1.25rem;
        height: 1.25rem;
        min-width: 1.25rem;
        min-height: 1.25rem;
    }
}

.success-message {
    text-align: center;
    font-family: var(--font-body);
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.success-message h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin: 1rem 0;
}

@media (min-width: 768px) {
    .modal-content {
        padding: 3rem;
        max-width: 900px;
        width: 85%;
        height: auto;
        max-height: 85vh;
    }

    .modal-title {
        font-size: 2.5rem;
        text-align: left;
    }

    .modal-intro {
        font-size: 1rem;
        max-width: 600px;
        margin-bottom: 2rem;
    }

    .vote-form {
        max-width: 600px;
        gap: 1.5rem;
    }

    .close-icon {
        top: 2rem;
        right: 2rem;
    }
}

.nav-arrow svg {
    width: 48px;
    height: 48px;
    stroke: currentColor;
}

/* Form Agreement Line */
.form-agreement {
    width: 100%;
    max-width: 100%;
    margin: 1rem 0;
    padding: 0.75rem 0;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: flex-start;
    gap: 0.75rem;
    position: relative;
    z-index: 1;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    min-height: 2.5rem;
}

.form-agreement input[type="checkbox"] {
    margin-top: 0.2rem;
    width: 1.2rem;
    height: 1.2rem;
    min-width: 1.2rem;
    min-height: 1.2rem;
    accent-color: var(--text-primary);
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    -webkit-appearance: checkbox;
    appearance: checkbox;
    cursor: pointer;
}

.form-agreement label {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: #363636;
    line-height: 1.5;
    margin: 0;
    display: block;
    position: relative;
    z-index: 2;
    word-wrap: break-word;
    overflow-wrap: break-word;
    cursor: pointer;
}

.privacy-link {
    color: #0066cc;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.privacy-link:hover {
    color: #0052a3;
    text-decoration: underline;
}

/* Privacy Policy Bottom Sheet */
.privacy-sheet {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2001;
    pointer-events: none;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.privacy-sheet.active {
    pointer-events: auto;
}

.privacy-sheet-content {
    background-color: #FBFBF9;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 900px;
    max-height: 60vh;
    overflow-y: auto;
    padding: 2rem;
    position: relative;
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
}

.privacy-sheet.active .privacy-sheet-content {
    transform: translateY(0);
}

.privacy-close-icon {
    position: sticky;
    top: 1rem;
    right: 1rem;
    float: right;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
    padding: 0.5rem;
    transition: transform 0.2s ease;
    z-index: 10;
}

.privacy-close-icon:hover {
    transform: scale(1.1);
}

.privacy-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 1.5rem 0;
    padding-right: 2rem;
}

.privacy-body {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: #363636;
    line-height: 1.6;
}

.privacy-body h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 1.5rem 0 0.75rem 0;
}

.privacy-body p {
    margin: 0 0 1rem 0;
}

.privacy-body ul {
    margin: 0.5rem 0 1rem 1.5rem;
    padding: 0;
}

.privacy-body li {
    margin: 0.5rem 0;
}

.privacy-body a {
    color: #0066cc;
    text-decoration: none;
}

.privacy-body a:hover {
    text-decoration: underline;
}

@media (min-width: 768px) {
    .privacy-sheet-content {
        padding: 2.5rem 3rem;
        border-radius: 20px 20px 0 0;
    }

    .privacy-close-icon {
        top: 1.5rem;
        right: 1.5rem;
    }

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

    .privacy-body {
        font-size: 1rem;
    }

    .privacy-body h3 {
        font-size: 1.25rem;
    }
}

/* Desktop Layout */
@media (min-width: 768px) {
    .finalists-grid {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        gap: 2rem;
    }

    .subject-column {
        flex: 1;
    }
}

/* Footer */
.footer {
    width: 100%;
    padding: 1.5rem 1rem;
    background-color: #ffffff;
    text-align: left;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 1.125rem;
    color: black;
    margin-top: 3rem;
    border-top: 2px solid #000000;
}

.footer p {
    margin: 0;
    line-height: 2.1;
    font-weight: 500;
}

.footer a {
    color: black;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.footer a:hover {
    opacity: 0.6;
}

@media (min-width: 768px) {
    .footer {
        padding: 2rem 2rem;
    }
}

/* --- FAQ Section --- */
.faq-section {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.faq-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 3rem;
    margin-top: 4rem;
    /* Added margin-top to clear header */
}

.jury-intro {
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
    align-items: center;
}

.jury-intro-text {
    font-size: 1.2rem;
    line-height: 2.1;
    max-width: 100%;
    margin: 0;
    text-align: center;
}

.faq-item {
    border-bottom: 1px solid #d0d0d0;
}

.faq-item details {
    width: 100%;
}

.faq-item summary {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    padding: 1.5rem 0;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 400;
    transition: transform 0.3s ease;
}

.faq-item details[open] summary::after {
    transform: rotate(45deg);
}

.faq-answer {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: #4a4a4a;
    padding-bottom: 1.5rem;
    padding-right: 2rem;
}
