/* ==========================================
   HOTEL DEVANG — POLICIES PAGE
   Redesigned UI | Brand-matched
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=Jost:wght@300;400;500;600&display=swap');

:root {
    --crimson: #880000;
    --crimson-dark: #5c0000;
    --crimson-mid: #a00000;
    --crimson-light: #b22222;
    --gold: #caa035;
    --gold-light: #ffd700;
    --gold-pale: rgba(202, 160, 53, 0.12);
    --gold-border: rgba(202, 160, 53, 0.35);
    --ivory: #fdf8f1;
    --ivory-dark: #f5ede0;
    --white: #ffffff;
    --text-dark: #2a1a1a;
    --text-mid: #5c4040;
    --text-muted: #8a7070;
    --border: #e8ddd5;
    --shadow-sm: 0 2px 12px rgba(136, 0, 0, 0.07);
    --shadow-md: 0 8px 30px rgba(136, 0, 0, 0.12);
    --shadow-lg: 0 20px 60px rgba(136, 0, 0, 0.15);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
}

/* ── Reset ──────────────────────────────── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-margin-top: 90px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Jost', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--ivory);
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

/* ── Preloader ──────────────────────────── */
#preloader {
    position: fixed;
    inset: 0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

#preloader img {
    width: 200px;
    height: auto;
}

/* ── Scroll progress ────────────────────── */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(to right, var(--crimson), var(--gold));
    z-index: 10000;
    transition: width 0.2s ease-out;
}

/* ══════════════════════════════════════════
   NAVBAR (identical to brand system)
════════════════════════════════════════════ */
header {
    background: #880000;
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: top 0.4s ease-in-out;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.logo {
    font-size: 1.6rem;
    font-weight: bold;
    white-space: nowrap;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-left: 0;
    flex-shrink: 0;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1rem;
    flex-wrap: nowrap;
    overflow: visible;
    white-space: nowrap;
    margin-left: 0.5rem;
}

.nav-links a {
    display: inline-flex;
    align-items: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    white-space: nowrap;
    position: relative;
    background: none !important;
}

.nav-links a:hover:not(.active) {
    background: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-2px);
}

.nav-links a::before,
.nav-links a::after {
    content: none !important;
    background: none !important;
}

.nav-links a.active {
    color: #ffd700 !important;
    border: 2px solid #caa035;
    background: transparent !important;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 0 10px rgba(202, 160, 53, 0.6);
    animation: goldPulse 3s infinite ease-in-out;
}

.nav-links a.active:hover {
    background: rgba(202, 160, 53, 0.1) !important;
    transform: scale(1.05);
}

@keyframes goldPulse {

    0%,
    100% {
        box-shadow: 0 0 10px rgba(202, 160, 53, 0.6);
    }

    50% {
        box-shadow: 0 0 20px rgba(202, 160, 53, 0.9);
    }
}

.menu-toggle {
    width: 34px;
    height: 26px;
    background: none;
    border: none;
    cursor: pointer;
    display: none;
    position: relative;
    z-index: 1100;
}

.menu-toggle span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background: #ffd700;
    border-radius: 3px;
    transition: all 0.35s cubic-bezier(0.77, 0, 0.18, 1);
}

.menu-toggle span:nth-child(1) {
    top: 0;
}

.menu-toggle span:nth-child(2) {
    top: 11px;
    width: 70%;
}

.menu-toggle span:nth-child(3) {
    bottom: 0;
}

.menu-toggle.open span:nth-child(1) {
    transform: rotate(45deg);
    top: 11px;
}

.menu-toggle.open span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.menu-toggle.open span:nth-child(3) {
    transform: rotate(-45deg);
    bottom: 11px;
}

.mobile-nav-header,
.close-menu {
    display: none;
}

.brand span {
    display: none;
}

/* ══════════════════════════════════════════
   HERO
════════════════════════════════════════════ */
.main-content {
    margin-top: 80px;
}

.policies-hero {
    background:
        linear-gradient(165deg, rgba(92, 0, 0, 0.72) 0%, rgba(20, 0, 0, 0.78) 100%),
        url('../Photos/policies/bhadkeshwar_temple.jpg') center/cover no-repeat;
    padding: 80px 2rem 72px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Gold glow */
.policies-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 70%, rgba(202, 160, 53, 0.18) 0%, transparent 60%);
    pointer-events: none;
}

