/* ============================================================
   KIOSK CSS — 55" NO-SCROLL, ALTERNATIVE UI
   Premium warm design with saffron + deep blue palette
   ============================================================ */

:root {
    --saffron:     #E8A838;
    --saffron-glow:#FFF3DB;
    --deep-blue:   #1B2A4A;
    --midnight:    #0F1B33;
    --cream:       #FDF8F0;
    --slate:       #64748B;
    --white:       #FFFFFF;
    --radius:      14px;
    --radius-sm:   8px;
    --shadow:      0 4px 24px rgba(15,27,51,.08);
    --shadow-lg:   0 8px 40px rgba(15,27,51,.12);
    --font-display:'Playfair Display', Georgia, serif;
    --font-body:   'DM Sans', system-ui, sans-serif;
    --topbar-h:    70px;
}

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

html, body {
    height: 100vh;
    overflow: hidden;          /* NO SCROLL */
    font-family: var(--font-body);
    background: var(--cream);
    color: var(--deep-blue);
    -webkit-font-smoothing: antialiased;
}

.kiosk-body {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

/* ======================== TOPBAR ======================== */

.kiosk-topbar {
    height: var(--topbar-h);
    background: var(--deep-blue);
    color: var(--white);
    flex-shrink: 0;
    z-index: 100;
}

.kiosk-topbar__inner {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.kiosk-topbar__left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.kiosk-logo {
    height: 44px;
    width: auto;
    border-radius: 6px;
}

.kiosk-topbar__title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.kiosk-topbar__sub {
    font-size: 0.8rem;
    opacity: 0.7;
    margin: 0;
}

.kiosk-topbar__right {
    display: flex;
    gap: 0.6rem;
}

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

.kiosk-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.4rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.02em;
}

.kiosk-btn--primary {
    background: var(--saffron);
    color: var(--deep-blue);
}
.kiosk-btn--primary:hover {
    background: #D49520;
    color: var(--deep-blue);
    transform: translateY(-1px);
}

.kiosk-btn--soft {
    background: rgba(255,255,255,.12);
    color: var(--white);
    border: 1px solid rgba(255,255,255,.2);
}
.kiosk-btn--soft:hover {
    background: rgba(255,255,255,.2);
    color: var(--white);
}

.kiosk-btn--sm {
    padding: 0.35rem 1rem;
    font-size: 0.8rem;
}

/* ======================== MAIN AREA ======================== */

.kiosk-main {
    flex: 1;
    overflow: hidden;
    padding: 1rem 2rem;
    max-width: 1800px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

/* ======================== HOME PAGE ======================== */

.home-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 2rem;
    height: 100%;
    align-content: center;
}

.home-card {
    display: flex;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    height: 340px;
}
.home-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    color: inherit;
}

.home-card__media {
    width: 45%;
    position: relative;
    background: linear-gradient(135deg, var(--saffron-glow), #FDE8C4);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.home-card__media img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}
.home-card__pill {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--saffron);
    color: var(--deep-blue);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.home-card__body {
    flex: 1;
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
}

.home-card__name {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--deep-blue);
}

.home-card__sub {
    font-size: 0.85rem;
    color: var(--slate);
}

.home-card__intro {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
}

.home-card__cta {
    margin-top: auto;
    background: var(--deep-blue);
    color: var(--white);
    text-align: center;
    padding: 0.65rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
}

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

.person-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    height: 100%;
}

.person-hero {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: linear-gradient(135deg, var(--deep-blue), var(--midnight));
}

.person-hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

.person-hero__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2.5rem;
    background: linear-gradient(transparent, rgba(15,27,51,.85));
    color: var(--white);
}

.person-hero__name {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
}

.person-hero__intro {
    font-size: 1rem;
    opacity: 0.85;
    line-height: 1.6;
}

.person-sections {
    display: flex;
    flex-direction: column;
}

.person-sections__heading {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--deep-blue);
}

.sections-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    overflow: hidden;
    flex: 1;
    align-content: start;
}

.section-tile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--white);
    border-radius: var(--radius-sm);
    padding: 1rem 1.2rem;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--saffron);
    transition: all 0.2s ease;
}
.section-tile:hover {
    background: var(--saffron-glow);
    transform: translateX(4px);
    color: inherit;
}

.section-tile__label {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--deep-blue);
}

.section-tile__meta {
    font-size: 0.75rem;
    color: var(--slate);
    margin-top: 2px;
}

.section-tile__arrow {
    font-size: 1.5rem;
    color: var(--saffron);
    font-weight: 700;
}

/* ======================== DETAILS PAGE ======================== */

.details-layout {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.5rem;
    height: 100%;
}

.details-col {
    min-height: 0;
    overflow: hidden;
}

.details-panel {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.details-panel__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.details-panel__title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--deep-blue);
}

.details-panel__crumb {
    font-size: 0.8rem;
    color: var(--slate);
    margin-top: 2px;
}

