/* Custom Fonts - Cairo for Arabic, with fallbacks */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;800;900&display=swap');

/* CSS Variables for easy theme management */
:root {
    /* Colors Palette */
    --primary-dark-blue: #1A2E44; /* Deep Navy Blue for header, footer */
    --accent-gold: #FFC107; /* Warm Gold for highlights */
    --light-grey-bg: #F0F2F5; /* Soft, warm light grey for main content background */
    --white: #FFFFFF; /* Pure white for text on dark backgrounds */
    --text-dark: #34495E; /* Dark charcoal for main body text */
    --text-light: #7F8C8D; /* Lighter grey for secondary text/references */
    --border-subtle: #DDE1E6; /* Very light grey for subtle borders */
    --hover-effect-light: rgba(255, 255, 255, 0.1); /* White tint for hover on dark */
    --hover-effect-dark: rgba(0, 0, 0, 0.05); /* Dark tint for hover on light */
    --gold-gradient: linear-gradient(to right, #D4AF37, #FFD700); /* تدرج ذهبي احترافي */
    --card-hover-shadow: 0 12px 40px rgba(0, 0, 0, 0.2); /* ظل أكبر للبطاقات عند التحويم */


    /* Spacing System - تم تقليلها بشكل جذري لكي تتناسب مع القائمة الصغيرة جداً */
    --space-xs: 2px;   /* أصغر مسافة */
    --space-sm: 4px;   /* مسافة صغيرة */
    --space-md: 8px;   /* مسافة متوسطة */
    --space-lg: 12px;  /* مسافة كبيرة */
    --space-xl: 16px;  /* مسافة أكبر */
    --space-xxl: 24px; /* مسافة كبيرة جداً */
    --space-xxxl: 32px;/* مسافة أكبر جداً */

    /* Font Sizes - تم تقليلها بشكل كبير لتناسب القائمة */
    --font-size-base: 0.9rem;       /* 14.4px */
    --font-size-sm: 0.75rem;        /* 12px - مهم جداً للقائمة */
    --font-size-md: 0.85rem;        /* 13.6px */
    --font-size-lg: 1rem;           /* 16px */
    --font-size-xl: 1.4rem;         /* 22.4px */
    --font-size-xxl: 1.8rem;        /* 28.8px */
    --font-size-hero: 2.5rem;       /* 40px */

    /* Other Properties */
    --border-radius: 8px; /* Softer, modern rounded corners */
    --box-shadow-light: 0 3px 10px rgba(0, 0, 0, 0.06); /* Soft and subtle */
    --box-shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.12); /* More pronounced */
    --transition-speed: 0.3s ease-in-out; /* Slightly slower for smoother feel */
}

/* Base Styles & Global Resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--light-grey-bg);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    text-align: right; /* Default text alignment for RTL */
    overflow-x: hidden;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

a {
    text-decoration: none;
    color: var(--accent-gold);
    transition: color var(--transition-speed), transform var(--transition-speed);
}

a:hover {
    color: var(--primary-dark-blue);
    transform: translateY(-1px);
}

ul {
    list-style: none;
}

/* Header - Navigation Bar */
.main-header {
    background-image: url('premium_photo-1733317311165-da7283ff1809.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    color: var(--white);
    padding: var(--space-md) 0;
    box-shadow: var(--box-shadow-medium);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.main-header .container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between; /* للحفاظ على اللوجو يمينًا وزر القائمة يسارًا */
    align-items: center;
    flex-wrap: wrap;
    padding: var(--space-sm) var(--space-md);
}

/* Logo Section */
.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    position: relative;
    z-index: 3;
}

.logo img {
    height: 50px;
    width: auto;
}

.logo h1 {
    font-size: var(--font-size-xxl);
    margin: 0;
    color: var(--white);
    font-weight: 900;
    letter-spacing: 1px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.logo-subtitle {
    display: block;
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.75);
    margin-top: -2px;
    font-weight: 400;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    text-shadow: 0.5px 0.5px 2px rgba(0, 0, 0, 0.7);
}

/* Navigation Menu */
.main-nav {
    position: relative;
    display: inline-block;
    z-index: 1002;
    margin-right: 0;
    margin-left: auto;
}

