/* =========================================================
   AL-QUR'AN — SMOOTH UI / FINAL STYLE
   ========================================================= */

:root {
    --green-950: #082617;
    --green-900: #0b3521;
    --green-800: #104d2d;
    --green-700: #166534;
    --green-600: #198344;

    --cream: #f7f5ee;
    --white: #ffffff;

    --text: #17231b;
    --text-soft: #536158;
    --text-light: #7b867f;

    --border: #e3e7e2;
    --border-soft: rgba(23, 35, 27, 0.08);

    --gold: #b9975b;

    --card: #ffffff;
    --surface: #fafbf9;
    --surface-soft: #f4f7f4;

    --shadow:
        0 10px 30px rgba(15, 40, 25, 0.055),
        0 2px 8px rgba(15, 40, 25, 0.035);

    --shadow-hover:
        0 18px 45px rgba(15, 40, 25, 0.09),
        0 5px 12px rgba(15, 40, 25, 0.045);

    --radius: 20px;
    --transition: 180ms ease;
}

/* =========================================================
   RESET
   ========================================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--cream);
    color: var(--text);
    font-family:
        "Noto Sans Bengali",
        "Noto Sans",
        Arial,
        sans-serif;
    line-height: 1.6;
    transition:
        background-color 220ms ease,
        color 220ms ease;
}

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

button,
input,
select {
    -webkit-tap-highlight-color: transparent;
}

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

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

.header {
    height: 76px;
    position: sticky;
    top: 0;
    z-index: 1000;

    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--border);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    transition:
        background-color 220ms ease,
        border-color 220ms ease,
        box-shadow 220ms ease;
}

.header-inner {
    width: min(1180px, calc(100% - 40px));
    height: 100%;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 28px;
}

/* ---------- LOGO ---------- */

.logo {
    display: flex;
    align-items: center;
    gap: 12px;

    min-width: 185px;
}

.logo h1 {
    width: 43px;
    height: 43px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 12px;

    background: linear-gradient(
        145deg,
        var(--green-900),
        var(--green-950)
    );

    color: #ffffff;

    font-family: "Amiri", serif;
    font-size: 22px;
    font-weight: 400;

    line-height: 1;

    box-shadow:
        0 5px 14px rgba(8, 38, 23, 0.14);

    overflow: hidden;
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;

    line-height: 1.15;
}

.logo-text strong {
    color: var(--text);
    font-size: 17px;
    font-weight: 700;
    white-space: nowrap;
}

.logo-text span {
    margin-top: 3px;

    color: var(--text-light);
    font-size: 10px;
    letter-spacing: 0.25px;

    white-space: nowrap;
}

/* =========================================================
   NAVIGATION
   ========================================================= */

.navigation {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 4px;
    margin-left: auto;
    margin-right: auto;
}

.navigation a {
    position: relative;

    padding: 8px 15px;

    border-radius: 9px;

    color: var(--text-soft);
    font-size: 13px;
    font-weight: 500;

    transition:
        color var(--transition),
        background-color var(--transition);
}

.navigation a:hover {
    color: var(--green-700);
    background: rgba(22, 101, 52, 0.055);
}

.navigation a.active {
    color: var(--green-700);
    background: rgba(22, 101, 52, 0.08);
    font-weight: 600;
}

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

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 7px;
    min-width: 185px;
}

.header-button,
.icon-button {
    height: 36px;

    border: 1px solid var(--border);

    background: var(--card);
    color: var(--text);

    border-radius: 9px;

    transition:
        background-color var(--transition),
        border-color var(--transition),
        color var(--transition),
        transform var(--transition),
        box-shadow var(--transition);
}

.header-button {
    padding: 0 13px;
    font-size: 12px;
    font-weight: 600;
}

.icon-button {
    width: 38px;
    padding: 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 11px;
    font-weight: 600;
}

