/* ==========================================================================
   IssaAlMasih.com - shared.css
   Shared design system. Loaded by every page.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS
   -------------------------------------------------------------------------- */

:root {
    /* Colors */
    --teal:            #1B5E4E;
    --teal-deep:       #144538;
    --teal-pale:       #E8F4F0;
    --gold:            #B8860B;
    --gold-light:      #F5E6C8;
    --gold-border:     #E8D5A3;
    --cream:           #FAFAF7;
    --cream-warm:      #FDF8E8;
    --dark:            #1A1A1A;
    --mid:             #444444;
    --mid-light:       #6B6B6B;
    --white:           #FFFFFF;
    --green-deep:      #2D6A4F;
    --brown-dark:      #5A3D00;

    /* Typography */
    --font-display:    'Amiri', 'Times New Roman', serif;
    --font-body:       'Lato', 'Helvetica Neue', sans-serif;

    --size-xs:         12px;
    --size-sm:         13px;
    --size-base:       14px;
    --size-body:       17px;
    --size-lead:       18px;
    --size-h5:         18px;
    --size-h4:         22px;
    --size-h3:         28px;
    --size-h2:         36px;
    --size-h1:         48px;

    --line-body:       1.9;
    --line-tight:      1.4;
    --line-arabic:     2.2;

    /* Space */
    --space-1:         4px;
    --space-2:         8px;
    --space-3:         12px;
    --space-4:         16px;
    --space-5:         24px;
    --space-6:         32px;
    --space-7:         48px;
    --space-8:         64px;
    --space-9:         96px;

    --radius-sm:       4px;
    --radius:          8px;
    --radius-lg:       16px;
    --radius-pill:     9999px;

    /* Layout */
    --content-max:     900px;
    --content-narrow:  720px;

    --shadow-sm:       0 1px 3px rgba(26, 26, 26, 0.06);
    --shadow:          0 4px 16px rgba(27, 94, 78, 0.08);
    --shadow-lg:       0 8px 32px rgba(27, 94, 78, 0.12);

    --ease:            cubic-bezier(0.4, 0, 0.2, 1);

    /* Geometric pattern - 8-pointed star on cream, teal at 4% opacity.
       Inlined so it never needs a network request. */
    --pattern-star: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%231B5E4E' stroke-opacity='0.08' stroke-width='0.8'%3E%3Cpath d='M40 8 L48 24 L64 24 L56 40 L64 56 L48 56 L40 72 L32 56 L16 56 L24 40 L16 24 L32 24 Z'/%3E%3Cpath d='M40 16 L44 28 L56 28 L50 40 L56 52 L44 52 L40 64 L36 52 L24 52 L30 40 L24 28 L36 28 Z'/%3E%3C/g%3E%3C/svg%3E");

    /* Same star but lighter - for use on teal backgrounds. */
    --pattern-star-light: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23FFFFFF' stroke-opacity='0.10' stroke-width='0.8'%3E%3Cpath d='M40 8 L48 24 L64 24 L56 40 L64 56 L48 56 L40 72 L32 56 L16 56 L24 40 L16 24 L32 24 Z'/%3E%3Cpath d='M40 16 L44 28 L56 28 L50 40 L56 52 L44 52 L40 64 L36 52 L24 52 L30 40 L24 28 L36 28 Z'/%3E%3C/g%3E%3C/svg%3E");
}


/* --------------------------------------------------------------------------
   2. RESET AND BASE
   -------------------------------------------------------------------------- */

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

html {
    font-size: 100%;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: var(--size-body);
    line-height: var(--line-body);
    color: var(--dark);
    background: var(--cream);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--teal);
    text-decoration: none;
    transition: color 200ms var(--ease);
}

a:hover {
    color: var(--gold);
}

button {
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

::selection {
    background: var(--gold-light);
    color: var(--brown-dark);
}


/* --------------------------------------------------------------------------
   3. TYPOGRAPHY
   -------------------------------------------------------------------------- */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 400;
    color: var(--teal);
    line-height: var(--line-tight);
    margin-bottom: var(--space-4);
}

h1 { font-size: var(--size-h1); letter-spacing: -0.01em; }
h2 { font-size: var(--size-h2); letter-spacing: -0.005em; }
h3 { font-size: var(--size-h3); }
h4 { font-size: var(--size-h4); }
h5 { font-size: var(--size-h5); }

