/* ============================================================
   MASJID E TAWHEED — Complete Design System
   Theme: Ivory, Gold, Deep Brown | Islamic Premium
   ============================================================ */

/* --- CSS Variables (Light Mode) --- */
:root {
    --bg: #FAF5E9;
    --bg-alt: #F3ECD8;
    --bg-card: #FFFFFF;
    --color-primary: #3E2B1A;
    --color-secondary: #C5A059;
    --color-secondary-light: #E4C880;
    --color-text: #4A3320;
    --color-muted: #7A6350;
    --color-border: rgba(197, 160, 89, 0.25);
    --color-light: #FFFFFF;
    --navbar-bg: rgba(250, 245, 233, 0.95);
    --navbar-shadow: 0 2px 20px rgba(62, 43, 26, 0.1);
    --shadow: 0 8px 32px rgba(62, 43, 26, 0.10);
    --shadow-hover: 0 16px 48px rgba(62, 43, 26, 0.18);
    --radius: 16px;
    --transition: all 0.35s cubic-bezier(.4, 0, .2, 1);
    --font-heading: 'Cinzel', serif;
    --font-body: 'Outfit', sans-serif;
    --font-arabic: 'Amiri', 'Scheherazade New', serif;
    --font-urdu: 'Noto Nastaliq Urdu', serif;
    --geometric-opacity: 0.04;
}

/* --- Dark Mode --- */
html.dark {
    --bg: #1A1208;
    --bg-alt: #231709;
    --bg-card: #2A1E0F;
    --color-primary: #F7EEDB;
    --color-secondary: #C5A059;
    --color-secondary-light: #E4C880;
    --color-text: #E0D0B5;
    --color-muted: #A08060;
    --color-border: rgba(197, 160, 89, 0.2);
    --color-light: #F7EEDB;
    --navbar-bg: rgba(26, 18, 8, 0.97);
    --navbar-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 16px 48px rgba(0, 0, 0, 0.5);
    --geometric-opacity: 0.06;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--color-text);
    line-height: 1.7;
    overflow-x: hidden;
    transition: background 0.4s, color 0.4s;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* --- Geometric Background Pattern --- */
.geo-bg {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M30 0 L60 30 L30 60 L0 30 Z' fill='none' stroke='%23C5A059' stroke-width='0.5'/%3E%3Ccircle cx='30' cy='30' r='10' fill='none' stroke='%23C5A059' stroke-width='0.5'/%3E%3C/svg%3E");
    background-size: 60px 60px;
}

/* --- Typography --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    line-height: 1.2;
}

.arabic {
    font-family: var(--font-arabic);
    direction: rtl;
    line-height: 2.2;
}

.section-label {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--color-secondary);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    color: var(--color-primary);
    margin-bottom: 16px;
}

.section-desc {
    color: var(--color-muted);
    font-size: 1.05rem;
    max-width: 560px;
}

/* --- Layout Utilities --- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-pad {
    padding: 90px 0;
}

.section-pad-sm {
    padding: 60px 0;
}

.text-center {
    text-align: center;
}

.text-center .section-desc {
    margin: 0 auto;
}

.gold {
    color: var(--color-secondary);
}

.divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 50px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--color-border);
}

.divider-icon {
    color: var(--color-secondary);
    font-size: 1.1rem;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 1px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.btn-gold {
    background: var(--color-secondary);
    color: #fff;
}

.btn-gold:hover {
    background: #B8913A;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(197, 160, 89, 0.35);
}

.btn-outline {
    background: transparent;
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: var(--bg);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 9px 20px;
    font-size: 0.82rem;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: var(--navbar-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--navbar-shadow);
    padding: 10px 0;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo img {
    height: 75px;
    transition: var(--transition);
}

.navbar.scrolled .nav-logo img {
    height: 56px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    letter-spacing: 1px;
    color: var(--color-text);
    padding: 8px 14px;
    border-radius: 8px;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(197, 160, 89, 0.12);
    color: var(--color-secondary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-dark-toggle {
    background: none;
    border: 1.5px solid var(--color-border);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-secondary);
    font-size: 1rem;
    transition: var(--transition);
}

.btn-dark-toggle:hover {
    background: rgba(197, 160, 89, 0.12);
    transform: rotate(20deg);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 6px;
    background: none;
    border: none;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--color-primary);
    border-radius: 4px;
    transition: var(--transition);
}

.hamburger.open span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* Mobile Nav Drawer */
.nav-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    right: -100%;
    width: min(320px, 85vw);
    height: auto;
    background: var(--navbar-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid var(--color-border);
    z-index: 999;
    display: flex;
    flex-direction: column;
    padding: 100px 30px 50px;
    gap: 8px;
    transition: right 0.4s cubic-bezier(.4, 0, .2, 1);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
}

