
:root {
    --primary-color: #5F787D;
    --secondary-color: #736E5C;
    --accent-color: #E5A84D;
    --white-color: #FFFFFF;
    --body-bg-color: #FBFAF9;
    --dark-text-color: #2c3e50;
    --light-text-color: #7f8c8d;
    --font-family: 'Tajawal', sans-serif;
    --soft-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    --border-radius: 16px;
    --main-container-width: 1140px;
    --header-height: 75px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-family);
    background: linear-gradient(to bottom, #e9ecef, var(--body-bg-color) 50vh);
    color: var(--dark-text-color);
    line-height: 1.8;
    text-align: right;
    overflow-x: hidden;
}

.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
/* ================================================================
-    --- [الحل النهائي] توسيط محتوى الصفحات الداخلية بقوة ---
================================================================ */
.page-content-section .container {
    /* 1. تحديد العرض والتوسيط الأساسي للحاوية */
    max-width: var(--main-container-width);
    margin-left: auto;
    margin-right: auto;
    
    /* 2. استخدام Flexbox لفرض توسيط المحتوى الداخلي */
    display: flex;
    flex-direction: column;
    align-items: center; /* هذا السطر هو مفتاح الحل لتوسيط كل شيء أفقيًا */

    /* 3. الخصائص الجمالية للحاوية */
    background-color: var(--white-color);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--soft-shadow);
    border: 1px solid #eef2f3;
}

/* 4. التأكد من أن الشبكات تأخذ العرض الكامل داخل الحاوية */
.page-content-section .container .pricing-grid,
.page-content-section .container .workflow-grid,
.page-content-section .container .portfolio-grid,
.page-content-section .container .contact-grid {
    width: 100%;
}
h1, h2, h3, h4, h5, h6 { font-weight: 700; color: var(--primary-color); margin-bottom: 1rem; line-height: 1.4; }
.section-title { text-align: center; margin-bottom: 4rem; }
.section-title h2 { font-size: 2.5rem; }
.section-title p { color: var(--light-text-color); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

.intro-section h2,
.section-title h2 {
    display: inline-block;
    position: relative;
    z-index: 1;
}

.intro-section h2.line-through::after,
.section-title h2.line-through::after {
    content: '';
    position: absolute;
    display: block;
    width: 100%;
    height: 11px;
    background-color: var(--accent-color);
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    z-index: -1;
    border-radius: 2px;
}

header { position: sticky; top: 0; z-index: 1000; padding: 20px 0; }
.header-container {
    max-width: var(--main-container-width);
    margin: 0 auto;
    padding: 0 20px;
    background: var(--white-color);
    border-radius: var(--border-radius);
    border: 2px solid var(--primary-color);
    box-shadow: var(--soft-shadow);
}
header nav { height: var(--header-height); display: flex; justify-content: space-between; align-items: center; }

.logo { display: flex; align-items: center; }
.logo img { height: 55px; width: auto; }

#main-nav { display: flex; list-style: none; gap: 10px; flex-wrap: wrap; }
#main-nav a { text-decoration: none; font-weight: 700; font-size: 1rem; padding: 10px 20px; border-radius: 12px; transition: all 0.3s ease; color: var(--dark-text-color); }
#main-nav a:hover { background-color: #f0f2f5; }
#main-nav a.active { background-color: var(--primary-color); color: var(--white-color); box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.mobile-menu-toggle { display: none; background: none; border: none; font-size: 1.8rem; cursor: pointer; color: var(--dark-text-color); }

main {
    padding-top: 40px;
}
.hero-slider {
    position: relative;
    max-width: var(--main-container-width);
    margin: 0 auto 25px auto;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--soft-shadow);
}
#main-slider { height: 65vh; min-height: 500px; max-height: 600px; }
.hero-slider .swiper-slide { display: flex; align-items: center; justify-content: center; text-align: center; background-size: cover; background-position: center; }
.hero-slider .swiper-slide::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.05); }
.slide-content { position: relative; z-index: 10; color: var(--white-color); max-width: 800px; padding: 0 20px; }
.slide-content h2 { font-size: clamp(2.2rem, 5vw, 3.5rem); color: var(--white-color); margin-bottom: 1rem; text-shadow: 0 2px 5px rgba(0,0,0,0.5); }
.slide-content p { font-size: clamp(1rem, 2.5vw, 1.3rem); margin-bottom: 2rem; line-height: 1.7; }
.slide-buttons { display: flex; justify-content: center; gap: 15px; }
.btn { 
    display: inline-block; 
    padding: 12px 28px; 
    border-radius: 8px; 
    text-decoration: none; 
    font-weight: 700; 
    transition: all 0.3s ease; 
    font-family: var(--font-family);
    font-size: 1.1rem;
}
.btn-primary { background-color: var(--accent-color); color: var(--white-color); border: 2px solid var(--accent-color); }
.btn-primary:hover { background-color: #d49a3f; transform: translateY(-2px); }
.btn-secondary { background-color: transparent; color: var(--white-color); border: 2px solid var(--white-color); }
.btn-secondary:hover { background-color: var(--white-color); color: var(--primary-color); }

.hero-slider .swiper-button-next,
.hero-slider .swiper-button-prev {
    color: var(--white-color);
    transition: opacity 0.3s ease;
    width: calc(var(--swiper-navigation-size) / 44 * 34);
}
.hero-slider .swiper-button-next { right: 25px; left: auto; }
.hero-slider .swiper-button-prev { left: 25px; right: auto; }

.intro-section, .featured-services, .testimonials, .tech-stack, .counters-section, .latest-posts-section, .page-content-section { padding-top: 40px; padding-bottom: 40px; }
.page-content-section { padding-top: 0; } 
.intro-section { text-align: center; }
.intro-section p { max-width: 750px; margin: 0 auto; color: var(--light-text-color); font-size: 1.1rem; }

.counters-section .container, .hero-slider, .footer-container, .header-container, .page-content-section .container {
    max-width: var(--main-container-width);
    margin-left: auto;
    margin-right: auto;
}
.counters-section .container {
    background-color: var(--primary-color);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--soft-shadow);
}
.counters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    color: var(--white-color);
    text-align: center;
}
.counter-item i { font-size: 2.5rem; margin-bottom: 10px; opacity: 0.8; }
.counter-item h3 { font-size: 2.8rem; font-weight: 700; color: var(--white-color); }
.counter-item p { font-size: 1rem; font-weight: 500; }

