/* ==========================================
   Dr. Mahmoud Abdin - Educational Platform
   Premium Islamic Design System
   ========================================== */

/* CSS Variables */
:root {
    /* Primary Blues */
    --primary-darkest: #0a1628;
    --primary-darker: #0d1f3c;
    --primary-dark: #122a52;
    --primary: #1a3f7a;
    --primary-light: #2563a8;
    --primary-lighter: #3b82d6;
    --primary-lightest: #6aa8e8;

    /* Gold Accents */
    --accent-gold: #d4a843;
    --accent-gold-light: #e8c46a;
    --accent-gold-dark: #b08930;
    --accent-gold-glow: rgba(212, 168, 67, 0.3);

    /* Backgrounds */
    --bg-primary: #f8f6f3;
    --bg-secondary: #f0ece5;
    --bg-card: #ffffff;
    --bg-dark: #0a1628;
    --bg-dark-secondary: #0d1f3c;

    /* Text */
    --text-primary: #1a1a2e;
    --text-secondary: #4a4a5a;
    --text-muted: #7a7a8a;
    --text-light: #e8e4dc;
    --text-white: #ffffff;

    /* Borders */
    --border-light: rgba(212, 168, 67, 0.2);
    --border-medium: rgba(26, 63, 122, 0.15);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(10, 22, 40, 0.06);
    --shadow-md: 0 4px 16px rgba(10, 22, 40, 0.1);
    --shadow-lg: 0 8px 32px rgba(10, 22, 40, 0.15);
    --shadow-xl: 0 16px 48px rgba(10, 22, 40, 0.2);
    --shadow-gold: 0 4px 20px rgba(212, 168, 67, 0.25);

    /* Typography */
    --font-heading: 'Amiri', serif;
    --font-body: 'Cairo', sans-serif;
    --font-arabic: 'Noto Naskh Arabic', serif;

    /* Sizing */
    --container-max: 1280px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-bounce: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.8;
    overflow-x: hidden;
    direction: rtl;
}

/* Islamic Pattern Overlay (Global Subtle) */
.islamic-pattern-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.02;
    background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40 0L80 40L40 80L0 40Z' fill='none' stroke='%231a3f7a' stroke-width='0.5'/%3E%3Cpath d='M40 10L70 40L40 70L10 40Z' fill='none' stroke='%231a3f7a' stroke-width='0.3'/%3E%3Ccircle cx='40' cy='40' r='8' fill='none' stroke='%23d4a843' stroke-width='0.3'/%3E%3C/svg%3E");
    background-size: 80px 80px;
}

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================
   NAVIGATION
   ========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all var(--transition-normal);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 8px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-white);
}

.brand-icon {
    width: 48px;
    height: 48px;
    color: var(--accent-gold);
}

.brand-svg {
    width: 100%;
    height: 100%;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-white);
    line-height: 1.2;
}

.brand-subtitle {
    font-size: 0.75rem;
    color: var(--accent-gold);
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-link {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: width var(--transition-normal);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.08);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-nav {
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-dark));
    color: var(--primary-darkest);
    padding: 8px 24px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all var(--transition-normal);
    border: none;
    cursor: pointer;
}

.btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.btn-nav-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-light);
    border: 1px solid rgba(212, 168, 67, 0.32);
}

.btn-nav-secondary:hover {
    background: rgba(212, 168, 67, 0.16);
}

.lang-switch {
    display: flex;
    gap: 6px;
}

.lang-switch a {
    color: var(--text-light);
    border: 1px solid rgba(212, 168, 67, 0.3);
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 11px;
    text-decoration: none;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-toggle span {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--text-white);
    transition: all var(--transition-normal);
    border-radius: 2px;
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.6s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--text-white);
    box-shadow: 0 4px 15px rgba(26, 63, 122, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(26, 63, 122, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--text-white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    transform: translateY(-3px);
}

.btn-lg {
    padding: 14px 36px;
    font-size: 1.05rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.btn-course {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--text-white);
    padding: 10px 24px;
    font-size: 0.9rem;
    width: 100%;
    justify-content: center;
}

.btn-course:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 63, 122, 0.35);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            var(--primary-darkest) 0%,
            var(--primary-darker) 25%,
            var(--primary-dark) 50%,
            var(--primary) 75%,
            var(--primary-dark) 100%);
    z-index: 0;
}

