/*
Theme Name: Hikami Scholar Theme
Theme URI: https://usthadabusaalihalhikami.com
Author: Abu Saalih Al-Hikami
Author URI: https://usthadabusaalihalhikami.com
Description: A professional Islamic scholar website theme for Ustad Abu Saalih Al-Hikami featuring articles, audio lectures, video lectures, books, free courses with quizzes, achievements, and photo gallery.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hikami
Tags: islamic, scholar, education, blog, audio, video, courses
*/

/* ===========================
   CSS VARIABLES
=========================== */
:root {
    --gold: #C4973A;
    --gold-light: #E8BE6A;
    --gold-dark: #8B6520;
    --green: #1B4332;
    --green-mid: #2D6A4F;
    --green-light: #40916C;
    --cream: #FAF6EF;
    --cream-dark: #F0E8D5;
    --white: #FFFFFF;
    --text-dark: #1A1A1A;
    --text-mid: #4A4A4A;
    --text-muted: #7A7A7A;
    --border: #E0D5C0;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.14);
    --radius: 3px;
    --font-arabic: 'Amiri', 'Traditional Arabic', serif;
    --font-body: 'Lato', 'Segoe UI', sans-serif;
}

/* ===========================
   RESET & BASE
=========================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
    font-family: var(--font-body);
    background: var(--cream);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: var(--green); transition: color .2s; }
a:hover { color: var(--gold-dark); }
ul { list-style: none; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-arabic); line-height: 1.3; }

.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 30px;
}

.section { padding: 70px 0; }
.section-alt { background: var(--cream); }
.section-white { background: var(--white); }

.section-header { margin-bottom: 50px; }
.section-tag {
    display: inline-block;
    background: var(--cream-dark);
    color: var(--gold-dark);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-left: 3px solid var(--gold);
    margin-bottom: 12px;
    font-weight: 700;
    font-family: var(--font-body);
}
.section-title {
    font-family: var(--font-arabic);
    font-size: 34px;
    color: var(--green);
    line-height: 1.2;
    margin-bottom: 10px;
}
.section-subtitle {
    font-size: 15px;
    color: var(--text-muted);
    max-width: 600px;
    line-height: 1.8;
}
.section-divider {
    width: 60px;
    height: 3px;
    background: var(--gold);
    margin-top: 18px;
}

/* ===========================
   BUTTONS
=========================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 30px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: var(--font-body);
    cursor: pointer;
    border: none;
    transition: all .2s;
    border-radius: var(--radius);
}
.btn-primary { background: var(--gold); color: #fff; }
.btn-primary:hover { background: var(--gold-light); color: #fff; transform: translateY(-1px); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-mid); color: #fff; transform: translateY(-1px); }
.btn-outline {
    background: transparent;
    color: var(--green);
    border: 2px solid var(--green);
}
.btn-outline:hover { background: var(--green); color: #fff; }
.btn-outline-gold {
    background: transparent;
    color: var(--gold);
    border: 2px solid var(--gold);
}
.btn-outline-gold:hover { background: var(--gold); color: #fff; }

/* ===========================
   TOPBAR
=========================== */
.topbar {
    background: var(--green);
    padding: 8px 0;
}
.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.topbar-left {
    font-size: 12px;
    color: rgba(255,255,255,0.65);
    letter-spacing: 0.4px;
}
.topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}
.topbar-contact {
    display: flex;
    gap: 16px;
}
.topbar-contact a {
    color: rgba(255,255,255,0.65);
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.topbar-contact a:hover { color: var(--gold-light); }
.topbar-contact a svg { width: 13px; height: 13px; }
.social-links {
    display: flex;
    gap: 8px;
}
.social-links a {
    width: 26px;
    height: 26px;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.65);
    font-size: 12px;
    transition: all .2s;
}
.social-links a:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
.social-links a svg { width: 13px; height: 13px; }

