/*
Theme Name: Koptan El Khalig co
Theme URI: https://serv5.com/
Author: moamen abou alkahir

*/


/* --- General Styles --- */
body {
    font-family: sans-serif;
    margin: 0;
}
.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;

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

/* --- Header Styles --- */
.site-header {
    background-color: #fff;
}

/* -- Header Top -- */
.header-top {
    border-bottom: 1px solid #eaeaea;
    padding: 8px 0;
    font-size: 13px;
    color: #555;
}
.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-bar-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}
.top-bar-nav li a {
    text-decoration: none;
    color: #555;
    padding: 0 12px;
}
.top-bar-nav li:not(:last-child) a {
    border-right: 1px solid #ccc;
}
.language-switcher {
    display: flex;
    align-items: center;
    gap: 5px;
}
.language-switcher .fa-chevron-down {
    font-size: 10px;
}

/* -- Header Main -- */
.header-main {
    border-bottom: 1px solid #eaeaea;
    padding: 15px 0;
}
.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center; /* This is the MOST IMPORTANT line, it ensures vertical alignment */
    width: 100%;
}

.site-branding img {
    max-height: 60px;
    display: block;
}
/* New Wrapper for Nav & Actions */
.header-right-wrapper {
    display: flex;
    align-items: center; 
    gap: 25px;
}
.main-navigation {
    display: flex;
    align-items: center; 
    gap: 25px;
}

/* -- Main Navigation -- */
.main-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
}
.main-nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
}
.main-nav .menu-item-has-children > a::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 10px;
    margin-left: 8px;
}

/* -- Header Actions (Search & Button) -- */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}
.search-form {
    position: relative;
}
.search-field {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 8px 35px 8px 15px;
    min-width: 200px;
}
.search-submit {
    position: absolute;
    top: 50%;
    right: 5px;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #777;
    padding: 5px;
}
.button-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #007bff;
    color: #007bff;
    background-color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 14px;
    border-radius: 5px;
    transition: all 0.3s ease;
    white-space: nowrap; /* Prevents button text from wrapping */
}
.button-primary:hover {
    background-color: #007bff;
    color: #fff;
}

/* -- Site Branding Styles (Text Logo) -- */
.site-branding .site-title-wrap a {
    text-decoration: none;
}
.site-branding .site-title {
    font-size: 28px;
    font-weight: bold;
    color: #222;
    margin: 0;
}
.site-branding .site-description {
    font-size: 14px;
    color: #777;
    margin: 0;
}

/*
==============================================
RTL Styles - (Styles applied when html[dir="rtl"])
==============================================
*/

/* -- Header Top RTL -- */
[dir="rtl"] .header-top .container {
    flex-direction: row-reverse; /* Language switcher right, menu left */
}
[dir="rtl"] .top-bar-nav li:not(:last-child) a {
    border-right: none;
    border-left: 1px solid #ccc;
}

/* -- Header Main RTL -- */
[dir="rtl"] .header-main .container {
 /*   flex-direction: row-reverse; */
}
[dir="rtl"] .main-nav .menu-item-has-children > a::after {
    margin-left: 0;
    margin-right: 8px;
}
[dir="rtl"] .search-field {
    padding: 8px 15px 8px 35px;
}
[dir="rtl"] .search-submit {
    right: auto;
    left: 5px;
}
[dir="rtl"] .button-primary i {
    transform: scaleX(-1);
}

/*
==============================================
Hero Section Styles
==============================================
*/

/* --- 1. الحاوية الرئيسية للقسم --- */
.hero-section {
    background-color: #f0f4f8;
    position: relative;
    padding: 80px 0;
    overflow: hidden;
    z-index: 1;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('assets/images/world-map-bg.webp');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0.2; 
    z-index: -1; 
}


.hero-section .container {
    display: flex; 
    align-items: center; 
    gap: 40px; 
}

.hero-content {
    flex: 1; 
    max-width: 50%;
    z-index: 2; 
}

.hero-title {
    font-size: 48px;
    color: #1d3557;
    margin-top: 0;
    margin-bottom: 10px;
    font-weight: 800; 
}

.hero-subtitle {
    font-size: 24px;
    color: #457b9d;
    margin-top: 0;
    margin-bottom: 30px;
}

.hero-description strong {
    font-size: 18px;
    color: #1d3557;
    display: block;
    margin-bottom: 5px;
}

.hero-description p {
    color: #555;
    line-height: 1.6;
    margin-top: 0;
    margin-bottom: 40px;
}

.hero-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #007bff;
    color: #007bff;
    background-color: transparent;
    padding: 12px 25px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.hero-button:hover {
    background-color: #007bff;
    color: #fff;
}

.hero-image-wrapper {
    flex: 1;
    position: relative;
    background-color: #000; 
    
    animation: wrapper-animation 4s ease-in-out infinite;
    

}

.hero-image-wrapper::before {
    content: "";
    position: absolute;
    top: -10px;
    right: -10px;
    width: 50%;
    height: 60%;
    background: #f1c40f;
    z-index: -1;
  /*   transform: skewY(-5deg) translateY(-15px);*/
}


.hero-image-wrapper img {
    display: block;
    width: 100%;
    position: relative; 
        position: absolute; /* غيرناها لـ absolute */
    bottom: 0; 

    
    animation-name: truck-animation; 
    animation-duration: 4s; 
    animation-timing-function: ease-in-out; 
    animation-iteration-count: infinite; 
}
@keyframes truck-animation {
    0% {
        transform: translateX(0); 
    }
    50% {
        transform: translateX(-100px); 
    }
    100% {
        transform: translateX(0); 
    }
}




[dir="rtl"] .hero-section .container {
    flex-direction: row-reverse; 
    
}