.hero-geometric-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.06;
    background-image: url("data:image/svg+xml,%3Csvg width='120' height='120' viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M60 0L120 60L60 120L0 60Z' fill='none' stroke='%23d4a843' stroke-width='0.8'/%3E%3Cpath d='M60 15L105 60L60 105L15 60Z' fill='none' stroke='%23d4a843' stroke-width='0.5'/%3E%3Cpath d='M60 30L90 60L60 90L30 60Z' fill='none' stroke='%23d4a843' stroke-width='0.3'/%3E%3Ccircle cx='60' cy='60' r='12' fill='none' stroke='%23d4a843' stroke-width='0.5'/%3E%3Ccircle cx='60' cy='60' r='6' fill='none' stroke='%23d4a843' stroke-width='0.3'/%3E%3C/svg%3E");
    background-size: 120px 120px;
    animation: patternFloat 60s linear infinite;
}

@keyframes patternFloat {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 120px 120px;
    }
}

.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent-gold);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat 8s infinite;
}

@keyframes particleFloat {
    0% {
        opacity: 0;
        transform: translateY(100vh) scale(0);
    }

    10% {
        opacity: 0.6;
    }

    90% {
        opacity: 0.6;
    }

    100% {
        opacity: 0;
        transform: translateY(-10vh) scale(1);
    }
}

.hero-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(212, 168, 67, 0.15);
    border: 1px solid rgba(212, 168, 67, 0.3);
    color: var(--accent-gold);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero-title {
    font-family: var(--font-heading);
    color: var(--text-white);
    margin-bottom: 24px;
    line-height: 1.3;
}

.title-line {
    display: block;
    font-size: 1.8rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    animation: fadeInUp 0.8s ease 0.3s backwards;
}

.title-name {
    display: block;
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--text-white), var(--accent-gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.title-suffix {
    display: block;
    font-size: 1.6rem;
    color: var(--accent-gold);
    font-weight: 400;
    animation: fadeInUp 0.8s ease 0.5s backwards;
}

.hero-description {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.1rem;
    line-height: 1.9;
    margin-bottom: 32px;
    max-width: 580px;
    animation: fadeInUp 0.8s ease 0.6s backwards;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    animation: fadeInUp 0.8s ease 0.7s backwards;
}

.hero-stats {
    display: flex;
    gap: 40px;
    animation: fadeInUp 0.8s ease 0.8s backwards;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-gold);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 4px;
}

/* Hero Image */
.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInLeft 1s ease 0.5s backwards;
}

.hero-image-frame {
    position: relative;
    width: 380px;
    height: 460px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 3px solid rgba(212, 168, 67, 0.3);
    box-shadow: var(--shadow-xl);
}

.hero-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.frame-ornament {
    position: absolute;
    width: 30px;
    height: 30px;
    border: 2px solid var(--accent-gold);
    z-index: 2;
}

.frame-ornament.top-right {
    top: 10px;
    right: 10px;
    border-bottom: none;
    border-left: none;
}

.frame-ornament.top-left {
    top: 10px;
    left: 10px;
    border-bottom: none;
    border-right: none;
}

.frame-ornament.bottom-right {
    bottom: 10px;
    right: 10px;
    border-top: none;
    border-left: none;
}

.frame-ornament.bottom-left {
    bottom: 10px;
    left: 10px;
    border-top: none;
    border-right: none;
}

.hero-image-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(212, 168, 67, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

.hero-wave {
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    z-index: 3;
}

.hero-wave svg {
    display: block;
    width: 100%;
    height: 80px;
}

/* ==========================================
   VERSE BAR
   ========================================== */
.verse-bar {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    padding: 20px 0;
    overflow: hidden;
    position: relative;
}

.verse-bar::before,
.verse-bar::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
}

.verse-bar::before {
    right: 0;
    background: linear-gradient(to left, var(--primary-dark), transparent);
}

.verse-bar::after {
    left: 0;
    background: linear-gradient(to right, var(--primary-dark), transparent);
}

.verse-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    white-space: nowrap;
    animation: scrollVerse 30s linear infinite;
}

.verse-icon {
    font-family: var(--font-arabic);
    font-size: 1.8rem;
    color: var(--accent-gold);
}

.verse-text {
    font-family: var(--font-arabic);
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 1px;
}

