/* ============================================
   Fakhriy Educational - Main Stylesheet
   ============================================ */

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

:root {
    --primary: #1a5f4a;
    --primary-dark: #134336;
    --primary-light: #2d8a6e;
    --secondary: #c9a227;
    --accent: #8b5e3c;
    --success: #10b981;
    --danger: #ef4444;
    --dark: #1e293b;
    --gray-900: #0f172a;
    --gray-800: #1e293b;
    --gray-700: #334155;
    --gray-600: #475569;
    --gray-500: #64748b;
    --gray-400: #94a3b8;
    --gray-300: #cbd5e1;
    --gray-200: #e2e8f0;
    --gray-100: #f1f5f9;
    --gray-50: #f8fafc;
    --white: #ffffff;
    --youtube: #ff0000;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', 'Noto Sans Arabic', 'Tajawal', sans-serif;
    line-height: 1.6;
    color: var(--gray-700);
    background: var(--gray-50);
}

/* Arabic RTL Support */
.rtl {
    direction: rtl;
    text-align: right;
}

.rtl .article-content,
.rtl .article-body,
.rtl .about-text {
    font-family: 'Tajawal', 'Noto Sans Arabic', 'Poppins', sans-serif;
}

.article-body.mixed-content {
    direction: ltr;
    text-align: left;
}

.article-body .arabic-text {
    direction: rtl;
    text-align: right;
    font-family: 'Tajawal', 'Noto Sans Arabic', sans-serif;
}

.article-body .english-text {
    direction: ltr;
    text-align: left;
}

/* Islamic Calligraphy Styles */
.arabic-calligraphy {
    font-family: 'Amiri', 'Aref Ruqaa', serif;
    direction: rtl;
    text-align: center;
}

.quran-verse {
    font-family: 'Amiri', serif;
    font-size: 1.8rem;
    line-height: 2.2;
    color: var(--primary-dark);
    direction: rtl;
    text-align: center;
    padding: 30px 20px;
    position: relative;
}

.quran-verse::before,
.quran-verse::after {
    content: '✦';
    color: var(--secondary);
    margin: 0 15px;
}

.verse-reference {
    font-family: 'Tajawal', sans-serif;
    font-size: 0.95rem;
    color: var(--gray-500);
    margin-top: 10px;
    direction: rtl;
}

/* Quran Verse Container - Enhanced */
.quran-verse {
    background: linear-gradient(135deg, rgba(26, 95, 74, 0.04), rgba(201, 162, 39, 0.04));
    border: 2px solid var(--secondary);
    border-radius: 16px;
    padding: 30px 25px;
    margin: 25px 0;
    text-align: center;
    position: relative;
}

.quran-verse::before {
    content: '۞';
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    padding: 0 12px;
    color: var(--secondary);
    font-size: 1.4rem;
}

.quran-verse::after {
    content: none;
}

.verse-arabic {
    font-family: 'Amiri', serif;
    font-size: 1.7rem;
    line-height: 2.2;
    color: var(--primary-dark);
    direction: rtl;
    text-align: center;
    margin-bottom: 15px;
}

.verse-translation {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    color: var(--gray-600);
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 12px;
    padding: 0 10px;
}

/* Hadith Quote Styles */
.hadith-quote {
    background: linear-gradient(135deg, rgba(139, 90, 43, 0.05), rgba(201, 162, 39, 0.05));
    border-left: 4px solid #8b5a2b;
    border-radius: 0 12px 12px 0;
    padding: 25px 30px;
    margin: 25px 0;
    position: relative;
}

.hadith-quote::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 15px;
    font-size: 3rem;
    color: rgba(139, 90, 43, 0.2);
    font-family: Georgia, serif;
    line-height: 1;
}

.hadith-arabic {
    font-family: 'Amiri', serif;
    font-size: 1.5rem;
    line-height: 2;
    color: #5d4037;
    direction: rtl;
    text-align: right;
    margin-bottom: 15px;
}

.hadith-translation {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    color: var(--gray-600);
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 12px;
}

