/* ============================================
   Museum Digital — Main Stylesheet
   Islamic Elegant, Warm, Khidmat, Premium
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Amiri:ital,wght@0,400;0,700;1,400&family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&display=swap');

/* ============================================
   Design Tokens
   ============================================ */
:root {
    --primary: #2C4A34;          /* Deep Islamic Sage Green */
    --primary-light: #4D6E57;    /* Warm Medium Green */
    --primary-dark: #1A3121;     /* Dark Emerald Green */
    --primary-50: rgba(44, 74, 52, 0.05);
    --primary-100: rgba(44, 74, 52, 0.10);
    --primary-200: rgba(44, 74, 52, 0.20);

    --accent: #C8A253;           /* Warm Metallic Gold */
    --accent-light: #E2C785;     /* Light Gold */
    --accent-dark: #9E7D33;      /* Deep Gold */
    --accent-50: rgba(200, 162, 83, 0.08);
    --accent-gradient: linear-gradient(135deg, #D4AF37 0%, #C5A059 50%, #A67C1E 100%);
    --primary-gradient: linear-gradient(135deg, #2C4A34 0%, #1A3121 100%);

    --bg-primary: #FAF8F5;       /* Warm Ivory/Cream */
    --bg-secondary: #F3ECE1;     /* Soft Muted Sand */
    --bg-card: #FFFFFF;
    --bg-overlay: rgba(26, 49, 33, 0.65);

    --text-primary: #222B24;     /* Muted Dark Charcoal */
    --text-secondary: #4A554D;   /* Muted Greenish Gray */
    --text-muted: #7A867E;      /* Light Muted Gray */
    --text-light: #A3AFA7;
    --text-white: #FFFFFF;

    --border-color: #E2D9C8;     /* Soft Parchment Gold Border */
    --border-light: #EFE8DB;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --radius-arch: 140px 140px 20px 20px; /* Islamic Arch Shape */

    --shadow-subtle: 0 2px 8px rgba(44,74,52,0.04);
    --shadow-card: 0 8px 30px rgba(44,74,52,0.06);
    --shadow-elevated: 0 16px 50px rgba(44,74,52,0.10);
    --shadow-gold: 0 8px 25px rgba(200,162,83,0.25);

    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-arabic: 'Amiri', 'Traditional Arabic', serif;

    --transition-fast: all 0.2s ease;
    --transition-normal: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-slow: all 0.6s ease;

    --section-padding: 5.5rem 0;
    --section-padding-sm: 3.5rem 0;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.8;
    overflow-x: hidden;
    background-image: radial-gradient(var(--border-color) 0.75px, transparent 0.75px);
    background-size: 32px 32px;
}

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

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

a:hover { color: var(--primary-dark); }

::selection {
    background: var(--accent-50);
    color: var(--primary-dark);
}

/* ============================================
   Islamic Calligraphy & Ornaments
   ============================================ */
.bismillah-text {
    font-family: var(--font-arabic);
    font-size: 2.25rem;
    color: var(--accent-dark);
    text-align: center;
    line-height: 1.8;
    margin-bottom: 0.75rem;
    direction: rtl;
    user-select: none;
    text-shadow: 0 1px 2px rgba(200,162,83,0.15);
}

.bismillah-bar {
    background: var(--primary-dark);
    color: var(--accent-light);
    text-align: center;
    padding: 0.35rem 1rem;
    font-family: var(--font-arabic);
    font-size: 1.125rem;
    border-bottom: 1px solid var(--accent);
}

.section-ornament {
    text-align: center;
    color: var(--accent);
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.section-ornament::before,
.section-ornament::after {
    content: '';
    display: inline-block;
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.islamic-divider {
    text-align: center;
    margin: 2.5rem 0;
    color: var(--accent);
    font-size: 1.25rem;
    position: relative;
}

.islamic-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 15%;
    right: 15%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), var(--accent), var(--border-color), transparent);
    z-index: 0;
}

.islamic-divider span {
    position: relative;
    z-index: 1;
    background: var(--bg-primary);
    padding: 0 1rem;
}

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

.section-title {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 620px;
    margin: 0 auto 3.25rem;
    line-height: 1.75;
}

/* ============================================
   Navigation
   ============================================ */
#mainNav {
    background: rgba(250, 248, 245, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 0.85rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition-normal);
}

