/* ==========================================================================
   Bosco Homestay - Main Stylesheet
   Deep Maroon (#440404) & Heritage Gold (#C9A227) Design System
   ========================================================================== */

/* Century Gothic is a system font — no external import needed */

:root {
    --font-heading: 'Century Gothic', CenturyGothic, Futura, 'Trebuchet MS', 'Apple Gothic', sans-serif;
    --font-serif: 'Century Gothic', CenturyGothic, Futura, 'Trebuchet MS', 'Apple Gothic', sans-serif;
    --font-sans: 'Century Gothic', CenturyGothic, Futura, 'Trebuchet MS', 'Apple Gothic', sans-serif;
    --font-body: 'Century Gothic', CenturyGothic, Futura, 'Trebuchet MS', 'Apple Gothic', sans-serif;
    --brand: #101a35;
    --brand-dark: #09122a;
    --brand-light: #2b3e66;
    --accent: #e37d00;
    --accent-light: #fff0dc;
    --cream: #f4f6fb;
    --surface: #FFFFFF;
    --ink: #111a31;
    --muted: #667085;
    --line: #d7ddec;
    --line-light: #e9edf5;
    --ok: #2E7D4F;
    --warn: #B8860B;
    --err: #C5221F;
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --shadow-sm: 0 1px 3px rgba(9, 18, 42, 0.06), 0 1px 2px rgba(9, 18, 42, 0.04);
    --shadow-md: 0 4px 12px rgba(9, 18, 42, 0.09), 0 1px 3px rgba(9, 18, 42, 0.05);
    --shadow-lg: 0 12px 30px rgba(9, 18, 42, 0.12), 0 2px 8px rgba(9, 18, 42, 0.05);
    --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--ink);
    background-color: var(--cream);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

h1, h2, h3, h4, h5, h6, .serif-font {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--brand);
    line-height: 1.22;
    letter-spacing: -0.01em;
}

button, input, select, textarea, optgroup, .btn {
    font-family: var(--font-sans);
}

h1 { font-size: 2.75rem; margin-bottom: 0.85rem; }
h2 { font-size: 2.15rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.45rem; margin-bottom: 0.5rem; }
h4 { font-size: 1.2rem; margin-bottom: 0.45rem; }

p {
    margin-bottom: 1rem;
    color: #4d5567;
}

a {
    color: var(--brand-light);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--brand);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 2rem;
}


/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
    background-color: #101a35;
    color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 3px 14px rgba(9, 18, 42, 0.24);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 84px;
    gap: 0.6rem;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #ffffff;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-icon {
    width: 54px;
    height: 54px;
    background: transparent;
    color: #f0a64d;
    border: 1px solid rgba(227, 125, 0, 0.72);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
}

.logo-text h1 {
    font-size: 1.7rem;
    margin: 0;
    color: #ffffff;
    letter-spacing: -0.01em;
    line-height: 1;
    white-space: nowrap;
}

.main-nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    margin-right: 0;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 0.05rem;
    align-items: center;
    flex-wrap: nowrap;
    white-space: nowrap;
}


.main-nav a {
    color: #aeb8d0;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.1px;
    text-transform: uppercase;
    position: relative;
    padding: 0.35rem 0.38rem;
    white-space: nowrap;
    border-radius: 4px;
    transition: var(--transition);
}


.main-nav a:hover,
.main-nav a.active {
    color: var(--accent);
    background: rgba(227, 125, 0, 0.08);
}

.main-nav a.active {
    color: var(--accent);
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0.38rem;
    right: 0.38rem;
    height: 2px;
    background-color: var(--accent);
    border-radius: 1px;
}


.header-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}

/* Mobile Toggle */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(9, 18, 42, 0.98);
    z-index: 2000;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.mobile-nav-overlay.open {
    display: flex;
}