.hadith-narrator {
    font-family: 'Tajawal', sans-serif;
    font-size: 0.95rem;
    color: #8b5a2b;
    font-weight: 500;
    margin-bottom: 5px;
}

.hadith-source {
    font-family: 'Tajawal', sans-serif;
    font-size: 0.9rem;
    color: var(--gray-500);
}

.bismillah {
    font-family: 'Amiri', serif;
    font-size: 2.5rem;
    color: var(--primary);
    text-align: center;
    direction: rtl;
    margin: 20px 0;
    line-height: 1.8;
}

.islamic-decoration {
    text-align: center;
    color: var(--secondary);
    font-size: 1.5rem;
    letter-spacing: 10px;
    margin: 20px 0;
}

.islamic-border {
    border: 2px solid var(--secondary);
    border-radius: var(--radius);
    position: relative;
    padding: 30px;
    background: linear-gradient(135deg, rgba(26, 95, 74, 0.03), rgba(201, 162, 39, 0.03));
}

.islamic-border::before {
    content: '۞';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    padding: 0 15px;
    color: var(--secondary);
    font-size: 1.5rem;
}

.surah-card {
    background: linear-gradient(135deg, #faf9f6, #fff);
    border-radius: var(--radius);
    padding: 35px 25px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 2px solid var(--secondary);
    margin: 0 auto;
    max-width: 800px;
}

.surah-card .surah-name {
    font-family: 'Aref Ruqaa', serif;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.surah-card .arabic-verse {
    font-family: 'Amiri', serif;
    font-size: 1.6rem;
    line-height: 2;
    color: var(--primary-dark);
    direction: rtl;
    margin-bottom: 15px;
}

.surah-card .translation {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    color: var(--gray-600);
    font-style: italic;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--gray-200);
}

/* Islamic Pattern Background */
.islamic-pattern-bg {
    background-color: #f8f6f0;
    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%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231a5f4a' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--gray-900);
    font-weight: 600;
    line-height: 1.3;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    background: var(--gray-200);
    color: var(--gray-700);
}

.btn:hover {
    background: var(--gray-300);
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

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

.btn-secondary {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--gray-300);
    color: var(--gray-700);
}

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

.btn-youtube {
    background: var(--youtube);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.btn-youtube:hover {
    background: #cc0000;
}

.btn-youtube-large {
    background: var(--youtube);
    color: var(--white);
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
}

.btn-youtube-large:hover {
    background: #cc0000;
    transform: translateY(-2px);
}

.btn-youtube-large svg {
    margin-right: 8px;
}

.btn-linkedin {
    background: #0077b5;
    color: var(--white);
}

.btn-linkedin:hover {
    background: #005885;
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--secondary);
    color: var(--secondary);
}

.btn-secondary:hover {
    background: var(--secondary);
    color: var(--white);
}

/* Navigation */
.navbar {
    background: linear-gradient(135deg, var(--white) 0%, #f8faf9 100%);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    border-bottom: 2px solid var(--secondary);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-svg {
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

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

.logo-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-dark);
}

.logo-title {
    font-size: 0.7rem;
    color: var(--gray-500);
    font-weight: 400;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-links li {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    color: var(--gray-600);
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: rgba(26, 95, 74, 0.08);
    color: var(--primary);
}

.nav-icon {
    font-size: 1rem;
}

.nav-links .btn-youtube {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #ff0000, #cc0000);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
}

.nav-links .btn-youtube:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.4);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.3s;
}

.mobile-menu-btn:hover {
    background: rgba(26, 95, 74, 0.1);
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: all 0.3s;
}

