﻿:root {
  --bg: #f3efe8;
  --bg-soft: #f7f3ee;
  --panel: #ffffff;
  --panel-strong: #f8f5f0;
  --primary: #112a36;
  --primary-alt: #193d4e;
  --primary-soft: #dfeff7;
  --primary-deep: #0b1f2b;
  --accent: #d4a85a;
  --accent-strong: #bf8a35;
  --accent-soft: #f9efe0;
  --text: #1d2b36;
  --muted: #60707b;
  --line: rgba(17, 42, 54, 0.12);
  --shadow: 0 28px 60px rgba(12, 25, 32, 0.12);
  --shadow-soft: 0 18px 30px rgba(15, 40, 52, 0.08);
  --success: #2d7d58;
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: 1200px;
  --gradient-hero: linear-gradient(120deg, #0f2b39 0%, #183f4d 40%, #1c465c 100%);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  width: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  width: 100%;
  max-width: 100%;
  font-family: 'Tajawal', sans-serif;
  background:
    radial-gradient(circle at top, rgba(212, 168, 90, 0.12), transparent 28%),
    linear-gradient(180deg, #f7f2eb 0%, #f3efe9 100%);
  color: var(--text);
  line-height: 1.8;
  overflow-x: hidden;
}

img,
svg,
iframe {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: none;
  background: none;
  color: inherit;
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
.display {
  font-family: 'Amiri', serif;
  line-height: 1.3;
}

p {
  color: var(--muted);
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 22px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(200, 157, 76, 0.7);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  /* Unified public-site visual system */
  :root {
    --bg: #f6f3ed;
    --bg-soft: #fbfaf7;
    --panel: rgba(255, 255, 255, 0.9);
    --primary: #123f3b;
    --primary-alt: #1b5b52;
    --primary-deep: #092b2a;
    --accent: #c99b45;
    --accent-strong: #a9782e;
    --accent-soft: #f7ecd4;
    --text: #18302e;
    --muted: #647572;
    --line: rgba(18, 63, 59, 0.12);
    --shadow: 0 24px 60px rgba(18, 63, 59, 0.12);
    --shadow-soft: 0 12px 30px rgba(18, 63, 59, 0.08);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
  }

  body {
    background:
      radial-gradient(circle at 8% 10%, rgba(201, 155, 69, 0.13), transparent 24rem),
      radial-gradient(circle at 92% 36%, rgba(27, 91, 82, 0.09), transparent 25rem),
      var(--bg);
  }

  .topbar {
    background: var(--primary-deep);
    border-bottom: 1px solid rgba(201, 155, 69, 0.2);
  }

  .site-header {
    background: rgba(9, 43, 42, 0.92);
    border-bottom-color: rgba(201, 155, 69, 0.32);
  }

  .brand-mark {
    border-radius: 50%;
    background: linear-gradient(145deg, var(--accent), var(--accent-strong));
    color: var(--primary-deep);
    box-shadow: 0 8px 20px rgba(201, 155, 69, 0.2);
  }

  .main-nav a:hover,
  .main-nav a.active {
    background: rgba(201, 155, 69, 0.16);
    box-shadow: inset 0 -2px 0 var(--accent);
  }

  .home-hero {
    min-height: 600px;
    isolation: isolate;
    background:
      linear-gradient(110deg, rgba(9, 43, 42, 0.97), rgba(18, 63, 59, 0.83)),
      var(--hero-image, linear-gradient(135deg, var(--primary-deep), var(--primary)));
    background-size: cover;
    background-position: center;
  }

  .home-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 90px;
    background: linear-gradient(180deg, transparent, var(--bg));
    pointer-events: none;
  }

  .home-hero-copy h1 {
    font-size: clamp(3rem, 7vw, 6.5rem);
    text-wrap: balance;
  }

  .eyebrow,
  .kicker,
  .meta-tag {
    color: var(--accent-strong);
    letter-spacing: 0.02em;
  }

  .btn-gold {
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: var(--primary-deep);
    box-shadow: 0 12px 24px rgba(169, 120, 46, 0.2);
  }

  .prayer-widget-shell,
  .hadith-card,
  .feature-card,
  .news-card,
  .destination-card,
  .about-card,
  .content-section .empty-state {
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
  }

  .prayer-widget-shell {
    border-radius: var(--radius-xl);
    background: linear-gradient(145deg, #fff, #f4eee2);
  }

  .prayer-card {
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.72);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  }

  .prayer-card:hover,
  .prayer-card.is-active {
    transform: translateY(-4px);
    border-color: rgba(201, 155, 69, 0.62);
    box-shadow: 0 12px 24px rgba(18, 63, 59, 0.1);
  }

  .destination-card,
  .feature-card,
  .news-card {
    border-radius: var(--radius-lg);
    background: var(--panel);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
  }

  .destination-card:hover,
  .feature-card:hover,
  .news-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
  }

  .destination-media img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
  }

  .page-banner {
    min-height: 290px;
    display: grid;
    place-items: center;
    position: relative;
    overflow: hidden;
    background:
      radial-gradient(circle at 18% 30%, rgba(201, 155, 69, 0.2), transparent 18rem),
      linear-gradient(135deg, var(--primary-deep), var(--primary-alt));
  }

  .page-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.16;
    background-image: linear-gradient(45deg, transparent 46%, rgba(255,255,255,.35) 47%, transparent 49%);
    background-size: 34px 34px;
  }

  .page-banner-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 4rem 1rem;
  }

  .page-banner h1 {
    color: #fffaf0;
    font-size: clamp(2.5rem, 6vw, 4.8rem);
  }

  .page-banner p {
    color: rgba(255, 250, 240, 0.78);
    max-width: 620px;
    margin: 0.8rem auto 0;
  }

  .content-section {
    padding-top: clamp(3rem, 7vw, 6rem);
    padding-bottom: clamp(3rem, 7vw, 6rem);
  }

  footer {
    margin-top: 5rem;
    background: var(--primary-deep);
    border-top: 1px solid rgba(201, 155, 69, 0.28);
  }

  @media (max-width: 720px) {
    .topbar-inner {
      justify-content: center;
      text-align: center;
    }

    /* Public navigation, homepage shortcuts, and assessment cards */
    .main-nav .nav-icon {
      color: var(--accent);
      font-size: .9rem;
    }

    .footer-description {
      max-width: 320px;
      margin: 12px 0 18px;
      color: rgba(255, 250, 240, .7);
      font-size: .9rem;
    }

    .footer-links {
      display: grid;
      align-content: start;
      gap: 8px;
      min-width: 190px;
    }

    .footer-links strong {
      color: var(--accent);
      margin-bottom: 5px;
    }

    .footer-links a {
      color: rgba(255, 250, 240, .75);
      transition: color .2s ease, transform .2s ease;
    }

    .footer-links a:hover {
      color: #fffaf0;
      transform: translateX(-4px);
    }

    .home-service-links {
      position: relative;
      z-index: 2;
      margin-top: -18px;
      padding: 30px 0 8px;
    }

    .section-head.compact {
      margin-bottom: 18px;
    }

    .section-head.compact h2 {
      font-size: clamp(1.7rem, 3vw, 2.5rem);
    }

    .home-service-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 14px;
    }

    .home-service-card {
      display: flex;
      align-items: center;
      gap: 12px;
      min-height: 92px;
      padding: 16px;
      border: 1px solid var(--line);
      border-radius: var(--radius-md);
      background: rgba(255, 255, 255, .9);
      box-shadow: var(--shadow-soft);
      transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
    }

    .home-service-card:hover {
      transform: translateY(-5px);
      border-color: rgba(201, 155, 69, .6);
      box-shadow: var(--shadow);
    }

    .home-service-card > span:nth-child(2) {
      display: grid;
      gap: 3px;
      flex: 1;
    }

    .home-service-card strong {
      color: var(--primary-deep);
      font-size: .95rem;
    }

    .home-service-card small {
      color: var(--muted);
      font-size: .74rem;
      line-height: 1.5;
    }

    .home-service-card b {
      color: var(--accent-strong);
      font-size: 1.3rem;
    }

    .service-icon {
      display: grid;
      place-items: center;
      width: 42px;
      height: 42px;
      flex: 0 0 42px;
      border-radius: 13px;
      background: var(--accent-soft);
      color: var(--accent-strong);
      font-size: 1.2rem;
    }

    .competition-card {
      display: flex;
      flex-direction: column;
    }

    .competition-card-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 14px;
    }

    .competition-card .feature-icon {
      display: grid;
      place-items: center;
      width: 48px;
      height: 48px;
      margin: 0;
      border-radius: 15px;
      background: var(--accent-soft);
      color: var(--accent-strong);
      font-size: 1.45rem;
    }

    .competition-status {
      padding: 5px 10px;
      border-radius: 999px;
      background: rgba(45, 125, 88, .11);
      color: var(--success);
      font-size: .75rem;
      font-weight: 800;
    }

    .competition-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin: 12px 0 16px;
      color: var(--muted);
      font-size: .78rem;
    }

    .competition-meta span {
      padding: 5px 9px;
      border-radius: 8px;
      background: var(--bg-soft);
    }

    .competition-start {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-top: auto;
      padding-top: 14px;
      border-top: 1px solid var(--line);
      color: var(--primary-alt);
      font-weight: 800;
    }

    .competition-start span {
      color: var(--accent-strong);
      font-size: 1.35rem;
    }

    @media (max-width: 980px) {
      .home-service-grid {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    @media (max-width: 640px) {
      .home-service-links {
        margin-top: 0;
        padding-top: 22px;
      }

    }

/* Dedicated assessments theme */
      .assessments-hero {
        position: relative;
        overflow: hidden;
        padding: 86px 0 104px;
        background:
          radial-gradient(circle at 78% 44%, rgba(201,155,69,.22), transparent 18rem),
          linear-gradient(122deg, #082b2b 0%, #0e4a45 55%, #17655a 100%);
      }

      .assessments-hero::before {
        content: "";
        position: absolute;
        inset: 0;
        opacity: .18;
        background-image:
          linear-gradient(30deg, transparent 45%, rgba(255,255,255,.22) 46%, transparent 48%),
          linear-gradient(150deg, transparent 45%, rgba(255,255,255,.18) 46%, transparent 48%);
        background-size: 66px 66px;
      }

      .assessments-hero::after {
        content: "";
        position: absolute;
        inset: auto 0 -1px;
        height: 54px;
        background: var(--bg);
        clip-path: polygon(0 80%, 7% 45%, 14% 75%, 22% 30%, 31% 70%, 41% 35%, 51% 75%, 61% 26%, 71% 68%, 82% 36%, 91% 72%, 100% 40%, 100% 100%, 0 100%);
      }

      .assessments-hero-inner {
        position: relative;
        z-index: 1;
        display: grid;
        grid-template-columns: 1.1fr .9fr;
        align-items: center;
        gap: 40px;
      }

      .assessments-hero-copy {
        max-width: 640px;
      }

      .assessments-eyebrow {
        display: inline-flex;
        margin-bottom: 14px;
        color: #e6c879;
        font-size: .88rem;
        font-weight: 800;
      }

      .assessments-hero h1 {
        color: #fffaf0;
        font-family: 'Amiri', serif;
        font-size: clamp(3.8rem, 8vw, 7.5rem);
        line-height: .95;
        letter-spacing: -.04em;
      }

      .assessments-hero h1 em {
        color: #e6c879;
        font-style: normal;
      }

      .assessments-hero-copy > p {
        max-width: 560px;
        margin: 24px 0;
        color: rgba(255,250,240,.78);
        font-size: 1.08rem;
        line-height: 2;
      }

      .assessments-hero-actions {
        display: flex;
        align-items: center;
        gap: 20px;
        flex-wrap: wrap;
      }

      .assessments-hero-actions .btn {
        min-width: 190px;
        justify-content: center;
      }

      .assessments-hero-actions .btn span {
        margin-right: 8px;
        font-size: 1.2rem;
      }

      .assessments-trust {
        color: rgba(255,250,240,.65);
        font-size: .82rem;
      }

      .assessments-hero-art {
        position: relative;
        min-height: 310px;
        display: grid;
        place-items: center;
      }

      .assessment-medallion {
        position: relative;
        z-index: 2;
        display: grid;
        place-items: center;
        width: 220px;
        height: 220px;
        border: 1px solid rgba(230,200,121,.8);
        border-radius: 50%;
        background: radial-gradient(circle, rgba(230,200,121,.24), rgba(9,43,42,.2) 68%);
        box-shadow: 0 0 0 14px rgba(230,200,121,.06), 0 0 0 30px rgba(230,200,121,.04), 0 28px 60px rgba(0,0,0,.2);
        color: #f5d989;
        text-align: center;
      }

      .assessment-medallion span {
        display: block;
        margin-bottom: 6px;
        font-size: 2.3rem;
      }

      .assessment-medallion strong {
        font-family: 'Amiri', serif;
        font-size: 1.65rem;
        line-height: 1.1;
      }

      .art-orbit {
        position: absolute;
        width: 300px;
        height: 180px;
        border: 1px solid rgba(230,200,121,.34);
        border-radius: 50%;
        transform: rotate(-30deg);
      }

      .orbit-one { transform: rotate(-30deg) translateY(-12px); }
      .orbit-two { transform: rotate(55deg) scale(.9); opacity: .65; }

      .assessment-overview {
        position: relative;
        z-index: 3;
        padding: 0;
      }

      .assessment-overview-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr) 1.4fr;
        align-items: center;
        gap: 1px;
        overflow: hidden;
        border: 1px solid var(--line);
        border-radius: var(--radius-lg);
        background: rgba(255,255,255,.96);
        box-shadow: var(--shadow);
      }

      .assessment-overview-grid > div {
        display: grid;
        gap: 2px;
        min-height: 92px;
        align-content: center;
        padding: 16px 24px;
        border-left: 1px solid var(--line);
      }

      .assessment-overview-grid > div:nth-child(3) { border-left: 0; }

      .assessment-overview-grid strong {
        color: var(--primary);
        font-size: 1.8rem;
        line-height: 1;
      }

      .assessment-overview-grid span {
        color: var(--muted);
        font-size: .78rem;
      }

      .assessment-overview-note {
        display: flex !important;
        align-items: center;
        gap: 10px;
        background: linear-gradient(110deg, var(--accent-soft), #fff);
      }

      .assessment-overview-note span:last-child {
        color: var(--primary);
        font-weight: 800;
      }

      .overview-dot {
        width: 9px;
        height: 9px;
        border-radius: 50%;
        background: var(--success);
        box-shadow: 0 0 0 5px rgba(45,125,88,.12);
      }

      .assessments-list {
        padding-top: 58px;
      }

      .assessment-section-heading {
        display: flex;
        align-items: end;
        justify-content: space-between;
        gap: 30px;
        margin-bottom: 28px;
      }

      .assessment-section-heading h2 {
        margin-top: 7px;
        color: var(--primary-deep);
        font-size: clamp(1.9rem, 4vw, 3rem);
      }

      .assessment-section-heading p {
        max-width: 340px;
        margin-bottom: 4px;
        font-size: .9rem;
      }

      .assessments-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
      }

      .assessments-grid .competition-card {
        min-height: 360px;
        padding: 24px;
        border: 1px solid rgba(18,63,59,.11);
        border-radius: 24px;
        background: linear-gradient(150deg, #fff 0%, #fbfaf7 100%);
      }

      .assessments-grid .competition-card:nth-child(3n + 2) {
        background: linear-gradient(150deg, #fff, #f2f7f3);
      }

      .assessments-grid .competition-card:nth-child(3n + 3) {
        background: linear-gradient(150deg, #fff, #fbf4e6);
      }

      .competition-card-head {
        margin-bottom: 18px;
      }

      .competition-card .feature-icon {
        border: 1px solid rgba(201,155,69,.22);
        background: var(--accent-soft);
      }

      .competition-status {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        background: rgba(45,125,88,.08);
      }

      .competition-status i {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: var(--success);
      }

      .competition-category {
        color: var(--accent-strong);
        font-size: .78rem;
        font-weight: 800;
      }

      .assessments-grid .competition-card h3 {
        margin: 7px 0 10px;
        font-size: 1.55rem;
      }

      .assessments-grid .competition-card h3 a {
        color: var(--primary-deep);
      }

      .assessments-grid .competition-card h3 a:hover {
        color: var(--accent-strong);
      }

      .assessments-grid .competition-card p {
        min-height: 54px;
        font-size: .9rem;
      }

      .competition-meta {
        padding: 13px 0;
        border-top: 1px solid var(--line);
        border-bottom: 1px solid var(--line);
      }

      .competition-meta span {
        background: transparent;
        padding: 0;
      }

      .competition-meta b {
        color: var(--accent-strong);
      }

      .competition-start {
        margin-top: auto;
        padding-top: 17px;
      }

      .competition-start span {
        color: var(--primary);
        font-weight: 800;
      }

      .competition-start b {
        display: grid;
        place-items: center;
        width: 34px;
        height: 34px;
        border-radius: 50%;
        background: var(--primary);
        color: #fff;
        transition: transform .2s ease, background .2s ease;
      }

      .competition-start:hover b {
        transform: translateX(-4px);
        background: var(--accent-strong);
      }

      @media (max-width: 900px) {
        .assessments-hero-inner {
          grid-template-columns: 1fr;
        }

        .assessments-hero-art {
          display: none;
        }

        .assessments-grid {
          grid-template-columns: repeat(2, 1fr);
        }

        .assessment-overview-grid {
          grid-template-columns: repeat(3, 1fr);
        }

        .assessment-overview-note {
          grid-column: 1 / -1;
          min-height: 60px !important;
        }
      }

      @media (max-width: 620px) {
        .assessments-hero {
          padding: 58px 0 80px;
        }

        .assessments-hero h1 {
          font-size: 4rem;
        }

        .assessments-hero-actions {
          align-items: stretch;
          flex-direction: column;
        }

        .assessments-hero-actions .btn {
          width: 100%;
        }

        .assessments-grid,
        .assessment-overview-grid {
          grid-template-columns: 1fr;
        }

        .assessment-overview-grid > div {
          min-height: 70px;
          border-left: 0;
          border-bottom: 1px solid var(--line);
        }

        .assessment-overview-grid > div:last-child {
          border-bottom: 0;
        }

        .assessment-section-heading {
          display: block;
        }

        .assessment-section-heading p {
          margin-top: 12px;
        }
      }

      @media (max-width: 640px) {
            /* Assessment, result, and public program page patterns */
      .assessment-page {
        background: linear-gradient(180deg, rgba(255,255,255,.35), transparent);
      }

      .assessment-intro {
        max-width: 760px;
        margin: 0 auto 26px;
        text-align: center;
      }

      .assessment-intro h1 {
        margin: 8px 0;
        color: var(--primary-deep);
        font-size: clamp(2.2rem, 5vw, 4rem);
      }

      .assessment-intro p {
        font-size: 1.05rem;
      }

      .assessment-private {
        display: inline-block;
        margin-top: 14px;
        padding: 8px 14px;
        border-radius: 999px;
        background: var(--accent-soft);
        color: var(--accent-strong);
        font-weight: 800;
      }

      .assessment-form {
        max-width: 780px;
        margin: 0 auto;
        padding: clamp(20px, 4vw, 42px);
        border: 1px solid var(--line);
        border-radius: var(--radius-xl);
        background: rgba(255,255,255,.92);
        box-shadow: var(--shadow);
      }

      .assessment-progress {
        margin-bottom: 28px;
      }

      .assessment-progress > div:first-child {
        display: flex;
        justify-content: space-between;
        color: var(--muted);
        font-size: .85rem;
      }

      .assessment-progress strong {
        color: var(--accent-strong);
      }

      .progress-track {
        height: 8px;
        margin-top: 9px;
        overflow: hidden;
        border-radius: 99px;
        background: var(--bg);
      }

      .progress-track i {
        display: block;
        height: 100%;
        width: 0;
        border-radius: inherit;
        background: linear-gradient(90deg, var(--primary-alt), var(--accent));
        transition: width .35s ease;
      }

      .assessment-step {
        display: none;
        position: relative;
        padding: 24px 20px 20px;
        border: 1px solid var(--line);
        border-radius: var(--radius-lg);
        background: var(--bg-soft);
        animation: assessment-enter .3s ease;
      }

      .assessment-step.is-visible {
        display: block;
      }

      .step-number {
        display: grid;
        place-items: center;
        width: 34px;
        height: 34px;
        margin-bottom: 14px;
        border-radius: 50%;
        background: var(--primary);
        color: #fff;
        font-weight: 800;
      }

      .assessment-step .form-field label {
        display: block;
        margin-bottom: 12px;
        color: var(--primary-deep);
        font-size: 1.15rem;
        font-weight: 800;
      }

      .assessment-step input,
      .assessment-step textarea,
      .assessment-step select {
        width: 100%;
      }

      .field-hint {
        display: block;
        margin-top: 10px;
        color: var(--muted);
        font-size: .8rem;
      }

      .assessment-actions {
        display: flex;
        justify-content: flex-start;
        gap: 10px;
        margin-top: 22px;
      }

      .assessment-actions [hidden] {
        display: none;
      }

      @keyframes assessment-enter {
        from { opacity: 0; transform: translateY(8px); }
        to { opacity: 1; transform: translateY(0); }
      }

      .result-page {
        min-height: 58vh;
        display: grid;
        place-items: center;
      }

      .result-card {
        width: min(680px, 100%);
        padding: clamp(28px, 6vw, 60px);
        border: 1px solid rgba(201,155,69,.35);
        border-radius: var(--radius-xl);
        background: linear-gradient(145deg, #fff, var(--accent-soft));
        box-shadow: var(--shadow);
        text-align: center;
      }

      .result-icon {
        display: grid;
        place-items: center;
        width: 76px;
        height: 76px;
        margin: 0 auto 18px;
        border-radius: 50%;
        background: var(--primary);
        color: #fff;
        font-size: 2.4rem;
        box-shadow: 0 12px 24px rgba(18,63,59,.2);
      }

      .result-card h1 {
        margin: 8px 0 12px;
        color: var(--primary-deep);
      }

      .result-card .btn {
        display: inline-flex;
        margin: 8px 4px 0;
      }

      .result-card .status {
        margin: 20px auto;
        padding: 13px 16px;
        border-radius: var(--radius-md);
        font-weight: 700;
      }

      .result-card .status.active {
        background: rgba(45,125,88,.12);
        color: var(--success);
      }

      .result-card .status.inactive {
        background: rgba(201,155,69,.14);
        color: var(--accent-strong);
      }

      .program-badge {
        display: inline-block;
        margin: 12px 0;
        padding: 5px 10px;
        border-radius: 999px;
        background: rgba(45,125,88,.1);
        color: var(--success);
        font-size: .76rem;
        font-weight: 800;
      }

      .suggestion-panel .kicker {
        display: block;
        margin-bottom: 5px;
      }

      .form-intro {
        margin-bottom: 20px;
      }

      @media (max-width: 640px) {
        .assessment-actions {
          display: grid;
          grid-template-columns: 1fr 1fr;
        }

        .assessment-actions [data-assessment-submit] {
          grid-column: 1 / -1;
        }

        .result-card .btn {
          width: 100%;
          justify-content: center;
          margin-inline: 0;
        }
      }

      .home-service-grid {
        grid-template-columns: 1fr;
      }

      .footer-links {
        display: none;
      }

      /* Assessment detail page */
      .assessment-page {
        min-height: 70vh;
        background: linear-gradient(180deg, #f8f5ee 0%, var(--bg) 42%);
      }

      .assessment-detail-hero {
        position: relative;
        max-width: 920px;
        margin: 0 auto 30px;
        padding: 48px 28px 34px;
        overflow: hidden;
        border-radius: 28px;
        background: linear-gradient(125deg, #082b2b, #0f514a 62%, #17665a);
        box-shadow: 0 24px 50px rgba(8,43,43,.16);
        text-align: center;
      }

      .assessment-detail-hero::before,
      .assessment-detail-hero::after {
        content: "";
        position: absolute;
        border: 1px solid rgba(230,200,121,.22);
        border-radius: 50%;
        pointer-events: none;
      }

      .assessment-detail-hero::before {
        width: 300px;
        height: 300px;
        top: -170px;
        right: -70px;
      }

      .assessment-detail-hero::after {
        width: 220px;
        height: 220px;
        bottom: -150px;
        left: -50px;
      }

      .assessment-detail-badge {
        position: relative;
        z-index: 1;
        display: inline-flex;
        padding: 7px 14px;
        border: 1px solid rgba(230,200,121,.35);
        border-radius: 999px;
        color: #f5d989;
        font-size: .78rem;
        font-weight: 800;
      }

      .assessment-detail-hero .assessment-intro {
        position: relative;
        z-index: 1;
        margin-bottom: 26px;
      }

      .assessment-detail-hero .assessment-intro .kicker {
        color: rgba(255,250,240,.7);
        background: transparent;
        border-color: rgba(255,255,255,.12);
      }

      .assessment-detail-hero .assessment-intro h1 {
        margin: 12px 0;
        color: #fffaf0;
        font-family: 'Amiri', serif;
        font-size: clamp(2.35rem, 5vw, 4.4rem);
      }

      .assessment-detail-hero .assessment-intro p {
        max-width: 650px;
        margin-inline: auto;
        color: rgba(255,250,240,.78);
        line-height: 1.9;
      }

      .assessment-detail-hero .assessment-private {
        background: rgba(230,200,121,.15);
        color: #f5d989;
      }

      .assessment-detail-meta {
        position: relative;
        z-index: 1;
        display: flex;
        justify-content: center;
        gap: 10px;
        flex-wrap: wrap;
      }

      .assessment-detail-meta span {
        padding: 9px 14px;
        border: 1px solid rgba(255,255,255,.13);
        border-radius: 999px;
        color: rgba(255,250,240,.72);
        font-size: .8rem;
      }

      .assessment-detail-meta strong {
        color: #f5d989;
      }

      .assessment-form {
        position: relative;
        max-width: 820px;
        margin: 0 auto;
        padding: clamp(22px, 4vw, 44px);
        border: 1px solid rgba(18,63,59,.1);
        border-radius: 28px;
        background: rgba(255,255,255,.95);
        box-shadow: 0 18px 45px rgba(18,63,59,.1);
      }

      .assessment-progress {
        margin-bottom: 26px;
      }

      .assessment-progress > div:first-child {
        color: var(--muted);
      }

      .assessment-progress > div:first-child b {
        color: var(--primary);
      }

      .progress-track {
        height: 10px;
        margin-top: 12px;
        background: #edf0eb;
      }

      .progress-track i {
        background: linear-gradient(90deg, var(--accent-strong), var(--accent));
      }

      .assessment-step {
        display: none;
        min-height: 245px;
        padding: 30px 26px 24px;
        border: 1px solid rgba(18,63,59,.1);
        border-radius: 22px;
        background: linear-gradient(145deg, #fff, #f5f8f3);
      }

      .step-number {
        width: 42px;
        height: 42px;
        margin-bottom: 22px;
        background: var(--primary);
        box-shadow: 0 8px 18px rgba(18,63,59,.18);
      }

      .assessment-step.is-visible {
        display: block;
      }

      .assessment-step .form-field label {
        color: var(--primary-deep);
        font-family: 'Amiri', serif;
        font-size: 1.45rem;
      }

      .assessment-step input,
      .assessment-step textarea,
      .assessment-step select {
        border-color: rgba(18,63,59,.16);
        border-radius: 13px;
        background: #fff;
      }

      .assessment-step input:focus,
      .assessment-step textarea:focus,
      .assessment-step select:focus {
        border-color: var(--accent-strong);
        box-shadow: 0 0 0 4px rgba(201,155,69,.12);
      }

      .assessment-step input[type="radio"],
      .assessment-step input[type="checkbox"] {
        width: auto;
        accent-color: var(--primary);
      }

      .assessment-actions {
        justify-content: space-between;
        margin-top: 24px;
      }

      .assessment-actions .btn {
        min-width: 140px;
        justify-content: center;
      }

      .assessment-actions [data-assessment-submit] {
        min-width: 220px;
      }

      @media (max-width: 640px) {
        .assessment-detail-hero {
          padding: 34px 18px 26px;
          border-radius: 22px;
        }

        .assessment-detail-hero .assessment-intro h1 {
          font-size: 2.55rem;
        }

        .assessment-detail-meta {
          display: grid;
          grid-template-columns: 1fr;
        }

        .assessment-detail-meta span {
          border-radius: 12px;
        }

        .assessment-form {
          padding: 18px;
          border-radius: 22px;
        }

        .assessment-step {
          min-height: 220px;
          padding: 22px 18px;
        }

        .assessment-actions {
          display: grid;
          grid-template-columns: 1fr 1fr;
        }

        .assessment-actions [data-assessment-submit] {
          grid-column: 1 / -1;
          width: 100%;
        }
      }
    }

    .topbar-links {
      display: none;
    }

    .nav-wrap {
      min-height: 72px;
    }

    .home-hero {
      min-height: 560px;
    }

    .home-hero-copy h1 {
      font-size: clamp(2.8rem, 14vw, 4.5rem);
    }
  }
}

.topbar {
  background: linear-gradient(180deg, #0d1d28 0%, #122a37 100%);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.82rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 40px;
}

.topbar-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.topbar-links a {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: rgba(11, 22, 30, 0.82);
  border-bottom: 1px solid rgba(212, 168, 90, 0.22);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(212, 168, 90, 0.25), rgba(249, 239, 224, 0.18));
  border: 1px solid rgba(212, 168, 90, 0.34);
  color: var(--accent-soft);
  font-size: 1.6rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: #f9f4ea;
  font-family: 'Amiri', serif;
  font-size: clamp(1.1rem, 1.5vw, 1.55rem);
  font-weight: 700;
  line-height: 1.1;
}

.brand-text small {
  color: rgba(249, 239, 224, 0.78);
  font-size: 0.62rem;
  font-family: 'Tajawal', sans-serif;
  letter-spacing: 0.3px;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.main-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  color: rgba(249, 244, 234, 0.86);
  font-size: 0.92rem;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: #fffaf0;
  background: rgba(212, 168, 90, 0.12);
  box-shadow: inset 0 0 0 1px rgba(212, 168, 90, 0.2);
}

.nav-icon {
  font-size: 1.1rem;
}

.menu-toggle,
.nav-sheet-header,
.nav-close {
  display: none;
}

main.page-enter {
  min-height: 60vh;
}

.hero {
  position: relative;
  isolation: isolate;
  background: var(--gradient-hero);
  color: #f9f4ea;
  padding: 86px 0 0;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'%3E%3Cg fill='none' stroke='%23d4a85a' stroke-width='1.1' opacity='0.16'%3E%3Cpath d='M110 18L134 78L198 78L148 120L170 185L110 146L50 185L72 120L22 78L86 78Z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 220px 220px;
  background-position: center;
  opacity: 0.7;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 22px 56px;
  text-align: center;
}

.eyebrow,
.kicker {
  display: inline-block;
  padding: 7px 14px;
  border: 1px solid rgba(245, 232, 198, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--accent-soft);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  color: #f7ebc7;
  margin-bottom: 18px;
}

.hero .verse {
  max-width: 660px;
  margin: 0 auto 30px;
  color: rgba(249, 244, 234, 0.9);
  font-size: 1.08rem;
  line-height: 2;
}

.hero .verse cite {
  display: block;
  margin-top: 12px;
  color: rgba(245, 232, 198, 0.9);
  font-style: normal;
  font-size: 0.84rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-gold {
  background: linear-gradient(135deg, var(--accent) 0%, #dfba68 100%);
  color: var(--primary);
  box-shadow: 0 14px 24px rgba(200, 157, 76, 0.2);
}

.btn-outline {
  border: 1px solid rgba(18, 63, 59, 0.28);
  color: var(--primary-deep);
  background: #fff;
  box-shadow: 0 8px 18px rgba(18, 63, 59, 0.07);
}

.btn-deep {
  background: var(--primary);
  color: #fff;
}

.btn-small {
  min-height: 42px;
  padding: 10px 18px;
  font-size: 0.82rem;
}

/* Keep outline buttons readable on both light sections and dark hero areas. */
.home-hero .btn-outline,
.assessments-hero .btn-outline,
.dashboard-hero .btn-outline {
  border-color: rgba(245, 232, 198, 0.58);
  color: #fffaf0;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.btn-outline:hover {
  border-color: var(--accent-strong);
  color: var(--primary-deep);
  background: var(--accent-soft);
}

.home-hero .btn-outline:hover,
.assessments-hero .btn-outline:hover,
.dashboard-hero .btn-outline:hover {
  color: var(--primary-deep);
  background: var(--accent);
}

.hero-slider-wrap {
  position: relative;
  margin-top: 20px;
  padding: 0 22px;
}

.hero-slider {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.hero-slide {
  position: relative;
  display: block;
  min-height: 360px;
  border-radius: 32px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  box-shadow: 0 28px 42px rgba(12, 25, 32, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11, 24, 30, 0.78) 0%, rgba(11, 24, 30, 0.28) 42%, rgba(11, 24, 30, 0.1) 100%);
}

.hero-slide-overlay {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 1;
  padding: 26px 28px 30px;
}

.hero-slide-overlay .eyebrow {
  margin-bottom: 12px;
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.18);
  color: #fff8ec;
}

.hero-slide-overlay h2 {
  font-size: clamp(1.7rem, 3vw, 2.7rem);
  color: #fff;
  max-width: 560px;
  line-height: 1.2;
  text-shadow: 0 12px 24px rgba(0, 0, 0, 0.24);
}

.media-gallery-section {
  padding-top: 18px;
}

.media-gallery-slider {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 8px 6px 18px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: rgba(17, 42, 54, 0.45) transparent;
}

.media-gallery-slider::-webkit-scrollbar {
  height: 10px;
}

.media-gallery-slider::-webkit-scrollbar-thumb {
  background: rgba(17, 42, 54, 0.38);
  border-radius: 999px;
}

.media-gallery-item {
  position: relative;
  flex: 0 0 min(86vw, 420px);
  min-height: 440px;
  background: linear-gradient(180deg, rgba(255,255,255,0.97), rgba(246,241,235,0.96));
  border: 1px solid rgba(17, 42, 54, 0.08);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 18px 42px rgba(15, 40, 52, 0.12);
  scroll-snap-align: start;
}

.media-gallery-item img,
.media-gallery-item video,
.media-gallery-item iframe {
  width: 100%;
  height: 310px;
  object-fit: cover;
  background: #0b1f2b;
  border: 0;
}

.media-gallery-item iframe {
  min-height: 310px;
}

.media-gallery-caption {
  padding: 18px 18px 20px;
}

.media-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(212, 168, 90, 0.16);
  color: var(--primary);
  font-size: 0.74rem;
  font-weight: 800;
}

.media-gallery-caption h3 {
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.media-gallery-caption p {
  color: var(--muted);
  font-size: 0.96rem;
}

.media-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 310px;
  background: linear-gradient(135deg, rgba(17, 42, 54, 0.08), rgba(212, 168, 90, 0.12));
  color: var(--muted);
  font-weight: 700;
}

.multi-select-checkbox {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(17, 42, 54, 0.08);
  border-radius: 14px;
  background: rgba(247, 243, 238, 0.9);
}

.multi-select-checkbox label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 600;
}

.crenel {
  width: 100%;
  line-height: 0;
}

.crenel svg {
  width: 100%;
  height: 30px;
  display: block;
}

.hadith-feature {
  padding: 34px 0 10px;
}

.hadith-card {
  max-width: 1100px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(15, 45, 61, 0.08);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  padding: 28px 24px;
  text-align: center;
}

.hadith-card blockquote {
  font-family: 'Amiri', serif;
  font-size: clamp(1.3rem, 2.5vw, 2.1rem);
  line-height: 1.8;
  color: var(--primary);
  border-right: 4px solid var(--accent);
  padding-right: 20px;
}

.hadith-card cite {
  display: block;
  margin-top: 18px;
  color: var(--muted);
  font-style: normal;
  font-size: 0.9rem;
}

/* Final assessment layout overrides */
.assessments-hero {
  position: relative;
  overflow: hidden;
  padding: 86px 0 104px;
  background: radial-gradient(circle at 78% 44%, rgba(201,155,69,.22), transparent 18rem), linear-gradient(122deg, #082b2b, #0e4a45 55%, #17655a);
}

.assessments-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 40px;
}

.assessments-hero-copy {
  max-width: 640px;
}

.assessments-hero h1 {
  color: #fffaf0;
  font-family: 'Amiri', serif;
  font-size: clamp(3.8rem, 8vw, 7.5rem);
  line-height: .95;
}

.assessments-hero h1 em {
  color: #e6c879;
  font-style: normal;
}

.assessments-hero-copy > p {
  max-width: 560px;
  color: rgba(255,250,240,.78);
  line-height: 2;
}

.assessments-hero-art {
  position: relative;
  min-height: 310px;
  display: grid;
  place-items: center;
}

.assessment-medallion {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(230,200,121,.8);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230,200,121,.24), rgba(9,43,42,.2) 68%);
  box-shadow: 0 0 0 14px rgba(230,200,121,.06), 0 0 0 30px rgba(230,200,121,.04);
  color: #f5d989;
  text-align: center;
}

.assessment-medallion span {
  display: block;
  font-size: 2.3rem;
}

.assessment-medallion strong {
  font-family: 'Amiri', serif;
  font-size: 1.65rem;
  line-height: 1.1;
}

.art-orbit {
  position: absolute;
  width: 300px;
  height: 180px;
  border: 1px solid rgba(230,200,121,.34);
  border-radius: 50%;
  transform: rotate(-30deg);
}

.orbit-two {
  transform: rotate(55deg) scale(.9);
  opacity: .65;
}

.assessment-overview {
  position: relative;
  z-index: 3;
  padding: 0;
}

.assessment-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr) 1.4fr;
  align-items: center;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.96);
  box-shadow: var(--shadow);
}

