/* ============================================================
   TELAGA ILMU — Main Stylesheet
   Design: Islamic, Elegant, Professional, Clean
   ============================================================ */

/* --- Variables --- */
:root {
    --green-dark:   #1b3d2f;
    --green-main:   #2d6a4f;
    --green-light:  #52b788;
    --gold:         #c9a227;
    --gold-light:   #e2c46b;
    --cream:        #f9f5ec;
    --cream-dark:   #f0e9d8;
    --white:        #ffffff;
    --text-dark:    #1a1a1a;
    --text-body:    #3d3d3d;
    --text-muted:   #7a7a7a;
    --border:       #e0d9cc;
    --shadow-sm:    0 2px 8px rgba(0,0,0,0.07);
    --shadow-md:    0 4px 20px rgba(0,0,0,0.10);
    --shadow-lg:    0 8px 40px rgba(0,0,0,0.13);
    --radius:       8px;
    --radius-lg:    14px;
    --transition:   0.25s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: 'Lato', system-ui, sans-serif;
    color: var(--text-body);
    background: var(--white);
    line-height: 1.7;
}

h1, h2, h3, h4, h5 {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--text-dark);
    line-height: 1.3;
}

a { color: var(--green-main); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }

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

ul { list-style: none; }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Top Bar --- */
.topbar {
    background: var(--green-dark);
    padding: 8px 0;
    text-align: center;
}

.topbar-arabic {
    font-family: 'Amiri', serif;
    font-size: 1.1rem;
    color: var(--gold-light);
    letter-spacing: 0.03em;
}

/* --- Header --- */
.site-header {
    background: var(--white);
    border-bottom: 2px solid var(--cream-dark);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--green-dark);
}

.logo:hover { color: var(--green-main); }

.logo-icon {
    width: 44px;
    height: 44px;
    color: var(--green-main);
}

.logo-icon svg { width: 100%; height: 100%; }

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--green-dark);
}

.logo-sub {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 700;
}

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

.main-nav a {
    color: var(--text-body);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 8px 14px;
    border-radius: var(--radius);
    transition: all var(--transition);
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 4px; left: 14px; right: 14px;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--green-dark);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    transform: scaleX(1);
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--green-dark);
    border-radius: 2px;
    transition: all var(--transition);
}

/* --- Hero Section --- */
.hero {
    background-color: var(--green-dark); /* fallback jika gambar belum load */
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 130px 0 130px;
    position: relative;
    z-index: 2; /* tutupi about-image yang naik ke atas */
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero::before { display: none; }

.hero-content {
    position: relative;
    max-width: 700px;
}

.hero-label {
    display: inline-block;
    background: rgba(201, 162, 39, 0.25);
    border: 1px solid var(--gold-light);
    color: var(--gold-light);
    font-size: 0.78rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    color: var(--white);
    margin-bottom: 16px;
}

.hero-arabic {
    font-family: 'Amiri', serif;
    font-size: 1.6rem;
    color: var(--gold-light);
    margin-bottom: 20px;
    display: block;
}

.hero p {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.85);
    max-width: 560px;
    margin-bottom: 36px;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
    transition: all var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--gold);
    color: var(--green-dark);
    border-color: var(--gold);
}

.btn-primary:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
    color: var(--green-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201,162,39,0.4);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.6);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--white);
    color: var(--white);
}

.btn-green {
    background: var(--green-main);
    color: var(--white);
    border-color: var(--green-main);
}

.btn-green:hover {
    background: var(--green-dark);
    border-color: var(--green-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* --- Section --- */
.section { padding: 80px 0; }
.section-alt { background: var(--cream); }

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-label {
    display: inline-block;
    color: var(--gold);
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 10px;
}

.section-header h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    color: var(--green-dark);
    margin-bottom: 14px;
}

.section-header p {
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto;
}

.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 12px 0;
}

.section-divider::before,
.section-divider::after {
    content: '';
    width: 50px;
    height: 1px;
    background: var(--gold);
}

.section-divider span {
    color: var(--gold);
    font-size: 1rem;
}

/* --- Stats Strip --- */
.stats-strip {
    background: var(--green-dark);
    padding: 40px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 32px;
    text-align: center;
}

.stat-item h3 {
    font-size: 2.2rem;
    color: var(--gold);
    margin-bottom: 4px;
}

.stat-item p {
    color: rgba(255,255,255,0.75);
    font-size: 0.9rem;
}