/* Mobile Responsive Navigation */
@media (max-width: 900px) {
    .logo-title {
        display: none;
    }

    .logo-name {
        font-size: 1rem;
    }

    .nav-icon {
        display: none;
    }

    .nav-link {
        padding: 8px 12px;
        font-size: 0.9rem;
    }

    .nav-links .btn-youtube {
        padding: 8px 14px;
        font-size: 0.85rem;
    }

    .nav-links .btn-youtube svg {
        display: none;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        gap: 5px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.15);
        transform: translateY(-150%);
        opacity: 0;
        transition: all 0.3s ease;
        border-bottom: 3px solid var(--secondary);
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-link {
        width: 100%;
        padding: 15px 20px;
        border-radius: 10px;
        justify-content: flex-start;
    }

    .nav-link:hover {
        background: rgba(26, 95, 74, 0.1);
    }

    .nav-icon {
        display: inline;
    }

    .nav-links .btn-youtube {
        width: 100%;
        justify-content: center;
        margin-top: 10px;
        padding: 15px;
        border-radius: 10px;
    }

    .nav-links .btn-youtube svg {
        display: inline;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--gray-900) 100%);
    color: var(--white);
    padding: 60px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero.islamic-pattern-bg {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #0a2e24 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    opacity: 0.1;
    transform: skewX(-15deg) translateX(50%);
}

/* Quran Section */
.quran-section {
    padding: 50px 0;
    background: var(--white);
}

.quran-section.islamic-pattern-bg {
    padding: 50px 0;
}

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

.author-photo {
    margin-bottom: 20px;
}

.author-photo img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--secondary);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.hero-content h1 {
    color: var(--white);
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.hero-content .highlight {
    background: linear-gradient(135deg, var(--secondary), #e8c547);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content .bismillah {
    color: var(--secondary);
    margin-bottom: 20px;
    font-size: 2.2rem;
    font-family: 'Amiri', serif;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--gray-300);
    margin-bottom: 25px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-content .hero-title {
    color: var(--secondary);
    font-size: 1.3rem;
    margin-bottom: 15px;
}

/* Hero Tags */
.hero-tags {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.tag {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.tag-islamic {
    background: rgba(201, 162, 39, 0.2);
    color: #e8c547;
    border: 1px solid rgba(201, 162, 39, 0.4);
}

.tag-politics {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.4);
}

.tag-education {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-image {
    display: none;
}

.hero-decoration {
    display: none;
}

/* Sections */
.featured-section,
.youtube-section,
.articles-section,
.about-section {
    padding: 80px 0;
}

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

.section-header h2 {
    margin-bottom: 10px;
}

.section-header p {
    color: var(--gray-500);
    font-size: 1.1rem;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    color: var(--white);
    margin-bottom: 10px;
}

.page-header p {
    color: var(--gray-400);
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.article-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid var(--gray-100);
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--secondary);
}

.article-image {
    height: 200px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.article-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.article-card:hover .article-image::after {
    opacity: 1;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-card:hover .article-image img {
    transform: scale(1.1);
}

.article-content {
    padding: 24px;
}

.article-date {
    font-size: 0.8rem;
    color: var(--primary);
    display: inline-block;
    margin-bottom: 10px;
    background: rgba(26, 95, 74, 0.1);
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 500;
}

.article-content h3 {
    margin-bottom: 12px;
    font-size: 1.15rem;
    line-height: 1.4;
}

.article-content h3 a {
    color: var(--gray-900);
    transition: color 0.3s;
}

.article-content h3 a:hover {
    color: var(--primary);
}

.article-content p {
    color: var(--gray-500);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.read-more:hover {
    color: var(--primary);
    gap: 10px;
}

.article-content h3 a:hover {
    color: var(--primary);
}

.article-content p {
    color: var(--gray-600);
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.read-more {
    color: var(--primary);
    font-weight: 500;
    font-size: 0.9rem;
}

.read-more:hover {
    color: var(--primary-dark);
}

.view-all {
    text-align: center;
    margin-top: 50px;
}

.no-articles {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-500);
}

/* Single Article */
.single-article {
    padding: 60px 0;
    background: var(--white);
}

.single-article .container {
    max-width: 900px;
}

.article-header {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--gray-100);
}

.back-link {
    color: var(--primary);
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 25px;
    padding: 8px 16px;
    background: rgba(26, 95, 74, 0.08);
    border-radius: 20px;
    transition: all 0.3s;
}

.back-link:hover {
    background: rgba(26, 95, 74, 0.15);
    color: var(--primary-dark);
}

.article-header h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.4;
    color: var(--gray-900);
}

.rtl .article-header h1 {
    font-family: 'Tajawal', 'Amiri', sans-serif;
    font-size: 2.8rem;
}

.article-meta {
    color: var(--gray-500);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 15px;
}

.article-meta .date {
    background: var(--gray-100);
    padding: 6px 14px;
    border-radius: 20px;
}

.featured-image {
    margin-bottom: 40px;
    border-radius: var(--radius);
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
}

.article-body {
    max-width: 100%;
    font-size: 1.15rem;
    line-height: 2;
    color: var(--gray-700);
}

.rtl .article-body {
    font-family: 'Tajawal', 'Noto Sans Arabic', sans-serif;
    font-size: 1.2rem;
    line-height: 2.2;
}

.article-body p {
    margin-bottom: 24px;
    text-align: justify;
}

.article-body h2, .article-body h3 {
    margin-top: 50px;
    margin-bottom: 25px;
    color: var(--primary-dark);
    position: relative;
    padding-bottom: 12px;
}

.article-body h2::after, .article-body h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 3px;
    background: var(--secondary);
    border-radius: 2px;
}

.article-body img {
    border-radius: var(--radius-sm);
    margin: 30px 0;
    box-shadow: var(--shadow-md);
}

/* Article Gallery */
.article-gallery {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid var(--gray-200);
}

.article-gallery h3 {
    margin-bottom: 20px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: transform 0.2s;
}

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

.gallery-item .caption {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-top: 8px;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: var(--radius-sm);
}

.lightbox .close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: var(--white);
    cursor: pointer;
}

/* Share Buttons */
.article-footer {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--gray-200);
}

.share-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.share-buttons span {
    color: var(--gray-600);
    font-weight: 500;
}

.share-btn {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--white);
}