.mobile-nav-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.mobile-nav-overlay ul {
    list-style: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-nav-overlay a {
    color: #d8deec;
    font-size: 1.15rem;
    font-family: var(--font-sans);
    font-weight: 600;
    padding: 0.5rem 2rem;
    display: block;
    border-radius: 4px;
}

.mobile-nav-overlay a:hover {
    color: var(--accent);
    background: rgba(227, 125, 0, 0.08);
}


/* ==========================================================================
   Buttons & Badges
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.62rem 1.35rem;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    font-family: inherit;
    line-height: 1.4;
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background-color: var(--brand);
    color: #ffffff;
    border-color: var(--brand-dark);
}

.btn-primary:hover {
    background-color: var(--brand-dark);
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(9, 18, 42, 0.25);
}

.btn-accent {
    background-color: var(--accent);
    color: #ffffff;
    border-color: #c56a00;
    font-weight: 600;
}

.btn-accent:hover {
    background-color: #c56a00;
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(227, 125, 0, 0.28);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--brand);
    color: var(--brand);
}

.btn-outline:hover {
    background-color: var(--brand);
    color: #ffffff;
}

.btn-outline-light {
    background-color: transparent;
    border-color: rgba(255, 255, 255, 0.6);
    color: #ffffff;
}

.btn-outline-light:hover {
    background-color: #ffffff;
    border-color: #ffffff;
    color: var(--brand);
}

.btn-sm {
    padding: 0.32rem 0.75rem;
    font-size: 0.82rem;
}

.btn-lg {
    padding: 0.8rem 1.85rem;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    font-size: 0.72rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    border: 1px solid transparent;
}

.badge-success { background-color: #e6f4ea; color: var(--ok); border-color: #c6e7cf; }
.badge-warning { background-color: #fef7e0; color: var(--warn); border-color: #fce8b2; }
.badge-danger { background-color: #fce8e6; color: var(--err); border-color: #fad2cf; }
.badge-info { background-color: #e8f0fe; color: #1a73e8; border-color: #d2e3fc; }
.badge-secondary { background-color: #e8eaed; color: #5f6368; border-color: #dadce0; }

/* ==========================================================================
   Hero Section  (bh-hero)
   Clean two-column hospitality design
   ========================================================================== */

/* -- Layout ------------------------------------------------ */
.bh-hero {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: center;
    background-color: #0b1731;
    background-image:
        radial-gradient(circle at 82% 23%, rgba(227, 125, 0, 0.18), transparent 26%),
        radial-gradient(circle at 12% 88%, rgba(51, 92, 73, 0.35), transparent 36%),
        linear-gradient(115deg, #09122a 0%, #12244a 53%, #0d1934 100%);
    background-position: center;
    background-size: cover;
    overflow: hidden;
}

.bh-hero[style*="--hero-bg"] {
    background-image:
        linear-gradient(105deg, rgba(9, 18, 42, 0.88) 0%, rgba(9, 18, 42, 0.61) 56%, rgba(9, 18, 42, 0.42) 100%),
        var(--hero-bg);
}

.bh-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        rgba(9, 18, 42, 0.82) 0%,
        rgba(9, 18, 42, 0.58) 55%,
        rgba(9, 18, 42, 0.38) 100%
    );
    z-index: 0;
}

.bh-hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 3.5rem;
    align-items: center;
    padding-top: 5.5rem;
    padding-bottom: 5rem;
    width: 100%;
}

/* -- Copy column ------------------------------------------- */
.bh-hero__copy {
    max-width: 580px;
}

.bh-hero__eyebrow {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #f7c47e;
    margin: 0 0 1.1rem;
}

.bh-hero__heading {
    font-family: var(--font-heading);
    font-size: clamp(2.1rem, 3.8vw, 3.1rem);
    font-weight: 600;
    line-height: 1.18;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin: 0 0 1.2rem;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.bh-hero__desc {
    font-family: var(--font-sans);
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.82);
    margin: 0 0 2rem;
    max-width: 480px;
}

/* -- CTA buttons ------------------------------------------- */
.bh-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.bh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.015em;
    padding: 0.75rem 1.75rem;
    border-radius: 6px;
    border: 2px solid transparent;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.bh-btn--primary {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
    box-shadow: 0 4px 16px rgba(227, 125, 0, 0.30);
}
.bh-btn--primary:hover {
    background: #c56a00;
    border-color: #c56a00;
    color: #ffffff;
    box-shadow: 0 6px 22px rgba(227, 125, 0, 0.42);
    transform: translateY(-1px);
}

.bh-btn--ghost {
    background: rgba(255, 255, 255, 0.10);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.bh-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.70);
    color: #ffffff;
}

/* -- Trust row --------------------------------------------- */
.bh-hero__trust {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem 1.5rem;
}

.bh-hero__trust li {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.70);
    font-weight: 500;
}

.bh-hero__trust li svg {
    width: 14px;
    height: 14px;
    stroke: #f7c47e;
    flex-shrink: 0;
}