.assessment-overview-grid > div {
  display: grid;
  gap: 2px;
  min-height: 92px;
  align-content: center;
  padding: 16px 24px;
  border-left: 1px solid var(--line);
}

.assessment-overview-grid > div:nth-child(3) {
  border-left: 0;
}

.assessment-overview-grid strong {
  color: var(--primary);
  font-size: 1.8rem;
  line-height: 1;
}

.assessment-overview-grid span {
  color: var(--muted);
  font-size: .78rem;
}

.assessment-overview-note {
  display: flex !important;
  align-items: center;
  gap: 10px;
  background: linear-gradient(110deg, var(--accent-soft), #fff);
}

.overview-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--success);
}

.assessments-list {
  padding-top: 58px;
}

.assessment-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 28px;
}

.assessment-section-heading h2 {
  margin-top: 7px;
  color: var(--primary-deep);
  font-size: clamp(1.9rem, 4vw, 3rem);
}

.assessment-section-heading p {
  max-width: 340px;
  margin-bottom: 4px;
  font-size: .9rem;
}

.assessments-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.assessments-grid .competition-card {
  min-height: 360px;
  padding: 24px;
  border: 1px solid rgba(18,63,59,.11);
  border-radius: 24px;
  background: linear-gradient(150deg, #fff, #fbfaf7);
}

.assessments-grid .competition-card h3 {
  margin: 7px 0 10px;
  font-size: 1.55rem;
}

.assessments-grid .competition-card h3 a {
  color: var(--primary-deep);
}

.assessments-grid .competition-card p {
  min-height: 54px;
  font-size: .9rem;
}

.competition-meta {
  padding: 13px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.competition-meta span {
  padding: 0;
  background: transparent;
}

@media (max-width: 900px) {
  .assessments-hero-inner {
    grid-template-columns: 1fr;
  }

  .assessments-hero-art {
    display: none;
  }

  .assessments-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .assessment-overview-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .assessment-overview-note {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .assessments-hero {
    padding: 58px 0 80px;
  }

  .assessments-hero h1 {
    font-size: 4rem;
  }

  .assessments-grid,
  .assessment-overview-grid {
    grid-template-columns: 1fr;
  }

  .assessment-overview-grid > div {
    min-height: 70px;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .assessment-section-heading {
    display: block;
  }
}

/* Assessment detail desktop overrides */
.assessment-page {
  min-height: 70vh;
  background: linear-gradient(180deg, #f8f5ee 0%, var(--bg) 42%);
}

.assessment-detail-hero {
  position: relative;
  max-width: 920px;
  margin: 0 auto 30px;
  padding: 48px 28px 34px;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(125deg, #082b2b, #0f514a 62%, #17665a);
  box-shadow: 0 24px 50px rgba(8,43,43,.16);
  text-align: center;
}

.assessment-detail-hero .assessment-intro {
  position: relative;
  z-index: 1;
  margin-bottom: 26px;
}

.assessment-detail-hero .assessment-intro h1 {
  margin: 12px 0;
  color: #fffaf0;
  font-family: 'Amiri', serif;
  font-size: clamp(2.35rem, 5vw, 4.4rem);
}

.assessment-detail-hero .assessment-intro p {
  max-width: 650px;
  margin-inline: auto;
  color: rgba(255,250,240,.78);
  line-height: 1.9;
}

.assessment-detail-badge {
  display: inline-flex;
  padding: 7px 14px;
  border: 1px solid rgba(230,200,121,.35);
  border-radius: 999px;
  color: #f5d989;
  font-size: .78rem;
  font-weight: 800;
}

.assessment-detail-meta {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.assessment-detail-meta span {
  padding: 9px 14px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 999px;
  color: rgba(255,250,240,.72);
  font-size: .8rem;
}

.assessment-detail-meta strong {
  color: #f5d989;
}

.assessment-form {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(22px, 4vw, 44px);
  border: 1px solid rgba(18,63,59,.1);
  border-radius: 28px;
  background: rgba(255,255,255,.95);
  box-shadow: 0 18px 45px rgba(18,63,59,.1);
}

.assessment-progress > div:first-child b {
  color: var(--primary);
}

.assessment-group {
  margin-bottom: 28px;
}

.assessment-group-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.assessment-group-heading h2 {
  margin: 0;
  color: var(--primary-deep);
  font-size: 1.35rem;
}

.assessment-group-heading p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: .84rem;
}

.assessment-group-icon {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: .8rem;
  font-weight: 900;
}

.assessment-identity-fields {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 22px;
  border: 1px solid rgba(18,63,59,.1);
  border-radius: 22px;
  background: linear-gradient(145deg, #fff, #f8f9f4);
}

.assessment-identity-fields .form-field label {
  display: block;
  margin-bottom: 8px;
  color: var(--primary-deep);
  font-weight: 800;
}

.assessment-identity-fields .form-field:last-child {
  grid-column: 1 / -1;
}

.assessment-questions-group {
  margin-bottom: 0;
}

.assessment-step {
  display: none;
  min-height: 245px;
  padding: 30px 26px 24px;
  border: 1px solid rgba(18,63,59,.1);
  border-radius: 22px;
  background: linear-gradient(145deg, #fff, #f5f8f3);
}

.assessment-step.is-visible {
  display: block;
}

.assessment-step .form-field label {
  color: var(--primary-deep);
  font-family: 'Amiri', serif;
  font-size: 1.45rem;
}

.assessment-step input,
.assessment-step textarea,
.assessment-step select {
  border-color: rgba(18,63,59,.16);
  border-radius: 13px;
  background: #fff;
}

.assessment-actions {
  justify-content: space-between;
}

.assessment-actions .btn {
  min-width: 140px;
  justify-content: center;
}

@media (max-width: 640px) {
  .assessment-detail-hero {
    padding: 34px 18px 26px;
    border-radius: 22px;
  }

  .assessment-detail-hero .assessment-intro h1 {
    font-size: 2.55rem;
  }

  .assessment-detail-meta {
    display: grid;
    grid-template-columns: 1fr;
  }

  .assessment-detail-meta span {
    border-radius: 12px;
  }

  .assessment-form {
    padding: 18px;
    border-radius: 22px;
  }

  .assessment-step {
    min-height: 220px;
    padding: 22px 18px;
  }

  .assessment-group-heading {
    align-items: flex-start;
  }

  .assessment-identity-fields {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .assessment-identity-fields .form-field:last-child {
    grid-column: auto;
  }
}

section {
  padding: 76px 0;
}

.section-head {
  max-width: 720px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-head .kicker {
  margin-bottom: 12px;
  background: rgba(15, 45, 61, 0.04);
  border-color: rgba(15, 45, 61, 0.1);
  color: var(--primary-alt);
}

.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  color: var(--primary);
  margin-bottom: 12px;
}

.section-head p {
  color: var(--muted);
  font-size: 1.06rem;
}

.prayer-widget {
  padding-top: 36px;
  padding-bottom: 18px;
}

.prayer-widget-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 18px 18px;
  background: rgba(242, 236, 227, 0.9);
  border: 1px solid rgba(17, 42, 54, 0.08);
  border-radius: 26px;
  box-shadow: 0 20px 36px rgba(15, 40, 52, 0.08);
}

.prayer-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.prayer-header-copy {
  flex: 1;
  text-align: center;
}

.prayer-header-copy h2 {
  color: var(--primary);
  font-size: clamp(2.1rem, 4vw, 3.8rem);
  line-height: 1.2;
  margin: 0;
}

.prayer-mini-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.44);
  border: 1px solid rgba(17, 42, 54, 0.12);
  color: var(--primary);
  font-size: 0.84rem;
  font-weight: 700;
}

.prayer-region {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 90px;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 700;
}

.prayer-date-row {
  display: grid;
  grid-template-columns: 52px 1fr 1fr 1fr 52px;
  gap: 12px;
  margin-bottom: 18px;
}

.date-arrow,
.date-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 74px;
  border: 1px solid rgba(17, 42, 54, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.22);
  color: var(--primary);
}

.date-arrow {
  font-size: 2rem;
  color: rgba(17, 42, 54, 0.7);
}

.date-pill {
  font-size: 1.05rem;
  font-weight: 700;
}

.date-pill.active {
  background: rgba(255, 255, 255, 0.42);
  border-color: rgba(17, 42, 54, 0.18);
}

.prayer-countdown {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 90px;
  margin-bottom: 18px;
  padding: 18px 22px;
  border-radius: 18px;
  background: linear-gradient(135deg, #18abd7 0%, #0aa4d8 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18);
}

.countdown-time {
  color: #ffffff;
  font-family: 'Amiri', serif;
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: 1px;
}

.countdown-name {
  color: rgba(255,255,255,0.96);
  font-size: 1.2rem;
  font-weight: 800;
}

.countdown-name strong {
  color: #ffffff;
}

.countdown-next-time {
  color: rgba(255,255,255,0.86);
  font-size: 1rem;
  font-weight: 700;
}

.prayer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.prayer-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 118px;
  padding: 18px 14px;
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(17, 42, 54, 0.12);
  border-radius: 18px;
  text-align: center;
  transition: all 0.2s ease;
}

.prayer-card.is-active {
  background: rgba(125, 213, 247, 0.18);
  border-color: rgba(33, 153, 204, 0.7);
  box-shadow: inset 0 0 0 1px rgba(33, 153, 204, 0.35);
}

.prayer-name {
  display: block;
  margin-bottom: 10px;
  color: var(--primary);
  font-size: 1.08rem;
  font-weight: 700;
}

.prayer-time {
  display: block;
  color: var(--primary);
  font-family: 'Amiri', serif;
  font-size: clamp(1.7rem, 2.4vw, 2.5rem);
  line-height: 1.2;
}

.prayer-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-top: 18px;
  padding: 18px 12px 6px;
  color: var(--primary);
  font-weight: 700;
}

.prayer-footer span {
  color: var(--muted);
}

.prayer-footer strong {
  font-size: 1.35rem;
  font-family: 'Amiri', serif;
}

.destinations-section {
  padding: 90px 0 20px;
}

.destinations-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.destination-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(17, 42, 54, 0.08);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.destination-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(212, 168, 90, 0.38);
}

.destination-media {
  overflow: hidden;
}

.destination-media img {
  width: 100%;
  height: 245px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.destination-card:hover .destination-media img {
  transform: scale(1.04);
}

.destination-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px 22px 26px;
}

.destination-tag {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 12px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(212, 168, 90, 0.16);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 800;
}

.destination-card h3 {
  color: var(--primary);
  font-size: clamp(1.5rem, 2vw, 2rem);
  margin-bottom: 10px;
}

.destination-card p {
  flex: 1;
  color: var(--muted);
  margin-bottom: 18px;
}

.destination-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  color: var(--primary);
  font-weight: 800;
}

.destination-link::after {
  content: "←";
  font-size: 1.1rem;
}

.stats-strip {
  padding-top: 12px;
  padding-bottom: 10px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  max-width: 1100px;
  margin: 0 auto;
}

.stat-card {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px 16px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.stat-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--primary);
  font-family: 'Amiri', serif;
  font-size: clamp(1.6rem, 2vw, 2.2rem);
}

.stat-card span {
  color: var(--muted);
  font-weight: 700;
}

.about-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 30px;
  align-items: center;
}