.nav-drawer.open {
    right: 0;
}

.nav-drawer .nav-link {
    font-size: 1rem;
    padding: 12px 16px;
    border-radius: 12px;
}

.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 998;
    display: none;
    backdrop-filter: blur(2px);
}

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

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--bg);
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg-img {
    position: absolute;
    inset: 0;
    background-image: url('../images/hero-mosque.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.06;
}

.hero-bg-geo {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cpath d='M40 0 L80 40 L40 80 L0 40 Z' fill='none' stroke='%23C5A059' stroke-width='0.6'/%3E%3Ccircle cx='40' cy='40' r='14' fill='none' stroke='%23C5A059' stroke-width='0.6'/%3E%3C/svg%3E");
    background-size: 80px 80px;
    opacity: var(--geometric-opacity);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-arabic {
    font-family: var(--font-arabic);
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--color-secondary);
    direction: rtl;
    margin-bottom: 8px;
    animation: fadeUp 0.8s ease both;
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 4rem);
    color: var(--color-primary);
    animation: fadeUp 0.8s 0.1s ease both;
    line-height: 1.1;
    white-space: nowrap;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--color-muted);
    max-width: 480px;
    margin: 18px 0 36px;
    animation: fadeUp 0.8s 0.2s ease both;
}

.hero-btns {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    animation: fadeUp 0.8s 0.3s ease both;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    animation: fadeUp 0.9s 0.2s ease both;
}

.hero-mosque-img {
    max-height: 520px;
    width: auto;
    mix-blend-mode: multiply;
    filter: drop-shadow(0 30px 60px rgba(62, 43, 26, 0.15));
    animation: float 7s ease-in-out infinite;
}

/* ============================================================
   DATE-TIME BANNER
   ============================================================ */
.date-banner {
    background: var(--bg-alt);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding: 14px 0;
}

.date-banner-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.date-banner-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 0.88rem;
    letter-spacing: 0.8px;
    color: var(--color-text);
}

.date-banner-item i {
    color: var(--color-secondary);
    font-size: 0.9rem;
}

.date-banner-divider {
    color: var(--color-secondary);
    font-size: 0.7rem;
    opacity: 0.6;
}

/* ============================================================
   TICKER / ANNOUNCEMENT BAR
   ============================================================ */
.ticker-bar {
    background: var(--color-primary);
    color: var(--bg);
    padding: 10px 0;
    overflow: hidden;
}

.ticker-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    white-space: nowrap;
    animation: ticker 40s linear infinite;
}

.ticker-label {
    background: var(--color-secondary);
    color: #fff;
    padding: 2px 14px;
    border-radius: 50px;
    font-size: 0.78rem;
    letter-spacing: 2px;
    font-family: var(--font-heading);
    flex-shrink: 0;
}

.ticker-item {
    font-size: 0.9rem;
    opacity: 0.9;
}

.ticker-sep {
    color: var(--color-secondary);
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ============================================================
   PRAYER TIMES
   ============================================================ */
.prayer-section {
    background: var(--color-primary);
    position: relative;
    overflow: hidden;
}

.prayer-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cpath d='M40 0 L80 40 L40 80 L0 40 Z' fill='none' stroke='%23C5A059' stroke-width='0.8'/%3E%3C/svg%3E");
    background-size: 80px 80px;
    opacity: 0.07;
}

.prayer-section .section-title,
.prayer-section .section-label,
.prayer-section .section-desc {
    color: var(--bg);
}

.prayer-section .section-label {
    color: var(--color-secondary);
}

.prayer-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    margin-top: 40px;
    padding-bottom: 20px;
}

.prayer-grid::-webkit-scrollbar {
    height: 8px;
}

.prayer-grid::-webkit-scrollbar-thumb {
    background: rgba(197, 160, 89, 0.4);
    border-radius: 4px;
}