/* ===========================
   HEADER
=========================== */
.site-header {
    background: var(--white);
    border-bottom: 3px solid var(--gold);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
}
.site-logo {
    display: flex;
    align-items: center;
    gap: 18px;
}
.logo-emblem {
    width: 68px;
    height: 68px;
    background: var(--green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--gold);
    flex-shrink: 0;
    position: relative;
}
.logo-emblem::after {
    content: '';
    position: absolute;
    inset: 7px;
    border: 1px solid rgba(196,151,58,0.35);
    border-radius: 50%;
}
.logo-emblem span {
    font-family: var(--font-arabic);
    font-size: 26px;
    color: var(--gold-light);
    z-index: 1;
}
.logo-text h1 {
    font-family: var(--font-arabic);
    font-size: 20px;
    color: var(--green);
    line-height: 1.2;
}
.logo-text .arabic-name {
    font-family: var(--font-arabic);
    font-size: 14px;
    color: var(--gold-dark);
    direction: rtl;
    margin-top: 2px;
}
.logo-text small {
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-family: var(--font-body);
    display: block;
    margin-top: 3px;
}

/* ===========================
   NAVIGATION
=========================== */
.main-nav ul {
    display: flex;
    align-items: center;
    gap: 2px;
}
.main-nav ul li { position: relative; }
.main-nav ul li a {
    display: block;
    color: var(--text-mid);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 10px 14px;
    font-family: var(--font-body);
    border-bottom: 2px solid transparent;
    transition: all .2s;
    border-radius: 2px;
}
.main-nav ul li a:hover,
.main-nav ul li.current-menu-item > a,
.main-nav ul li.current-page-ancestor > a {
    color: var(--green);
    border-bottom-color: var(--gold);
}

/* Dropdown */
.main-nav ul li ul {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-top: 3px solid var(--gold);
    min-width: 220px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all .2s;
    z-index: 100;
    flex-direction: column;
    gap: 0;
}
.main-nav ul li:hover > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.main-nav ul li ul li a {
    font-size: 12px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
    letter-spacing: 0.5px;
}
.main-nav ul li ul li:last-child a { border-bottom: none; }
.main-nav ul li ul li a:hover { background: var(--cream); color: var(--green); border-bottom-color: var(--border); }

/* Mobile toggle */
.nav-toggle {
    display: none;
    background: none;
    border: 2px solid var(--green);
    padding: 8px 10px;
    cursor: pointer;
    border-radius: var(--radius);
    flex-direction: column;
    gap: 5px;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--green);
    transition: all .3s;
}