p {
    margin-bottom: var(--space-5);
}

p:last-child {
    margin-bottom: 0;
}

.lead {
    font-size: var(--size-lead);
    color: var(--mid);
    font-weight: 300;
}

.small-caps {
    font-family: var(--font-body);
    font-size: var(--size-sm);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--gold);
    font-weight: 400;
}

.arabic {
    font-family: var(--font-display);
    font-size: 1.1em;
    line-height: var(--line-arabic);
    direction: rtl;
}


/* --------------------------------------------------------------------------
   4. LAYOUT
   -------------------------------------------------------------------------- */

.container {
    width: 100%;
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0 var(--space-5);
}

.container-narrow {
    max-width: var(--content-narrow);
}

section {
    padding: var(--space-8) 0;
}

.section-header {
    text-align: center;
    max-width: var(--content-narrow);
    margin: 0 auto var(--space-7);
}

.section-header h2 {
    margin-bottom: var(--space-4);
}

.section-intro {
    font-size: var(--size-lead);
    color: var(--mid);
    line-height: var(--line-body);
}


/* --------------------------------------------------------------------------
   5. GEOMETRIC PATTERNS AND DIVIDERS
   -------------------------------------------------------------------------- */

.pattern-bg {
    background-image: var(--pattern-star);
    background-size: 80px 80px;
}

.pattern-bg-teal {
    background-color: var(--teal);
    background-image: var(--pattern-star-light);
    background-size: 80px 80px;
}

/* Interlocking-circles divider - horizontal rule between sections. */
.divider-circles {
    width: 100%;
    height: 20px;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='20' viewBox='0 0 40 20'%3E%3Cg fill='none' stroke='%231B5E4E' stroke-opacity='0.25' stroke-width='1'%3E%3Ccircle cx='10' cy='10' r='6'/%3E%3Ccircle cx='30' cy='10' r='6'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-position: center;
    margin: var(--space-8) 0;
    opacity: 0.6;
}

/* Ornamental rosette - use once per page at most. */
.divider-rosette {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: var(--space-8) 0;
}

.divider-rosette::before {
    content: "";
    display: block;
    width: 64px;
    height: 64px;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%231B5E4E' stroke-width='1'%3E%3Ccircle cx='32' cy='32' r='28'/%3E%3Ccircle cx='32' cy='32' r='18'/%3E%3Cpath d='M32 4 L38 26 L60 32 L38 38 L32 60 L26 38 L4 32 L26 26 Z'/%3E%3C/g%3E%3Cg fill='none' stroke='%23B8860B' stroke-width='1'%3E%3Ccircle cx='32' cy='32' r='8'/%3E%3C/g%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}


/* --------------------------------------------------------------------------
   6. LOGO AND SITE NAME
   -------------------------------------------------------------------------- */

.site-logo {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1;
    text-decoration: none;
}

.site-logo:hover {
    opacity: 0.85;
}

.site-logo-arabic {
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--teal);
    direction: rtl;
    margin-bottom: 4px;
}

.site-logo-latin {
    font-family: var(--font-display);
    font-size: 28px;
    color: var(--gold);
    letter-spacing: 0.02em;
}


/* --------------------------------------------------------------------------
   7. HEADER AND NAVIGATION
   -------------------------------------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--cream);
    border-bottom: 1px solid var(--gold-border);
    transition: box-shadow 300ms var(--ease);
}

.site-header.scrolled {
    box-shadow: var(--shadow-sm);
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) var(--space-5);
    max-width: 1100px;
    margin: 0 auto;
    gap: var(--space-5);
}

.lang-bar {
    background: var(--teal-deep);
    padding: var(--space-2) var(--space-5);
    display: flex;
    justify-content: flex-end;
    gap: var(--space-3);
    font-size: var(--size-sm);
}

.lang-bar a {
    color: rgba(255, 255, 255, 0.75);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 11px;
    padding: 2px 4px;
}

.lang-bar a:hover,
.lang-bar a.active {
    color: var(--gold-light);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: var(--space-5);
}

.nav-link {
    font-family: var(--font-body);
    font-size: var(--size-base);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--teal);
    padding: var(--space-2) 0;
    position: relative;
    font-weight: 400;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 300ms var(--ease);
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
    transform: scaleX(1);
}

.nav-link[aria-current="page"] {
    color: var(--gold);
}

.nav-link[aria-current="page"]::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -8px;
    width: 4px;
    height: 4px;
    background: var(--gold);
    border-radius: 50%;
    transform: translateX(-50%);
}

/* Hamburger button - hidden on desktop, shown under 768px. */
.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    color: var(--teal);
}