#mainNav.scrolled {
    box-shadow: 0 4px 20px rgba(44,74,52,0.08);
    background: rgba(255, 255, 255, 0.98);
}

.navbar-brand {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary-dark) !important;
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.brand-ornament {
    color: var(--accent);
    font-size: 1.35rem;
}

.navbar-nav .nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary) !important;
    padding: 0.5rem 0.9rem !important;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-dark) !important;
    background: var(--accent-50);
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 20%;
    right: 20%;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

.nav-link-cta {
    background: var(--accent-gradient) !important;
    color: var(--text-white) !important;
    padding: 0.45rem 1.25rem !important;
    border-radius: var(--radius-sm) !important;
    font-weight: 600 !important;
    box-shadow: var(--shadow-gold);
}

.nav-link-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(200,162,83,0.4);
    color: var(--text-white) !important;
}

.navbar-toggler {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.375rem 0.625rem;
    color: var(--primary);
    font-size: 1.25rem;
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
    position: relative;
    padding: 2.25rem 0 4.5rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

.hero-bg-carousel {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-bg-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1.08);
    transition: opacity 1.8s ease-in-out, transform 9s ease-out;
}

.hero-bg-slide.active {
    opacity: var(--slide-opacity, 0.40);
    transform: scale(1.0);
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, 
        rgba(243, 236, 225, 0.68) 0%, 
        rgba(250, 248, 245, 0.82) 60%, 
        rgba(250, 248, 245, 0.96) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 780px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.hero-photo-frame {
    width: 220px;
    height: 270px;
    margin: 0 auto 1.5rem;
    border-radius: var(--radius-arch);
    overflow: hidden;
    border: 4px solid #FFFFFF;
    outline: 2px solid var(--accent);
    box-shadow: 
        var(--shadow-elevated), 
        0 0 0 6px rgba(200, 162, 83, 0.22),
        0 0 25px rgba(200, 162, 83, 0.35);
    position: relative;
    background: radial-gradient(circle at 50% 30%, #4D6E57 0%, #2C4A34 60%, #1A3121 100%);
}

.hero-photo-frame::before {
    content: '';
    position: absolute;
    inset: 6px;
    border-radius: calc(var(--radius-arch) - 4px);
    border: 1.5px solid rgba(200, 162, 83, 0.65);
    pointer-events: none;
    z-index: 2;
    box-shadow: inset 0 0 15px rgba(26, 49, 33, 0.35);
}

.hero-photo-frame::after {
    content: '۞';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--accent-light);
    font-size: 0.95rem;
    z-index: 3;
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
    pointer-events: none;
}

.hero-photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1;
    transition: var(--transition-normal);
}

.hero-photo-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-light);
    font-size: 4.5rem;
}

.hero-title-prefix {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-dark);
    margin-bottom: 0.35rem;
}

.hero-name {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.hero-years {
    display: inline-block;
    font-size: 1.05rem;
    color: var(--text-secondary);
    font-weight: 500;
    background: rgba(200,162,83,0.12);
    padding: 0.35rem 1.25rem;
    border-radius: 30px;
    border: 1px solid var(--accent-light);
    margin-bottom: 1.25rem;
}

.hero-quote {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.9;
    max-width: 620px;
    margin: 0 auto 1.75rem;
    position: relative;
    padding: 1.5rem 2rem;
    background: rgba(255,255,255,0.7);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-subtle);
}

.hero-quote::before {
    content: '“';
    position: absolute;
    top: -0.5rem;
    left: 1rem;
    font-family: var(--font-heading);
    font-size: 4.5rem;
    color: var(--accent);
    opacity: 0.35;
    line-height: 1;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    justify-content: center;
}

/* ============================================
   Buttons
   ============================================ */
.btn-primary-custom {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    background: var(--primary-gradient);
    color: var(--text-white);
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-normal);
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(44,74,52,0.2);
}

.btn-primary-custom:hover {
    background: linear-gradient(135deg, var(--primary-dark), #0F2014);
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(44,74,52,0.3);
}

.btn-outline-custom {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    background: var(--bg-card);
    color: var(--primary-dark);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-normal);
    text-decoration: none;
}

.btn-outline-custom:hover {
    background: var(--accent-50);
    border-color: var(--accent);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-accent {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    background: var(--accent-gradient);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-normal);
    text-decoration: none;
    box-shadow: var(--shadow-gold);
}