@keyframes scrollVerse {
    0% {
        transform: translateX(-10%);
    }

    100% {
        transform: translateX(10%);
    }
}

/* ==========================================
   SECTION HEADERS
   ========================================== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
}

.ornament-line {
    width: 60px;
    height: 1px;
    background: linear-gradient(to left, var(--accent-gold), transparent);
}

.ornament-line.light {
    background: linear-gradient(to left, var(--accent-gold-light), transparent);
}

.ornament-line:last-child {
    background: linear-gradient(to right, var(--accent-gold), transparent);
}

.ornament-line.light:last-child {
    background: linear-gradient(to right, var(--accent-gold-light), transparent);
}

.ornament-icon {
    color: var(--accent-gold);
    font-size: 1rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.section-header.light .section-title {
    color: var(--text-white);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.section-header.light .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

/* ==========================================
   ABOUT SECTION
   ========================================== */
.about-section {
    padding: 100px 0;
    background: var(--bg-primary);
    position: relative;
}

.about-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 60px;
    align-items: start;
}

.about-image-container {
    position: relative;
}

.about-image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-photo {
    width: 100%;
    height: 500px;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.about-image-border {
    position: absolute;
    inset: 8px;
    border: 2px solid rgba(212, 168, 67, 0.3);
    border-radius: var(--radius-md);
    pointer-events: none;
}

.about-decorative-element {
    position: absolute;
    bottom: -20px;
    left: -20px;
    opacity: 0.2;
}

.islamic-star svg {
    width: 80px;
    height: 80px;
}

.about-content {
    padding-top: 20px;
}

.about-intro {
    margin-bottom: 24px;
}

.about-name {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 8px;
    line-height: 1.4;
}

.about-title-role {
    font-size: 1.05rem;
    color: var(--accent-gold-dark);
    font-weight: 600;
}

.about-text p {
    font-size: 1.05rem;
    line-height: 2;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 32px;
    margin-bottom: 32px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border-right: 4px solid var(--accent-gold);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.highlight-item:hover {
    transform: translateX(-5px);
    box-shadow: var(--shadow-md);
}

.highlight-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.highlight-text strong {
    display: block;
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.highlight-text span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.about-media-channels h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 12px;
}

.media-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.media-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: linear-gradient(135deg, var(--primary-darkest), var(--primary-dark));
    color: var(--accent-gold-light);
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 500;
    border: 1px solid rgba(212, 168, 67, 0.2);
}

/* ==========================================
   COURSES SECTION
   ========================================== */
.courses-section {
    padding: 100px 0;
    background: var(--bg-secondary);
    position: relative;
}

.courses-filter {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    border: 2px solid var(--border-medium);
    background: transparent;
    color: var(--text-secondary);
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--text-white);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(26, 63, 122, 0.3);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.course-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    position: relative;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.course-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.course-color-bg {
    position: absolute;
    inset: 0;
}

.course-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.1;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 30L30 60L0 30Z' fill='none' stroke='%23ffffff' stroke-width='0.5'/%3E%3Ccircle cx='30' cy='30' r='8' fill='none' stroke='%23ffffff' stroke-width='0.3'/%3E%3C/svg%3E");
    background-size: 60px 60px;
}

.course-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--accent-gold);
    color: var(--primary-darkest);
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 2;
}

.course-icon-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.15);
    font-size: 4rem;
    z-index: 1;
}

.course-body {
    padding: 24px;
}

.course-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 12px;
    padding: 4px 12px;
    background: rgba(26, 63, 122, 0.08);
    border-radius: 50px;
}

.course-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.5;
}

.course-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 16px;
}

.course-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border-medium);
}

.course-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.course-meta i {
    color: var(--accent-gold-dark);
}

/* ==========================================
   BOOKS SECTION
   ========================================== */
.books-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-darkest), var(--primary-dark));
    position: relative;
    overflow: hidden;
}

.books-section::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M50 0L100 50L50 100L0 50Z' fill='none' stroke='%23d4a843' stroke-width='0.5'/%3E%3Cpath d='M50 20L80 50L50 80L20 50Z' fill='none' stroke='%23d4a843' stroke-width='0.3'/%3E%3C/svg%3E");
    background-size: 100px 100px;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    position: relative;
    z-index: 1;
}