.header-button:hover,
.icon-button:hover {
    border-color: rgba(22, 101, 52, 0.28);
    background: var(--surface-soft);
    color: var(--green-700);
}

.header-button:active,
.icon-button:active {
    transform: scale(0.97);
}

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

.hero {
    min-height: 500px;

    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;
    overflow: hidden;

    background:
        radial-gradient(
            circle at 15% 30%,
            rgba(60, 140, 85, 0.16),
            transparent 30%
        ),
        radial-gradient(
            circle at 85% 70%,
            rgba(185, 151, 91, 0.12),
            transparent 28%
        ),
        linear-gradient(
            135deg,
            var(--green-950),
            var(--green-900)
        );

    color: #ffffff;
}

.hero::before {
    content: "";

    position: absolute;
    width: 680px;
    height: 680px;

    left: -340px;
    bottom: -430px;

    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 50%;
}

.hero::after {
    content: "";

    position: absolute;

    width: 480px;
    height: 480px;

    right: -240px;
    top: -240px;

    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 50%;
}

.hero-content {
    width: min(850px, calc(100% - 40px));

    position: relative;
    z-index: 2;

    text-align: center;
}

.bismillah {
    color: #e8d6aa;

    font-family: "Amiri", serif;

    font-size: clamp(22px, 3vw, 31px);

    line-height: 1.5;

    margin-bottom: 12px;
}

.hero h1 {
    font-family: "Amiri", serif;

    font-size: clamp(54px, 8vw, 86px);
    font-weight: 400;

    line-height: 1.05;

    color: #ffffff;
}

.hero-title {
    margin: 12px 0 8px;

    color: #d8e5dc;

    font-size: 20px;
    letter-spacing: 1.5px;
}

.hero-description {
    margin-bottom: 29px;

    color: rgba(255, 255, 255, 0.67);

    font-size: 14px;
}

/* =========================================================
   SEARCH BOX
   ========================================================= */

.search-box {
    width: min(700px, 100%);
    min-height: 60px;

    margin: 0 auto;

    padding: 5px;

    display: flex;
    align-items: center;

    background: #ffffff;

    border: 1px solid rgba(255, 255, 255, 0.25);

    border-radius: 15px;

    box-shadow:
        0 15px 45px rgba(0, 0, 0, 0.17),
        0 3px 10px rgba(0, 0, 0, 0.08);

    transition:
        box-shadow 180ms ease,
        transform 180ms ease;
}

.search-box:focus-within {
    box-shadow:
        0 18px 50px rgba(0, 0, 0, 0.2),
        0 0 0 3px rgba(185, 151, 91, 0.16);
}

.search-icon {
    width: 48px;
    height: 48px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #7b867f;

    font-size: 25px;
}

.search-box input {
    flex: 1;

    min-width: 0;
    height: 48px;

    border: 0;
    outline: 0;

    background: transparent;

    color: #17231b;

    font-size: 14px;
}

.search-box input::placeholder {
    color: #9aa39d;
}

.search-box button {
    height: 48px;

    flex-shrink: 0;

    padding: 0 23px;

    border: 0;
    border-radius: 11px;

    background: var(--green-700);
    color: #ffffff;

    font-size: 13px;
    font-weight: 700;

    transition:
        background-color var(--transition),
        transform var(--transition),
        box-shadow var(--transition);
}

.search-box button:hover {
    background: var(--green-800);

    box-shadow:
        0 5px 14px rgba(22, 101, 52, 0.2);
}

.search-box button:active {
    transform: scale(0.98);
}

/* =========================================================
   QUICK SEARCH
   ========================================================= */

.quick-search {
    margin-top: 16px;

    display: flex;
    justify-content: center;
    align-items: center;

    flex-wrap: wrap;

    gap: 7px;

    font-size: 12px;
}

.quick-search > span {
    color: rgba(255, 255, 255, 0.52);
}

