/* General Styles */
:root {
    --primary-color: #4CAF50; /* Green */
    --secondary-color: #FFC107; /* Amber */
    --dark-color: #333;
    --light-color: #f4f4f4;
    --text-color: #555;
    --white: #fff;
    --sidebar-bg: #34495E; /* Dark Blue Gray */
    --sidebar-link-hover: #2C3E50;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
    direction: rtl; /* For Arabic content */
    text-align: right; /* For Arabic content */
    overflow-x: hidden; /* Prevent horizontal scroll */
}

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

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

ul {
    list-style: none;
}

h1, h2, h3 {
    color: var(--dark-color);
    margin-bottom: 15px;
}

p {
    margin-bottom: 10px;
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: #45a049;
}

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

.btn-secondary:hover {
    background: #FFB300;
}

/* Header */
.main-header {
    background: var(--white);
    color: var(--dark-color);
    padding: 1rem 0;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 20px;
    padding-right: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.main-header h1 {
    margin: 0;
    font-size: 2em;
}

.main-header .menu-btn {
    background: none;
    border: none;
    font-size: 2em;
    cursor: pointer;
    color: var(--dark-color);
    padding: 5px 10px;
    display: block; /* Always show for sidebar toggle */
}

.main-header .top-nav ul {
    display: flex;
}

.main-header .top-nav ul li a {
    color: var(--dark-color);
    padding: 10px 15px;
    display: block;
    transition: background-color 0.3s ease;
    border-radius: 5px;
}

.main-header .top-nav ul li a:hover {
    background: var(--light-color);
    color: var(--primary-color);
}

/* Sidebar */
.sidebar {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1000;
    top: 0;
    right: 0; /* Position from right for RTL */
    background-color: var(--sidebar-bg);
    overflow-x: hidden;
    transition: 0.5s;
    padding-top: 60px;
    box-shadow: -5px 0 15px rgba(0,0,0,0.2);
}

.sidebar.active {
    width: 280px; /* Adjust as needed */
}

.sidebar .close-btn {
    position: absolute;
    top: 15px;
    left: 25px; /* Position close button on the left for RTL */
    font-size: 36px;
    margin-left: 50px;
    color: var(--white);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.sidebar nav ul {
    padding: 0;
}

.sidebar nav ul li {
    margin-bottom: 10px;
}

.sidebar nav ul li a {
    padding: 15px 25px;
    text-decoration: none;
    font-size: 1.2em;
    color: var(--white);
    display: block;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
}

.sidebar nav ul li a i {
    margin-left: 15px; /* Margin for icon in RTL */
    font-size: 1.4em;
}

.sidebar nav ul li a:hover {
    background-color: var(--sidebar-link-hover);
}

.overlay {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 999;
    top: 0;
    left: 0;
    background-color: rgba(0,0,0,0.7);
    overflow-x: hidden;
    transition: 0.5s;
}

.overlay.active {
    width: 100%;
}

/* Main Content */
.main-content {
    padding-top: 20px;
    transition: margin-right 0.5s; /* Adjust for RTL */
}

/* Hero Section */
.hero-section {
    background: url('https://via.placeholder.com/1500x600?text=خلفية+روحية') no-repeat center center/cover;
    color: var(--white);
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 20px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1;
}

.hero-text {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-text h2 {
    color: var(--white);
    font-size: 3.5em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.hero-text p {
    font-size: 1.3em;
    margin-bottom: 30px;
}

/* About Section */
.about-section {
    background: var(--white);
    padding: 50px 0;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.about-section h2 {
    font-size: 2.5em;
    margin-bottom: 30px;
    position: relative;
}

.about-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-item {
    background: var(--light-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.feature-item i {
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature-item h3 {
    font-size: 1.8em;
    margin-bottom: 10px;
    color: var(--dark-color);
}

/* Featured Content */
.featured-content {
    padding: 50px 0;
    text-align: center;
    background: #fdfdfd;
}

.featured-content h2 {
    font-size: 2.5em;
    margin-bottom: 30px;
    position: relative;
}

.featured-content h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.content-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: right; /* For RTL */
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.content-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.content-card h3 {
    padding: 15px;
    font-size: 1.6em;
    margin-bottom: 0;
    color: var(--primary-color);
}

.content-card p {
    padding: 0 15px 15px;
    font-size: 0.95em;
    color: var(--text-color);
}

.content-card .btn-secondary {
    margin: 0 15px 15px 0; /* Adjust margin for RTL */
}

/* Footer */
.main-footer {
    background: var(--dark-color);
    color: var(--white);
    text-align: center;
    padding: 30px 0;
    font-size: 0.9em;
}

.main-footer .social-links {
    margin-top: 15px;
}

.main-footer .social-links a {
    color: var(--white);
    font-size: 1.5em;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.main-footer .social-links a:hover {
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-header .top-nav {
        display: none; /* Hide top nav on smaller screens, rely on sidebar */
    }

    .main-header h1 {
        font-size: 1.8em;
    }

    .hero-text h2 {
        font-size: 2.5em;
    }

    .hero-text p {
        font-size: 1.1em;
    }

    .features-grid, .content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .main-header {
        padding-left: 10px;
        padding-right: 10px;
    }
    .hero-text h2 {
        font-size: 2em;
    }
    .hero-text p {
        font-size: 1em;
    }
}
/* Modal (Lightbox) Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1001; /* Sit on top, higher than sidebar */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.8); /* Black w/ opacity */
    justify-content: center;
    align-items: center;
    padding: 20px; /* Some padding for smaller screens */
}

.modal.active {
    display: flex; /* Show when active */
}

.modal-content {
    background-color: var(--white);
    margin: auto;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 800px; /* Max width for readability */
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    position: relative;
    animation: fadeIn 0.3s ease-out;
    max-height: 90vh; /* Limit height to enable scrolling inside */
    overflow-y: auto; /* Enable scrolling for modal content */
    text-align: right; /* RTL */
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-button {
    color: var(--dark-color);
    font-size: 40px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    left: 20px; /* Position to the left for RTL */
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-button:hover,
.close-button:focus {
    color: var(--primary-color);
}

.modal-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block; /* Remove extra space below image */
    margin-left: auto; /* Center image for RTL if it's smaller than max-width */
    margin-right: auto;
}

.modal-content h3 {
    font-size: 2.2em;
    color: var(--primary-color);
    margin-bottom: 15px;
    line-height: 1.4;
}

.modal-content .article-meta {
    font-size: 1em;
    color: #777;
    margin-bottom: 25px;
}

#modal-article-full-content p {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 15px;
    color: var(--text-color);
}

/* Responsive for Modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        padding: 20px;
    }
    .modal-content h3 {
        font-size: 1.8em;
    }
    .modal-content .article-meta {
        font-size: 0.9em;
    }
    #modal-article-full-content p {
        font-size: 1em;
    }
    .close-button {
        font-size: 30px;
        top: 5px;
        left: 10px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        padding: 15px;
    }
    .modal-content h3 {
        font-size: 1.6em;
    }
}
/* --- أنماط البوكس المنبثق (Modal) --- */
.modal {
    display: none; /* مخفي افتراضيًا */
    position: fixed; /* يبقى في مكانه عند التمرير */
    z-index: 1001; /* يظهر فوق كل شيء آخر، أعلى من القائمة الجانبية */
    left: 0;
    top: 0;
    width: 100%; /* عرض كامل */
    height: 100%; /* ارتفاع كامل */
    overflow: auto; /* تمكين التمرير إذا كان المحتوى كبيرًا */
    background-color: rgba(0,0,0,0.8); /* خلفية سوداء مع شفافية */
    justify-content: center; /* توسيط أفقي */
    align-items: center; /* توسيط عمودي */
    padding: 20px; /* هامش داخلي للشاشات الصغيرة */
}

.modal.active {
    display: flex; /* إظهار البوكس عند تفعيل الكلاس */
}

.modal-content {
    background-color: var(--white);
    margin: auto;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 800px; /* أقصى عرض لسهولة القراءة */
    box-shadow: 0 8px 30px rgba(0,0,0,0.3); /* ظل أنيق */
    position: relative;
    animation: fadeIn 0.3s ease-out; /* حركة ظهور سلسة */
    max-height: 90vh; /* تحديد أقصى ارتفاع لتمكين التمرير داخل البوكس */
    overflow-y: auto; /* تمكين التمرير الرأسي لمحتوى البوكس */
    text-align: right; /* محاذاة النص لليمين للعربية */
}

/* حركة الظهور (Animation) */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-button {
    color: var(--dark-color);
    font-size: 40px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    left: 20px; /* موقع زر الإغلاق لليسار (RTL) */
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-button:hover,
.close-button:focus {
    color: var(--primary-color);
}

.modal-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.modal-content h3 {
    font-size: 2.2em;
    color: var(--primary-color);
    margin-bottom: 15px;
    line-height: 1.4;
}

.modal-content .article-meta {
    font-size: 1em;
    color: #777;
    margin-bottom: 25px;
}

#modal-article-full-content p {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 15px;
    color: var(--text-color);
}

/* --- تعديلات Responsive للـ Modal --- */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        padding: 20px;
    }
    .modal-content h3 {
        font-size: 1.8em;
    }
    .modal-content .article-meta {
        font-size: 0.9em;
    }
    #modal-article-full-content p {
        font-size: 1em;
    }
    .close-button {
        font-size: 30px;
        top: 5px;
        left: 10px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        padding: 15px;
    }
    .modal-content h3 {
        font-size: 1.6em;
    }
}
/* الألوان والخطوط الأساسية */
:root {
    --primary-color: #4B0082; /* بنفسجي غامق */
    --secondary-color: #800080; /* بنفسجي */
    --text-color: #F8F8FF; /* أبيض مائل للون السماوي */
    --bg-color: #1a1a1a; /* أسود غامق */
    --light-gray: #ccc;
    --font-family: 'Amiri', serif;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    direction: rtl; /* اتجاه الكتابة من اليمين لليسار */
    text-align: right;
}

header {
    background-color: rgba(0, 0, 0, 0.5); /* خلفية شبه شفافة */
    color: white;
    padding: 1rem 2rem;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header h1 {
    margin: 0;
    font-weight: 700;
}

header nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

header nav a {
    color: var(--light-gray);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
}

header nav a:hover {
    color: white;
}

/* قسم الأيقونة الرئيسية (Hero Section) */
.hero {
    background: url('https://via.placeholder.com/1500x800') no-repeat center center/cover; /* يمكنك تغيير الصورة هنا */
    height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 2rem;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* طبقة شفافة لتوضيح النص */
}

.hero h2, .hero p {
    position: relative;
    z-index: 2;
    text-shadow: 2px 2px 4px #000;
}

/* الأقسام اليومية */
main {
    padding: 2rem;
    max-width: 900px;
    margin: auto;
}

.day-section, .prayers-section {
    background-color: var(--primary-color);
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.day-title, .prayers-title {
    text-align: center;
    color: white;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.day-content, .prayers-content {
    font-size: 1.1rem;
}

/* الـ Footer */
footer {
    text-align: center;
    padding: 1rem;
    background-color: #000;
    color: var(--light-gray);
}
:root {
    --primary-color: #0d6efd; /* أزرق سماوي داكن */
    --secondary-color: #f8faff; /* خلفية بيضاء مزرقة فاتحة */
    --accent-color: #1a75ff; /* أزرق فاتح */
    --text-color: #343a40; /* لون نص داكن */
    --card-background: #ffffff; /* خلفية البطاقات بيضاء */
    --border-color: #e3eaf2; /* لون الحدود */
    --shadow-md: 0 6px 15px rgba(0, 0, 0, 0.08);

    /* ألوان جديدة لتصميم أسبوع الآلام */
    --holy-week-bg: #1a1a1a;
    --holy-week-text: #e0e0e0;
    --holy-week-accent: #800080;
    --holy-week-card: #2c2c2c;
}

/* الأنماط العامة للجسم والخطوط */
body {
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    line-height: 1.8;
    margin: 0;
    padding: 0;
    background-color: var(--secondary-color);
    color: var(--text-color);
    direction: rtl;
    text-align: right;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Navbar */
.navbar {
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    padding: 18px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.navbar .logo {
    color: #fff;
    font-family: 'Cairo Play', sans-serif;
    font-size: 2.1em;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease, transform 0.2s ease;
}

.navbar .logo:hover {
    color: #e0f2fe;
    transform: scale(1.02);
}

.menu-toggle {
    background: none;
    border: none;
    color: #fff;
    font-size: 2.4em;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
}

.menu-toggle:hover {
    color: #e0f2fe;
    transform: rotate(90deg) scale(1.1);
}

/* Sidebar */
.sidebar {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 2000;
    top: 0;
    right: 0;
    background-color: #212529;
    overflow-x: hidden;
    transition: 0.6s cubic-bezier(0.86, 0, 0.07, 1);
    padding-top: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: -10px 0 30px rgba(0,0,0,0.4);
    color: #fff;
}

.sidebar.active {
    width: 100%;
}

.sidebar .close-btn {
    position: absolute;
    top: 30px;
    left: 30px;
    font-size: 4em;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
}

.sidebar .close-btn:hover {
    color: var(--primary-color);
    transform: rotate(180deg) scale(1.1);
}

.sidebar ul {
    list-style: none;
    padding: 0;
    width: 80%;
}

.sidebar ul li {
    margin: 25px 0;
}

.sidebar ul li a {
    padding: 20px 0;
    text-decoration: none;
    font-size: 2.8em;
    color: #fff;
    display: block;
    transition: 0.4s ease-in-out;
    font-weight: 600;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.sidebar ul li a:hover {
    color: var(--primary-color);
    background-color: rgba(255,255,255,0.1);
    transform: translateX(-15px) scale(1.02);
    border-bottom-color: var(--primary-color);
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    padding: 80px 30px;
    text-align: center;
    border-bottom: 6px solid #fff;
    margin-bottom: 70px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    color: #fff;
}

.page-header h1 {
    font-family: 'Cairo Play', sans-serif;
    font-size: 4.8em;
    margin: 0;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.25);
}

.page-header p {
    font-family: 'Amiri', serif;
    font-size: 1.6em;
    margin-top: 25px;
    max-width: 950px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

/* Footer */
.footer {
    background: linear-gradient(to right, var(--primary-color), #212529);
    color: white;
    text-align: center;
    padding: 50px 30px;
    margin-top: 80px;
    font-size: 1.05em;
    box-shadow: 0 -6px 20px rgba(0,0,0,0.25);
}

.footer .social-icons {
    margin-top: 25px;
    margin-bottom: 30px;
}

.footer .social-icons a {
    color: white;
    font-size: 2em;
    margin: 0 18px;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer .social-icons a:hover {
    color: var(--accent-color);
    transform: translateY(-7px) scale(1.2);
}

/* الأنماط الخاصة بصفحة الأجبية */
.agpiyah-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-bottom: 80px;
}

.agpiyah-card {
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    box-shadow: var(--shadow-md);
    padding: 35px;
    text-align: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.agpiyah-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.agpiyah-card .icon-container {
    font-size: 4em;
    color: var(--primary-color);
    margin-bottom: 25px;
    padding: 15px;
    background-color: var(--background-medium);
    border-radius: 50%;
    width: 100px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease;
}
.agpiyah-card:hover .icon-container {
    transform: scale(1.1);
}

.agpiyah-card h2 {
    font-family: 'Amiri', serif;
    font-size: 2.5em;
    color: #212529;
    margin-top: 0;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.agpiyah-card h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.agpiyah-card .prayer-link {
    display: block;
    background-color: var(--background-medium);
    color: var(--primary-color);
    padding: 18px 25px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.4em;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid var(--border-color);
    width: 100%;
    box-sizing: border-box;
}

.agpiyah-card .prayer-link:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* الأنماط الخاصة بصفحة "عن الموقع" */
.content-card {
    background-color: var(--card-background);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    margin-bottom: 50px;
}

.content-card p, .content-card li {
    font-size: 1.15em;
    color: var(--text-color);
}

.content-card ul {
    list-style-type: '🙏';
    padding-right: 20px;
}

.content-card li {
    margin-bottom: 15px;
}

/* تنسيقات خاصة بالصفحة الرئيسية التي قدمتها في البداية */
.home-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 20px;
    padding: 20px;
    margin-top: 20px;
}

.grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px 15px;
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    text-decoration: none;
    color: var(--text-color);
    transition: transform 0.3s ease;
}

.grid-item:hover {
    transform: translateY(-5px);
}

.grid-item img {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
}

.grid-item span {
    font-size: 1.1rem;
    font-weight: 500;
}

/* تنسيق شريط التنقل السفلي */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--card-background);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    z-index: 2000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--secondary-color);
    transition: color 0.3s ease;
    padding: 5px;
}

.nav-item img {
    width: 28px;
    height: 28px;
    margin-bottom: 4px;
}

.nav-item span {
    font-size: 0.8rem;
}

.nav-item.active {
    color: var(--primary-color);
}


/* Responsive Design */
@media (max-width: 992px) {
    .container {
        padding: 0 20px;
    }
    .page-header h1 {
        font-size: 4em;
    }
    .page-header p {
        font-size: 1.4em;
    }
    .agpiyah-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 30px;
    }
    .agpiyah-card h2 {
        font-size: 2.2em;
    }
    .agpiyah-card .prayer-link {
        font-size: 1.3em;
    }
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 3.2em;
    }
    .page-header p {
        font-size: 1.2em;
    }
    .agpiyah-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .agpiyah-card {
        padding: 25px;
    }
    .agpiyah-card h2 {
        font-size: 2em;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 2.5em;
    }
    .page-header p {
        font-size: 1em;
    }
    .footer .social-icons a {
        font-size: 1.6em;
        margin: 0 10px;
    }
}
:root {
    --primary-color: #2D588C; /* Royal Blue */
    --secondary-color: #6A86AA; /* Lighter Blue */
    --accent-color: #FBC02D; /* Warm Gold */
    --background-color: #F0F4F8; /* Light Grey Blue */
    --text-color-dark: #37474F; /* Dark Slate Blue */
    --text-color-light: #F4F6F7;
    --card-background: #FFFFFF;
    --border-radius: 12px;
    --box-shadow: 0 6px 20px rgba(45, 88, 140, 0.1);
    --transition-speed: 0.4s;
}

/* General & Typography */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color-dark);
    line-height: 1.8;
    direction: rtl;
    text-align: right;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

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

a:hover {
    color: var(--accent-color);
}

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    object-fit: cover;
}

h1, h2, h3 {
    font-family: 'Amiri', serif;
    font-weight: 700;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--primary-color);
    color: var(--text-color-light);
    padding: 1.2rem 3rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .logo {
    font-family: 'Cairo Play', sans-serif;
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--text-color-light);
}

.menu-toggle {
    background: none;
    border: none;
    color: var(--text-color-light);
    font-size: 2rem;
    cursor: pointer;
    display: none;
}

/* Sidebar */
.sidebar {
    height: 100%;
    width: 0;
    position: fixed;
    top: 0;
    right: 0;
    background-color: var(--primary-color);
    box-shadow: -6px 0 15px rgba(0, 0, 0, 0.25);
    padding-top: 80px;
    z-index: 999;
    overflow-x: hidden;
    transition: width 0.6s cubic-bezier(0.7, 0, 0.3, 1);
}

.sidebar.active {
    width: 280px;
}

.sidebar .close-btn {
    position: absolute;
    top: 15px;
    left: 25px;
    font-size: 40px;
    color: var(--text-color-light);
    transition: color var(--transition-speed);
}

.sidebar .close-btn:hover {
    color: var(--accent-color);
}

.sidebar ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.sidebar ul li a {
    padding: 18px 30px;
    display: block;
    color: var(--text-color-light);
    transition: background-color var(--transition-speed);
    font-size: 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar ul li a:hover {
    background-color: var(--secondary-color);
}

/* Page Header */
.page-header {
    background: linear-gradient(to top, rgba(45, 88, 140, 0.7), rgba(45, 88, 140, 0.7)), url('https://via.placeholder.com/1920x400/2D588C/ffffff?text=Glorious+Header') center/cover no-repeat;
    color: var(--text-color-light);
    text-align: center;
    padding: 5rem 1rem;
    border-bottom-left-radius: var(--border-radius);
    border-bottom-right-radius: var(--border-radius);
}

.page-header h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-header p {
    font-size: 1.4rem;
    font-weight: 300;
}

/* Content & Cards */
.container {
    max-width: 1000px;
    margin: 3rem auto;
    padding: 0 1.5rem;
}

.content-card {
    background-color: var(--card-background);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
}

.content-card h2, .content-card h3 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 1rem;
    border-right: 4px solid var(--accent-color);
    padding-right: 12px;
}

.content-card p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-color-dark);
}

/* Sermons & Grid */
.sermons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
}