.book-card {
    text-align: center;
    transition: all var(--transition-normal);
}

.book-card:hover {
    transform: translateY(-10px);
}

.book-cover {
    margin-bottom: 20px;
    perspective: 800px;
}

.book-cover-design {
    position: relative;
    height: 300px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
    transform-style: preserve-3d;
}

.book-card:hover .book-cover-design {
    transform: rotateY(-8deg);
    box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.4);
}

.book-cover-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.08;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 0L40 20L20 40L0 20Z' fill='none' stroke='%23d4a843' stroke-width='0.5'/%3E%3C/svg%3E");
    background-size: 40px 40px;
}

.book-cover-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    color: var(--text-white);
}

.book-ornament-top,
.book-ornament-bottom {
    color: var(--accent-gold);
    font-size: 1.2rem;
}

.book-cover-content h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    text-align: center;
    line-height: 1.6;
    margin: 8px 0;
}

.book-divider {
    width: 40px;
    height: 1px;
    background: var(--accent-gold);
    margin: 8px 0;
}

.book-cover-content p {
    font-size: 0.85rem;
    color: var(--accent-gold-light);
}

.book-info h3 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: var(--text-white);
    margin-bottom: 8px;
    line-height: 1.5;
}

.book-info p {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 10px;
    line-height: 1.6;
}

.book-tag {
    display: inline-block;
    padding: 3px 14px;
    background: rgba(212, 168, 67, 0.15);
    color: var(--accent-gold);
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    border: 1px solid rgba(212, 168, 67, 0.25);
}

/* ==========================================
   VIDEOS SECTION
   ========================================== */
.videos-section {
    padding: 100px 0;
    background: var(--bg-primary);
}

.videos-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-bottom: 40px;
}

.video-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

/* ==========================================
   NEWS SECTION
   ========================================== */
.news-section {
    padding: 90px 0;
    background: var(--bg-primary);
}

.news-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 22px;
}

.news-card {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid rgba(212, 168, 67, 0.18);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

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

.news-card.featured {
    grid-row: span 2;
}

.news-image {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
}

.news-card.featured .news-image {
    height: 320px;
}

.news-image-placeholder {
    display: grid;
    place-items: center;
    color: var(--accent-gold);
    background:
        radial-gradient(circle at 20% 20%, rgba(212, 168, 67, 0.22), transparent 32%),
        linear-gradient(135deg, var(--primary-dark), var(--primary-darkest));
    font-size: 2.4rem;
}

.news-content {
    padding: 22px;
}

.news-date {
    display: inline-flex;
    margin-bottom: 10px;
    color: var(--secondary-green);
    font-size: 0.82rem;
    font-weight: 800;
}

.news-content h3 {
    margin: 0 0 10px;
    color: var(--primary-dark);
    font-family: var(--font-heading);
    font-size: 1.35rem;
}

.news-content p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.8;
}

