/*
Theme Name: Hanuun
Theme URI: https://hanuun.org/
Author: Hanuun
Description: Lightweight custom theme for the Hanuun website.
Version: 0.1.0
Text Domain: hanuun
*/

:root {
  --hanuun-navy: #123b64;
  --hanuun-navy-dark: #0b2a49;
  --hanuun-ink: #0f172a;
  --hanuun-muted: #64748b;
  --hanuun-bg: #f6f8fb;
  --hanuun-card: #ffffff;
  --hanuun-line: rgba(15, 23, 42, 0.10);
  --hanuun-radius: 20px;
  --hanuun-shadow: 0 10px 30px rgba(15, 23, 42, 0.07);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--hanuun-bg);
  color: var(--hanuun-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
}

a { color: var(--hanuun-navy); }

.hanuun-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--hanuun-line);
  backdrop-filter: blur(14px);
}

.site-header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.site-brand {
  color: var(--hanuun-navy-dark);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  font-weight: 650;
}

.site-nav a {
  color: var(--hanuun-ink);
  text-decoration: none;
}

.site-nav a:hover { color: var(--hanuun-navy); }

.hanuun-hero {
  padding: 72px 0 42px;
}

.hanuun-hero-panel {
  padding: clamp(28px, 6vw, 64px);
  border-radius: 28px;
  background: linear-gradient(135deg, var(--hanuun-navy-dark), var(--hanuun-navy));
  color: #fff;
  box-shadow: var(--hanuun-shadow);
}

.hanuun-eyebrow {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.78;
}

.hanuun-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(38px, 8vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hanuun-hero-copy {
  max-width: 680px;
  margin: 20px 0 0;
  font-size: clamp(17px, 2.5vw, 21px);
  opacity: 0.88;
}

.hanuun-search {
  display: flex;
  gap: 10px;
  max-width: 620px;
  margin-top: 30px;
}

.hanuun-search input[type="search"] {
  flex: 1;
  min-width: 0;
  border: 0;
  border-radius: 14px;
  padding: 14px 16px;
  font: inherit;
}

.hanuun-search button {
  border: 0;
  border-radius: 14px;
  padding: 0 20px;
  background: #fff;
  color: var(--hanuun-navy-dark);
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.hanuun-section {
  padding: 24px 0 46px;
}

.hanuun-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.hanuun-section h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 38px);
  letter-spacing: -0.035em;
}

.hanuun-section-subtitle {
  margin: 6px 0 0;
  color: var(--hanuun-muted);
}

.hanuun-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.hanuun-card {
  display: block;
  min-height: 170px;
  padding: 22px;
  border: 1px solid var(--hanuun-line);
  border-radius: var(--hanuun-radius);
  background: var(--hanuun-card);
  color: inherit;
  text-decoration: none;
  box-shadow: var(--hanuun-shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}

.hanuun-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.10);
}

.hanuun-card-label {
  display: inline-block;
  margin-bottom: 26px;
  color: var(--hanuun-navy);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.hanuun-card h3 {
  margin: 0;
  font-size: 23px;
  letter-spacing: -0.02em;
}

.hanuun-card p {
  margin: 7px 0 0;
  color: var(--hanuun-muted);
  font-size: 14px;
}

.site-main {
  min-height: 65vh;
}

.entry-wrap {
  width: min(880px, calc(100% - 32px));
  margin: 42px auto 120px;
}

.entry-title {
  font-size: clamp(30px, 5vw, 48px);
  letter-spacing: -0.035em;
}

.site-footer {
  padding: 30px 0 120px;
  color: var(--hanuun-muted);
  font-size: 13px;
}

@media (max-width: 820px) {
  .site-nav { display: none; }
  .hanuun-grid { grid-template-columns: repeat(2, 1fr); }
  .hanuun-hero { padding-top: 34px; }
}

@media (max-width: 560px) {
  .hanuun-shell { width: min(100% - 22px, 1120px); }
  .hanuun-grid { grid-template-columns: 1fr; }
  .hanuun-search { display: block; }
  .hanuun-search button {
    width: 100%;
    min-height: 48px;
    margin-top: 8px;
  }
  .hanuun-card { min-height: 145px; }
}

/* Structured collection pages */
.hanuun-collection-header{
  margin-bottom:28px;
}
.hanuun-collection-header .entry-title{
  margin:0;
}
.hanuun-collection-meta{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
  margin-top:16px;
  color:var(--hanuun-muted);
  font-size:16px;
}
.hanuun-collection-sheekh{
  color:var(--hanuun-ink);
  font-weight:750;
}
.hanuun-collection-separator{
  color:#94a3b8;
}
.hanuun-collection-count{
  color:var(--hanuun-ink);
}
.hanuun-collection-page .entry-content > p:first-child{
  margin-top:0;
}
@media (max-width:560px){
  .hanuun-collection-meta{
    margin-top:12px;
    font-size:15px;
  }
}

/* ===== Hanuun dynamic library ===== */
.hanuun-library-page {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 38px 0 72px;
}

.hanuun-library-hero {
    padding: clamp(28px, 5vw, 52px);
    margin-bottom: 28px;
    border-radius: 28px;
    background: linear-gradient(135deg, #0b2a49, #123b64);
    color: #fff;
}

.hanuun-library-eyebrow,
.hanuun-sheekh-label {
    display: inline-block;
    margin-bottom: 8px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hanuun-library-hero h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(2rem, 5vw, 3.6rem);
    line-height: 1.05;
}

.hanuun-library-hero p {
    max-width: 720px;
    margin: 16px 0 0;
    font-size: 1.05rem;
    line-height: 1.7;
    opacity: .9;
}

.hanuun-library-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 22px;
    font-size: .92rem;
    font-weight: 600;
    opacity: .9;
}

.hanuun-sheekh-groups {
    display: grid;
    gap: 24px;
}

.hanuun-sheekh-group,
.hanuun-library-empty {
    padding: clamp(20px, 4vw, 30px);
    border: 1px solid rgba(18, 59, 100, .10);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(11, 42, 73, .06);
}

.hanuun-sheekh-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}