.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
    content: "";
    display: block;
    width: 24px;
    height: 2px;
    background: currentColor;
    transition: transform 300ms var(--ease), opacity 200ms var(--ease);
    position: relative;
}

.nav-toggle-icon::before {
    position: absolute;
    top: -7px;
}

.nav-toggle-icon::after {
    position: absolute;
    top: 7px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon {
    background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after {
    top: 0;
    transform: rotate(-45deg);
}


/* --------------------------------------------------------------------------
   8. HERO SECTION
   -------------------------------------------------------------------------- */

.hero {
    background: var(--teal);
    background-image: var(--pattern-star-light);
    background-size: 80px 80px;
    color: var(--white);
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-9) var(--space-5);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero-with-image {
    background-image: var(--pattern-star-light),
                      linear-gradient(rgba(27, 94, 78, 0.78), rgba(27, 94, 78, 0.88));
    background-blend-mode: normal;
    background-size: 80px 80px, cover;
    background-position: center;
}

.hero-content {
    max-width: var(--content-narrow);
    position: relative;
    z-index: 1;
}

.hero-ayah-arabic {
    font-family: var(--font-display);
    font-size: 32px;
    line-height: var(--line-arabic);
    color: var(--white);
    direction: rtl;
    margin-bottom: var(--space-5);
}

.hero-ayah-english {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 20px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: var(--space-4);
}

.hero-reference {
    font-size: var(--size-sm);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--gold-light);
    margin-bottom: var(--space-6);
}

.hero-reference a {
    color: var(--gold-light);
    border-bottom: 1px solid transparent;
    transition: border-color 200ms var(--ease);
}

.hero-reference a:hover {
    border-bottom-color: var(--gold-light);
}

.hero-tagline {
    font-family: var(--font-body);
    font-weight: 300;
    font-style: italic;
    font-size: var(--size-lead);
    color: var(--gold-light);
    margin-top: var(--space-5);
}

/* Soft gradient fade at the bottom of the hero into the cream body. */
.hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 48px;
    background: linear-gradient(to bottom, transparent, var(--cream));
    pointer-events: none;
}


/* --------------------------------------------------------------------------
   9. CARDS
   -------------------------------------------------------------------------- */

.card {
    background: var(--white);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius);
    padding: var(--space-6);
    transition: transform 300ms var(--ease), box-shadow 300ms var(--ease);
    display: block;
    color: inherit;
    text-decoration: none;
    height: 100%;
}

a.card:hover,
.card.card-interactive:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold);
}

.card-title {
    font-family: var(--font-display);
    font-size: 20px;
    color: var(--teal);
    margin-bottom: var(--space-3);
    line-height: var(--line-tight);
}

.card-text {
    font-size: 15px;
    color: var(--mid);
    line-height: 1.7;
}

.card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-5);
}

@media (min-width: 480px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .card-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-6);
    }

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


/* --------------------------------------------------------------------------
   10. AYAH BLOCK
   -------------------------------------------------------------------------- */

.ayah {
    background: var(--cream-warm);
    border-left: 4px solid var(--gold);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: var(--space-5) var(--space-6);
    margin: var(--space-6) 0;
    position: relative;
}

.ayah-arabic {
    font-family: var(--font-display);
    font-size: 26px;
    line-height: var(--line-arabic);
    color: var(--teal);
    direction: rtl;
    text-align: right;
    margin-bottom: var(--space-4);
}

.ayah-english {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 19px;
    line-height: 1.9;
    color: var(--green-deep);
    margin-bottom: var(--space-3);
}

.ayah-ref {
    font-family: var(--font-body);
    font-size: var(--size-sm);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--gold);
    margin-top: var(--space-3);
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    align-items: center;
}

.ayah-ref a {
    color: var(--gold);
    border-bottom: 1px solid transparent;
    padding-bottom: 1px;
    transition: border-color 200ms var(--ease);
}

.ayah-ref a:hover {
    border-bottom-color: var(--gold);
}

.ayah-ref .ayah-ref-sep {
    color: var(--gold-border);
}