.reels-section {
    padding: 90px 0;
    background: linear-gradient(180deg, #f7f8fa 0%, #eef2f7 100%);
}

.reels-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.reel-card {
    background: var(--bg-card);
    border: 1px solid rgba(26, 74, 110, 0.16);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.reel-media {
    display: block;
    height: 220px;
}

.reel-media img,
.reel-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reel-placeholder {
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 2rem;
    background: linear-gradient(135deg, #0e3a60, #092645);
}

.reel-body {
    padding: 18px;
}

.reel-body h3 {
    margin: 0 0 8px;
    font-size: 1.15rem;
}

.reel-body p {
    margin: 0 0 12px;
    color: var(--text-muted);
}

.reel-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-sm {
    padding: 8px 12px;
    font-size: 0.85rem;
}

.share-link {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(26, 74, 110, 0.2);
    color: var(--primary-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.fixed-reels-cta {
    position: fixed;
    right: 18px;
    bottom: 22px;
    z-index: 999;
    background: linear-gradient(135deg, #d4a843, #b98e2d);
    color: #121826;
    text-decoration: none;
    font-weight: 800;
    border-radius: 999px;
    padding: 10px 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* ==========================================
   CLOUD LIBRARY SECTION
   ========================================== */
.library-section {
    padding: 100px 0;
    background:
        radial-gradient(circle at 8% 12%, rgba(212, 168, 67, 0.10), transparent 26%),
        linear-gradient(180deg, var(--bg-primary), var(--bg-secondary));
}

.library-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 28px;
}

.library-summary-card,
.library-card,
.library-empty {
    background: var(--bg-card);
    border: 1px solid rgba(212, 168, 67, 0.18);
    box-shadow: var(--shadow-sm);
}

.library-summary-card {
    border-radius: var(--radius-md);
    padding: 22px;
}

.library-summary-card span {
    display: block;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.library-summary-card strong {
    color: var(--primary-dark);
    font-size: 1.7rem;
    font-family: var(--font-heading);
}

.library-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.library-card {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 16px;
    align-items: start;
    border-radius: var(--radius-md);
    padding: 22px;
    transition: all var(--transition-normal);
}

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

.library-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    display: grid;
    place-items: center;
    color: var(--accent-gold);
    background: rgba(212, 168, 67, 0.12);
    font-size: 1.35rem;
}

.library-type {
    color: var(--secondary-green);
    font-size: 0.78rem;
    font-weight: 800;
}

.library-card h3,
.library-empty h3 {
    margin: 4px 0 8px;
    color: var(--primary-dark);
    font-family: var(--font-heading);
}

.library-card p,
.library-empty p {
    color: var(--text-muted);
    margin: 0 0 12px;
}

.library-link {
    color: var(--primary-blue);
    font-weight: 800;
    text-decoration: none;
}

.library-empty {
    grid-column: 1 / -1;
    border-radius: var(--radius-md);
    padding: 34px;
    text-align: center;
}

.video-card.featured {
    grid-row: 1 / 3;
}

.video-thumbnail {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: var(--primary-darkest);
}

.video-card.featured .video-thumbnail {
    padding-bottom: 56.25%;
}

.video-thumbnail iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--primary-darkest), var(--primary-dark));
    color: var(--text-white);
}

.video-placeholder i {
    font-size: 3rem;
    color: #ff0000;
    opacity: 0.8;
}

.video-placeholder span {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    padding: 0 20px;
}

.video-link {
    text-decoration: none;
    display: block;
}

.featured-video {
    position: relative;
}

.featured-video .yt-thumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-btn-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    z-index: 2;
    background: rgba(10, 22, 40, 0.4);
    transition: all var(--transition-normal);
}

.video-link:hover .play-btn-overlay {
    background: rgba(10, 22, 40, 0.6);
}

.play-btn-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(255, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 20px rgba(255, 0, 0, 0.4);
}

.video-link:hover .play-btn-circle {
    transform: scale(1.15);
    box-shadow: 0 6px 30px rgba(255, 0, 0, 0.5);
}

.play-btn-overlay span {
    color: white !important;
    font-weight: 600;
    font-size: 1rem !important;
}

.video-info {
    padding: 20px;
}

.video-info h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.video-info p {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.videos-cta {
    text-align: center;
}

/* ==========================================
   GALLERY SECTION
   ========================================== */
.gallery-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-darkest));
    position: relative;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 280px;
    cursor: pointer;
}

.gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
    height: 100%;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 22, 40, 0.85), transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    color: var(--text-white);
    font-family: var(--font-heading);
    font-size: 1rem;
}

/* ==========================================
   CONTACT SECTION
   ========================================== */
.contact-section {
    padding: 100px 0;
    background: var(--bg-primary);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.social-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.social-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
    border-right: 4px solid transparent;
}

.social-card:hover {
    transform: translateX(-8px);
    box-shadow: var(--shadow-lg);
}

.social-card.facebook {
    border-right-color: #1877F2;
}

.social-card.youtube {
    border-right-color: #FF0000;
}

.social-card.instagram {
    border-right-color: #E4405F;
}

.social-card.whatsapp {
    border-right-color: var(--primary);
}

.social-card-icon {
    width: 54px;
    height: 54px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.social-card.facebook .social-card-icon {
    background: rgba(24, 119, 242, 0.1);
    color: #1877F2;
}

.social-card.youtube .social-card-icon {
    background: rgba(255, 0, 0, 0.1);
    color: #FF0000;
}

.social-card.instagram .social-card-icon {
    background: rgba(228, 64, 95, 0.1);
    color: #E4405F;
}

.social-card.whatsapp .social-card-icon {
    background: rgba(26, 63, 122, 0.1);
    color: var(--primary);
}

.social-card-info {
    flex: 1;
}

.social-card-info h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.social-card-info p {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.social-handle {
    font-size: 0.8rem;
    color: var(--primary-light);
    font-weight: 500;
}

.social-card-arrow {
    color: var(--text-muted);
    transition: all var(--transition-normal);
}

.social-card:hover .social-card-arrow {
    color: var(--primary);
    transform: translateX(-4px);
}

/* Contact Form */
.contact-form-container {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-medium);
}

.contact-form-header {
    margin-bottom: 28px;
}

.contact-form-header h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 6px;
}