.about-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 30px 28px;
  box-shadow: var(--shadow-soft);
}

.about-card h3 {
  color: var(--primary);
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.about-card p {
  color: var(--muted);
  font-size: 1rem;
}

.rosette-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 230px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(15, 45, 61, 0.04), rgba(200, 157, 76, 0.08));
  border: 1px solid rgba(200, 157, 76, 0.18);
}

.rosette-frame svg {
  width: 180px;
  height: 180px;
}

.services-section,
.news-section,
.location-section {
  background: rgba(255, 255, 255, 0.26);
}

.services-grid,
.donation-grid,
.news-grid,
.content-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 22px;
}

.services-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card,
.news-card,
.feature-card,
.donation-card,
.contact-panel,
.management-form-panel,
.management-list-panel,
.dashboard-card,
.dashboard-stat,
.dashboard-panel,
.empty-state {
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(245,240,235,0.94));
  border: 1px solid rgba(17, 42, 54, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.service-card,
.news-card,
.feature-card,
.donation-card {
  padding: 24px 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover,
.news-card:hover,
.feature-card:hover,
.donation-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 36px rgba(17, 42, 54, 0.1);
}

.service-icon,
.feature-icon {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(200, 157, 76, 0.18), rgba(15, 45, 61, 0.06));
  color: var(--primary);
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.service-card h3,
.news-card h3,
.feature-card h3,
.donation-card h3 {
  color: var(--primary);
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.service-card p,
.news-card p,
.feature-card p,
.donation-card p {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.8;
}

.prayer-section {
  background: linear-gradient(180deg, rgba(15, 45, 61, 0.06), rgba(15, 45, 61, 0.02));
}

.prayer-grid {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.prayer-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 45, 61, 0.08);
  border-radius: var(--radius-md);
  padding: 22px 14px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.prayer-card .name {
  color: var(--primary);
  font-size: 0.98rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.prayer-card .time {
  font-family: 'Amiri', serif;
  color: var(--muted);
  font-size: 1.5rem;
}

.prayer-note {
  max-width: 740px;
  margin: 22px auto 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.donation-section {
  background: linear-gradient(180deg, rgba(200, 157, 76, 0.08), rgba(255,255,255,0.16));
}

.donation-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.donation-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.donation-card .btn {
  margin-top: auto;
}

.donation-notes {
  max-width: 1100px;
  margin: 22px auto 0;
  padding: 18px 20px;
  background: rgba(15, 45, 61, 0.03);
  border: 1px solid rgba(15, 45, 61, 0.08);
  border-radius: var(--radius-md);
}

.donation-notes span {
  display: block;
  margin-bottom: 10px;
  color: var(--primary);
  font-weight: 800;
}

.donation-notes ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: var(--muted);
}

.donation-notes li::before {
  content: '•';
  color: var(--accent-deep);
  margin-left: 8px;
}

.news-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.news-meta,
.meta-tag,
.dashboard-meta .tag {
  display: inline-block;
  width: max-content;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(15, 45, 61, 0.06);
  color: var(--primary-alt);
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.location-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 24px;
  align-items: start;
}

.map-wrap {
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(15, 45, 61, 0.08);
  box-shadow: var(--shadow-soft);
}

.map-wrap iframe {
  width: 100%;
  min-height: 420px;
  border: 0;
}

.contact-panel {
  padding: 26px 22px;
}

.contact-panel h3 {
  color: var(--primary);
  font-size: 1.45rem;
  margin-bottom: 16px;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-list li {
  color: var(--muted);
  line-height: 1.7;
}

.contact-list strong {
  color: var(--primary);
}

.contact-list a {
  color: var(--primary-alt);
  font-weight: 700;
}

.contact-actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.info-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 6px;
}

.info-row strong {
  color: var(--primary);
}

.content-section {
  padding-top: 38px;
  padding-bottom: 80px;
}

.content-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.empty-state {
  max-width: 420px;
  margin: 0 auto;
  padding: 22px 18px;
  text-align: center;
  color: var(--muted);
  grid-column: 1 / -1;
}

.page-banner {
  position: relative;
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-alt) 100%);
  color: #fff;
  text-align: center;
  padding: 72px 0 0;
}

.page-banner-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 22px 44px;
}