.share-btn.twitter { background: #1da1f2; }
.share-btn.facebook { background: #1877f2; }
.share-btn.whatsapp { background: #25d366; }

.share-btn:hover {
    opacity: 0.9;
}

/* YouTube Section */
.youtube-section {
    background: linear-gradient(135deg, var(--primary-dark), var(--gray-900));
    color: var(--white);
    padding: 60px 0;
}

.youtube-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.youtube-info h2 {
    color: var(--white);
    margin-bottom: 15px;
}

.youtube-info p {
    color: var(--gray-400);
    margin-bottom: 25px;
}

/* About Section */
.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 50px;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.feature {
    text-align: center;
    padding: 30px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--white);
}

.feature h3 {
    margin-bottom: 10px;
}

.feature p {
    color: var(--gray-600);
    font-size: 0.95rem;
}

.youtube-cta {
    text-align: center;
    padding: 50px;
    background: linear-gradient(135deg, var(--gray-900), var(--gray-800));
    border-radius: var(--radius);
    color: var(--white);
}

.youtube-cta h2 {
    color: var(--white);
    margin-bottom: 15px;
}

.youtube-cta p {
    color: var(--gray-400);
    margin-bottom: 25px;
}

/* About Profile */
.about-profile {
    margin-bottom: 50px;
    text-align: center;
}

.profile-photo {
    margin-bottom: 25px;
}

.profile-photo img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--secondary);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.profile-info h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.profile-tags {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 15px 0 25px;
}

.profile-tags .tag {
    background: var(--gray-100);
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
}

.profile-tags .tag-islamic {
    background: rgba(201, 162, 39, 0.1);
    color: #b8860b;
    border: 1px solid rgba(201, 162, 39, 0.3);
}

.profile-tags .tag-politics {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.profile-tags .tag-education {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.profile-title {
    font-size: 1.25rem;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 25px;
}

.social-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.social-links .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.social-links .btn svg {
    flex-shrink: 0;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 50px;
}

.page-link {
    padding: 10px 16px;
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    color: var(--gray-700);
    font-weight: 500;
}

.page-link:hover,
.page-link.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

/* Footer */
.footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: var(--white);
    margin-bottom: 15px;
}

.footer-section h4 {
    color: var(--white);
    margin-bottom: 15px;
    font-size: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: var(--gray-400);
}

.footer-section a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--gray-800);
    font-size: 0.9rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        box-shadow: var(--shadow-md);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        margin: 0 auto 30px;
    }

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

    .hero-image {
        display: none;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .article-header h1 {
        font-size: 1.75rem;
    }

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

    .channel-playlist iframe {
        height: 300px;
    }
}