.hanuun-sheekh-heading h2,
.hanuun-library-empty h2 {
    margin: 0;
    color: #0b2a49;
    font-size: clamp(1.25rem, 3vw, 1.7rem);
}

.hanuun-sheekh-label {
    margin-bottom: 4px;
    color: #52708c;
}

.hanuun-sheekh-count {
    flex: 0 0 auto;
    color: #52708c;
    font-size: .9rem;
    font-weight: 600;
}

.hanuun-library-list {
    display: grid;
    gap: 9px;
}

.hanuun-library-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 16px;
    border: 1px solid rgba(18, 59, 100, .10);
    border-radius: 16px;
    color: #0b2a49;
    text-decoration: none;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.hanuun-library-item:hover,
.hanuun-library-item:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(18, 59, 100, .22);
    box-shadow: 0 8px 22px rgba(11, 42, 73, .08);
}

.hanuun-library-item-main {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.hanuun-library-item-main strong {
    line-height: 1.35;
}

.hanuun-library-item-main small {
    color: #668097;
    font-size: .86rem;
}

.hanuun-library-item-side {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.hanuun-draft-badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 2px 9px;
    border-radius: 999px;
    background: #eef4f9;
    color: #355873;
    font-size: .72rem;
    font-weight: 700;
}

.hanuun-library-arrow {
    font-size: 1.2rem;
}

.hanuun-library-empty p {
    margin: 10px 0 0;
    color: #52708c;
    line-height: 1.65;
}

@media (max-width: 640px) {
    .hanuun-library-page {
        width: min(100% - 20px, 1120px);
        padding-top: 18px;
    }

    .hanuun-library-hero,
    .hanuun-sheekh-group,
    .hanuun-library-empty {
        border-radius: 20px;
    }

    .hanuun-sheekh-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .hanuun-library-item {
        align-items: flex-start;
    }
}

/* ===== Hanuun library search ===== */
.hanuun-search-panel {
    margin: 0 0 24px;
    padding: 22px;
    border: 1px solid rgba(18,59,100,.10);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(11,42,73,.06);
}
.hanuun-filter-form {
    display: grid;
    grid-template-columns: minmax(220px,2fr) minmax(150px,1fr) minmax(210px,1.3fr) auto;
    gap: 14px;
    align-items: end;
}
.hanuun-filter-field {
    display: grid;
    gap: 7px;
}
.hanuun-filter-field label {
    color: #355873;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.hanuun-filter-field input,
.hanuun-filter-field select {
    width: 100%;
    min-height: 48px;
    padding: 10px 13px;
    border: 1px solid rgba(18,59,100,.18);
    border-radius: 14px;
    background: #fff;
    color: #0b2a49;
    font: inherit;
}
.hanuun-filter-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
}
.hanuun-filter-actions button {
    min-height: 48px;
    padding: 10px 18px;
    border: 0;
    border-radius: 14px;
    background: #123b64;
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.hanuun-filter-actions a {
    color: #355873;
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
}
.hanuun-search-results {
    display: grid;
    gap: 10px;
}
.hanuun-search-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 17px 18px;
    border: 1px solid rgba(18,59,100,.10);
    border-radius: 18px;
    background: #fff;
    color: #0b2a49;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(11,42,73,.045);
}
.hanuun-search-result-main {
    min-width: 0;
    display: grid;
    gap: 5px;
}
.hanuun-search-result-main small {
    color: #668097;
}
.hanuun-result-section {
    width: fit-content;
    padding: 3px 8px;
    border-radius: 999px;
    background: #eef4f9;
    color: #355873;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}
@media (max-width: 860px) {
    .hanuun-filter-form { grid-template-columns: 1fr 1fr; }
    .hanuun-filter-query { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
    .hanuun-filter-form { grid-template-columns: 1fr; }
    .hanuun-filter-query { grid-column: auto; }
    .hanuun-filter-actions { justify-content: space-between; }
    .hanuun-filter-actions button { flex: 1; }
    .hanuun-search-result { align-items: flex-start; padding: 15px; }
}

/* HANUUN CONTACT FOOTER */
.site-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    flex-wrap: wrap;
}

.site-footer-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.site-footer-links a {
    color: inherit;
    font-weight: 700;
    text-decoration: none;
}

.site-footer-links a:hover,
.site-footer-links a:focus-visible {
    text-decoration: underline;
}

@media (max-width: 640px) {
    .site-footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* ===== HANUUN TAFSIIR DISPLAY ===== */

.hanuun-tafsiir-title {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.hanuun-tafsiir-order {
    flex: 0 0 auto;
    min-width: 2.1em;
    opacity: .52;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.hanuun-sheekh-count {
    white-space: nowrap;
}

@media (max-width: 640px) {
    .hanuun-tafsiir-title {
        gap: 9px;
    }

    .hanuun-tafsiir-order {
        min-width: 2em;
    }
}

/* ===== HANUUN MUXAADARO DISPLAY ===== */

.hanuun-muxaadaro-grid {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:16px;
    max-width:1120px;
    margin:0 auto;
}

.hanuun-muxaadaro-card {
    display:flex;
    flex-direction:column;
    min-height:180px;
    padding:24px;
    border:1px solid rgba(15,23,42,.08);
    border-radius:22px;
    background:#fff;
    color:#0f172a;
    text-decoration:none;
    box-shadow:0 12px 34px rgba(15,23,42,.05);
    transition:
        transform .18s ease,
        border-color .18s ease,
        box-shadow .18s ease;
}

.hanuun-muxaadaro-card:hover {
    transform:translateY(-2px);
    border-color:rgba(18,59,100,.20);
    box-shadow:0 18px 42px rgba(15,23,42,.08);
}

.hanuun-muxaadaro-kicker {
    margin-bottom:9px;
    color:#64748b;
    font-size:11px;
    font-weight:800;
    letter-spacing:.09em;
    text-transform:uppercase;
}

.hanuun-muxaadaro-card h2 {
    margin:0;
    color:#123b64;
    font-size:21px;
    line-height:1.3;
    letter-spacing:-.02em;
}

.hanuun-muxaadaro-meta {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin-top:auto;
    padding-top:24px;
    color:#64748b;
    font-size:13px;
    font-weight:700;
}

.hanuun-muxaadaro-open {
    display:grid;
    place-items:center;
    width:34px;
    height:34px;
    border-radius:50%;
    background:#f4f7fa;
    color:#123b64;
    font-size:17px;
}

.hanuun-muxaadaro-audio {
    max-width:940px;
    margin:0 auto;
}

@media (max-width:760px) {

    .hanuun-muxaadaro-grid {
        grid-template-columns:1fr;
        gap:12px;
    }

    .hanuun-muxaadaro-card {
        min-height:150px;
        padding:20px;
        border-radius:19px;
    }

    .hanuun-muxaadaro-card h2 {
        font-size:19px;
    }

    .hanuun-muxaadaro-meta {
        padding-top:18px;
    }
}


/* =========================================================
   HANUUN APP NAVY GOLD SKIN V1
   Visual-only website skin inspired by the Hanuun app.
   ========================================================= */

:root {
    --hanuun-app-bg: #03172c;
    --hanuun-app-bg-deep: #021225;
    --hanuun-app-panel: #06213d;
    --hanuun-app-panel-2: #082a4b;
    --hanuun-app-panel-hover: #0a3157;

    --hanuun-app-gold: #f2c45c;
    --hanuun-app-gold-bright: #ffd36b;
    --hanuun-app-gold-soft: rgba(242, 196, 92, .18);
    --hanuun-app-gold-border: rgba(242, 196, 92, .38);

    --hanuun-app-text: #f7f9fc;
    --hanuun-app-muted: #afc0d2;
    --hanuun-app-muted-2: #89a2b9;

    --hanuun-app-shadow:
        0 18px 48px rgba(0, 8, 22, .28);
}


/* ===== PAGE BACKGROUND ===== */

html {
    background: var(--hanuun-app-bg-deep);
}

body {
    background:
        radial-gradient(
            circle at 8% 0%,
            rgba(242, 196, 92, .055),
            transparent 26rem
        ),
        radial-gradient(
            circle at 94% 12%,
            rgba(55, 115, 170, .12),
            transparent 32rem
        ),
        linear-gradient(
            180deg,
            #031a33 0%,
            var(--hanuun-app-bg) 48%,
            var(--hanuun-app-bg-deep) 100%
        );
    color: var(--hanuun-app-text);
}

.site-main {
    background: transparent;
}


/* ===== HEADER ===== */

.site-header {
    position: relative;
    z-index: 100;
    background:
        linear-gradient(
            180deg,
            rgba(2, 18, 37, .98),
            rgba(3, 25, 48, .96)
        );
    border-bottom: 1px solid var(--hanuun-app-gold-border);
    box-shadow: 0 9px 32px rgba(0, 8, 20, .18);
}

.site-header-inner {
    min-height: 82px;
}

.site-brand {
    color: var(--hanuun-app-gold) !important;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.8rem, 4vw, 2.45rem);
    font-weight: 700;
    letter-spacing: .035em;
    text-shadow: 0 2px 18px rgba(242, 196, 92, .14);
}

.site-brand:hover,
.site-brand:focus-visible {
    color: var(--hanuun-app-gold-bright) !important;
}

.site-nav a {
    padding: 9px 11px;
    border-radius: 999px;
    color: #eef3f8;
    font-weight: 650;
    transition:
        color .16s ease,
        background .16s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    background: var(--hanuun-app-gold-soft);
    color: var(--hanuun-app-gold-bright);
}


/* ===== HOMEPAGE HERO ===== */

.hanuun-hero {
    background: transparent;
}

.hanuun-hero-panel {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--hanuun-app-gold-border);
    background:
        radial-gradient(
            circle at 84% 4%,
            rgba(242, 196, 92, .11),
            transparent 25rem
        ),
        linear-gradient(
            135deg,
            #041b35 0%,
            #072747 56%,
            #051d37 100%
        );
    box-shadow: var(--hanuun-app-shadow);
}

.hanuun-hero-panel::after {
    content: "";
    position: absolute;
    width: 210px;
    height: 210px;
    right: -100px;
    top: -120px;
    border: 1px solid rgba(242, 196, 92, .13);
    border-radius: 50%;
    box-shadow:
        0 0 0 34px rgba(242, 196, 92, .025),
        0 0 0 70px rgba(242, 196, 92, .018);
    pointer-events: none;
}

.hanuun-eyebrow {
    color: var(--hanuun-app-gold);
}

.hanuun-hero-panel h1 {
    color: var(--hanuun-app-gold-bright);
    text-shadow: 0 3px 22px rgba(242, 196, 92, .09);
}

.hanuun-hero-copy {
    color: #dbe6f0;
}


/* ===== HOMEPAGE SEARCH ===== */

.hanuun-search input[type="search"] {
    border: 1px solid rgba(242, 196, 92, .30);
    background: rgba(1, 15, 31, .64);
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
}

.hanuun-search input[type="search"]::placeholder {
    color: #90a6ba;
}

.hanuun-search input[type="search"]:focus {
    border-color: var(--hanuun-app-gold);
    outline: 3px solid rgba(242, 196, 92, .12);
}

.hanuun-search button {
    border-color: var(--hanuun-app-gold);
    background: var(--hanuun-app-gold);
    color: #07213c;
    font-weight: 800;
}

.hanuun-search button:hover,
.hanuun-search button:focus-visible {
    background: var(--hanuun-app-gold-bright);
}


/* ===== HOME SECTION ===== */

.hanuun-section {
    background: transparent;
}

.hanuun-section-head h2,
.hanuun-section-head h3 {
    color: var(--hanuun-app-gold);
}

.hanuun-section-subtitle {
    color: var(--hanuun-app-muted);
}


/* ===== HOME SERVICE CARDS ===== */

.hanuun-card {
    border: 1px solid var(--hanuun-app-gold-border);
    background:
        linear-gradient(
            145deg,
            rgba(8, 42, 75, .98),
            rgba(4, 29, 55, .98)
        );
    color: var(--hanuun-app-text);
    box-shadow:
        0 14px 32px rgba(0, 8, 22, .18),
        inset 0 1px 0 rgba(255, 255, 255, .025);
}

.hanuun-card:hover,
.hanuun-card:focus-visible {
    transform: translateY(-3px);
    border-color: rgba(242, 196, 92, .68);
    background:
        linear-gradient(
            145deg,
            #0a3157,
            #06213e
        );
    box-shadow:
        0 20px 42px rgba(0, 8, 22, .28),
        0 0 0 1px rgba(242, 196, 92, .07);
}

.hanuun-card-label {
    color: var(--hanuun-app-gold-bright);
}

.hanuun-card p,
.hanuun-card small {
    color: var(--hanuun-app-muted);
}


/* ===== ALL LIBRARY HEROES ===== */

.hanuun-library-hero {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--hanuun-app-gold-border);
    background:
        radial-gradient(
            circle at 91% 2%,
            rgba(242, 196, 92, .10),
            transparent 24rem
        ),
        linear-gradient(
            135deg,
            #041b35,
            #082c50
        ) !important;
    color: var(--hanuun-app-text);
    box-shadow: var(--hanuun-app-shadow);
}

.hanuun-library-eyebrow {
    color: var(--hanuun-app-gold);
}

.hanuun-library-hero h1 {
    color: var(--hanuun-app-gold-bright);
}

.hanuun-library-hero p {
    color: #d9e4ee;
    opacity: 1;
}

.hanuun-library-stats {
    color: #c5d4e2;
    opacity: 1;
}


/* ===== TAFSIIR / DURUUS GROUPS ===== */

.hanuun-sheekh-group,
.hanuun-library-empty {
    border: 1px solid rgba(242, 196, 92, .25);
    background:
        linear-gradient(
            145deg,
            rgba(7, 36, 66, .98),
            rgba(4, 26, 50, .98)
        );
    box-shadow: 0 14px 36px rgba(0, 8, 22, .19);
}

.hanuun-sheekh-heading h2,
.hanuun-library-empty h2 {
    color: var(--hanuun-app-gold-bright);
}

.hanuun-sheekh-label {
    color: var(--hanuun-app-gold);
}

.hanuun-sheekh-count {
    color: var(--hanuun-app-muted);
}

.hanuun-library-item {
    border: 1px solid rgba(242, 196, 92, .16);
    background: rgba(3, 23, 45, .56);
    color: var(--hanuun-app-text);
}

.hanuun-library-item:hover,
.hanuun-library-item:focus-visible {
    border-color: rgba(242, 196, 92, .50);
    background: rgba(10, 49, 87, .74);
    box-shadow: 0 10px 25px rgba(0, 8, 22, .22);
}

.hanuun-library-item-main strong {
    color: #f7f9fc;
}

.hanuun-library-item-main small {
    color: var(--hanuun-app-muted-2);
}

.hanuun-library-arrow {
    color: var(--hanuun-app-gold);
}

.hanuun-library-empty p {
    color: var(--hanuun-app-muted);
}

.hanuun-tafsiir-order {
    color: var(--hanuun-app-gold);
    opacity: .76;
}


/* ===== SEARCH PAGE ===== */

.hanuun-search-panel {
    border: 1px solid rgba(242, 196, 92, .25);
    background:
        linear-gradient(
            145deg,
            rgba(7, 36, 66, .98),
            rgba(4, 26, 50, .98)
        );
    box-shadow: 0 14px 36px rgba(0, 8, 22, .19);
}

.hanuun-filter-form label {
    color: var(--hanuun-app-muted);
}

.hanuun-filter-form input,
.hanuun-filter-form select {
    border-color: rgba(242, 196, 92, .28);
    background: rgba(1, 17, 34, .78);
    color: var(--hanuun-app-text);
}

.hanuun-filter-form input:focus,
.hanuun-filter-form select:focus {
    border-color: var(--hanuun-app-gold);
    outline: 3px solid rgba(242, 196, 92, .10);
}

.hanuun-filter-form button {
    background: var(--hanuun-app-gold);
    color: #06213d;
    border-color: var(--hanuun-app-gold);
    font-weight: 800;
}


/* ===== QURAN RECITER LANDING ===== */

body .hanuun-quran-reciter-card {
    border: 1px solid var(--hanuun-app-gold-border);
    background:
        linear-gradient(
            145deg,
            #082a4b,
            #041d37
        );
    color: var(--hanuun-app-text);
    box-shadow: 0 14px 34px rgba(0, 8, 22, .20);
}

body .hanuun-quran-reciter-card:hover {
    border-color: rgba(242, 196, 92, .70);
    background:
        linear-gradient(
            145deg,
            #0a345c,
            #062542
        );
    box-shadow: 0 20px 42px rgba(0, 8, 22, .28);
}

body .hanuun-quran-reciter-kicker {
    color: var(--hanuun-app-gold);
}

body .hanuun-quran-reciter-card h2 {
    color: #fff;
}

body .hanuun-quran-riwaayah {
    background: rgba(242, 196, 92, .13);
    color: var(--hanuun-app-gold-bright);
    border: 1px solid rgba(242, 196, 92, .22);
}

body .hanuun-quran-reciter-meta {
    color: var(--hanuun-app-muted);
}

body .hanuun-quran-reciter-open {
    background: var(--hanuun-app-gold);
    color: #06213d;
}


/* ===== MUXAADARO LANDING ===== */

.hanuun-muxaadaro-card {
    border: 1px solid var(--hanuun-app-gold-border);
    background:
        linear-gradient(
            145deg,
            #082a4b,
            #041d37
        );
    color: var(--hanuun-app-text);
    box-shadow: 0 14px 34px rgba(0, 8, 22, .20);
}

.hanuun-muxaadaro-card:hover {
    border-color: rgba(242, 196, 92, .70);
    background:
        linear-gradient(
            145deg,
            #0a345c,
            #062542
        );
    box-shadow: 0 20px 42px rgba(0, 8, 22, .28);
}

.hanuun-muxaadaro-kicker {
    color: var(--hanuun-app-gold);
}

.hanuun-muxaadaro-card h2 {
    color: #fff;
}

.hanuun-muxaadaro-meta {
    color: var(--hanuun-app-muted);
}

.hanuun-muxaadaro-open {
    background: var(--hanuun-app-gold);
    color: #06213d;
}


/* ===== AUDIO TRACKS ===== */

body .hanuun-track-list {
    border: 1px solid rgba(242, 196, 92, .25);
    background:
        linear-gradient(
            145deg,
            rgba(7, 36, 66, .98),
            rgba(4, 26, 50, .98)
        );
    box-shadow: 0 16px 42px rgba(0, 8, 22, .22);
}

body .hanuun-track {
    border-bottom-color: rgba(242, 196, 92, .12);
}

body .hanuun-track:hover {
    background: rgba(242, 196, 92, .045);
}

body .hanuun-track-play {
    background: var(--hanuun-app-gold);
    color: #041b35;
    box-shadow:
        0 7px 18px rgba(0, 8, 22, .30),
        0 0 0 1px rgba(255, 221, 133, .22);
}

body .hanuun-track-play:hover {
    background: var(--hanuun-app-gold-bright);
    box-shadow:
        0 9px 22px rgba(0, 8, 22, .36),
        0 0 0 1px rgba(255, 221, 133, .30);
}

body .hanuun-track-title {
    color: #f7f9fc;
}

body .hanuun-track-meta {
    color: var(--hanuun-app-muted-2);
}

body .hanuun-track-download {
    border-color: rgba(242, 196, 92, .34);
    background: rgba(242, 196, 92, .055);
    color: var(--hanuun-app-gold);
}

body .hanuun-track-download:hover {
    border-color: rgba(242, 196, 92, .70);
    background: rgba(242, 196, 92, .13);
    color: var(--hanuun-app-gold-bright);
}

body .hanuun-quran-number {
    color: var(--hanuun-app-gold);
}


/* ===== PERSISTENT AUDIO PLAYER ===== */

body .hanuun-player {
    background:
        linear-gradient(
            to top,
            rgba(2, 15, 31, .99),
            rgba(2, 15, 31, .82),
            rgba(2, 15, 31, 0)
        );
}

body .hanuun-player-inner {
    border: 1px solid rgba(242, 196, 92, .34);
    background: rgba(4, 27, 51, .97);
    box-shadow: 0 20px 52px rgba(0, 5, 16, .46);
}

body .hanuun-player-kicker {
    color: var(--hanuun-app-gold);
}

body #hanuun-player-title {
    color: #fff;
}


/* ===== CONTACT FORM, WHEN PRESENT ===== */

.hanuun-contact-form,
.hanuun-contact-card {
    border-color: rgba(242, 196, 92, .25);
    background:
        linear-gradient(
            145deg,
            rgba(7, 36, 66, .98),
            rgba(4, 26, 50, .98)
        );
    color: var(--hanuun-app-text);
}

.hanuun-contact-form label {
    color: #d9e4ee;
}

.hanuun-contact-form input,
.hanuun-contact-form select,
.hanuun-contact-form textarea {
    border-color: rgba(242, 196, 92, .28);
    background: rgba(1, 17, 34, .78);
    color: #fff;
}

.hanuun-contact-form input:focus,
.hanuun-contact-form select:focus,
.hanuun-contact-form textarea:focus {
    border-color: var(--hanuun-app-gold);
    outline: 3px solid rgba(242, 196, 92, .10);
}

.hanuun-contact-form button {
    border-color: var(--hanuun-app-gold);
    background: var(--hanuun-app-gold);
    color: #06213d;
    font-weight: 800;
}


/* ===== FOOTER ===== */

.site-footer {
    border-top: 1px solid var(--hanuun-app-gold-border);
    background:
        linear-gradient(
            180deg,
            #03182f,
            #021225
        );
    color: var(--hanuun-app-muted);
}

.site-footer-links a {
    color: var(--hanuun-app-gold);
}

.site-footer-links a:hover,
.site-footer-links a:focus-visible {
    color: var(--hanuun-app-gold-bright);
}


/* ===== SELECTION / FOCUS ===== */

::selection {
    background: var(--hanuun-app-gold);
    color: #041b35;
}

a:focus-visible,
button:focus-visible {
    outline-color: var(--hanuun-app-gold);
}


/* ===== MOBILE ===== */

@media (max-width: 760px) {

    .site-header-inner {
        min-height: 70px;
    }

    .site-brand {
        font-size: 1.75rem;
    }

    .site-nav {
        scrollbar-width: none;
    }

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

    .hanuun-hero-panel,
    .hanuun-library-hero {
        box-shadow: 0 12px 32px rgba(0, 8, 22, .22);
    }

    .hanuun-card,
    body .hanuun-quran-reciter-card,
    .hanuun-muxaadaro-card {
        box-shadow: 0 10px 27px rgba(0, 8, 22, .17);
    }
}


/* ===== END HANUUN APP NAVY GOLD SKIN V1 ===== */



/* =========================================================
   HANUUN COMPACT CARDS V2
   Qaari + Muxaadaro landing card refinement.
   ========================================================= */


/* ===== GRID DENSITY ===== */

.hanuun-quran-reciter-grid,
.hanuun-muxaadaro-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.hanuun-quran-reciter-grid {
    counter-reset: hanuun-qari-card;
}

.hanuun-muxaadaro-grid {
    counter-reset: hanuun-mux-card;
}


/* ===== SHARED CARD SHAPE ===== */

body .hanuun-quran-reciter-card,
body .hanuun-muxaadaro-card {
    position: relative;
    overflow: hidden;
    min-height: 164px;
    padding: 20px 20px 18px;

    border: 1px solid rgba(242, 196, 92, .30);
    border-radius: 18px;

    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(242, 196, 92, .055),
            transparent 110px
        ),
        linear-gradient(
            145deg,
            #082a4b,
            #041d37
        );

    box-shadow:
        0 10px 28px rgba(0, 8, 22, .16);

    transition:
        transform .18s ease,
        border-color .18s ease,
        background .18s ease,
        box-shadow .18s ease;
}


