﻿:root {
    --red: #c91821;
    --red-dark: #99151b;
    --red-soft: #e35b61;
    --cream: #fff6f1;
    --cream-deep: #fde8de;
    --white: #ffffff;
    --ink: #2a2321;
    --muted: #6f625d;
    --line: rgba(201, 24, 33, 0.12);
    --shadow: 0 18px 50px rgba(201, 24, 33, 0.12);
    --shadow-soft: 0 10px 25px rgba(201, 24, 33, 0.08);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* =========================
   FONT SYSTEM
========================= */

body {
    margin: 0;
    font-family: "Poppins", sans-serif;
    color: var(--ink);
    background: radial-gradient(circle at top left, #fffaf6 0%, var(--cream) 34%, #fff 100%);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* clean headings */
h1,
h2,
h3,
.book-cover h3,
.book-page h3,
.flip-page h3,
.exp-card-content h3,
.kbi-hero-text h2,
.kbi-text h3,
.hbii-block-text h3,
.hbii-feature-card h3,
.hbii-ending h3,
.event-hero-text h2,
.section-head h2,
.intro-card h3,
.contact-card h3,
.hbii-quote p {
    font-family: "Raleway", sans-serif;
    font-weight: 600;
    letter-spacing: 0.2px;
    line-height: 1.08;
}

/* limited script accents only */
.hero-card h3,
.story-card h3,
.hero-brand-card .pill + h3 {
    font-family: "Pacifico", cursive;
    font-weight: 400;
    letter-spacing: 0.35px;
    line-height: 1.15;
}

/* navbar always clean */
.site-nav a,
.site-nav .dropdown-link,
.site-nav .dropdown-head button,
.dropdown-panel a,
.dropdown-card strong,
.dropdown-card span {
    font-family: "Poppins", sans-serif !important;
}

/* font hierarchy */
.hero h1 {
    font-size: clamp(3rem, 6vw, 5.4rem);
    margin: 0 0 1rem;
    max-width: 11ch;
}

.section-head h2 {
    font-size: clamp(2.25rem, 4vw, 3.5rem);
    margin: 0 0 0.85rem;
}

.event-hero-text h2,
.kbi-hero-text h2 {
    font-size: clamp(2.45rem, 4.5vw, 3.8rem);
    margin: 0 0 0.8rem;
}

.hero-card h3 {
    font-size: clamp(2rem, 3vw, 2.6rem);
    margin: 0.7rem 0;
}

.story-card h3 {
    font-size: clamp(1.8rem, 2.4vw, 2.3rem);
    margin: 0.45rem 0 0.6rem;
}

.intro-card h3,
.contact-card h3 {
    font-size: clamp(1.5rem, 2vw, 1.9rem);
    margin: 0.5rem 0;
}

.exp-card-content h3 {
    font-size: clamp(1.7rem, 2vw, 2.15rem);
    margin: 0 0 0.5rem;
}

.kbi-text h3,
.hbii-block-text h3,
.hbii-feature-card h3,
.hbii-ending h3 {
    font-size: clamp(1.85rem, 2.5vw, 2.35rem);
    margin: 0 0 0.8rem;
}

.book-cover h3,
.book-page h3,
.flip-page h3 {
    font-size: clamp(1.6rem, 2vw, 2rem);
    margin: 0 0 0.55rem;
}

.eyebrow {
    display: inline-block;
    color: var(--red);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.78rem;
    margin-bottom: 0.9rem;
}

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

.page-noise {
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.05;
    background-image: radial-gradient(circle at 20% 20%, var(--red) 1px, transparent 1px), radial-gradient(circle at 80% 30%, var(--red) 1px, transparent 1px), radial-gradient(circle at 40% 80%, var(--red) 1px, transparent 1px);
    background-size: 120px 120px;
    z-index: 0;
}

main,
.site-header,
.site-footer {
    position: relative;
    z-index: 1;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: min(var(--container), calc(100% - 2rem));
    margin: 0 auto;
}

.section {
    padding: 96px 0;
}

    .section + .section {
        padding-top: 40px;
    }

/* =========================
   HEADER / NAV
========================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: blur(14px);
    background: rgba(255,255,255,0.92);
    border-bottom: 1px solid rgba(0,0,0,.06);
    overflow: visible !important;
    transition: opacity .3s ease;
}
.site-nav a,
.dropdown-link,
.dropdown-trigger,
.brand-copy strong {
    color: var(--ink) !important;
}

.brand-copy small {
    color: var(--muted) !important;
}
.site-nav a::after,
.dropdown-link::after {
    background: var(--red);
}
.dropdown-panel {
    background: #fff8f7;
}
.nav-wrap {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    overflow: visible !important;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.site-logo {
    display: block;
    height: 42px !important;
    max-height: 42px !important;
    width: auto !important;
    max-width: 120px !important;
    object-fit: contain;
    flex-shrink: 0;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

    .brand-copy strong {
        display: block;
        font-size: 1rem;
        line-height: 1.1;
    }

    .brand-copy small {
        display: block;
        color: var(--muted);
        font-size: 0.82rem;
        line-height: 1.2;
    }

.site-nav {
    display: flex;
    gap: 1.2rem;
    align-items: center;
}

    .site-nav a {
        font-size: 0.95rem;
        font-weight: 700;
        position: relative;
        color: var(--ink);
    }

        .site-nav a::after,
        .dropdown-link::after {
            content: "";
            position: absolute;
            left: 0;
            bottom: -0.4rem;
            width: 100%;
            height: 2px;
            background: var(--red);
            transform: scaleX(0);
            transform-origin: center;
            transition: transform 0.25s ease;
        }

        .site-nav a:hover::after,
        .nav-dropdown.open .dropdown-link::after,
        .dropdown-link:hover::after {
            transform: scaleX(1);
        }

.menu-toggle {
    display: none;
    border: none;
    background: var(--red);
    color: white;
    padding: 0.7rem 0.9rem;
    border-radius: 14px;
    font-size: 1rem;
    cursor: pointer;
}

/* =========================
   CLICKABLE NAV DROPDOWNS
========================= */

.nav-dropdown {
    position: relative;
}

.dropdown-head {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

    .dropdown-head button {
        font: inherit;
    }

.dropdown-link {
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    color: var(--ink) !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    cursor: pointer;
    position: relative;
}

.dropdown-trigger {
    border: none;
    background: transparent;
    color: var(--ink) !important;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0.1rem 0.2rem;
    line-height: 1;
}

.dropdown-panel {
    background: linear-gradient( 180deg, rgba(255,248,247,.98) 0%, rgba(255,240,236,.98) 100% );
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 22px;
    box-shadow: 0 20px 40px rgba(20,10,10,.18);
    backdrop-filter: blur(14px);
}

.nav-dropdown.open > .dropdown-panel {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.nav-dropdown:last-child .dropdown-panel,
.nav-dropdown:nth-last-child(2) .dropdown-panel {
    left: auto;
    right: 0;
    transform: none;
}

.dropdown-panel a {
    display: block;
    padding: 0.75rem 0.9rem;
    border-radius: 12px;
    font-size: 0.92rem;
}

    .dropdown-panel a:hover {
        background: #f8efe3;
        color: var(--red);
    }

.dropdown-panel-grid {
    width: min(520px, 90vw);
}

.nav-dropdown.open > .dropdown-panel.dropdown-panel-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

.dropdown-card {
    display: block;
    background: linear-gradient( 180deg, rgba(255,255,255,.92) 0%, rgba(255,247,245,.92) 100% );
    border: 1px solid rgba(201,24,33,.08);
    border-radius: 18px;
    overflow: hidden;
    padding: .7rem;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

    .dropdown-card:hover {
        transform: translateY(-4px);
        border-color: rgba(201,24,33,.22);
        box-shadow: 0 14px 26px rgba(120,10,16,.14);
    }

    .dropdown-card img {
        width: 100%;
        aspect-ratio: 16 / 9;
        object-fit: cover;
        display: block;
        margin: 0;
        border-radius: 10px;
    }

    .dropdown-card strong {
        display: block;
        margin: 0.55rem 0 0.25rem;
        font-size: 0.92rem;
    }

    .dropdown-card span {
        display: block;
        font-size: 0.78rem;
        color: var(--muted);
        line-height: 1.4;
    }

.dropdown-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border-radius: 10px;
    background: #eee;
    margin-bottom: 0.55rem;
    background-size: cover;
    background-position: center;
}

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

.hero {
    padding-top: 68px;
    padding-bottom: 24px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 2rem;
    align-items: center;
}

.hero-text {
    color: var(--muted);
    max-width: 56ch;
    font-size: 1.06rem;
}

.hero-actions {
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.btn {
    min-height: 52px;
    padding: 0 1.2rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

    .btn:hover {
        transform: translateY(-2px);
    }

.btn-primary {
    background: var(--red);
    color: white;
    box-shadow: 0 10px 20px rgba(159, 29, 32, 0.18);
}

    .btn-primary:hover {
        background: var(--red-dark);
    }

.btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: var(--red);
    border: 1px solid var(--line);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

    .hero-stats article,
    .intro-card,
    .story-card,
    .contact-card,
    .contact-form,
    .dict-card,
    .game-panel {
        background: rgba(255, 255, 255, 0.82);
        border: 1px solid var(--line);
        box-shadow: var(--shadow);
    }

    .hero-stats article {
        padding: 1rem;
        border-radius: var(--radius-md);
    }

    .hero-stats strong {
        display: block;
        color: var(--red);
        font-size: 1.55rem;
    }

    .hero-stats span {
        color: var(--muted);
        font-size: 0.92rem;
    }

.hero-visual {
    min-height: 530px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-card {
    width: min(460px, 100%);
    padding: 2rem;
    border-radius: var(--radius-xl);
    background: linear-gradient(180deg, #fff 0%, #fff8f0 100%);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    position: relative;
    z-index: 2;
}

    .hero-card p {
        color: var(--muted);
    }

.hero-brand-card {
    text-align: left;
}

.hero-logo {
    display: block;
    width: 180px !important;
    max-width: 180px !important;
    height: auto !important;
    margin-bottom: 1rem;
    object-fit: contain;
}

.pill {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 0.9rem;
    border-radius: 999px;
    background: var(--cream);
    color: var(--red);
    font-size: 0.82rem;
    font-weight: 800;
    
}

.bubble {
    position: absolute;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    color: var(--red);
    font-weight: 700;
    padding: 0.85rem 1rem;
    animation: float 4.8s ease-in-out infinite;
}

.bubble-1 {
    top: 56px;
    left: 18px;
}

.bubble-2 {
    top: 110px;
    right: 18px;
    animation-delay: 0.5s;
}

.bubble-3 {
    bottom: 124px;
    left: 36px;
    animation-delay: 1.1s;
}

.bubble-4 {
    bottom: 58px;
    right: 62px;
    animation-delay: 1.7s;
}

/* =========================
   GENERAL CONTENT BLOCKS
========================= */

.intro-band {
    padding-top: 8px;
}

.intro-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.intro-card {
    padding: 1.4rem;
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

    .intro-card::before {
        content: "";
        position: absolute;
        inset: 0 auto 0 0;
        width: 6px;
        background: linear-gradient(180deg, var(--red) 0%, #d67d68 100%);
    }

    .intro-card span {
        display: inline-block;
        color: var(--red);
        font-weight: 800;
        font-size: 0.88rem;
    }

    .intro-card p {
        color: var(--muted);
        margin: 0;
    }

.section-head {
    max-width: 760px;
    margin-bottom: 2rem;
}

    .section-head p {
        color: var(--muted);
        margin: 0;
    }

.stories-layout {
    display: grid;
    grid-template-columns: 1.12fr 0.88fr;
    gap: 1.1rem;
}

.story-list {
    display: grid;
    gap: 1rem;
}

.story-card {
    padding: 1.4rem;
    border-radius: var(--radius-lg);
}

    .story-card.large {
        min-height: 380px;
        display: flex;
        flex-direction: column;
        justify-content: end;
        background: linear-gradient(180deg, rgba(159, 29, 32, 0.08) 0%, rgba(255, 255, 255, 0.96) 100%);
    }

    .story-card p {
        color: var(--muted);
    }

.story-tag {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    width: fit-content;
    padding: 0 0.8rem;
    border-radius: 999px;
    background: var(--red);
    color: white;
    font-size: 0.8rem;
    font-weight: 800;
}

    .story-tag.soft {
        background: var(--cream);
        color: var(--red);
    }

.text-link {
    color: var(--red);
    font-weight: 800;
}

.dictionary-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.4rem;
}

    .dictionary-toolbar input,
    .field input,
    .field textarea {
        border: 1px solid var(--line);
        background: rgba(255, 255, 255, 0.95);
        border-radius: 16px;
        padding: 0.95rem 1rem;
        font: inherit;
        outline: none;
    }

    .dictionary-toolbar input {
        flex: 1 1 320px;
        min-height: 54px;
    }

.filter-group {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.filter-btn {
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--ink);
    border-radius: 999px;
    min-height: 44px;
    padding: 0 1rem;
    font-weight: 700;
    cursor: pointer;
}

    .filter-btn.active {
        background: var(--red);
        color: white;
    }

.dict-card {
    padding: 1.35rem;
    border-radius: var(--radius-lg);
    transition: transform 0.25s ease;
}

    .dict-card:hover {
        transform: translateY(-4px);
    }

.game-panel {
    padding: 1.5rem;
    border-radius: var(--radius-xl);
    display: grid;
    grid-template-columns: 1fr 0.95fr;
    gap: 1.4rem;
}

/* =========================
   CONTACT + QR
========================= */

.contact-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 1rem;
}

.contact-card,
.contact-form {
    padding: 1.5rem;
    border-radius: var(--radius-lg);
}

.field {
    display: grid;
    gap: 0.45rem;
    margin-bottom: 1rem;
}

    .field label {
        font-weight: 700;
    }

.contact-qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.qr-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1.2rem 0;
}

.qr-img {
    width: 260px;
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    transition: transform 0.25s ease;
}

    .qr-img:hover {
        transform: scale(1.04);
    }

.qr-username {
    margin-top: 0.5rem;
    font-weight: 700;
    font-size: 1rem;
}

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

.site-footer {
    background: linear-gradient(180deg, #fff 0%, #f8efe3 100%);
}

.footer-main {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 2rem;
    padding-bottom: 30px;
}

.footer-brand {
    max-width: 200px;
}

    .footer-brand p {
        color: var(--muted);
        margin: 0.75rem 0 1rem;
        max-width: 260px;
    }

.footer-logo {
    display: block !important;
    height: 28px !important;
    width: auto !important;
    max-width: 100px !important;
    object-fit: contain !important;
}

.footer-cta {
    display: inline-block;
    margin-top: 0.5rem;
    font-weight: 700;
    color: var(--red);
}

.footer-links h4 {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    color: var(--red);
}

.footer-links a {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
    color: var(--ink);
}

    .footer-links a:hover {
        color: var(--red);
    }

.footer-bottom {
    border-top: 1px solid rgba(159, 29, 32, 0.1);
    padding: 15px 0;
    text-align: center;
}

    .footer-bottom p {
        font-size: 0.85rem;
        color: var(--muted);
    }

.footer-wrap {
    padding-top: 1rem;
    border-top: 1px solid rgba(159, 29, 32, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

    .footer-wrap p {
        color: var(--muted);
        margin: 0.25rem 0 0;
    }

/* =========================
   REVEAL
========================= */

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.hidden-card {
    display: none;
}

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

    50% {
        transform: translateY(-10px);
    }
}

/* =========================
   SIGN CENTER / TOPIC BOOKS
========================= */

.book-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    align-items: stretch;
}

.book-card {
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    text-align: left;
    transition: transform 0.25s ease;
    perspective: 1000px;
    height: 100%;
}

    .book-card:hover {
        transform: translateY(-8px);
    }

.book-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    max-height: 420px;
    border-radius: 14px 18px 18px 14px;
    padding: 1.4rem 1.2rem 1.4rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.12), 8px 0 0 rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0,0,0,0.06);
    overflow: hidden;
    transform: rotateY(-8deg);
    transform-origin: left center;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.book-card:hover .book-cover {
    transform: rotateY(-2deg) translateY(-2px);
    box-shadow: 0 22px 38px rgba(0, 0, 0, 0.14), 10px 0 0 rgba(0, 0, 0, 0.05);
}

.book-cover::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 18px;
    height: 100%;
    background: rgba(0,0,0,0.10);
    box-shadow: inset -2px 0 4px rgba(255,255,255,0.15);
}

.book-cover::after {
    content: "";
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 18px;
    width: 2px;
    background: rgba(255,255,255,0.22);
}

.book-cover.red {
    background: linear-gradient(180deg, #b12629 0%, #86181b 100%);
    color: white;
}

.book-cover.cream {
    background: linear-gradient(180deg, #f8efe3 0%, #efdfca 100%);
    color: var(--ink);
}

.book-cover.white {
    background: linear-gradient(180deg, #ffffff 0%, #f8f6f1 100%);
    color: var(--ink);
}

.book-label {
    position: relative;
    z-index: 1;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.85;
}

.book-cover .book-mini-lines {
    position: relative;
    z-index: 1;
    width: 70%;
    height: 34px;
    border-top: 2px solid rgba(255,255,255,0.25);
    border-bottom: 2px solid rgba(255,255,255,0.16);
}

.book-cover.cream .book-mini-lines,
.book-cover.white .book-mini-lines {
    border-top: 2px solid rgba(42,35,33,0.18);
    border-bottom: 2px solid rgba(42,35,33,0.10);
}

.book-card.is-hidden {
    display: none;
}

/* =========================
   BOOK VIEWER
========================= */

.book-viewer {
    position: fixed;
    inset: 0;
    background: rgba(32, 18, 18, 0.62);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    z-index: 999;
}

    .book-viewer.hidden {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

.book-modal {
    width: min(100%, 900px);
    background: linear-gradient(180deg, #fffaf6 0%, #fff 100%);
    border-radius: 28px;
    padding: 1.2rem 1.2rem 1.4rem;
    border: 1px solid rgba(159, 29, 32, 0.10);
    box-shadow: 0 28px 60px rgba(20, 10, 10, 0.18);
}

.book-viewer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.viewer-back-btn,
.close-btn {
    border: none;
    background: rgba(255,255,255,0.9);
    color: var(--ink);
    min-height: 42px;
    padding: 0 1rem;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid var(--line);
}

.close-btn {
    width: 42px;
    min-width: 42px;
    padding: 0;
    display: grid;
    place-items: center;
}

.viewer-topic {
    font-weight: 800;
    color: var(--red);
    text-transform: capitalize;
    text-align: center;
}

.book-shell {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

/* =========================
   PAPER BOOK UI
========================= */

.book-real {
    width: 420px;
    height: 280px;
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: linear-gradient(180deg, #f2e2cf 0%, #edd8c0 100%);
    box-shadow: inset 0 0 0 1px rgba(120, 70, 40, 0.10);
}

    .book-real::before {
        content: "";
        position: absolute;
        top: 10px;
        bottom: 10px;
        left: 50%;
        width: 12px;
        transform: translateX(-50%);
        background: linear-gradient(180deg, #d8c2a8 0%, #bfa282 100%);
        border-radius: 10px;
        z-index: 1;
    }

.book-page {
    position: absolute;
    inset: 14px;
    background: linear-gradient(180deg, #fffefb 0%, #fbf5ec 100%);
    border-radius: 18px;
    border: 1px solid rgba(100, 60, 30, 0.08);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    padding: 1.8rem 1.8rem 2rem;
    opacity: 0;
    transform: translateX(14%);
    transition: transform 0.28s ease, opacity 0.28s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    .book-page.active {
        opacity: 1;
        transform: translateX(0);
        z-index: 3;
    }

    .book-page.left {
        opacity: 0;
        transform: translateX(-14%);
        z-index: 2;
    }

    .book-page::before {
        content: "";
        position: absolute;
        inset: 0;
        background: repeating-linear-gradient( to bottom, rgba(120, 92, 74, 0.045) 0px, rgba(120, 92, 74, 0.045) 1px, transparent 1px, transparent 28px );
        pointer-events: none;
        border-radius: 18px;
    }

    .book-page::after {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        left: 18px;
        width: 2px;
        background: rgba(159, 29, 32, 0.10);
    }

.book-category {
    position: relative;
    z-index: 1;
    color: var(--red);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 800;
    margin: 0 0 0.7rem;
}

.book-text {
    position: relative;
    z-index: 1;
    color: var(--muted);
    margin: 0;
    max-width: 26ch;
    font-size: 1rem;
}

.page-number {
    position: absolute;
    right: 1.2rem;
    bottom: 0.9rem;
    font-size: 0.8rem;
    color: rgba(42, 35, 33, 0.45);
    font-weight: 700;
    z-index: 1;
}

.book-btn {
    border: none;
    background: var(--red);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(159, 29, 32, 0.18);
    transition: transform 0.2s ease, background 0.2s ease;
}

    .book-btn:hover {
        transform: translateY(-2px);
        background: var(--red-dark);
    }

.swipe-hint {
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
    margin: 1rem 0 0;
}

/* =========================
   HEYZINE-LIKE FLIPBOOK
========================= */

.flipbook-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 0 0.5rem;
}

.flip-book {
    width: 760px;
    height: 480px;
    max-width: 100%;
    margin: 0 auto;
}

.flip-page {
    background: linear-gradient(180deg, #fffefb 0%, #fbf5ec 100%);
    color: var(--ink);
    border: 1px solid rgba(100, 60, 30, 0.08);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    padding: 2rem 2rem 2.2rem;
    position: relative;
    overflow: hidden;
}

    .flip-page::before {
        content: "";
        position: absolute;
        inset: 0;
        background: repeating-linear-gradient( to bottom, rgba(120, 92, 74, 0.045) 0px, rgba(120, 92, 74, 0.045) 1px, transparent 1px, transparent 28px );
        pointer-events: none;
    }

    .flip-page::after {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        left: 18px;
        width: 2px;
        background: rgba(159, 29, 32, 0.10);
    }

.flip-page-content {
    position: relative;
    z-index: 1;
}

.flip-page .book-category {
    color: var(--red);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 800;
    margin: 0 0 0.7rem;
}

.flip-page .book-text {
    color: var(--muted);
    margin: 0;
    max-width: 26ch;
    font-size: 1rem;
}

.flip-page .page-number {
    position: absolute;
    right: 1.2rem;
    bottom: 0.9rem;
    font-size: 0.8rem;
    color: rgba(42, 35, 33, 0.45);
    font-weight: 700;
}

/* =========================
   EXPERIENCES CARDS
========================= */

.exp-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
}

.exp-card-lg {
    display: block;
    background: #fff;
    border-radius: 26px;
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: 0 12px 28px rgba(0,0,0,0.06);
    text-decoration: none;
    color: inherit;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

    .exp-card-lg:hover {
        transform: translateY(-8px);
        box-shadow: 0 22px 40px rgba(0,0,0,0.1);
    }

.exp-card-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.exp-card-lg:hover .exp-card-img {
    transform: scale(1.08) translateY(6px);
}

.exp-card-content {
    background: #fff;
    padding: 1.4rem 1.3rem 1.6rem;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.exp-card-lg:hover .exp-card-content {
    transform: translateY(-4px);
}

.exp-card-content p {
    margin: 0 0 1rem;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.exp-readmore {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.2rem;
    border-radius: 999px;
    border: 1.5px solid var(--red);
    background: #fff;
    color: var(--red);
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

    .exp-readmore::after {
        content: " →";
        transition: transform 0.3s ease;
    }

.exp-card-lg:hover .exp-readmore {
    background: var(--red);
    color: #fff;
}

    .exp-card-lg:hover .exp-readmore::after {
        transform: translateX(4px);
    }

/* =========================
   KBI DETAIL / STORY PAGE
========================= */

.kbi-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 4rem;
}

.kbi-hero-text p {
    margin: 0;
    color: var(--muted);
    max-width: 60ch;
}

.kbi-hero-image {
    width: 100%;
    aspect-ratio: 3 / 2;
    border-radius: 24px;
    background: #ddd;
    overflow: hidden;
}

.kbi-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 4rem;
}

    .kbi-section.reverse {
        direction: rtl;
    }

        .kbi-section.reverse * {
            direction: ltr;
        }

.kbi-text p {
    margin: 0 0 1rem;
    color: var(--muted);
    line-height: 1.7;
}

.kbi-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 2;
    border-radius: 22px;
    overflow: hidden;
    background: #ddd;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
}

.kbi-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

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

.kbi-slide-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    color: var(--ink);
    font-size: 1.35rem;
    cursor: pointer;
    z-index: 2;
    transition: transform 0.2s ease, background 0.2s ease;
}

    .kbi-slide-btn:hover {
        transform: translateY(-50%) scale(1.05);
        background: #fff;
    }

    .kbi-slide-btn.prev {
        left: 12px;
    }

    .kbi-slide-btn.next {
        right: 12px;
    }

.kbi-gallery {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-top: 0.3rem;
}

.kbi-thumb {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid transparent;
    cursor: pointer;
    opacity: 0.85;
    transition: transform 0.2s ease, opacity 0.2s ease, border-color 0.2s ease;
}

    .kbi-thumb:hover {
        transform: translateY(-2px);
        opacity: 1;
    }

    .kbi-thumb.active-thumb {
        border-color: var(--red);
        opacity: 1;
    }

.back-top {
    margin-bottom: 1.5rem;
}

    .back-top a {
        font-weight: 700;
        color: var(--red);
        text-decoration: none;
    }

        .back-top a:hover {
            text-decoration: underline;
        }

.kbi-img img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 20px;
}

/* =========================
   EVENT HERO / GALLERY
========================= */

.event-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 3rem;
}

.event-hero-img img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 24px;
}

.event-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2.5rem;
}

    .event-info div {
        background: white;
        border: 1px solid var(--line);
        border-radius: 16px;
        padding: 1rem;
    }

    .event-info strong {
        display: block;
        font-size: 0.85rem;
        color: var(--muted);
    }

    .event-info span {
        font-weight: 700;
    }

.event-intro {
    max-width: 60ch;
    margin-bottom: 2rem;
    color: var(--muted);
    line-height: 1.6;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
    margin-bottom: 2rem;
}

    .featured-grid img {
        width: 100%;
        aspect-ratio: 1 / 1;
        object-fit: cover;
        border-radius: 12px;
    }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.6rem;
}

.gallery-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.25s ease;
}

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

.highlight-block {
    margin: 2.5rem 0;
    text-align: center;
}

    .highlight-block img {
        width: 100%;
        max-width: 520px;
        aspect-ratio: 3 / 2;
        object-fit: cover;
        border-radius: 20px;
        margin-bottom: 1rem;
    }

    .highlight-block p {
        max-width: 55ch;
        margin: 0 auto;
        color: var(--muted);
    }

/* =========================
   VIDEO SHOWCASE PAGE
========================= */

.video-card {
    width: 100%;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

    .video-card video {
        width: 100%;
        display: block;
        aspect-ratio: 16 / 9;
        object-fit: cover;
        background: #000;
    }

/* =========================
   TULI TALKS
========================= */


.tt-hero .section-head h2 {
    font-family: "Raleway", sans-serif !important;
    font-size: clamp(2.25rem, 4vw, 3.5rem) !important;
    font-weight: 600 !important;
    line-height: 1.08 !important;
    letter-spacing: 0.2px !important;
    color: var(--red);
    text-shadow: 2px 2px 0 rgba(42,35,33,.18);
}
.tt-intro {
    max-width: 60ch;
    color: var(--muted);
    line-height: 1.6;
}

.tt-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
}

.tt-card {
    background: white;
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

    .tt-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 24px rgba(0,0,0,0.08);
    }

.tt-video video {
    width: 100%;
    aspect-ratio: 9 / 16;
    object-fit: cover;
    display: block;
}

.tt-content {
    padding: 0.8rem 0.9rem 1rem;
}

    .tt-content h4 {
        margin-bottom: 0.3rem;
        font-size: 0.95rem;
    }

    .tt-content p {
        font-size: 0.8rem;
        color: var(--muted);
    }

.tt-viewer {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .tt-viewer.hidden {
        display: none;
    }

.tt-viewer-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.8);
}

.tt-viewer-content {
    position: relative;
    z-index: 2;
}

#ttPlayer {
    width: 320px;
    max-width: 90vw;
    aspect-ratio: 9 / 16;
    border-radius: 20px;
    background: black;
}

#ttClose {
    position: absolute;
    top: -40px;
    right: 0;
    background: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 14px;
}

/* =========================
   HBII / HDI PAGE
========================= */

.event-tags {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

    .event-tags span {
        display: inline-flex;
        align-items: center;
        padding: 0.4rem 0.8rem;
        border-radius: 999px;
        background: var(--cream);
        color: var(--red);
        font-size: 0.82rem;
        font-weight: 700;
    }

.hbii-quote {
    margin: 2.5rem 0 3rem;
    padding: 2rem;
    border-radius: 24px;
    background: linear-gradient(180deg, #fff 0%, #fff8f0 100%);
    border: 1px solid var(--line);
    text-align: center;
    box-shadow: var(--shadow-soft);
}

    .hbii-quote p {
        margin: 0;
        line-height: 1.2;
        color: var(--ink);
    }

.hbii-block {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 1.5rem;
    align-items: stretch;
    margin-bottom: 2rem;
}

    .hbii-block.reverse {
        grid-template-columns: 0.8fr 1.2fr;
    }

.hbii-block-text,
.hbii-block-card,
.hbii-highlight-panel,
.hbii-feature-card,
.hbii-ending {
    background: white;
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
}

.hbii-block-text {
    padding: 1.6rem;
}

.hbii-label {
    margin: 0 0 0.5rem;
    color: var(--red);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hbii-block-text p:not(.hbii-label),
.hbii-feature-card p:not(.hbii-label),
.hbii-ending p {
    color: var(--muted);
    margin: 0 0 0.9rem;
}

.hbii-block-card {
    padding: 1.6rem;
    background: linear-gradient(180deg, #fff 0%, #f8efe3 100%);
}

    .hbii-block-card h4 {
        margin: 0 0 0.9rem;
        font-size: 1rem;
        color: var(--red);
    }

    .hbii-block-card ul {
        margin: 0;
        padding-left: 1.1rem;
        color: var(--muted);
    }

    .hbii-block-card li + li {
        margin-top: 0.55rem;
    }

.hbii-feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.hbii-feature-card {
    padding: 1.6rem;
}

    .hbii-feature-card.soft {
        background: linear-gradient(180deg, #fff 0%, #fff8f3 100%);
    }

.hbii-highlight-panel {
    padding: 1.3rem;
    display: grid;
    gap: 1rem;
    background: linear-gradient(180deg, #fff 0%, #fff8f0 100%);
}

    .hbii-highlight-panel div {
        padding: 0.95rem 1rem;
        border-radius: 16px;
        background: rgba(248, 239, 227, 0.7);
    }

    .hbii-highlight-panel strong {
        display: block;
        margin-bottom: 0.25rem;
        color: var(--red);
    }

    .hbii-highlight-panel span {
        color: var(--muted);
        font-size: 0.92rem;
    }

.hbii-ending {
    padding: 2rem;
    margin-top: 1rem;
    text-align: center;
    background: linear-gradient(180deg, #fff 0%, #fff8f0 100%);
}

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

@media (max-width: 1024px) {
    .hero-grid,
    .stories-layout,
    .game-panel,
    .contact-layout {
        grid-template-columns: 1fr;
    }

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

    .hero h1 {
        max-width: 100%;
    }

    .hero-visual {
        min-height: 420px;
    }
}

@media (max-width: 900px) {
    .book-grid,
    .exp-grid {
        grid-template-columns: 1fr;
    }

    .book-modal {
        width: min(100%, 680px);
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .kbi-hero,
    .kbi-section,
    .event-hero,
    .hbii-block,
    .hbii-block.reverse,
    .hbii-feature {
        grid-template-columns: 1fr;
    }

        .kbi-section.reverse {
            direction: ltr;
        }

    .kbi-text h3 {
        font-size: 1.6rem;
    }

    .kbi-text p {
        font-size: 0.96rem;
    }

    .kbi-thumb {
        width: 72px;
        height: 72px;
    }

    .kbi-slide-btn {
        width: 38px;
        height: 38px;
        font-size: 1.2rem;
    }

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

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

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

    .hbii-quote {
        padding: 1.5rem;
    }

    .hbii-block-text,
    .hbii-block-card,
    .hbii-feature-card,
    .hbii-highlight-panel,
    .hbii-ending {
        padding: 1.25rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: inline-flex;
    }

    .site-nav {
        position: absolute;
        top: 82px;
        left: 1rem;
        right: 1rem;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        background: rgba(255, 255, 255, 0.98);
        padding: 1rem;
        border-radius: 20px;
        border: 1px solid var(--line);
        box-shadow: var(--shadow);
        max-height: none !important;
        overflow: visible !important;
        z-index: 9999;
    }

        .site-nav.open {
            display: flex;
        }

        .site-nav > a,
        .nav-dropdown {
            width: 100%;
        }

        .site-nav > a {
            padding: 0.2rem 0;
        }

    .dropdown-head {
        width: 100%;
        justify-content: space-between;
        align-items: center;
    }

    .dropdown-link {
        font-size: 1rem !important;
    }

    .dropdown-trigger {
        padding: 0.35rem 0.2rem;
        font-size: 1rem;
    }

    .dropdown-panel,
    .dropdown-panel-grid {
        position: static !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0.5rem 0 0 0 !important;
        margin: 0 !important;
        display: none;
    }

    .nav-dropdown.open > .dropdown-panel {
        display: flex !important;
        flex-direction: column;
        gap: 0.5rem;
    }

        .nav-dropdown.open > .dropdown-panel.dropdown-panel-grid {
            display: grid !important;
            grid-template-columns: 1fr !important;
            gap: 0.5rem;
        }

    .dropdown-card,
    .dropdown-panel a {
        width: 100%;
    }

    .dropdown-card {
        padding: 0.7rem;
    }

    .dropdown-img {
        height: 72px;
    }

    .hero,
    .section {
        padding-top: 72px;
    }

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

    .hero h1 {
        font-size: clamp(2.4rem, 10vw, 3.7rem);
    }

    .bubble {
        font-size: 0.88rem;
        padding: 0.7rem 0.9rem;
    }

    .footer-wrap {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-logo {
        height: 32px !important;
        max-height: 32px !important;
        max-width: 90px !important;
    }

    .hero-logo {
        width: 120px !important;
        max-width: 120px !important;
    }

    .brand-copy small {
        display: none;
    }

    .qr-img {
        width: 200px;
    }

    .footer-logo {
        height: 30px !important;
        max-width: 100px !important;
    }

    .book-shell {
        gap: 0.6rem;
    }

    .book-real {
        width: 280px;
        height: 210px;
    }

    .book-page,
    .flip-page {
        padding: 1.2rem 1.1rem 1.6rem;
    }

        .book-text,
        .flip-page .book-text {
            font-size: 0.92rem;
        }

    .book-btn {
        width: 42px;
        height: 42px;
    }

    .viewer-topic {
        font-size: 0.95rem;
    }

    .viewer-back-btn {
        padding: 0 0.8rem;
        font-size: 0.9rem;
    }
}

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

    .flip-book {
        width: 300px;
        height: 420px;
    }
}
/* =========================
   MOBILE DROPDOWN FIX
========================= */
@media (max-width: 768px) {
    .site-header {
        overflow: visible !important;
    }

    .nav-wrap {
        overflow: visible !important;
        position: relative;
    }

    .site-nav {
        position: absolute;
        top: calc(100% + 10px);
        left: 0.75rem;
        right: 0.75rem;
        width: auto;
        max-width: calc(100vw - 1.5rem);
        max-height: calc(100vh - 110px);
        overflow-y: auto;
        overflow-x: hidden;
        padding: 1rem;
        border-radius: 18px;
        z-index: 99999;
    }

        .site-nav.open {
            display: flex !important;
        }

        .site-nav > a,
        .nav-dropdown {
            width: 100%;
        }

    .dropdown-head {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
    }

    .dropdown-link {
        flex: 1 1 auto;
        min-width: 0;
        white-space: normal;
        line-height: 1.35;
    }

    .dropdown-trigger {
        flex-shrink: 0;
    }

    .dropdown-panel,
    .dropdown-panel-grid {
        position: static !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        transform: none !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        margin-top: 0.45rem !important;
        padding: 0.35rem 0 0 0 !important;
        border: none !important;
        box-shadow: none !important;
        background: transparent !important;
        overflow: visible !important;
    }

    .nav-dropdown.open > .dropdown-panel {
        display: flex !important;
        flex-direction: column;
        gap: 0.6rem;
    }

        .nav-dropdown.open > .dropdown-panel.dropdown-panel-grid {
            display: grid !important;
            grid-template-columns: 1fr !important;
            gap: 0.6rem;
        }

    .dropdown-card,
    .dropdown-panel a {
        width: 100%;
    }

    .dropdown-card {
        overflow: hidden;
    }

        .dropdown-img,
        .dropdown-card img {
            width: 100%;
            height: auto;
            aspect-ratio: 16 / 9;
            object-fit: cover;
        }
}
/* ========================================
   DROPDOWN HARD FIX
   paste at VERY BOTTOM
======================================== */

/* let dropdown escape containers */
.site-header,
.nav-wrap,
.site-nav,
.nav-dropdown {
    overflow: visible !important;
}

/* -------------------------
   DESKTOP / TABLET
------------------------- */
@media (min-width: 769px) {
    .nav-dropdown {
        position: relative !important;
    }

    .dropdown-panel {
        position: absolute !important;
        top: calc(100% + 12px) !important;
        left: 0 !important;
        right: auto !important;
        transform: none !important;
        width: max-content !important;
        max-width: min(540px, calc(100vw - 24px)) !important;
        padding: 0.8rem !important;
        border-radius: 18px !important;
        z-index: 99999 !important;
    }

    /* grid dropdowns like Experience / Sign Center */
    .dropdown-panel-grid {
        display: none;
        width: min(540px, calc(100vw - 24px)) !important;
        max-width: min(540px, calc(100vw - 24px)) !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0.8rem !important;
    }

    .nav-dropdown.open > .dropdown-panel.dropdown-panel-grid {
        display: grid !important;
    }

    /* normal single-column dropdowns */
    .nav-dropdown.open > .dropdown-panel:not(.dropdown-panel-grid) {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.45rem !important;
    }

    /* for dropdowns near the right side of navbar */
    .nav-dropdown:last-child > .dropdown-panel,
    .nav-dropdown:nth-last-child(2) > .dropdown-panel {
        left: auto !important;
        right: 0 !important;
    }

    /* stop cards from overflowing */
    .dropdown-card {
        width: 100% !important;
        min-width: 0 !important;
    }

        .dropdown-img,
        .dropdown-card img {
            width: 100% !important;
            aspect-ratio: 16 / 9 !important;
            height: auto !important;
            object-fit: cover !important;
            display: block !important;
        }

        .dropdown-card strong,
        .dropdown-card span {
            word-break: break-word !important;
        }
}

/* -------------------------
   MOBILE
------------------------- */
@media (max-width: 768px) {
    .site-header {
        overflow: visible !important;
    }

    .nav-wrap {
        overflow: visible !important;
        position: relative !important;
    }

    .site-nav {
        position: absolute !important;
        top: calc(100% + 10px) !important;
        left: 0.75rem !important;
        right: 0.75rem !important;
        width: auto !important;
        max-width: calc(100vw - 1.5rem) !important;
        max-height: calc(100vh - 110px) !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        z-index: 99999 !important;
    }

        .site-nav.open {
            display: flex !important;
        }

        .site-nav > a,
        .nav-dropdown {
            width: 100% !important;
        }

    .dropdown-head {
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 0.75rem !important;
    }

    .dropdown-link {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        white-space: normal !important;
        line-height: 1.35 !important;
    }

    .dropdown-trigger {
        flex-shrink: 0 !important;
    }

    .dropdown-panel,
    .dropdown-panel-grid {
        position: static !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        margin-top: 0.45rem !important;
        padding: 0.35rem 0 0 0 !important;
        border: none !important;
        box-shadow: none !important;
        background: transparent !important;
        overflow: visible !important;
        display: none !important;
    }

    .nav-dropdown.open > .dropdown-panel {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.6rem !important;
    }

        .nav-dropdown.open > .dropdown-panel.dropdown-panel-grid {
            display: grid !important;
            grid-template-columns: 1fr !important;
            gap: 0.6rem !important;
        }

    .dropdown-card,
    .dropdown-panel a {
        width: 100% !important;
        min-width: 0 !important;
    }

    .dropdown-card {
        overflow: hidden !important;
    }

        .dropdown-img,
        .dropdown-card img {
            width: 100% !important;
            height: auto !important;
            aspect-ratio: 16 / 9 !important;
            object-fit: cover !important;
            display: block !important;
        }

        .dropdown-card strong,
        .dropdown-card span {
            word-break: break-word !important;
        }
}
/* =========================
   FINAL DROPDOWN POSITION FIX
========================= */

/* desktop/tablet */
@media (min-width: 769px) {
    .site-header,
    .nav-wrap,
    .site-nav,
    .nav-dropdown {
        overflow: visible !important;
    }

        /* make grid dropdowns anchor from center by default */
        .nav-dropdown > .dropdown-panel.dropdown-panel-grid {
            left: 50% !important;
            right: auto !important;
            transform: translateX(-50%) !important;
            width: min(520px, calc(100vw - 24px)) !important;
            max-width: min(520px, calc(100vw - 24px)) !important;
        }

        /* About is near the left side, so keep it left-aligned */
        .site-nav > .nav-dropdown:nth-of-type(1) > .dropdown-panel.dropdown-panel-grid {
            left: 0 !important;
            right: auto !important;
            transform: none !important;
        }

        /* Experiences and Sign Center are the ones getting cropped:
       force them to open from the right side of their trigger */
        .site-nav > .nav-dropdown:nth-of-type(2) > .dropdown-panel.dropdown-panel-grid,
        .site-nav > .nav-dropdown:nth-of-type(3) > .dropdown-panel.dropdown-panel-grid {
            left: auto !important;
            right: 0 !important;
            transform: none !important;
        }

    .dropdown-panel {
        max-width: calc(100vw - 24px) !important;
        z-index: 99999 !important;
    }

    .dropdown-panel-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .dropdown-card {
        min-width: 0 !important;
        width: 100% !important;
    }

        .dropdown-card strong,
        .dropdown-card span {
            word-break: break-word !important;
        }
}

/* mobile */
@media (max-width: 768px) {
    .site-header,
    .nav-wrap {
        overflow: visible !important;
    }

    .site-nav {
        position: absolute !important;
        top: calc(100% + 10px) !important;
        left: 0.75rem !important;
        right: 0.75rem !important;
        width: auto !important;
        max-width: calc(100vw - 1.5rem) !important;
        max-height: calc(100vh - 110px) !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        z-index: 99999 !important;
        padding-bottom: 1rem !important;
    }

        .site-nav.open {
            display: flex !important;
        }

        .site-nav > a,
        .nav-dropdown {
            width: 100% !important;
        }

    .dropdown-head {
        width: 100% !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 0.75rem !important;
    }

    .dropdown-link {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        white-space: normal !important;
        line-height: 1.35 !important;
    }

    .dropdown-panel,
    .dropdown-panel-grid {
        position: static !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        transform: none !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin-top: 0.45rem !important;
        padding: 0.35rem 0 0 0 !important;
        border: none !important;
        box-shadow: none !important;
        background: transparent !important;
        overflow: visible !important;
        display: none !important;
    }

    .nav-dropdown.open > .dropdown-panel {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.6rem !important;
    }

        .nav-dropdown.open > .dropdown-panel.dropdown-panel-grid {
            display: grid !important;
            grid-template-columns: 1fr !important;
            gap: 0.6rem !important;
        }

    .dropdown-card,
    .dropdown-panel a {
        width: 100% !important;
        min-width: 0 !important;
    }

    .dropdown-card {
        overflow: hidden !important;
    }

        .dropdown-img,
        .dropdown-card img {
            width: 100% !important;
            aspect-ratio: 16 / 9 !important;
            height: auto !important;
            object-fit: cover !important;
            display: block !important;
        }
}
.tt-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
}

.tt-card {
    background: white;
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
}

    .tt-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 24px rgba(0,0,0,0.08);
    }

.tt-video {
    width: 100%;
    aspect-ratio: 9 / 16;
    background: #ddd;
    overflow: hidden;
    position: relative;
}

    .tt-video video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.4s ease;
    }

.tt-card:hover video {
    transform: scale(1.05);
}

.tt-content {
    padding: 0.8rem 0.9rem 1rem;
}

    .tt-content h4 {
        margin-bottom: 0.3rem;
        font-size: 0.95rem;
    }

    .tt-content p {
        font-size: 0.8rem;
        color: var(--muted);
    }

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

@media (max-width: 600px) {
    .tt-grid {
        grid-template-columns: 1fr;
    }
}
.tt-toolbar {
    margin: 1.5rem 0 2rem;
}

    .tt-toolbar input {
        width: 100%;
        max-width: 420px;
        padding: 0.9rem 1rem;
        border-radius: 999px;
        border: 1px solid var(--line);
        font-family: "Poppins", sans-serif;
        outline: none;
    }
/* =========================
   TEAM PAGE
========================= */

.team-grid {
    align-items: stretch;
}

.team-card {
    height: 100%;
}

.team-img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.4s ease;
}

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

.team-card .exp-card-content p strong {
    color: var(--red);
    font-weight: 700;
}

@media (max-width: 900px) {
    .team-img {
        aspect-ratio: 3 / 4;
    }
}
/* =========================
   TEAM PROFILE PAGE
========================= */

.team-profile-hero-img {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 24px;
    overflow: hidden;
    background: #f3f3f3;
}

    .team-profile-hero-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center top;
        display: block;
    }

    /* safer option if some photos still crop too much */
    .team-profile-hero-img.contain img {
        object-fit: contain;
        background: #f8f8f8;
    }
/* =========================
   TEAM PROFILE PAGE
========================= */

.team-profile-hero-img {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 24px;
    overflow: hidden;
    background: #f3f3f3;
    box-shadow: var(--shadow-soft);
}

    .team-profile-hero-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center top;
        display: block;
    }

    .team-profile-hero-img.contain img {
        object-fit: contain;
        background: #f8f8f8;
    }

@media (max-width: 900px) {
    .team-profile-hero-img {
        max-width: 420px;
        margin: 0 auto;
    }
}
/* =========================
   ABOUT PAGE VISUAL SECTIONS
========================= */

.about-quote {
    margin-top: 1.5rem;
    padding: 1.4rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, #fff 0%, var(--cream-deep) 100%);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    color: var(--red);
    font-weight: 800;
    font-size: 1.15rem;
    line-height: 1.45;
}

.about-timeline {
    margin-top: 4rem;
    display: grid;
    gap: 1.2rem;
}

.about-step {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 1.2rem;
    align-items: flex-start;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    background: rgba(255, 248, 247, 0.92);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    border-bottom: 2px solid rgba(201,24,33,.12);
}

.about-step-number {
    width: 58px;
    height: 58px;
    border-radius: 999px;
    background: var(--red);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.about-step h3 {
    margin: 0 0 0.5rem;
}

.about-step p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.about-values {
    margin-top: 4rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
}

.about-value-card {
    padding: 1.6rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, #fff 0%, #fff8f0 100%);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

    .about-value-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow);
    }

    .about-value-card span {
        width: 58px;
        height: 58px;
        margin: 0 auto 1rem;
        border-radius: 999px;
        background: var(--cream);
        color: var(--red);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.7rem;
    }

    .about-value-card h3 {
        margin: 0 0 0.6rem;
    }

    .about-value-card p {
        margin: 0;
        color: var(--muted);
        line-height: 1.7;
    }

.about-ending {
    margin-top: 4.5rem;
    padding: 3rem 2rem;
    border-radius: var(--radius-xl);
    background: linear-gradient(180deg, var(--red) 0%, var(--red-dark) 100%);
    color: var(--white);
    text-align: center;
    box-shadow: var(--shadow);
}

    .about-ending .eyebrow {
        color: var(--cream-deep);
    }

    .about-ending h2 {
        color: var(--white);
        margin-bottom: 1rem;
    }

    .about-ending p {
        max-width: 760px;
        margin: 0 auto 1rem;
        line-height: 1.8;
        color: rgba(255, 255, 255, 0.9);
    }

.about-signoff {
    margin-top: 1.5rem !important;
    font-weight: 800;
}

@media (max-width: 900px) {
    .about-values {
        grid-template-columns: 1fr;
    }
}

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

    .about-ending {
        padding: 2.2rem 1.4rem;
    }
}
/* =========================
   KBI VIDEO BLOCK
========================= */

.kbi-hero-video {
    width: 100%;
    aspect-ratio: 3 / 2;
    border-radius: 24px;
    overflow: hidden;
    background: #000;
    box-shadow: var(--shadow-soft);
}

    .kbi-hero-video video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
.book-card {
    cursor: pointer;
}

.book-card-info {
    margin-top: 16px;
    text-align: center;
}

    .book-card-info h3 {
        margin: 0 0 6px;
        color: var(--kc-red);
    }

    .book-card-info p {
        margin: 0;
        font-size: 0.9rem;
        line-height: 1.5;
        color: #5f4b45;
    }
.book-cover.image-cover {
    padding: 0 !important;
    background: #fff !important;
}

    .book-cover.image-cover::before,
    .book-cover.image-cover::after {
        display: none !important;
    }

    .book-cover.image-cover img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: inherit;
    }

.image-flip-page {
    padding: 0 !important;
    background: #fff !important;
}

    .image-flip-page::before,
    .image-flip-page::after {
        display: none !important;
    }

.flip-page-image-content {
    width: 100%;
    height: 100%;
    background: #fff;
}

    .flip-page-image-content img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

.image-flip-page {
    padding: 0 !important;
    background: #fff !important;
}

    .image-flip-page::before,
    .image-flip-page::after {
        display: none !important;
    }

.flip-page-image-content {
    width: 100%;
    height: 100%;
    background: #fff;
}

    .flip-page-image-content img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
    }
.flip-img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    margin-bottom: 12px;
}
.flip-page-content {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 5;
}

.flip-img {
    display: block !important;
    width: 100% !important;
    height: 240px !important;
    object-fit: contain !important;
    margin-bottom: 14px !important;
    position: relative !important;
    z-index: 999 !important;
    opacity: 1 !important;
    visibility: visible !important;
}
/* FIX DROPDOWN NOT CLICKABLE */
.nav-dropdown {
    position: relative;
}

.dropdown-panel {
    position: absolute !important;
    top: 100%;
    left: 0;
    z-index: 999999 !important; /* 🔥 bring above everything */

    pointer-events: auto;
}

/* CRITICAL: allow dropdown to overflow */
.nav-wrap,
.site-header,
.site-nav {
    overflow: visible !important;
}
.site-header {
    z-index: 1000;
    position: relative;
}
.dropdown-panel {
    z-index: 99999 !important;
}

.small-note {
    margin-top: .6rem;
    font-size: .9rem;
    opacity: .7;
    font-style: italic;
}
.memories-section {
    background: linear-gradient(to bottom, #fff6f1, #fde8de);
}

.memories-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.2rem;
    margin-top: 2rem;
}

    .memories-grid img {
        width: 100%;
        height: 280px;
        object-fit: cover;
        border-radius: 22px;
        box-shadow: 0 10px 30px rgba(0,0,0,.12);
        transition: .35s ease;
    }

        /* top row */
        .memories-grid img:nth-child(1) {
            grid-column: span 3;
        }

        .memories-grid img:nth-child(2) {
            grid-column: span 3;
        }

        /* bottom row */
        .memories-grid img:nth-child(3) {
            grid-column: span 2;
        }

        .memories-grid img:nth-child(4) {
            grid-column: span 2;
        }

        .memories-grid img:nth-child(5) {
            grid-column: span 2;
        }

        .memories-grid img:hover {
            transform: translateY(-6px) scale(1.02);
        }

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

        .memories-grid img {
            grid-column: span 1 !important;
        }
}

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

        .memories-grid img {
            height: 240px;
        }
}
/* =========================
   KOPI CINTA TYPOGRAPHY ACCENT
========================= */

.section-head h2,
.hero h1,
.hero-card h3,
.story-card h3,
.intro-card h3,
.exp-card-content h3,
.contact-card h3,
.book-cover h3,
.book-page h3,
.flip-page h3 {
    color: var(--red);
    text-shadow: 2px 2px 0 rgba(42,35,33,.18);
}

    /* stronger hover personality */
    .section-head h2:hover,
    .hero-card h3:hover,
    .story-card h3:hover {
        transform: translateY(-1px);
        transition: .25s ease;
    }

/* softer paragraph contrast */
.hero-text,
.section-head p,
.story-card p,
.intro-card p {
    color: #5f4b45;
}
/* restore original navbar colors */
.site-header .site-nav > a,
.site-header .dropdown-link,
.site-header .dropdown-trigger,
.site-header .brand-copy strong {
    color: var(--ink) !important;
}

.site-header .brand-copy small {
    color: var(--muted) !important;
}

/* dropdown panel content back to normal */
.dropdown-panel a,
.dropdown-card strong,
.dropdown-card span {
    color: var(--ink) !important;
}
/* =========================
   FINAL MOBILE NAV FIX
========================= */



        .site-nav > a,
        .dropdown-head,
        .dropdown-link,
        .dropdown-trigger {
            text-align: left !important;
            justify-content: flex-start !important;
        }

    .dropdown-head {
        justify-content: flex-start !important;
    }

    .dropdown-link {
        width: auto !important;
    }

    .dropdown-panel {
        background: transparent !important;
    }

    .dropdown-card {
        text-align: left !important;
    }

        .dropdown-card strong,
        .dropdown-card span {
            text-align: left !important;
            color: var(--ink) !important;
        }



/* MOBILE: dropdown pushes menu below */
@media (max-width: 768px) {
    .site-nav {
        align-items: stretch !important;
    }

    .nav-dropdown {
        display: block !important;
        width: 100% !important;
        position: static !important;
    }

    .dropdown-panel,
    .dropdown-panel-grid {
        position: static !important;
        display: none !important;
        width: 100% !important;
        margin-top: 0.75rem !important;
        margin-bottom: 0.75rem !important;
        transform: none !important;
    }

    .nav-dropdown.open > .dropdown-panel {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.6rem !important;
    }

        .nav-dropdown.open > .dropdown-panel.dropdown-panel-grid {
            display: grid !important;
            grid-template-columns: 1fr !important;
            gap: 0.6rem !important;
        }
}
/* =========================
   FINAL FORCE MOBILE NAV EXPAND
========================= */

@media (max-width: 768px) {
    .site-nav,
    .site-nav.open {
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        overflow-y: visible !important;
        overflow-x: hidden !important;
        display: none;
    }

        .site-nav.open {
            display: flex !important;
            flex-direction: column !important;
        }

    .nav-dropdown,
    .dropdown-panel,
    .dropdown-panel-grid {
        position: static !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }

        .nav-dropdown.open > .dropdown-panel,
        .nav-dropdown.open > .dropdown-panel.dropdown-panel-grid {
            display: grid !important;
            grid-template-columns: 1fr !important;
            height: auto !important;
            max-height: none !important;
            overflow: visible !important;
        }
}

.desktop-one-line {
    white-space: nowrap;
}

@media (max-width:768px) {
    .desktop-one-line {
        white-space: normal;
    }
}