/* ============================================
   Videos Page Styles
   ============================================ */

.videos-section {
    padding: 40px 0 60px;
    background: var(--gray-50);
}

.videos-section .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.videos-section .section-header h2 {
    color: var(--primary);
    margin-bottom: 10px;
}

/* Featured Video Section */
.featured-video-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-bottom: 50px;
    border: 2px solid var(--secondary);
}

.featured-video-embed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: #000;
}

.featured-video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.featured-video-info {
    padding: 30px;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--white);
}

.featured-video-info h2 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: var(--secondary);
}

.featured-video-info p {
    margin-bottom: 15px;
    line-height: 1.8;
    font-size: 1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.featured-video-info .arabic-dua {
    font-family: 'Amiri', serif;
    font-size: 1.8rem;
    color: var(--secondary);
    margin-top: 20px;
}

/* Videos Row */
.videos-row {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin: 30px auto 50px;
    max-width: 700px;
}

.video-item {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: #000;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Channel Embed */
.channel-embed {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin: 30px auto 50px;
    max-width: 700px;
}

.channel-embed iframe {
    width: 100%;
    height: 400px;
    border: none;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 30px auto 50px;
    max-width: 600px;
}

.gallery-photo {
    aspect-ratio: 1;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-md);
}

.gallery-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-photo:hover img {
    transform: scale(1.05);
}

/* Subscribe Box */
.subscribe-box {
    background: linear-gradient(135deg, var(--gray-900), var(--gray-800));
    border-radius: var(--radius-lg);
    padding: 40px 20px;
    text-align: center;
    color: var(--white);
    max-width: 700px;
    margin: 0 auto;
}

.subscribe-box .arabic-dua {
    font-family: 'Amiri', serif;
    font-size: 1.5rem;
    color: var(--secondary);
    margin-bottom: 15px;
}

.subscribe-box h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.btn-subscribe {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #ff0000;
    color: white;
    padding: 14px 28px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
}

.btn-subscribe:hover {
    background: #cc0000;
    transform: scale(1.05);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .videos-section {
        padding: 30px 0 50px;
    }

    .videos-section .container {
        padding: 0 15px;
    }

    .featured-video-info {
        padding: 25px 20px;
    }

    .featured-video-info h2 {
        font-size: 1.2rem;
    }

    .featured-video-info p {
        font-size: 0.95rem;
    }

    .channel-embed iframe {
        height: 280px;
    }

    .gallery-grid {
        gap: 10px;
    }

    .subscribe-box {
        padding: 30px 15px;
    }

    .subscribe-box h3 {
        font-size: 1.3rem;
    }

    .btn-subscribe {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .featured-video-info .arabic-dua {
        font-size: 1.5rem;
    }

    .subscribe-box .arabic-dua {
        font-size: 1.3rem;
    }

    .channel-embed iframe {
        height: 220px;
    }
}

/* ============================================
   Enhanced Article Content Styles
   ============================================ */

/* Article content card wrapper */
.article-body {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

/* Numbered List Styling for Arabic Articles */
.article-body ol,
.rtl .article-body ol {
    list-style: none;
    counter-reset: arabic-counter;
    padding: 0;
    margin: 30px 0;
}

.article-body ol li,
.rtl .article-body ol li {
    counter-increment: arabic-counter;
    position: relative;
    padding: 20px 25px 20px 70px;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--gray-50), var(--white));
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
}

.rtl .article-body ol li {
    padding: 20px 70px 20px 25px;
}

.article-body ol li:hover {
    border-color: var(--secondary);
    box-shadow: var(--shadow-md);
    transform: translateX(-5px);
}

.rtl .article-body ol li:hover {
    transform: translateX(5px);
}

.article-body ol li::before {
    content: counter(arabic-counter);
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
}

.rtl .article-body ol li::before {
    left: auto;
    right: 20px;
}

/* Unordered list styling */
.article-body ul {
    list-style: none;
    padding: 0;
    margin: 25px 0;
}

.article-body ul li {
    position: relative;
    padding: 12px 20px 12px 35px;
    margin-bottom: 10px;
    background: var(--gray-50);
    border-radius: var(--radius-sm);
    border-right: 3px solid var(--secondary);
}

.rtl .article-body ul li {
    padding: 12px 35px 12px 20px;
    border-right: none;
    border-left: 3px solid var(--secondary);
}

.article-body ul li::before {
    content: '•';
    position: absolute;
    left: 15px;
    top: 12px;
    color: var(--secondary);
    font-size: 1.5rem;
    line-height: 1;
}

.rtl .article-body ul li::before {
    left: auto;
    right: 15px;
}

/* Section breaks and separators */
.article-body hr {
    border: none;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--secondary), transparent);
    margin: 40px 0;
}