/* ===========================
   ANNOUNCEMENT BAR
=========================== */
.announcement-bar {
    background: var(--gold);
    padding: 10px 0;
    overflow: hidden;
}
.announcement-inner {
    display: flex;
    align-items: center;
    gap: 16px;
}
.ann-badge {
    background: var(--green);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 5px 12px;
    white-space: nowrap;
    flex-shrink: 0;
    border-radius: 2px;
    font-family: var(--font-body);
}
.ann-ticker {
    overflow: hidden;
    flex: 1;
}
.ann-ticker p {
    font-size: 13px;
    font-weight: 700;
    color: var(--green);
    white-space: nowrap;
    animation: ticker 30s linear infinite;
    font-family: var(--font-body);
}
@keyframes ticker {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* ===========================
   HERO SECTION
=========================== */
.hero-section {
    background: var(--green);
    position: relative;
    overflow: hidden;
    min-height: 520px;
    display: flex;
    align-items: center;
}
.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(196,151,58,1) 39px, rgba(196,151,58,1) 40px),
        repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(196,151,58,1) 39px, rgba(196,151,58,1) 40px);
}
.hero-inner {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 60px;
    align-items: center;
    padding: 60px 0;
    position: relative;
    z-index: 2;
}
.hero-image-wrap { position: relative; }
.hero-image {
    width: 100%;
    aspect-ratio: 3/4;
    border: 4px solid var(--gold);
    border-radius: 4px;
    overflow: hidden;
    background: var(--green-mid);
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; }
.hero-image .img-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.3);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-body);
}
.hero-image .img-placeholder svg { width: 60px; height: 60px; opacity: 0.3; }
.hero-frame {
    position: absolute;
    top: -10px; right: -10px;
    width: 100%; height: 100%;
    border: 2px solid rgba(196,151,58,0.3);
    border-radius: 4px;
    pointer-events: none;
}
.hero-text { color: #fff; }
.hero-tag {
    display: inline-block;
    background: rgba(196,151,58,0.2);
    color: var(--gold-light);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-left: 3px solid var(--gold);
    margin-bottom: 18px;
    font-family: var(--font-body);
    font-weight: 700;
}
.hero-name {
    font-family: var(--font-arabic);
    font-size: 52px;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 8px;
}
.hero-arabic-name {
    font-family: var(--font-arabic);
    font-size: 28px;
    color: var(--gold-light);
    direction: rtl;
    margin-bottom: 20px;
}
.hero-desc {
    font-size: 15px;
    color: rgba(255,255,255,0.75);
    line-height: 1.9;
    max-width: 500px;
    margin-bottom: 30px;
}
.hero-stats {
    display: flex;
    gap: 36px;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.hero-stat-num {
    font-family: var(--font-arabic);
    font-size: 30px;
    color: var(--gold-light);
    line-height: 1;
}
.hero-stat-label {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 4px;
    font-family: var(--font-body);
}
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }

/* ===========================
   ORNAMENT
=========================== */
.ornament-bar {
    background: var(--cream-dark);
    padding: 12px 0;
    text-align: center;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.ornament-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    max-width: 400px;
    margin: 0 auto;
}
.ornament-line span {
    font-family: var(--font-arabic);
    font-size: 22px;
    color: var(--gold);
}
.ornament-line::before,
.ornament-line::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* ===========================
   CARDS
=========================== */
.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all .2s;
}
.card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}
.card-thumb {
    height: 190px;
    background: var(--cream-dark);
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.card:hover .card-thumb img { transform: scale(1.04); }
.card-thumb-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(0,0,0,0.15);
}
.card-thumb-placeholder svg { width: 44px; height: 44px; }
.card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--gold);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 2px;
    font-family: var(--font-body);
}
.card-badge-green { background: var(--green); }
.card-body { padding: 22px; }
.card-category {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold-dark);
    margin-bottom: 8px;
    font-family: var(--font-body);
}
.card-title {
    font-family: var(--font-arabic);
    font-size: 19px;
    color: var(--text-dark);
    line-height: 1.4;
    margin-bottom: 10px;
}
.card-title a { color: var(--text-dark); }
.card-title a:hover { color: var(--green); }
.card-excerpt {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 16px;
}
.card-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 12px;
    color: var(--text-muted);
    padding-top: 14px;
    border-top: 1px solid var(--border);
    font-family: var(--font-body);
}
.card-meta svg { width: 13px; height: 13px; color: var(--gold); flex-shrink: 0; }

/* Grid layouts */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-4-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