.details-panel__label {
    font-weight: 700;
    font-size: 1rem;
    color: var(--deep-blue);
    margin-bottom: 0.75rem;
}

.details-panel__body {
    font-size: 0.92rem;
    line-height: 1.75;
    color: #444;
    overflow: hidden;
    flex: 1;
}
.details-panel__body p {
    margin-bottom: 0.6rem;
}

.details-panel hr {
    border: none;
    border-top: 1px solid #E8E8E8;
    margin: 1rem 0;
}

.details-hint {
    margin-top: auto;
    background: var(--saffron-glow);
    border-radius: var(--radius-sm);
    padding: 0.6rem 0.9rem;
    font-size: 0.8rem;
    color: var(--deep-blue);
}

.text-muted-custom {
    font-size: 0.85rem;
    color: var(--slate);
}

/* ======================== PHOTOS GRID ======================== */

.photo-grid {
    display: grid;
    /* grid-template-columns: 1fr 1fr; */
    gap: 0.6rem;
    flex: 1;
    overflow: hidden;
}

.photo-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

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

.video-box {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #000;
}

.video-box video,
.video-box iframe {
    width: 100%;
    height: 200px;
    display: block;
    border: none;
}

/* ======================== BOOKS ======================== */

.books-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.books-list li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.75rem;
    background: var(--cream);
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 500;
}

.book-cover {
    width: 32px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
}

/* ======================== ANIMATION ======================== */

.home-card, .section-tile, .details-panel {
    animation: fadeSlideUp 0.4s ease both;
}

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

.sections-grid > :nth-child(1) { animation-delay: 0s; }
.sections-grid > :nth-child(2) { animation-delay: 0.05s; }
.sections-grid > :nth-child(3) { animation-delay: 0.1s; }
.sections-grid > :nth-child(4) { animation-delay: 0.15s; }
.sections-grid > :nth-child(5) { animation-delay: 0.2s; }
.sections-grid > :nth-child(6) { animation-delay: 0.25s; }
.sections-grid > :nth-child(7) { animation-delay: 0.3s; }
.sections-grid > :nth-child(8) { animation-delay: 0.35s; }
.sections-grid > :nth-child(9) { animation-delay: 0.4s; }

/* ======================== BLOG LAYOUT (DETAILS PAGE) ======================== */

.blog-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
    flex: 1;
    min-height: 0;
}

.blog-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    height: 100%;
    animation: fadeSlideUp 0.4s ease both;
}

.blog-card:nth-child(1) { animation-delay: 0s; }
.blog-card:nth-child(2) { animation-delay: 0.1s; }
.blog-card:nth-child(3) { animation-delay: 0.2s; }

.blog-card--active {
    border: 3px solid var(--saffron);
}

/* Image Top */
.blog-card__image {
    position: relative;
    height: 40%;
    min-height: 180px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--deep-blue), var(--midnight));
    flex-shrink: 0;
}

.blog-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--saffron-glow), #FDE8C4);
}

.blog-card__placeholder span {
    font-size: 3rem;
}

.blog-card__badge {
    position: absolute;
    top: 0.8rem;
    left: 0.8rem;
    background: rgba(15, 27, 51, 0.85);
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    backdrop-filter: blur(4px);
}

.blog-card--active .blog-card__badge {
    background: var(--saffron);
    color: var(--deep-blue);
}

/* Content Bottom */
.blog-card__content {
    flex: 1;
    padding: 1.2rem 1.4rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.blog-card__meta {
    font-size: 0.75rem;
    color: var(--slate);
    font-weight: 500;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.blog-card__title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--deep-blue);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.blog-card__body {
    font-size: 0.88rem;
    line-height: 1.7;
    color: #555;
    overflow: hidden;
    flex: 1;
}

.blog-card__body p {
    margin-bottom: 0.4rem;
}

/* Photo Grid inside Card 2 */
.blog-photo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    flex: 1;
    overflow: hidden;
}

.blog-photo-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

/* Video inside Card 3 */
.blog-video {
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #000;
    margin-bottom: 0.5rem;
}

.blog-video video,
.blog-video iframe {
    width: 100%;
    height: 160px;
    display: block;
    border: none;
}

/* Books inside Card 3 */
.blog-books {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.blog-books li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.7rem;
    background: var(--cream);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
}

.blog-books__icon {
    font-size: 1rem;
}

/* Divider */
.blog-divider {
    border: none;
    border-top: 1px solid #EBEBEB;
    margin: 0.8rem 0;
}

/* Empty States */
.blog-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    color: var(--slate);
    text-align: center;
    padding: 1.5rem;
}

.blog-empty--sm {
    padding: 0.8rem;
    flex: 0;
}

.blog-empty__icon {
    font-size: 2rem;
    margin-bottom: 0.4rem;
    opacity: 0.5;
}

.blog-empty p {
    font-size: 0.85rem;
    margin: 0;
}
/* ======================== DETAILS PAGE ======================== */

.details-page {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 1rem;
}