.page-banner h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: #f8ebc5;
  margin-bottom: 10px;
}

.page-banner p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.04rem;
}

.dashboard-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 22px 70px;
}

.dashboard-header {
  background: linear-gradient(135deg, #102a38 0%, #183f4e 46%, #1c465d 100%);
  border: 1px solid rgba(212, 168, 90, 0.16);
  border-radius: 28px;
  padding: 30px 28px 26px;
  box-shadow: var(--shadow);
  color: #f5efe7;
  margin-bottom: 26px;
}

.dashboard-header-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.overview-label {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(245, 232, 198, 0.1);
  color: var(--accent-soft);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  margin-bottom: 10px;
}

.dashboard-header h1 {
  color: #f7ebc7;
  font-size: clamp(2rem, 3vw, 3rem);
}

.dashboard-header p {
  color: rgba(255,255,255,0.8);
}

.dashboard-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-outline-light {
  border: 1px solid rgba(255,255,255,0.45);
  color: #fff;
  background: rgba(255,255,255,0.04);
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 26px;
}

.dashboard-stat {
  padding: 22px 18px;
}

.stat-kicker {
  display: block;
  margin-bottom: 10px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--primary-alt);
}

.dashboard-stat strong {
  display: block;
  color: var(--primary);
  font-family: 'Amiri', serif;
  font-size: 1.9rem;
  margin-bottom: 8px;
}