[dir="rtl"] .hero-button i {
    transform: scaleX(-1);
}





.mobile-menu-toggle {
    display: none; 
    background: none;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 8px 10px;
    font-size: 24px;
    color: #333;
    cursor: pointer;
}
.sr-only { 
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}


@media (max-width: 991px) {
    /* -- إعدادات عامة لشكل الموبايل -- */
    .header-top {
        display: none;
    }
    .mobile-menu-toggle {
        display: block;
        background: none;
        border: none;
        padding: 5px;
        font-size: 26px;
        color: #1d3557;
        cursor: pointer;
    }

.header-right-wrapper {
    background-color: #ffffff; 
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; 
    align-items: center;     
    gap: 35px;

    position: fixed;
    top: 0;
    right: 0;
    width: 100%; 
    height: 100%;
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
    .mobile-menu-open .header-right-wrapper {
        transform: translateX(0);
    }
    
.close-menu-btn {
      display: block !important;

   position: absolute;

    top: 25px;
    right: 25px;
    background: none;
    border: none;
    color: #222;
    font-size: 30px;
    cursor: pointer;
    line-height: 1;
}

    .main-navigation {
        width: 100%;
    }
    .main-nav {
        flex-direction: column;
        gap: 15px; 
        width: 100%;
        align-items: center; 
    }
    .main-nav a {
        color: #222;
        padding: 10px 25px;
        font-size: 20px;
        font-weight: 500;
        text-align: center;
        width: fit-content; 
        

        
        transition: color 0.3s ease;
    }
    .main-nav a:hover {
        color: #007bff;
    }

    .header-actions {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center; 
        gap: 20px;
    }
    .search-form {
        max-width: 300px; 
        width: 100%;
    }
    .search-field {
        text-align: center;
        border-radius: 20px; 
        border: 1px solid #ccc;
        padding: 10px 20px;
    }
    .search-submit {
        display: none; 
    }

    .button-primary {
        border-radius: 20px;
        border-color: #222;
        color: #222;
        font-weight: bold;
    }
    .button-primary:hover {
        background-color: #222;
        color: #fff;
    }

    /* -- 5. الخلفية المعتمة (Overlay) -- */
    /* Overlay لم نعد بحاجة إليه لأن القائمة تملأ الشاشة */
    .menu-overlay {
        display: none;
    }
    
    /* -- 6. تنسيقات RTL -- */
    [dir="rtl"] .header-right-wrapper {
        right: auto;
        left: 0;
        transform: translateX(-100%);
    }
[dir="rtl"] .mobile-menu-open .header-right-wrapper {
    transform: translateX(0);
}
    [dir="rtl"] .close-menu-btn {
        right: auto;
        left: 25px;
    }

[dir="rtl"] .hero-section .container {
    flex-direction: column;
}
    /* لا ننسى تنسيق الهيرو سيكشن للموبايل */
    .hero-section {
        padding: 60px 10px;
    }
    .hero-section .container {
        flex-direction: column;
        text-align: center;
    }
    .hero-content, .hero-image-wrapper {
        max-width: 100%;
        width: 100%;
    }
    .hero-image-wrapper {
        transform: none !important;
        clip-path: none !important;
        min-height: 250px;
    }
    .hero-title {
        font-size: 36px;
    }
}



.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* خلفية سوداء بشفافية 60% */
    z-index: 999; /* يجب أن تكون تحت القائمة وفوق باقي المحتوى */
    opacity: 0;
    visibility: hidden; /* إخفاء العنصر بالكامل */
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

/* عند فتح القائمة، تظهر الخلفية */
.mobile-menu-open .menu-overlay {
    opacity: 1;
    visibility: visible; /* إظهار العنصر */
}
.close-menu-btn {
    display: none; /* إخفاء الزر بشكل افتراضي (على الديسكتوب) */
}


/*
==============================================
6. Cards Section Styles
==============================================
*/
.cards-section {
    padding: 40px 0;
    margin-top: -80px; /* يجعل الكروت تبدأ من داخل قسم الهيرو قليلاً */
    position: relative;
    z-index: 10;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 أعمدة على الشاشات الكبيرة */
    gap: 30px;
}

.card-item {
    background-color: #fff;
    padding: 30px 20px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.card-item:hover {
    transform: translateY(-10px);
    background-color: #FFC107; /* لون الهوفر الأصفر */
    color: #212529; /* لون النص أسود ليكون واضحًا */
}

.card-icon {
    max-height: 50px;
    margin-bottom: 20px;
}

.card-number {
    font-size: 36px;
    font-weight: 700;
    color: #1d3557;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.card-item:hover .card-number {
    color: inherit; /* يرث اللون الأسود من الأب عند الهوفر */
}

.card-text {
    font-size: 16px;
    color: #6c757d;
    margin: 0;
    transition: color 0.3s ease;
}

.card-item:hover .card-text {
    color: inherit;
}

/* --- Responsive styles for Cards Section --- */
@media (max-width: 991px) {
    .cards-section {
        margin-top: 0;
        padding: 60px 0;
    }
    .cards-grid {
        grid-template-columns: repeat(2, 1fr); /* عمودان على التابلت */
    }
}

@media (max-width: 576px) {
    .cards-grid {
        grid-template-columns: 1fr; /* عمود واحد على الموبايل */
    }
}

/* --- end Cards Section --- */

/*
==============================================
7. About Us Section Styles
==============================================
*/
.about-section {
  /*  padding: 80px 0; */
    overflow: hidden;
}
.dotted-divider {
    border-top: 2px dotted #e0e0e0;
    margin: 40px 0;
}
.about-wrapper {
    display: flex;
    align-items: center;
    gap: 60px;
}
.about-content {
    flex: 1;
}
.about-image-wrapper {
    flex: 1;
    position: relative;
}
.about-small-heading {
    color: #007bff;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
    margin-bottom: 10px;
    display: block;
}
.about-main-heading {
    font-size: 36px;
    color: #212529;
    margin-top: 0;
    margin-bottom: 5px;
}
.about-sub-heading {
    font-size: 24px;
    color: #212529;
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: 600;
}
.about-paragraph {
    color: #6c757d;
    line-height: 1.7;
    margin-bottom: 30px;
}
.about-button {
    background-color: #ffc107;
    color: #212529;
    padding: 15px 35px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 8px;
    display: inline-block;
    transition: background-color 0.3s ease;
}
.about-button:hover {
    background-color: #e0a800;
}
.about-main-image {
    width: 100%;
    border-radius: 15px;
    display: block;
}
.about-badge {
    position: absolute;
    bottom: 40px;
    left: -40px;
    background-color: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 20px;
}
.badge-icon-wrapper {
    background-color: #ffc107;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.badge-icon {
    width: 30px;
    height: 30px;
}
.badge-number {
    font-size: 36px;
    font-weight: bold;
    color: #212529;
    line-height: 1;
}
.badge-text {
    background-color: #212529;
    color: #fff;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 5px;
    margin-left: -10px;
    align-self: flex-end;
}

/* --- RTL Styles for About Section --- */
[dir="rtl"] .about-wrapper {
    flex-direction: row-reverse;
}
[dir="rtl"] .about-badge {
    left: auto;
    right: -40px;
}
[dir="rtl"] .badge-text {
    margin-left: 0;
    margin-right: -10px;
}

/* --- Responsive styles for About Section --- */
@media (max-width: 991px) {
    .about-wrapper {
        flex-direction: column;
        padding: 10px;
    }
    .about-badge {
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        box-sizing: border-box;
        justify-content: center;
    }
    [dir="rtl"] .about-badge {
        right: 50%;
        transform: translateX(50%);
    }
}

/* --- end About Section --- */
/*
==============================================
8. Testimonials Section Styles
==============================================
*/
.testimonials-section {
    padding: 10px 0;
    background-color: #f8f9fa;
}
.section-header {
    margin-bottom: 20px;
}
.section-small-title {
    color: #007bff;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
    margin-bottom: 10px;
    display: block;
}
.section-main-title {
    font-size: 42px;
    color: #1d3557;
    margin: 0;
    line-height: 1.2;
}
.testimonials-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: center;
    padding: 10px;
}
.featured-testimonial {
    position: relative;
}
.featured-image-wrapper {
    position: relative;
    padding-top: 30px;
    padding-left: 30px;
}
.featured-image-wrapper .bg-shape {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80%;
    background-color: #ffc107;
    border-radius: 20px 20px 0px 0px;
    z-index: 1;
}
.featured-image-wrapper img {
    position: relative;
    z-index: 2;
    border-radius: 20px;
}
.featured-text-box {
    background-color: #1d3557;
    color: #fff;
    padding: 30px;
    border-radius: 0px 0px 20px 20px;
    margin-top: -80px;
    position: relative;
    z-index: 3;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}
.stars {
    color: #ffc107;
    font-size: 20px;
    margin-bottom: 15px;
}
.featured-text-box p {
    margin: 0 0 20px 0;
    line-height: 1.6;
    opacity: 0.9;
}
.author {
    font-size: 14px;
    text-transform: uppercase;
}
.author span {
    opacity: 0.7;
}

/* Slider Styles */
.testimonial-slider-wrapper {
    position: relative;
    min-width: 0; /* <<< هذا هو السطر الأهم رقم 1: يحل مشكلة حساب العرض في Grid/Flexbox */
}

.quotes-icon {
    font-size: 120px;
    color: #007bff;
    position: absolute;
    top: -50px;
    left: -20px;
    line-height: 1;
    opacity: 0.8;
}

.testimonial-slider-container {
    padding-top: 30px;
    width: 100%; /* <<< هذا هو السطر الأهم رقم 2: يجبر السلايدر على أخذ 100% من عرض أبيه */
}

.testimonial-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    height: 150px;
}
.swiper-pagination {
    position: static;
    margin-top: 30px;
}
.swiper-pagination-bullet {
    background-color: #007bff;
    opacity: 0.5;
    width: 10px;
    height: 10px;
}
.swiper-pagination-bullet-active {
    opacity: 1;
}