/* Thin app-style gold accent */

body .hanuun-quran-reciter-card::after,
body .hanuun-muxaadaro-card::after {
    content: "";
    position: absolute;
    left: 0;
    top: 21px;
    bottom: 21px;
    width: 2px;

    border-radius: 0 4px 4px 0;

    background:
        linear-gradient(
            180deg,
            transparent,
            #f2c45c 28%,
            #f2c45c 72%,
            transparent
        );

    opacity: .62;
}


/* ===== CARD INDEX ===== */

body .hanuun-quran-reciter-card {
    counter-increment: hanuun-qari-card;
}

body .hanuun-muxaadaro-card {
    counter-increment: hanuun-mux-card;
}

body .hanuun-quran-reciter-card::before,
body .hanuun-muxaadaro-card::before {
    position: absolute;
    top: 18px;
    right: 19px;

    color: rgba(242, 196, 92, .48);

    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .08em;

    font-variant-numeric: tabular-nums;
}

body .hanuun-quran-reciter-card::before {
    content: counter(hanuun-qari-card, decimal-leading-zero);
}

body .hanuun-muxaadaro-card::before {
    content: counter(hanuun-mux-card, decimal-leading-zero);
}


/* ===== KICKER ===== */

body .hanuun-quran-reciter-kicker,
body .hanuun-muxaadaro-kicker {
    margin-bottom: 9px;

    color: #f2c45c;

    font-size: 10px;
    font-weight: 850;
    line-height: 1;

    letter-spacing: .11em;
    text-transform: uppercase;
}