.prayer-grid::-webkit-scrollbar-track {
    background: transparent;
}

.prayer-card {
    flex: 0 0 calc(100% / 6 - 14px);
    min-width: 150px;
    scroll-snap-align: start;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(197, 160, 89, 0.25);
    border-top: 3px solid var(--color-secondary);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    transition: var(--transition);
    cursor: default;
}

.prayer-card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.prayer-card .prayer-name {
    font-family: var(--font-arabic);
    font-size: 1.4rem;
    color: var(--color-secondary);
    display: block;
    margin-bottom: 4px;
}

.prayer-card h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--bg);
    margin-bottom: 16px;
}

.prayer-time-row {
    margin-bottom: 10px;
}

.prayer-time-row span {
    display: block;
    font-size: 0.78rem;
    color: rgba(250, 245, 233, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.prayer-time-row strong {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--bg);
}

.prayer-card.jummah {
    border-top-color: var(--color-secondary-light);
    grid-column: span 1;
}

.prayer-card.next-prayer {
    border-top-color: #6BCB77;
    background: rgba(107, 203, 119, 0.08);
}

.next-badge {
    display: inline-block;
    background: #6BCB77;
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 10px;
    border-radius: 50px;
    margin-bottom: 10px;
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

/* ============================================================
   ANNOUNCEMENT CARDS
   ============================================================ */
.announcement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.ann-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 28px;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 4px solid var(--color-secondary);
}

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

.ann-date {
    font-size: 0.78rem;
    color: var(--color-secondary);
    font-family: var(--font-heading);
    letter-spacing: 2px;
    margin-bottom: 10px;
    display: block;
}

.ann-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--color-primary);
}

.ann-card p {
    font-size: 0.95rem;
    color: var(--color-muted);
    line-height: 1.7;
}

/* ============================================================
   ISLAMIC QUOTE BANNER
   ============================================================ */
.quote-banner {
    background: var(--bg-alt);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding: 70px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.quote-arabic {
    font-family: var(--font-arabic);
    font-size: clamp(1.6rem, 4vw, 2.8rem);
    color: var(--color-secondary);
    direction: rtl;
    margin-bottom: 18px;
    line-height: 2;
}

.quote-english {
    font-size: 1.15rem;
    color: var(--color-muted);
    font-style: italic;
    margin-bottom: 12px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.quote-ref {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--color-secondary);
    letter-spacing: 2px;
}

/* ============================================================
   EVENTS / VIDEO GRID
   ============================================================ */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
    margin-top: 40px;
}

.event-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--color-border);
    transition: var(--transition);
}

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

.event-thumb {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: var(--color-primary);
}

.event-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.event-card:hover .event-thumb img {
    transform: scale(1.04);
}

.play-btn {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(62, 43, 26, 0.4);
    transition: var(--transition);
}

.play-btn i {
    font-size: 3rem;
    color: #fff;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
    transition: var(--transition);
}

.event-card:hover .play-btn {
    background: rgba(62, 43, 26, 0.25);
}

.event-card:hover .play-btn i {
    transform: scale(1.1);
    color: var(--color-secondary);
}

.event-info {
    padding: 22px;
}

.event-info h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--color-primary);
}

.event-info p {
    font-size: 0.9rem;
    color: var(--color-muted);
}

.event-tag {
    display: inline-block;
    background: rgba(197, 160, 89, 0.12);
    color: var(--color-secondary);
    font-size: 0.72rem;
    padding: 3px 12px;
    border-radius: 50px;
    font-family: var(--font-heading);
    letter-spacing: 1px;
    margin-bottom: 10px;
}

/* ============================================================
   ABOUT SECTION (HOME)
   ============================================================ */
.about-home-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.about-home-img {
    border-radius: 120px 120px 16px 16px;
    overflow: hidden;
    border: 6px solid var(--color-secondary);
    box-shadow: var(--shadow);
    height: 480px;
}

