/* =========================================================
   KIOSK DISPLAY CSS — 55″ Android Box Touch Screen
   Zero-scroll · Vertical-centered · Production-grade

   Primary target: 1920×1080 (Full HD Android box)
   Also supports: 3840×2160 (4K), tablets, mobile

   CARD LOGIC (section pages):
     1 card   → centered, max-width capped
     2 cards  → centered pair with even gap
     3 cards  → full row, equal flex with gap
     4+ cards → Swiper slider, 4 per view on 55″
========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&display=swap');

/* =========================
   ANDROID WEBVIEW — GPU
========================= */

.swiper-wrapper {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.swiper-slide {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* =========================
   CUSTOM PROPERTIES
========================= */

:root {
    --bg: #f3efe8;
    --navy: #162b57;
    --navy-2: #102149;
    --gold: #e5aa35;
    --gold-dark: #cf9626;
    --text: #1e2f57;
    --muted: #6d7b92;
    --white: #ffffff;
    --card-radius: 25px;
    --btn-radius: 999px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 16px 40px rgba(0, 0, 0, 0.13);
    --header-h: 96px;
    --container-x: 30px;
    --main-h: calc(100vh - var(--header-h));
    --touch-min: 56px;
    --grid-gap: 22px;
    --card-split: 1fr 1fr;
    --transition: 0.2s ease;
    --section-card-gap: 25px;
}

/* =========================
   RESET
========================= */

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

/* =========================
   GLOBAL SCROLL KILL
========================= */

html,
body,
.kiosk-main,
.kiosk-grid,
.sections-panel,
.kiosk-person-content,
.kiosk-person-card {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
.kiosk-main::-webkit-scrollbar,
.kiosk-grid::-webkit-scrollbar,
.sections-panel::-webkit-scrollbar,
.kiosk-person-content::-webkit-scrollbar,
.kiosk-person-card::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
}

/* =========================
   HTML & BODY
========================= */

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    overflow: hidden !important;
    height: 100%;
    width: 100%;
}

body {
    font-family: "Figtree", sans-serif !important;
}

body.kiosk-body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    min-width: 320px;
    overflow: hidden !important;
    height: 100vh;
    width: 100vw;
    position: fixed;
    top: 0;
    left: 0;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
    overscroll-behavior: none;
    touch-action: none;
}

img {
    max-width: 100%;
    display: block;
    -webkit-user-drag: none;
    user-select: none;
    pointer-events: none;
}

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

/* =========================
   MAIN WRAPPER
========================= */