.chip {
    padding: 5px 11px;

    border: 1px solid rgba(255, 255, 255, 0.15);

    background: rgba(255, 255, 255, 0.055);

    color: rgba(255, 255, 255, 0.76);

    border-radius: 100px;

    font-size: 12px;

    transition:
        background-color var(--transition),
        border-color var(--transition),
        color var(--transition);
}

.chip:hover {
    background: rgba(255, 255, 255, 0.12);

    border-color: rgba(255, 255, 255, 0.25);

    color: #ffffff;
}

/* =========================================================
   CONTENT
   ========================================================= */

.content {
    width: min(1180px, calc(100% - 40px));

    margin: 75px auto;
}

.section-heading {
    display: flex;

    align-items: flex-end;
    justify-content: space-between;

    gap: 30px;

    margin-bottom: 25px;
}

.eyebrow {
    display: block;

    margin-bottom: 5px;

    color: var(--green-700);

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 1.5px;
}

.section-heading h2,
.reading-header h2 {
    color: var(--text);

    font-size: 27px;
    line-height: 1.3;
}

.section-heading > p,
.reading-meta {
    color: var(--text-light);

    font-size: 13px;
}

/* =========================================================
   STUDY OPTIONS
   ========================================================= */

.study-options {
    display: grid;

    grid-template-columns: 2fr 1fr 1fr;

    gap: 14px;
}

.option-card {
    min-width: 0;

    padding: 20px;

    display: flex;

    gap: 13px;

    background: var(--card);

    border: 1px solid var(--border);

    border-radius: var(--radius);

    box-shadow: var(--shadow);

    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        border-color 180ms ease;
}

.option-card:hover {
    transform: translateY(-2px);

    box-shadow: var(--shadow-hover);

    border-color: rgba(22, 101, 52, 0.14);
}

.option-icon {
    flex-shrink: 0;

    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background: #edf5ef;

    color: var(--green-700);

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

.option-content {
    min-width: 0;
    flex: 1;
}

.option-content > span {
    color: var(--text-light);

    font-size: 11px;
}

.option-content h3 {
    margin: 2px 0 10px;

    color: var(--text);

    font-size: 14px;
}

.option-content select {
    width: 100%;

    padding: 9px 10px;

    border: 1px solid var(--border);

    border-radius: 8px;

    background: var(--surface);

    color: var(--text);

    outline: 0;

    font-size: 12px;

    transition:
        border-color var(--transition),
        box-shadow var(--transition);
}

.option-content select:focus {
    border-color: rgba(22, 101, 52, 0.45);

    box-shadow:
        0 0 0 3px rgba(22, 101, 52, 0.08);
}

.mini-note {
    color: var(--text-soft);

    font-size: 12px;
}

/* =========================================================
   REFERENCE BOX
   ========================================================= */

.reference-box {
    display: flex;
    gap: 6px;
}

.reference-box input {
    min-width: 0;
    width: 100%;

    padding: 8px 9px;

    border: 1px solid var(--border);

    border-radius: 8px;

    outline: 0;

    background: var(--surface);

    color: var(--text);

    font-size: 12px;

    transition:
        border-color var(--transition),
        box-shadow var(--transition);
}

.reference-box input::placeholder {
    color: var(--text-light);
}

.reference-box input:focus {
    border-color: rgba(22, 101, 52, 0.45);

    box-shadow:
        0 0 0 3px rgba(22, 101, 52, 0.08);
}

.reference-box button {
    flex-shrink: 0;

    padding: 8px 12px;

    border: 0;

    border-radius: 8px;

    background: var(--green-700);

    color: #ffffff;

    font-size: 12px;
    font-weight: 600;

    transition:
        background-color var(--transition),
        transform var(--transition);
}

.reference-box button:hover {
    background: var(--green-800);
}

.reference-box button:active {
    transform: scale(0.97);
}

/* =========================================================
   STATUS
   ========================================================= */

.status {
    min-height: 45px;

    margin: 18px 0;

    padding: 11px 16px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--border);

    background: var(--card);

    border-radius: 10px;

    color: var(--text-soft);

    font-size: 13px;

    text-align: center;

    transition:
        background-color 220ms ease,
        border-color 220ms ease,
        color 220ms ease;
}

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