.menu-toggle {
    background-color: var(--accent-gold);
    border: none;
    color: var(--primary-dark-blue);
    font-size: var(--font-size-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--border-radius);
    transition: background-color var(--transition-speed), transform var(--transition-speed);
    font-weight: 700;
    box-shadow: var(--box-shadow-light);
    position: relative;
    z-index: 1003;
    width: auto;
    min-width: 90px;
    justify-content: center;
    text-shadow: 0.5px 0.5px 1px rgba(0,0,0,0.2); /* إضافة ظل للنص */
    letter-spacing: 0.5px; /* مسافات بين الحروف */
}

.menu-toggle:hover {
    background-color: #e6b100;
    transform: translateY(-1px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.1);
}

/* Dropdown Navigation Menu */
.nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: calc(100% + var(--space-sm));
    left: 0;
    right: auto;
    background-color: var(--primary-dark-blue);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-medium);
    z-index: 1001;
    width: max-content;
    max-width: 200px;
    min-width: 130px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height var(--transition-speed) ease-out, padding var(--transition-speed) ease-out, opacity var(--transition-speed) ease-out, visibility var(--transition-speed) ease-out;
    padding: 0;
    text-align: right;
    transform-origin: top right;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-menu.active {
    display: flex;
    max-height: 300px;
    padding: var(--space-xs) 0;
    opacity: 1;
    visibility: visible;
}

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

.nav-menu li a {
    color: var(--white);
    padding: var(--space-sm) var(--space-md);
    display: block;
    transition: background-color var(--transition-speed), padding var(--transition-speed);
    font-weight: 400;
    white-space: nowrap;
    font-size: var(--font-size-sm);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-menu li:last-child a {
    border-bottom: none;
}

.nav-menu li a:hover {
    background-color: rgba(255, 193, 7, 0.2);
    padding-right: var(--space-lg);
}

/* Style for the active navigation link */
.nav-menu li a.active-link {
    background-color: var(--accent-gold);
    color: var(--primary-dark-blue);
    font-weight: 700;
    position: relative;
    box-shadow: inset 3px 0 0 var(--primary-dark-blue);
}

.nav-menu li a.active-link:hover {
    background-color: #e6b100;
    padding-right: var(--space-md);
}

/* Main Content Area - Applies to all content pages */
.main-content {
    flex-grow: 1;
    padding: var(--space-xxl) 0;
    padding-bottom: var(--space-xxxl); /* يمكن تعديلها لزيادة المسافة قبل الفوتر */
}

/* Specific styling for verse of the day section */
.verse-of-the-day {
    background-color: var(--white);
    padding: var(--space-xl);
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--box-shadow-medium);
    max-width: 800px;
    margin: 0 auto var(--space-xxl) auto;
    border: 1px solid var(--border-subtle);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}
.verse-of-the-day:hover {
    transform: translateY(-3px); /* زيادة التحويم */
    box-shadow: var(--card-hover-shadow); /* ظل أكبر عند التحويم */
}

.verse-of-the-day h2 {
    color: var(--primary-dark-blue);
    font-size: var(--font-size-xxl);
    margin-bottom: var(--space-md);
    position: relative;
    padding-bottom: var(--space-sm);
    font-weight: 900;
    letter-spacing: 0.8px;
}

.verse-of-the-day h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 4px;
    background: var(--gold-gradient); /* استخدام التدرج الذهبي */
    border-radius: var(--border-radius);
}

.verse-of-the-day p {
    font-size: var(--font-size-lg);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
    color: var(--text-dark);
    font-weight: 600;
}

.verse-of-the-day .verse-reference {
    display: block;
    font-size: var(--font-size-md);
    color: var(--text-light);
    margin-top: var(--space-lg);
    font-weight: 400;
}

/* NEW: Style for general content pages */
.content-page {
    background-color: var(--white);
    padding: var(--space-xl);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-medium);
    max-width: 800px;
    margin: 0 auto var(--space-xxl) auto;
    border: 1px solid var(--border-subtle);
    text-align: right;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}
.content-page:hover {
    transform: translateY(-3px); /* زيادة التحويم */
    box-shadow: var(--card-hover-shadow); /* ظل أكبر عند التحويم */
}

.content-page h2 {
    color: var(--primary-dark-blue);
    font-size: var(--font-size-xxl);
    margin-bottom: var(--space-xl);
    position: relative;
    padding-bottom: var(--space-sm);
    font-weight: 900;
    letter-spacing: 0.8px;
    text-align: center;
}