/* -- Availability widget ----------------------------------- */
.bh-hero__widget {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem 1.5rem 1.25rem;
    box-shadow: 0 16px 48px rgba(9, 18, 42, 0.28);
    align-self: center;
}

.bh-widget__label {
    font-family: var(--font-sans);
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--brand);
    margin: 0 0 1rem;
}

.bh-widget__form {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.bh-widget__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
}

.bh-widget__field {
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
}

.bh-widget__field label {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #64748b;
}

.bh-widget__field input,
.bh-widget__field select {
    width: 100%;
    height: 42px;
    padding: 0 0.7rem;
    border: 1.5px solid #dde3ee;
    border-radius: 7px;
    background: #f8fafc;
    color: var(--ink);
    font-size: 0.87rem;
    font-family: var(--font-sans);
    font-weight: 500;
    transition: border-color 0.15s, box-shadow 0.15s;
    outline: none;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

.bh-widget__field input:focus,
.bh-widget__field select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(227, 125, 0, 0.12);
    background: #ffffff;
}

.bh-widget__submit {
    width: 100%;
    height: 44px;
    margin-top: 0.25rem;
    background: var(--accent);
    color: #ffffff;
    border: none;
    border-radius: 7px;
    font-family: var(--font-sans);
    font-size: 0.87rem;
    font-weight: 700;
    letter-spacing: 0.015em;
    cursor: pointer;
    transition: background 0.18s, box-shadow 0.18s, transform 0.15s;
}
.bh-widget__submit:hover {
    background: #c56a00;
    box-shadow: 0 6px 18px rgba(227, 125, 0, 0.35);
    transform: translateY(-1px);
}

.bh-widget__note {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    color: #94a3b8;
    text-align: center;
    margin: 0.75rem 0 0;
    font-weight: 500;
}

/* -- Responsive -------------------------------------------- */
@media (max-width: 1024px) {
    .bh-hero__inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding-top: 4rem;
        padding-bottom: 3.5rem;
    }
    .bh-hero__copy  { max-width: 640px; }
    .bh-hero__widget { max-width: 480px; }
    .bh-hero::before {
        background: linear-gradient(180deg,
            rgba(9, 18, 42, 0.78) 0%,
            rgba(9, 18, 42, 0.65) 100%);
    }
}

@media (max-width: 640px) {
    .bh-hero        { min-height: auto; }
    .bh-hero__inner { padding-top: 3rem; padding-bottom: 3rem; }
    .bh-hero__heading { font-size: 1.9rem; }
    .bh-hero__desc    { font-size: 0.95rem; }
    .bh-hero__actions { flex-direction: column; }
    .bh-btn           { width: 100%; }
    .bh-widget__row   { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Centered Immersive Hero (Inspired by Luxury Nature Chalets)
   ========================================================================== */
.bh-hero--centered {
    position: relative;
    min-height: 88vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #0b1731;
    background-image: var(--hero-bg);
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    overflow: hidden;
    padding: 6rem 1.5rem 5.5rem;
}

.bh-hero--centered::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(16, 26, 53, 0.38) 0%, rgba(16, 26, 53, 0.58) 60%, rgba(16, 26, 53, 0.78) 100%),
                linear-gradient(180deg, rgba(16, 26, 53, 0.25) 0%, rgba(16, 26, 53, 0.45) 50%, rgba(16, 26, 53, 0.8) 100%);
    z-index: 1;
}

.bh-hero__centered-content {
    position: relative;
    z-index: 2;
    max-width: 880px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bh-hero__centered-heading {
    font-family: var(--font-heading);
    font-size: clamp(2.4rem, 5.2vw, 4.4rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.15;
    letter-spacing: -0.015em;
    margin: 0 0 1.25rem;
    text-shadow: 0 3px 20px rgba(0, 0, 0, 0.7), 0 1px 4px rgba(0, 0, 0, 0.9);
}

.bh-hero__centered-sub {
    font-family: var(--font-sans);
    font-size: clamp(1.05rem, 1.8vw, 1.28rem);
    font-weight: 400;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.95);
    max-width: 700px;
    margin: 0 auto 2.25rem;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
}

.bh-hero__centered-action {
    display: flex;
    justify-content: center;
    align-items: center;
}

.bh-btn-hero-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #9333ea 0%, #7e22ce 100%);
    color: #ffffff;
    font-family: var(--font-sans);
    font-size: 1.05rem;
    font-weight: 600;
    padding: 0.9rem 2.6rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    text-decoration: none;
    box-shadow: 0 10px 25px -3px rgba(147, 51, 234, 0.5), 0 4px 6px -2px rgba(147, 51, 234, 0.2);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    letter-spacing: 0.01em;
}