/* Wave break into body */
.policies-hero::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--ivory);
    clip-path: ellipse(65% 100% at 50% 100%);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(202, 160, 53, 0.2);
    border: 1px solid rgba(202, 160, 53, 0.5);
    color: var(--gold-light);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    padding: 6px 18px;
    border-radius: 50px;
    margin-bottom: 1.1rem;
    position: relative;
    z-index: 2;
    animation: heroFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.policies-hero h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.6rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.1;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    margin-bottom: 0.8rem;
    position: relative;
    z-index: 2;
    animation: heroFadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.policies-hero p {
    font-size: 1.05rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    max-width: 580px;
    margin: 0 auto 1.4rem;
    position: relative;
    z-index: 2;
    animation: heroFadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

.breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 5px 16px;
    border-radius: 50px;
    position: relative;
    z-index: 2;
    animation: heroFadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.85rem;
}

.breadcrumb a:hover {
    color: white;
}

.breadcrumb i {
    color: var(--gold-light);
    font-size: 0.7rem;
}

.breadcrumb span {
    color: var(--gold-light);
    font-size: 0.85rem;
    font-weight: 600;
}

@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(22px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ══════════════════════════════════════════
   CONTAINER
════════════════════════════════════════════ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ══════════════════════════════════════════
   POLICIES GRID SECTION
════════════════════════════════════════════ */
.policies-section {
    padding: 4.5rem 0 5rem;
    background: var(--ivory);
}

/* Section header */
.section-label {
    text-align: center;
    margin-bottom: 0.6rem;
}

.section-label span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gold-pale);
    border: 1px solid var(--gold-border);
    color: var(--gold);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    padding: 5px 16px;
    border-radius: 50px;
}

.section-heading {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--crimson);
    text-align: center;
    margin-bottom: 0.5rem;
}

.section-sub {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 300;
    max-width: 500px;
    margin: 0 auto 3rem;
    line-height: 1.7;
}

/* Grid */
.policies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
    gap: 1.8rem;
}

/* ── Policy Card ──────────────────────── */
.policy-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 0;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.policy-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

/* Coloured top bar per category */
.policy-card::before {
    content: '';
    display: block;
    height: 4px;
    width: 100%;
    flex-shrink: 0;
}

.policy-card.check-in::before {
    background: linear-gradient(90deg, #2e7d32, #43a047);
}

.policy-card.cancellation::before {
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
}

.policy-card.payment::before {
    background: linear-gradient(90deg, #b8860b, #d4a017);
}

.policy-card.guest::before {
    background: linear-gradient(90deg, #6a1b9a, #8e24aa);
}

.policy-card.safety::before {
    background: linear-gradient(90deg, #c62828, #ef5350);
}

.policy-card.additional::before {
    background: linear-gradient(90deg, #37474f, #546e7a);
}

/* Card inner padding wrapper */
.card-body {
    padding: 2rem 2.2rem 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Card header row */
.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.policy-icon-wrap {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.check-in .policy-icon-wrap {
    background: rgba(46, 125, 50, 0.1);
    color: #2e7d32;
}

.cancellation .policy-icon-wrap {
    background: var(--gold-pale);
    color: var(--gold);
}

.payment .policy-icon-wrap {
    background: rgba(184, 134, 11, 0.1);
    color: #b8860b;
}

.guest .policy-icon-wrap {
    background: rgba(106, 27, 154, 0.1);
    color: #6a1b9a;
}

.safety .policy-icon-wrap {
    background: rgba(198, 40, 40, 0.1);
    color: #c62828;
}

.additional .policy-icon-wrap {
    background: rgba(55, 71, 79, 0.1);
    color: #37474f;
}

.policy-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--crimson);
    line-height: 1.2;
}

/* Policy list */
.policy-list {
    list-style: none;
    padding: 0;
    margin-bottom: 1.4rem;
    flex: 1;
}

.policy-list li {
    padding: 0.55rem 0 0.55rem 1.6rem;
    position: relative;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-mid);
    border-bottom: 1px solid var(--border);
}

.policy-list li:last-child {
    border-bottom: none;
}

/* Custom bullet markers */
.policy-list li::before {
    position: absolute;
    left: 0;
    top: 0.6rem;
    font-size: 0.85rem;
    line-height: 1;
}

.policy-list li::before {
    content: '✓';
    color: #2e7d32;
    font-weight: 700;
}

.policy-list.warning li::before {
    content: '⚠';
    color: #d68910;
}

.policy-list.info li::before {
    content: 'ℹ';
    color: #546e7a;
}

.policy-list li strong {
    color: var(--text-dark);
    font-weight: 600;
}

/* Policy note */
.policy-note {
    background: var(--gold-pale);
    border-left: 3px solid var(--gold);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 0.85rem 1rem;
    font-size: 0.85rem;
    color: var(--text-mid);
    line-height: 1.6;
    margin-top: auto;
}

.policy-note strong {
    color: var(--crimson);
}

/* ══════════════════════════════════════════
   IMPORTANT GUIDELINES STRIP
════════════════════════════════════════════ */
.important-notice {
    background: linear-gradient(135deg, var(--crimson-dark) 0%, var(--crimson) 55%, var(--crimson-mid) 100%);
    position: relative;
    overflow: hidden;
}

.important-notice::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.notice-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 2rem;
    position: relative;
    z-index: 1;
}

.notice-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.notice-header .section-label span {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(202, 160, 53, 0.5);
    color: var(--gold-light);
}

.notice-header h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--white);
    margin-top: 0.5rem;
}

.notice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.3rem;
}