/* --- Feature Strip (4 Pilar) --- */
.feature-strip {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0 0 12px 0;
    margin-top: -70px;
    margin-bottom: 0;
    position: relative;
    z-index: 10;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 48px rgba(0,0,0,0.16);
    border: 1px solid rgba(0,0,0,0.05);
    overflow: hidden;
}

.feature-item {
    padding: 28px 18px;
    text-align: center;
    border-right: 1px solid var(--border);
    transition: background var(--transition);
}

.feature-item:last-child { border-right: none; }
.feature-item:hover { background: var(--cream); }

.feature-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 14px;
    color: var(--green-main);
    background: var(--cream);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition), color var(--transition);
}

.feature-item:hover .feature-icon {
    background: var(--green-main);
    color: var(--white);
}

.feature-icon svg { width: 22px; height: 22px; }

.feature-item h4 {
    font-family: 'Playfair Display', serif;
    font-size: 0.92rem;
    color: var(--green-dark);
    margin-bottom: 5px;
}

.feature-item p {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.55;
}

/* --- Cards Grid --- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
}

.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--green-light);
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--green-main), var(--green-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.3);
    font-size: 3rem;
    font-family: 'Amiri', serif;
}

.card-body { padding: 22px; }

.card-tag {
    display: inline-block;
    background: var(--cream-dark);
    color: var(--green-main);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 50px;
    margin-bottom: 10px;
}

.card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--green-dark);
}

.card h3 a { color: inherit; }
.card h3 a:hover { color: var(--gold); }

.card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    padding-top: 14px;
    margin-top: 6px;
}

.card-meta a {
    color: var(--green-main);
    font-weight: 700;
    font-size: 0.82rem;
}

/* --- E-Book Card --- */
.ebook-card {
    display: flex;
    gap: 20px;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.ebook-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--gold);
}

.ebook-cover {
    width: 90px;
    min-width: 90px;
    height: 120px;
    background: linear-gradient(160deg, var(--green-main) 0%, var(--green-dark) 100%);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Amiri', serif;
    font-size: 2rem;
    color: var(--gold-light);
    box-shadow: 3px 3px 12px rgba(0,0,0,0.2);
    position: relative;
}

.ebook-cover::after {
    content: '';
    position: absolute;
    left: 0; top: 8px; bottom: 8px;
    width: 4px;
    background: rgba(255,255,255,0.2);
    border-radius: 0 2px 2px 0;
}

.ebook-info { flex: 1; }

.ebook-info h3 {
    font-size: 1.05rem;
    color: var(--green-dark);
    margin-bottom: 6px;
}

.ebook-info p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 14px;
}

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

.infaq-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.infaq-min {
    font-weight: 700;
    color: var(--green-main);
    font-size: 0.95rem;
}

/* --- About Section (split: teks kiri putih, gambar kanan) --- */
.about-section {
    position: relative;
    overflow: visible; /* biarkan gambar naik ke belakang feature strip */
    padding-top: 80px;
    padding-bottom: 80px;
}

/* Gambar naik jauh ke atas — hero (z-index:2) menutupi bagian yang naik */
.about-full-image {
    position: absolute;
    top: -125px;
    right: 0;
    width: 70%;
    height: calc(100% + 125px);
    z-index: 0;
}

.about-full-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

/* Gradient putih lebar menutup tepi kiri gambar sepenuhnya */
.about-full-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, #ffffff 0%, #ffffff 15%, transparent 60%);
    z-index: 1;
    pointer-events: none;
}

/* Pastikan teks di container ada di atas gambar */
.about-section .container {
    position: relative;
    z-index: 2;
}

.about-text {
    max-width: 500px;
}

.about-section .about-text h2 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    color: var(--green-dark);
    margin-bottom: 24px;
}
.about-section .about-text p  { margin-bottom: 14px; color: var(--text-muted); }

.about-text .arabic-quote {
    font-family: 'Amiri', serif;
    font-size: 1.4rem;
    color: var(--gold);
    border-right: 3px solid var(--gold);
    padding-right: 16px;
    margin: 20px 0;
    line-height: 1.8;
}

/* Panel hadits di pojok kanan bawah */
.about-hadith-panel {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50%;
    padding: 56px 48px 32px;
    background: linear-gradient(to top, rgba(8,24,16,0.97) 45%, transparent 100%);
    text-align: center;
    z-index: 2;
    pointer-events: none;
}