.reading-header {
    margin-top: 65px;
    margin-bottom: 20px;

    display: flex;

    justify-content: space-between;
    align-items: flex-end;

    gap: 20px;
}

.reading-header h2 {
    color: var(--text);
}

.reading-header p {
    color: var(--text-light);

    font-size: 13px;

    margin-top: 3px;
}

.surah-number {
    color: #c8cfc9;

    font-size: 40px;
    font-weight: 700;

    line-height: 1;
}

/* =========================================================
   RESULTS
   ========================================================= */

.results {
    display: flex;
    flex-direction: column;

    gap: 18px;
}

.ayah-card,
.search-result {
    background: var(--card);

    border: 1px solid var(--border);

    border-radius: 24px;

    padding: 28px;

    box-shadow: var(--shadow);

    scroll-margin-top: 100px;

    transition:
        background-color 220ms ease,
        border-color 220ms ease,
        box-shadow 180ms ease;
}

/* =========================================================
   AYAH TOP
   ========================================================= */

.ayah-top {
    display: flex;

    justify-content: space-between;
    align-items: center;

    gap: 15px;

    padding-bottom: 14px;

    border-bottom: 1px solid var(--border);

    color: var(--text-light);

    font-size: 12px;
}

.ayah-actions {
    display: flex;
    gap: 6px;
}

.ayah-actions button {
    width: 35px;
    height: 35px;

    border: 1px solid var(--border);

    background: var(--surface);

    border-radius: 9px;

    color: var(--text-soft);

    transition:
        background-color var(--transition),
        border-color var(--transition),
        color var(--transition),
        transform var(--transition);
}

.ayah-actions button:hover {
    background: var(--surface-soft);

    border-color: rgba(22, 101, 52, 0.25);

    color: var(--green-700);
}

.ayah-actions button:active {
    transform: scale(0.96);
}

/* =========================================================
   ARABIC AYAH
   ========================================================= */

.arabic {
    padding: 35px 10px;

    text-align: center;

    direction: rtl;

    font-family: "Amiri", serif;

    font-size: clamp(32px, 4vw, 48px);

    line-height: 2;

    color: var(--text);

    transition: color 220ms ease;
}

.quran-arabic-text {
    color: inherit;
}

.ayah-marker {
    display: inline-block;

    margin-right: 8px;

    font-family: "Noto Sans", sans-serif;

    font-size: 0.42em;

    color: var(--green-700);

    vertical-align: middle;
}

/* =========================================================
   BISMILLAH FROM JS
   ========================================================= */

.surah-bismillah {
    width: 100%;

    text-align: center;

    margin: 8px 0 8px;

    padding: 10px 12px;
}

.surah-bismillah .bismillah {
    display: inline-block;

    direction: rtl;

    unicode-bidi: isolate;

    font-family:
        "Amiri",
        "Noto Naskh Arabic",
        "Scheherazade New",
        serif;

    font-size: 2rem;

    line-height: 2;

    font-weight: 700;

    color: #263238;

    text-align: center;

    text-rendering: optimizeLegibility;

    -webkit-font-smoothing: antialiased;
}

body.dark .surah-bismillah .bismillah {
    color: #ffffff;
}

/* =========================================================
   TRANSLATIONS
   ========================================================= */

.translation {
    padding: 17px 20px;

    margin-top: 12px;

    border-left: 3px solid var(--green-600);

    background: var(--surface-soft);

    border-radius: 0 12px 12px 0;

    transition:
        background-color 220ms ease,
        color 220ms ease,
        border-color 220ms ease;
}