/*
==============================================
Fix for Swiper Pagination Spacing
==============================================
*/

/*
  نقوم باستهداف نقاط التنقل داخل السلايدر الخاص بنا تحديدًا
  للتأكد من أن التعديل لا يؤثر على أي سلايدر آخر قد تضيفه مستقبلاً.
*/
.testimonial-slider-wrapper .swiper-pagination {
    position: static; /* نلغي التموضع المطلق ونجعله عاديًا في تدفق الصفحة */
    margin-top: 30px; /* نضيف مسافة علوية لفصله عن الكروت */
    padding-bottom: 10px; /* نضيف مسافة سفلية بسيطة لمظهر أفضل */
}

/* Responsive */
@media (max-width: 991px) {
    .testimonials-wrapper {
        grid-template-columns: 1fr;
    }
}



/*
==============================================
9. Fixes for Horizontal Overflow
==============================================
*/
.featured-text-box p,
.testimonial-card p {
    overflow-wrap: break-word; /* تجبر الكلمات الطويلة على النزول لسطر جديد */
    word-wrap: break-word; /* نفس الخاصية لدعم المتصفحات القديمة */
}

@media (max-width: 991px) {
    /* ... باقي أكواد الموبايل ... */

    .quotes-icon {
        top: -20px;
        left: 10px; /* تغيير القيمة السالبة إلى موجبة */
        font-size: 80px; /* تصغير حجمها قليلاً */
    }
}