.about-home-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-home-text p {
    color: var(--color-muted);
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.stat-row {
    display: flex;
    gap: 30px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-item .num {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    color: var(--color-secondary);
    display: block;
}

.stat-item .lbl {
    font-size: 0.82rem;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ============================================================
   DONATION
   ============================================================ */
.donation-section {
    background: linear-gradient(135deg, #3E2B1A 0%, #5A3D25 100%);
    position: relative;
    overflow: hidden;
}

.donation-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M30 0 L60 30 L30 60 L0 30 Z' fill='none' stroke='%23C5A059' stroke-width='0.6'/%3E%3C/svg%3E");
    background-size: 60px 60px;
    opacity: 0.08;
}

.donation-section .section-title,
.donation-section .section-desc {
    color: #F7EEDB;
}

.donation-section .section-label {
    color: var(--color-secondary);
}

.donation-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.donation-card {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(197, 160, 89, 0.3);
    border-radius: var(--radius);
    padding: 30px 24px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.donation-card:hover {
    background: rgba(255, 255, 255, 0.13);
    transform: translateY(-5px);
}

.donation-card .amount {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-secondary);
    display: block;
    margin-bottom: 8px;
}

.donation-card .purpose {
    font-size: 0.9rem;
    color: rgba(247, 238, 219, 0.8);
}

.donation-custom {
    display: flex;
    gap: 12px;
    margin-top: 30px;
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
}

.donation-custom input {
    flex: 1;
    padding: 13px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(197, 160, 89, 0.4);
    border-radius: 50px;
    color: #F7EEDB;
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
}

.donation-custom input::placeholder {
    color: rgba(247, 238, 219, 0.5);
}

/* ============================================================
   FIVE PILLARS (pillars.html)
   ============================================================ */
.pillar-grid {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row-reverse;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    margin-top: 40px;
    padding-bottom: 20px;
}
.pillar-grid::-webkit-scrollbar {
    height: 8px;
}
.pillar-grid::-webkit-scrollbar-thumb {
    background: rgba(197, 160, 89, 0.4);
    border-radius: 4px;
}
.pillar-grid::-webkit-scrollbar-track {
    background: transparent;
}

.pillar-card {
    flex: 0 0 calc(100% / 5 - 16px);
    scroll-snap-align: start;
    min-width: 270px;
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 40px 30px;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.pillar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--color-secondary);
    transform: scaleX(0);
    transition: var(--transition);
}

.pillar-card:hover::before {
    transform: scaleX(1);
}

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

.pillar-icon {
    width: 80px;
    height: 80px;
    background: rgba(197, 160, 89, 0.1);
    border: 2px solid rgba(197, 160, 89, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: var(--color-secondary);
}

.pillar-arabic {
    font-family: var(--font-arabic);
    font-size: 1.8rem;
    color: var(--color-secondary);
    margin-bottom: 8px;
}

.pillar-card h3 {
    font-size: 1.2rem;
    margin-bottom: 14px;
    color: var(--color-primary);
}

.pillar-card p {
    font-size: 0.9rem;
    color: var(--color-muted);
    line-height: 1.8;
}

.pillar-detail {
    display: none;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--color-border);
}

.pillar-card.expanded .pillar-detail {
    display: block;
}

/* ============================================================
   QURAN READER
   ============================================================ */
.quran-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    align-items: start;
}

.surah-sidebar {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow);
    padding: 20px;
    height: 75vh;
    overflow-y: auto;
    position: sticky;
    top: 100px;
}

.surah-search {
    width: 100%;
    padding: 10px 16px;
    border: 1px solid var(--color-border);
    border-radius: 50px;
    background: var(--bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
    margin-bottom: 14px;
}

.surah-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.surah-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.surah-item:hover,
.surah-item.active {
    background: rgba(197, 160, 89, 0.1);
    color: var(--color-secondary);
}

.surah-num {
    width: 30px;
    height: 30px;
    background: rgba(197, 160, 89, 0.08);
    border: 1px solid rgba(197, 160, 89, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-family: var(--font-heading);
    color: var(--color-secondary);
    flex-shrink: 0;
}

.surah-info {
    flex: 1;
    min-width: 0;
}

.surah-en {
    font-size: 0.88rem;
    font-weight: 600;
}

.surah-ar {
    font-family: var(--font-arabic);
    font-size: 1rem;
    color: var(--color-secondary);
    text-align: right;
}

.surah-meta {
    font-size: 0.72rem;
    color: var(--color-muted);
}

.quran-display {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow);
    padding: 40px;
}

.quran-header {
    margin-bottom: 30px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--color-border);
}

.quran-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 16px;
}