/* ===========================
   AUDIO PLAYER
=========================== */
.audio-list { display: flex; flex-direction: column; gap: 12px; }
.audio-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 18px;
    transition: all .2s;
}
.audio-item:hover { box-shadow: var(--shadow); border-color: var(--gold); }
.audio-play-btn {
    width: 46px;
    height: 46px;
    background: var(--green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
    border: none;
    transition: all .2s;
}
.audio-play-btn:hover { background: var(--green-mid); transform: scale(1.05); }
.audio-play-btn svg { width: 18px; height: 18px; fill: var(--gold-light); margin-left: 2px; }
.audio-info { flex: 1; min-width: 0; }
.audio-title { font-size: 14px; font-weight: 700; color: var(--text-dark); margin-bottom: 4px; font-family: var(--font-body); }
.audio-sub { font-size: 12px; color: var(--text-muted); font-family: var(--font-body); }
.audio-bar { height: 4px; background: var(--border); border-radius: 2px; margin-top: 10px; cursor: pointer; position: relative; }
.audio-progress { height: 100%; background: var(--gold); border-radius: 2px; transition: width .1s; }
.audio-duration { font-size: 12px; color: var(--text-muted); white-space: nowrap; font-family: var(--font-body); font-weight: 700; }
.audio-download { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; background: var(--cream-dark); border-radius: 50%; color: var(--text-muted); transition: all .2s; }
.audio-download:hover { background: var(--gold); color: #fff; }
.audio-download svg { width: 15px; height: 15px; }

/* ===========================
   YOUTUBE GRID
=========================== */
.yt-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all .2s;
}
.yt-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.yt-thumb {
    position: relative;
    aspect-ratio: 16/9;
    background: var(--green);
    overflow: hidden;
    cursor: pointer;
}
.yt-thumb img { width: 100%; height: 100%; object-fit: cover; }
.yt-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--green), #0d2b1d);
}
.yt-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.2);
    transition: background .2s;
}
.yt-card:hover .yt-play-overlay { background: rgba(0,0,0,0.4); }
.yt-play-btn {
    width: 48px;
    height: 48px;
    background: rgba(255,0,0,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s;
}
.yt-card:hover .yt-play-btn { transform: scale(1.1); }
.yt-play-btn svg { width: 20px; height: 20px; fill: #fff; margin-left: 3px; }
.yt-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.8);
    color: #fff;
    font-size: 11px;
    padding: 3px 7px;
    border-radius: 2px;
    font-family: var(--font-body);
    font-weight: 700;
}
.yt-body { padding: 14px 16px; }
.yt-title { font-size: 13.5px; font-weight: 700; color: var(--text-dark); line-height: 1.5; margin-bottom: 6px; font-family: var(--font-body); }
.yt-title a { color: var(--text-dark); }
.yt-title a:hover { color: var(--green); }
.yt-meta { font-size: 11px; color: var(--text-muted); font-family: var(--font-body); }

/* ===========================
   BOOK CARDS
=========================== */
.book-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    transition: all .2s;
}
.book-card:hover { box-shadow: var(--shadow-hover); }
.book-spine { width: 12px; background: var(--green); flex-shrink: 0; }
.book-cover {
    width: 100px;
    background: var(--green-mid);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-right: 1px solid var(--border);
    position: relative;
}
.book-cover img { width: 100%; height: 100%; object-fit: cover; }
.book-cover .book-cover-placeholder svg { width: 36px; height: 36px; color: rgba(255,255,255,0.3); }
.book-info { padding: 18px 20px; flex: 1; }
.book-title { font-family: var(--font-arabic); font-size: 17px; color: var(--text-dark); margin-bottom: 5px; }
.book-author { font-size: 12px; color: var(--text-muted); margin-bottom: 12px; font-family: var(--font-body); }
.book-desc { font-size: 13px; color: var(--text-mid); line-height: 1.7; margin-bottom: 14px; }
.book-dl {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--gold);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 8px 16px;
    border-radius: var(--radius);
    font-family: var(--font-body);
    transition: all .2s;
}
.book-dl:hover { background: var(--gold-dark); color: #fff; }
.book-dl svg { width: 15px; height: 15px; }

/* ===========================
   COURSE CARDS
=========================== */
.course-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all .2s;
}
.course-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.course-banner {
    background: var(--green);
    padding: 28px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}
.course-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(45deg, transparent, transparent 20px, rgba(255,255,255,0.02) 20px, rgba(255,255,255,0.02) 21px);
}
.course-icon {
    width: 60px;
    height: 60px;
    background: rgba(196,151,58,0.2);
    border: 2px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}
.course-icon svg { width: 28px; height: 28px; color: var(--gold-light); }
.course-arabic { font-family: var(--font-arabic); font-size: 22px; color: var(--gold-light); direction: rtl; z-index: 1; }
.course-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.course-title { font-family: var(--font-arabic); font-size: 18px; color: var(--green); margin-bottom: 10px; }
.course-desc { font-size: 13px; color: var(--text-muted); line-height: 1.8; margin-bottom: 20px; flex: 1; }
.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}
.course-lessons { font-size: 12px; color: var(--text-muted); font-family: var(--font-body); }
.badge-free {
    background: #E8F5E9;
    color: #1B5E20;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 5px 12px;
    border: 1px solid #A5D6A7;
    border-radius: 20px;
    font-family: var(--font-body);
}