/*
==============================================
9. Services Section Styles
==============================================
*/
.services-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

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

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 أعمدة على الشاشات الكبيرة */
    gap: 30px;
}

.service-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    text-align: left;
    transition: all 0.3s ease-in-out;
}

.service-card:hover {
    transform: translateY(-10px);
    background-color: #2D5AA9; /* اللون الأزرق الداكن عند المرور */
    color: #fff;
}

.service-icon-wrapper {
    background-color: #e7f1ff; /* أزرق فاتح جدًا */
    border-radius: 10px;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
    transition: background-color 0.3s ease-in-out;
}

.service-card:hover .service-icon-wrapper {
    background-color: #007bff;
}

.service-icon {
    width: 32px;
    height: 32px;
    transition: filter 0.3s ease-in-out;
}

.service-card:hover .service-icon {
    filter: brightness(0) invert(1); /* يجعل لون الأيقونة أبيض */
}

.service-title {
    font-size: 20px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 15px;
    color: #212529;
    transition: color 0.3s ease-in-out;
}

.service-card:hover .service-title {
    color: #fff;
}

.service-description {
    font-size: 16px;
    line-height: 1.6;
    color: #6c757d;
    margin: 0;
    transition: color 0.3s ease-in-out;
}

.service-card:hover .service-description {
    color: rgba(255, 255, 255, 0.8);
}

/* --- Responsive styles for Services Section --- */
@media (max-width: 991px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr); /* عمودان على التابلت */
    }
}

@media (max-width: 576px) {
    .services-grid {
        grid-template-columns: 1fr; /* عمود واحد على الموبايل */
    }
}

/* --- RTL Styles for Services Section --- */
[dir="rtl"] .service-card {
    text-align: right;
}

/*
/*
==============================================
10. Process Section (How It Works) Styles - (Corrected & Responsive)
==============================================
*/
.process-section {
    padding: 80px 0;
    position: relative;
    background-color: #fff;
}

/* --- Dotted Border Wrapper --- */
.process-section .container {
    border: 2px dotted #007bff;
    padding: 60px 40px; /* زيادة المسافات الداخلية */
    border-radius: 15px;
    position: relative; /* مهم للتموضع الداخلي */
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center; /* محاذاة عمودية للعناصر */
    position: relative;
    margin-top: 60px; /* مسافة من العنوان الرئيسي */
}

.process-step {
    position: relative;
    text-align: center;
    padding-top: 150px; /* إضافة مسافة علوية لإفساح المجال للرقم الكبير */
}

/* Big numbers in the background */
.step-bg-number {
    font-size: 120px;
    font-weight: 800;
    color: #f1f5f9; /* لون رمادي فاتح جدًا */
    position: absolute;
    top: 0; /* يبدأ من أعلى العنصر */
    left: 50%;
    transform: translateX(-50%); /* محاذاة أفقية فقط */
    z-index: 1;
    line-height: 1;
}

.step-box {
    background-color: #1d3557;
    width: 300px;
    height: 50px;
    color: #fff;
    padding: 25px;
    border-radius: 10px;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
}

/* First step box style */
.process-step:first-child .step-box {
    background-color: #4a47a3; /* اللون البنفسجي */
}

.step-number {
    font-size: 24px;
    font-weight: 700;
    border-right: 1px solid rgba(255, 255, 255, 0.3);
    padding-right: 15px;
}

.step-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    text-transform: uppercase;
}

/* Arrows connecting the steps (Using your image) */
.process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50%;
    left: calc(100% + 10px); /* يبدأ بعد العنصر بـ 10 بكسل */
    width: 80px;  /* عرض السهم */
    height: 30px; /* ارتفاع السهم */
    background-image: url('assets/images/arrow.webp'); /* مسار الصورة */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 1;
    transform: translateY(-100%); /* لضبط مكانه العمودي مع الرقم الكبير */
}

/* --- Responsive styles for Process Section --- */
@media (max-width: 991px) {
    .process-grid {
        grid-template-columns: 1fr; /* عمود واحد فقط */
        gap: 80px; /* زيادة المسافة العمودية بين الخطوات */
        margin-top: 40px;
    }
    .process-step {
        padding-top: 60px; /* تقليل المسافة العلوية */
    }
    .step-bg-number {
        font-size: 120px; /* تصغير حجم الرقم الكبير */
    }
    .process-step:not(:last-child)::after {
        width: 60px; /* تصغير حجم السهم */
        height: 60px;
        left: 50%;
        top: 100%;
        transform: translate(-50%, 10px) rotate(90deg); /* تدوير السهم وتوسيطه */
    }
}

/* --- RTL Styles for Process Section --- */
[dir="rtl"] .step-box {
    text-align: right;
    flex-direction: row-reverse;
}
[dir="rtl"] .step-number {
    border-right: none;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    padding-right: 0;
    padding-left: 15px;
}
[dir="rtl"] .process-step:not(:last-child)::after {
    left: auto;
    right: calc(100% + 10px); /* يظهر على يمين العنصر */
    transform: translateY(-100%) scaleX(-1); /* عكس اتجاه السهم */
}
/* For Mobile RTL */
@media (max-width: 991px) {
    [dir="rtl"] .process-step:not(:last-child)::after {
        right: 50%;
        left: auto;
        transform: translate(50%, 10px) rotate(90deg); /* لا نحتاج لعكسه عموديًا */
    }
}

/*
==============================================
11. Video Section Styles
==============================================
*/
.video-section {
    /* No padding needed on the section itself */
}

.video-link-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: 450px; /* ارتفاع القسم */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-decoration: none;
}

/* Adds a subtle dark overlay on top of the image */
.video-link-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.2);
}