.dashboard-stat small {
  color: var(--muted);
}

.dashboard-panel {
  padding: 24px 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(247,241,235,0.95));
  border: 1px solid rgba(17, 42, 54, 0.06);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.panel-head h2 {
  font-size: 1.7rem;
  color: var(--primary);
}

.panel-head span {
  display: inline-block;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(15, 45, 61, 0.06);
  color: var(--primary-alt);
  font-size: 0.7rem;
  font-weight: 700;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.dashboard-card {
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.dashboard-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 40px rgba(17, 42, 54, 0.12);
  border-color: rgba(212, 168, 90, 0.2);
}

.dashboard-card.accent-card {
  background: linear-gradient(135deg, rgba(249, 239, 224, 0.95) 0%, rgba(255,255,255,0.98) 100%);
  border-color: rgba(212, 168, 90, 0.15);
}

.dashboard-card .icon-wrap {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(212, 168, 90, 0.16), rgba(15, 45, 61, 0.06));
  color: var(--primary);
  font-size: 1.5rem;
}

.dashboard-card h3 {
  color: var(--primary);
  font-size: 1.2rem;
}

.dashboard-card p {
  color: var(--muted);
  line-height: 1.8;
}

.dashboard-card .btn {
  margin-top: auto;
  align-self: flex-start;
}

.dashboard-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dashboard-meta .tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(17, 42, 54, 0.05);
  border: 1px solid rgba(17, 42, 54, 0.08);
  color: var(--primary-alt);
  font-size: 0.7rem;
  font-weight: 700;
}

.management-shell {
  padding-top: 28px;
}

.management-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.35fr);
  gap: 22px;
  max-width: 1100px;
  margin: 0 auto;
}

.management-form-panel,
.management-list-panel {
  min-width: 0;
  padding: 22px 20px;
  background: linear-gradient(180deg, #fffefb 0%, #f7f0ee 100%);
  border: 1px solid rgba(15, 45, 61, 0.08);
  border-radius: 24px;
  box-shadow: 0 18px 34px rgba(65, 46, 45, 0.08);
}

.management-form-panel h2,
.management-list-panel h2 {
  color: var(--primary);
  font-size: 1.7rem;
  margin-bottom: 18px;
}

.styled-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-row label {
  color: var(--primary);
  font-weight: 700;
}

.form-control {
  width: 100%;
  border: 1px solid rgba(15, 45, 61, 0.12);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  padding: 12px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
  border-color: rgba(200, 157, 76, 0.9);
  box-shadow: 0 0 0 4px rgba(200, 157, 76, 0.12);
  outline: none;
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.hadith-management-shell textarea.form-control {
  min-height: 240px;
}

.form-check-input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.field-errors {
  color: #b13a3a;
  font-size: 0.8rem;
}

.form-actions-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.collapsible-panel {
  overflow: hidden;
}

.collapsible-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 0 16px;
  color: var(--primary);
  font-size: 1.2rem;
  font-weight: 800;
  border-bottom: 1px solid rgba(15, 45, 61, 0.08);
  margin-bottom: 18px;
  text-align: right;
}

.toggle-icon,
.accordion-chevron {
  transition: transform 0.2s ease;
  display: inline-block;
}

.collapsible-toggle[aria-expanded="true"] .toggle-icon,
.accordion-header[aria-expanded="true"] .accordion-chevron {
  transform: rotate(180deg);
}

.collapsible-content {
  display: block;
}

.collapsible-content:not(.is-open) {
  display: none;
}

.accordion-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.accordion-item {
  border: 1px solid rgba(15, 45, 61, 0.08);
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(245,230,232,0.7));
  box-shadow: 0 14px 26px rgba(96, 63, 66, 0.08);
}

.accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 16px;
  background: rgba(255,255,255,0.12);
  text-align: right;
  cursor: pointer;
}

.accordion-title-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.accordion-title {
  flex: 1 1 0;
  min-width: 0;
  color: var(--primary);
  font-weight: 800;
  font-size: 1.2rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: 'Amiri', serif;
}

.accordion-panel {
  display: none;
  padding: 0 18px 18px;
}

.accordion-item.open .accordion-panel {
  display: block;
}

.accordion-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 0 12px;
}

.accordion-info-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.92rem;
}

.accordion-info-row strong {
  color: var(--primary);
}

.actions-cell {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 8px;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 16px;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.action-btn:hover {
  transform: translateY(-2px);
}

.action-btn.edit {
  background: linear-gradient(135deg, rgba(15,45,61,0.08), rgba(200,157,76,0.12));
  color: var(--primary);
}

.action-btn.delete {
  background: rgba(177,58,58,0.08);
  color: #8c2d2d;
}

.empty-state-box {
  padding: 22px 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(245,230,232,0.75));
  border: 1px dashed rgba(15, 45, 61, 0.18);
  color: var(--muted);
  text-align: center;
  box-shadow: 0 12px 22px rgba(65, 46, 45, 0.05);
}

.suggestion-shell {
  max-width: 760px;
  margin: 0 auto;
}

.suggestion-panel {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,240,236,0.94));
  border: 1px solid rgba(15, 45, 61, 0.08);
  border-radius: 28px;
  box-shadow: 0 20px 40px rgba(65, 46, 45, 0.08);
  padding: 28px 24px;
}

.suggestion-panel h2 {
  color: var(--primary);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 12px;
}

.suggestion-form {
  margin-top: 10px;
}

.suggestion-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(15, 45, 61, 0.08);
  border-radius: 18px;
}

.suggestion-table {
  min-width: 860px;
}

.suggestion-table th,
.suggestion-table td {
  white-space: normal;
  vertical-align: top;
}

.suggestion-table td:nth-child(3) {
  min-width: 260px;
}

.suggestion-table a {
  color: var(--primary-alt);
  font-weight: 700;
}

.suggestion-panel .form-control {
  background: rgba(255,255,255,0.95);
}

.footer-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 10px 0 18px;
  color: rgba(255,255,255,0.8);
}

.footer-meta a {
  color: var(--accent-soft);
  font-weight: 700;
}