/* Injil / Bible passage - similar to ayah but deep blue border. */
.injil {
    background: #F4F7FB;
    border-left: 4px solid #1E3A8A;
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: var(--space-5) var(--space-6);
    margin: var(--space-6) 0;
}

.injil-text {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 19px;
    line-height: 1.9;
    color: #1E293B;
    margin-bottom: var(--space-3);
}

.injil-ref {
    font-family: var(--font-body);
    font-size: var(--size-sm);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #1E3A8A;
    margin-top: var(--space-3);
}


/* --------------------------------------------------------------------------
   11. ACCORDION
   -------------------------------------------------------------------------- */

.accordion {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.accordion-item {
    background: var(--cream);
    border-left: 3px solid var(--gold);
    border-radius: 0 var(--radius) var(--radius) 0;
    overflow: hidden;
    transition: background 400ms var(--ease), border-left-width 400ms var(--ease);
}

.accordion-item[open] {
    background: var(--white);
    border-left-width: 4px;
    box-shadow: var(--shadow);
}

.accordion-item > summary {
    padding: var(--space-5) var(--space-6);
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 17px;
    color: var(--teal);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    line-height: 1.5;
}

.accordion-item > summary::-webkit-details-marker {
    display: none;
}

.accordion-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    position: relative;
    transition: transform 400ms var(--ease);
}

.accordion-icon::before,
.accordion-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    background: var(--teal);
    transition: background 200ms var(--ease);
}

.accordion-icon::before {
    width: 14px;
    height: 2px;
    transform: translate(-50%, -50%);
}

.accordion-icon::after {
    width: 2px;
    height: 14px;
    transform: translate(-50%, -50%);
    transition: transform 400ms var(--ease);
}

.accordion-item[open] .accordion-icon {
    transform: rotate(45deg);
}

.accordion-item[open] .accordion-icon::before,
.accordion-item[open] .accordion-icon::after {
    background: var(--gold);
}

.accordion-body {
    padding: 0 var(--space-6) var(--space-6);
    background: var(--gold-light);
    background: linear-gradient(to bottom, rgba(245, 230, 200, 0.4), rgba(245, 230, 200, 0.1));
    font-size: var(--size-body);
    line-height: var(--line-body);
    color: var(--dark);
}

.accordion-body > *:first-child {
    padding-top: var(--space-4);
}


/* --------------------------------------------------------------------------
   12. LESSON-END INVITATION BLOCK
   -------------------------------------------------------------------------- */

.invitation {
    background: var(--teal);
    background-image: var(--pattern-star-light);
    background-size: 80px 80px;
    color: var(--white);
    padding: var(--space-7) var(--space-6);
    margin: var(--space-8) 0 0;
    border-radius: var(--radius);
    position: relative;
}

@media (min-width: 768px) {
    .invitation {
        padding: var(--space-7);
    }
}

.invitation-opening {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 20px;
    color: var(--gold-light);
    line-height: 1.6;
    margin-bottom: var(--space-5);
}

.invitation-body {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 16px;
    line-height: 1.8;
    color: var(--white);
}

.invitation-body ol {
    list-style: none;
    counter-reset: invitation;
    margin: var(--space-5) 0;
}

.invitation-body ol li {
    counter-increment: invitation;
    padding-left: var(--space-6);
    position: relative;
    margin-bottom: var(--space-3);
}

.invitation-body ol li::before {
    content: counter(invitation);
    position: absolute;
    left: 0;
    top: 0;
    font-family: var(--font-display);
    color: var(--gold-light);
    font-size: 18px;
    font-weight: 400;
}

.invitation-closing {
    text-align: center;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 18px;
    color: var(--gold-light);
    margin: var(--space-6) 0 var(--space-5);
    padding-top: var(--space-5);
    border-top: 1px solid rgba(245, 230, 200, 0.2);
}

.invitation-safety {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding-top: var(--space-4);
    border-top: 1px solid rgba(245, 230, 200, 0.15);
    line-height: 1.6;
}

.icon-lock {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 3px;
    color: var(--gold-light);
}


/* --------------------------------------------------------------------------
   13. WISDOM WARNING BLOCK
   -------------------------------------------------------------------------- */

.wisdom {
    background: var(--gold-light);
    border-left: 4px solid var(--gold);
    padding: var(--space-5) var(--space-6);
    margin: var(--space-7) 0;
    border-radius: 0 var(--radius) var(--radius) 0;
}