.kiosk-main {
    height: var(--main-h);
    max-height: var(--main-h);
    overflow: hidden !important;
    padding-top:25px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* ================================================
   FORCE CHILDREN FULL HEIGHT
================================================ */

.kiosk-main>*,
.kiosk-main>.container-fluid,
.kiosk-main>.container-fluid>.row,
.kiosk-main>.container-fluid>.row>[class*="col"] {
    height: 100% !important;
    max-height: 100% !important;
    flex: 1 !important;
    min-height: 0 !important;
    margin: 0 !important;
}

.kiosk-main>.container-fluid {
    display: flex !important;
    flex-direction: column !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.kiosk-main>.container-fluid>.row {
    flex: 1 !important;
    display: flex !important;
    align-items: stretch !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: var(--grid-gap) !important;
}

.kiosk-main>.container-fluid>.row>[class*="col"] {
    display: flex !important;
    flex-direction: column !important;
    padding: 0 calc(var(--grid-gap) / 2) !important;
}

/* =========================
   TYPOGRAPHY
========================= */

.container-fluid.px-4 {
    padding-left: var(--container-x) !important;
    padding-right: var(--container-x) !important;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.kiosk-page-title,
.section-page-title,
.sections-title,
.kiosk-home-title {
    color: var(--text);
    font-weight: 700;
    text-align: center;
}

.kiosk-page-title {
    font-size: 2.3vw;
    margin-bottom: 8px;
}

.kiosk-page-subtitle,
.section-page-subtitle {
    color: var(--muted);
    font-size: 1vw;
    margin: 0;
}

.kiosk-home-title {
    font-size: 2.2vw;
    margin: 0;
    padding: 0.8vh 0;
    flex-shrink: 0;
}

/* =========================
   TOP HEADER
========================= */

.kiosk-topbar {
    background: var(--navy);
    height: var(--header-h);
    min-height: var(--header-h);
    max-height: var(--header-h);
    position: sticky;
    top: 0;
    z-index: 1000;
    flex-shrink: 0;
    overflow: hidden;
}

.topbar-inner {
    height: var(--header-h);
    min-height: var(--header-h);
    padding-left: var(--container-x);
    padding-right: var(--container-x);
    display: flex;
    align-items: center;
}

.topbar-logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: 12px;
    flex-shrink: 0;
}

.topbar-text h3 {
    color: #fff;
    font-size: 1.6vw;
    font-weight: 700;
    margin: 0;
    line-height: 1.1;
}

.topbar-text span {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.95vw;
    line-height: 1.2;
    display: inline-block;
    margin-top: 4px;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* =========================
   BUTTONS
========================= */
.notranslate {
    -webkit-user-select: none !important;
    user-select: none !important;
}
.topbar-btn,
.kiosk-btn {
    min-width: 104px;
    min-height: var(--touch-min);
    padding: 14px 28px;
    border-radius: var(--btn-radius);
    border: none;
    background: var(--gold);
    color: var(--navy);
    font-size: 1vw;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-soft);
    -webkit-transition: var(--transition);
    transition: var(--transition);
    touch-action: manipulation;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.topbar-btn:hover,
.topbar-btn:focus,
.kiosk-btn:hover,
.kiosk-btn:focus {
    background: var(--gold-dark);
    color: var(--navy);
}

.topbar-btn:active,
.kiosk-btn:active,
.kiosk-btn-home:active,
.section-nav-btn:active,
.section-link-box:active,
.kiosk-person-card:active {
    -webkit-transform: scale(0.97);
    transform: scale(0.97);
    -webkit-transition: -webkit-transform 0.08s ease;
    transition: transform 0.08s ease;
}

/* =========================
   PRELOADER
========================= */

.kiosk-preloader {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 99999;
    background: rgba(255, 255, 255, 0.5);
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    -webkit-transition: opacity .4s ease, visibility .4s ease;
    transition: opacity .4s ease, visibility .4s ease;
    flex-direction: column !important;
    min-height: 100vh !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

.kiosk-preloader.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.kiosk-preloader-box {
    text-align: center;
    flex: none !important;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    margin: 0 !important;
}

.kiosk-preloader-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid #e5e5e5;
    border-top: 5px solid #ff7722;
    border-radius: 50%;
    -webkit-animation: kioskSpin .8s linear infinite;
    animation: kioskSpin .8s linear infinite;
    margin: 0 auto 12px;
}

.kiosk-preloader-text {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

@-webkit-keyframes kioskSpin {
    from {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    to {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes kioskSpin {
    from {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    to {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

/* ================================================
   HOME — CARD GRID
================================================ */

.kiosk-grid {
    width: 100%;
    flex: 1;
    min-height: 0;
    max-height: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 0 20px !important;
    overflow: hidden !important;
}

/* ================================================
   PERSON CARD — 50/50 SPLIT
================================================ */

.kiosk-person-card {
    background: var(--white);
    border-radius: var(--card-radius);
    overflow: hidden;
    display: grid;
    grid-template-columns: var(--card-split);
    grid-template-rows: 1fr;
    align-items: stretch;
    flex: 1 1 0;
    min-width: 0;
    max-width: calc(50% - var(--grid-gap) / 2);
    height: 100%;
    max-height: 100%;
    margin-right: 20px !important;
    color: inherit;
}

.kiosk-person-card:nth-child(2) {
    margin: 0 !important;
}

.kiosk-person-img {
    position: relative;
    background: #ecdcb8;
    overflow: hidden;
    height: 100%;
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    grid-column: 1;
    grid-row: 1;
}

.kiosk-person-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.kiosk-person-placeholder {
    width: 100%;
    height: 100%;
    background: #ecdfc5;
}

.explore-badge {
    position: absolute;
    top: 1.2vw;
    left: 1.2vw;
    z-index: 2;
    background: var(--gold);
    color: var(--navy);
    font-size: 0.85vw;
    font-weight: 700;
    padding: 0.6vw 1vw;
    border-radius: 999px;
    letter-spacing: 0.02em;
    pointer-events: none;
}

.kiosk-person-content {
    padding: 25px 2vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 0.6vw;
    background: #fdfdfd;
    overflow: hidden !important;
    height: 100%;
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    grid-column: 2;
    grid-row: 1;
}

.kiosk-person-name {
    color: var(--text);
    font-size: 2.2vw;
    font-weight: 700;
    line-height: 1.15;
    margin: 0;
    flex-shrink: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-top: 1.15em !important;
}

.kiosk-person-sub {
    color: var(--muted);
    font-size: 1vw;
    line-height: 1.3;
    margin: 0;
    flex-shrink: 0;
    max-width: 100%;
}

.kiosk-person-desc {
    color: #6d7b92;
    font-size: 1.05vw;
    line-height: 1.65;
    margin: 0 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-shrink: 1;
    min-height: 0;
    max-width: 100%;
}

.kiosk-btn-home {
    width: 100%;
    min-height: var(--touch-min);
    border-radius: 14px;
    background: var(--navy);
    color: #fff;
    font-size: 1.05vw;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.2vw 20px;
    margin-top: auto;
    -webkit-transition: var(--transition);
    transition: var(--transition);
    touch-action: manipulation;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    border: none;
    flex-shrink: 0;
}

.kiosk-btn-home:hover,
.kiosk-btn-home:focus {
    background: var(--navy-2);
    color: #fff;
}

/* =========================
   PERSON PAGE
========================= */

.person-hero-card {
    position: relative;
    border-radius: var(--card-radius);
    overflow: hidden;
    background: linear-gradient(135deg, #102249, #08183d);
    box-shadow: var(--shadow);
    height: 100%;
    max-height: var(--main-h);
}

.person-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.person-hero-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 3vw;
    background: linear-gradient(to top, rgba(8, 20, 45, 0.96), rgba(8, 20, 45, 0.36), transparent);
}

.person-hero-overlay h1 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 2.5vw;
    font-weight: 700;
    line-height: 1.1;
}

.person-hero-overlay p {
    margin: 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.08vw;
    line-height: 1.7;
    max-width: 90%;
}

/* — Sections panel — */

.sections-panel {
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sections-title {
    font-size: 2.3vw;
    margin: 0 0 22px;
    text-align: start;
    flex-shrink: 0;
}

.section-link-box {
    background: var(--white);
    border-left: 4px solid var(--gold);
    border-radius: 16px;
    padding: 1.8vw 2vw;
    min-height: var(--touch-min);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: var(--shadow-soft);
    -webkit-transition: var(--transition);
    transition: var(--transition);
    touch-action: manipulation;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.section-link-box:hover,
.section-link-box:focus {
    -webkit-transform: translateY(-1px);
    transform: translateY(-1px);
    box-shadow: var(--shadow-hover);
}

.section-link-box h4 {
    margin: 0 0 6px;
    font-size: 1.2vw;
    line-height: 1.2;
    color: var(--text);
    font-weight: 700;
}

.section-link-box p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92vw;
    line-height: 1.35;
}

.section-arrow {
    color: var(--gold);
    font-size: 2rem;
    line-height: 1;
    font-weight: 700;
    flex-shrink: 0;
}

/* ================================================
   STORY CARDS
================================================ */

.story-card {
    background: var(--white);
    border-radius: 22px;
    overflow: hidden;
    height: 100% !important;
    min-height: 0;
    flex: 1;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
}

.story-card-active {
    border: 2px solid var(--gold);
}

.story-card-image-wrap {
    position: relative;
    height: 28vh;
    min-height: 200px;
    max-height: 300px;
    flex-shrink: 0;
    flex-grow: 0;
    background: linear-gradient(135deg, #11244c, #0a1b42);
    overflow: hidden;
}

.story-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.story-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    padding: 9px 16px;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1;
}

.story-badge-gold {
    background: var(--gold);
    color: var(--navy);
}

.story-badge-dark {
    background: var(--navy);
    color: #fff;
}

.story-card-body {
    padding: 20px;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start !important;
}

.story-small-heading {
    color: #7c879d;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 10px;
    line-height: 1.4;
    flex-shrink: 0;
}

.story-title {
    color: var(--text);
    font-size: 1.6vw;
    font-weight: 700;
    line-height: 1.15;
    margin: 0;
    flex-shrink: 0;
}

.story-text {
    color: #585858;
    font-size: 1vw;
    line-height: 1.5;
    margin: 0;
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 8px;
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
    -webkit-transition: scrollbar-color 0.3s ease;
    transition: scrollbar-color 0.3s ease;
}

.story-text:hover,
.story-text:active {
    scrollbar-color: #ffcd39 transparent;
}

.story-text::-webkit-scrollbar {
    width: 10px;
}

.story-text::-webkit-scrollbar-track {
    background: transparent;
}

.story-text::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 10px;
    min-height: 50px;
}

.story-text:hover::-webkit-scrollbar-thumb,
.story-text:active::-webkit-scrollbar-thumb {
    background: #ffcd39;
}

/* =========================
   NAV BUTTONS
========================= */

.content-button-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    align-items: center;
}

.section-nav-btn {
    background: var(--navy);
    color: #fff;
    padding: 16px 26px;
    border-radius: 14px;
    font-weight: 600;
    min-width: 180px;
    min-height: 60px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    -webkit-transition: var(--transition);
    transition: var(--transition);
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.section-nav-btn:hover {
    background: var(--gold);
    color: var(--navy);
}

/* =========================
   TOUCH HARDENING
========================= */

button, a, input, select, textarea {
    touch-action: manipulation;
}

.section-link-box, .kiosk-btn, .topbar-btn,
.kiosk-btn-home, .section-nav-btn, .kiosk-person-card,
#kiosk-btns, .kiosk-btns {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

/* =========================================
   HOME SLIDER
========================================= */

.kiosk-home-slider-wrap {
    position: relative;
    width: 100%;
    flex: 1;
    min-height: 0;
    max-height: 100%;
    padding: 0 20px;
    overflow: hidden;
}

.kiosk-home-slider-wrap.no-nav {
    padding: 0 20px;
}

.kiosk-grid-swiper {
    width: 100%;
    height: 100%;
    min-width: 0;
    overflow: hidden;
    position: relative;
}

.kiosk-grid-swiper .swiper-wrapper {
    height: 100%;
    align-items: stretch;
}

.kiosk-grid-swiper .swiper-slide {
    height: 100%;
    display: flex;
    min-width: 0;
}

.kiosk-grid-swiper .kiosk-person-card {
    width: 100%;
    max-width: 100% !important;
    height: 100%;
    margin-right: 0 !important;
}

.kiosk-grid-swiper.is-static .swiper-wrapper {
    display: flex;
    gap: 20px;
}

.kiosk-grid-swiper.is-static .swiper-slide {
    flex: 1 1 0;
    width: calc(50% - 10px) !important;
}

.kiosk-grid-swiper.is-static .kiosk-person-card {
    max-width: 100% !important;
}

/* =========================
   SLIDER NAV ARROWS
   ★ FIX: top:50% not 90%
========================= */

.kiosk-slider-nav {
    position: absolute;
    top: 90%;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    z-index: 20;
    width: 56px;
    height: 56px;
    min-width: 56px;
    min-height: 56px;
    border: none;
    border-radius: 50%;
    background: rgba(22, 43, 87, 0.85);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.20);
    -webkit-transition: opacity 0.22s ease, -webkit-transform 0.22s ease, background 0.22s ease;
    transition: opacity 0.22s ease, transform 0.22s ease, background 0.22s ease;
    opacity: 0;
    pointer-events: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}

.kiosk-slider-prev {
    left: 24px;
}

.kiosk-slider-next {
    right: 24px;
}

.kiosk-slider-nav.visible,
.kiosk-slider-nav.show,
.kiosk-home-slider-wrap:hover .kiosk-slider-nav,
.kiosk-home-slider-wrap:focus-within .kiosk-slider-nav,
.kiosk-section-slider:hover .kiosk-slider-nav,
.kiosk-section-slider:focus-within .kiosk-slider-nav,
.kiosk-grid-swiper.show-nav~.kiosk-slider-nav {
    opacity: 1;
    pointer-events: auto;
}

.kiosk-slider-nav:hover,
.kiosk-slider-nav:focus {
    background: var(--gold);
    color: var(--navy);
}

.kiosk-slider-nav:active {
    -webkit-transform: translateY(-50%) scale(0.96);
    transform: translateY(-50%) scale(0.96);
}

/* Pagination dots */

.kiosk-slider-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 0 0;
}

.kiosk-slider-dots .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    margin: 0 !important;
    border-radius: 999px;
    background: rgba(22, 43, 87, 0.25);
    opacity: 1;
    -webkit-transition: 0.2s ease;
    transition: 0.2s ease;
}

.kiosk-slider-dots .swiper-pagination-bullet-active {
    width: 30px;
    background: var(--gold);
}

/* ================================================
   SECTION SLIDER WRAPPER
================================================ */

.kiosk-section-slider {
    position: relative;
    width: 100%;
    height: calc(100vh - var(--header-h) - 24px);
    min-height: 0;
    overflow: hidden;
    padding: 0 var(--container-x);
}

.sectionSwiper {
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

.sectionSwiper .swiper-wrapper {
    height: 100% !important;
    align-items: stretch;
}

.sectionSwiper .swiper-slide {
    height: 100% !important;
    display: flex;
    min-width: 0;
}

.sectionSwiper .story-card {
    width: 100%;
    height: 100%;
    margin: 0 !important;
}

.sectionSwiper .story-card,
.sectionSwiper .story-card-body {
    min-height: 0;
}

.sectionSwiper .story-text {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
}

/* ================================================
   ★★★ STATIC LAYOUT — 1 / 2 / 3 CARDS ★★★

   FIX: Uses ONLY gap for spacing.
   No margin-right. No conflicting rules.
================================================ */

.sectionSwiper.is-static {
    overflow: visible;
}

.sectionSwiper.is-static .swiper-wrapper {
    display: flex !important;
    align-items: stretch;
    height: 100% !important;
    -webkit-transform: none !important;
    transform: none !important;
    width: 100%;
}

/* All static slides — reset margins */
.sectionSwiper.is-static .swiper-slide {
    height: 100% !important;
    margin: 0 !important;
}

/* ---- 1 card: centered, capped width ---- */

.sectionSwiper.is-static.cards-count-1 .swiper-wrapper {
    justify-content: center;
    gap: 0;
}

.sectionSwiper.is-static.cards-count-1 .swiper-slide {
    flex: 0 0 480px !important;
    width: 480px !important;
    max-width: 90% !important;
}

/* ---- 2 cards: centered pair ---- */

.sectionSwiper.is-static.cards-count-2 .swiper-wrapper {
    justify-content: center;
    gap: var(--section-card-gap);
}

.sectionSwiper.is-static.cards-count-2 .swiper-slide {
    flex: 0 1 calc((100% - var(--section-card-gap)) / 2) !important;
    width: calc((100% - var(--section-card-gap)) / 2) !important;
    max-width: 520px !important;
}

/* ---- 3 cards: full row, equal flex ---- */

.sectionSwiper.is-static.cards-count-3 .swiper-wrapper {
    justify-content: stretch;
    gap: var(--section-card-gap);
}

.sectionSwiper.is-static.cards-count-3 .swiper-slide {
    flex: 1 1 0 !important;
    width: 0 !important;
    max-width: none !important;
}

/* =========================
   GOLD CTA BUTTONS
========================= */

#kiosk-btns,
.kiosk-btns {
    min-width: 220px;
    min-height: 60px;
    width: 100%;
    padding: 14px 28px;
    border-radius: 999px;
    background: var(--gold);
    color: var(--navy);
    font-size: 18px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 8px 18px rgba(229, 170, 53, 0.28);
    -webkit-transition: -webkit-transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    cursor: pointer;
    user-select: none;
    position: relative;
    overflow: hidden;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

#kiosk-btns:hover,
.kiosk-btns:hover {
    background: #d99d28;
    -webkit-transform: translateY(-2px);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(229, 170, 53, 0.34);
}

#kiosk-btns:active,
.kiosk-btns:active {
    -webkit-transform: scale(0.97);
    transform: scale(0.97);
    box-shadow: 0 4px 10px rgba(229, 170, 53, 0.22);
}

.tap-hand {
    display: inline-block;
    font-size: 24px;
    line-height: 1;
    -webkit-animation: tapHandBounce 1.2s infinite ease-in-out;
    animation: tapHandBounce 1.2s infinite ease-in-out;
    -webkit-transform-origin: center bottom;
    transform-origin: center bottom;
}

@-webkit-keyframes tapHandBounce {
    0%, 100% {
        -webkit-transform: translateY(0) scale(1) rotate(0deg);
        transform: translateY(0) scale(1) rotate(0deg);
    }

    20% {
        -webkit-transform: translateY(-2px) scale(1.08) rotate(-8deg);
        transform: translateY(-2px) scale(1.08) rotate(-8deg);
    }

    40% {
        -webkit-transform: translateY(2px) scale(0.96) rotate(6deg);
        transform: translateY(2px) scale(0.96) rotate(6deg);
    }

    60% {
        -webkit-transform: translateY(-1px) scale(1.04) rotate(-4deg);
        transform: translateY(-1px) scale(1.04) rotate(-4deg);
    }

    80% {
        -webkit-transform: translateY(1px) scale(0.98) rotate(2deg);
        transform: translateY(1px) scale(0.98) rotate(2deg);
    }
}

@keyframes tapHandBounce {
    0%, 100% {
        -webkit-transform: translateY(0) scale(1) rotate(0deg);
        transform: translateY(0) scale(1) rotate(0deg);
    }

    20% {
        -webkit-transform: translateY(-2px) scale(1.08) rotate(-8deg);
        transform: translateY(-2px) scale(1.08) rotate(-8deg);
    }

    40% {
        -webkit-transform: translateY(2px) scale(0.96) rotate(6deg);
        transform: translateY(2px) scale(0.96) rotate(6deg);
    }

    60% {
        -webkit-transform: translateY(-1px) scale(1.04) rotate(-4deg);
        transform: translateY(-1px) scale(1.04) rotate(-4deg);
    }

    80% {
        -webkit-transform: translateY(1px) scale(0.98) rotate(2deg);
        transform: translateY(1px) scale(0.98) rotate(2deg);
    }
}

#kiosk-btns::after,
.kiosk-btns::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    border-radius: 999px;
    box-shadow: 0 0 0 0 rgba(229, 170, 53, 0.45);
    -webkit-animation: btnPulse 1.8s infinite;
    animation: btnPulse 1.8s infinite;
    pointer-events: none;
}

@-webkit-keyframes btnPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(229, 170, 53, 0.40);
    }

    70% {
        box-shadow: 0 0 0 14px rgba(229, 170, 53, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(229, 170, 53, 0);
    }
}

@keyframes btnPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(229, 170, 53, 0.40);
    }

    70% {
        box-shadow: 0 0 0 14px rgba(229, 170, 53, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(229, 170, 53, 0);
    }
}

/* =========================
   BOOTSTRAP HELPERS
========================= */

.kiosk-row-fill {
    height: var(--main-h) !important;
    max-height: var(--main-h) !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.kiosk-col-fill {
    height: 100% !important;
    max-height: var(--main-h) !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}

/* =========================
   LANDSCAPE LOCK
========================= */

@media (orientation: portrait) and (min-width: 768px) {
    body.kiosk-body::before {
        content: "↻  Please rotate to landscape mode";
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 99999;
        background: var(--navy);
        color: #fff;
        font-family: "Figtree", sans-serif;
        font-size: 2rem;
        font-weight: 600;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 40px;
    }
}

/* =========================
   GPU COMPOSITING
========================= */

.kiosk-person-card,
.story-card,
.section-link-box {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* =========================
   ANDROID WEBVIEW FIX
========================= */

@supports (-webkit-touch-callout: none) {
    body.kiosk-body {
        height: -webkit-fill-available;
    }
}

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

/* --- 55″ 4K (3840×2160) --- */

@media screen and (min-width: 3800px) {
    :root {
        --header-h: 130px;
        --container-x: 56px;
        --touch-min: 76px;
        --grid-gap: 44px;
        --card-radius: 34px;
        --section-card-gap: 44px;
    }

    html {
        font-size: 24px;
    }

    .topbar-logo {
        width: 76px;
        height: 76px;
    }

    .kiosk-person-name {
        font-size: 2.8vw;
    }

    .kiosk-person-desc {
        -webkit-line-clamp: 6;
    }

    .kiosk-person-content {
        padding: 36px 44px;
    }

    .person-hero-card {
        border-radius: 34px;
    }

    .section-link-box {
        padding: 30px 34px;
        border-radius: 22px;
        min-height: 130px;
    }

    .topbar-btn, .kiosk-btn {
        min-height: 72px;
        padding: 20px 40px;
        font-size: 1.2rem;
    }

    .kiosk-btn-home {
        min-height: 76px;
        font-size: 1.25rem;
    }

    .section-nav-btn {
        min-height: 76px;
        min-width: 240px;
        font-size: 1.2rem;
    }

    .explore-badge, .story-badge {
        padding: 14px 24px;
        font-size: 1.1rem;
    }

    .story-card-image-wrap {
        height: 380px;
        min-height: 380px;
        max-height: 380px;
    }

    .sectionSwiper.is-static.cards-count-1 .swiper-slide {
        flex: 0 0 700px !important;
        width: 700px !important;
        max-width: 80% !important;
    }

    .sectionSwiper.is-static.cards-count-2 .swiper-slide {
        max-width: 750px !important;
    }
}

/* --- 2K / QHD (2200–3799) --- */

@media (min-width: 2200px) and (max-width: 3799px) {
    :root {
        --header-h: 112px;
        --container-x: 44px;
        --section-card-gap: 35px;
    }

    html {
        font-size: 20px;
    }

    .topbar-logo {
        width: 62px;
        height: 62px;
    }

    .kiosk-person-content {
        padding: 32px 40px;
    }

    .story-card-image-wrap {
        height: 300px;
        min-height: 300px;
        max-height: 300px;
    }

    .sectionSwiper.is-static.cards-count-1 .swiper-slide {
        flex: 0 0 600px !important;
        width: 600px !important;
        max-width: 85% !important;
    }

    .sectionSwiper.is-static.cards-count-2 .swiper-slide {
        max-width: 650px !important;
    }
}

/* --- 55″ Full HD (1920×1080) PRIMARY --- */

@media (min-width: 1900px) and (max-width: 2199px) {
    :root {
        --header-h: 100px;
        --container-x: 40px;
        --touch-min: 62px;
        --grid-gap: 30px;
        --card-radius: 28px;
        --card-split: 1fr 1fr;
        --section-card-gap: 30px;
    }

    html {
        font-size: 18px;
    }

    .topbar-logo {
        width: 58px;
        height: 58px;
    }

    .kiosk-person-name {
        font-size: 2.4vw;
    }

    .kiosk-person-desc {
        -webkit-line-clamp: 5;
    }

    .kiosk-person-content {
        padding: 28px 36px;
    }

    .kiosk-btn-home {
        min-height: 64px;
    }

    .person-hero-card {
        border-radius: 28px;
    }

    .section-link-box {
        padding: 24px 28px;
        min-height: 100px;
    }

    .topbar-btn, .kiosk-btn {
        min-height: 62px;
        padding: 16px 32px;
    }

    .story-card-image-wrap {
        height: 280px;
        min-height: 280px;
        max-height: 280px;
    }

    .kiosk-grid {
        gap: 30px;
    }

    .kiosk-person-card {
        max-width: calc(50% - 15px);
    }

    .sectionSwiper.is-static.cards-count-1 .swiper-slide {
        flex: 0 0 520px !important;
        width: 520px !important;
        max-width: 90% !important;
    }

    .sectionSwiper.is-static.cards-count-2 .swiper-slide {
        max-width: 560px !important;
    }
}

/* --- Full HD (1366–1899) --- */

@media (min-width: 1366px) and (max-width: 1899px) {
    :root {
        --grid-gap: 22px;
        --section-card-gap: 22px;
    }

    html {
        font-size: 16px;
    }

    .story-card-image-wrap {
        height: 230px;
        min-height: 230px;
        max-height: 230px;
    }

    .kiosk-person-desc {
        -webkit-line-clamp: 4;
    }
}

/* --- Large Tablet / Small Kiosk (1000–1365) --- */

@media (max-width: 1365px) and (min-width: 1000px) {
    :root {
        --container-x: 22px;
        --grid-gap: 18px;
        --card-split: 45% 55%;
        --section-card-gap: 18px;
    }

    .kiosk-person-desc {
        -webkit-line-clamp: 3;
    }

    .sections-title {
        margin-top: 8px;
    }
}

/* --- Tablet (≤999) --- */

@media (max-width: 999px) {
    :root {
        --header-h: 80px;
        --container-x: 18px;
        --grid-gap: 14px;
        --card-split: 1fr;
        --section-card-gap: 14px;
    }

    .kiosk-person-card {
        grid-template-columns: 1fr;
        grid-template-rows: 50% 50%;
    }

    .kiosk-person-img {
        grid-column: 1;
        grid-row: 1;
    }

    .kiosk-person-content {
        padding: 20px 18px;
        grid-column: 1;
        grid-row: 2;
    }

    .kiosk-person-desc {
        -webkit-line-clamp: 3;
    }

    .topbar-inner {
        padding-top: 14px;
        padding-bottom: 14px;
        gap: 14px;
    }

    .topbar-text h3 {
        font-size: 1.5rem;
    }

    .topbar-btn, .kiosk-btn {
        min-width: 92px;
        min-height: 52px;
        padding: 12px 20px;
    }

    .person-hero-overlay {
        padding: 28px;
    }

    .story-card-image-wrap {
        height: 220px;
        min-height: 220px;
        max-height: 220px;
    }

    .kiosk-slider-nav {
        width: 54px;
        height: 54px;
        min-width: 54px;
        min-height: 54px;
        font-size: 24px;
    }

    .kiosk-slider-prev {
        left: 16px;
    }

    .kiosk-slider-next {
        right: 16px;
    }

    .sectionSwiper.is-static.cards-count-1 .swiper-slide {
        flex: 0 0 400px !important;
        width: 400px !important;
        max-width: 90% !important;
    }

    .sectionSwiper.is-static.cards-count-2 .swiper-slide {
        max-width: 420px !important;
    }

    /* Font fallbacks for small screens */
    .story-title {
        font-size: 1.4rem;
    }

    .story-text {
        font-size: 0.95rem;
    }

    .topbar-text h3 {
        font-size: 1.5rem;
    }

    .kiosk-person-name {
        font-size: 1.6rem;
    }

    .section-link-box h4 {
        font-size: 1.1rem;
    }
}

/* --- Mobile (≤767) --- */

@media (max-width: 767px) {
    :root {
        --container-x: 14px;
        --header-h: 68px;
        --grid-gap: 10px;
        --card-split: 38% 62%;
        --section-card-gap: 10px;
    }

    .kiosk-grid {
        flex-direction: column;
    }

    .kiosk-person-card {
        max-width: 100%;
        grid-template-columns: var(--card-split);
        grid-template-rows: 1fr;
    }

    .kiosk-person-img {
        grid-column: 1;
        grid-row: 1;
    }

    .kiosk-person-content {
        padding: 15px 12px;
        grid-column: 2;
        grid-row: 1;
    }

    .topbar-inner {
        flex-direction: row;
        align-items: center !important;
    }

    .topbar-actions {
        justify-content: flex-end;
    }

    .topbar-logo {
        width: 40px;
        height: 40px;
    }

    .topbar-text h3 {
        font-size: 1.15rem;
    }

    .topbar-text span {
        font-size: 0.82rem;
    }

    .kiosk-person-name {
        font-size: 1.2rem;
    }

    .kiosk-person-sub {
        font-size: 0.82rem;
    }

    .kiosk-person-desc {
        font-size: 0.82rem;
        -webkit-line-clamp: 2;
        line-height: 1.45;
    }

    .kiosk-btn-home {
        min-height: 42px;
        font-size: 0.85rem;
        padding: 8px 12px;
        border-radius: 10px;
    }

    .explore-badge {
        top: 8px;
        left: 8px;
        font-size: 0.68rem;
        padding: 4px 9px;
    }

    .person-hero-overlay {
        padding: 20px 18px;
    }

    .person-hero-overlay h1 {
        font-size: 1.8rem;
    }

    .person-hero-overlay p {
        max-width: 100%;
        font-size: 0.92rem;
    }

    .sections-title {
        font-size: 1.8rem;
    }

    .section-link-box {
        min-height: 78px;
        padding: 14px 16px;
    }

    .section-link-box h4 {
        font-size: 1rem;
    }

    .section-link-box p {
        font-size: 0.85rem;
    }

    .story-card-image-wrap {
        height: 170px;
        min-height: 170px;
        max-height: 170px;
    }

    .story-card-body {
        padding: 14px 16px 18px;
    }

    .story-title {
        font-size: 1.5rem;
    }

    .story-text {
        font-size: 0.9rem;
    }

    .kiosk-slider-nav {
        width: 46px;
        height: 46px;
        min-width: 46px;
        min-height: 46px;
        font-size: 20px;
    }

    .kiosk-slider-prev {
        left: 10px;
    }

    .kiosk-slider-next {
        right: 10px;
    }

    .kiosk-slider-dots {
        padding-top: 8px;
    }

    .kiosk-slider-dots .swiper-pagination-bullet {
        width: 10px;
        height: 10px;
    }

    .kiosk-slider-dots .swiper-pagination-bullet-active {
        width: 24px;
    }

    .kiosk-grid-swiper.is-static .swiper-wrapper {
        gap: 10px;
        flex-direction: column;
    }

    .kiosk-grid-swiper.is-static .swiper-slide {
        width: 100% !important;
    }

    /* Static cards stack vertically */
    .sectionSwiper.is-static .swiper-wrapper {
        flex-direction: column;
        gap: 12px;
    }

    .sectionSwiper.is-static .swiper-slide {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
    }
}

/* --- Extra Small (≤479) --- */

@media (max-width: 479px) {
    .topbar-actions {
        width: 100%;
        justify-content: space-between;
    }

    .topbar-btn, .kiosk-btn {
        flex: 1;
        min-width: auto;
    }

    .explore-badge, .story-badge {
        font-size: 0.72rem;
        padding: 6px 10px;
    }
}