footer {
  background: linear-gradient(180deg, #102936 0%, #0a1f2b 100%);
  color: rgba(249, 244, 234, 0.8);
  text-align: center;
  padding: 38px 24px 28px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

footer .brand-text {
  display: inline-block;
  margin-bottom: 0;
  color: var(--accent-soft);
  font-size: 1.08rem;
}

.footer-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  min-width: min(100%, 440px);
}

.footer-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 18px 14px;
  border: 1px solid rgba(212, 168, 90, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.footer-stat .stat-label {
  color: rgba(249, 244, 234, 0.72);
  font-size: 0.72rem;
  font-weight: 700;
}

.footer-stat strong {
  color: #f7e8be;
  font-family: 'Amiri', serif;
  font-size: clamp(1.6rem, 2vw, 2.3rem);
  line-height: 1;
}

.footer-bottom {
  margin-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 16px;
}

footer p {
  color: rgba(249, 244, 234, 0.7);
  font-size: 0.84rem;
}

@media (max-width: 720px) {
  .footer-inner {
    flex-direction: column;
  }

  .footer-stats {
    width: 100%;
    min-width: 0;
  }
}

.page-enter {
  animation: fadeIn 0.44s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .services-grid,
  .donation-grid,
  .news-grid,
  .dashboard-grid,
  .content-grid,
  .dashboard-stats,
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .location-grid,
  .management-layout,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-header-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 860px) {
  .topbar {
    display: none;
  }

  .nav-wrap {
    min-height: 72px;
    padding: 10px 0;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(245, 232, 198, 0.2);
  }

  .menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--accent-soft);
  }

  .main-nav {
    position: fixed;
    left: 12px;
    right: 12px;
    top: 78px;
    bottom: auto;
    z-index: 130;
    max-height: min(68vh, 440px);
    overflow-y: auto;
    transform: translateY(-18px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s ease;
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .main-nav ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    padding: 14px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(15, 45, 61, 0.08);
    box-shadow: 0 22px 40px rgba(15, 45, 61, 0.16);
  }

  .main-nav a {
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    min-height: 64px;
    border-radius: 16px;
    color: var(--primary);
    background: rgba(15, 45, 61, 0.02);
    border: 1px solid rgba(15, 45, 61, 0.04);
    padding: 10px 6px;
    font-size: 0.76rem;
    text-align: center;
  }

  .main-nav a.active,
  .main-nav a:hover {
    background: linear-gradient(135deg, rgba(200, 157, 76, 0.14), rgba(15, 45, 61, 0.04));
    color: var(--primary);
  }

  .nav-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px 10px;
    color: var(--primary);
    font-weight: 800;
  }

  .nav-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: rgba(15, 45, 61, 0.06);
  }
}

@media (max-width: 560px) {
  .container,
  .dashboard-shell {
    padding-left: 16px;
    padding-right: 16px;
  }

  section {
    padding: 62px 0;
  }

  .hero {
    padding-top: 64px;
  }

  .hero-inner,
  .page-banner-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-actions,
  .contact-actions,
  .form-actions-row,
  .dashboard-actions {
    flex-direction: column;
  }

  .btn,
  .contact-actions .btn,
  .dashboard-actions .btn,
  .form-actions-row .btn {
    width: 100%;
  }

  .stats-grid,
  .destinations-grid,
  .services-grid,
  .donation-grid,
  .news-grid,
  .content-grid,
  .dashboard-stats,
  .dashboard-grid,
  .prayer-grid,
  .location-grid {
    grid-template-columns: 1fr;
  }

  .nav-wrap {
    min-height: 64px;
  }

  .brand-text {
    line-height: 1.1;
    font-size: 0.98rem;
  }

  .brand-text small {
    font-size: 0.56rem;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    font-size: 1.3rem;
  }

  .dashboard-header {
    padding: 18px 16px 16px;
    border-radius: 18px;
  }

  .dashboard-panel,
  .management-form-panel,
  .management-list-panel,
  .feature-card,
  .dashboard-card,
  .service-card,
  .news-card,
  .donation-card,
  .about-card,
  .contact-panel {
    padding: 18px 16px;
  }

  .dashboard-header-inner,
  .panel-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .prayer-header-row {
    flex-direction: column;
    align-items: stretch;
  }

  .prayer-date-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .prayer-grid {
    grid-template-columns: 1fr;
  }
}

/* Home page refinement */
.home-hero {
  position: relative;
  isolation: isolate;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  color: #fff;
  background-image:
    linear-gradient(100deg, rgba(7, 25, 35, 0.97) 0%, rgba(10, 35, 47, 0.91) 45%, rgba(10, 35, 47, 0.54) 100%),
    var(--hero-image, url('https://images.unsplash.com/photo-1564769625392-651bfb6e1d91?auto=format&fit=crop&w=1800&q=85'));
  background-position: center;
  background-size: cover;
}

.home-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto 0 0;
  height: 150px;
  background: linear-gradient(transparent, rgba(3, 18, 26, 0.38));
}

.home-hero-pattern {
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.38;
  background-image: radial-gradient(circle at 8% 18%, rgba(218, 178, 91, 0.42) 0 2px, transparent 2.5px);
  background-size: 28px 28px;
  mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,.65) 48%, transparent 90%);
}

.home-hero-content {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 350px);
  align-items: end;
  gap: 64px;
  padding-top: 72px;
  padding-bottom: 126px;
}

.home-hero-copy {
  max-width: 720px;
}

.home-hero-copy h1 {
  max-width: 650px;
  margin-bottom: 18px;
  color: #fff7df;
  font-size: clamp(2.8rem, 5.4vw, 5rem);
  line-height: 1.15;
  text-wrap: balance;
}

.home-hero-copy p {
  max-width: 610px;
  color: rgba(255, 250, 239, 0.9);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 2;
}

.home-hero .eyebrow {
  background: rgba(212, 168, 90, 0.14);
  border-color: rgba(232, 203, 132, 0.48);
}

.home-hero .hero-actions {
  justify-content: flex-start;
  margin-top: 32px;
}

.hero-feature-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 195px;
  padding: 28px;
  border: 1px solid rgba(250, 234, 192, 0.38);
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(145deg, rgba(255,255,255,.16), rgba(255,255,255,.05));
  box-shadow: 0 24px 55px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.17);
  backdrop-filter: blur(12px);
  transition: transform .25s ease, background .25s ease;
}

.hero-feature-card:hover {
  transform: translateY(-5px);
  background: linear-gradient(145deg, rgba(255,255,255,.22), rgba(255,255,255,.08));
}

.hero-feature-card strong {
  color: #fff6d9;
  font-family: 'Amiri', serif;
  font-size: 1.8rem;
  line-height: 1.3;
}

.hero-feature-card span:last-child {
  color: rgba(255,255,255,.82);
  font-size: .94rem;
  line-height: 1.8;
}

.hero-feature-label {
  color: #e6c475;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .3px;
}

.hero-quick-links {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: flex-start;
  gap: 0;
}

.hero-quick-links a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 185px;
  padding: 17px 22px;
  color: rgba(255,255,255,.92);
  border-inline-start: 1px solid rgba(255,255,255,.16);
  background: rgba(2, 20, 29, .4);
  font-size: .9rem;
  font-weight: 700;
  backdrop-filter: blur(10px);
  transition: background .2s ease;
}

.hero-quick-links a:hover { background: rgba(212, 168, 90, .22); }
.hero-quick-links a:first-child { border-inline-start: 0; }
.hero-quick-links span { color: #e8c670; font-size: 1.05rem; }

.media-gallery-section {
  max-width: 1244px;
  margin: 0 auto;
  padding-right: 22px;
  padding-left: 22px;
}

.media-gallery-section .section-head { margin-bottom: 22px; }

.media-gallery-item {
  flex-basis: min(82vw, 380px);
  min-height: 400px;
  border-radius: 22px;
}

.media-gallery-item img,
.media-gallery-item video,
.media-gallery-item iframe { height: 270px; }

.media-gallery-caption { padding: 16px 18px 19px; }

.hadith-card {
  position: relative;
  overflow: hidden;
  padding: 38px 42px;
  border-color: rgba(212, 168, 90, .25);
  background: linear-gradient(135deg, rgba(255,255,255,.95), rgba(250,243,228,.9));
}

.hadith-card > .kicker {
  border-color: rgba(148, 97, 27, .28);
  color: #765018;
  background: rgba(212, 168, 90, .14);
}

.hadith-carousel {
  display: grid;
  min-height: 150px;
  align-items: center;
  min-width: 0;
  overflow: hidden;
}

.hadith-slide {
  grid-area: 1 / 1;
}

.hadith-slide[hidden] {
  display: none;
}

.hadith-slide blockquote {
  margin: 0;
  color: var(--primary-deep);
}

.hadith-slide cite {
  color: #465762;
}

.hadith-slide.is-active {
  animation: hadith-enter-from-right 1s ease-in-out both;
  will-change: transform;
}

.hadith-slide.is-exiting {
  animation: hadith-exit-to-left 1s ease-in-out both;
  will-change: transform;
  pointer-events: none;
}

.hadith-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 20px;
  color: var(--muted);
  font-size: .85rem;
}

.hadith-controls button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(15, 45, 61, .15);
  border-radius: 50%;
  color: var(--primary);
  background: rgba(255, 255, 255, .7);
  cursor: pointer;
}

.hadith-controls button:hover {
  border-color: var(--accent);
  background: #fff;
}

.hadith-empty {
  margin: 20px 0 0;
  color: var(--muted);
}

@keyframes hadith-enter-from-right {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

@keyframes hadith-exit-to-left {
  to { transform: translateX(-100%); }
}

.hadith-card::before {
  content: '❝';
  position: absolute;
  top: -28px;
  right: 28px;
  color: rgba(212, 168, 90, .16);
  font-family: 'Amiri', serif;
  font-size: 10rem;
  line-height: 1;
}

.prayer-recordings-section {
  padding: 56px 0;
  background: rgba(255, 255, 255, .38);
}

.prayer-recordings-section .section-head {
  margin-bottom: 26px;
}

.prayer-recordings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.prayer-recording-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid rgba(15, 45, 61, .1);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(250,243,228,.92));
  box-shadow: 0 12px 26px rgba(15, 40, 52, .07);
}

.prayer-recording-heading {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 16px;
}

.prayer-recording-icon {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: var(--accent-strong);
  background: var(--accent-soft);
  font-size: 1.4rem;
}

.prayer-recording-heading h2,
.prayer-recording-heading h3 {
  margin: 0;
  color: var(--primary);
  font-size: 1.2rem;
}

.prayer-recording-heading p,
.prayer-recording-heading time {
  display: inline-block;
  margin: 2px 12px 0 0;
  color: var(--muted);
  font-size: .88rem;
}

.prayer-recording-card audio,
.prayer-recording-card video {
  display: block;
  width: 100%;
  max-width: 100%;
  border-radius: 12px;
}

.prayer-recording-card video {
  max-height: 360px;
  background: #101820;
}

.prayer-recording-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin-top: 12px;
  padding: 8px 14px;
  border: 1px solid rgba(191, 138, 53, .35);
  border-radius: 10px;
  color: var(--primary);
  background: var(--accent-soft);
  font-weight: 800;
  transition: background .2s ease, border-color .2s ease;
}

.prayer-recording-download:hover {
  border-color: var(--accent-strong);
  background: #f4e4c8;
}

.prayer-recordings-more {
  display: flex;
  justify-content: center;
  margin-top: 26px;
}

.prayer-recordings-archive {
  min-height: 42vh;
}

.prayer-recordings-archive .prayer-recording-card {
  align-self: start;
}

.library-section {
  min-height: 42vh;
  padding: 52px 0 70px;
}

.library-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.library-book-card {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  padding: 20px;
  border: 1px solid rgba(15, 45, 61, .1);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(250,243,228,.92));
  box-shadow: 0 12px 26px rgba(15, 40, 52, .06);
}

.library-book-icon {
  display: grid;
  place-items: center;
  flex: 0 0 54px;
  width: 54px;
  height: 62px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(145deg, var(--primary-alt), var(--primary-deep));
  font-size: .82rem;
  font-weight: 800;
}

.library-book-details {
  flex: 1;
  min-width: 0;
}

.library-book-details h2 {
  overflow-wrap: anywhere;
  margin: 0 0 3px;
  color: var(--primary);
  font-size: 1.1rem;
}

.library-book-format {
  color: var(--muted);
  font-size: .8rem;
  font-weight: 700;
}

.library-book-actions {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 7px;
}

.library-book-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid rgba(15, 45, 61, .14);
  border-radius: 9px;
  color: var(--primary);
  background: #fff;
  font-size: .84rem;
  font-weight: 800;
  white-space: nowrap;
}

.library-book-actions .library-book-download {
  border-color: rgba(191, 138, 53, .35);
  background: var(--accent-soft);
}

.library-book-actions a:hover {
  border-color: var(--accent-strong);
}