.contact-form-header p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-medium);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-primary);
    background: var(--bg-primary);
    transition: all var(--transition-fast);
    direction: rtl;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 4px rgba(37, 99, 168, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background: var(--bg-dark);
    position: relative;
    overflow: hidden;
    padding: 80px 0 0;
}

.footer-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40 0L80 40L40 80L0 40Z' fill='none' stroke='%23d4a843' stroke-width='0.5'/%3E%3C/svg%3E");
    background-size: 80px 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 1;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo .brand-icon {
    width: 44px;
    height: 44px;
}

.footer-desc {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all var(--transition-normal);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-social a:hover {
    background: var(--accent-gold);
    color: var(--primary-darkest);
    transform: translateY(-3px);
    border-color: var(--accent-gold);
}

.footer-links-group h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--accent-gold);
    margin-bottom: 20px;
}

.footer-links-group ul {
    list-style: none;
}

.footer-links-group ul li {
    margin-bottom: 10px;
}

.footer-links-group ul li a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links-group ul li a:hover {
    color: var(--accent-gold);
    transform: translateX(-4px);
}

.footer-contact-list li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact-list li i {
    color: var(--accent-gold);
    width: 18px;
    text-align: center;
}

.footer-bottom {
    text-align: center;
    padding: 24px 0;
    position: relative;
    z-index: 1;
}

.footer-verse {
    font-family: var(--font-arabic);
    font-size: 1.5rem;
    color: var(--accent-gold);
    margin-bottom: 12px;
    opacity: 0.8;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ==========================================
   BACK TO TOP
   ========================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--text-white);
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-normal);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-dark));
    color: var(--primary-darkest);
    transform: translateY(-3px);
}

/* ==========================================
   ANIMATIONS
   ========================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 1200px) {
    .books-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        order: 2;
    }

    .hero-image {
        order: 1;
    }

    .hero-badge {
        justify-content: center;
    }

    .hero-description {
        margin: 0 auto 32px;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-image-frame {
        width: 300px;
        height: 380px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-photo {
        height: 400px;
    }

    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .videos-grid {
        grid-template-columns: 1fr;
    }

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

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

    .news-card.featured {
        grid-column: 1 / -1;
        grid-row: span 1;
    }

    .library-summary,
    .library-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-item.large {
        grid-column: span 2;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .books-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: rgba(10, 22, 40, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 80px 30px 30px;
        gap: 8px;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-link {
        font-size: 1.1rem;
        padding: 12px 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .btn-nav {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .title-name {
        font-size: 2.5rem;
    }

    .title-line {
        font-size: 1.3rem;
    }

    .title-suffix {
        font-size: 1.2rem;
    }

    .hero-image-frame {
        width: 250px;
        height: 320px;
    }

    .hero-stats {
        gap: 20px;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .courses-grid {
        grid-template-columns: 1fr;
    }

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

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

    .news-card.featured .news-image,
    .news-image {
        height: 220px;
    }

    .library-card {
        grid-template-columns: 1fr;
    }

    .lang-switch {
        display: none;
    }

    .books-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .book-cover-design {
        height: 250px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item.large {
        grid-column: span 1;
        grid-row: span 1;
        height: 280px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

}

@media (max-width: 480px) {
    .hero {
        padding: 100px 0 60px;
    }

    .title-name {
        font-size: 2rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .books-grid {
        grid-template-columns: 1fr;
    }

    .courses-filter {
        gap: 8px;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .contact-form-container {
        padding: 24px;
    }

}

/* ==========================================
   Brand Refresh (Inspired, Not Copied)
   ========================================== */