/* ===========================
   ACHIEVEMENTS
=========================== */
.achievement-item {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 22px;
    background: var(--white);
    border: 1px solid var(--border);
    border-left: 4px solid var(--gold);
    border-radius: var(--radius);
    transition: all .2s;
}
.achievement-item:hover { box-shadow: var(--shadow); }
.ach-icon {
    width: 48px;
    height: 48px;
    background: var(--cream-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ach-icon svg { width: 22px; height: 22px; color: var(--gold); }
.ach-text h4 { font-size: 15px; font-weight: 700; color: var(--text-dark); margin-bottom: 5px; font-family: var(--font-body); }
.ach-text p { font-size: 13px; color: var(--text-muted); line-height: 1.7; font-family: var(--font-body); }
.ach-year {
    display: inline-block;
    margin-top: 8px;
    font-size: 11px;
    font-weight: 700;
    color: var(--gold-dark);
    letter-spacing: 1px;
    font-family: var(--font-body);
}

/* ===========================
   GALLERY
=========================== */
.gallery-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border);
    margin-bottom: 30px;
    overflow-x: auto;
}
.gallery-tab {
    padding: 12px 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    white-space: nowrap;
    transition: all .2s;
    font-family: var(--font-body);
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
}
.gallery-tab:hover, .gallery-tab.active {
    color: var(--green);
    border-bottom-color: var(--gold);
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.gallery-item {
    aspect-ratio: 1;
    background: var(--cream-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gallery-item.wide { grid-column: span 2; aspect-ratio: 2/1; }
.gallery-item.tall { grid-row: span 2; aspect-ratio: 1/2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(27,67,50,0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
}
.gallery-item:hover .gallery-overlay { background: rgba(27,67,50,0.55); }
.gallery-overlay svg { width: 28px; height: 28px; color: rgba(255,255,255,0); transition: color .2s; }
.gallery-item:hover .gallery-overlay svg { color: #fff; }
.gallery-placeholder { color: rgba(0,0,0,0.15); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.gallery-placeholder svg { width: 32px; height: 32px; }
.gallery-placeholder span { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; font-family: var(--font-body); }

/* ===========================
   ABOUT PAGE
=========================== */
.about-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 60px;
    align-items: start;
}
.about-photo-wrap { position: sticky; top: 100px; }
.about-photo {
    width: 100%;
    border: 4px solid var(--gold);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 20px;
}
.about-photo img { width: 100%; display: block; }
.about-photo .photo-placeholder {
    aspect-ratio: 3/4;
    background: var(--green-mid);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.2);
}
.about-photo .photo-placeholder svg { width: 70px; height: 70px; }
.about-social { display: flex; flex-direction: column; gap: 10px; }
.about-social a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 13px;
    color: var(--text-mid);
    font-family: var(--font-body);
    transition: all .2s;
}
.about-social a:hover { background: var(--green); color: #fff; border-color: var(--green); }
.about-social a svg { width: 18px; height: 18px; }
.about-content h2 { font-family: var(--font-arabic); font-size: 34px; color: var(--green); margin-bottom: 8px; }
.about-content .arabic-sub { font-family: var(--font-arabic); font-size: 20px; color: var(--gold-dark); direction: rtl; margin-bottom: 24px; }
.about-content p { font-size: 15px; color: var(--text-mid); line-height: 1.9; margin-bottom: 18px; }
.credential-list { margin-top: 30px; display: flex; flex-direction: column; gap: 12px; }
.cred-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-mid);
    padding: 12px 16px;
    background: var(--cream);
    border-radius: var(--radius);
    font-family: var(--font-body);
}
.cred-item svg { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; }

/* ===========================
   QUIZ
=========================== */
.quiz-wrap {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.quiz-header {
    background: var(--green);
    padding: 20px 24px;
}
.quiz-header h3 { font-family: var(--font-arabic); font-size: 18px; color: var(--gold-light); margin-bottom: 4px; }
.quiz-header p { font-size: 12px; color: rgba(255,255,255,0.6); font-family: var(--font-body); }
.quiz-progress { height: 4px; background: rgba(255,255,255,0.15); }
.quiz-progress-fill { height: 100%; background: var(--gold); transition: width .3s; }
.quiz-body { padding: 28px 24px; }
.quiz-question { font-size: 16px; font-weight: 700; color: var(--text-dark); margin-bottom: 20px; line-height: 1.6; font-family: var(--font-body); }
.quiz-options { display: flex; flex-direction: column; gap: 10px; }
.quiz-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 14px;
    color: var(--text-mid);
    transition: all .2s;
    background: var(--white);
    font-family: var(--font-body);
}
.quiz-option:hover { border-color: var(--gold); background: var(--cream); }
.quiz-option.selected { border-color: var(--green); background: rgba(27,67,50,0.05); }
.quiz-option.correct { border-color: #4CAF50; background: #E8F5E9; color: #1B5E20; }
.quiz-option.wrong { border-color: #f44336; background: #FFEBEE; color: #B71C1C; }
.opt-label {
    width: 28px;
    height: 28px;
    border: 1.5px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
    font-family: var(--font-body);
}
.quiz-footer { padding: 0 24px 24px; display: flex; justify-content: space-between; align-items: center; }
.quiz-counter { font-size: 12px; color: var(--text-muted); font-family: var(--font-body); }

/* ===========================
   SINGLE POST
=========================== */
.post-hero {
    background: var(--green);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}
.post-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image: repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(196,151,58,1) 39px, rgba(196,151,58,1) 40px), repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(196,151,58,1) 39px, rgba(196,151,58,1) 40px);
}
.post-hero-content { position: relative; z-index: 2; }
.post-category {
    display: inline-block;
    background: rgba(196,151,58,0.2);
    color: var(--gold-light);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-left: 3px solid var(--gold);
    margin-bottom: 16px;
    font-family: var(--font-body);
    font-weight: 700;
}
.post-hero h1 { font-family: var(--font-arabic); font-size: 40px; color: #fff; max-width: 720px; line-height: 1.3; margin-bottom: 16px; }
.post-meta-bar { display: flex; gap: 20px; align-items: center; font-size: 13px; color: rgba(255,255,255,0.65); font-family: var(--font-body); }
.post-meta-bar svg { width: 14px; height: 14px; }
.post-content-area { padding: 60px 0; }
.post-layout { display: grid; grid-template-columns: 1fr 320px; gap: 50px; align-items: start; }
.post-body { font-size: 16px; line-height: 1.9; color: var(--text-mid); }
.post-body h2 { font-family: var(--font-arabic); font-size: 26px; color: var(--green); margin: 36px 0 16px; }
.post-body h3 { font-family: var(--font-arabic); font-size: 20px; color: var(--green); margin: 28px 0 12px; }
.post-body p { margin-bottom: 20px; }
.post-body blockquote {
    border-left: 4px solid var(--gold);
    background: var(--cream);
    padding: 20px 24px;
    margin: 28px 0;
    font-family: var(--font-arabic);
    font-size: 18px;
    color: var(--green);
    border-radius: 0 var(--radius) var(--radius) 0;
}
.post-body ul, .post-body ol { padding-left: 24px; margin-bottom: 20px; }
.post-body ul { list-style: disc; }
.post-body ol { list-style: decimal; }
.post-body li { margin-bottom: 8px; }
.post-sidebar { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 24px; }
.sidebar-widget { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.sidebar-widget-title {
    background: var(--cream-dark);
    padding: 12px 18px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold-dark);
    border-bottom: 1px solid var(--border);
    font-family: var(--font-body);
}
.sidebar-widget-body { padding: 18px; }

/* ===========================
   NEWSLETTER
=========================== */
.newsletter-section {
    background: var(--green);
    padding: 70px 0;
    position: relative;
    overflow: hidden;
}
.newsletter-section::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image: repeating-linear-gradient(45deg, transparent, transparent 20px, rgba(196,151,58,1) 20px, rgba(196,151,58,1) 21px);
}
.newsletter-inner {
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 580px;
    margin: 0 auto;
}
.newsletter-inner h2 { font-family: var(--font-arabic); font-size: 34px; color: #fff; margin-bottom: 10px; }
.newsletter-inner p { font-size: 15px; color: rgba(255,255,255,0.7); margin-bottom: 30px; line-height: 1.7; }
.newsletter-form { display: flex; gap: 0; max-width: 420px; margin: 0 auto; }
.newsletter-form input {
    flex: 1;
    padding: 14px 18px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-size: 14px;
    outline: none;
    border-radius: var(--radius) 0 0 var(--radius);
    font-family: var(--font-body);
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.5); }
.newsletter-form button {
    padding: 14px 22px;
    background: var(--gold);
    color: #fff;
    border: none;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    font-family: var(--font-body);
    border-radius: 0 var(--radius) var(--radius) 0;
    transition: background .2s;
}
.newsletter-form button:hover { background: var(--gold-light); }

/* ===========================
   FOOTER
=========================== */
.site-footer { background: #111; color: rgba(255,255,255,0.65); }
.footer-top { padding: 60px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand h3 { font-family: var(--font-arabic); font-size: 22px; color: var(--gold-light); margin-bottom: 12px; }
.footer-brand p { font-size: 13px; line-height: 1.9; color: rgba(255,255,255,0.5); margin-bottom: 20px; }
.footer-quran { font-family: var(--font-arabic); font-size: 18px; color: rgba(196,151,58,0.55); direction: rtl; margin-bottom: 6px; }
.footer-quran-trans { font-size: 12px; color: rgba(255,255,255,0.3); font-style: italic; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.5);
    transition: all .2s;
}
.footer-social a:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
.footer-social a svg { width: 16px; height: 16px; }
.footer-col h4 {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 20px;
    font-family: var(--font-body);
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    transition: color .2s;
    font-family: var(--font-body);
}
.footer-col ul li a:hover { color: var(--gold-light); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 22px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.3); font-family: var(--font-body); }
.footer-arabic { font-family: var(--font-arabic); font-size: 16px; color: rgba(196,151,58,0.4); direction: rtl; }

/* ===========================
   BREADCRUMB
=========================== */
.breadcrumb-bar {
    background: var(--cream-dark);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
}
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); font-family: var(--font-body); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--green); }
.breadcrumb .sep { color: var(--gold); }
.breadcrumb .current { color: var(--green); font-weight: 700; }