/* Garis emas dekoratif */
.about-overlay-divider {
    width: 44px;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 0 auto 18px;
    border-radius: 1px;
}

.about-hadith-arabic {
    font-family: 'Amiri', serif;
    font-size: 1.45rem;
    color: #f5d87e;
    line-height: 2;
    margin-bottom: 4px;
    text-shadow: 0 1px 10px rgba(0,0,0,0.5);
}

.about-hadith-trans {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.85);
    font-style: italic;
    line-height: 1.7;
    margin: 10px 0 6px;
}

.about-hadith-src {
    font-size: 0.75rem;
    color: var(--gold);
    letter-spacing: 0.08em;
    font-weight: 600;
    opacity: 0.9;
}

.about-image-placeholder {
    font-family: 'Amiri', serif;
    font-size: 5rem;
    color: var(--green-main);
    opacity: 0.3;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

/* --- Page Hero (inner pages) --- */
.page-hero {
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-main) 100%);
    padding: 60px 0;
    text-align: center;
    color: var(--white);
}

.page-hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: var(--white);
    margin-bottom: 10px;
}

.page-hero p {
    color: rgba(255,255,255,0.8);
    font-size: 1rem;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 16px;
}

.breadcrumb a { color: var(--gold-light); }
.breadcrumb span { color: rgba(255,255,255,0.4); }

/* --- Article List --- */
.article-list { display: flex; flex-direction: column; gap: 24px; }

.article-item {
    display: flex;
    gap: 24px;
    padding: 24px;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.article-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
    border-color: var(--green-light);
}

.article-number {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--cream-dark);
    font-weight: 700;
    line-height: 1;
    min-width: 48px;
    padding-top: 4px;
}

.article-content h3 { font-size: 1.15rem; color: var(--green-dark); margin-bottom: 8px; }
.article-content h3 a { color: inherit; }
.article-content h3 a:hover { color: var(--gold); }
.article-content p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 12px; }

/* Konten artikel dari CKEditor — kembalikan styling list, heading, blockquote */
.prose ul, .prose ol { padding-left: 1.6em; margin-bottom: 1em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose ul ul { list-style: circle; }
.prose ul ul ul { list-style: square; }
.prose li { margin-bottom: 0.4em; }
.prose h2 { font-size: 1.45rem; color: var(--green-dark); margin: 1.6em 0 0.6em; }
.prose h3 { font-size: 1.2rem; color: var(--green-dark); margin: 1.4em 0 0.5em; }
.prose h4 { font-size: 1.05rem; color: var(--green-dark); margin: 1.2em 0 0.4em; }
.prose blockquote { border-left: 3px solid var(--gold); padding-left: 1em; margin: 1.2em 0; color: var(--text-muted); font-style: italic; }
.prose strong { color: var(--text-dark); }
.prose a { color: var(--green-main); text-decoration: underline; }
.prose table { width: 100%; border-collapse: collapse; margin-bottom: 1em; font-size: 0.9rem; }
.prose th, .prose td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; }
.prose th { background: var(--cream); font-weight: 700; }

.article-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag {
    background: var(--cream-dark);
    color: var(--green-main);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* --- Infaq Form --- */
.infaq-section {
    background: var(--cream);
    padding: 80px 0;
}

.infaq-box {
    max-width: 540px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.infaq-box h3 {
    color: var(--green-dark);
    font-size: 1.5rem;
    margin-bottom: 8px;
    text-align: center;
}

.infaq-box .subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 28px;
}

.nominal-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.nominal-btn {
    padding: 10px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition);
    color: var(--text-body);
    text-align: center;
}

.nominal-btn:hover,
.nominal-btn.active {
    border-color: var(--green-main);
    background: var(--green-main);
    color: var(--white);
}

.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color var(--transition);
    color: var(--text-dark);
}

.form-group input:focus {
    outline: none;
    border-color: var(--green-main);
}

.input-prefix {
    position: relative;
}

.input-prefix span {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 700;
    color: var(--text-muted);
}

.input-prefix input { padding-left: 42px; }

.infaq-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 12px;
}

/* --- Tentang Page --- */
.about-full { display: grid; grid-template-columns: 1fr 2fr; gap: 50px; align-items: start; }