@media (max-width: 700px) {
  .prayer-recordings-grid,
  .library-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .library-book-card {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .library-book-actions {
    width: 100%;
    flex-direction: row;
  }

  .library-book-actions a {
    flex: 1;
  }
}

.stat-card {
  position: relative;
  overflow: hidden;
  border-top: 3px solid rgba(212, 168, 90, .72);
}

.prayer-card { transition: transform .2s ease, box-shadow .2s ease; }
.prayer-card:hover { transform: translateY(-4px); box-shadow: 0 22px 35px rgba(15, 40, 52, .13); }

@media (max-width: 800px) {
  .home-hero { min-height: 620px; }
  .home-hero-content { grid-template-columns: 1fr; gap: 30px; padding-top: 64px; padding-bottom: 164px; }
  .hero-feature-card { max-width: 460px; min-height: auto; padding: 20px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .hadith-slide.is-active,
  .hadith-slide.is-exiting {
    animation: none;
  }
}

@media (max-width: 560px) {
  .home-hero { min-height: 640px; background-position: 62% center; }
  .home-hero-content { padding-top: 52px; padding-bottom: 172px; }
  .home-hero-copy h1 { font-size: 2.75rem; }
  .home-hero .hero-actions { align-items: stretch; margin-top: 24px; }
  .hero-feature-card { display: none; }
  .hero-quick-links { display: grid; grid-template-columns: repeat(3, 1fr); padding-right: 0; padding-left: 0; }
  .hero-quick-links a { min-width: 0; flex-direction: column; justify-content: center; gap: 3px; min-height: 76px; padding: 9px 5px; text-align: center; font-size: .72rem; }
  .hadith-card { padding: 28px 22px; }
  .hadith-card blockquote { padding-right: 14px; }
  .media-gallery-section { padding-right: 16px; padding-left: 16px; }
}

/* Grouped gallery carousel */
.gallery-heading {
  max-width: 1100px;
  margin: 0 auto 24px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.gallery-heading .section-head {
  margin: 0;
  text-align: right;
}

.gallery-controls {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px;
  border: 1px solid rgba(17, 42, 54, .1);
  border-radius: 999px;
  background: rgba(255, 255, 255, .74);
  box-shadow: 0 10px 25px rgba(15, 40, 52, .07);
}

.gallery-control {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: var(--primary);
  background: rgba(17, 42, 54, .06);
  font-family: Arial, sans-serif;
  font-size: 2rem;
  line-height: 1;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

.gallery-control:hover {
  color: #fff;
  background: var(--primary);
  transform: scale(1.06);
}

.gallery-counter {
  min-width: 52px;
  color: var(--primary-alt);
  font-size: .82rem;
  font-weight: 800;
  text-align: center;
}

.media-gallery-slider {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  border-radius: 28px;
  box-shadow: 0 24px 52px rgba(15, 40, 52, .14);
}

.media-gallery-slider::-webkit-scrollbar { display: none; }

.media-gallery-track {
  display: flex;
  width: 100%;
}

.media-gallery-item,
.media-gallery-section .media-gallery-item {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(270px, .9fr);
  flex: 0 0 100%;
  min-height: 430px;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.media-gallery-item img,
.media-gallery-item video,
.media-gallery-item iframe,
.media-gallery-section .media-gallery-item img,
.media-gallery-section .media-gallery-item video,
.media-gallery-section .media-gallery-item iframe {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
}

.media-gallery-caption {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  padding: 36px;
  background: linear-gradient(145deg, #fffdf8, #f4ede1);
}

.media-gallery-caption h3 {
  font-size: clamp(1.7rem, 2.5vw, 2.25rem);
}

.media-gallery-caption p { font-size: 1rem; }

@media (max-width: 700px) {
  .gallery-heading { align-items: center; }
  .gallery-heading .section-head { text-align: right; }
  .gallery-heading .section-head .kicker { margin-bottom: 5px; }
  .gallery-heading .section-head h2 { font-size: 1.55rem; margin: 0; }
  .gallery-heading .section-head p { display: none; }
  .gallery-control { width: 36px; height: 36px; font-size: 1.7rem; }
  .media-gallery-item,
  .media-gallery-section .media-gallery-item { display: block; min-height: 0; }
  .media-gallery-item img,
  .media-gallery-item video,
  .media-gallery-item iframe,
  .media-gallery-section .media-gallery-item img,
  .media-gallery-section .media-gallery-item video,
  .media-gallery-section .media-gallery-item iframe { height: min(62vw, 400px); min-height: 0; }
  .media-gallery-caption { min-height: 145px; padding: 22px; }
}

@media (max-width: 420px) {
  .gallery-heading { gap: 10px; }
  .gallery-counter { display: none; }
  .gallery-controls { gap: 5px; }
}

/* Gallery cards in one horizontal row */
.media-gallery-slider {
  width: 100%;
  max-width: 1100px;
  border-radius: 0;
  box-shadow: none;
}

.media-gallery-track {
  width: 100%;
  min-width: 100%;
  gap: 18px;
  padding: 5px 4px 22px;
}

.media-gallery-item,
.media-gallery-section .media-gallery-item {
  display: block;
  flex: 0 0 calc((100% - 54px) / 4);
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(17, 42, 54, .1);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 40, 52, .1);
  transition: transform .22s ease, box-shadow .22s ease;
}

.media-gallery-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 21px 34px rgba(15, 40, 52, .16);
}

.media-gallery-item img,
.media-gallery-item video,
.media-gallery-item iframe,
.media-gallery-section .media-gallery-item img,
.media-gallery-section .media-gallery-item video,
.media-gallery-section .media-gallery-item iframe {
  display: block;
  width: 100%;
  height: 190px;
  min-height: 0;
  object-fit: cover;
}

.media-gallery-caption {
  display: block;
  min-height: 126px;
  padding: 15px 16px 17px;
  background: #fff;
}

.media-gallery-caption h3 {
  margin-bottom: 5px;
  font-size: 1.3rem;
}

.media-gallery-caption p {
  overflow: visible;
  font-size: .84rem;
  line-height: 1.7;
  white-space: normal;
  overflow-wrap: anywhere;
}

.media-tag {
  margin-bottom: 7px;
  padding: 4px 9px;
  font-size: .67rem;
}

@media (max-width: 900px) {
  .media-gallery-item,
  .media-gallery-section .media-gallery-item {
    flex-basis: calc((100% - 18px) / 2);
  }
  .media-gallery-item img,
  .media-gallery-item video,
  .media-gallery-item iframe,
  .media-gallery-section .media-gallery-item img,
  .media-gallery-section .media-gallery-item video,
  .media-gallery-section .media-gallery-item iframe { height: 220px; }
}

@media (max-width: 560px) {
  .gallery-heading { margin-bottom: 16px; }
  .media-gallery-track { gap: 14px; padding-bottom: 16px; }
  .media-gallery-item,
  .media-gallery-section .media-gallery-item { flex-basis: 82vw; }
  .media-gallery-item img,
  .media-gallery-item video,
  .media-gallery-item iframe,
  .media-gallery-section .media-gallery-item img,
  .media-gallery-section .media-gallery-item video,
  .media-gallery-section .media-gallery-item iframe { height: 54vw; }
}

/* Calm religious identity and responsive home layout */
:root {
  --bg: #f5f0e7;
  --bg-soft: #fbf8f1;
  --panel: #fffdf8;
  --panel-strong: #f7f0e3;
  --primary: #0e3340;
  --primary-alt: #17505b;
  --primary-deep: #082631;
  --accent: #c9a24b;
  --accent-strong: #ab7f2f;
  --accent-soft: #fff0c9;
  --text: #17313b;
  --muted: #61717a;
  --line: rgba(14, 51, 64, .13);
  --shadow-soft: 0 14px 34px rgba(10, 43, 52, .08);
}

body {
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 8% 4%, rgba(201, 162, 75, .1), transparent 24rem),
    linear-gradient(180deg, #fbf8f1 0%, #f5f0e7 100%);
}

.site-header { background: rgba(8, 38, 49, .92); }
.topbar { background: #082631; }

.home-hero {
  min-height: 510px;
  background-image:
    linear-gradient(100deg, rgba(8, 38, 49, .96) 0%, rgba(11, 51, 62, .88) 48%, rgba(11, 51, 62, .48) 100%),
    var(--hero-image, url('https://images.unsplash.com/photo-1564769625392-651bfb6e1d91?auto=format&fit=crop&w=1800&q=85'));
}

.home-hero-content { padding-top: 58px; padding-bottom: 100px; }
.home-hero-copy h1 { font-size: clamp(2.65rem, 5vw, 4.6rem); }
.home-hero-copy p { max-width: 560px; }
.home-hero .btn { min-width: 164px; }

.prayer-strip {
  position: relative;
  z-index: 3;
  padding: 0 22px;
  margin-top: -35px;
}

.prayer-strip-inner {
  display: grid;
  grid-template-columns: 175px 1fr;
  align-items: stretch;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(201, 162, 75, .32);
  border-radius: 20px;
  background: #fffdf8;
  box-shadow: 0 18px 40px rgba(8, 38, 49, .14);
}

.prayer-strip-title {
  display: flex;
  justify-content: center;
  flex-direction: column;
  gap: 2px;
  padding: 18px 22px;
  color: #fff;
  background: linear-gradient(145deg, var(--primary), var(--primary-alt));
}

.prayer-strip-title span { color: rgba(255,255,255,.76); font-size: .75rem; font-weight: 700; }
.prayer-strip-title strong { color: var(--accent-soft); font-family: 'Amiri', serif; font-size: 1.45rem; }

.prayer-strip-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }

.prayer-strip-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  min-height: 88px;
  padding: 12px 8px;
  border-inline-start: 1px solid var(--line);
  color: var(--primary);
}

.prayer-strip-item > span { font-size: .82rem; font-weight: 800; }
.prayer-strip-item > strong { font-family: 'Amiri', serif; font-size: 1.42rem; line-height: 1.2; }
.prayer-strip-item small { position: absolute; bottom: 8px; color: var(--accent-strong); font-size: .63rem; font-weight: 800; }

.prayer-strip-item.is-next { background: linear-gradient(150deg, rgba(201, 162, 75, .2), rgba(255, 248, 229, .94)); }
.prayer-strip-item.is-next > strong { color: var(--primary-deep); }

#about { padding-bottom: 54px; }
#about .about-grid { margin-bottom: 48px; }

.media-gallery-section {
  padding-top: 16px;
  padding-bottom: 18px;
}

.services-section { position: relative; background: rgba(255,255,255,.42); }
.services-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .28;
  background-image: radial-gradient(rgba(201, 162, 75, .4) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent);
}

.services-section > * { position: relative; }
.service-card { border-top: 3px solid transparent; }
.service-card:hover { border-top-color: var(--accent); }

.program-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.program-link-card {
  display: grid;
  grid-template-columns: 42px 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: center;
  padding: 17px;
  border: 1px solid rgba(14, 51, 64, .1);
  border-radius: 16px;
  background: rgba(255,253,248,.88);
  box-shadow: 0 8px 20px rgba(10,43,52,.06);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.program-link-card:hover { transform: translateY(-3px); border-color: rgba(201,162,75,.7); box-shadow: var(--shadow-soft); }
.program-link-card > span { grid-row: 1 / 3; display: grid; width: 42px; height: 42px; place-items: center; border-radius: 12px; color: var(--primary); background: rgba(201,162,75,.16); font-size: 1.25rem; }
.program-link-card strong { color: var(--primary); font-size: .92rem; }
.program-link-card small { color: var(--muted); font-size: .74rem; }

.donation-section { background: linear-gradient(180deg, rgba(201, 162, 75, .11), rgba(255,255,255,.28)); }

.news-section { background: var(--bg-soft); }
.news-grid { align-items: stretch; }
.news-card { display: flex; flex-direction: column; min-height: 220px; padding: 22px; }
.news-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 5px; color: var(--accent-strong); }
.news-card-top > span:last-child { font-size: 1.1rem; }
.news-card p { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.section-action { display: flex; justify-content: center; margin-top: 28px; }
.section-action .btn { min-width: 190px; }
.news-page .news-card h2 { color: var(--primary); font-size: 1.45rem; }

.location-section { background: rgba(255,255,255,.62); }
.map-wrap { border: 5px solid #fffdf8; }
.contact-panel { border-top: 3px solid var(--accent); }
.contact-list li { padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 0; }

.btn { min-height: 50px; }
.btn-gold { background: linear-gradient(135deg, #d6b25e 0%, #efd388 100%); }
.btn-deep { background: var(--primary); }

@media (max-width: 900px) {
  .prayer-strip-inner { grid-template-columns: 150px 1fr; }
  .program-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .home-hero { min-height: 500px; }
  .home-hero-content { padding-top: 46px; padding-bottom: 115px; }
  .home-hero-copy p { font-size: 1rem; }
  .prayer-strip { padding: 0 16px; margin-top: -22px; }
  .prayer-strip-inner { grid-template-columns: 1fr; border-radius: 16px; }
  .prayer-strip-title { flex-direction: row; align-items: center; justify-content: space-between; padding: 12px 16px; }
  .prayer-strip-title strong { font-size: 1.2rem; }
  .prayer-strip-grid { overflow-x: auto; grid-template-columns: repeat(5, minmax(86px, 1fr)); scrollbar-width: none; }
  .prayer-strip-grid::-webkit-scrollbar { display: none; }
  .prayer-strip-item { min-height: 80px; }
  #about { padding-top: 62px; }
  #about .about-grid { margin-bottom: 32px; }
  .program-links { gap: 10px; margin-top: 18px; }
  .program-link-card { grid-template-columns: 36px 1fr; padding: 13px; }
  .program-link-card > span { width: 36px; height: 36px; font-size: 1rem; }
}

@media (max-width: 560px) {
  .home-hero { min-height: 472px; }
  .home-hero-copy h1 { font-size: 2.55rem; }
  .home-hero .btn { width: 100%; }
  .home-hero .hero-actions { gap: 10px; }
  .prayer-strip-item > strong { font-size: 1.22rem; }
  .program-links { grid-template-columns: 1fr; }
  .program-link-card { min-height: 64px; }
  .section-action .btn { width: calc(100% - 32px); }
  .map-wrap iframe { min-height: 300px; }
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  right: 12px;
  padding: 10px 16px;
  border-radius: 10px;
  color: #fff;
  background: var(--primary-deep);
  box-shadow: var(--shadow-soft);
  transform: translateY(-180%);
  transition: transform .2s ease;
}

.skip-link:focus { transform: translateY(0); }

.media-gallery-section .media-gallery-item.media-gallery-video-item video {
  width: 100%;
  height: 190px;
  object-fit: contain;
  background: #0b1f2b;
}

.media-gallery-section .media-gallery-item.media-gallery-video-item video:fullscreen,
.media-gallery-section .media-gallery-item.media-gallery-video-item video:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  max-height: none;
  object-fit: contain;
}

@media (max-width: 900px) {
  .media-gallery-section .media-gallery-item.media-gallery-video-item video {
    height: 220px;
  }
}

@media (max-width: 560px) {
  .media-gallery-section .media-gallery-item.media-gallery-video-item video {
    height: 54vw;
  }
}

/* Unified public-page visual system */
.page-banner {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  display: grid;
  place-items: center;
  padding: 68px 20px 82px;
  background:
    radial-gradient(circle at 15% 25%, rgba(230,200,121,.18), transparent 15rem),
    linear-gradient(125deg, #082b2b, #0f514a 62%, #17665a);
}

.page-banner::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -70px;
  top: -170px;
  border: 1px solid rgba(230,200,121,.26);
  border-radius: 50%;
  box-shadow: 0 0 0 28px rgba(230,200,121,.04), 0 0 0 56px rgba(230,200,121,.025);
}

.page-banner-inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
  text-align: center;
}

.page-banner h1 {
  color: #fffaf0;
  font-family: 'Amiri', serif;
  font-size: clamp(2.7rem, 6vw, 5rem);
  line-height: 1;
}

.page-banner p {
  max-width: 620px;
  margin: 18px auto 0;
  color: rgba(255,250,240,.78);
  font-size: 1.05rem;
  line-height: 1.9;
}

.page-banner .crenel {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
}

.content-section {
  padding: 76px 0;
  background: linear-gradient(180deg, #fbf9f3, var(--bg));
}

.content-grid {
  gap: 22px;
}

.feature-card,
.news-card,
.suggestion-panel {
  border: 1px solid rgba(18,63,59,.1);
  border-radius: 24px;
  background: linear-gradient(145deg, #fff, #f7f8f3);
  box-shadow: 0 14px 36px rgba(18,63,59,.08);
}

.feature-card {
  min-height: 300px;
  padding: 26px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.feature-card:hover,
.news-card:hover {
  transform: translateY(-6px);
  border-color: rgba(201,155,69,.45);
  box-shadow: 0 22px 42px rgba(18,63,59,.13);
}

.feature-card .feature-icon {
  border-radius: 16px;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.feature-card h3 {
  margin-top: 14px;
  color: var(--primary-deep);
  font-family: 'Amiri', serif;
  font-size: 1.75rem;
}

.feature-card p {
  line-height: 1.9;
}

.meta-tag,
.program-badge {
  border: 1px solid rgba(201,155,69,.2);
}

.news-page {
  min-height: 60vh;
}

.news-page .news-grid {
  gap: 22px;
}

.news-card {
  min-height: 250px;
  padding: 26px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.news-card h2 {
  font-family: 'Amiri', serif;
  font-size: 1.8rem;
}

.suggestion-shell {
  max-width: 900px;
  margin: 0 auto;
}

.suggestion-panel {
  padding: clamp(24px, 5vw, 52px);
}

.suggestion-panel h2 {
  color: var(--primary-deep);
  font-family: 'Amiri', serif;
  font-size: clamp(2rem, 4vw, 3rem);
}

.suggestion-form .btn {
  min-width: 170px;
}

.empty-state {
  border: 1px dashed rgba(18,63,59,.2);
  border-radius: 20px;
  background: rgba(255,255,255,.72);
}

.home-service-card {
  position: relative;
  display: grid;
  grid-template-columns: 54px 1fr auto;
  align-items: center;
  gap: 15px;
  min-height: 126px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid rgba(18,63,59,.11);
  border-radius: 24px;
  background: linear-gradient(145deg, #fff, #f7f8f3);
  box-shadow: 0 12px 28px rgba(18,63,59,.07);
}

.home-service-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 4px;
  background: var(--accent);
  transform: scaleY(.35);
  transform-origin: center;
  transition: transform .25s ease;
}

.home-service-card:hover::before {
  transform: scaleY(1);
}

.home-service-card .service-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: linear-gradient(145deg, var(--accent-soft), #fff);
  box-shadow: inset 0 0 0 1px rgba(201,155,69,.16);
  font-size: 1.45rem;
}

.home-service-card > span:nth-child(2) {
  min-width: 0;
}

.home-service-card strong {
  display: block;
  color: var(--primary-deep);
  font-family: 'Amiri', serif;
  font-size: 1.3rem;
  line-height: 1.3;
}

.home-service-card small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: .76rem;
  line-height: 1.6;
}

.home-service-card b {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 1.2rem;
  transition: transform .2s ease, background .2s ease;
}

.home-service-card:hover b {
  transform: translateX(-4px);
  background: var(--accent-strong);
}

.home-service-card em {
  position: absolute;
  top: 10px;
  left: 15px;
  color: rgba(18,63,59,.18);
  font-size: .7rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: .08em;
}

.home-service-card.service-card-primary {
  background: linear-gradient(145deg, #0d514a, #17665a);
  border-color: transparent;
  box-shadow: 0 18px 34px rgba(13,81,74,.2);
}

.home-service-card.service-card-primary strong {
  color: #fffaf0;
}

.home-service-card.service-card-primary small {
  color: rgba(255,250,240,.72);
}

.home-service-card.service-card-primary .service-icon {
  background: rgba(230,200,121,.18);
  color: #f5d989;
}

.home-service-card.service-card-primary em {
  color: rgba(255,250,240,.3);
}

.footer-country-visits {
  margin-top: 28px;
  padding: 22px;
  border: 1px solid rgba(230,200,121,.2);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
}

.footer-country-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.footer-country-heading .kicker {
  color: #e6c879;
  font-size: .7rem;
}

.footer-country-heading h2 {
  margin-top: 5px;
  color: #fffaf0;
  font-family: 'Amiri', serif;
  font-size: 1.45rem;
}

.footer-global-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-bottom: 20px;
}

.footer-global-stats > div {
  display: grid;
  gap: 5px;
  padding: 13px 14px;
  border: 1px solid rgba(230,200,121,.18);
  border-radius: 14px;
  background: rgba(0,0,0,.12);
}

.footer-global-stats span {
  color: rgba(255,250,240,.64);
  font-size: .72rem;
}

.footer-global-stats strong {
  color: #f5d989;
  font-size: 1.35rem;
  line-height: 1;
}

.footer-country-subheading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  color: rgba(255,250,240,.72);
  font-size: .76rem;
}

.footer-country-subheading span:last-child {
  color: rgba(255,250,240,.45);
}

.footer-country-globe {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(230,200,121,.35);
  border-radius: 50%;
  color: #f5d989;
}

.footer-country-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.footer-country-item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 13px;
  background: rgba(0,0,0,.12);
}

.footer-country-flag {
  font-size: 1.35rem;
  line-height: 1;
}

.footer-country-name {
  overflow: hidden;
  flex: 1;
  color: rgba(255,250,240,.84);
  font-size: .78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.footer-country-item strong {
  color: #f5d989;
  font-size: .82rem;
}

.footer-country-empty {
  margin: 0;
  color: rgba(255,250,240,.62);
  font-size: .8rem;
}

.footer-contact-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0;
}

.footer-contact-group {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  background: rgba(0,0,0,.12);
}

.footer-contact-label {
  margin-bottom: 3px;
  color: #f5d989;
  font-size: .75rem;
  font-weight: 800;
}

.footer-contact-group a {
  color: rgba(255,250,240,.78);
  direction: ltr;
  font-size: .78rem;
  text-align: right;
}

.footer-contact-group a:hover {
  color: #fff;
}

.developer-info-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255,250,240,.82);
  cursor: pointer;
  font: inherit;
  text-align: right;
}

.developer-info-trigger b {
  margin-right: auto;
  color: #f5d989;
  font-size: 1.1rem;
}

.developer-avatar {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(230,200,121,.4);
  border-radius: 50%;
  background: rgba(230,200,121,.12);
  color: #f5d989;
  font-size: .9rem;
  font-weight: 800;
}

.developer-info-modal[hidden] {
  display: none;
}

.developer-info-modal {
  position: fixed;
  z-index: 2000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
}

.developer-info-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4,22,27,.72);
  backdrop-filter: blur(5px);
}

.developer-info-card {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  padding: 36px 28px 28px;
  border: 1px solid rgba(230,200,121,.32);
  border-radius: 26px;
  background: linear-gradient(145deg, #fff, #f8f3e8);
  box-shadow: 0 30px 80px rgba(0,0,0,.28);
  text-align: center;
}

.developer-info-close {
  position: absolute;
  top: 12px;
  left: 14px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(18,63,59,.08);
  color: var(--primary);
  cursor: pointer;
  font-size: 1.35rem;
}

.developer-avatar-large {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  font-size: 1.5rem;
}

.developer-info-card .kicker {
  color: var(--accent-strong);
}

.developer-info-card h2 {
  margin: 8px 0;
  color: var(--primary-deep);
  font-family: 'Amiri', serif;
  font-size: 2rem;
}

.developer-info-card p {
  color: var(--muted);
  line-height: 1.9;
}

.developer-info-details {
  display: grid;
  gap: 8px;
  margin-top: 20px;
}

.developer-info-details a {
  padding: 10px;
  border-radius: 12px;
  background: rgba(201,155,69,.1);
  color: var(--primary);
  direction: ltr;
}

body.developer-modal-open {
  overflow: hidden;
}

@media (max-width: 700px) {
  .footer-country-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-contact-groups {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .footer-country-visits {
    padding: 17px;
  }

  .footer-country-list {
    grid-template-columns: 1fr;
  }

  .footer-global-stats {
    grid-template-columns: 1fr;
  }
}

.home-service-links .section-head.compact {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.home-service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.home-service-links .section-head.compact h2 {
  margin-top: 8px;
  color: var(--primary-deep);
  font-size: clamp(2rem, 4vw, 3rem);
}

.home-service-links .section-head.compact p {
  max-width: 330px;
  margin: 0 0 5px;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.8;
}

@media (max-width: 900px) {
  .home-service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .home-service-links .section-head.compact {
    display: block;
  }

  .home-service-links .section-head.compact p {
    margin-top: 10px;
  }

  .home-service-grid {
    grid-template-columns: 1fr;
  }

  .home-service-card {
    min-height: 108px;
  }
}

@media (max-width: 640px) {
  .page-banner {
    min-height: 230px;
    padding: 56px 18px 70px;
  }

  .page-banner h1 {
    font-size: 3rem;
  }

  .content-section {
    padding: 52px 0;
  }

  .feature-card,
  .news-card {
    min-height: auto;
    padding: 22px;
  }
}