.translation.english {
    border-left-color: var(--gold);
}

.translation-label {
    display: block;

    color: var(--green-700);

    font-size: 15px;
    font-weight: 700;

    margin-bottom: 5px;
}

.translation.english .translation-label {
    color: #92763e;
}

.translation p {
    color: var(--text-soft);

    font-size: 15px;

    line-height: 1.8;
}

/* =========================================================
   SEARCH RESULTS
   ========================================================= */

.search-result {
    padding: 20px;
}

.search-result .key {
    color: var(--green-700);

    font-weight: 700;

    margin-bottom: 8px;
}

.search-result .snippet {
    color: var(--text-soft);

    margin-bottom: 14px;
}

.search-result .arabic-small {
    direction: rtl;

    font-family: "Amiri", serif;

    font-size: 25px;

    line-height: 1.8;

    margin: 10px 0;

    color: var(--text);
}

.search-result button {
    border: 0;

    background: var(--green-700);

    color: #ffffff;

    padding: 8px 14px;

    border-radius: 8px;

    font-size: 12px;
}

/* =========================================================
   EMPTY STATE
   ========================================================= */

.empty-state {
    padding: 50px 20px;

    text-align: center;

    background: var(--card);

    border: 1px solid var(--border);

    border-radius: 20px;

    color: var(--text-soft);
}

/* =========================================================
   LOADING
   ========================================================= */

.loading-spinner {
    width: 16px;
    height: 16px;

    display: inline-block;

    vertical-align: middle;

    margin-right: 8px;

    border: 2px solid #dce7df;

    border-top-color: var(--green-700);

    border-radius: 50%;

    animation: quranSpin 0.8s linear infinite;
}

@keyframes quranSpin {
    to {
        transform: rotate(360deg);
    }
}

/* =========================================================
   FEATURES
   ========================================================= */

.features {
    margin-top: 60px;

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    border-top: 1px solid var(--border);

    border-bottom: 1px solid var(--border);
}

.feature {
    padding: 30px;

    border-right: 1px solid var(--border);
}

.feature:last-child {
    border-right: 0;
}

.feature-number {
    color: var(--gold);

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

.feature h3 {
    margin: 8px 0 6px;

    color: var(--text);

    font-size: 17px;
}

.feature p {
    color: var(--text-light);

    font-size: 13px;

    line-height: 1.7;
}

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

footer {
    background: var(--green-950);

    color: #ffffff;

    padding: 38px 20px 20px;
}

.footer-inner {
    width: min(1180px, calc(100% - 40px));

    margin: auto;

    display: flex;

    justify-content: space-between;
    align-items: center;
}

.footer-brand {
    display: flex;

    align-items: center;

    gap: 12px;
}

.footer-symbol {
    font-family: "Amiri", serif;

    color: #d8bd7d;

    font-size: 25px;
}

.footer-brand strong {
    display: block;

    color: #ffffff;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.45);

    font-size: 11px;
}

.footer-links {
    display: flex;

    gap: 20px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.55);

    font-size: 12px;

    transition: color var(--transition);
}

.footer-links a:hover {
    color: #ffffff;
}

.copyright {
    width: min(1180px, calc(100% - 40px));

    margin: 30px auto 0;

    padding-top: 18px;

    border-top: 1px solid rgba(255, 255, 255, 0.08);

    color: rgba(255, 255, 255, 0.35);

    font-size: 10px;

    line-height: 1.6;
}

/* =========================================================
   DARK MODE
   ========================================================= */

.dark {
    --cream: #0a120d;

    --white: #101b15;

    --text: #edf5ef;
    --text-soft: #b9c6bd;
    --text-light: #8e9d94;

    --border: #25372c;
    --border-soft: rgba(255, 255, 255, 0.07);

    --card: #101b15;

    --surface: #142219;
    --surface-soft: #17261c;

    --shadow:
        0 10px 30px rgba(0, 0, 0, 0.22),
        0 2px 8px rgba(0, 0, 0, 0.14);
}