.about-profile {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.profile-img {
    width: 100%;
    height: 280px;
    background: linear-gradient(135deg, var(--green-main), var(--green-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Amiri', serif;
    font-size: 5rem;
    color: var(--gold-light);
}

.profile-info { padding: 24px; }
.profile-info h3 { color: var(--green-dark); margin-bottom: 4px; }
.profile-info .title { color: var(--gold); font-size: 0.85rem; font-weight: 700; margin-bottom: 12px; }
.profile-info p { font-size: 0.88rem; color: var(--text-muted); }

.about-detail h2 { color: var(--green-dark); font-size: 2rem; margin-bottom: 16px; }
.about-detail p { color: var(--text-muted); margin-bottom: 16px; line-height: 1.8; }
.about-detail h3 { color: var(--green-main); font-size: 1.2rem; margin: 28px 0 12px; }

.visi-misi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 32px; }

.vm-box {
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.vm-box.visi { background: var(--green-dark); color: var(--white); }
.vm-box.misi { background: var(--cream); }
.vm-box h3 { font-size: 1rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 12px; }
.vm-box.visi h3 { color: var(--gold-light); }
.vm-box.misi h3 { color: var(--green-main); }
.vm-box p, .vm-box li { font-size: 0.9rem; line-height: 1.7; }
.vm-box.visi p { color: rgba(255,255,255,0.85); }
.vm-box.misi p, .vm-box.misi li { color: var(--text-muted); }
.vm-box.misi ul { padding-left: 16px; list-style: disc; }
.vm-box.misi li { margin-bottom: 6px; }

/* --- Kajian Cards --- */
.kajian-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.kajian-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

.kajian-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--green-light);
}

.kajian-card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--green-main), var(--green-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.kajian-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.kajian-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.kajian-card-body h3 {
    color: var(--green-dark);
    font-size: 1rem;
    margin-bottom: 10px;
    line-height: 1.5;
}

.kajian-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.kajian-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.kajian-meta-item svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: var(--green-main);
}

.kajian-card-body p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
    flex: 1;
}

/* --- Share Buttons (Ebook) --- */
.share-wrap {
    position: relative;
    display: inline-block;
}

.share-btn {
    background: var(--cream);
    border: 1px solid var(--border);
    color: var(--green-dark);
    padding: 8px 14px;
    border-radius: var(--radius);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all var(--transition);
}

.share-btn:hover {
    background: var(--cream-dark);
    border-color: var(--green-light);
}

.share-btn svg { width: 14px; height: 14px; }

.share-dropdown {
    display: none;
    position: absolute;
    bottom: calc(100% + 8px);
    right: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    min-width: 180px;
    z-index: 100;
    overflow: hidden;
}

.share-dropdown.open { display: block; }

.share-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    font-size: 0.85rem;
    color: var(--text-dark);
    text-decoration: none;
    cursor: pointer;
    transition: background var(--transition);
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.share-option:hover { background: var(--cream); }
.share-option svg { width: 16px; height: 16px; flex-shrink: 0; }
.share-option.copied { color: var(--green-main); font-weight: 700; }

/* --- Footer --- */
.site-footer { background: var(--green-dark); color: rgba(255,255,255,0.75); }

.footer-top { padding: 60px 0 40px; }

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 48px;
}

.footer-col h4 {
    font-family: 'Playfair Display', serif;
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-col p { font-size: 0.88rem; line-height: 1.8; margin-bottom: 12px; }

.footer-arabic {
    font-family: 'Amiri', serif;
    font-size: 0.95rem;
    color: var(--gold-light);
    line-height: 1.8;
    direction: rtl;
    text-align: right;
}

.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a { color: rgba(255,255,255,0.65); font-size: 0.88rem; transition: color var(--transition); }
.footer-col ul a:hover { color: var(--gold-light); }

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.88rem;
}

.footer-contact svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--gold); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p { font-size: 0.82rem; color: rgba(255,255,255,0.4); }

/* --- Utility --- */
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-8 { margin-bottom: 8px; }

/* ============================================================
   RESPONSIVE — Mobile First
   ============================================================ */

/* Tablet / small laptop */
@media (max-width: 900px) {
    .about-full        { grid-template-columns: 1fr; }
    /* About section — tablet */
    .about-full-image  { width: 50%; }
    .about-text        { max-width: 54%; }
    .about-hadith-panel { width: 50%; padding: 40px 28px 24px; }
    .visi-misi-grid    { grid-template-columns: 1fr; }
    .footer-grid       { grid-template-columns: 1fr 1fr; }
    .section           { padding: 64px 0; }
    .section-header    { margin-bottom: 44px; }
    .feature-grid      { grid-template-columns: repeat(2, 1fr); }
    .feature-item:nth-child(2) { border-right: none; }
    .feature-item      { border-bottom: 1px solid var(--border); }
    .feature-item:nth-child(3),
    .feature-item:nth-child(4) { border-bottom: none; }
    .feature-strip     { margin-top: -60px; padding-bottom: 8px; }
}