/* ===========================
   PAGE HERO
=========================== */
.page-hero {
    background: var(--green);
    padding: 50px 0;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image: repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(196,151,58,1) 39px, rgba(196,151,58,1) 40px), repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(196,151,58,1) 39px, rgba(196,151,58,1) 40px);
}
.page-hero-content { position: relative; z-index: 2; }
.page-hero h1 { font-family: var(--font-arabic); font-size: 40px; color: #fff; margin-bottom: 8px; }
.page-hero p { font-size: 15px; color: rgba(255,255,255,0.7); max-width: 560px; line-height: 1.7; }

/* ===========================
   PAGINATION
=========================== */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 50px; }
.pagination a, .pagination span {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-mid);
    font-family: var(--font-body);
    transition: all .2s;
}
.pagination a:hover { background: var(--green); color: #fff; border-color: var(--green); }
.pagination .current { background: var(--gold); color: #fff; border-color: var(--gold); }

/* ===========================
   FILTER TABS
=========================== */
.filter-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border);
    margin-bottom: 36px;
    overflow-x: auto;
}
.filter-tab {
    padding: 12px 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
    cursor: pointer;
    border: none;
    background: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    white-space: nowrap;
    transition: all .2s;
    font-family: var(--font-body);
}
.filter-tab:hover, .filter-tab.active { color: var(--green); border-bottom-color: var(--gold); }