.blog-card {
 display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    height: 100%;
    animation: fadeSlideUp 0.4s ease both;
}

.blog-card:nth-child(1) { animation-delay: 0s; }
.blog-card:nth-child(2) { animation-delay: 0.1s; }
.blog-card:nth-child(3) { animation-delay: 0.2s; }
.blog-card--active { border: 3px solid var(--saffron); }

.blog-card__image {
    position: relative;
    height: 45%;
    overflow: hidden;
    background: linear-gradient(135deg, var(--deep-blue), var(--midnight));
    flex-shrink: 0;
}

.blog-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.blog-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--saffron-glow), #FDE8C4);
}


.blog-card__placeholder span {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 900;
    color: var(--saffron);
    opacity: 0.4;
}
.blog-card__badge {
    position: absolute;
    top: 0.7rem;
    left: 0.7rem;
    background: rgba(15, 27, 51, 0.85);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    backdrop-filter: blur(4px);
}
.blog-card--active .blog-card__badge {
    background: var(--saffron);
    color: var(--deep-blue);
}

.blog-card__content {
    flex: 1;
    padding: 1.1rem 1.3rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.blog-card__meta {
    font-size: 0.7rem;
    color: var(--slate);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.2rem;
}

.blog-card__title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--deep-blue);
    margin-bottom: 0.4rem;
    line-height: 1.3;
}

.blog-card__body {
    font-size: 0.85rem;
    line-height: 1.75;
    color: #555;
    overflow: hidden;
    flex: 1;
}

.blog-card__body p { margin-bottom: 0.3rem; }


.gallery-layout {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    animation: fadeSlideUp 0.4s ease both;
}

.gallery-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.8rem;
}

.gallery-header__title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--deep-blue);
}

.gallery-header__count {
    font-size: 0.85rem;
    color: var(--slate);
    background: var(--white);
    padding: 0.3rem 0.9rem;
    border-radius: 50px;
    font-weight: 600;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 0.8rem;
    flex: 1;
    overflow: hidden;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow);
    animation: fadeSlideUp 0.4s ease both;
}

.gallery-item:nth-child(1) { animation-delay: 0s; }
.gallery-item:nth-child(2) { animation-delay: 0.05s; }
.gallery-item:nth-child(3) { animation-delay: 0.1s; }
.gallery-item:nth-child(4) { animation-delay: 0.15s; }
.gallery-item:nth-child(5) { animation-delay: 0.2s; }
.gallery-item:nth-child(6) { animation-delay: 0.25s; }

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-item__caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(15,27,51,.8));
    color: var(--white);
    padding: 1.5rem 0.8rem 0.6rem;
    font-size: 0.78rem;
    font-weight: 500;
}

/* ======================== VIDEOS VIEW ======================== */

.video-layout {
    flex: 1;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.2rem;
    min-height: 0;
    animation: fadeSlideUp 0.4s ease both;
}

.video-main {
    background: #000;
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-player {
    width: 100%;
    height: 100%;
}

.video-player video,
.video-player iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: none;
}

.video-sidebar {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.video-sidebar__title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--deep-blue);
    margin-bottom: 0.8rem;
}

.video-sidebar__text {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #555;
}

/* ======================== BOOKS VIEW ======================== */

.books-layout {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    animation: fadeSlideUp 0.4s ease both;
}

.books-header {
    margin-bottom: 0.8rem;
}

.books-header__title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--deep-blue);
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    flex: 1;
    overflow: hidden;
    align-content: start;
}

.book-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: fadeSlideUp 0.4s ease both;
}

.book-card__cover {
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--saffron-glow), #FDE8C4);
}

.book-card__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.book-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.book-card__placeholder span { font-size: 3rem; }

.book-card__info {
    padding: 0.8rem 1rem;
}

.book-card__info h3 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--deep-blue);
    margin-bottom: 0.2rem;
}

.book-card__info p {
    font-size: 0.75rem;
    color: var(--slate);
    margin: 0;
}

/* ======================== EMPTY STATE ======================== */

.empty-state {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--slate);
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
}

.empty-state__icon {
    font-size: 3rem;
    margin-bottom: 0.8rem;
    opacity: 0.4;
}

.empty-state h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--deep-blue);
    margin-bottom: 0.3rem;
}

.empty-state p {
    font-size: 0.85rem;
    margin: 0;
}

/* ======================== CONTACT BAR ======================== */

.contact-bar {
    background: var(--deep-blue);
    border-radius: var(--radius);
    padding: 0.7rem 1.5rem;
    flex-shrink: 0;
    animation: fadeSlideUp 0.5s ease 0.3s both;
}

.contact-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-item__icon {
    font-size: 1.1rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(232, 168, 56, 0.15);
    border-radius: 50%;
    flex-shrink: 0;
}

.contact-item__label {
    font-size: 0.6rem;
    color: var(--saffron);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.contact-item__value {
    font-size: 0.75rem;
    color: var(--white);
    font-weight: 500;
    white-space: nowrap;
}   