.btn-accent:hover {
    background: linear-gradient(135deg, var(--accent-dark), #7A5B1B);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(200,162,83,0.4);
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    background: #25D366;
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-fast);
}

.btn-whatsapp:hover {
    background: #1FB855;
    color: #fff;
    transform: translateY(-1px);
}

/* ============================================
   Sections
   ============================================ */
.section {
    padding: var(--section-padding);
}

.section-alt {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

/* ============================================
   About Preview (Homepage)
   ============================================ */
.about-preview {
    display: flex;
    align-items: center;
    gap: 3.5rem;
}

.about-preview-image {
    flex: 0 0 320px;
    border-radius: var(--radius-arch);
    overflow: hidden;
    box-shadow: var(--shadow-elevated);
    border: 4px solid #fff;
    outline: 1.5px solid var(--accent);
}

.about-preview-image img {
    width: 100%;
    height: 380px;
    object-fit: cover;
}

.about-preview-content {
    flex: 1;
}

.about-preview-content h2 {
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: 1.25rem;
}

.about-preview-content p {
    color: var(--text-secondary);
    margin-bottom: 1.75rem;
    line-height: 1.85;
    font-size: 1.05rem;
}

/* ============================================
   Photo Gallery & Cards
   ============================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 1.25rem;
}

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow-subtle);
    border: 1px solid var(--border-color);
    transition: var(--transition-normal);
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-elevated);
    border-color: var(--accent);
}

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

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

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26,49,33,0.85) 0%, transparent 65%);
    opacity: 0;
    transition: var(--transition-normal);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}

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

.gallery-overlay p {
    color: #fff;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
    font-family: var(--font-heading);
}

/* ============================================
   Album Cards
   ============================================ */
.album-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition-normal);
    box-shadow: var(--shadow-subtle);
    text-decoration: none;
    display: block;
    color: var(--text-primary);
}

.album-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-elevated);
    border-color: var(--accent);
    color: var(--text-primary);
}

.album-cover {
    aspect-ratio: 16/10;
    overflow: hidden;
}

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

.album-card:hover .album-cover img {
    transform: scale(1.06);
}

.album-info {
    padding: 1.35rem;
}

.album-info h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--primary-dark);
    margin-bottom: 0.35rem;
}

.album-info .photo-count {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ============================================
   Video Cards
   ============================================ */
.video-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition-normal);
    box-shadow: var(--shadow-subtle);
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-elevated);
    border-color: var(--accent);
}

.video-thumb {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #000;
}

.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-info {
    padding: 1.35rem;
}

.video-info h3 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: var(--primary-dark);
    margin-bottom: 0.35rem;
}

.video-info .video-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ============================================
   Story Cards
   ============================================ */
.story-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 2.25rem 2rem;
    border: 1px solid var(--border-color);
    transition: var(--transition-normal);
    box-shadow: var(--shadow-subtle);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.story-card::before {
    content: '✦';
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    color: var(--accent);
    font-size: 1rem;
    opacity: 0.5;
}

.story-card:hover {
    box-shadow: var(--shadow-card);
    transform: translateY(-3px);
    border-color: var(--accent-light);
}

.story-card .story-content {
    flex: 1;
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.85;
    margin-bottom: 1.75rem;
    font-size: 0.975rem;
}

.story-card .story-author {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding-top: 1.125rem;
    border-top: 1px solid var(--border-light);
}

.story-author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-light);
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
    border: 1px solid var(--accent);
}

.story-author-info h4 {
    font-family: var(--font-body);
    font-size: 0.925rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 0;
}

.story-author-info span {
    font-size: 0.775rem;
    color: var(--text-muted);
}

/* ============================================
   Stats Section
   ============================================ */
.stats-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #122418 100%);
    color: var(--text-white);
    padding: 4.5rem 0;
    position: relative;
    border-top: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
}

.stats-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(200,162,83,0.15) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}

.stat-item {
    text-align: center;
    padding: 1.5rem 0.5rem;
    position: relative;
    z-index: 1;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    font-weight: 700;
    display: block;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    color: var(--accent-light);
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.stat-name {
    font-size: 0.925rem;
    opacity: 0.9;
    font-weight: 400;
    letter-spacing: 0.05em;
}

/* ============================================
   Prayer Section
   ============================================ */
.prayer-section {
    background: var(--bg-secondary);
    text-align: center;
}

.prayer-form-container {
    max-width: 620px;
    margin: 0 auto;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 3rem 2.5rem;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-color);
    position: relative;
}