/* ===========================
   SEARCH BAR
=========================== */
.search-bar {
    display: flex;
    gap: 0;
    margin-bottom: 36px;
    max-width: 500px;
}
.search-bar input {
    flex: 1;
    padding: 12px 18px;
    border: 1px solid var(--border);
    background: var(--white);
    font-size: 14px;
    color: var(--text-dark);
    outline: none;
    border-radius: var(--radius) 0 0 var(--radius);
    font-family: var(--font-body);
}
.search-bar input:focus { border-color: var(--gold); }
.search-bar button {
    padding: 12px 18px;
    background: var(--green);
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 0 var(--radius) var(--radius) 0;
    transition: background .2s;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 13px;
}
.search-bar button:hover { background: var(--green-mid); }
.search-bar button svg { width: 16px; height: 16px; }

/* ===========================
   CONTACT PAGE
=========================== */
.contact-layout { display: grid; grid-template-columns: 1fr 380px; gap: 50px; }
.contact-form-wrap { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; }
.contact-form-wrap h3 { font-family: var(--font-arabic); font-size: 24px; color: var(--green); margin-bottom: 24px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; font-family: var(--font-body); }
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    background: var(--cream);
    font-size: 14px;
    color: var(--text-dark);
    border-radius: var(--radius);
    font-family: var(--font-body);
    outline: none;
    transition: border-color .2s;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--gold); background: var(--white); }