.content-page h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 4px;
    background: var(--gold-gradient); /* استخدام التدرج الذهبي */
    border-radius: var(--border-radius);
}

.content-page p {
    font-size: var(--font-size-base);
    line-height: 1.6;
    margin-bottom: var(--space-md);
    color: var(--text-dark);
}

.content-page h3 {
    color: var(--primary-dark-blue);
    font-size: var(--font-size-lg);
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
    font-weight: 700;
}

.content-page ul {
    list-style: disc inside;
    margin-right: var(--space-lg);
    margin-bottom: var(--space-md);
}

.content-page ul li {
    margin-bottom: var(--space-xs);
    color: var(--text-dark);
}

/* Footer Section */
.main-footer {
    background-color: var(--primary-dark-blue);
    color: var(--white);
    text-align: center;
    padding: var(--space-xl) 0;
    margin-top: auto;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.08);
}

.main-footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    margin-bottom: var(--space-sm);
}

/* Social Icons in Footer */
.contact-info a {
    font-size: var(--font-size-xl);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--light-grey-bg); /* تم تغيير الخلفية إلى الرمادي */
    transition: background-color var(--transition-speed), transform var(--transition-speed), box-shadow var(--transition-speed);
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-info a .fa-facebook-f {
    color: #3b5998 !important;
}

.contact-info a .fa-whatsapp {
    color: #25d366 !important;
}

.contact-info a .fa-envelope {
    color: #ff0000 !important; /* تم تغيير لون الإيميل إلى الأحمر */
}

.contact-info a:hover {
    background-color: var(--accent-gold); /* الخلفية الذهبية عند التحويم */
    color: var(--primary-dark-blue); /* لون الأيقونة على الخلفية الذهبية */
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 4px 12px rgba(0,0,0,0.35);
}


/* NEW: Style for social icons in Contact Us page main content */
.contact-social-icons {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    margin-top: var(--space-md);
    margin-bottom: var(--space-xl);
}

.contact-social-icons a {
    font-size: var(--font-size-xl);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--primary-dark-blue);
    color: var(--white);
    transition: background-color var(--transition-speed), transform var(--transition-speed);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.contact-social-icons a:hover {
    background-color: var(--accent-gold);
    color: var(--primary-dark-blue);
    transform: translateY(-1px) scale(1.05);
    box-shadow: 0 3px 8px rgba(0,0,0,0.25);
}

/* Footer Links */
.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-sm);
}

.footer-links li a {
    color: var(--accent-gold);
    font-size: var(--font-size-sm);
    font-weight: 400;
    transition: color var(--transition-speed), transform var(--transition-speed);
}

.footer-links li a:hover {
    color: #e6b100;
    transform: translateY(-1px); /* إضافة تأثير تحويم للروابط */
}

.main-footer p {
    margin: 0;
    font-size: var(--font-size-sm);
    color: var(--white);
}

.developer-info {
    font-family: 'Cairo', sans-serif;
    font-size: var(--font-size-sm);
    color: #FFC107;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Books Grid for Old Testament Summary page */
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-xl);
    text-align: center;
}

/* هذا هو الكود الموحد الذي تم تعديله بناءً على طلبك الأخير */
.book-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: var(--light-grey-bg);
    border: 5px solid var(--light-grey-bg);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.book-card .book-cover-container {
    padding: 0;
    background-color: transparent;
    border: none;
    width: 100%;
    height: auto;
    margin-bottom: 0;
    overflow: hidden;
}

.book-card .book-cover {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 0;
    transition: transform 0.3s ease;
}

.book-card:hover .book-cover {
    transform: scale(1.05);
}

.book-card .book-info {
    padding: 15px;
    width: 100%;
    box-sizing: border-box;
    background-color: transparent;
}

.book-card .book-info h3 {
    font-size: 1em;
    margin: 0;
    color: var(--accent-gold); /* تم تغيير لون الكلام للذهبي */
    font-weight: bold;
}

.book-card .book-info .read-more-link {
    display: none;
}

/* Specific adjustments for images where faces might be cut off */
.book-card img.psalms-img {
    object-position: center 20%;
}

.book-card img.proverbs-img {
    object-position: center 30%;
}