.play-button-icon {
    width: 90px;
    height: 90px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative; /* To be on top of the overlay */
    z-index: 2;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.play-button-icon i {
    font-size: 32px;
    color: #007bff;
    margin-left: 5px; /* Optically center the play icon */
}

.video-link-wrapper:hover .play-button-icon {
    transform: scale(1.1); /* يكبر الزر عند مرور الماوس */
}

/* --- Responsive styles for Video Section --- */
@media (max-width: 768px) {
    .video-link-wrapper {
        min-height: 300px; /* تقليل الارتفاع في الموبايل */
    }
    .play-button-icon {
        width: 70px;
        height: 70px;
    }
    .play-button-icon i {
        font-size: 24px;
    }
}

/*
==============================================
12. Footer Styles
==============================================
*/
.site-footer {
    background-color: #1d3557; /* Dark Blue */
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 10px 10px 10px;
}
.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    gap: 40px;
    padding-bottom: 50px;
}
.footer-column h3.footer-widget-title {
    color: #fff;
    font-size: 18px;
    text-transform: uppercase;
    margin-top: 0;
    margin-bottom: 25px;
}
.footer-logo .custom-logo-link {
    display: inline-block;
    margin-bottom: 20px;
}
.footer-logo img {
    max-height: 50px;
}
.footer-description {
    line-height: 1.7;
    margin-bottom: 25px;
}
.footer-socials {
    display: flex;
    gap: 15px;
}
.footer-socials a {
    color: #fff;
    font-size: 20px;
    transition: color 0.3s ease, transform 0.3s ease;
}
.footer-socials a:hover {
    color: #ffc107; /* Yellow */
    transform: translateY(-3px);
}
.footer-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-menu-list li {
    margin-bottom: 12px;
}
.footer-menu-list a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-menu-list a:hover {
    color: #fff;
}
.subscribe-form input {
    width: 300px;
    background-color: #fff;
    border: none;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}