.wisdom p {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 17px;
    line-height: 1.8;
    color: var(--brown-dark);
    margin-bottom: var(--space-3);
}

.wisdom p:last-child {
    margin-bottom: 0;
}


/* --------------------------------------------------------------------------
   14. SHARING BUTTONS
   -------------------------------------------------------------------------- */

.share-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin: var(--space-5) 0;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    min-height: 44px;
    min-width: 120px;
    padding: var(--space-3) var(--space-5);
    border-radius: 24px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 400;
    color: var(--white);
    transition: filter 200ms var(--ease), transform 200ms var(--ease);
    line-height: 1;
}

.share-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    flex-shrink: 0;
}

.share-btn:hover {
    filter: brightness(0.9);
    color: var(--white);
    transform: translateY(-1px);
}

.share-btn-whatsapp { background: #25D366; }
.share-btn-telegram { background: #0088CC; }

.share-btn-copy {
    background: var(--white);
    color: var(--teal);
    border: 1px solid var(--gold-border);
}

.share-btn-copy:hover {
    background: var(--cream-warm);
    color: var(--teal);
}


/* --------------------------------------------------------------------------
   15. NAMES GRID
   -------------------------------------------------------------------------- */

.names-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
}

@media (min-width: 768px) {
    .names-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-5);
    }
}

.name-card {
    background: var(--white);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius);
    padding: var(--space-5) var(--space-4);
    text-align: center;
    transition: box-shadow 300ms var(--ease), transform 300ms var(--ease);
}

.name-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.name-arabic {
    font-family: var(--font-display);
    font-size: 28px;
    color: var(--teal);
    direction: rtl;
    line-height: 1.4;
    padding-bottom: var(--space-2);
}

.name-ornament {
    width: 40px;
    height: 1px;
    background: var(--gold);
    margin: var(--space-3) auto;
    position: relative;
}

.name-ornament::before,
.name-ornament::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 4px;
    height: 4px;
    background: var(--gold);
    border-radius: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.name-ornament::before { left: -6px; }
.name-ornament::after  { right: -6px; }

.name-title {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 16px;
    color: var(--teal);
    margin-bottom: var(--space-2);
}

.name-meaning {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 14px;
    color: var(--mid);
    line-height: 1.6;
}


/* --------------------------------------------------------------------------
   16. SIGN CARDS (Allah's Plan)
   -------------------------------------------------------------------------- */

.signs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
}

@media (min-width: 768px) {
    .signs-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-5);
    }
}

@media (min-width: 1024px) {
    .signs-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.sign-card {
    background: var(--white);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius);
    padding: var(--space-5);
    text-align: center;
    cursor: pointer;
    transition: box-shadow 300ms var(--ease), transform 300ms var(--ease), border-color 300ms var(--ease);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 180px;
}

.sign-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
    border-color: var(--gold);
}

.sign-card-fulfillment {
    border: 2px solid var(--gold);
    background: linear-gradient(180deg, var(--white) 0%, var(--cream-warm) 100%);
}

.sign-number {
    font-family: var(--font-body);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--gold);
    margin-bottom: var(--space-3);
}

.sign-prophet {
    font-family: var(--font-display);
    font-size: 24px;
    color: var(--teal);
    margin-bottom: var(--space-2);
    line-height: 1.3;
}

.sign-name {
    font-family: var(--font-body);
    font-weight: 300;
    font-style: italic;
    font-size: 16px;
    color: var(--mid);
    line-height: 1.5;
}

.sign-detail {
    max-height: 0;
    overflow: hidden;
    transition: max-height 500ms var(--ease);
    background: var(--white);
    border-radius: var(--radius);
    margin-top: 0;
}

.sign-detail[data-open="true"] {
    max-height: 4000px;
    margin-top: var(--space-4);
    padding: var(--space-6);
    border: 1px solid var(--gold-border);
    box-shadow: var(--shadow);
}


/* --------------------------------------------------------------------------
   17. PARABLE BLOCK
   -------------------------------------------------------------------------- */

.parable {
    background: var(--cream-warm);
    padding: var(--space-7) var(--space-6);
    border-radius: var(--radius);
    margin: var(--space-7) 0;
    position: relative;
    background-image: var(--pattern-star);
    background-size: 80px 80px;
}

