/* Anwar Ul Quran Madrasa – theme layer on top of Bootstrap 5 */
:root {
    --bs-primary: #0b5d3b;
    --bs-primary-rgb: 11, 93, 59;
    --bs-link-color: #0b5d3b;
    --bs-link-hover-color: #08452c;
    --bs-body-font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --bs-body-color: #26332d;
    --aq-green: #0b5d3b;
    --aq-green-dark: #08452c;
    --aq-gold: #c8962e;
    --aq-cream: #f7f4ec;
}
body { background: #fff; }
h1, h2, h3, .brand-name { font-family: Georgia, "Times New Roman", serif; }
.skip-link { position: absolute; z-index: 2000; background: #fff; padding: .5rem 1rem; }

.topbar { background: var(--aq-green-dark); color: #e6efe9; font-size: .85rem; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: var(--aq-gold); }

.site-header { background: #fff; box-shadow: 0 1px 8px rgba(0,0,0,.08); }
.brand-name { color: var(--aq-green); font-size: 1.15rem; }
.brand-sub { font-size: .75rem; }
.navbar .nav-link { font-weight: 600; font-size: .9rem; text-transform: uppercase; letter-spacing: .02em; color: #333; }
.navbar .nav-link:hover, .navbar .nav-link.active { color: var(--aq-green); }
.navbar .nav-link.active { box-shadow: inset 0 -3px 0 var(--aq-gold); }
.dropdown-item.active, .dropdown-item:active { background: var(--aq-green); }
@media (min-width: 1200px) { .navbar .dropdown:hover > .dropdown-menu { display: block; margin-top: 0; } }

.btn-gold { background: var(--aq-gold); color: #fff; border: 0; }
.btn-gold:hover { background: #b0821f; color: #fff; }
.btn-outline-light:hover { color: var(--aq-green); }

/* Hero carousel */
.hero .carousel-item img { width: 100%; height: clamp(220px, 42vw, 520px); object-fit: cover; }
.hero .carousel-caption { background: linear-gradient(transparent, rgba(0,0,0,.65)); left: 0; right: 0; bottom: 0; padding: 3rem 1rem 2.5rem; }
.hero .carousel-caption h2 { text-shadow: 0 1px 4px rgba(0,0,0,.5); font-size: clamp(1.1rem, 3vw, 2rem); }

/* Sections */
.section { padding: 3.5rem 0; }
.section-alt { background: var(--aq-cream); }
.section-title { color: var(--aq-green); position: relative; padding-bottom: .75rem; margin-bottom: 2rem; }
.section-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 3px; background: var(--aq-gold); }
.section-title.text-center::after { left: 50%; transform: translateX(-50%); }

.stat { text-align: center; padding: 1.5rem 1rem; background: #fff; border-radius: .75rem; box-shadow: 0 2px 12px rgba(0,0,0,.06); height: 100%; }
.stat .num { font-family: Georgia, serif; font-size: 2.4rem; font-weight: 700; color: var(--aq-green); line-height: 1; }
.stat .lbl { color: #5d6b64; font-size: .9rem; margin-top: .4rem; }

.quick-link { display: block; padding: 1.5rem; border-radius: .75rem; background: #fff; text-decoration: none; color: inherit; box-shadow: 0 2px 12px rgba(0,0,0,.06); height: 100%; transition: transform .15s, box-shadow .15s; }
.quick-link:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,.12); color: inherit; }
.quick-link i { font-size: 2rem; color: var(--aq-gold); }

.post-card { border: 0; box-shadow: 0 2px 12px rgba(0,0,0,.08); overflow: hidden; transition: transform .15s, box-shadow .15s; }
.post-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,.14); }
.post-card-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #e9ece9; }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; }
.post-card .card-title a { color: var(--aq-green-dark); text-decoration: none; }

/* Inner pages */
.page-hero { background: linear-gradient(135deg, var(--aq-green-dark), var(--aq-green)); color: #fff; padding: 2.25rem 0; }
.page-hero .breadcrumb { --bs-breadcrumb-divider-color: rgba(255,255,255,.6); --bs-breadcrumb-item-active-color: rgba(255,255,255,.8); font-size: .85rem; }
.page-hero .breadcrumb a { color: #fff; }
.page-title { font-size: clamp(1.6rem, 4vw, 2.4rem); margin: 0; }

.entry-content { max-width: 56rem; margin-inline: auto; font-size: 1.05rem; line-height: 1.75; }
.entry-content img, .entry-content video { max-width: 100%; height: auto; border-radius: .5rem; }
.entry-content img.aligncenter { display: block; margin-inline: auto; }
.entry-content iframe { max-width: 100%; }
.entry-content iframe[src*="youtube"] { width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: .5rem; }
.entry-content iframe[src*="google.com/maps"] { width: 100%; height: 350px; border-radius: .5rem; }
.entry-content h2, .entry-content h3 { color: var(--aq-green-dark); margin-top: 1.75rem; }
.entry-content hr { margin: 2rem 0; opacity: .15; }
.entry-content blockquote { border-left: 4px solid var(--aq-gold); padding: .5rem 1rem; background: var(--aq-cream); }

.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; cursor: zoom-in; transition: transform .2s; }
.gallery img:hover { transform: scale(1.02); }
.entry-content img:not(.no-zoom) { cursor: zoom-in; }

.post-nav a { text-decoration: none; }

/* Footer */
.site-footer { background: #10281d; color: #b9cbc1; }
.site-footer a { color: #d9e6df; text-decoration: none; }
.site-footer a:hover { color: var(--aq-gold); }
.site-footer li { margin-bottom: .35rem; }
.footer-bottom { background: #0a1c14; }

.whatsapp-fab { position: fixed; right: 18px; bottom: 18px; z-index: 1030; width: 54px; height: 54px; border-radius: 50%; background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.7rem; box-shadow: 0 4px 14px rgba(0,0,0,.3); text-decoration: none; }
.whatsapp-fab:hover { color: #fff; filter: brightness(.92); }

#lightbox img { max-height: 85vh; object-fit: contain; }

/* Mobile header: logo + title on one row, hamburger pinned to the right */
@media (max-width: 1199.98px) {
    .site-header .navbar > .container { flex-wrap: wrap; }
    .site-header .navbar-brand { flex: 1 1 0; min-width: 0; margin-right: .5rem; }
    .site-header .navbar-toggler { flex: 0 0 auto; padding: .3rem .55rem; border-color: rgba(0,0,0,.2); }
    .site-header .navbar-toggler-icon { width: 1.3em; height: 1.3em; }
    .site-header .navbar-collapse { flex-basis: 100%; }
}
@media (max-width: 575.98px) {
    .site-header .navbar { padding-block: .4rem; }
    .site-header .navbar-brand img { width: 40px; height: 40px; }
    .brand-name { font-size: .95rem; line-height: 1.15; }
    .brand-sub { font-size: .68rem; }
}