.featured-services .container, .testimonials .container {
    position: relative;
}
.featured-services .swiper-container, .testimonials .swiper-container {
    overflow: hidden;
}

.featured-services .swiper-slide, .testimonials .swiper-slide {
    height: auto;
    padding-bottom: 20px;
}
.service-card, .testimonial-card { 
    height: 100%;
    display: flex;
    flex-direction: column;
}
.service-card { 
    background: var(--white-color); 
    padding: 40px 30px; 
    border-radius: var(--border-radius); 
    border: 1px solid #eee; 
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
    text-align: center;
}
.service-card:hover { transform: translateY(-10px); box-shadow: var(--soft-shadow); }
.service-card i { font-size: 2.5rem; color: var(--white-color); background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); width: 70px; height: 70px; line-height: 70px; border-radius: 50%; margin: 0 auto 1.5rem auto; display: block; }
.service-card h3 { font-size: 1.4rem; }
.service-card p {
    color: var(--light-text-color);
    flex-grow: 1;
}
.service-card a { color: var(--accent-color); text-decoration: none; font-weight: 700; margin-top: 1rem; display: inline-block; }

.featured-services .swiper-button-next, .featured-services .swiper-button-prev,
.testimonials .swiper-button-next, .testimonials .swiper-button-prev {
    color: var(--primary-color);
    top: 66%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}