.prayer-form-container::before {
    content: '۞';
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    color: var(--accent);
    font-size: 1.5rem;
    opacity: 0.4;
}

.prayer-counter {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--accent-dark);
    margin-bottom: 0.2rem;
}

.prayer-counter-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 2.25rem;
}

.prayer-item {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    border: 1px solid var(--border-color);
    margin-bottom: 1.25rem;
    text-align: left;
    transition: var(--transition-fast);
    position: relative;
}

.prayer-item:hover {
    box-shadow: var(--shadow-card);
    border-color: var(--accent-light);
}

.prayer-text {
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.85;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.prayer-meta {
    font-size: 0.825rem;
    color: var(--text-muted);
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
    text-align: center;
    padding: 5.5rem 0;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    position: relative;
    border-top: 1px solid var(--border-color);
}

.cta-section h2 {
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.cta-section p {
    color: var(--text-secondary);
    max-width: 580px;
    margin: 0 auto 2.25rem;
    line-height: 1.85;
    font-size: 1.05rem;
}

/* ============================================
   Timeline
   ============================================ */
.timeline {
    position: relative;
    padding: 2.5rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent-light), var(--primary), var(--accent-light));
    top: 0;
}

.timeline-item {
    position: relative;
    margin-bottom: 3.5rem;
    display: flex;
    align-items: flex-start;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
    padding-right: calc(50% + 2.5rem);
    text-align: right;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
    padding-left: calc(50% + 2.5rem);
}

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 18px;
    height: 18px;
    background: var(--accent);
    border-radius: 50%;
    border: 4px solid var(--bg-primary);
    box-shadow: 0 0 0 3px var(--primary-dark);
    z-index: 1;
}

.timeline-content {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-subtle);
    max-width: 100%;
}

.timeline-year {
    display: inline-block;
    background: var(--primary-gradient);
    color: var(--accent-light);
    padding: 0.25rem 0.9rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.625rem;
    border: 1px solid var(--accent);
}

.timeline-content h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.timeline-content p {
    font-size: 0.925rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.75;
}

/* ============================================
   Audio Player
   ============================================ */
.audio-item {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 1.35rem 1.75rem;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1rem;
    transition: var(--transition-fast);
}

.audio-item:hover {
    box-shadow: var(--shadow-card);
    border-color: var(--accent);
}

.audio-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    background: var(--accent-50);
    color: var(--accent-dark);
    border: 1px solid var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

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

.audio-info h4 {
    font-family: var(--font-body);
    font-size: 0.975rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 0.15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.audio-info span {
    font-size: 0.825rem;
    color: var(--text-muted);
}

.audio-item audio {
    width: 100%;
    max-width: 320px;
    height: 38px;
}

/* ============================================
   Forms (Public)
   ============================================ */
.public-form .form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

.public-form .form-control,
.public-form .form-select {
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1.125rem;
    font-size: 0.95rem;
    transition: var(--transition-fast);
    background: var(--bg-card);
}

.public-form .form-control:focus,
.public-form .form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-50);
}

.public-form textarea.form-control {
    min-height: 160px;
    resize: vertical;
}

.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

/* ============================================
   Search
   ============================================ */
.search-form {
    max-width: 640px;
    margin: 0 auto;
}

.search-input-group {
    position: relative;
}

.search-input-group .form-control {
    padding-right: 4rem;
    border-radius: var(--radius-xl);
    padding: 1.125rem 1.75rem;
    font-size: 1.05rem;
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-subtle);
}

.search-input-group .form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-50);
}

.search-input-group .btn {
    position: absolute;
    right: 0.6rem;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.75);
    padding-top: 4.5rem;
    border-top: 3px solid var(--accent);
}

.footer-top {
    padding-bottom: 3.5rem;
    border-bottom: 1px solid rgba(200,162,83,0.2);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 1.25rem;
}

.footer-ornament {
    color: var(--accent);
    font-size: 1.35rem;
}

.footer-brand h3 {
    color: #fff;
    font-size: 1.35rem;
    margin: 0;
}

.footer-quote {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 0.975rem;
    line-height: 1.85;
    color: var(--accent-light);
    opacity: 0.85;
    max-width: 400px;
}