.sermon-card {
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    text-align: center;
    transition: transform 0.4s ease-in-out, box-shadow 0.4s ease-in-out;
}

.sermon-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(45, 88, 140, 0.2);
}

.sermon-card img {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.sermon-card-body {
    padding: 1.5rem;
}

.sermon-card h3 {
    font-size: 1.5rem;
    margin: 0.5rem 0;
    border-right: none;
    padding-right: 0;
}

.sermon-card p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.sermon-card .read-more {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: var(--text-color-light);
    border-radius: 50px;
    transition: background-color var(--transition-speed), transform var(--transition-speed);
}

.sermon-card .read-more:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
}

.sermon-card .read-more i {
    margin-right: 8px;
}

/* Footer */
.footer {
    background-color: var(--text-color-dark);
    color: var(--text-color-light);
    text-align: center;
    padding: 3rem 1rem;
    margin-top: 3rem;
}

.footer p {
    margin: 1rem 0;
    font-size: 1rem;
}

.social-icons a {
    color: var(--text-color-light);
    font-size: 1.8rem;
    margin: 0 1rem;
    transition: color var(--transition-speed), transform var(--transition-speed);
}

.social-icons a:hover {
    color: var(--accent-color);
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .navbar {
        padding: 1rem 1.5rem;
    }

    .sidebar {
        width: 0;
        transform: translateX(100%);
    }

    .sidebar.active {
        width: 250px;
        transform: translateX(0);
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .page-header p {
        font-size: 1.1rem;
    }

    .content-card {
        padding: 2rem 1.5rem;
    }

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