.featured-services .swiper-button-next:hover, .featured-services .swiper-button-prev:hover,
.testimonials .swiper-button-next:hover, .testimonials .swiper-button-prev:hover {
    background-color: var(--white-color);
    transform: translateY(-50%) scale(1.1);
}
.featured-services .swiper-button-next::after, .featured-services .swiper-button-prev::after,
.testimonials .swiper-button-next::after, .testimonials .swiper-button-prev::after {
    font-size: 1rem;
    font-weight: 800;
}
.featured-services .swiper-button-next, .testimonials .swiper-button-next { right: 20px; }
.featured-services .swiper-button-prev, .testimonials .swiper-button-prev { left: 20px; right: auto; }


.testimonial-card { background: var(--white-color); padding: 30px; border-radius: var(--border-radius); box-shadow: 0 5px 15px rgba(0,0,0,0.05); text-align: center; }
.testimonial-card .stars { color: #ffc107; font-size: 1.2rem; margin-bottom: 1.5rem; }
.testimonial-card p { font-style: italic; color: var(--light-text-color); margin-bottom: 1.5rem; flex-grow: 1; }
.testimonial-card cite { font-style: normal; color: var(--dark-text-color); font-weight: 700; }

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}
.post-card {
    background: var(--white-color);
    border-radius: var(--border-radius);
    box-shadow: var(--soft-shadow);
    overflow: hidden;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}
.post-card:hover { transform: translateY(-10px); }
.post-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.post-content { padding: 25px; flex-grow: 1; }
.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    gap: 10px;
}
.post-category {
    background-color: var(--accent-color);
    color: var(--white-color);
    padding: 5px 10px;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 5px;
    white-space: nowrap;
}
.post-date {
    font-size: 0.8rem;
    color: var(--light-text-color);
    display: flex;
    align-items: center;
    gap: 5px;
}
.post-content h3 a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.2rem;
}
.post-content p {
    color: var(--light-text-color);
    font-size: 0.95rem;
    margin-top: 10px;
}

.tech-stack { text-align: center; }
.tech-stack h2 { color: var(--light-text-color); }
.tech-logos { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 50px; }
.tech-logos img { height: 50px; max-width: 120px; object-fit: contain; filter: grayscale(100%); opacity: 0.7; transition: all 0.3s ease; }
.tech-logos img:hover { filter: grayscale(0%); opacity: 1; }

footer { padding: 40px 0; }
.footer-container {
    padding: 0 30px; 
    background: var(--white-color); 
    border-radius: var(--border-radius); 
    border: 2px solid var(--primary-color); 
    box-shadow: var(--soft-shadow); 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    height: var(--header-height); 
}
.copyright { font-size: 0.95rem; color: var(--primary-color); font-weight: 500; }
.social-icons { display: flex; gap: 15px; }
.social-icons a { color: var(--primary-color); font-size: 1.4rem; transition: color 0.3s ease, transform 0.3s ease; }
.social-icons a:hover { color: var(--accent-color); transform: scale(1.1); }

.fade-in-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

#back-to-top-btn, #whatsapp-btn {
    position: fixed;
    bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 998;
    transition: all 0.3s ease;
    color: var(--white-color);
}
#back-to-top-btn {
    right: 25px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    background-color: var(--primary-color);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}
#back-to-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
#back-to-top-btn:hover {
    background-color: var(--dark-text-color);
    transform: scale(1.1);
}
#whatsapp-btn {
    left: 25px;
    background-color: #25D366;
    padding: 0 20px 0 15px;
    height: 50px;
    border-radius: 25px;
    gap: 10px;
}
#whatsapp-btn i { font-size: 1.8rem; }
#whatsapp-btn span { font-size: 1rem; font-weight: 700; }
#whatsapp-btn:hover {
    transform: scale(1.05);
    background-color: #128C7E;
}


/* ================================================================
    --- تعديل الإشعارات المنبثقة ---
================================================================ */

#notification-container {
    position: fixed;
    bottom: 90px;
    left: 25px;
    z-index: 1000;
    width: 320px;
    max-width: calc(100% - 50px);
}

