/* SmartCom landing page styles - assets/css/landing.css */
        :root {
            --navy: #0A2540;
            --emerald: #0F3D3E;
            --gold: #D4AF37;
            --gold-soft: #C5A880;
            --cream: #F9F6F0;
            --slate: #2D3748;
            --hero-bg: #0A2540;
        }
        * { box-sizing: border-box; }
        html, body { overflow-x: hidden; scroll-behavior: smooth; }
        body { font-family: 'Inter', sans-serif; color: var(--slate); background: #fff; scroll-padding-top: 80px; }
        h1, h2, h3, .brand-font { font-family: 'Cinzel', serif; }

        /* ---------- Navbar ---------- */
        .site-nav {
            background: rgba(10, 37, 64, .85);
            backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
            border-bottom: 1px solid rgba(212, 175, 55, .3);
            min-height: 68px;
        }
        .site-nav .navbar-brand { color: #fff; display: flex; align-items: center; gap: .6rem; min-height: 44px; }
        .site-nav .navbar-brand img { height: 58px; width: auto; object-fit: contain; }
        .site-nav .brand-name { font-size: clamp(.95rem, 3.6vw, 1.2rem); letter-spacing: .5px; line-height: 1.1; }
        .site-nav .nav-link { color: rgba(255,255,255,.85); min-height: 44px; display: flex; align-items: center; padding: 0 1rem; font-weight: 500; }
        .site-nav .nav-link:hover, .site-nav .nav-link:focus { color: var(--gold); }
        .btn-gold {
            --bs-btn-color: var(--navy); --bs-btn-bg: var(--gold); --bs-btn-border-color: var(--gold);
            --bs-btn-hover-color: var(--navy); --bs-btn-hover-bg: #e3c04f; --bs-btn-hover-border-color: #e3c04f;
            --bs-btn-active-bg: #c29f2e; --bs-btn-active-border-color: #c29f2e;
            border-radius: 50rem; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .5rem 1.4rem;
        }
        .btn-outline-gold {
            --bs-btn-color: var(--gold); --bs-btn-border-color: var(--gold);
            --bs-btn-hover-color: var(--navy); --bs-btn-hover-bg: var(--gold); --bs-btn-hover-border-color: var(--gold);
            border-radius: 50rem; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .5rem 1.4rem;
        }
        .navbar-toggler { min-width: 44px; min-height: 44px; border-color: rgba(212,175,55,.5); }
        .navbar-toggler-icon { filter: invert(1); }
        .offcanvas { background: var(--navy); color: #fff; }
        .offcanvas .btn-close { filter: invert(1); }

        /* ---------- Hero ---------- */
        .hero { position: relative; background: var(--hero-bg); color: #fff; min-height: 100vh; display: flex; align-items: center; padding: 110px 0 80px; overflow: hidden; }
        .hero::before { /* subtle emerald glow */
            content: ''; position: absolute; inset: 0;
            background: radial-gradient(circle at 20% 30%, rgba(15,61,62,.9), transparent 60%);
        }
        .hero-photo {
            position: absolute; top: 0; right: 0; bottom: 0; width: 40%;
            background: var(--hero-image) center / cover no-repeat;
            -webkit-mask-image: linear-gradient(to right, transparent, #000 35%);
                    mask-image: linear-gradient(to right, transparent, #000 35%);
        }
        .hero .container { position: relative; z-index: 2; }
        .hero-content { max-width: 60%; }
        .hero-eyebrow { color: var(--gold); letter-spacing: .25em; text-transform: uppercase; font-size: clamp(1.75rem, 3.4vw, 1.9rem); font-weight: 600; }
        .hero h1 { font-size: clamp(2rem, 6vw, 3.8rem); font-weight: 700; line-height: 1.15; margin: .75rem 0 1rem; }
        .hero h1 span { color: var(--gold); }
        .hero p.lead { font-size: clamp(1rem, 2.6vw, 1.2rem); color: rgba(255,255,255,.85); max-width: 36rem; }
        .hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

        /* Mobile + tablet: photo becomes blended full background with dark overlay */
        @media (max-width: 991.98px) {
            .hero { min-height: auto; padding: 120px 0 70px; text-align: center; }
            .hero-photo { width: 100%; opacity: .4; -webkit-mask-image: none; mask-image: none; }
            .hero::after {
                content: ''; position: absolute; inset: 0; z-index: 1;
                background: linear-gradient(180deg, rgba(10,37,64,.75) 0%, rgba(10,37,64,.88) 60%, var(--navy) 100%);
            }
            .hero-content { max-width: 100%; }
            .hero p.lead { margin-inline: auto; }
            .hero-cta { justify-content: center; }
            .hero-cta .btn { flex: 1 1 100%; }
        }
        @media (min-width: 576px) and (max-width: 991.98px) { .hero-cta .btn { flex: 0 1 auto; } }

        /* ---------- Prayer times ---------- */
        .prayer-section { background: var(--cream); padding: 0 0 3.5rem; }
        .prayer-wrap { margin-top: -48px; position: relative; z-index: 5; background: #fff; border-radius: 1rem; box-shadow: 0 12px 35px rgba(10,37,64,.15); border-top: 4px solid var(--gold); padding: 1.25rem; }
        .prayer-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: 1rem; }
        .prayer-head h2 { font-size: 1.15rem; color: var(--navy); margin: 0; }
        .prayer-head small { color: #718096; }
        .prayer-row { display: flex; gap: .75rem; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-bottom: .5rem; scrollbar-width: none; }
        .prayer-row::-webkit-scrollbar { display: none; }
        .prayer-card { flex: 0 0 38%; scroll-snap-align: start; text-align: center; border: 1px solid #e8e2d4; border-radius: .85rem; padding: .9rem .5rem; background: var(--cream); min-height: 44px; transition: transform .2s; }
        .prayer-card i { font-size: 1.4rem; color: var(--gold-soft); }
        .prayer-card .p-name { font-weight: 600; color: var(--navy); margin-top: .25rem; }
        .prayer-card .p-time { font-size: 1.1rem; font-weight: 600; color: var(--slate); }
        .prayer-card.next { background: linear-gradient(145deg, var(--navy), var(--emerald)); border-color: var(--gold); transform: translateY(-3px); box-shadow: 0 8px 20px rgba(10,37,64,.3); }
        .prayer-card.next i, .prayer-card.next .p-name { color: var(--gold); }
        .prayer-card.next .p-time { color: #fff; }
        .next-badge { display: inline-block; font-size: .65rem; background: var(--gold); color: var(--navy); border-radius: 50rem; padding: .1rem .5rem; font-weight: 700; margin-top: .25rem; }
        @media (min-width: 576px) { .prayer-card { flex-basis: 24%; } }
        @media (min-width: 992px) {
            .prayer-wrap { padding: 1.75rem 2rem; }
            .prayer-row { overflow: visible; }
            .prayer-card { flex: 1 1 0; }
        }

        /* ---------- Announcements ---------- */
        .section { padding: 4rem 0; }
        .section-title { text-align: center; margin-bottom: 2.5rem; }
        .section-title h2 { color: var(--navy); font-size: clamp(1.5rem, 4.5vw, 2.1rem); }
        .section-title .divider { width: 70px; height: 3px; background: var(--gold); margin: .75rem auto 0; border-radius: 2px; }
        .event-card { height: 100%; border: 0; border-radius: 1rem; box-shadow: 0 6px 22px rgba(10,37,64,.08); border-top: 3px solid var(--gold); transition: transform .25s, box-shadow .25s; }
        .event-card:hover { transform: translateY(-5px); box-shadow: 0 14px 32px rgba(10,37,64,.15); }
        .event-icon { width: 52px; height: 52px; border-radius: 50%; background: var(--navy); color: var(--gold); display: grid; place-items: center; font-size: 1.4rem; }
        .event-tag { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--gold-soft); font-weight: 600; }
        .event-card h3 { font-size: 1.1rem; color: var(--navy); font-weight: 700; }
        .event-link { color: var(--emerald); font-weight: 600; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; gap: .3rem; }
        .event-link:hover { color: var(--gold); }

        /* ---------- Footer ---------- */
        footer { background: var(--navy); color: rgba(255,255,255,.8); padding: 3.5rem 0 1.5rem; border-top: 3px solid var(--gold); }
        footer h3 { color: var(--gold); font-size: 1.05rem; margin-bottom: 1rem; }
        footer a { color: rgba(255,255,255,.8); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; gap: .5rem; }
        footer a:hover { color: var(--gold); }
        .social a { width: 44px; height: 44px; justify-content: center; border: 1px solid rgba(212,175,55,.5); border-radius: 50%; margin-right: .5rem; font-size: 1.15rem; }
        .social a:hover { background: var(--gold); color: var(--navy); }
        .copy { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2rem; padding-top: 1.25rem; font-size: .875rem; text-align: center; }


        /* Stronger photo blending (desktop only) */
@media (min-width: 992px) {
    .hero-photo {
        width: 55%;   /* wider container gives the fade more room */
        -webkit-mask-image:
            linear-gradient(to right,
                transparent 0%,
                rgba(0,0,0,.15) 15%,
                rgba(0,0,0,.45) 35%,
                rgba(0,0,0,.8) 45%,
                #000 85%),
            linear-gradient(to bottom,
                transparent 0%, #000 18%, #000 82%, transparent 100%);
        -webkit-mask-composite: source-in;
        mask-image:
            linear-gradient(to right,
                transparent 0%,
                rgba(0,0,0,.15) 15%,
                rgba(0,0,0,.45) 35%,
                rgba(0,0,0,.8) 45%,
                #000 85%),
            linear-gradient(to bottom,
                transparent 0%, #000 18%, #000 82%, transparent 100%);
        mask-composite: intersect;
    }

    /* Optional: navy tint over the photo so it melts into the background colour */
    .hero-photo::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(to right, var(--navy) 0%, rgba(10,37,64,.4) 45%, rgba(10,37,64,.1) 100%);
    }
}

/* ---------- Live next-prayer countdown ---------- */
.next-countdown { color: var(--navy); background: var(--cream); border: 1px solid var(--gold-soft); border-radius: 50rem; padding: .35rem .9rem; font-size: .9rem; white-space: nowrap; }
.next-countdown i { color: var(--gold); margin-right: .25rem; }
.next-countdown strong { font-variant-numeric: tabular-nums; }


/* ---------- Announcements from the database ---------- */
.event-card h3, .event-card .event-msg { overflow-wrap: anywhere; }
.event-msg {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
button.event-link { background: none; border: 0; padding: 0; text-align: left; cursor: pointer; }
.ann-modal-msg { white-space: pre-line; overflow-wrap: anywhere; line-height: 1.7; }
#annModal .modal-title { color: var(--navy); font-size: 1.15rem; }



/* Janaza card styling on public homepage */
.janaza-card {
    border-top: 4px solid #1f2937;
    background: #f9fafb;
}
.janaza-icon {
    background: #111827 !important;
    color: #fbbf24 !important;
}
.janaza-tag {
    background: #111827 !important;
    color: #fbbf24 !important;
}
.janaza-summary li {
    margin-bottom: .35rem;
    color: #374151;
}
.janaza-summary i { color: #92400e; margin-right: .35rem; }
.janaza-modal-list dt { font-weight: 600; }
.janaza-modal-list dd { margin-bottom: .5rem; }
.janaza-summary li.is-urgent { color: #b91c1c; font-weight: 600; }