.footer-heading {
    font-family: var(--font-body);
    font-size: 0.775rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: 1.25rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li { margin-bottom: 0.625rem; }

.footer-links a {
    color: rgba(255,255,255,0.75);
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-light);
}

.footer-share {
    display: flex;
    gap: 0.625rem;
}

.share-btn {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.08);
    color: var(--accent-light);
    border: 1px solid rgba(200,162,83,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition-fast);
    text-decoration: none;
}

.share-btn:hover {
    background: var(--accent);
    color: var(--primary-dark);
}

.share-btn.share-wa:hover {
    background: #25D366;
    color: #fff;
    border-color: #25D366;
}

.footer-bottom {
    padding: 1.75rem 0;
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.65;
}

/* ============================================
   Page Header
   ============================================ */
.page-header {
    text-align: center;
    padding: 4.5rem 0 3.5rem;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    border-bottom: 1px solid var(--border-color);
}

.page-header h1 {
    font-size: 2.25rem;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--text-secondary);
    max-width: 580px;
    margin: 0 auto;
    font-size: 1.05rem;
}

/* ============================================
   Lightbox Overlay
   ============================================ */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(18,36,24,0.92);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-normal);
}

.lightbox-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox-overlay img {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
    border: 3px solid var(--accent);
}

.lightbox-close {
    position: absolute;
    top: 1.75rem;
    right: 2rem;
    color: var(--accent-light);
    font-size: 2.5rem;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 10000;
    transition: var(--transition-fast);
}

.lightbox-close:hover { color: #fff; transform: scale(1.1); }

/* ============================================
   Floating Background Audio Widget
   ============================================ */
.bg-audio-widget {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    z-index: 9990;
}

.bg-audio-btn {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 1.125rem;
    background: rgba(26, 49, 33, 0.92);
    backdrop-filter: blur(10px);
    color: var(--accent-light);
    border: 1px solid var(--accent);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    box-shadow: var(--shadow-gold), 0 4px 20px rgba(0,0,0,0.25);
    transition: var(--transition-normal);
}

.bg-audio-btn:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(200,162,83,0.4);
}

.bg-audio-btn.playing {
    border-color: #25D366;
    color: #fff;
}

.spinning-disc {
    font-size: 1.15rem;
    color: var(--accent);
}

.spinning-disc.spin {
    animation: spinDisc 3s linear infinite;
    color: #25D366;
}

@keyframes spinDisc {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.bg-audio-waves {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 14px;
}

.bg-audio-waves span {
    width: 3px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
    transition: height 0.2s ease;
}

.bg-audio-waves.active span {
    background: #25D366;
    animation: audioWave 0.8s ease-in-out infinite alternate;
}

.bg-audio-waves.active span:nth-child(1) { animation-delay: 0.1s; }
.bg-audio-waves.active span:nth-child(2) { animation-delay: 0.3s; }
.bg-audio-waves.active span:nth-child(3) { animation-delay: 0.2s; }
.bg-audio-waves.active span:nth-child(4) { animation-delay: 0.4s; }

@keyframes audioWave {
    0% { height: 4px; }
    100% { height: 14px; }
}

/* ============================================
   Responsive Overrides
   ============================================ */
@media (max-width: 991.98px) {
    .hero-name { font-size: 2.4rem; }
    .section-title { font-size: 1.85rem; }
    .about-preview { flex-direction: column; gap: 2.25rem; }
    .about-preview-image { flex: none; width: 100%; max-width: 320px; margin: 0 auto; }
    
    .timeline::before { left: 1.75rem; }
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        flex-direction: row;
        padding-left: 4rem;
        padding-right: 0;
        text-align: left;
    }
    .timeline-dot { left: 1.75rem; }
}

@media (max-width: 767.98px) {
    :root {
        --section-padding: 3.75rem 0;
    }
    
    .hero-section { padding: 3.5rem 0; }
    .hero-name { font-size: 2rem; }
    .hero-photo-frame { width: 170px; height: 210px; }
    .hero-quote { font-size: 1.05rem; padding: 1.25rem; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .section-title { font-size: 1.6rem; }
    .stat-number { font-size: 2.25rem; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
    .bismillah-text { font-size: 1.85rem; }
    .prayer-form-container { padding: 2rem 1.5rem; }
    .story-card { padding: 1.75rem 1.5rem; }
}

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