.notification {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--white-color);
    border-radius: 12px;
    border: 1px solid #eee;
    box-shadow: var(--soft-shadow);
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.5s ease-in-out;
}

.notification.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.notification .popup-icon i {
    font-size: 1.8rem;
    color: var(--accent-color);
}

.notification .popup-content {
    line-height: 1.4;
    padding-left: 15px;
}

.notification .popup-content .main-text {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--dark-text-color);
    margin: 0;
}

.notification .popup-content .sub-text {
    font-size: 0.8rem;
    color: var(--light-text-color);
    margin: 0;
}

.notification .notification-close-btn {
    position: absolute;
    top: 5px;
    left: 8px;
    background: transparent;
    border: none;
    font-size: 22px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
    transition: color 0.2s ease;
}

.notification .notification-close-btn:hover {
    color: #333;
}
/* كلاس عام لجعل أي صورة متجاوبة بالقوة */
.img-responsive {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important; /* لضمان تجاوز أي قيود أخرى */
    display: block !important;
}
/* ======== أنماط صفحة حلول AI ======== */

.filter-controls {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.filter-btn {
    background-color: #f0f2f5;
    color: var(--dark-text-color);
    border: none;
    padding: 10px 25px;
    border-radius: 20px;
    font-family: var(--font-family);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background-color: #d8dde2;
}

.filter-btn.active {
    background-color: var(--primary-color);
    color: var(--white-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

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

.workflow-card {
    background: var(--white-color);
    border: 1px solid #eef2f3;
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

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

.workflow-card i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.workflow-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    flex-grow: 1;
}

.workflow-card p {
    font-size: 0.95rem;
    color: var(--light-text-color);
    margin-bottom: 25px;
    min-height: 55px;
    flex-grow: 1;
}
/* ======== أنماط صفحة من أعمالنا ======== */

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

.portfolio-card {
    background: var(--white-color);
    border: 1px solid #eef2f3;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

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

.portfolio-card .card-image {
    background-color: #f8f9fa;
    padding: 30px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-card .card-image img {
    max-width: 80%;
    max-height: 120px;
    object-fit: contain;
}

.portfolio-card .card-content {
    padding: 25px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.portfolio-card h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--dark-text-color);
}
/* ======== أنماط صفحة المدونة (قيد الإنشاء) ======== */

.coming-soon-placeholder {
    text-align: center;
    padding: 80px 40px;
    min-height: 40vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.coming-soon-placeholder i {
    font-size: 4rem;
    color: var(--accent-color);
    margin-bottom: 25px;
}
.coming-soon-placeholder p {
    font-size: 1.2rem;
    color: var(--light-text-color);
    max-width: 600px;
    margin: 1rem auto 0 auto;
}
/* ======== أنماط صفحة اتصل بنا ======== */

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}
.contact-info, .contact-form {
    background-color: var(--white-color);
    padding: 30px;
    border-radius: var(--border-radius);
    border: 1px solid #eef2f3;
}
.contact-info h3, .contact-form h3 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f2f5;
}
.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
}
.info-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-top: 5px;
}
.info-item h4 {
    font-size: 1rem;
    color: var(--dark-text-color);
    margin-bottom: 2px;
}
.info-item p {
    font-size: 0.95rem;
    color: var(--light-text-color);
    margin: 0;
}
.map-container {
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-top: 30px;
}
.map-container iframe {
    vertical-align: middle;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--dark-text-color);
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-family: var(--font-family);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}
.contact-form .btn {
    width: 100%;
}