.subscribe-form button {
    width: 330px;
    background-color: #ffc107; /* Yellow */
    color: #1d3557; /* Dark Blue */
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.subscribe-form button:hover {
    background-color: #e0a800;
}
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}
.copyright-text, .designer-text {
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive Footer */
@media (max-width: 991px) {
    .footer-main {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 767px) {
    .footer-main {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/*
==============================================
13. Breadcrumb Styles (Updated with Background Effects)
==============================================
*/
.breadcrumb-area {
    background-color: #302BC9; /* Dark Blue */
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0; /* زيادة الـ padding ليعطي مساحة أكبر */
    position: relative; /* مهم جدًا لوضع العناصر الشفافة في الخلفية */
    overflow: hidden; /* لإخفاء أي أجزاء زائدة من التأثيرات */
    
    /* هذا الكود يصنع تأثير الغيوم الخافتة على اليمين */
    background-image: radial-gradient(circle at 90% 50%, rgba(255, 255, 255, 0.06), transparent 40%);
}

/* الكود الخاص بالنص الكبير الشفاف في الخلفية */
.breadcrumb-area::before {
    content: 'قبطان الخليج'; /* يمكنك تغيير هذا النص من هنا */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 90px; /* حجم الخط الكبير */
    font-weight: 800;
    color: rgba(255, 255, 255, 0.5); /* لون شفاف جدًا */
    z-index: 1; /* وضعه في الطبقة الخلفية */
    white-space: nowrap; /* لمنع نزول النص لسطر جديد */
    user-select: none; /* لمنع المستخدم من تحديده بالماوس */
}

.breadcrumb-content {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
    font-weight: 500;
    position: relative; /* مهم جدًا */
    z-index: 2; /* نجعله في طبقة أمامية فوق النص الشفاف */
}

.breadcrumb-content a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.breadcrumb-content a:hover {
    color: #ffc107; /* Yellow hover */
}

.breadcrumb-separator {
    color: rgba(255, 255, 255, 0.5);
}

.breadcrumb-current {
    color: #fff;
    font-weight: 600;
}

/* --- RTL Tweak for Breadcrumb Background Effect --- */
[dir="rtl"] .breadcrumb-area {
    /* ننقل التأثير من 90% (اليمين) إلى 10% (اليسار) */
    background-image: radial-gradient(circle at 10% 50%, rgba(255, 255, 255, 0.06), transparent 40%);
}

/*
==============================================
14. Certified Authority Section (About Page)
==============================================
*/
.certified-section {
    padding: 80px 0;
}
.certified-wrapper {
    display: flex;
    align-items: center;
   /* gap: 60px;*/
    box-shadow: 0 13px 19px 0 rgba(0, 0, 0, 0.07);
}
.certified-content {
    flex: 1;
    text-align: left;
    padding: 15px;
}
.certified-logo img {
    max-height: 80px;
    margin-bottom: 20px;
}
.certified-title {
    font-size: 32px;
    font-weight: 700;
    color: #1d3557;
    text-transform: uppercase;
    line-height: 1.4;
}
.certified-images {
    flex: 1.5;
    display: flex;
    gap: 30px;
    align-items: flex-start;
}
.certificate-item {
    background-color: #fff;
    padding: 15px;
    text-align: center;
    flex: 1;
    position: relative; /* مهم جدًا للتفاصيل الجديدة */
    padding-bottom: 25px; /* مساحة للإطار السفلي */
    border-bottom: 4px solid transparent; /* إطار سفلي شفاف مبدئيًا */
    box-shadow: 0 8px 9px 0 rgba(0, 0, 0, 0.07);
    
}

/* الشريط الصغير في الأعلى */
.certificate-item::before {
    content: '';
    position: absolute;
    top: -10px;
    right: 25px;
    width: 60px;
    height: 10px;
}

/* تلوين الشهادة الأولى (الأصفر) */
.certificate-item--yellow {
    border-bottom-color: #ffc107;
}


/* تلوين الشهادة الثانية (الأزرق) */
.certificate-item--blue {
    border-bottom-color: #1d3557;
}


.certificate-item img {
    max-width: 100%;
    height: auto;
    border: 1px solid #eee;
    margin-bottom: 15px;
}
.certificate-caption {
    font-size: 14px;
    font-weight: 600;
    color: #212529;
    text-transform: uppercase;
}

/* RTL Styles */
[dir="rtl"] .certified-content {
    text-align: right;
}
[dir="rtl"] .certified-wrapper {
    flex-direction: row-reverse;
}

/* Responsive */
@media (max-width: 991px) {
    .certified-wrapper {
        flex-direction: column;
        text-align: center;
    }
    [dir="rtl"] .certified-wrapper {
        flex-direction: column;
    }
    [dir="rtl"] .certified-content {
        text-align: center;
    }
}
@media (max-width: 576px) {
    .certified-images {
        flex-direction: column;
    }
}

/*
==============================================
15. Mission Section (About Page)
==============================================
*/
.mission-section {
    padding: 80px 0;
    background-color: #f8f9fa; /* Light grey background */
}
.mission-wrapper {
    display: flex;
    align-items: center;
    gap: 80px;
    padding: 10px;
}
.mission-content {
    flex: 1;
}
.mission-image {
    flex: 1;
}
.mission-title {
    font-size: 36px;
    font-weight: 700;
    color: #1d3557;
    margin-top: 0;
    margin-bottom: 25px;
}
.mission-content p {
    color: #6c757d;
    line-height: 1.8;
    margin-bottom: 20px;
}
.mission-image img {
    width: 100%;
    height: auto;
    display: block;
    /* This creates the custom shape */
    clip-path: polygon(0 0, 85% 0, 100% 15%, 100% 100%, 20% 100%, 0 80%);
    border-radius: 15px;
}

/* RTL Styles */
[dir="rtl"] .mission-wrapper {
    flex-direction: row-reverse;
}
[dir="rtl"] .mission-image img {
    /* Flip the shape horizontally */
    transform: scaleX(-1);
}
/* Un-flip the image inside the flipped container */
[dir="rtl"] .mission-image {
    transform: scaleX(-1);
}

/* Responsive */
@media (max-width: 991px) {
    .mission-wrapper {
        flex-direction: column-reverse; /* Show image first on mobile */
    }
    [dir="rtl"] .mission-wrapper {
        flex-direction: column-reverse;
    }
    .mission-image img {
        clip-path: none; /* Use a simple rectangle on mobile */
        border-radius: 15px;
    }
}

/*
==============================================
16. Services Details Section (About Page)
==============================================
*/
.services-details-section {
    padding: 40px 0;
}
.services-details-wrapper {
    display: flex;
    align-items: center;
    gap: 80px;
    padding: 10px;
}
.services-details-image {
    flex: 1;
    position: relative;
}
/* This creates the yellow shape behind the image */

.services-details-image img {
    width: 100%;
    height: auto;
    display: block;
   /* clip-path: polygon(0 0, 100% 15%, 100% 85%, 0 100%);*/
}
.services-details-content {
    flex: 1;
}
.services-details-title {
    font-size: 32px;
    font-weight: 700;
    color: #1d3557;
    margin-top: 0;
    margin-bottom: 25px;
    text-transform: uppercase;
}
.services-details-text p {
    color: #6c757d;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* RTL Styles */
[dir="rtl"] .services-details-wrapper {
    flex-direction: row-reverse;
}
[dir="rtl"] .services-details-image::before {
    right: auto;
    left: -20px;
    transform: scaleX(-1);
}
[dir="rtl"] .services-details-image img {
    transform: scaleX(-1);
}

/* Responsive */
@media (max-width: 991px) {
    .services-details-wrapper {
        flex-direction: column;
    }
    [dir="rtl"] .services-details-wrapper {
        flex-direction: column;
    }
    .services-details-image {
        width: 100%;
        max-width: 500px; /* Limit width on mobile for better look */
    }
}
/*
==============================================
17. Our Values Section (About Page)
==============================================
*/
.values-section {
    padding: 80px 0;
}
.values-wrapper {
    display: flex;
    align-items: center;
    gap: 60px;
    background-color: #fff;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
    position: relative;
}
.values-content {
    flex: 1;
}
.values-image-wrapper {
    flex: 1;
    position: relative;
}
.values-icon-wrapper {
    background-color: #4a47a3; /* Purple */
    width: 60px;
    height: 60px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}
.values-icon-wrapper img {
    width: 32px;
    height: 32px;
}
.values-title {
    font-size: 24px;
    font-weight: 700;
    color: #1d3557;
    text-transform: uppercase;
    margin-top: 0;
    margin-bottom: 20px;
}
.values-text p {
    color: #6c757d;
    line-height: 1.8;
    margin-bottom: 15px;
}
.values-main-image {
    width: 100%;
    border-radius: 15px;
}
/* This creates the blue shape behind the image */
.values-image-wrapper::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    background-color: #1d3557; /* Dark Blue */
    z-index: -1;
    border-radius: 15px;
    clip-path: polygon(0 15%, 100% 0, 100% 100%, 0 85%);
}

/* RTL Styles */
[dir="rtl"] .values-wrapper {
    flex-direction: row-reverse;
}
[dir="rtl"] .values-image-wrapper::before {
    right: auto;
    left: -20px;
    transform: scaleX(-1);
}
[dir="rtl"] .values-main-image {
    transform: scaleX(-1);
}

/* Responsive */
@media (max-width: 991px) {
    .values-wrapper {
        flex-direction: column;
        padding: 30px;
    }
    [dir="rtl"] .values-wrapper {
        flex-direction: column;
    }
    .values-image-wrapper {
        width: 100%;
    }
}

/*
==============================================
18. Contact Page Styles (Updated)
==============================================
*/
.contact-hero-section {
    padding: 40px 0;
  /*  background-color: #f8f9fa;   */
    background-color: #ffffff;

}
.contact-hero-wrapper {
    display: flex;
    gap: 40px;
    align-items: stretch;
    padding: 10px;
}
.contact-details {
    flex: 1.1; /* Give the left column a bit more space */
    background-color: #fff;
    padding: 40px;
    border-radius: 15px;
   /* box-shadow: 0 15px 40px rgba(0,0,0,0.08);*/
   box-shadow: 0px 20px 19px 0 rgba(0, 0, 0, 0.07);
   
}
.contact-main-title-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    border-radius: 15px;
    padding: 0px 15px 0px 15px;
    background-size: cover;
    background-position: center;
    min-height: 400px;
}
.contact-main-title {
    color: #1d3557;
    font-size: 42px; /* تصغير حجم الخط */
    font-weight: 800;
    line-height: 1.3;
}
.contact-small-title {
    display: block;
    color: #007bff;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 10px;
    position: relative;
    padding-bottom: 10px;
}
.contact-small-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: #ffc107; /* Yellow */
}
.contact-group {
    margin: 30px 0;
    display: flex;
}
.contact-group-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}
.contact-group-header i {
    font-size: 20px;
    color: #007bff;
}
.contact-group-header h4 {
    margin: 0;
    font-size: 16px;
    color: #212529;
    font-weight: bold;
}
.contact-group-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-left: 35px; /* مسافة بادئة لتكون تحت العنوان */
}
.number-pill {
    background-color: #e7f1ff; /* Light blue */
    color: #1d3557;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.number-pill:hover {
    background-color: #007bff;
    color: #fff;
}
.dotted-separator {
    border: 0;
    border-top: 1px dashed #ccc;
    margin: 30px 0;
}