/* Mobile */
@media (max-width: 768px) {
    /* ---- Nav ---- */
    .nav-toggle { display: flex; }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: var(--white);
        border-top: 2px solid var(--cream-dark);
        padding: 12px 24px 20px;
        box-shadow: var(--shadow-md);
        z-index: 99;
    }

    .main-nav.open { display: block; }

    .main-nav ul   { flex-direction: column; gap: 2px; }
    .main-nav a    { display: block; padding: 12px 4px; font-size: 0.95rem; }

    /* ---- Header ---- */
    .header-inner  { padding: 12px 0; }
    .logo-name     { font-size: 1.05rem; }

    /* ---- Hero ---- */
    .hero          { padding: 70px 0 110px; min-height: 480px; background-attachment: scroll; }
    .hero p        { font-size: 0.95rem; margin-bottom: 28px; }
    .hero-arabic   { font-size: 1.3rem; }
    .hero-buttons  { flex-direction: column; gap: 10px; }
    .hero-buttons .btn { width: 100%; justify-content: center; }

    /* ---- Feature Strip ---- */
    .feature-strip { margin-top: -50px; padding-bottom: 8px; }
    .feature-grid  { grid-template-columns: repeat(2, 1fr); }
    .feature-item  { border-bottom: 1px solid var(--border); }
    .feature-item:nth-child(2) { border-right: none; }
    .feature-item:nth-child(3),
    .feature-item:nth-child(4) { border-bottom: none; }

    /* ---- About image ---- */
    /* About section — mobile: image jadi blok penuh di bawah teks */
    .about-section     { padding-bottom: 0; }
    .about-text        { max-width: 100%; }
    .about-full-image  {
        position: relative;
        top: 0;
        width: 100%;
        height: 360px;
        margin-top: 40px;
    }
    .about-full-image::before { display: none; }
    .about-hadith-panel {
        width: 100%;
        padding: 48px 24px 28px;
    }

    /* ---- Sections ---- */
    .section        { padding: 50px 0; }
    .section-header { margin-bottom: 36px; }
    .section-header h2 { font-size: 1.5rem; }
    .section-header p  { font-size: 0.9rem; }

    /* ---- Stats ---- */
    .stats-strip   { padding: 32px 0; }
    .stats-grid    { gap: 20px; }
    .stat-item h3  { font-size: 1.8rem; }

    /* ---- Cards ---- */
    .cards-grid    { grid-template-columns: 1fr; gap: 20px; }

    /* ---- Artikel ---- */
    .article-item   { flex-direction: column; gap: 10px; }
    .article-number { font-size: 1.5rem; }

    /* ---- E-Book ---- */
    .ebook-card       { flex-direction: column; }
    .nominal-options  { grid-template-columns: repeat(2, 1fr); }

    /* ---- Footer ---- */
    .footer-grid   { grid-template-columns: 1fr; gap: 28px; }
    .footer-arabic { font-size: 1rem; }

    /* ---- Tanya Jawab ---- */
    .qa-item-header { flex-direction: column; align-items: flex-start; gap: 8px; }

    /* ---- Container ---- */
    .container     { padding: 0 16px; }
}

/* Small mobile */
@media (max-width: 480px) {
    .topbar-arabic   { font-size: 0.95rem; }
    .logo-icon       { width: 36px; height: 36px; }
    .logo-name       { font-size: 0.95rem; }
    .logo-sub        { font-size: 0.62rem; }

    .hero            { padding: 56px 0 90px; min-height: 420px; }
    .feature-strip   { margin-top: -40px; padding-bottom: 8px; }
    .hero-arabic     { font-size: 1.15rem; }

    .stats-grid      { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .stat-item h3    { font-size: 1.6rem; }
    .stat-item p     { font-size: 0.8rem; }

    .section         { padding: 40px 0; }
    .btn             { padding: 11px 20px; font-size: 0.85rem; }

    /* Ebook nominal buttons stacked */
    .nominal-options { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}
