:root {
    --brand-color: #0b4d78;
    --accent-gold: #d9a226;
    --muted: #6c757d;
    --max-width: 1200px;
    --container-padding: 16px;
    --radius: 12px;
    --font-ui: 'Nunito', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    --font-display: 'Merriweather', serif;
}

/* global resets */
* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    font-family: var(--font-ui);
    color: #222;
    background: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
}

/* container */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* header */
.site-header {
    background: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    min-height: 56px;
    /* allow child flex items to shrink properly */
    min-width: 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

    .brand a {
        display: flex;
        align-items: center;
        gap: 12px;
        text-decoration: none;
        color: inherit;
        min-width: 0;
    }

.brand-title {
    font-weight: 700;
    font-family: var(--font-display);
    font-size: 1.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* nav */
.main-nav {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
    min-width: 0;
}

    .main-nav ul {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        gap: 14px;
        align-items: center;
    }

    .main-nav .nav-link {
        text-decoration: none;
        color: var(--muted);
        padding: 8px 6px;
        border-radius: 6px;
        white-space: nowrap;
    }

        .main-nav .nav-link[aria-current="page"] {
            color: var(--brand-color);
            font-weight: 600;
        }

/* header actions */
.header-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0; /* keep actions visible, don't let them shrink too far */
}

.btn {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary {
    background: var(--brand-color);
    color: #fff;
    border: 0;
}

.btn-outline {
    border: 1px solid #ddd;
    background: transparent;
    color: var(--brand-color);
}

.btn-donate {
    background: var(--accent-gold);
    color: #111;
    font-weight: 700;
    padding: 8px 16px;
}

/* mobile toggle */
.mobile-toggle {
    display: none;
    background: transparent;
    border: 0;
    padding: 6px;
    margin-left: 8px;
    cursor: pointer;
}

.hamburger {
    width: 22px;
    height: 2px;
    background: #333;
    display: block;
    position: relative;
}

    .hamburger::before, .hamburger::after {
        content: "";
        display: block;
        height: 2px;
        background: #333;
        position: absolute;
        left: 0;
        right: 0;
    }

    .hamburger::before {
        top: -7px
    }

    .hamburger::after {
        top: 7px
    }

/* main */
.site-main {
    margin-top: 0;
}

/* footer */
.site-footer {
    background: var(--brand-color);
    color: #fff;
    padding: 24px 0 18px; /* reduced padding */
    margin-top: 40px; /* slightly smaller gap above */
    border-top: 3px solid var(--accent-gold);
}

/* mobile responsive */
@media (max-width: 768px) {
    .main-nav {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .header-inner {
        padding: 10px 0;
    }

    .features .row {
        display: block;
    }
}

/* --------------------
   Mobile off-canvas panel (REWRITTEN to avoid horizontal scroll)
   -------------------- */

/*
 Approach:
 - use transform to move panel right off-screen (translateX(100%))
 - position it to the right (right: 0) so it does not create horizontal page overflow
 - add a backdrop element (.mobile-backdrop) that covers viewport and can be clicked to close
*/

.mobile-panel {
    position: fixed;
    top: 0;
    right: 0; /* anchor to right */
    bottom: 0;
    width: 320px;
    max-width: 80%;
    background: #fff;
    box-shadow: -8px 0 32px rgba(0,0,0,0.12);
    transition: transform .32s cubic-bezier(.2,.9,.25,1), visibility .2s;
    transform: translateX(100%); /* start off-screen to right */
    z-index: 2002;
    pointer-events: none;
    visibility: hidden;
    display: flex;
    flex-direction: column;
}

    .mobile-panel .mobile-panel-inner {
        padding: 18px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* open state */
    .mobile-panel.open {
        transform: translateX(0);
        pointer-events: auto;
        visibility: visible;
    }

/* backdrop that dims page and captures outside clicks */
.mobile-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.32);
    z-index: 2000;
    opacity: 0;
    transition: opacity .2s;
    pointer-events: none;
    visibility: hidden;
}

    .mobile-backdrop.visible {
        opacity: 1;
        pointer-events: auto;
        visibility: visible;
    }

/* keep page from scrolling when panel open */
body.no-scroll {
    overflow: hidden;
}

/* style the close button and links */
.mobile-close {
    background: transparent;
    border: 0;
    font-size: 22px;
    line-height: 1;
    padding: 6px 8px;
    align-self: flex-end;
}

.mobile-panel ul {
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
}

    .mobile-panel ul li {
        margin: 8px 0;
    }

.mobile-panel a {
    text-decoration: none;
    color: var(--brand-color);
    display: inline-block;
    padding: 8px 6px;
}

/* hide the bullet list on desktop (defensive) */
@media (min-width: 769px) {
    .mobile-panel {
        display: none !important;
    }

    .mobile-backdrop {
        display: none !important;
    }
}

/* Keep header actions visible on small widths: reduce padding or stack if necessary */
@media (max-width: 420px) {
    .header-actions .btn {
        padding: 6px 8px;
        font-size: 0.95rem;
    }
}

/* ------- rest of file (footers, auth, etc.) remain unchanged (omitted here for brevity) ------- */

/* (The rest of your original file — footer, auth styles etc. — can remain as in your earlier site.css) */
.logo {
    max-width: 62px;
    height: auto;
    display: block
}


/* --------------------
   Footer Design
   -------------------- */
.site-footer {
    background: var(--brand-color);
    color: #fff;
    padding: 40px 0 20px;
    margin-top: 40px;
    border-top: 3px solid var(--accent-gold);
    font-size: 0.95rem;
}

.footer-title {
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--accent-gold);
}

.footer-text {
    color: #f1f1f1;
    font-size: 0.9rem;
    line-height: 1.5;
}

.footer-links,
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .footer-links li,
    .footer-contact li {
        margin-bottom: 8px;
    }

    .footer-links a {
        color: #fff;
        text-decoration: none;
        transition: color 0.2s;
    }

        .footer-links a:hover {
            color: var(--accent-gold);
        }

    .footer-contact li {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 0.9rem;
    }

.footer-divider {
    border-color: rgba(255, 255, 255, 0.2);
    margin: 20px 0;
}

.footer-bottom {
    font-size: 0.85rem;
    color: #ddd;
}


/* Darshan Timings custom styles */
.darshan-header {
    display: flex;
    justify-content: center; /* centers horizontally */
    align-items: center;
    margin-bottom: 1.5rem;
}

.darshan-title {
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    background: linear-gradient(90deg,#fffafa, #fff);
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

/* Card + table adjustments */
.darshan-card {
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(16,24,40,0.06);
    overflow: hidden;
}

.darshan-table thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
    font-weight: 600;
}

.darshan-table tbody tr td {
    vertical-align: middle;
    padding: 0.85rem 0.75rem;
}

.session-badge {
    display: inline-block;
    min-width: 86px;
    text-align: center;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

/* morning / evening color variants */
.session-morning {
    background: #fff3cd;
    color: #856404;
}

.session-evening {
    background: #d1ecf1;
    color: #0c5460;
}

/* responsive - make table scroll horizontally on tiny viewports */
@media (max-width: 575.98px) {
    .darshan-title {
        font-size: 1.25rem;
        padding: 0.45rem 0.9rem;
    }

    .darshan-table tbody tr td {
        padding: 0.6rem 0.45rem;
        font-size: 0.95rem;
    }
}
/* Center and shrink the Darshan table */
.darshan-wrapper {
    max-width: 800px; /* shrink overall width */
    margin: 0 auto; /* center horizontally */
}

.darshan-table th,
.darshan-table td {
    text-align: center; /* center text in cells */
    font-weight: 600; /* make content bold */
}

.darshan-table thead th {
    font-size: 1rem;
    font-weight: 700;
}

.session-badge {
    display: inline-block;
    min-width: 86px;
    text-align: center;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700; /* badges bold */
}
/* Themed header for Darshan Timings table */
.darshan-table thead th {
    background-color: var(--brand-color); /* temple brand color */
    color: #fff; /* white text */
    border-bottom: 3px solid var(--accent-gold); /* gold accent border */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.darshan-table tbody tr:hover {
    background-color: rgba(11, 77, 120, 0.06); /* light brand-color hover */
}

/* Darshan timing cards */
.darshan-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.darshan-card-item {
    border: 2px solid var(--brand-color);
    border-radius: 10px;
    padding: 1rem;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

    .darshan-card-item:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 14px rgba(0,0,0,0.1);
    }

.darshan-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: .75rem;
}

.darshan-day {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--brand-color);
}

.darshan-session {
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
}

.session-morning {
    background: #fff3cd;
    color: #856404;
}

.session-evening {
    background: #d1ecf1;
    color: #0c5460;
}

.darshan-time {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.darshan-notes {
    font-size: 0.9rem;
    color: var(--muted);
}
.text-brand {
    color: var(--brand-color);
}

.dev-credit {
    font-weight: 600;
    color: var(--accent-gold);
}

    .dev-credit a {
        color: var(--accent-gold);
        text-decoration: none;
        transition: color 0.2s ease-in-out;
    }

        .dev-credit a:hover {
            color: #fff;
            text-decoration: underline;
        }

/* small styles to make the boxes consistent */
.mpin-digit, .mpin-digit-confirm {
    width: 3.5rem;
    height: 3.5rem;
    font-size: 1.5rem;
    padding: 0.25rem;
    border-radius: 0.35rem;
}

.gap-2 {
    gap: .5rem;
}


/* ===== 15/12/25 Footer ===== */

.site-footer {
    background: #0b2d4a;
    color: #ffffff;
    padding: 50px 0 20px;
}

.footer-title {
    font-weight: 600;
    margin-bottom: 12px;
}

.footer-text {
    font-size: 0.9rem;
    color: #dbe6f2;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .footer-links li {
        margin-bottom: 6px;
    }

    .footer-links a {
        color: #dbe6f2;
        text-decoration: none;
        font-size: 0.9rem;
    }

        .footer-links a:hover {
            text-decoration: underline;
            color: #ffffff;
        }

/* Google Map link */
.footer-map-link {
    display: inline-block;
    margin-top: 6px;
    color: #ffd966;
    font-weight: 600;
    text-decoration: none;
}

    .footer-map-link i {
        margin-right: 6px;
    }

    .footer-map-link:hover {
        color: #ffffff;
        text-decoration: underline;
    }

/* Social icons */
.footer-social a {
    display: inline-block;
    margin-right: 10px;
    font-size: 1.2rem;
    color: #ffd966;
}

    .footer-social a:hover {
        color: #ffffff;
    }

.footer-divider {
    border-color: rgba(255,255,255,0.2);
    margin: 20px 0;
}

.footer-bottom {
    font-size: 0.85rem;
    color: #cdd9e5;
}

/* Developer credit */
.dev-credit {
    display: block;
    margin-top: 6px;
    font-size: 0.8rem;
    color: #cdd9e5;
}

    .dev-credit a {
        color: #ffd966;
        text-decoration: none;
        font-weight: 600;
    }

        .dev-credit a:hover {
            text-decoration: underline;
            color: #ffffff;
        }


/*Floating Button CSS*/


.right-fab-wrapper {
    position: fixed;
    right: 20px;
    bottom: 90px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 9999;
}

.right-fab {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    color: #fff;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
    transition: all 0.25s ease;
}

    .right-fab:hover {
        transform: translateY(-3px) scale(1.05);
        box-shadow: 0 10px 22px rgba(0,0,0,0.35);
    }

/* Individual brand colors */
.chat-fab {
    background: linear-gradient(135deg, #00a8e8, #0077b6);
}

.whatsapp-fab {
    background: linear-gradient(135deg, #25D366, #128C7E);
}

.call-fab {
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
}

.contact-fab {
    background: linear-gradient(135deg, #6f42c1, #512da8);
}

/*legal-page*/
.legal-page {
    padding: 40px 0;
    background: #fafafa;
}

    .legal-page .container {
        max-width: 900px;
        background: #ffffff;
        padding: 30px;
        border-radius: 10px;
        box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    }

.page-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
    color: #7a1c1c;
}

.updated-date {
    font-size: 13px;
    color: #777;
    margin-bottom: 20px;
}

.legal-page h3 {
    margin-top: 25px;
    color: #333;
    font-size: 18px;
}

.legal-page p,
.legal-page li {
    font-size: 15px;
    line-height: 1.7;
    color: #444;
}

.legal-page ul {
    padding-left: 18px;
}

.contact-note {
    margin-top: 30px;
    font-weight: 500;
    color: #000;
}