.status-message {
    text-align: center;
    padding: 80px 40px;
    min-height: 40vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.status-message i {
    font-size: 4rem;
    margin-bottom: 25px;
}
.status-message i.success { color: #28a745; }
.status-message i.error { color: #dc3545; }
.status-message p { 
    font-size: 1.2rem;
    color: var(--light-text-color);
    max-width: 600px;
    margin: 0 auto 30px auto;
}
/* ================================================================
    --- [إصلاح نهائي] ضبط عرض العناصر داخل الحاوية المرنة ---
================================================================ */

/* هذه القاعدة تجبر كل الحاويات الداخلية الرئيسية (مسار الصفحات، 
  أزرار الفلترة، شبكات العرض) على أخذ العرض الكامل للحاوية الأم، 
  مما يحل مشكلة التقلص والتصميم المتكسر.
*/
/* [إصلاح نهائي] ضبط عرض العناصر داخل الحاوية المرنة */
.page-content-section .container > .breadcrumb,
.page-content-section .container > .tabs-controls,
.page-content-section .container > .tabs-content, /* <== السطر الجديد الذي تمت إضافته */
.page-content-section .container > .pricing-grid,
.page-content-section .container > .workflow-grid,
.page-content-section .container > .portfolio-grid,
.page-content-section .container > .contact-grid,
.page-content-section .container > .values-section,
.page-content-section .container > .shared-features-section,
.page-content-section .container > .final-cta {
    width: 100%;
}
@media (max-width: 1250px) {
    .header-container, .footer-container, .hero-slider, .page-content-section .container, .counters-section .container { 
        margin-left: 20px;
        margin-right: 20px;
        max-width: calc(100% - 40px);
    }
}

@media (max-width: 992px) {
    header { padding: 10px 0; }
    .header-container {
        padding: 0 15px;
    }
    
    #main-nav {
        display: flex; flex-direction: column; justify-content: center; align-items: center;
        gap: 30px;
        background-color: var(--primary-color);
        position: fixed; top: 0; right: -100%;
        width: 100%; height: 100vh;
        transition: right 0.5s ease-in-out;
        z-index: 1001;
    }
    #main-nav.is-open { right: 0; }
    #main-nav a, #main-nav a.active { color: var(--white-color) !important; background: none !important; box-shadow: none !important; font-size: 1.5rem; }
    #main-nav a.active {
        background-color: var(--white-color) !important;
        color: var(--primary-color) !important;
    }
    .mobile-menu-toggle {
        display: block;
        z-index: 1002;
    }
    body.mobile-menu-open .mobile-menu-toggle {
        color: var(--white-color);
    }
}


/* ================================================================
    --- أنماط الصفحات الداخلية (مثل نبذة عنا) ---
================================================================ */


.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    
    /* -- الإضافات الجديدة للخلفية -- */
    background-color: #f8f9fa; /* لون خلفية رمادي فاتح */
    padding: 12px 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}
.breadcrumb a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s;
}
.breadcrumb a:hover {
    color: var(--primary-color);
}
.breadcrumb i {
    font-size: 0.7rem;
    color: var(--light-text-color);
}
.breadcrumb span {
    color: var(--dark-text-color);
    font-weight: 500;
}

.page-title {
    font-size: 2.8rem;
    margin-bottom: 2rem;
    text-align: center;
}

.page-main-image {
    width: 100%;
    height: 350px; /* ارتفاع مناسب للديسكتوب */
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 2.5rem;
}

.intro-paragraph {
    text-align: center;
    font-size: 1.2rem;
    color: var(--dark-text-color);
    max-width: 800px;
    margin: 0 auto 4rem auto;
    line-height: 1.9;
}

.two-column-section {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 4rem;
}
.two-column-section .column-text {
    flex: 1;
}
.two-column-section .column-image {
    flex: 1;
    max-width: 45%;
}
.two-column-section .column-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--soft-shadow);
}

.values-section {
    text-align: center;
    margin-bottom: 4rem;
}
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 2rem;
}
.value-item {
    background-color: var(--body-bg-color);
    padding: 30px;
    border-radius: var(--border-radius);
    border: 1px solid #eee;
}
.value-item i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}
.value-item h3 {
    font-size: 1.3rem;
}