/* Highlighted text boxes for key points */
.article-body strong,
.article-body b {
    color: var(--primary-dark);
    font-weight: 600;
}

/* Article summary/conclusion box */
.article-body .summary-box,
.article-body p:first-of-type {
    font-size: 1.25rem;
    line-height: 2;
    color: var(--gray-800);
    padding: 25px 30px;
    background: linear-gradient(135deg, rgba(26, 95, 74, 0.05), rgba(201, 162, 39, 0.05));
    border-radius: var(--radius);
    border-right: 4px solid var(--primary);
    margin-bottom: 35px;
}

.rtl .article-body p:first-of-type {
    border-right: none;
    border-left: 4px solid var(--primary);
    font-size: 1.3rem;
}

/* Section headers within article */
.article-body .section-title {
    font-size: 1.4rem;
    color: var(--primary);
    margin: 45px 0 20px;
    padding: 15px 20px;
    background: var(--gray-50);
    border-radius: var(--radius-sm);
    display: inline-block;
}

/* Inline Quranic verses detection and styling */
.article-body p:has(﴿),
.article-body p:has(﴾) {
    font-family: 'Amiri', serif;
    font-size: 1.4rem;
    line-height: 2.4;
    color: var(--primary-dark);
    background: linear-gradient(135deg, rgba(26, 95, 74, 0.04), rgba(201, 162, 39, 0.04));
    padding: 25px 30px;
    border-radius: var(--radius);
    border: 2px solid var(--secondary);
    margin: 30px 0;
    text-align: center;
}

/* Source/Reference styling */
.article-body .source,
.article-body p:last-of-type:has(المصدر) {
    font-size: 1rem;
    color: var(--gray-500);
    padding: 20px;
    background: var(--gray-50);
    border-radius: var(--radius-sm);
    margin-top: 40px;
    text-align: center;
    border-top: 2px solid var(--gray-200);
}

/* Reading progress indicator */
.article-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    z-index: 1000;
    transition: width 0.1s;
}

/* Print-friendly styles */
@media print {
    .article-body {
        box-shadow: none;
        padding: 0;
    }

    .article-body ol li {
        break-inside: avoid;
    }
}

/* Mobile responsive for article content */
@media (max-width: 768px) {
    .article-body {
        padding: 25px 20px;
        font-size: 1.05rem;
    }

    .rtl .article-body {
        font-size: 1.1rem;
        line-height: 2;
    }

    .article-header h1 {
        font-size: 1.8rem;
    }

    .rtl .article-header h1 {
        font-size: 2rem;
    }

    .article-body ol li {
        padding: 15px 20px 15px 55px;
    }

    .rtl .article-body ol li {
        padding: 15px 55px 15px 20px;
    }

    .article-body ol li::before {
        width: 30px;
        height: 30px;
        font-size: 0.85rem;
        left: 12px;
    }

    .rtl .article-body ol li::before {
        left: auto;
        right: 12px;
    }

    .article-body p:first-of-type {
        padding: 20px;
        font-size: 1.1rem;
    }

    .rtl .article-body p:first-of-type {
        font-size: 1.15rem;
    }
}