/* ===== TITLES ===== */

body .hanuun-quran-reciter-card h2,
body .hanuun-muxaadaro-card h2 {
    max-width: calc(100% - 35px);
    margin: 0;

    color: #f7f9fc;

    font-size: clamp(17px, 1.35vw, 20px);
    font-weight: 760;
    line-height: 1.28;
    letter-spacing: -.018em;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;

    overflow: hidden;
}


/* ===== WARSH BADGE ===== */

body .hanuun-quran-riwaayah {
    align-self: flex-start;

    margin-top: 10px;
    padding: 4px 8px;

    border: 1px solid rgba(242, 196, 92, .25);
    border-radius: 999px;

    background: rgba(242, 196, 92, .09);
    color: #ffd36b;

    font-size: 10px;
    font-weight: 800;
}


/* ===== META ROW ===== */

body .hanuun-quran-reciter-meta,
body .hanuun-muxaadaro-meta {
    margin-top: auto;
    padding-top: 17px;

    border-top: 1px solid rgba(242, 196, 92, .11);

    color: #a9bdcf;

    font-size: 12px;
    font-weight: 700;
}


/* Count becomes a small app-style pill */

body .hanuun-quran-reciter-meta > span:first-child,
body .hanuun-muxaadaro-meta > span:first-child {
    display: inline-flex;
    align-items: center;

    min-height: 28px;
    padding: 4px 9px;

    border: 1px solid rgba(242, 196, 92, .14);
    border-radius: 999px;

    background: rgba(1, 17, 34, .32);
}