/* Media Queries للتجاوبية */
@media (max-width: 768px) {
    .main-header .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .main-nav {
        width: auto;
        text-align: left;
        margin-left: 0;
        margin-right: auto;
    }

    .menu-toggle {
        margin-left: 0;
        margin-right: 0;
        order: 1;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: calc(100% + var(--space-sm));
        left: 0;
        right: auto;
        background-color: var(--primary-dark-blue);
        border-radius: var(--border-radius);
        box-shadow: var(--box-shadow-medium);
        z-index: 1001;
        width: max-content;
        max-width: 200px;
        min-width: 130px;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transition: max-height var(--transition-speed) ease-out, padding var(--transition-speed) ease-out, opacity var(--transition-speed) ease-out, visibility var(--transition-speed) ease-out;
        padding: 0;
        text-align: right;
        transform-origin: top right;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-menu.active {
        display: flex;
        max-height: 300px;
        padding: var(--space-xs) 0;
        opacity: 1;
        visibility: visible;
    }

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

    .nav-menu li a {
        padding: var(--space-sm) var(--space-md);
        font-size: var(--font-size-sm);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-menu li:last-child a {
        border-bottom: none;
    }

    .nav-menu li a.active-link {
        box-shadow: inset 3px 0 0 var(--primary-dark-blue);
    }

    .nav-menu li a:hover {
        padding-right: var(--space-lg);
    }

    .logo {
        position: relative;
        left: auto;
        transform: none;
        top: auto;
        order: unset;
        margin-right: 0;
        margin-left: 0;
    }

    .logo h1 {
        font-size: var(--font-size-xl);
    }

    .logo-subtitle {
        font-size: var(--font-size-sm);
    }

    .verse-of-the-day,
    .content-page {
        padding: var(--space-lg);
    }

    .verse-of-the-day h2,
    .content-page h2 {
        font-size: var(--font-size-xl);
    }
    .verse-of-the-day p {
        font-size: var(--font-size-base);
    }

    .books-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: var(--space-md);
    }
    .book-card {
        background-color: var(--primary-dark-blue);
        color: var(--white);
        border: 2px solid var(--accent-gold);
    }
    .book-card img {
        height: 90px;
        /* بقية التنسيقات المتعلقة بالصور في Media Queries يمكن إكمالها هنا إذا كانت مقطوعة */
    }
}

/* NEW: Enhancements for the QA section (from index.html style block, moved here for centralization) */
/* هذه التنسيقات تم إحضارها من الكتلة <style> في index.html لدمجها هنا */

.sections-title-modern {
    text-align: center;
    color: #333;
    font-size: 1.8em;
    margin-top: 30px;
    margin-bottom: 25px;
    font-weight: bold;
    position: relative;
    padding-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.05);
}
.sections-title-modern::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gold-gradient); /* استخدام التدرج الذهبي */
    border-radius: 5px;
}

.compact-sections-container {
    padding: 20px;
    background: linear-gradient(to bottom right, #f8f8f8, #e0e0e0);
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border: 1px solid #ddd;
    margin-bottom: 40px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px 25px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    overflow: hidden;
}

.compact-sections-container::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1), transparent 70%);
    border-radius: 50%;
    animation: moveGradient 15s infinite alternate ease-in-out;
    z-index: 0;
}

@keyframes moveGradient {
    0% { transform: translate(0, 0) scale(1); opacity: 0.7; }
    50% { transform: translate(100px, 50px) scale(1.1); opacity: 0.9; }
    100% { transform: translate(0, 0) scale(1); opacity: 0.7; }
}

.compact-sections-container a {
    text-decoration: none;
    color: #444;
    font-size: 1.1em;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 30px;
    transition: all 0.3s ease-out;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    position: relative;
    z-index: 1;
}

.compact-sections-container a:hover {
    color: var(--white);
    background: var(--gold-gradient);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
    transform: translateY(-3px) scale(1.02);
    border-color: transparent;
}