.quran-controls select {
    padding: 8px 14px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 0.85rem;
    outline: none;
    cursor: pointer;
}

.ayah-block {
    padding: 24px 0;
    border-bottom: 1px solid var(--color-border);
}

.ayah-block:last-child {
    border-bottom: none;
}

.ayah-arabic {
    font-family: var(--font-arabic);
    font-size: clamp(1.4rem, 3vw, 2rem);
    color: var(--color-primary);
    direction: rtl;
    text-align: right;
    line-height: 2.4;
    margin-bottom: 14px;
}

.ayah-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(197, 160, 89, 0.12);
    border: 1px solid rgba(197, 160, 89, 0.3);
    border-radius: 50%;
    font-size: 0.75rem;
    color: var(--color-secondary);
    font-family: var(--font-heading);
}

.ayah-translation {
    font-size: 0.95rem;
    color: var(--color-muted);
    line-height: 1.9;
    margin-bottom: 8px;
}

.ayah-urdu {
    font-family: 'Noto Nastaliq Urdu', var(--font-arabic);
    direction: rtl;
    font-size: 1rem;
    color: var(--color-secondary);
    line-height: 2;
}

.quran-loading {
    text-align: center;
    padding: 60px;
    color: var(--color-muted);
}

.quran-loading i {
    font-size: 2.5rem;
    color: var(--color-secondary);
    animation: spin 1s linear infinite;
}

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

/* ============================================================
   TAFSIR SECTION (In Quran Ayah Blocks)
   ============================================================ */
.tafsir-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(197, 160, 89, 0.1);
    color: var(--color-secondary);
    border: 1px solid rgba(197, 160, 89, 0.2);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 10px;
}

.tafsir-toggle-btn:hover {
    background: var(--color-secondary);
    color: #fff;
}

.tafsir-toggle-btn i {
    transition: transform 0.3s;
}

.tafsir-toggle-btn.active i {
    transform: rotate(180deg);
}

.tafsir-container {
    display: none;
    margin-top: 12px;
    background: var(--bg-alt);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    animation: fadeUp 0.3s ease-out;
}

.tafsir-container.active {
    display: block;
}

.tafsir-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid var(--color-border);
}

.tafsir-tab {
    flex: 1;
    padding: 10px;
    background: none;
    border: none;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-muted);
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tafsir-tab:hover {
    color: var(--color-secondary);
}

.tafsir-tab.active {
    color: var(--color-secondary);
    background: #fff;
    border-bottom-color: var(--color-secondary);
}

[data-theme="dark"] .tafsir-tab.active {
    background: var(--bg-card);
}

.tafsir-content-wrap {
    padding: 16px;
    font-size: 0.9rem;
    line-height: 1.8;
}

.tafsir-content-wrap .tafsir-text {
    display: none;
}

.tafsir-content-wrap .tafsir-text.active {
    display: block;
}

.tafsir-urdu {
    font-family: 'Noto Nastaliq Urdu', var(--font-arabic);
    direction: rtl;
    text-align: right;
    font-size: 1.05rem;
    line-height: 2.2;
}

/* ============================================================
   HADEETH SECTION
   ============================================================ */
.hadeeth-filter {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.filter-btn {
    padding: 8px 22px;
    border: 1.5px solid var(--color-border);
    border-radius: 50px;
    background: none;
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--color-secondary);
    border-color: var(--color-secondary);
    color: #fff;
}

.hadeeth-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
}

.hadeeth-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 30px;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow);
    border-left: 4px solid var(--color-secondary);
    transition: var(--transition);
}

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

.hadeeth-arabic {
    font-family: var(--font-arabic);
    font-size: 1.2rem;
    direction: rtl;
    color: var(--color-primary);
    line-height: 2;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px dashed var(--color-border);
}

.hadeeth-text {
    font-size: 0.95rem;
    color: var(--color-text);
    line-height: 1.9;
    margin-bottom: 14px;
}

.hadeeth-ref {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    color: var(--color-secondary);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.hadeeth-collection {
    display: inline-block;
    background: rgba(197, 160, 89, 0.1);
    color: var(--color-secondary);
    padding: 2px 12px;
    border-radius: 50px;
    font-size: 0.72rem;
    margin-bottom: 12px;
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 40px;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
    position: relative;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.06);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(62, 43, 26, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    font-size: 2rem;
    color: #fff;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}


.contact-form-wrap {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 40px;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow);
}

.form-title {
    font-size: 1.4rem;
    margin-bottom: 24px;
    color: var(--color-primary);
}

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

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 8px;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 13px 18px;
    border: 1.5px solid var(--color-border);
    border-radius: 10px;
    background: var(--bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.12);
}

