/*
Theme Name: GE_Theme
Template: generatepress
*/
/* تأكيد تأثيرات الـ Hover والانتقال الانسيابي للأزرار في الهيدر */
.ge-main-header .button {
    border-radius: 50px !important;
    transition: all 0.3s ease-in-out !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.ge-main-header .button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
}

/* Responsive 3-Column Blog Grid Layout */
.ge-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 3rem;
}

/* Tablet Screens: 2 Columns */
@media (max-width: 1024px) {
    .ge-blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Screens: 1 Column */
@media (max-width: 640px) {
    .ge-blog-grid {
        grid-template-columns: 1fr;
    }
}

/* Card Styling - Darker background */
.ge-blog-grid article.post {
    /* background: rgba(0, 0, 0, 0.2) !important;*/
    background-color: whitesmoke;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    overflow: hidden;
    display: flex !important;
    flex-direction: column !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    margin-bottom: 0 !important;
    padding: 0 !important;
}

.ge-blog-grid article.post:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

/* GeneratePress Inner Container Reset */
.ge-blog-grid article .inside-article {
    display: flex !important;
    flex-direction: column !important;
    height: 100%;
    padding: 0 !important;
    background: transparent !important;
}

/* Featured Image Styling */
.ge-blog-grid .post-image,
.ge-blog-grid article img {
    display: block !important;
    width: 100% !important;
    height: 200px !important;
    object-fit: cover !important;
    margin: 0 !important;
    border-radius: 0 !important;
}

/* Header & Title Area - Dark Title Tone */
.ge-blog-grid .entry-header {
    padding: 1.25rem !important;
    display: block !important;
}

.ge-blog-grid .entry-title,
.ge-blog-grid .entry-title a {
    display: block !important;
    font-size: 1.25rem !important;
    line-height: 1.4 !important;
    color: #1a1a1a !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    margin: 0 !important;
}

.ge-blog-grid .entry-title a:hover {
    color: #000000 !important;
}

/* Hide Excerpt, Comments, Tags, and Author Meta */
.ge-blog-grid .entry-summary,
.ge-blog-grid .entry-content,
.ge-blog-grid .entry-meta,
.ge-blog-grid footer.entry-meta {
    display: none !important;
}

/* Sidebar Layout & Darker Card Styling */
#main {
    flex-grow: 1;
}

.is-right-sidebar .site-content,
.is-left-sidebar .site-content {
    display: flex;
    gap: 2rem;
}

#right-sidebar, #left-sidebar {
    min-width: 280px;
    max-width: 320px;
}

/* Sidebar Widgets - Slightly darker than whitesmoke */
.widget {
    background-color: #e7edef !important; /* Slightly darker tone than whitesmoke (#f5f5f5) */
    /* border: 1px solid #d0d0d0; */
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    color: #222222 !important;
}

.widget .widget-title {
    color: #111111 !important;
    font-size: 1.2rem;
    font-weight: 700;
    border-bottom: 2px solid #cccccc;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.widget a {
    color: #333333 !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

.widget a:hover {
    color: #800000 !important; /* Matches header accent color */
}

/* ==========================================================================
   Single Post Page Styling (صفحة المقال المنفرد)
   ========================================================================== */

/* 1. عنوان المقال الرئيسي */
body.single .entry-title {
    font-family: 'Tajwal', sans-serif !important;
    font-size: 2.25rem !important; /* حجم كبير وبارز للعنوان */
    font-weight: 800 !important;   /* خط سميك جداً */
    color: #800000 !important;      /* اللون العنابي */
    line-height: 1.4 !important;
    margin-bottom: 1.5rem !important;
}

/* 2. نص المقال الداخلي */
body.single .entry-content,
body.single .entry-content p {
    font-family: 'Tajwal', sans-serif !important;
    font-weight: 400 !important;   /* الوزن العادي */
    font-size: 1.3rem !important;  /* حجم واضح ومريح للقراءة بخط تجوال */
    line-height: 2.1 !important;   /* ارتفاع السطر المناسب لخط تجوال */
    color: #222222 !important;
}

/* 3. العناوين الفرعية داخل المقال (H2, H3, H4) */
body.single .entry-content h2,
body.single .entry-content h3,
body.single .entry-content h4 {
    font-family: 'Cairo', sans-serif !important;
    color: #800000 !important;
    font-weight: 700 !important;
    margin-top: 2rem !important;
    margin-bottom: 1rem !important;
}

body.single .entry-content h2 { font-size: 1.75rem !important; }
body.single .entry-content h3 { font-size: 1.5rem !important; }

/* 4. القوائم المجهزة داخل المقال */
body.single .entry-content ul,
body.single .entry-content ol {
    font-family: 'Cairo', sans-serif !important;
    font-size: 1.2rem !important;
    line-height: 1.9 !important;
    padding-right: 1.5rem !important;
}

/* 5. الاقتباسات داخل المقال (Blockquotes) */
body.single .entry-content blockquote {
    border-right: 4px solid #800000 !important;
    border-left: none !important;
    background: #f9f9f9 !important;
    padding: 1rem 1.5rem !important;
    margin: 1.5rem 0 !important;
    font-style: italic;
    color: #555555;
}

/* ==========================================================================
   Custom Standalone Blog Pagination
   ========================================================================== */

/* Main container placed cleanly below the grid */
.ge-custom-pagination {
    width: 100% !important;
    margin-top: 3rem !important;
    margin-bottom: 2rem !important;
    padding: 0 !important;
    clear: both !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Flex row for left alignment */
.ge-custom-pagination .nav-links {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important; /* Align left */
    align-items: center !important;
    gap: 0.5rem !important;
    direction: rtl !important; /* Keeps number order standard */
}

/* Button styles */
.ge-custom-pagination .page-numbers {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 42px !important;
    height: 42px !important;
    padding: 0 0.85rem !important;
    border-radius: 8px !important;
    background-color: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
    color: #333333 !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04) !important;
    white-space: nowrap !important;
}

/* Hover state */
.ge-custom-pagination a.page-numbers:hover {
    background-color: #800000 !important;
    color: #ffffff !important;
    border-color: #800000 !important;
    transform: translateY(-2px) !important;
}

/* Active current page */
.ge-custom-pagination .page-numbers.current {
    background-color: #800000 !important;
    color: #ffffff !important;
    border-color: #800000 !important;
    font-weight: 700 !important;
}

/* Force LTR direction for specific blocks */
.ge-ltr-text {
    direction: ltr !important;
    text-align: left !important;
}