.final-cta {
    text-align: center;
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 40px;
    border-radius: var(--border-radius);
}
.final-cta h2 {
    color: var(--white-color);
    font-size: 2rem;
}
.final-cta p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}
.final-cta .btn-primary {
    transform: scale(1.1);
}
/* ======== أنماط صفحة الباقات ======== */

.page-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--light-text-color);
    max-width: 700px;
    margin: -20px auto 40px auto;
}

.tabs-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    background-color: #e9ecef;
    padding: 10px;
    border-radius: 25px;
    max-width: 500px;
    margin: 0 auto 40px auto;
}

.tab-btn {
    flex: 1;
    background-color: transparent;
    color: var(--dark-text-color);
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-family: var(--font-family);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tab-btn:hover {
    background-color: #d8dde2;
}

.tab-btn.active {
    background-color: var(--primary-color);
    color: var(--white-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

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

.pricing-card {
    background: var(--white-color);
    border: 2px solid #eef2f3;
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card.popular {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.price span {
    font-size: 1.2rem;
    font-weight: 500;
}

.features-list {
    list-style: none;
    text-align: right;
    margin-bottom: 30px;
    flex-grow: 1; /* For alignment */
}

.features-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f2f5;
}

.features-list li i {
    margin-left: 10px;
}

.features-list li i.fa-check {
    color: #28a745;
}

.features-list li i.fa-times {
    color: #dc3545;
}

.btn.btn-secondary-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    width: 100%;
    margin-top: auto; /* For alignment */
}

.btn.btn-secondary-outline:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}
.pricing-card .btn.btn-primary {
    width: 100%;
    margin-top: auto; /* For alignment */
}


.shared-features-section {
    background-color: #f8f9fa;
    padding: 50px;
    margin-top: 40px;
    border-radius: var(--border-radius);
    text-align: center;
}
/* الوضع الطبيعي في الديسكتوب: شبكة */
.shared-features-section .features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

/* تخصيص نسخة الموبايل لتوسيط العناصر */
@media (max-width: 768px) {
  .shared-features-section .features-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
  }

  .feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 280px;
    width: 100%;
  }

  .feature-item i,
  .feature-item h3,
  .feature-item p {
    text-align: center;
    width: 100%;
  }
}



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

.feature-item i {
    color: var(--accent-color);
    margin-bottom: 15px;
}

.feature-item h3 {
    font-size: 1.2rem;
}

.feature-item p {
    color: var(--light-text-color);
    font-size: 0.95rem;
}

/* ================================================================
    --- [إصلاح جديد] توسيط صفحة اتصل بنا في الموبايل ---
================================================================ */

@media (max-width: 768px) {
    main { padding-top: 20px; }
    
    /* ===== [إصلاح نهائي] تعديل أبعاد السلايدر الرئيسي في الموبايل ===== */
    #main-slider {
        height: auto;
        min-height: auto;
        aspect-ratio: 16 / 10;
    }

    .hero-slider .swiper-slide {
        background-size: cover;
    }

    .slide-content {
    padding: 15px 15px; /* تقليل الهوامش أكثر */
    max-width: 95%;
}

.slide-content h1 {
    font-size: 1.3rem; /* تصغير إضافي للعنوان الرئيسي */
    line-height: 1.3;
    margin-bottom: 0.6rem;
}

.slide-content p {
    font-size: 0.85rem; /* تقليل حجم النص الفرعي */
    margin-bottom: 1rem;
}

.slide-buttons .btn {
    padding: 5px 12px; /* تقليل سماكة الأزرار */
    font-size: 0.75rem;
    border-radius: 6px;
}
.hero-slider .swiper-button-next,
.hero-slider .swiper-button-prev {
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
    background-color: rgba(255, 255, 255, 0.7); /* خلفية خفيفة */
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    top: 75%;
    transform: translateY(-50%);
}