.qa-main-page-container {
    padding: 20px;
    background: linear-gradient(to bottom right, #f8f8f8, #e0e0e0);
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border: 1px solid #ddd;
    margin-bottom: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.qa-item-card {
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

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

.qa-question-link {
    text-decoration: none;
    color: #333;
    display: block;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.qa-question-link h3 {
    font-size: 1.3em;
    font-weight: bold;
    line-height: 1.5;
    margin: 0;
    color: #0056b3;
    transition: color 0.3s ease;
}

.qa-question-link:hover h3 {
    color: #D4AF37;
}

.spiritual-insight-box-small {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
    position: relative;
    z-index: 1;
}

.spiritual-insight-box-small .bible-verse-small,
.spiritual-insight-box-small .church-fathers-quote-small {
    background-color: #fdfdfd;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 10px 15px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.02);
    position: relative;
    overflow: hidden;
}

.spiritual-insight-box-small .bible-verse-small::before {
    content: "\f02d";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 1.8em;
    color: #ffd700;
    opacity: 0.05;
    z-index: 0;
}

.spiritual-insight-box-small .church-fathers-quote-small::before {
    content: "\f67a";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 1.8em;
    color: #ffd700;
    opacity: 0.05;
    z-index: 0;
}

.spiritual-insight-box-small .fas {
    color: #D4AF37;
    margin-left: 5px;
    font-size: 0.9em;
    position: relative;
    z-index: 1;
}

.spiritual-insight-box-small p {
    font-size: 0.85em;
    color: #666;
    line-height: 1.6;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* تنسيقات عامة لصفحات الإجابات الفردية (pages/X.html) */
.spiritual-insight-box {
    background-color: #fefdfb;
    border: 1px solid #ffe0b2;
    border-radius: 12px;
    padding: 20px;
    margin-top: 30px;
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    justify-content: center;
}

.spiritual-insight-box .bible-verse,
.spiritual-insight-box .church-fathers-quote {
    flex: 1;
    min-width: 280px;
    background-color: var(--white);
    padding: 18px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.spiritual-insight-box .bible-verse::before {
    content: "\f02d";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 2.8em;
    color: #ffd700;
    opacity: 0.08;
    z-index: 0;
}

.spiritual-insight-box .church-fathers-quote::before {
    content: "\f67a";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 2.8em;
    color: #ffd700;
    opacity: 0.08;
    z-index: 0;
}

.spiritual-insight-box h3 {
    font-size: 1.2em;
    color: #D4AF37;
    margin-bottom: 10px;
    font-weight: bold;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
}

.spiritual-insight-box h3 .fas {
    margin-left: 8px;
    color: #D4AF37;
    font-size: 1.1em;
}

.spiritual-insight-box p {
    font-size: 0.95em;
    color: #555;
    line-height: 1.7;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

/* Media Queries للتجاوبية (لضمان أن التعديلات لا تؤثر على التجاوبية) */
@media (max-width: 768px) {
    .qa-main-page-container {
        grid-template-columns: 1fr;
    }
    .spiritual-insight-box {
        flex-direction: column;
    }
}

.back-arrow-link {
    position: absolute;
    top: 25px;
    left: 20px;
    font-size: 2em;
    color: var(--white);
    transition: transform 0.2s ease-in-out;
}

.back-arrow-link:hover {
    transform: scale(1.1);
    color: var(--accent-gold);
}

.book-metadata {
    background-color: #f8f8f8;
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
}

.book-metadata ul {
    list-style: none;
    padding: 0;
    margin: 0;
    line-height: 1.8;
}

.book-metadata ul li {
    font-size: 1em;
    color: #555;
}

.book-metadata ul li strong {
    color: var(--primary-dark-blue);
    margin-left: 5px;
}

.book-metadata ul li .fas,
.book-metadata ul li .far {
    color: var(--accent-gold);
    margin-left: 10px;
    font-size: 1.1em;
}
.metadata-section {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px dashed var(--border-subtle);
}

.metadata-section h3 {
    font-size: 1.25em;
    color: var(--primary-dark-blue);
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.metadata-section h3 .fas,
.metadata-section h3 .far {
    color: var(--accent-gold);
    margin-left: 10px;
}

.book-summary {
    font-size: 1.1em;
    line-height: 1.8;
    color: var(--text-dark);
}

.book-metadata ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.book-metadata ul li {
    background-color: #fafafa;
    border-right: 3px solid var(--accent-gold);
    padding: 10px;
    margin-bottom: 8px;
    border-radius: 4px;
    font-size: 0.95em;
    color: #444;
}

.book-metadata ul li strong {
    color: var(--primary-dark-blue);
    margin-left: 5px;
}

.file-details-section {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px dashed var(--border-subtle);
}

.file-details-section h3 {
    font-size: 1.25em;
    color: var(--primary-dark-blue);
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.file-details-section h3 .fas {
    color: var(--accent-gold);
    margin-left: 10px;
}

/* Styling for the Download Button */
.download-button {
    display: inline-block;
    background-color: var(--primary-dark-blue); /* لون أزرق داكن جذاب */
    color: var(--white);
    padding: 15px 30px; /* حجم أكبر للزر */
    border-radius: 8px; /* حواف مستديرة للمستطيل */
    font-size: 1.3em; /* تكبير الخط */
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    margin-top: 30px; /* مسافة من الأعلى */
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* ظل لإضافة عمق */
    letter-spacing: 0.5px;
}

.download-button:hover {
    background-color: var(--accent-gold); /* يتغير للذهبي عند التمرير */
    transform: translateY(-3px); /* تأثير بسيط للرفع */
}

.download-button .fas {
    margin-left: 10px; /* مسافة بين الأيقونة والنص */
    font-size: 1.1em; /* حجم الأيقونة */
}

/* Styling for the large book cover in details page */
.book-cover-large {
    max-width: 100%; /* تأكد أن الصورة لا تتجاوز عرض الحاوية */
    height: auto; /* للحفاظ على نسبة الأبعاد */
    width: 300px; /* تحديد عرض ثابت للصورة، يمكنك تعديل القيمة */
    border: 5px solid var(--accent-gold); /* إطار ذهبي جذاب */
    border-radius: 10px; /* حواف مستديرة للإطار */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25); /* ظل لإضافة عمق */
    display: block; /* للتأكد من أن margin: auto يعمل بشكل صحيح لتوسيط الصورة */
    margin: 30px auto 40px auto; /* توسيط الصورة وإضافة مسافة من الأعلى والأسفل */
}

/* For smaller screens, adjust the width of the cover */
@media (max-width: 768px) {
    .book-cover-large {
        width: 250px; /* تصغير حجم الغلاف على الشاشات الأصغر */
        margin: 20px auto 30px auto;
    }
}

@media (max-width: 480px) {
    .book-cover-large {
        width: 200px; /* تصغير حجم الغلاف أكثر على شاشات الجوال */
        margin: 15px auto 25px auto;
    }
}

/* NEW: Unified and corrected styling for the book grid cards on the main page */
.book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding-top: 40px;
    padding-bottom: 40px;
}

/*
    ======================================
    تنسيقات مميزة لجملة "بسم الآب"
    ======================================
*/

.prayer-blessing {
    text-align: center;
    margin: 40px auto;
    font-size: 1.5em; /* تكبير حجم الخط */
    font-weight: 700; /* جعل الخط أثقل (عريض) */
    color: var(--primary-dark-blue); /* لون النص أزرق داكن */
    background-color: var(--white); /* خلفية بيضاء */
    padding: 20px 40px; /* مساحة داخلية */
    border-radius: 15px; /* حواف دائرية أكثر */
    border: 3px solid var(--accent-gold); /* إطار ذهبي جذاب */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); /* ظل ناعم لجعله يبرز */
    max-width: 600px; /* تحديد عرض أقصى ليبقى في المنتصف */
    position: relative; /* لتمكين استخدام العناصر الوهمية */
    z-index: 1; /* للتأكد من أنه فوق العناصر الأخرى */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.prayer-blessing:hover {
    transform: translateY(-5px); /* تأثير الرفع عند مرور الماوس */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2); /* ظل أكبر عند الرفع */
}

/* تنسيق أيقونة الصليب */
.prayer-blessing .fas.fa-cross {
    color: var(--accent-gold); /* لون ذهبي */
    font-size: 1.2em; /* حجم أكبر قليلًا */
    margin-right: 15px; /* مسافة بين النص والصليب */
    animation: pulse 2s infinite; /* إضافة تأثير نبض لطيف */
}

/* تأثير النبض لجذب الانتباه */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/*
    ======================================
    تنسيقات مميزة لجملة "بسم الآب"
    ======================================
*/

.prayer-blessing {
    text-align: center;
    margin: 40px auto;
    font-size: 1.5em; /* تكبير حجم الخط */
    font-weight: 700; /* جعل الخط أثقل (عريض) */
    color: var(--white); /* لون النص أبيض ليبرز على الخلفية الداكنة */
    /* خلفية متدرجة باللون الأزرق */
    background: linear-gradient(135deg, var(--primary-dark-blue) 0%, #102035 100%);
    padding: 25px 40px; /* مساحة داخلية أكبر */
    border-radius: 15px; /* حواف دائرية أكثر */
    border: 3px solid var(--accent-gold); /* إطار ذهبي لامع */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3); /* ظل أعمق ليبرز أكثر */
    max-width: 650px; /* تحديد عرض أقصى ليبقى في المنتصف */
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* تأثير ظل النص الذهبي لإعطاء مظهر التوهج */
    text-shadow: 0 0 5px rgba(255, 193, 7, 0.5), 0 0 10px rgba(255, 193, 7, 0.4);
}

.prayer-blessing:hover {
    transform: translateY(-5px); /* تأثير الرفع عند مرور الماوس */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35); /* ظل أكبر عند الرفع */
}

/* تنسيق أيقونة الصليب */
.prayer-blessing .fas.fa-cross {
    color: var(--accent-gold); /* لون ذهبي */
    font-size: 1.8em; /* حجم أكبر جداً */
    margin-right: 15px; /* مسافة بين النص والصليب */
    position: relative;
    top: 3px; /* تعديل موضعه الرأسي ليتماشى مع النص */
    /* ظل ذهبي خفيف لإعطاء تأثير ثلاثي الأبعاد */
    text-shadow: 0 2px 5px rgba(255, 193, 7, 0.6), 0 0 8px rgba(255, 193, 7, 0.4);
    animation: pulse 2s infinite; /* تأثير النبض لجذب الانتباه */
}

/* تأثير النبض لجذب الانتباه */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}
/*
    ======================================
    تنسيقات قسم "صفحة نور الكتاب الرئيسية"
    ======================================
*/

.about-section {
    background-color: var(--white);
    padding: var(--space-xxl);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-medium);
    margin-top: 50px;
    border: 1px solid var(--border-subtle);
}

.section-title-special {
    text-align: center;
    font-size: var(--font-size-xxl);
    font-weight: 900;
    position: relative;
    padding-bottom: 20px; /* زيادة المساحة تحت العنوان */
    margin-bottom: 30px; /* زيادة المسافة عن النص التالي */
}

.section-title-special a {
    color: var(--primary-dark-blue);
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block; /* لجعل الإطار يعمل بشكل صحيح حول النص */
    padding: 10px 20px; /* مساحة داخل الإطار */
    border: 2px solid var(--accent-gold); /* إطار ذهبي صلب */
    border-radius: 12px; /* حواف مستديرة للإطار */
    box-shadow: 0 4px 10px rgba(255, 193, 7, 0.2); /* ظل خفيف للإطار */
}

.section-title-special a:hover {
    color: var(--accent-gold);
    transform: translateY(-3px); /* تأثير رفع خفيف عند التمرير */
    box-shadow: 0 6px 15px rgba(255, 193, 7, 0.3); /* ظل أكبر عند الرفع */
}

.about-section p {
    font-size: var(--font-size-base);
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: var(--space-lg);
    text-align: right;
}

.bible-verse-box {
    background-color: #F8F8F8;
    border-right: 4px solid var(--accent-gold);
    padding: 15px;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    font-style: italic;
    text-align: center;
    max-width: 90%;
}

.bible-verse-box p {
    margin: 0;
    font-size: var(--font-size-md);
    font-weight: 600;
    color: var(--text-dark);
}

.bible-verse-box .fas {
    color: var(--accent-gold);
    margin-left: 10px;
    font-size: 1.2em;
}

.bible-verse-box .verse-reference {
    display: block;
    margin-top: 10px;
    font-style: normal;
    color: var(--text-light);
    font-size: var(--font-size-sm);
}

.mission-vision-container {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xl);
    margin-top: var(--space-xxl);
}

.mission-box,
.vision-box {
    flex: 1;
    min-width: 280px;
    background-color: #F8F8F8;
    padding: var(--space-xl);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mission-box:hover,
.vision-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.mission-box h3,
.vision-box h3 {
    color: var(--primary-dark-blue);
    font-size: var(--font-size-lg);
    font-weight: 800;
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
}

.mission-box h3 .fas,
.vision-box h3 .fas {
    color: var(--accent-gold);
    margin-left: 10px;
}

.mission-box p,
.vision-box p {
    font-size: var(--font-size-base);
    line-height: 1.7;
    margin-bottom: 0;
}