/* ---------- DARK HEADER ---------- */

.dark .header {
    background: rgba(12, 24, 17, 0.94);

    border-color: #25372c;
}

.dark .logo h1 {
    background: linear-gradient(
        145deg,
        #12482a,
        #082617
    );
}

.dark .logo-text strong {
    color: #edf5ef;
}

.dark .logo-text span {
    color: #8e9d94;
}

.dark .navigation a {
    color: #aebbb2;
}

.dark .navigation a:hover,
.dark .navigation a.active {
    color: #d8eadc;

    background: rgba(93, 170, 116, 0.1);
}

.dark .header-button,
.dark .icon-button {
    background: #142219;

    border-color: #2a4032;

    color: #dce8df;
}

.dark .header-button:hover,
.dark .icon-button:hover {
    background: #1a2b20;

    border-color: #3b5844;

    color: #ffffff;
}

/* ---------- DARK CONTENT ---------- */

.dark .section-heading h2,
.dark .reading-header h2,
.dark .feature h3 {
    color: #edf5ef;
}

.dark .eyebrow {
    color: #73b887;
}

.dark .option-icon {
    background: #193021;

    color: #75b98a;
}

.dark .option-card:hover {
    border-color: #345441;
}

.dark .option-content select,
.dark .reference-box input {
    background: #142219;

    color: #edf5ef;

    border-color: #2b4133;
}

.dark .option-content select:focus,
.dark .reference-box input:focus {
    border-color: #4f7d5d;

    box-shadow:
        0 0 0 3px rgba(93, 170, 116, 0.1);
}

.dark .status {
    background: #101b15;

    border-color: #25372c;

    color: #b9c6bd;
}

/* ---------- DARK AYAH ---------- */

.dark .ayah-card,
.dark .search-result,
.dark .empty-state {
    background: #101b15;

    border-color: #25372c;
}

.dark .ayah-top {
    border-color: #25372c;

    color: #8e9d94;
}

.dark .ayah-key {
    color: #b9c6bd;
}

.dark .arabic,
.dark .quran-arabic-text {
    color: #f4f8f5;
}

.dark .ayah-marker {
    color: #75b98a;
}

.dark .ayah-actions button {
    background: #142219;

    border-color: #2b4133;

    color: #b9c6bd;
}

.dark .ayah-actions button:hover {
    background: #1a2b20;

    border-color: #3d5d47;

    color: #ffffff;
}

/* ---------- DARK TRANSLATIONS ---------- */

.dark .translation {
    background: #142219;

    color: #dce7df;
}

.dark .translation p {
    color: #c2cec5;
}

.dark .translation-label {
    color: #75b98a;
}

.dark .translation.english .translation-label {
    color: #d0ae68;
}

/* ---------- DARK SEARCH ---------- */

.dark .search-result .key {
    color: #75b98a;
}

.dark .search-result .snippet {
    color: #b9c6bd;
}

.dark .search-result .arabic-small {
    color: #f4f8f5;
}

.dark .empty-state {
    color: #b9c6bd;
}

/* ---------- DARK MISC ---------- */

.dark .surah-number {
    color: #405247;
}

.dark .feature {
    border-color: #25372c;
}

.dark .features {
    border-color: #25372c;
}

.dark .feature p {
    color: #8e9d94;
}

.dark .mini-note {
    color: #aab8af;
}

/* =========================================================
   RESPONSIVE — TABLET
   ========================================================= */

@media (max-width: 900px) {

    .header-inner {
        gap: 15px;
    }

    .logo {
        min-width: auto;
    }

    .header-actions {
        min-width: auto;
    }

    .navigation {
        margin-left: auto;
        margin-right: auto;
    }

    .study-options {
        grid-template-columns: 1fr 1fr;
    }

    .wide-card {
        grid-column: 1 / -1;
    }
}