/* RTL Styles for Contact Page */
[dir="rtl"] .contact-small-title::after {
    left: auto;
    right: 0;
}
[dir="rtl"] .contact-group-numbers {
    padding-left: 0;
    padding-right: 35px;
}

/* Responsive */
@media (max-width: 991px) {
    .contact-hero-wrapper {
        flex-direction: column;
    }
    .contact-main-title {
        font-size: 36px;
        color: #fff; /* Changing color for better contrast on image */
        text-shadow: 1px 1px 5px rgba(0,0,0,0.3);
    }
}

/*
==============================================
19. Info Section (Contact Page)
==============================================
*/
.info-section {
    padding: 80px 0;
    background-color: #f8f9fa;
    background-image: url('assets/images/map-pattern.png'); /* Add a subtle map pattern image here */
    background-repeat: repeat;
}
.info-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    align-items: start;
}
.info-col-title {
    padding-right: 40px;
}
.info-main-title {
    font-size: 42px;
    font-weight: 800;
    color: #1d3557;
    line-height: 1.3;
}
.info-main-title span {
    color: #007bff;
}
.info-col h4.info-col-title {
    font-size: 16px;
    color: #007bff;
    font-weight: bold;
    text-transform: uppercase;
    margin-top: 0;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}
.info-col h4.info-col-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 3px;
    background-color: #ffc107;
}
.info-col a,
.info-col p {
    color: #6c757d;
    text-decoration: none;
    line-height: 1.8;
}
.info-col a {
    color: #1d3557;
    font-weight: 500;
}
.info-hours, .info-location {
    margin-top: 15px;
}
.info-hours p, .info-location p {
    margin: 0 0 5px 0;
}

/* RTL Styles */
[dir="rtl"] .info-col-title {
    padding-right: 0;
    padding-left: 40px;
}
[dir="rtl"] .info-col h4.info-col-title::after {
    left: auto;
    right: 0;
}

/* Responsive */
@media (max-width: 991px) {
    .info-wrapper {
        grid-template-columns: 1fr;
    }
    .info-col-title {
        padding-right: 0;
        text-align: center;
    }
    [dir="rtl"] .info-col-title {
        padding-left: 0;
    }
    .info-col {
        text-align: center;
    }
    .info-col h4.info-col-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    [dir="rtl"] .info-col h4.info-col-title::after {
        right: 50%;
        transform: translateX(50%);
    }
}
/*
==============================================
20. Contact Form Section Styles
==============================================
*/
.form-section {
    padding: 30px 10px;
}
.form-wrapper {
    display: flex;
    align-items: center;
    gap: 60px;
}
.form-content {
    flex: 1;
}
.form-image {
    flex: 1;
    position: relative;
}
.form-image::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    background-color: #ffc107; /* Yellow */
    z-index: -1;
    border-radius: 15px;
}
.form-image img {
    width: 100%;
    border-radius: 15px;
    display: block;
}
.form-title {
    font-size: 32px;
    font-weight: 700;
    color: #1d3557;
    margin-top: 0;
    margin-bottom: 30px;
    text-transform: uppercase;
}