.notice-box {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-md);
    padding: 1.8rem 1.6rem;
    backdrop-filter: blur(12px);
    transition: background 0.3s, transform 0.3s;
    text-align: left;
}

.notice-box:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-3px);
}

.notice-icon {
    width: 42px;
    height: 42px;
    background: rgba(202, 160, 53, 0.2);
    border: 1px solid rgba(202, 160, 53, 0.4);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--gold-light);
    margin-bottom: 1rem;
}

.notice-box h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gold-light);
    margin-bottom: 0.65rem;
}

.notice-box p {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.7;
}

/* ══════════════════════════════════════════
   CONTACT / CLARIFICATION STRIP
════════════════════════════════════════════ */
.contact-section {
    background: var(--ivory);
    padding: 5rem 0;
}

.contact-content {
    text-align: center;
}

.contact-content .section-label {
    margin-bottom: 0.6rem;
}

.contact-content h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--crimson);
    margin-bottom: 0.5rem;
}

.contact-content>p {
    color: var(--text-muted);
    font-size: 0.97rem;
    margin-bottom: 2.8rem;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.contact-item {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 2rem 2.5rem;
    min-width: 200px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}

.contact-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--gold);
}

.contact-item-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--crimson), var(--crimson-mid));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    margin-bottom: 0.3rem;
    box-shadow: 0 4px 14px rgba(136, 0, 0, 0.25);
}

.contact-item h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--crimson);
}

.contact-item p {
    font-size: 0.95rem;
    color: var(--text-mid);
    font-weight: 500;
}

.contact-item a {
    color: var(--crimson);
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* ══════════════════════════════════════════
   FOOTER (unchanged)
════════════════════════════════════════════ */
footer {
    background: #8b0000;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #ffd700;
}

.footer-section p,
.footer-section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #ffd700;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding: 25px 15px;
    background: #8b1c10;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-family: "Poppins", "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.7;
    letter-spacing: 0.4px;
    color: #f1f1f1;
}

.footer-tagline {
    font-size: 17px;
    font-weight: 500;
    font-style: italic;
    margin-bottom: 8px;
    color: #ffd7a0;
}

.footer-text span {
    font-weight: 600;
    color: #fff;
}