/* =========================================================
   RESPONSIVE — MOBILE
   ========================================================= */

@media (max-width: 650px) {

    .header {
        height: 68px;
    }

    .header-inner {
        width: calc(100% - 24px);

        gap: 10px;
    }

    .logo {
        gap: 9px;
    }

    .logo h1 {
        width: 38px;
        height: 38px;

        border-radius: 10px;

        font-size: 19px;
    }

    .logo-text strong {
        font-size: 14px;
    }

    .logo-text span {
        font-size: 9px;
    }

    .navigation {
        display: none;
    }

    .header-actions {
        gap: 5px;
    }

    .header-button {
        padding: 0 10px;

        font-size: 11px;
    }

    .icon-button {
        width: 36px;

        font-size: 10px;
    }

    /* ---------- HERO ---------- */

    .hero {
        min-height: 470px;
    }

    .hero-content {
        width: calc(100% - 30px);
    }

    .hero h1 {
        font-size: 58px;
    }

    .hero-title {
        font-size: 17px;

        letter-spacing: 1px;
    }

    .hero-description {
        font-size: 13px;
    }

    /* ---------- SEARCH ---------- */

    .search-box {
        min-height: 58px;

        flex-wrap: wrap;

        padding: 5px;
    }

    .search-icon {
        width: 40px;
    }

    .search-box input {
        min-width: 0;

        height: 47px;

        font-size: 13px;
    }

    .search-box button {
        width: 100%;

        margin-top: 5px;

        height: 46px;
    }

    /* ---------- CONTENT ---------- */

    .content {
        width: calc(100% - 24px);

        margin: 50px auto;
    }

    .section-heading {
        display: block;
    }

    .section-heading > p {
        margin-top: 8px;
    }

    .study-options {
        grid-template-columns: 1fr;
    }

    .wide-card {
        grid-column: auto;
    }

    /* ---------- READING ---------- */

    .reading-header {
        align-items: center;

        gap: 10px;
    }

    .reading-header h2 {
        font-size: 23px;
    }

    .surah-number {
        font-size: 30px;
    }

    /* ---------- AYAH ---------- */

    .ayah-card {
        padding: 18px;
    }

    .arabic {
        padding: 27px 5px;

        font-size: 30px;

        line-height: 2.05;
    }

    .translation {
        padding: 14px;
    }

    .translation p {
        font-size: 14px;
    }

    .surah-bismillah {
        margin: 5px 0 5px;
    }

    .surah-bismillah .bismillah {
        font-size: 1.7rem;
    }

    /* ---------- FEATURES ---------- */

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

    .feature {
        border-right: 0;

        border-bottom: 1px solid var(--border);
    }

    .feature:last-child {
        border-bottom: 0;
    }

    /* ---------- FOOTER ---------- */

    .footer-inner {
        display: block;
    }

    .footer-links {
        margin-top: 20px;

        flex-wrap: wrap;
    }
}

/* =========================================================
   VERY SMALL DEVICES
   ========================================================= */

@media (max-width: 400px) {

    .header-inner {
        width: calc(100% - 18px);
    }

    .logo-text span {
        display: none;
    }

    .header-button {
        padding: 0 8px;
    }

    .hero h1 {
        font-size: 52px;
    }

    .hero-title {
        font-size: 15px;
    }

    .search-box input {
        font-size: 12px;
    }

    .ayah-top {
        align-items: flex-start;
    }
}


/* =========================================================
ABOUT PAGE — GLOBAL / SHARED SYSTEM
These styles extend the main site design.
Header, navigation, footer, theme and global colors
remain controlled by style.css.
========================================================= */

/* =========================================================
ABOUT PAGE GLOBAL BACKGROUND
========================================================= */

body {
background: var(--cream);
color: var(--text);
}

main {
width: 100%;
}

/* =========================================================
ABOUT HERO — SHARED SITE HERO STYLE
========================================================= */