.parable-label {
    font-family: var(--font-body);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--gold);
    margin-bottom: var(--space-3);
    text-align: center;
}

.parable-title {
    font-family: var(--font-display);
    font-size: 26px;
    color: var(--teal);
    text-align: center;
    margin-bottom: var(--space-6);
}

.parable-body {
    font-family: var(--font-display);
    font-size: 19px;
    line-height: 1.9;
    color: var(--dark);
    max-width: 640px;
    margin: 0 auto;
}

.parable-body p {
    margin-bottom: var(--space-4);
}


/* --------------------------------------------------------------------------
   18. FOOTER
   -------------------------------------------------------------------------- */

.site-footer {
    background: var(--teal);
    background-image: var(--pattern-star-light);
    background-size: 80px 80px;
    color: var(--white);
    padding: var(--space-8) var(--space-5);
    text-align: center;
}

.footer-ayah {
    font-family: var(--font-display);
    font-size: 18px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    max-width: 640px;
    margin: 0 auto var(--space-4);
}

.footer-arabic {
    font-family: var(--font-display);
    font-size: 22px;
    line-height: var(--line-arabic);
    color: rgba(255, 255, 255, 0.85);
    direction: rtl;
    margin-bottom: var(--space-5);
}

.footer-note {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: var(--space-5);
}


/* --------------------------------------------------------------------------
   19. QUIZ COMPONENT
   -------------------------------------------------------------------------- */

.quiz {
    background: var(--white);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius);
    padding: var(--space-6);
    margin: var(--space-7) 0;
}

.quiz-title {
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--teal);
    margin-bottom: var(--space-4);
    text-align: center;
}

.quiz-question {
    margin-bottom: var(--space-5);
}

.quiz-question-text {
    font-weight: 400;
    color: var(--dark);
    margin-bottom: var(--space-3);
    font-size: 17px;
    line-height: 1.6;
}

.quiz-option {
    display: block;
    padding: var(--space-3) var(--space-4);
    margin-bottom: var(--space-2);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    background: var(--cream);
    transition: background 200ms var(--ease), border-color 200ms var(--ease);
    line-height: 1.5;
    font-size: 15px;
}

.quiz-option:hover {
    background: var(--cream-warm);
    border-color: var(--gold);
}

.quiz-option input {
    margin-right: var(--space-3);
    accent-color: var(--teal);
}

.quiz-option.quiz-correct {
    background: var(--teal-pale);
    border-color: var(--teal);
    color: var(--teal);
    font-weight: 400;
}

.quiz-option.quiz-incorrect {
    background: #FBE9E7;
    border-color: #D84315;
    color: #BF360C;
}

.quiz-submit {
    display: inline-block;
    background: var(--teal);
    color: var(--white);
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-pill);
    font-size: 15px;
    letter-spacing: 0.05em;
    transition: background 200ms var(--ease);
    min-height: 44px;
}

.quiz-submit:hover {
    background: var(--teal-deep);
}

.quiz-result {
    margin-top: var(--space-5);
    padding: var(--space-5);
    background: var(--cream-warm);
    border-left: 4px solid var(--gold);
    border-radius: 0 var(--radius) var(--radius) 0;
    text-align: center;
}

.quiz-result-score {
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--teal);
    margin-bottom: var(--space-3);
}

.quiz-result-message {
    font-size: 15px;
    color: var(--mid);
    line-height: 1.6;
}

.quiz-completed-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--gold);
    font-size: 14px;
    font-weight: 400;
}


/* --------------------------------------------------------------------------
   20. FORMS
   -------------------------------------------------------------------------- */

.form-group {
    margin-bottom: var(--space-5);
}

.form-label {
    display: block;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 400;
    color: var(--teal);
    margin-bottom: var(--space-2);
    letter-spacing: 0.02em;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--dark);
    background: var(--white);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-sm);
    transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease);
    line-height: 1.5;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.15);
}

.form-textarea {
    min-height: 140px;
    resize: vertical;
    font-family: var(--font-body);
}

.form-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.form-submit {
    display: inline-block;
    background: var(--teal);
    color: var(--white);
    padding: var(--space-4) var(--space-7);
    border-radius: var(--radius-pill);
    font-size: 16px;
    letter-spacing: 0.05em;
    transition: background 200ms var(--ease), transform 150ms var(--ease);
    min-height: 48px;
    cursor: pointer;
}