:root {
    --primary-darkest: #091327;
    --primary-darker: #0e2346;
    --primary-dark: #143365;
    --primary: #1d4c90;
    --primary-light: #2c63ab;
    --primary-lighter: #4a81c7;
    --accent-gold: #d6ac4f;
    --accent-gold-light: #e8c879;
    --accent-gold-dark: #b98e33;
    --bg-primary: #f6f7fb;
    --bg-secondary: #eef1f7;
    --text-primary: #101a2e;
    --text-secondary: #3d4a63;
    --border-medium: rgba(16, 31, 59, 0.12);
    --shadow-sm: 0 6px 20px rgba(11, 26, 51, 0.06);
    --shadow-md: 0 12px 30px rgba(11, 26, 51, 0.1);
    --shadow-lg: 0 18px 42px rgba(11, 26, 51, 0.14);
}

body {
    background: linear-gradient(180deg, #f8f9fc 0%, #f3f5fa 100%);
}

.navbar {
    padding: 12px 0;
}

.nav-container {
    background: linear-gradient(125deg, rgba(10, 22, 45, 0.98), rgba(16, 39, 78, 0.98));
    border: 1px solid rgba(214, 172, 79, 0.22);
    border-radius: 18px;
    padding: 10px 18px;
    box-shadow: 0 14px 34px rgba(8, 19, 39, 0.28);
}

.navbar.scrolled .nav-container {
    box-shadow: 0 16px 34px rgba(8, 19, 39, 0.32);
}

.nav-link {
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: 600;
}

.nav-link.active,
.nav-link:hover {
    background: rgba(255, 255, 255, 0.13);
}

.btn-nav {
    border-radius: 12px;
    padding: 10px 18px;
}

.btn-nav-secondary {
    background: rgba(255, 255, 255, 0.11);
}

.hero {
    padding-top: 150px;
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 25%, rgba(214, 172, 79, 0.18), transparent 48%),
        radial-gradient(circle at 80% 18%, rgba(80, 129, 198, 0.2), transparent 52%);
    pointer-events: none;
}

.hero-badge {
    border-radius: 999px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(214, 172, 79, 0.3);
}

.hero-image-frame,
.about-image-wrapper {
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 24px 50px rgba(8, 19, 39, 0.2);
}

.section-header {
    margin-bottom: 32px;
}

.section-title {
    letter-spacing: 0;
}

.news-card,
.reel-card,
.course-card,
.book-card,
.library-card,
.contact-form-container,
.footer-links-group {
    border: 1px solid rgba(16, 31, 59, 0.08);
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
    background: #fff;
}

.news-card:hover,
.reel-card:hover,
.course-card:hover,
.book-card:hover,
.library-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.news-image,
.reel-media,
.course-image,
.book-cover-design {
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
}

.news-content,
.reel-body,
.course-content,
.book-content,
.library-card {
    padding: 20px;
}

.reel-actions .share-link {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(16, 31, 59, 0.14);
    color: var(--primary-dark);
    background: #fff;
    transition: all var(--transition-fast);
}

.reel-actions .share-link:hover {
    border-color: var(--accent-gold-dark);
    color: var(--accent-gold-dark);
    transform: translateY(-2px);
}

.library-summary-card {
    border-radius: 14px;
    background: linear-gradient(170deg, #ffffff, #f8faff);
    border: 1px solid rgba(16, 31, 59, 0.08);
}

.contact-section {
    background: linear-gradient(135deg, #0e2346, #102f5b 58%, #1a4a87);
}

.contact-form input,
.contact-form textarea {
    border-radius: 12px;
    border: 1px solid rgba(16, 31, 59, 0.14);
}

.footer {
    background: linear-gradient(140deg, #091327, #0f284d);
}

.scroll-top {
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(8, 19, 39, 0.3);
}

.join-strip {
    padding: 24px 0 8px;
}

.join-strip-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    background: linear-gradient(130deg, #0f274c, #173a6b);
    border-radius: 18px;
    color: #fff;
    padding: 18px 22px;
    border: 1px solid rgba(214, 172, 79, 0.3);
}

.join-strip-wrap h3 {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.join-strip-wrap p {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
}

.join-strip-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.live-rooms-section {
    padding: 30px 0 20px;
}

@media (max-width: 992px) {
    .nav-container {
        border-radius: 14px;
        padding: 10px 14px;
    }

    .hero {
        padding-top: 130px;
    }

    .join-strip-wrap {
        flex-direction: column;
        align-items: flex-start;
    }
}