/* ===== ARROW ===== */

body .hanuun-quran-reciter-open,
body .hanuun-muxaadaro-open {
    width: 30px;
    height: 30px;

    border: 1px solid rgba(242, 196, 92, .42);
    border-radius: 50%;

    background: rgba(242, 196, 92, .08);
    color: #f2c45c;

    font-size: 15px;

    transition:
        transform .18s ease,
        background .18s ease,
        color .18s ease;
}


/* ===== HOVER ===== */

body .hanuun-quran-reciter-card:hover,
body .hanuun-quran-reciter-card:focus-visible,
body .hanuun-muxaadaro-card:hover,
body .hanuun-muxaadaro-card:focus-visible {
    transform: translateY(-3px);

    border-color: rgba(242, 196, 92, .65);

    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(242, 196, 92, .09),
            transparent 120px
        ),
        linear-gradient(
            145deg,
            #0a3157,
            #05213d
        );

    box-shadow:
        0 16px 34px rgba(0, 8, 22, .24);
}

body .hanuun-quran-reciter-card:hover
.hanuun-quran-reciter-open,
body .hanuun-quran-reciter-card:focus-visible
.hanuun-quran-reciter-open,
body .hanuun-muxaadaro-card:hover
.hanuun-muxaadaro-open,
body .hanuun-muxaadaro-card:focus-visible
.hanuun-muxaadaro-open {
    transform: translateX(2px);

    background: #f2c45c;
    color: #041b35;
}


/* ===== TABLET ===== */

@media (max-width: 1180px) {

    .hanuun-quran-reciter-grid,
    .hanuun-muxaadaro-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* ===== MOBILE ===== */

@media (max-width: 720px) {

    .hanuun-quran-reciter-grid,
    .hanuun-muxaadaro-grid {
        grid-template-columns: 1fr;
        gap: 11px;
    }

    body .hanuun-quran-reciter-card,
    body .hanuun-muxaadaro-card {
        min-height: 142px;
        padding: 18px 18px 16px;
        border-radius: 17px;
    }

    body .hanuun-quran-reciter-card::before,
    body .hanuun-muxaadaro-card::before {
        top: 17px;
        right: 17px;
    }

    body .hanuun-quran-reciter-card h2,
    body .hanuun-muxaadaro-card h2 {
        font-size: 17px;
    }

    body .hanuun-quran-reciter-meta,
    body .hanuun-muxaadaro-meta {
        padding-top: 14px;
    }
}


/* ===== END HANUUN COMPACT CARDS V2 ===== */