.form-group textarea { min-height: 120px; resize: vertical; }
.contact-info { display: flex; flex-direction: column; gap: 16px; }
.contact-info-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.contact-info-icon {
    width: 44px;
    height: 44px;
    background: var(--cream-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.contact-info-icon svg { width: 20px; height: 20px; color: var(--gold); }
.contact-info-text h4 { font-size: 14px; font-weight: 700; color: var(--text-dark); margin-bottom: 4px; font-family: var(--font-body); }
.contact-info-text p { font-size: 13px; color: var(--text-muted); font-family: var(--font-body); line-height: 1.6; }

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 1100px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 900px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .about-layout { grid-template-columns: 1fr; }
    .about-photo-wrap { position: static; }
    .post-layout { grid-template-columns: 1fr; }
    .post-sidebar { position: static; }
    .hero-inner { grid-template-columns: 1fr; gap: 30px; }
    .hero-image-wrap { max-width: 240px; }
    .contact-layout { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .container { padding: 0 20px; }
    .grid-3, .grid-4, .grid-4-3 { grid-template-columns: 1fr; }
    .grid-2 { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-item.wide, .gallery-item.tall { grid-column: auto; grid-row: auto; aspect-ratio: 1; }
    .main-nav { display: none; }
    .main-nav.open { display: block; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); border-bottom: 3px solid var(--gold); box-shadow: 0 8px 20px rgba(0,0,0,0.1); padding: 16px 0; z-index: 999; }
    .main-nav.open ul { flex-direction: column; gap: 0; padding: 0 20px; }
    .main-nav.open ul li a { padding: 12px 0; border-bottom: 1px solid var(--border); }
    .main-nav.open ul li ul { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; background: var(--cream); padding: 8px 0; }
    .nav-toggle { display: flex; }
    .site-header { position: relative; }
    .topbar-right { display: none; }
    .hero-name { font-size: 36px; }
    .hero-stats { gap: 20px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
    .newsletter-form { flex-direction: column; }
    .newsletter-form input, .newsletter-form button { border-radius: var(--radius); }
    .book-card { flex-direction: column; }
    .book-spine { width: 100%; height: 8px; }
    .book-cover { width: 100%; height: 120px; }
    .section { padding: 50px 0; }
    .page-hero { padding: 36px 0; }
    .page-hero h1 { font-size: 30px; }
    .post-hero h1 { font-size: 28px; }
}
@media (max-width: 480px) {
    .hero-name { font-size: 28px; }
    .hero-arabic-name { font-size: 20px; }
    .hero-buttons { flex-direction: column; }
    .hero-buttons .btn { justify-content: center; }
}