.form-submit:hover {
    background: var(--teal-deep);
    transform: translateY(-1px);
}

.form-confirmation {
    background: var(--teal-pale);
    border-left: 4px solid var(--teal);
    padding: var(--space-6);
    border-radius: 0 var(--radius) var(--radius) 0;
    text-align: center;
}

.form-confirmation h3 {
    color: var(--teal);
    margin-bottom: var(--space-3);
}


/* --------------------------------------------------------------------------
   21. BUTTONS
   -------------------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-family: var(--font-body);
    font-size: 15px;
    letter-spacing: 0.03em;
    border-radius: var(--radius-pill);
    min-height: 44px;
    cursor: pointer;
    transition: background 200ms var(--ease), color 200ms var(--ease), transform 150ms var(--ease);
    line-height: 1;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--teal);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--teal-deep);
    color: var(--white);
    transform: translateY(-1px);
}

.btn-gold {
    background: var(--gold);
    color: var(--white);
}

.btn-gold:hover {
    background: #9A7109;
    color: var(--white);
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--teal);
    border-color: var(--gold-border);
}

.btn-ghost:hover {
    background: var(--cream-warm);
    color: var(--teal);
    border-color: var(--gold);
}


/* --------------------------------------------------------------------------
   22. PROGRESS DOTS (Lessons Library)
   -------------------------------------------------------------------------- */

.progress-dots {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    max-width: 560px;
    margin: 0 auto var(--space-6);
    padding: var(--space-5);
    background: var(--white);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius);
}

.progress-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gold-border);
    transition: background 300ms var(--ease), transform 300ms var(--ease);
}

.progress-dot.completed {
    background: var(--gold);
    transform: scale(1.2);
}

.progress-label {
    font-size: 13px;
    color: var(--mid);
    text-align: center;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: var(--space-3);
}

.progress-bar-thin {
    width: 100%;
    height: 2px;
    background: var(--gold-border);
    border-radius: 1px;
    overflow: hidden;
    margin: var(--space-5) 0;
}

.progress-bar-thin-fill {
    height: 100%;
    background: var(--gold);
    transition: width 600ms var(--ease);
}


/* --------------------------------------------------------------------------
   23. SCHOLAR CITATION
   -------------------------------------------------------------------------- */

.scholar {
    background: var(--white);
    border-left: 4px solid var(--teal);
    padding: var(--space-5) var(--space-6);
    margin: var(--space-5) 0;
    border-radius: 0 var(--radius) var(--radius) 0;
}

.scholar-name {
    font-family: var(--font-display);
    font-size: 18px;
    color: var(--teal);
    margin-bottom: var(--space-1);
}

.scholar-credential {
    font-size: 13px;
    color: var(--mid);
    letter-spacing: 0.05em;
    margin-bottom: var(--space-3);
    font-style: italic;
}

.scholar-quote {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 17px;
    line-height: 1.8;
    color: var(--dark);
}


/* --------------------------------------------------------------------------
   24. MOBILE NAVIGATION OVERLAY
   -------------------------------------------------------------------------- */

@media (max-width: 767px) {
    .nav-toggle {
        display: flex;
    }

    .site-nav {
        position: fixed;
        inset: 0;
        background: var(--gold);
        background-image: var(--pattern-star);
        background-size: 80px 80px;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: var(--space-6);
        opacity: 0;
        pointer-events: none;
        transition: opacity 300ms var(--ease);
        z-index: 99;
    }

    .site-nav[data-open="true"] {
        opacity: 1;
        pointer-events: auto;
    }

    .site-nav .nav-link {
        font-family: var(--font-display);
        font-size: 28px;
        letter-spacing: 0.02em;
        text-transform: none;
        color: var(--teal);
    }

    .site-nav .nav-link::after {
        background: var(--teal);
    }

    .site-nav .nav-link[aria-current="page"] {
        color: var(--teal-deep);
    }
}


/* --------------------------------------------------------------------------
   25. UTILITIES
   -------------------------------------------------------------------------- */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-teal { color: var(--teal); }
.text-mid { color: var(--mid); }

.mt-0 { margin-top: 0; }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }

.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }


/* --------------------------------------------------------------------------
   26. RTL OVERRIDES - Arabic and Urdu
   -------------------------------------------------------------------------- */