.bh-btn-hero-pill:hover {
    background: linear-gradient(135deg, #a855f7 0%, #9333ea 100%);
    color: #ffffff;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 16px 32px -4px rgba(147, 51, 234, 0.65);
}

.bh-hero__scroll-down {
    position: absolute;
    bottom: 1.75rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: var(--transition);
}

.bh-hero__scroll-down:hover {
    color: #ffffff;
    transform: translateX(-50%) translateY(2px);
}

.bh-scroll-mouse {
    width: 24px;
    height: 38px;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.bh-scroll-wheel {
    width: 4px;
    height: 8px;
    background: #ffffff;
    border-radius: 2px;
    animation: bhScrollBounce 1.8s infinite ease-in-out;
}

@keyframes bhScrollBounce {
    0% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(8px); opacity: 0.3; }
    100% { transform: translateY(0); opacity: 1; }
}

/* ==========================================================================
   Why Choose Bosco Homestay Section
   ========================================================================== */
.why-bosco-section {
    padding: 2.75rem 0 2rem;
    background: #ffffff;
    position: relative;
}

.why-bosco-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 1.5rem;
}

.why-bosco-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #7e22ce;
    background: #f3e8ff;
    padding: 0.25rem 0.85rem;
    border-radius: 9999px;
    margin-bottom: 0.45rem;
    border: 1px solid #e9d5ff;
}

.why-bosco-title {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 2.7vw, 2.05rem);
    color: var(--brand);
    margin: 0 0 0.35rem;
    line-height: 1.2;
    letter-spacing: -0.015em;
}

.why-bosco-subtitle {
    font-size: 0.92rem;
    color: var(--muted);
    line-height: 1.5;
    margin: 0;
}

/* Feature Grid */
.why-bosco-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.why-bosco-card {
    background: #ffffff;
    border: 1px solid var(--line-light);
    border-radius: 12px;
    padding: 1.15rem 1.1rem;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    box-shadow: 0 3px 12px rgba(9, 18, 42, 0.03);
    display: flex;
    flex-direction: column;
}

.why-bosco-card:hover {
    transform: translateY(-3px);
    border-color: rgba(147, 51, 234, 0.3);
    box-shadow: 0 10px 24px rgba(9, 18, 42, 0.06);
}

.why-bosco-icon-wrap {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
    border: 1px solid #ddd6fe;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 0.65rem;
    box-shadow: 0 3px 8px rgba(147, 51, 234, 0.06);
    transition: transform 0.25s ease;
}

.why-bosco-card:hover .why-bosco-icon-wrap {
    transform: scale(1.06) rotate(3deg);
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
}

.why-bosco-card-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: var(--brand);
    margin: 0 0 0.35rem;
    font-weight: 600;
}

.why-bosco-card-desc {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.45;
    margin: 0;
    flex-grow: 1;
}

/* Stat Banner */
.why-bosco-stats-banner {
    background: linear-gradient(135deg, #101a35 0%, #1a2647 100%);
    border-radius: 14px;
    padding: 1.4rem 1.5rem;
    color: #ffffff;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.25rem;
    text-align: center;
    margin-bottom: 1.75rem;
    box-shadow: 0 12px 30px rgba(9, 18, 42, 0.12);
    position: relative;
    overflow: hidden;
}

.why-bosco-stats-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.18) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.why-bosco-stat-num {
    font-family: var(--font-heading);
    font-size: 1.9rem;
    font-weight: 700;
    color: #f7c47e;
    line-height: 1;
    margin-bottom: 0.2rem;
}

.why-bosco-stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.84);
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* Experience Story Showcase Box */
.why-bosco-showcase {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2rem;
    align-items: center;
    background: #fbfbfd;
    border: 1px solid var(--line-light);
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: 0 6px 20px rgba(9, 18, 42, 0.03);
}

@media (max-width: 900px) {
    .why-bosco-showcase {
        grid-template-columns: 1fr;
        padding: 1.25rem;
        gap: 1.25rem;
    }
}

.why-bosco-checklist {
    list-style: none;
    padding: 0;
    margin: 0.85rem 0 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.why-bosco-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.86rem;
    color: #2b3e66;
    line-height: 1.4;
}