/* --- Contact Form 7 Styling --- */
.form-container .wpcf7-form p {
    margin: 0 0 15px 0;
}
.form-container .wpcf7-form-control {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #f8f9fa;
    font-size: 16px;
    color: #333;
}
.form-container .wpcf7-form-control:focus {
    outline: none;
    border-color: #007bff;
}
.form-container .wpcf7-submit {
    background-color: #ffc107;
    color: #1d3557;
    border: none;
    padding: 15px 35px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.form-container .wpcf7-submit:hover {
    background-color: #e0a800;
}

/* RTL Styles */
[dir="rtl"] .form-wrapper {
    flex-direction: row-reverse;
}
[dir="rtl"] .form-image::before {
    right: auto;
    left: -20px;
}

/* Responsive */
@media (max-width: 991px) {
    .form-wrapper {
        flex-direction: column;
    }
}

/*
==============================================
21. Content & Blog Styles (page, single, archive)
==============================================
*/
.content-container {
    padding-top: 60px;
    padding-bottom: 60px;
}
.entry-header {
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}
.entry-title {
    font-size: 36px;
    color: #1d3557;
    margin-top: 0;
    margin-bottom: 10px;
}
.entry-meta {
    font-size: 14px;
    color: #6c757d;
}
.entry-meta a {
    color: #1d3557;
    text-decoration: none;
    font-weight: bold;
}
.post-thumbnail {
    margin-bottom: 30px;
}
.post-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}
.entry-content {
    line-height: 1.8;
    font-size: 17px;
    color: #333;
}
.entry-content h2, .entry-content h3 {
    color: #1d3557;
}
.entry-content a {
    color: #007bff;
    text-decoration: none;
}
.entry-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}
.tag-links a {
    display: inline-block;
    background-color: #f1f1f1;
    color: #555;
    padding: 5px 10px;
    margin: 2px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
}

/* Archive Page Styles */
.page-header {
    margin-bottom: 40px;
    border-bottom: 2px solid #1d3557;
    padding-bottom: 20px;
}
.page-title {
    font-size: 32px;
    color: #1d3557;
}
.archive-description {
    margin-top: 10px;
    color: #555;
}
.archive-posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}
.archive-post-summary {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}
.archive-post-summary:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.archive-post-summary .post-summary-content {
    padding: 25px;
}
.archive-post-summary .entry-title {
    font-size: 22px;
}
.read-more-btn {
    display: inline-block;
    margin-top: 20px;
    color: #007bff;
    font-weight: bold;
    text-decoration: none;
}
.pagination {
    margin-top: 60px;
}
.pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 10px;
}
.pagination .page-numbers {
    padding: 10px 15px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #1d3557;
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background-color: #1d3557;
    color: #fff;
    border-color: #1d3557;
}

/* Responsive for Archive */
@media (max-width: 767px) {
    .archive-posts-grid {
        grid-template-columns: 1fr;
    }
}

/*
==============================================
22. Comments Section Styles
==============================================
*/
.comments-area {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #f1f1f1;
}

.comments-title,
.comment-reply-title {
    font-size: 28px;
    font-weight: 700;
    color: #1d3557; /* Dark Blue */
    margin-bottom: 30px;
}

/* --- Comment List --- */
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
}
.comment-list .comment {
    margin-bottom: 25px;
}
.comment-body {
    background-color: #f8f9fa; /* Light Grey */
    border: 1px solid #e9ecef;
    padding: 25px;
    border-radius: 10px;
    position: relative;
}
.comment-author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}
.comment-author .avatar {
    border-radius: 50%;
}
.comment-author .fn {
    font-style: normal;
    font-weight: bold;
    color: #1d3557;
}
.comment-meta {
    font-size: 13px;
    color: #6c757d;
}
.comment-meta a {
    text-decoration: none;
    color: #6c757d;
}
.comment-content {
    color: #333;
    line-height: 1.7;
}
.reply {
    margin-top: 15px;
}
.comment-reply-link {
    font-size: 14px;
    font-weight: bold;
    color: #007bff; /* Light Blue */
    text-decoration: none;
    transition: color 0.3s ease;
}
.comment-reply-link:hover {
    color: #1d3557;
}
/* Threaded (nested) comments */
.comment-list .children {
    list-style: none;
    padding-left: 40px;
    margin-top: 25px;
}

/* --- Comment Form --- */
.comment-form p {
    margin-bottom: 20px;
}
.comment-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    background-color: #fff;
    font-size: 16px;
    transition: border-color 0.3s ease;
}
.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #007bff;
}
.comment-form .submit-btn {
    background-color: #ffc107; /* Yellow */
    color: #1d3557; /* Dark Blue */
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}
.comment-form .submit-btn:hover {
    background-color: #e0a800;
}
.form-allowed-tags {
    font-size: 13px;
    color: #6c757d;
}

/* Comments Navigation */
.comments-navigation {
    margin-bottom: 30px;
}

/* --- Language Switcher Link Style --- */
.language-switcher a {
    text-decoration: none;
    color: inherit; /* يرث اللون الرمادي من أبيه */
    font-weight: 500;
    transition: color 0.2s ease-in-out;
}

.language-switcher a:hover {
    color: #007bff; /* يتغير لونه للأزرق عند مرور الماوس */
}

/*
==============================================
Mobile Language Switcher Styles
==============================================
*/

/* 1. إخفاء محول اللغة من نسخة الديسكتوب بشكل افتراضي */
.mobile-language-switcher {
    display: none;
}

/* 2. إظهاره وتنسيقه داخل قائمة الموبايل فقط */
@media (max-width: 991px) {
    .mobile-language-switcher {
        display: flex; /* إظهار العنصر */
        align-items: center;
        justify-content: center;
        gap: 10px;
        width: 100%;
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid #dee2e6; /* خط فاصل أنيق */
    }

    .mobile-language-switcher i {
        color: #6c757d; /* لون رمادي هادئ */
        font-size: 18px;
    }

    .mobile-language-switcher a {
        text-decoration: none;
        color: #1d3557; /* أزرق داكن */
        font-size: 16px;
        font-weight: bold;
        transition: color 0.2s ease;
    }
    
    .mobile-language-switcher a:hover {
        color: #007bff; /* أزرق فاتح عند المرور */
    }
}