/* Darul Uloom Islamic Academy of Brisbane — site styles */
:root {
  --green: #0c6f2f;
  --green-dark: #08471f;
  --green-deep: #06331a;
  --gold: #c9a24b;
  --gold-light: #e6cd8c;
  --cream: #f8f4ea;
  --ink: #1f2a24;
  --muted: #5d6b63;
  --line: #e4ddcb;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(6, 51, 26, .10);
  --font-body: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  --font-head: "Lora", Georgia, serif;
  --font-ar: "Amiri", "Traditional Arabic", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); font-size: 18px; line-height: 1.65; color: var(--ink); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); }
a:hover { color: var(--green-dark); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; color: var(--green-deep); margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.container { width: min(1160px, 100% - 32px); margin-inline: auto; }
.center { text-align: center; }
.muted, .note { color: var(--muted); font-size: .95rem; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--ink); padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* Top bar & header */
.topbar { background: var(--green-deep); color: #d9e6dc; font-size: .88rem; }
.topbar-inner { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; margin-left: 18px; }
.topbar a:hover { color: var(--gold-light); }
.site-header { background: var(--white); border-bottom: 3px solid var(--gold); position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 12px rgba(0,0,0,.05); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 0; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-mark { width: 52px; height: 52px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-head); font-size: 1.45rem; font-weight: 700; color: var(--green-deep); }
.brand-sub { font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.site-nav { display: flex; align-items: center; gap: 18px; }
.site-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.site-nav ul a { display: block; white-space: nowrap; padding: 8px 9px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; border-radius: 8px; }
.site-nav ul a:hover { background: var(--cream); color: var(--green); }
.site-nav ul a.active { color: var(--green); box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--green-deep); margin: 5px 0; border-radius: 2px; transition: .2s; }

/* Buttons */
.btn { display: inline-block; padding: 12px 22px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; transition: .2s; font-size: 1rem; cursor: pointer; font-family: inherit; line-height: 1.3; text-align: center; }
.btn-gold { background: var(--gold); color: var(--green-deep); }
.btn-gold:hover { background: var(--gold-light); color: var(--green-deep); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-dark); color: #fff; }
.btn-outline { border-color: var(--green); color: var(--green); background: transparent; }
.btn-outline:hover { background: var(--green); color: #fff; }
.btn-outline-light { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--green-deep); }
.btn-small { padding: 7px 16px; font-size: .9rem; }
.nav-cta { padding: 9px 18px; font-size: .95rem; white-space: nowrap; }
.btn-row .btn { margin: 4px 6px 4px 0; }
.link-arrow { font-weight: 700; text-decoration: none; color: var(--green); }
.link-arrow::after { content: " →"; transition: margin .2s; }
.link-arrow:hover::after { margin-left: 4px; }

/* Geometric pattern (8-point star) */
.hero-pattern, .footer-pattern, .page-hero::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23c9a24b' stroke-width='1.2' opacity='.55'%3E%3Crect x='22' y='22' width='36' height='36'/%3E%3Crect x='22' y='22' width='36' height='36' transform='rotate(45 40 40)'/%3E%3Ccircle cx='40' cy='40' r='9'/%3E%3Cpath d='M0 0l22 22M80 0L58 22M0 80l22-22M80 80L58 58'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 80px 80px;
}

/* Home hero */
.home-hero { position: relative; background: linear-gradient(135deg, var(--green-deep), var(--green) 70%); color: #fff; overflow: hidden; }
.hero-pattern { position: absolute; inset: 0; opacity: .35; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; padding: 72px 0 80px; }
.hero-arabic { font-family: var(--font-ar); font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--gold-light); margin-bottom: .3em; }
.home-hero h1 { color: #fff; }
.hero-lead { font-size: 1.2rem; color: #e3efe6; max-width: 34em; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-photo { margin: 0; background: #fff; padding: 10px 10px 0; border-radius: var(--radius); box-shadow: 0 25px 50px rgba(0,0,0,.3); transform: rotate(1.5deg); }
.hero-photo img { border-radius: 8px; }
.hero-photo figcaption { color: var(--muted); font-size: .9rem; text-align: center; padding: 8px 0 10px; }

.quick-strip { background: var(--cream); border-bottom: 1px solid var(--line); }
.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.quick-item { padding: 20px 22px; border-left: 1px solid var(--line); }
.quick-item:first-child { border-left: 0; }
.quick-label { display: block; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); font-weight: 700; filter: brightness(.8); }
.quick-item strong { color: var(--green-deep); }

/* Sections */
.section { padding: 76px 0; }
.section-cream { background: var(--cream); }
.section-green { background: linear-gradient(135deg, var(--green-deep), var(--green-dark)); color: #e3efe6; }
.section-green h2 { color: #fff; }
.eyebrow { display: block; width: fit-content; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #9a7a2c; margin-bottom: 10px; }
.eyebrow a { color: inherit; }
.section-green .eyebrow, .page-hero .eyebrow, .light .eyebrow { color: var(--gold-light); }
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head.light p { color: #d4e4d8; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.split-reverse > :first-child { order: 0; }
.prose.wide { max-width: 860px; }
.prose h2 { padding-bottom: .35em; border-bottom: 2px solid var(--gold); display: inline-block; }
.section-green .prose h2, .cta-band h2 { border: 0; }

/* Page hero */
.page-hero { position: relative; background: linear-gradient(135deg, var(--green-deep), var(--green)); color: #e3efe6; padding: 64px 0 56px; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; opacity: .3; }
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; margin-bottom: .3em; }
.page-hero p { max-width: 46em; font-size: 1.15rem; margin: 0; }

/* Figures */
.photo { margin: 0; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.photo figcaption { padding: 10px 16px; font-size: .92rem; color: var(--muted); border-top: 3px solid var(--gold); }
.stack { display: grid; gap: 24px; }
.two-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 32px; }
.banner-figure { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.banner-figure figcaption { padding: 12px 18px; background: var(--cream); color: var(--muted); font-size: .95rem; }

/* Quotes */
.hadith-card { margin: 0; background: var(--cream); border-radius: var(--radius); padding: 48px 40px; position: relative; border: 1px solid var(--line); }
.hadith-card::before { content: "“"; position: absolute; top: -10px; left: 24px; font-family: var(--font-head); font-size: 7rem; color: var(--gold); line-height: 1; }
.hadith-card p { font-family: var(--font-head); font-size: 1.6rem; color: var(--green-deep); font-style: italic; }
.hadith-card cite, .quote cite { font-style: normal; font-weight: 700; color: #9a7a2c; }
.quote { margin: 0 0 1.5em; padding: 18px 24px; border-left: 5px solid var(--gold); background: var(--cream); border-radius: 0 var(--radius) var(--radius) 0; }
.quote p { font-family: var(--font-head); font-style: italic; font-size: 1.15rem; color: var(--green-deep); }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(6,51,26,.16); color: var(--ink); }
.card img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.card-body { padding: 22px 24px 26px; border-top: 4px solid var(--gold); flex: 1; }
.info-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.info-card { background: #fff; padding: 24px; border-radius: var(--radius); border-left: 5px solid var(--green); box-shadow: var(--shadow); }
.info-card:nth-child(even) { border-left-color: var(--gold); }
.info-card p { margin: 0; color: var(--muted); }

/* Tables & lists */
.data-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.data-table th { background: var(--green); color: #fff; text-align: left; padding: 12px 16px; font-weight: 600; }
.data-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tr:nth-child(even) td { background: #fbf9f3; }
.time-list { list-style: none; margin: 0 0 1em; padding: 0; display: grid; gap: 12px; }
.time-list li { display: flex; justify-content: space-between; align-items: center; background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--gold); padding: 14px 20px; border-radius: 10px; }
.time-list strong { font-family: var(--font-head); font-size: 1.35rem; color: var(--green); }
.time-group { font-size: 1.1rem; margin: 22px 0 10px; color: var(--green-deep); }
h2 + .time-group { margin-top: 6px; }
.check-list, .objectives { padding-left: 0; list-style: none; }
.check-list li { padding-left: 32px; position: relative; margin-bottom: 10px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; background: var(--green); color: #fff; font-size: .8rem; display: grid; place-items: center; }
.objectives { display: grid; gap: 14px; }
.objectives li { background: #fff; padding: 16px 20px 16px 64px; border-radius: 10px; position: relative; box-shadow: 0 4px 14px rgba(6,51,26,.06); }
.objectives li::before { content: ""; position: absolute; left: 18px; top: 14px; width: 32px; height: 32px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='16' fill='%230c6f2f'/%3E%3Cg fill='%23e6cd8c'%3E%3Crect x='9' y='9' width='14' height='14'/%3E%3Crect x='9' y='9' width='14' height='14' transform='rotate(45 16 16)'/%3E%3C/g%3E%3Ccircle cx='16' cy='16' r='3.2' fill='%230c6f2f'/%3E%3C/svg%3E") center / contain no-repeat; }
.contact-list { list-style: none; padding: 0; margin: 0 0 24px; }
.contact-list li { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; gap: 16px; }
.contact-list span { min-width: 80px; font-weight: 700; color: var(--muted); font-size: .9rem; text-transform: uppercase; letter-spacing: .05em; padding-top: 2px; }
.download-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.download-list li { display: flex; justify-content: space-between; align-items: center; gap: 16px; background: #fff; padding: 14px 20px; border-radius: 10px; border: 1px solid var(--line); flex-wrap: wrap; }
.link-card { display: block; margin-top: 8px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s; }
.link-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(6,51,26,.16); color: var(--ink); }
.link-card img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; object-position: center 40%; }
.link-card-body { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; padding: 20px 26px 22px; border-top: 4px solid var(--gold); }
.link-card-body strong { font-family: var(--font-head); font-size: 1.45rem; color: var(--green-deep); }
.link-card-url { color: var(--muted); }
.link-card-body .link-arrow { margin-left: auto; }
@media (max-width: 560px) { .link-card img { aspect-ratio: 4 / 3; } .link-card-body .link-arrow { margin-left: 0; } }

/* Gallery */
.cover-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 36px; }
.cover { position: relative; border-radius: var(--radius); overflow: hidden; display: block; }
.cover img { aspect-ratio: 1; object-fit: cover; width: 100%; transition: transform .4s; }
.cover:hover img { transform: scale(1.06); }
.cover span { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; background: linear-gradient(transparent, rgba(0,0,0,.75)); color: #fff; font-family: var(--font-head); font-size: 1.3rem; font-weight: 700; }
.year-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px; }
.year-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); transition: transform .2s; }
.year-card:hover { transform: translateY(-4px); }
.year-card img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.year-label { display: block; font-family: var(--font-head); font-size: 1.35rem; font-weight: 700; color: var(--green-deep); padding: 12px 16px 0; }
.year-count { display: block; padding: 0 16px 14px; color: var(--muted); font-size: .9rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.g-item { display: block; border-radius: 10px; overflow: hidden; }
.g-item img { aspect-ratio: 1; object-fit: cover; width: 100%; transition: transform .3s, opacity .3s; }
.g-item:hover img { transform: scale(1.05); opacity: .9; }
.gallery-pager { display: flex; justify-content: space-between; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-weight: 700; }
.gallery-pager a { text-decoration: none; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(5, 20, 12, .94); z-index: 200; display: none; align-items: center; justify-content: center; flex-direction: column; padding: 20px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: min(1100px, 92vw); max-height: 80vh; border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.lightbox p { color: #e3efe6; margin: 14px 0 0; text-align: center; }
.lb-btn { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; font-size: 2rem; width: 54px; height: 54px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.lb-btn:hover { background: var(--gold); color: var(--green-deep); }
.lb-close { top: 18px; right: 18px; font-size: 1.6rem; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }

/* News */
.news-list { display: grid; gap: 40px; }
.news-item { display: grid; grid-template-columns: 300px 1fr; gap: 36px; padding-bottom: 40px; border-bottom: 1px solid var(--line); align-items: start; }
.news-item:last-child { border-bottom: 0; }
.news-media img { border-radius: 10px; box-shadow: var(--shadow); }
.news-date { display: inline-block; background: var(--cream); color: #9a7a2c; font-weight: 700; font-size: .85rem; padding: 4px 12px; border-radius: 999px; margin-bottom: 10px; }
.news-item h2 { display: block; border: 0; padding: 0; }
details { margin: 0 0 1em; background: var(--cream); border-radius: 10px; padding: 14px 20px; }
summary { cursor: pointer; font-weight: 700; color: var(--green); }
details[open] summary { margin-bottom: 12px; }
.programme-list dt { font-weight: 700; color: var(--green-deep); margin-top: 10px; }
.programme-list dd { margin: 0; color: var(--muted); }
.signature { font-weight: 700; color: var(--green-deep); }
.signature span { font-weight: 400; color: var(--muted); }

/* CTA */
.cta-band { display: flex; justify-content: space-between; align-items: center; gap: 32px; background: var(--cream); border-radius: var(--radius); padding: 40px 44px; border: 1px solid var(--line); }
.cta-band.light { background: transparent; border: 0; padding: 0; }
.cta-band p { margin: 0; max-width: 44em; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; flex-shrink: 0; }

/* Forms */
.form { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px; display: grid; gap: 16px; border-top: 5px solid var(--gold); }
.form h2 { border: 0; display: block; padding: 0; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.form input, .form textarea { font: inherit; padding: 11px 14px; border: 1px solid #cfc8b4; border-radius: 8px; background: #fffdf8; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--green); border-color: var(--green); }
.form-note { font-size: .85rem; color: var(--muted); margin: 0; }
.map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.map iframe { width: 100%; height: 320px; border: 0; display: block; }

/* Footer */
.site-footer { position: relative; background: var(--green-deep); color: #c9dbcf; padding-top: 60px; overflow: hidden; }
.footer-pattern { position: absolute; inset: 0; opacity: .12; }
.footer-grid { position: relative; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer h3 { color: var(--gold-light); font-size: 1.1rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); }
.footer-arabic { font-family: var(--font-ar); font-size: 2.2rem; color: var(--gold-light); margin: 0 0 20px; text-align: left; }
.footer-tag { font-family: var(--font-head); font-style: italic; color: #fff; }
.footer-tag span { font-style: normal; font-size: .85rem; color: #9fb8a7; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-bottom { position: relative; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 22px 0; margin-top: 40px; border-top: 1px solid rgba(255,255,255,.12); font-size: .88rem; color: #9fb8a7; }

/* Quran audio player (Resources page) */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.qp-card { background: var(--cream); border: 1px solid var(--line); border-left: 5px solid var(--gold); border-radius: var(--radius); padding: 18px 20px; margin-top: 18px; }
.now-label { margin: 0; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #9a7a2c; }
.now-title { margin: 2px 0 12px; font-family: var(--font-head); font-size: 1.25rem; color: var(--green-deep); font-weight: 600; }
.now-ar { font-family: var(--font-ar); color: var(--green); font-size: 1.35rem; margin-left: 6px; }
#quran-audio { width: 100%; display: block; }
.qp-controls { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.qp-controls .btn:disabled { opacity: .4; cursor: default; background: transparent; color: var(--green); }
.surah-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.surah-head h2 { margin: 0; }
.surah-search { font: inherit; padding: 10px 16px; border: 1px solid #cfc8b4; border-radius: 999px; background: #fff; width: min(360px, 100%); }
.surah-search:focus { outline: 2px solid var(--green); border-color: var(--green); }
.surah-search-wrap { flex: 0 1 360px; }
.surah-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.surah-list li { display: flex; align-items: stretch; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.surah-list li:hover { border-color: var(--gold); box-shadow: 0 4px 14px rgba(6,51,26,.08); }
.surah-play { flex: 1; display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: none; border: 0; font: inherit; color: var(--ink); text-align: left; cursor: pointer; min-width: 0; }
.surah-num { flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--cream); color: var(--green-deep); font-weight: 700; font-size: .9rem; display: grid; place-items: center; }
.surah-names { flex: 1; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; min-width: 0; }
.surah-en { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.surah-ar { font-family: var(--font-ar); font-size: 1.2rem; color: var(--green); flex-shrink: 0; }
.surah-icon { flex-shrink: 0; width: 0; height: 0; border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent var(--gold); opacity: .55; }
.surah-play:hover .surah-icon { opacity: 1; }
.surah-dl { display: grid; place-items: center; width: 44px; flex-shrink: 0; border-left: 1px solid var(--line); color: var(--muted); }
.surah-dl:hover { background: var(--cream); color: var(--green); }
.surah-list li.playing { border-color: var(--green); box-shadow: 0 0 0 1px var(--green); }
.surah-list li.playing .surah-num { background: var(--green); color: #fff; }
.is-playing .surah-list li.playing .surah-icon { opacity: 1; border: 0; width: 12px; height: 14px; border-left: 4px solid var(--green); border-right: 4px solid var(--green); }

/* Image positions (set from the Site Editor) */
img.img-float-left { float: left; max-width: 45%; margin: 6px 24px 16px 0; border-radius: 10px; }
img.img-float-right { float: right; max-width: 45%; margin: 6px 0 16px 24px; border-radius: 10px; }
img.img-center { margin: 20px auto; max-width: min(100%, 640px); border-radius: 10px; }
img.img-full { width: 100%; margin: 20px 0; border-radius: 10px; }
.prose::after { content: ""; display: table; clear: both; }

/* Responsive */
@media (max-width: 1240px) {
  .nav-toggle { display: block; }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 12px 16px 20px; border-bottom: 3px solid var(--gold); box-shadow: 0 12px 24px rgba(0,0,0,.1); display: none; }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; }
  .site-nav ul a { padding: 12px 10px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .site-nav ul a.active { box-shadow: inset 4px 0 0 var(--gold); }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}
@media (max-width: 1080px) {
  .info-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  body { font-size: 17px; }
  .hero-grid, .split, .footer-grid, .news-item { grid-template-columns: 1fr; gap: 32px; }
  .hero-grid { padding: 48px 0 56px; }
  .hero-photo { transform: none; }
  .card-grid { grid-template-columns: 1fr; }
  .cover-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-grid { grid-template-columns: 1fr; }
  .quick-item { border-left: 0; border-top: 1px solid var(--line); padding: 14px 0; }
  .quick-item:first-child { border-top: 0; }
  .section { padding: 56px 0; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 28px; }
  .news-item .news-media { max-width: 360px; }
  .topbar-inner > span:first-child { display: none; }
  .topbar a { margin: 0 14px 0 0; }
}
@media (max-width: 560px) {
  .info-grid, .two-photos { grid-template-columns: 1fr; }
  .brand-name { font-size: 1.2rem; }
  .brand-sub { font-size: .7rem; }
  .logo-mark { width: 44px; height: 44px; }
  .hadith-card { padding: 40px 24px 28px; }
  .hadith-card p { font-size: 1.3rem; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .form { padding: 22px; }
  .lb-prev, .lb-next { top: auto; bottom: 18px; transform: none; }
}

/* Language switcher (bottom-right) and Google Translate clean-up — same as the AIIC site */
.lang-switch { position: fixed; right: 20px; bottom: 20px; z-index: 150; font-family: var(--font-body); }
.lang-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--white); color: var(--green-deep); border: 1px solid rgba(6, 51, 26, .18); border-radius: 12px; padding: 10px 14px; font-weight: 700; font-size: 15px; letter-spacing: .04em; cursor: pointer; box-shadow: 0 8px 22px rgba(6, 51, 26, .22); transition: border-color .15s ease, box-shadow .15s ease; }
.lang-btn:hover, .lang-btn[aria-expanded="true"] { border-color: var(--gold); box-shadow: 0 10px 26px rgba(6, 51, 26, .3); }
.lang-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.lang-globe { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.lang-chev { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s ease; }
.lang-btn[aria-expanded="true"] .lang-chev { transform: rotate(180deg); }
.lang-menu { position: absolute; right: 0; bottom: calc(100% + 10px); width: min(300px, calc(100vw - 32px)); max-height: min(70vh, 560px); overflow-y: auto; background: var(--white); border-radius: 14px; box-shadow: 0 18px 44px rgba(6, 51, 26, .3); padding: 14px 8px 10px; }
.lang-menu[hidden] { display: none; }
.lang-title { margin: 0 10px 8px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.lang-menu ul { list-style: none; margin: 0; padding: 0; }
.lang-opt { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; width: 100%; background: none; border: none; border-radius: 8px; padding: 9px 10px; text-align: start; cursor: pointer; font: inherit; }
.lang-opt:hover, .lang-opt:focus-visible { background: var(--cream); outline: none; }
.lang-opt.is-current { background: rgba(201, 162, 75, .28); }
.lang-native { font-weight: 700; font-size: 16px; color: var(--green-deep); }
.lang-english { font-size: 13px; color: var(--muted); white-space: nowrap; }
.lang-note { margin: 10px 10px 2px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.4; color: var(--muted); }
/* Hide Google's own banner and hover pop-ups so only our button shows */
body { top: 0 !important; }
body > .skiptranslate, .goog-te-banner-frame, iframe.VIpgJd-ZVi9od-ORHb-OEVmcd, #goog-gt-tt, .goog-tooltip, .goog-te-balloon-frame { display: none !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }
@media (max-width: 600px) { .lang-switch { right: 12px; bottom: 12px; } .lang-btn { padding: 9px 12px; } }
/* Right-to-left languages (Arabic, Urdu, Persian, Pashto): mirror the layout; keep the switcher itself left-to-right */
html.lang-rtl body { direction: rtl; }
/* the off-screen skip link and Google's loading spinner would otherwise add a sideways scroll in RTL */
html.lang-rtl, html.lang-rtl body { overflow-x: clip; }
.VIpgJd-ZVi9od-aZ2wEe-wOHMyf { display: none !important; }
html.lang-rtl .lang-switch { direction: ltr; }