html[dir="rtl"] body {
    font-size: calc(var(--size-body) * 1.05);
    line-height: var(--line-arabic);
}

html[dir="rtl"] .site-header-inner,
html[dir="rtl"] .site-nav,
html[dir="rtl"] .share-row,
html[dir="rtl"] .lang-bar {
    flex-direction: row-reverse;
}

html[dir="rtl"] .ayah,
html[dir="rtl"] .injil,
html[dir="rtl"] .wisdom,
html[dir="rtl"] .accordion-item,
html[dir="rtl"] .scholar,
html[dir="rtl"] .form-confirmation {
    border-left: none;
}

html[dir="rtl"] .ayah,
html[dir="rtl"] .wisdom {
    border-right: 4px solid var(--gold);
    border-radius: var(--radius) 0 0 var(--radius);
}

html[dir="rtl"] .injil {
    border-right: 4px solid #1E3A8A;
    border-radius: var(--radius) 0 0 var(--radius);
}

html[dir="rtl"] .accordion-item {
    border-right: 3px solid var(--gold);
    border-radius: var(--radius) 0 0 var(--radius);
}

html[dir="rtl"] .accordion-item[open] {
    border-right-width: 4px;
}

html[dir="rtl"] .scholar {
    border-right: 4px solid var(--teal);
    border-radius: var(--radius) 0 0 var(--radius);
}

html[dir="rtl"] .form-confirmation {
    border-right: 4px solid var(--teal);
    border-radius: var(--radius) 0 0 var(--radius);
}

html[dir="rtl"] .ayah-english,
html[dir="rtl"] .injil-text {
    text-align: right;
    direction: rtl;
    font-style: normal;
    font-size: 22px;
    line-height: var(--line-arabic);
}

html[dir="rtl"] .ayah-arabic {
    font-size: 28px;
}

html[dir="rtl"] .invitation-body ol li {
    padding-left: 0;
    padding-right: var(--space-6);
}

html[dir="rtl"] .invitation-body ol li::before {
    left: auto;
    right: 0;
}

html[dir="rtl"] .site-logo {
    align-items: flex-end;
}

html[dir="rtl"] .nav-link[aria-current="page"]::before {
    left: auto;
    right: 50%;
    transform: translateX(50%);
}


/* --------------------------------------------------------------------------
   27. RESPONSIVE TYPE SCALE
   -------------------------------------------------------------------------- */

@media (max-width: 767px) {
    :root {
        --size-h1: 32px;
        --size-h2: 28px;
        --size-h3: 24px;
        --size-h4: 20px;
    }

    .hero-ayah-arabic {
        font-size: 24px;
    }

    .hero-ayah-english {
        font-size: 18px;
    }

    .ayah {
        padding: var(--space-5);
    }

    .ayah-arabic {
        font-size: 22px;
    }

    .ayah-english {
        font-size: 17px;
    }

    .parable {
        padding: var(--space-6) var(--space-5);
    }

    .parable-body {
        font-size: 17px;
    }
}


/* --------------------------------------------------------------------------
   28. ANIMATIONS
   -------------------------------------------------------------------------- */

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

.fade-in {
    animation: fadeInUp 600ms var(--ease) both;
}

.fade-in-delay-1 { animation-delay: 100ms; }
.fade-in-delay-2 { animation-delay: 200ms; }
.fade-in-delay-3 { animation-delay: 300ms; }

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}


/* --------------------------------------------------------------------------
   29. PRINT STYLES
   -------------------------------------------------------------------------- */

@media print {
    html, body {
        background: #FFFFFF;
        color: #000000;
        font-size: 12pt;
    }

    .site-header,
    .lang-bar,
    .site-footer,
    .nav-toggle,
    .site-nav,
    .share-row,
    .invitation,
    .quiz,
    .btn,
    .form-submit {
        display: none !important;
    }

    .ayah,
    .injil,
    .parable,
    .wisdom {
        page-break-inside: avoid;
        border-left: 2pt solid #000000;
        background: #FFFFFF !important;
        box-shadow: none !important;
    }

    h1, h2, h3, h4 {
        page-break-after: avoid;
        color: #000000;
    }

    a {
        color: #000000;
        text-decoration: underline;
    }

    a[href^="http"]::after {
        content: " (" attr(href) ")";
        font-size: 10pt;
    }
}

/* ==========================================================================
   END OF FILE
   ========================================================================== */