.why-bosco-check-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #e6f4ea;
    color: var(--ok);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
    margin-top: 1px;
    font-weight: bold;
}

/* Legacy .hero-section used on inner pages (rooms-hero, etc.) */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, rgba(9, 18, 42, 0.82), rgba(9, 18, 42, 0.94)),
                url('https://images.unsplash.com/photo-1542314831-c6a4d27a6962?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
    color: #ffffff;
    padding: 5rem 0 6rem 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto 1.5rem auto;
}

.hero-subtitle-tag {
    display: inline-block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Booking Search Box */
.booking-search-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 1.75rem;
    color: var(--ink);
    max-width: 1050px;
    margin: 0 auto;
    border: 1px solid var(--line);
}

.booking-search-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) auto;
    gap: 1.25rem;
    align-items: flex-end;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    text-align: left;
}

.form-group label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--brand);
    text-transform: uppercase;
    letter-spacing: 0.75px;
}

.form-control {
    width: 100%;
    padding: 0.68rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    font-family: inherit;
    color: var(--ink);
    background-color: #ffffff;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(122, 46, 30, 0.14);
}

/* Password Input with Visibility Toggle */
.password-group {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.password-group .form-control {
    padding-right: 2.75rem;
}

.password-toggle-btn {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    padding: 0.35rem 0.45rem;
    cursor: pointer;
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: color 0.15s ease, background-color 0.15s ease;
    z-index: 2;
}

.password-toggle-btn:hover {
    color: var(--brand);
    background-color: rgba(122, 46, 30, 0.08);
}

.password-toggle-btn:focus {
    outline: none;
    color: var(--brand);
}

.password-toggle-btn svg {
    display: block;
    width: 18px;
    height: 18px;
}


/* ==========================================================================
   Section Components & Cards
   ========================================================================== */
.section {
    padding: 2.5rem 0;
}

.section-bg-white {
    background-color: var(--surface);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 1.5rem auto;
}

.section-tag {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: clamp(1.5rem, 2.7vw, 2.05rem);
    color: var(--brand);
    margin-bottom: 0.4rem;
}

.section-subtitle {
    color: var(--muted);
    font-size: 1.05rem;
}

/* Room Cards Grid */
.room-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    gap: 2rem;
}

.room-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.room-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: #d1b8b4;
}

.room-card-img-wrap {
    position: relative;
    height: 230px;
    overflow: hidden;
    background-color: #e2d3d0;
}

.room-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.room-card:hover .room-card-img {
    transform: scale(1.04);
}

.room-card-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(78, 27, 17, 0.85);
    color: #ffffff;
    font-size: 0.75rem;
    padding: 0.25rem 0.65rem;
    border-radius: 4px;
    backdrop-filter: blur(4px);
}

.room-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.room-specs-strip {
    display: flex;
    gap: 1rem;
    margin: 0.5rem 0 1rem 0;
    font-size: 0.85rem;
    color: var(--muted);
    border-bottom: 1px solid var(--line);
    padding-bottom: 0.75rem;
}

.room-spec-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.room-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 1rem;
}

.room-price-box {
    display: flex;
    flex-direction: column;
}

.room-price-val {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--brand);
}

.room-price-unit {
    font-size: 0.75rem;
    color: var(--muted);
}

/* Feature & Amenity Grid */
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.85rem;
}

.amenity-card {
    background: var(--surface);
    padding: 0.95rem 0.85rem;
    border-radius: 10px;
    border: 1px solid var(--line);
    text-align: center;
    transition: var(--transition);
}

.amenity-card:hover {
    border-color: var(--brand);
    box-shadow: var(--shadow-sm);
}

.amenity-icon {
    font-size: 1.35rem;
    color: var(--accent);
    margin-bottom: 0.35rem;
}