.footer-text a {
    color: gold;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.footer-text a:hover {
    color: #ffd700;
    text-decoration: underline;
}

/* ══════════════════════════════════════════
   CHATBOT
════════════════════════════════════════════ */
.chat-container {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    max-height: 520px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
    z-index: 9998;
    overflow: hidden;
    display: none;
    flex-direction: column;
    border: 1.5px solid var(--border);
}

.chat-container.show {
    display: flex;
}

.chat-header {
    background: linear-gradient(135deg, var(--crimson), var(--crimson-dark));
    color: white;
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-icons {
    display: flex;
    gap: 14px;
}

.contact-icons a {
    color: white;
    font-size: 18px;
    transition: opacity 0.2s;
}

.contact-icons a:hover {
    opacity: 0.8;
}

.chat-header button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

.chat-header button:hover {
    background: rgba(255, 255, 255, 0.35);
}

.chat-messages {
    flex: 1;
    padding: 18px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 280px;
    background: #f9f5f0;
}

.bot-message {
    background: white;
    border: 1px solid var(--border);
    padding: 10px 14px;
    border-radius: 4px 16px 16px 16px;
    font-size: 0.88rem;
    color: var(--text-dark);
    max-width: 85%;
    line-height: 1.5;
    box-shadow: var(--shadow-sm);
}

.user-message {
    background: linear-gradient(135deg, var(--crimson), #a00000);
    color: white;
    padding: 10px 14px;
    border-radius: 16px 4px 16px 16px;
    font-size: 0.88rem;
    max-width: 85%;
    align-self: flex-end;
    line-height: 1.5;
}

.chat-input {
    display: flex;
    padding: 12px;
    gap: 8px;
    border-top: 1px solid var(--border);
    background: white;
}

.chat-input input {
    flex: 1;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: 50px;
    font-size: 0.88rem;
    font-family: 'Jost', sans-serif;
    outline: none;
    transition: border-color 0.2s;
}

.chat-input input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(202, 160, 53, 0.15);
}

.chat-input button {
    background: var(--crimson);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.chat-input button:hover {
    background: var(--crimson-dark);
    transform: scale(1.04);
}

.chat-toggle {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: linear-gradient(135deg, var(--gold), #ffd700);
    color: var(--crimson);
    border: none;
    border-radius: 50%;
    width: 62px;
    height: 62px;
    font-size: 24px;
    cursor: pointer;
    z-index: 10000;
    box-shadow: 0 8px 28px rgba(202, 160, 53, 0.45);
    transition: transform 0.3s, box-shadow 0.3s;
}

.chat-toggle:hover {
    transform: scale(1.1) rotate(8deg);
    box-shadow: 0 12px 35px rgba(202, 160, 53, 0.6);
}

/* ── Back to Top ──────────────────────── */
.back-to-top {
    position: fixed;
    left: 30px;
    top: -80px;
    width: 46px;
    height: 46px;
    background: var(--white);
    border: 2px solid var(--gold);
    color: var(--crimson);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    text-decoration: none;
    z-index: 999;
    box-shadow: var(--shadow-sm);
    transition: top 1.5s cubic-bezier(0.22, 1, 0.36, 1), background 0.2s, color 0.2s;
}

.back-to-top.show {
    top: calc(100vh - 80px);
}

.back-to-top:hover {
    background: var(--crimson);
    color: white;
    border-color: var(--crimson);
}

/* fade-in passthrough */
.fade-in {
    animation: fadeInUp 0.7s ease-out both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ══════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .mobile-nav-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .brand {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .brand img {
        height: 48px;
        border-radius: 50%;
    }

    .brand span {
        display: inline-block;
        font-size: 1.4rem;
        font-weight: 600;
        color: #fff;
        letter-spacing: 0.5px;
    }

    nav {
        padding: 0 1rem;
        justify-content: space-between;
    }

    .logo {
        margin-left: 0;
        font-size: 1.4rem;
        flex-shrink: 0;
    }

    .logo img {
        height: 35px;
        margin-right: 8px;
    }

    .nav-links {
        gap: 0.1rem;
        overflow-x: auto !important;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 0 0.5rem;
    }

    .nav-links::-webkit-scrollbar {
        display: none;
    }

    .nav-links a {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
        flex-shrink: 0;
    }




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

@media (max-width: 992px) {
    .chat-container {
        width: 330px;
        right: 20px;
        bottom: 95px;
        max-height: 480px;
    }

    .chat-messages {
        height: 260px;
    }

    .chat-toggle {
        width: 60px;
        height: 60px;
        font-size: 22px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        z-index: 1001; /* Lower than nav-links (1050) when active */
    }

    body.menu-open .menu-toggle {
        display: none;
    }

    body.menu-open {
        overflow: hidden;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: -120%;
        width: 100vw;
        height: 100vh;
        background: linear-gradient(160deg, #8b0000, #5c0000);
        flex-direction: column;
        padding: 2.5rem 2rem;
        transition: left 0.45s cubic-bezier(0.77, 0, 0.18, 1);
        z-index: 1050;
        overflow-y: auto;
        gap: 0;
    }

    .nav-links.active {
        left: 0;
    }

    .mobile-nav-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 3rem;
    }

    .mobile-nav-header img {
        height: 50px;
        border-radius: 50%;
    }

    .close-menu {
        display: block;
        background: none;
        border: none;
        color: #fff;
        font-size: 28px;
        cursor: pointer;
    }

    .nav-links li {
        list-style: none;
        margin-bottom: 1.4rem;
        opacity: 0;
        transform: translateX(-30px);
        animation: slideFade 0.5s ease forwards;
        margin-top: -5px;
    }

    .nav-links.active li:nth-child(2) {
        animation-delay: 0.10s;
    }

    .nav-links.active li:nth-child(3) {
        animation-delay: 0.15s;
    }

    .nav-links.active li:nth-child(4) {
        animation-delay: 0.20s;
    }

    .nav-links.active li:nth-child(5) {
        animation-delay: 0.25s;
    }

    .nav-links.active li:nth-child(6) {
        animation-delay: 0.30s;
    }

    .nav-links.active li:nth-child(7) {
        animation-delay: 0.35s;
    }

    .nav-links.active li:nth-child(8) {
        animation-delay: 0.40s;
    }

    .nav-links.active li:nth-child(9) {
        animation-delay: 0.45s;
    }

    @keyframes slideFade {
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    .nav-links a {
        font-size: 1.25rem;
        color: #fff;
        font-weight: 500;
        letter-spacing: 0.5px;
        display: inline-block;
        position: relative;
        padding: 0.4rem 0;
        background: none !important;
    }

    .nav-links a::after {
        content: "";
        position: absolute;
        bottom: -4px;
        left: 0;
        width: 0%;
        height: 2px;
        background: gold;
        transition: width 0.3s ease;
    }

    .nav-links a:hover::after {
        width: 100%;
    }

    .policies-hero h1 {
        font-size: 2.4rem;
    }

    .policies-hero p {
        font-size: 1rem;
    }

    .policies-section {
        padding: 3rem 0 3.5rem;
    }

    .policies-grid {
        grid-template-columns: 1fr;
        gap: 1.3rem;
    }

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

    .contact-info {
        flex-direction: column;
        align-items: center;
    }

    .contact-item {
        width: 100%;
        max-width: 380px;
    }

    .chat-container {
        width: 94%;
        right: 3%;
        bottom: 85px;
        max-height: 80vh;
        border-radius: 18px;
    }

    .chat-header {
        padding: 14px;
    }

    .contact-icons a {
        font-size: 16px;
    }

    .chat-messages {
        height: 55vh;
        font-size: 14px;
    }

    .chat-input input {
        font-size: 14px;
    }

    .chat-input button {
        padding: 10px 16px;
        font-size: 14px;
    }

    .chat-toggle {
        width: 55px;
        height: 55px;
        font-size: 20px;
        bottom: 18px;
        right: 18px;
    }
}

@media (max-width: 600px) {
    #preloader img {
        width: 100px;
    }

    .policies-hero h1 {
        font-size: 2rem;
    }

    .section-heading {
        font-size: 2rem;
    }

    .container {
        padding: 0 1.2rem;
    }
}

@media (max-width: 480px) {
    .policies-hero {
        padding: 60px 1rem 60px;
    }

    .policies-hero h1 {
        font-size: 1.75rem;
    }

    .card-body {
        padding: 1.5rem 1.3rem;
    }

    .chat-container {
        width: 96%;
        right: 2%;
        bottom: 75px;
        max-height: 85vh;
        border-radius: 16px;
    }

    .chat-messages {
        height: 58vh;
        font-size: 13px;
    }

    .bot-message,
    .user-message {
        font-size: 13px;
        max-width: 92%;
    }

    .chat-input {
        padding: 10px;
    }

    .chat-input input {
        padding: 9px 12px;
        font-size: 13px;
    }

    .chat-input button {
        padding: 9px 14px;
        font-size: 13px;
    }

    .chat-toggle {
        width: 50px;
        height: 50px;
        font-size: 18px;
        bottom: 15px;
        right: 15px;
    }

    .back-to-top {
        left: 15px;
    }
}