.about-hero {
min-height: 500px;


position: relative;

display: flex;
align-items: center;
justify-content: center;

overflow: hidden;

padding: 80px 20px;

background:
    radial-gradient(
        circle at 15% 30%,
        rgba(60, 140, 85, 0.16),
        transparent 30%
    ),
    radial-gradient(
        circle at 85% 70%,
        rgba(185, 151, 91, 0.12),
        transparent 28%
    ),
    linear-gradient(
        135deg,
        var(--green-950),
        var(--green-900)
    );

color: #ffffff;


}

/* Decorative circles */

.about-hero::before {
content: "";


position: absolute;

width: 680px;
height: 680px;

left: -340px;
bottom: -430px;

border:
    1px solid
    rgba(255, 255, 255, 0.07);

border-radius: 50%;

pointer-events: none;


}

.about-hero::after {
content: "";


position: absolute;

width: 480px;
height: 480px;

right: -240px;
top: -240px;

border:
    1px solid
    rgba(255, 255, 255, 0.11);

border-radius: 50%;

pointer-events: none;


}

/* =========================================================
ABOUT HERO CONTENT
========================================================= */

.about-hero-content {
width: min(
850px,
calc(100% - 40px)
);


position: relative;

z-index: 2;

margin: 0 auto;

text-align: center;


}

.hero-bismillah {
margin-bottom: 18px;


color: #e8d6aa;

font-family:
    "Amiri",
    serif;

font-size:
    clamp(
        25px,
        3.5vw,
        36px
    );

line-height: 1.7;


}

.about-hero .hero-eyebrow {
display: inline-block;


margin-bottom: 15px;

color: #d8bd7d;

font-family:
    "Noto Sans",
    sans-serif;

font-size: 11px;

font-weight: 700;

letter-spacing: 1.8px;

text-transform: uppercase;


}

.about-hero h1 {
max-width: 850px;


margin:
    0 auto 20px;

color: #ffffff;

font-family:
    "Noto Sans Bengali",
    "Noto Sans",
    sans-serif;

font-size:
    clamp(
        35px,
        5vw,
        58px
    );

font-weight: 700;

line-height: 1.3;

letter-spacing: -0.02em;


}

.about-hero p {
max-width: 680px;


margin: 0 auto;

color:
    rgba(255, 255, 255, 0.68);

font-size: 15px;

line-height: 2;


}

/* =========================================================
SHARED ABOUT CONTENT CONTAINER
========================================================= */

.about-content {
width: min(
1180px,
calc(100% - 40px)
);


margin: 0 auto;

padding:
    90px 0
    100px;

}

/* =========================================================
ABOUT PAGE — MOBILE GLOBAL
========================================================= */

@media (max-width: 650px) {


.about-hero {
    min-height: 450px;

    padding:
        70px 15px;
}

.about-hero-content {
    width:
        calc(100% - 20px);
}

.hero-bismillah {
    font-size: 27px;

    margin-bottom: 13px;
}

.about-hero h1 {
    font-size: 31px;

    line-height: 1.4;
}

.about-hero p {
    font-size: 13px;

    line-height: 2;
}

.about-content {
    width:
        calc(100% - 30px);

    padding:
        60px 0
        70px;
}


}

/* =========================================================
ABOUT PAGE — HEADER LANGUAGE TOGGLE FIX
Matches the Home page alignment
========================================================= */

.header .header-button {
display: inline-flex;
align-items: center;
justify-content: center;


height: 36px;

padding: 0 13px;

line-height: 1;
text-align: center;
white-space: nowrap;

font-family:
    "Noto Sans Bengali",
    "Noto Sans",
    Arial,
    sans-serif;


}

/* Small optical correction for Bengali glyph positioning */
html[lang="bn"] .header .header-button {
padding-top: 1px;
}

.gold {
    color: #d0ae68;
}