/* Testimonial & Review Cards */
.testimonial-card {
    background: var(--surface);
    padding: 1.35rem 1.25rem;
    border-radius: 12px;
    border: 1px solid var(--line);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.quote-mark {
    font-size: 2.2rem;
    color: var(--accent);
    line-height: 1;
    font-family: var(--font-heading);
}

.testimonial-text {
    font-style: italic;
    color: #3b2827;
    margin: 0.5rem 0 1.25rem 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* ==========================================================================
   Booking Multi-Step Page & Sticky Summary
   ========================================================================== */
.booking-flow-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2rem;
}

.booking-main-panel {
    background: var(--surface);
    padding: 1.35rem 1.25rem;
    border-radius: 12px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

.booking-summary-card {
    background: var(--surface);
    padding: 0.95rem 0.85rem;
    border-radius: 10px;
    border: 1px solid var(--line);
    position: sticky;
    top: 90px;
    box-shadow: var(--shadow-md);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px dashed var(--line);
    font-size: 0.9rem;
}

.summary-total-row {
    display: flex;
    justify-content: space-between;
    padding-top: 1rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--brand);
}

/* ==========================================================================
   Alerts & Notifications
   ========================================================================== */
.flash-container {
    padding-top: 1.5rem;
}

.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-success { background: #e6f4ea; color: #137333; border: 1px solid #ceead6; }
.alert-error { background: #fce8e6; color: #c5221f; border: 1px solid #fad2cf; }
.alert-info { background: #e8f0fe; color: #1a73e8; border: 1px solid #d2e3fc; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background-color: var(--brand-dark);
    color: #c1c9dc;
    padding: 2.5rem 0 2rem 0;
    font-size: 0.9rem;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(226, 211, 208, 0.15);
}

.footer-col h4 {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 2px;
    background: var(--accent);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-links a {
    color: #c1c9dc;
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(226, 211, 208, 0.15);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 992px) {
    .main-nav {
        display: none;
    }
    .mobile-nav-toggle {
        display: block;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .booking-flow-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .hero-title {
        font-size: 2.4rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .booking-search-form {
        grid-template-columns: 1fr;
    }
}

/* ======================================================================
   Professional UI refinement â€” shared public-site finish
   ====================================================================== */
:root {
    --radius-sm: 7px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --shadow-sm: 0 2px 8px rgba(9, 18, 42, 0.06);
    --shadow-md: 0 12px 28px rgba(9, 18, 42, 0.10);
    --shadow-lg: 0 24px 48px rgba(9, 18, 42, 0.14);
}

body {
    background: #f6f8fc;
}

::selection {
    background: rgba(227, 125, 0, 0.25);
    color: var(--ink);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(227, 125, 0, 0.38);
    outline-offset: 2px;
}

.container {
    max-width: 1320px;
}

.site-header {
    background: rgba(16, 26, 53, 0.98);
    backdrop-filter: blur(14px);
}

.header-inner {
    height: 86px;
}

.logo-wrapper:hover {
    color: #ffffff;
    opacity: 0.95;
}

.main-nav a {
    padding: 0.35rem 0.38rem;
    letter-spacing: .02em;
}

.btn {
    min-height: 40px;
    border-radius: 8px;
    font-weight: 700;
    letter-spacing: .01em;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--brand);
    border-color: var(--brand);
    box-shadow: 0 5px 14px rgba(16, 26, 53, .14);
}

.btn-accent {
    box-shadow: 0 5px 14px rgba(227, 125, 0, .20);
}

.section {
    padding: clamp(3.75rem, 6vw, 6.25rem) 0;
}

.section-header {
    margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

.section-title {
    font-size: clamp(2.15rem, 3.2vw, 3.05rem);
    line-height: 1.08;
}

.section-subtitle,
p {
    color: #586174;
}

.hero-showcase {
    min-height: 560px;
    isolation: isolate;
}

.hero-search-wrap {
    border: 1px solid rgba(255, 255, 255, .78);
    border-radius: 14px;
}

.hero-search-form input,
.hero-search-form select {
    border-radius: 8px;
    border-color: #c8d0df;
}

.hero-search-form input:focus,
.hero-search-form select:focus {
    outline: 0;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(227, 125, 0, .15);
}

.hero-search-button {
    border-radius: 8px;
    transition: var(--transition);
}

.hero-search-button:hover {
    background: #c86d00;
    transform: translateY(-1px);
}

.form-control {
    min-height: 42px;
    border-radius: 8px;
    border-color: #cfd7e6;
}

.form-control:hover {
    border-color: #adb9ce;
}

.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(227, 125, 0, .14);
}

.room-grid {
    gap: 1.5rem;
}

.room-card {
    border-radius: 14px;
    border-color: #dbe1ec;
    box-shadow: 0 6px 18px rgba(9, 18, 42, .06);
}

.room-card:hover {
    transform: translateY(-6px);
    border-color: #c3ccdE;
    box-shadow: 0 18px 34px rgba(9, 18, 42, .14);
}

.room-card-body {
    padding: 1.35rem;
}

.amenity-card,
.testimonial-card,
.booking-main-panel,
.booking-summary-card,
.booking-search-card {
    border-color: #dbe1ec;
    box-shadow: var(--shadow-sm);
    border-radius: 12px;
}

.amenity-card:hover {
    transform: translateY(-3px);
    border-color: rgba(227, 125, 0, .7);
    box-shadow: var(--shadow-md);
}

.testimonial-card {
    border-top: 3px solid rgba(227, 125, 0, .72);
}

.site-footer {
    padding: 2.5rem 0 2rem;
    border-top: 3px solid rgba(227, 125, 0, .78);
}

@media (max-width: 1100px) {
    .container { padding-inline: 1.4rem; }
    .main-nav a { padding-inline: .42rem; font-size: .76rem; }
}

@media (max-width: 600px) {
    .container { padding-inline: 1rem; }
    .header-inner { height: 72px; }
    .logo-icon { width: 46px; height: 46px; font-size: 1.5rem; border-radius: 13px; }
    .logo-text h1 { font-size: 1.38rem; }
    .header-actions { display: none; }
    .hero-showcase { min-height: auto; }
    .hero-search-wrap { padding: 1rem; }
    .section { padding: 3.25rem 0; }
    .room-grid { grid-template-columns: 1fr; }
    .footer-bottom { align-items: flex-start; gap: .5rem; flex-direction: column; }
}
/* Compact Unified Page Hero */
.page-hero,
.rooms-hero {
    background: linear-gradient(135deg, #09122a 0%, #1a2d5a 100%);
    margin: -1px -1px 0 -1px;
    padding: 2.35rem 0 2rem;
    position: relative;
    overflow: hidden;
}
.page-hero::before,
.rooms-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.12;
}
.page-hero-inner,
.rooms-hero-inner {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    padding: 0 1.25rem;
    z-index: 2;
}
.page-hero-tag,
.rooms-hero-tag {
    display: inline-block;
    background: var(--accent);
    color: #ffffff;
    padding: 3px 14px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.45rem;
    box-shadow: 0 2px 8px rgba(227, 125, 0, 0.25);
}
.page-hero h1,
.rooms-hero h1 {
    font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
    font-size: clamp(1.6rem, 2.9vw, 2.2rem);
    color: #fff;
    margin: 0 0 0.35rem 0;
    line-height: 1.16;
    letter-spacing: -0.015em;
}
.page-hero p,
.rooms-hero p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.93rem;
    line-height: 1.5;
    max-width: 640px;
    margin: 0 auto;
}

/* Keep scrolling available without displaying browser scroll tracks. */
html, body, * {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

*::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

/* ==========================================================================
   Footer Government Accreditation Showcase & Eye-Catching Logos
   ========================================================================== */
.footer-accred-showcase {
    margin: 0 auto 0 auto;
    padding: 1.2rem 1.75rem;
    background: transparent;
    border: none;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.9rem;
    box-shadow: none;
}

.footer-accred-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-accred-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(22, 163, 74, 0.16);
    border: 1px solid rgba(74, 222, 128, 0.35);
    color: #4ade80;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 999px;
    letter-spacing: 0.02em;
}

.footer-accred-pill strong {
    color: #fef08a;
    letter-spacing: 0.04em;
}

.footer-accred-logos-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-accred-logo-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 0.6rem 1.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font: inherit;
    color: inherit;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    border: 1.5px solid rgba(255, 255, 255, 0.9);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}

.footer-accred-logo-card:hover,
.footer-accred-logo-card:focus-visible {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 10px 26px rgba(201, 162, 77, 0.38), 0 2px 8px rgba(0, 0, 0, 0.25);
    border-color: #c9a24d;
    outline: none;
}

.footer-accred-logo-card img {
    height: 52px;
    width: auto;
    max-width: 175px;
    object-fit: contain;
    display: block;
}

@media (max-width: 768px) {
    .footer-accred-showcase {
        padding: 1rem 0.85rem;
        margin: 1.25rem auto 1rem auto;
        gap: 0.75rem;
    }
    .footer-accred-logos-wrap {
        gap: 1rem;
    }
    .footer-accred-logo-card {
        padding: 0.5rem 1rem;
    }
    .footer-accred-logo-card img {
        height: 42px;
        max-width: 135px;
    }
}

/* ==========================================================================
   Certificate Proof Modal Styles
   ========================================================================== */
.cert-proof-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(9, 18, 42, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

.cert-proof-modal.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.cert-proof-dialog {
    background: #ffffff;
    border-radius: 16px;
    width: auto;
    max-width: 94vw;
    max-height: 95vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(201, 162, 77, 0.4);
    overflow: hidden;
    transform: scale(0.94) translateY(12px);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.cert-proof-modal.is-active .cert-proof-dialog {
    transform: scale(1) translateY(0);
}

.cert-modal-header {
    background: linear-gradient(135deg, #09122a 0%, #101a35 60%, #1b2a4e 100%);
    color: #ffffff;
    padding: 0.75rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #c9a24d;
    position: relative;
    flex-shrink: 0;
}

.cert-modal-header-text {
    flex: 1;
    min-width: 0;
}

.cert-modal-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(201, 162, 77, 0.18);
    color: #e5b958;
    border: 1px solid rgba(201, 162, 77, 0.4);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.15rem;
}

.cert-modal-header h3 {
    font-family: var(--font-heading, 'Playfair Display', Georgia, serif);
    font-size: 1.15rem;
    color: #ffffff;
    margin: 0;
    line-height: 1.25;
}

.cert-modal-header p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.76rem;
    margin: 0;
}

.cert-modal-close {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 1.4rem;
    line-height: 1;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font: inherit;
    color: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: 1rem;
    transition: all 0.2s ease;
}

.cert-modal-close:hover {
    background: rgba(220, 38, 38, 0.85);
    border-color: #dc2626;
    transform: rotate(90deg);
}

.cert-modal-body {
    position: relative;
    padding: 0.6rem 0.85rem;
    background: #0b1120;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex: 1;
    min-height: 480px;
    user-select: none;
    -webkit-user-select: none;
}

/* Floating Zoom Toolbar */
.cert-zoom-toolbar {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 20;
    display: inline-flex;
    align-items: center;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(201, 162, 77, 0.45);
    border-radius: 30px;
    padding: 3px 6px;
    gap: 4px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}

.cert-zoom-btn {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.18s ease;
    padding: 0;
}

.cert-zoom-btn:hover {
    background: rgba(201, 162, 77, 0.35);
    border-color: #c9a24d;
    color: #fef08a;
    transform: scale(1.08);
}

.cert-zoom-level {
    color: #fef08a;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 0 6px;
    min-width: 42px;
    text-align: center;
    cursor: pointer;
    user-select: none;
}

.cert-zoom-reset-btn {
    width: auto;
    border-radius: 20px;
    padding: 0 8px;
    gap: 3px;
    font-size: 0.74rem;
    font-weight: 600;
}

.cert-viewer-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.cert-viewer-img {
    max-height: calc(88vh - 125px);
    width: auto;
    max-width: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.55);
    display: block;
    margin: 0 auto;
    transition: transform 0.12s ease-out;
    transform-origin: center center;
    cursor: zoom-in;
}

/* The browser PDF viewer has its own controls (including download/print/AI actions).
   Crop that built-in toolbar so this modal displays the certificate document only. */
.cert-viewer-container.is-pdf-document {
    display: block;
    height: calc(88vh - 125px);
    min-height: 480px;
    overflow: hidden;
    border-radius: 8px;
    background: #ffffff;
}

.cert-viewer-pdf {
    display: block;
    width: 100%;
    height: calc(100% + 76px);
    min-height: calc(480px + 76px);
    border: 0;
    border-radius: 0;
    background: #ffffff;
    transform: translateY(-76px);
}

.cert-viewer-empty {
    margin: 2rem;
    color: #cbd5e1;
    text-align: center;
}
.cert-modal-footer {
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    padding: 0.55rem 1.25rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.cert-modal-footer-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: #15803d;
    font-weight: 600;
}

@media (max-width: 768px) {
    .footer-accreditation-logos {
        flex-direction: column;
    }
    .gov-logo-card {
        max-width: 100%;
        width: 100%;
    }
    .cert-modal-header {
        padding: 1rem;
    }
    .cert-modal-header h3 {
        font-size: 1.1rem;
    }
    .cert-modal-body {
        padding: 1rem;
    }
    .cert-modal-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    .cert-modal-footer-actions {
        justify-content: stretch;
    }
    .btn-cert-action {
        flex: 1;
        justify-content: center;
    }
}