.form-group textarea {
    height: 130px;
    resize: vertical;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-info-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow);
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.ci-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    background: rgba(197, 160, 89, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--color-secondary);
}

.ci-label {
    font-size: 0.8rem;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 4px;
    font-family: var(--font-heading);
}

.ci-value {
    font-size: 0.95rem;
    color: var(--color-text);
    font-weight: 500;
}

.map-wrap {
    border-radius: var(--radius);
    overflow: hidden;
    height: 260px;
    border: 1px solid var(--color-border);
}

.map-wrap iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: #2A1D0E;
    color: rgba(247, 238, 219, 0.85);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-brand img {
    height: 70px;
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.8;
    opacity: 0.8;
}

.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-secondary);
    margin-bottom: 18px;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col ul a {
    font-size: 0.9rem;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-col ul a:hover {
    opacity: 1;
    color: var(--color-secondary);
    padding-left: 4px;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-btn {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(197, 160, 89, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--color-secondary);
    transition: var(--transition);
}

.social-btn:hover {
    background: var(--color-secondary);
    color: #fff;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(197, 160, 89, 0.15);
    padding: 22px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    opacity: 0.7;
}

/* ============================================================
   FLOATING BUTTONS
   ============================================================ */
.fab-group {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 500;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.fab-main,
.fab-child {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.fab-main {
    background: var(--color-secondary);
    color: #fff;
    font-size: 1.3rem;
    box-shadow: 0 8px 28px rgba(197, 160, 89, 0.4);
}

.fab-main:hover {
    transform: scale(1.1) rotate(90deg);
}

.fab-child {
    background: var(--bg-card);
    color: var(--color-secondary);
    border: 1.5px solid var(--color-border);
}

.fab-child:hover {
    background: var(--color-secondary);
    color: #fff;
    transform: scale(1.05);
}

.fab-children {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s ease;
}

.fab-children.open {
    max-height: 300px;
}

.fab-tip {
    position: absolute;
    right: 62px;
    background: var(--color-primary);
    color: var(--bg);
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 0.78rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.fab-child-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.fab-child-wrap:hover .fab-tip {
    opacity: 1;
}

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
    padding: 140px 0 70px;
    background: var(--bg-alt);
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--color-border);
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cpath d='M40 0 L80 40 L40 80 L0 40 Z' fill='none' stroke='%23C5A059' stroke-width='0.6'/%3E%3C/svg%3E");
    background-size: 80px 80px;
    opacity: var(--geometric-opacity);
}

.page-hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
}

.page-hero p {
    color: var(--color-muted);
    margin-top: 12px;
    font-size: 1.05rem;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--color-muted);
    margin-bottom: 16px;
}

.breadcrumb a:hover {
    color: var(--color-secondary);
}

.breadcrumb-sep {
    color: var(--color-secondary);
}

/* ============================================================
   TABS
   ============================================================ */
.tab-bar {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 36px;
    border-bottom: 2px solid var(--color-border);
    padding-bottom: 0;
}

.tab-btn {
    padding: 10px 22px;
    background: none;
    border: none;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: var(--color-muted);
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.tab-btn.active,
.tab-btn:hover {
    color: var(--color-secondary);
    border-bottom-color: var(--color-secondary);
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* ============================================================
   KNOWLEDGE / DUAS
   ============================================================ */
.dua-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 30px;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.dua-arabic {
    font-family: var(--font-arabic);
    font-size: 1.4rem;
    direction: rtl;
    text-align: right;
    color: var(--color-secondary);
    line-height: 2.2;
    margin-bottom: 14px;
}

.dua-transliteration {
    font-style: italic;
    color: var(--color-muted);
    font-size: 0.92rem;
    margin-bottom: 10px;
}

.dua-translation {
    font-size: 0.95rem;
    color: var(--color-text);
}

.dua-source {
    display: inline-block;
    margin-top: 10px;
    font-family: var(--font-heading);
    font-size: 0.74rem;
    color: var(--color-secondary);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* ============================================================
   ISLAMIC CALENDAR
   ============================================================ */
.hijri-display {
    text-align: center;
    padding: 40px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.hijri-date {
    font-family: var(--font-arabic);
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--color-secondary);
}

.hijri-gregorian {
    font-size: 0.95rem;
    color: var(--color-muted);
    margin-top: 8px;
}

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

.ie-item {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 18px 24px;
    border: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
}

.ie-item .ev-name {
    font-weight: 600;
    color: var(--color-primary);
}

.ie-item .ev-date {
    font-size: 0.85rem;
    color: var(--color-secondary);
    font-family: var(--font-heading);
}

/* ============================================================
   ANIMATIONS & REVEALS
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-18px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(197, 160, 89, 0.7);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(197, 160, 89, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(197, 160, 89, 0);
    }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-visual {
        justify-content: center;
    }

    .hero-btns {
        justify-content: center;
    }

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

    .about-home-img {
        height: 320px;
    }

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

    .quran-layout {
        grid-template-columns: 1fr;
    }

    .surah-sidebar {
        height: auto;
        max-height: 300px;
        position: static;
        top: 80px;
    }

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

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .section-pad {
        padding: 60px 0;
    }

    .quran-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .surah-sidebar {
        position: static;
        width: 100%;
        max-width: 100%;
        height: auto;
        max-height: 250px;
        overflow-y: auto;
        z-index: 10;
        border-radius: var(--radius);
        box-shadow: var(--shadow);
        box-sizing: border-box;
    }

    .mobile-sidebar-toggle {
        display: none !important;
    }

    .main-display {
        padding: 5px;
        width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .quran-display,
    #hadeeth-display {
        padding: 16px 12px;
        width: 100%;
        box-sizing: border-box;
    }

    .ayah-arabic {
        line-height: 1.8;
        font-size: 1.5rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

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

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

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .hero {
        padding-top: 90px;
    }

    .hero-mosque-img {
        max-height: 280px;
    }

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

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

    

    .fab-group {
        bottom: 18px;
        right: 18px;
    }

    .page-hero {
        padding: 120px 0 50px;
    }

    .ticker-inner {
        animation-duration: 30s;
    }
}

@media (max-width: 480px) {
    .donation-cards {
        grid-template-columns: 1fr 1fr;
    }

    

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

    .hero-title {
        font-size: 1.9rem;
    }

    .hero-arabic {
        font-size: 1.8rem;
    }

    .hero-btns {
        flex-direction: column;
    }

    .hero-btns .btn {
        width: 100%;
        justify-content: center;
    }

    .contact-form-wrap {
        padding: 24px;
    }

    .nav-actions .btn-dark-toggle {
        display: flex;
        /* Restore theme icon on small mobiles */
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-secondary);
}

/* ============================================================
   MISCELLANEOUS HELPERS
   ============================================================ */
.badge {
    display: inline-block;
    background: rgba(197, 160, 89, 0.12);
    color: var(--color-secondary);
    padding: 4px 14px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    letter-spacing: 1.5px;
}

.divider-line {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 40px 0;
}

.alert {
    background: rgba(197, 160, 89, 0.1);
    border: 1px solid rgba(197, 160, 89, 0.3);
    border-radius: 12px;
    padding: 16px 20px;
    color: var(--color-text);
    font-size: 0.9rem;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.alert i {
    color: var(--color-secondary);
    font-size: 1.1rem;
    margin-top: 2px;
}

.text-muted {
    color: var(--color-muted);
}

.mt-4 {
    margin-top: 40px;
}

.mt-2 {
    margin-top: 20px;
}
details.ie-item { background: var(--bg-card); cursor: pointer; transition: background 0.3s; }
details.ie-item[open] summary { margin-bottom: 15px; border-bottom: 1px solid var(--color-border); padding-bottom: 10px; }
details.ie-item summary { list-style: none; display: flex; justify-content: space-between; align-items: center; }
details.ie-item summary::-webkit-details-marker { display: none; }
.ie-details-body { font-size: 0.95rem; color: var(--color-muted); line-height: 1.6; padding: 0 10px 10px; }
.ie-details-ar { font-family: var(--font-urdu); font-size: 1.2rem; color: var(--color-text); margin-bottom: 8px; text-align: right; }