.hero-slider .swiper-button-next::after,
.hero-slider .swiper-button-prev::after {
    font-size: 0.8rem !important;
    font-weight: bold;
}

    
    .footer-container { 
        flex-direction: column; 
        height: auto; 
        padding: 20px; 
        gap: 15px; 
    }
    
    #back-to-top-btn, #whatsapp-btn {
        width: auto;
        height: 45px;
        bottom: 20px;
    }
    
    #back-to-top-btn { 
        right: 20px;
        width: 45px;
    }
    
    #whatsapp-btn { 
        left: 20px;
        padding: 0 15px;
        gap: 8px;
    }
    
    #whatsapp-btn i { font-size: 1.5rem; }
    
    #whatsapp-btn span {
        font-size: 0.8rem;
    }
    
    #notification-container {
        left: 20px;
        right: auto;
        bottom: 80px;
        max-width: calc(100% - 40px);
    }

    /* ===== [بداية الإصلاحات للصفحات الداخلية] ===== */
    .page-content-section .container { 
        padding: 20px; 
    }
    
    .page-title { 
        font-size: 1.5rem !important; 
    }

    .page-main-image {
        height: 220px;
        object-fit: cover;
    }

    .two-column-section {
        flex-direction: column-reverse;
    }

    .two-column-section .column-text,
    .two-column-section .column-image {
        width: 100%;
        max-width: 100%; /* هذا هو السطر الحاسم الذي يحل المشكلة */
    }
    
    /* ===== [إصلاح جديد] توسيط صفحة اتصل بنا في الموبايل ===== */
    
    /* تحويل contact-grid إلى عمود واحد وتوسيطه */
    .contact-grid {
        grid-template-columns: 1fr !important; /* عمود واحد فقط */
        gap: 30px;
        justify-items: center; /* توسيط العناصر أفقياً */
        max-width: 500px; /* تحديد عرض أقصى للشبكة */
        margin: 0 auto; /* توسيط الشبكة نفسها */
    }
    
    /* التأكد من أن كل قسم يأخذ العرض الكامل المتاح */
    .contact-info, 
    .contact-form {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }
    
    /* تحسين عرض النموذج في الموبايل */
    .form-group input,
    .form-group textarea {
        font-size: 16px; /* منع التكبير التلقائي في iOS */
    }
    
    /* تحسين عرض الخريطة في الموبايل */
    .map-container iframe {
        height: 200px;
    }
    
    /* ===== [نهاية إصلاح صفحة اتصل بنا] ===== */
    /* ===== [نهاية الإصلاحات للصفحات الداخلية] ===== */
}

/* ===== [إصلاح نهائي] صور صفحة "نبذة عنا" في الموبايل ===== */
@media (max-width: 768px) {
    /* الصورة الرئيسية: فرض نسبة عرض إلى ارتفاع أفقية */
    .page-main-image {
        height: auto !important; /* إلغاء أي ارتفاع ثابت سابق */
        aspect-ratio: 16 / 9 !important; /* فرض شكل مستطيل أفقي واضح */
        object-fit: cover;
    }

    /* الصورة الثانية (داخل القسم ذو العمودين) */
    .two-column-section .column-image {
        width: 100% !important; /* فرض عرض كامل على الحاوية */
        max-width: 100% !important; /* التأكد من تجاوز أي قيود سابقة */
        height: auto !important; /* السماح للارتفاع بأن يكون تلقائيًا */
    }
    
    .feature-item {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }
}

@media (max-width: 768px) {
  .features-grid {
    justify-items: center;
  }

  .feature-item {
    display: flex !important;
    flex-direction: column;
    align-items: center !important;
    justify-content: center;
    text-align: center !important;
    width: 100%;
    max-width: 280px; /* تحديد عرض موحد لمحتوى العنصر */
  }

  .feature-item i,
  .feature-item h3,
  .feature-item p {
    text-align: center;
    width: 100%;
  }
  .pricing-grid {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .pricing-card {
    width: 100%;
    max-width: 320px;
  }
  .workflow-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .workflow-card {
    width: 100%;
    max-width: 320px;
  }

  .portfolio-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .portfolio-grid {
    width: 100%;
    max-width: 320px;
  }
}
