/* ==================== Global Styles & Variables ==================== */
:root {
    --primary-color: #4c2c69;
    --light-purple: #c4aada;
    --accent-purple: #a46ed1;
    --dark-grey: #333;
    --light-grey: #f4f4f4;
    --white-color: #ffffff;
    --card-bg: #ececec;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {
    font-family: 'Cairo', sans-serif;
    /* ✅ التغيير الرئيسي: من rtl إلى ltr */
    direction: ltr;
    background-color: var(--white-color);
    color: var(--dark-grey);
}

/* ==================== Container (Global) ==================== */
.container {
    max-width: 1400px; 
    margin: 0 auto;
    padding-left: 0;
    padding-right: 0;
}

@media (max-width: 1440px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

h1, h2, h3, h4 {
    font-weight: 900;
}

section {
    padding: 80px 0;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    border: none;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #3b2152;
}

/* ==================== Header ==================== */
header {
    background-color: var(--primary-color);
    height: 80px;
    color: var(--white-color);
    padding: 10px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-container {
    /* Flexbox flips automatically with direction: ltr */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img { 
    height: 50px;
}

.nav-right-group {
    display: flex;
    align-items: center;
    gap: 40px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav a {
    color: var(--white-color);
    text-decoration: none;
    font-size: 16px;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s;
}

nav a:hover, nav a.active {
    border-bottom-color: var(--white-color);
}

.lang-switcher { display: flex; align-items: center; gap: 8px; }
.lang-switcher img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.lang-switcher-li {
    position: relative;
}

.lang-dropdown {
    position: absolute;
    top: 40px;
    right: 0;
    background: white;
    border: 1px solid #ccc;
    border-radius: 6px;
    width: 120px;
    display: none;
    z-index: 999;
}



.lang-dropdown li a {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: #333;
}

.lang-dropdown li a:hover {
    background: #f2f2f2;
}

.lang-switcher-li.open .lang-dropdown {
    display: block !important;
    display: block;
}

.lang-switcher {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ==================== Hero Section (Home Page) ==================== */
.hero-section {
    margin-top: 70px; 
    height: 50vh;
    background-image: url('../images/Home\ Page\ banner\ en.png'); 
    background-size: cover;
    background-position: center;
}

/* ==================== Features Collage Section (Flipping positioning) ==================== */
.features-collage-section {
    padding-top: 100px;
    padding-bottom: 100px;
    background-color: var(--white-color);
}

.features-collage-wrapper {
    position: relative;
    width: 100%;
    max-width: 950px; 
    height: 600px; 
    margin: 0 auto;
}

.feature-card {
    position: absolute;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(76, 44, 105, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease, z-index 0s 0.1s; 
}

.feature-card:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(76, 44, 105, 0.35);
}

.feature-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-parts { right: 0; top: 5%; width: 48%; height: 80%; z-index: 1; } /* كان left: 0 */
.card-team { left: 0; bottom: 10%; width: 50%; height: 65%; z-index: 1; } /* كان right: 0 */
.card-truck { top: 0; left: 50%; transform: translateX(-50%); width: 35%; height: 55%; z-index: 2; } /* مركزي، لا يتغير */
.card-flags { bottom: 0; left: 50%; transform: translateX(-50%); width: 30%; height: 45%; z-index: 2; } /* مركزي، لا يتغير */

.card-parts:hover,
.card-team:hover {
    z-index: 3;
}

/* ==================== About Section (Home Page) ==================== */
.about-container { display: flex; align-items: center; gap: 50px; }
.about-text {
    
    width: 70%;
    margin: 0 auto;
    text-align: center;
}

.about-text h2 { font-size: 3rem; margin-bottom: 20px;color: #a46ed1; }
.about-text p { font-size: 2rem; line-height: 1.8; margin-bottom: 30px; }




/* ==================== Products Section (Home Page) ==================== */
.products-section {
    background-color: #ffffff;
    text-align: center;
}

.products-section h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.products-slider {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
}

.product-card {
    background-color: var(--card-bg);
    border-radius: 15px;
    padding: 20px;
    width: 270px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

/* ==================== تنسيق سهم المنتجات (Flipping positioning) ==================== */
.product-card:last-child {
    position: relative;
    overflow: hidden; 
}

.slider-arrow {
    position: absolute;
    top: 50%;
    /* ✅ عكس left إلى right */
    right: 0; 
    transform: translateY(-50%); 
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
    z-index: 2;
}

.slider-arrow:hover {
    transform: translate(30%, -50%) scale(1.1);
    background-color: #3b2152;
}

.product-card:last-child > img,
.product-card:last-child > h3,
.product-card:last-child > .btn-details {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.product-card:last-child:hover > img,
.product-card:last-child:hover > h3,
.product-card:last-child:hover > .btn-details {
    opacity: 1;
}

.product-card h3 {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.btn-details {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s;
}

.btn-details:hover {
    background-color: #3b2152;
}

.btn-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-whatsapp i {
    
    font-size: 1.3rem;
}


/* ==================== Stats Section ==================== */
/* ==================== Partners Section Styles ==================== */

.partners-section {
    text-align: center;
    padding-top: 80px;
    padding-bottom: 80px;
}

.partners-grid {
    /* 🚀 الحل: استخدام Grid لعرض 5 أعمدة في كل صف */
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    margin-top: 50px;
    align-items: center; /* توسيط الشعارات عمودياً */
}

.partner-logo {
    /* للحفاظ على الشعارات متساوية الارتفاع والتوسيط */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px; 
    border-radius: 5px;
    background-color: var(--light-grey); /* لون خلفية خفيف للشعار */
    height: 120px; /* ارتفاع ثابت للقسم */
    overflow: hidden;
}

.partner-logo img {
    width: 90%;
    max-height: 100%;
    object-fit: contain; 
    opacity: 0.75; 
    transition: opacity 0.3s ease;
}

.partner-logo img:hover {
    opacity: 1;
    scale: 1.3; 
}

/* ==================== Media Queries for Tablets and Mobile ==================== */

@media (max-width: 992px) {
    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .partners-grid {
        /* عرض عمودين في الصف على الموبايل */
        grid-template-columns: repeat(2, 1fr);
    }
    .partner-logo {
        height: 100px;
    }
}


/* ==================== Contact Section (Home Page Fix) ==================== */
.contact-section {
    padding: 80px 0;
    text-align: center;
    background-color: var(--light-grey); 
}

.contact-section h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 40px;
}

.contact-container { 
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: flex-start;
    max-width: 1200px; 
    margin: 0 auto;
}
.contact-form-card form {
    text-align: center; 
}


.contact-form-card, .map-card {
    background-color: var(--light-purple);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-form-card form input[type="text"],
.contact-form-card form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Cairo', sans-serif;
    direction: ltr;
    background-color: #f9f9f9;
    color: var(--dark-grey); 
    
}

.contact-form-card form textarea {
    resize: vertical;
    min-height: 120px;
}

.map-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.map-placeholder {
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}

.map-placeholder iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.map-card .btn {
    width: 100%;
}
/* ==================== Footer ==================== */
footer {
    background-color: var(--primary-color);
    color: #e0e0e0;
    padding: 20px 0;
    font-size: 0.9rem;
}

.footer-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: var(--white-color);
    font-size: 1.3rem;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--light-purple);
}

/* ==================== Products Page Specific Styles ==================== */
.products-hero-section {
    margin-top: 70px; 
    height: 75vh; 
    background-image: url('../images/1.png'); 
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-overlay {
    background-color: rgba(76, 44, 105, 0.6); 
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.products-hero-section h1 {
    color: var(--white-color);
    font-size: 3rem;
    font-weight: 900;
    z-index: 10;
}

.all-products-section {
    padding: 80px 0;
    text-align: center;
    background-color: var(--light-grey);
}

.all-products-section h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--primary-color);
}

.products-grid {
    display: grid;
    grid-template-columns: 1fr; 
    gap: 30px; 
    max-width: 1200px;
    margin: 0 auto;
}

.products-grid .product-card {
    width: 100%;
    max-width: 350px; 
    margin: 0 auto;
}

/* ==================== Machine Detail Page Styles (Flipping text alignment) ==================== */
.machine-details-section {
    padding-top: 120px;
    padding-bottom: 80px;
}

.machine-header-wrapper {
    display: flex;
    justify-content: space-between; 
    align-items: center; 
    gap: 30px;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--light-grey);
}

.machine-title-group {
    text-align: left;
}

.machine-name {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin: 0;
    line-height: 1.1;
}

.machine-model {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    color: var(--dark-grey);
    margin-top: 5px;
}

.product-output-image-wrapper img {
    height: 100px;
    width: auto;
    display: block;
}

.machine-specs-text {
    /* ✅ عكس محاذاة النص */
    text-align: left;
    max-width: 950px;
    margin: 0 auto 60px auto;
}

.machine-specs-text h2 {
    font-size: 1.8rem;
    color: var(--dark-grey);
    margin-bottom: 15px;
}

.machine-specs-text p {
    font-size: 1.15rem;
    line-height: 1.9;
}

.machine-image-wrapper,
.specs-table-image {
    max-width: 1100px;
    margin: 0 auto 60px auto;
}

.main-machine-image,
.tech-specs-image {
    width: 100%;
    display: block;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.specs-table-image h2 {
    text-align: center;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.machine-contact-form {
    max-width: 700px;
    margin: 40px auto 0 auto;
}

/* ==================== Achievements Page Styles (Flipping text alignment and margins) ==================== */

.achievements-hero-section {
    margin-top: 70px; 
    height: 75vh;  
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.achievements-hero-section h1 {
    color: var(--white-color);
    font-size: 2.5rem;
    font-weight: 900;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.7); 
}

.achievements-content-section {
    padding: 80px 0;
    background-color: var(--light-grey);
}

.intro-text,
.achievements-list,
.list-heading,
.final-statement {
    max-width: 900px; 
    margin-left: auto;
    margin-right: auto;
    /* ✅ عكس محاذاة النص */
    text-align: left; 
}

.intro-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--dark-grey);
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--light-grey);
}

.list-heading {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: left; 
}

.achievements-list {
    list-style: none;
    padding: 0;
    margin-bottom: 40px;
}

.achievements-list li {
    font-size: 1.15rem;
    line-height: 2;
    padding: 8px 0;
    /* ✅ عكس محاذاة النص */
    text-align: left;
    border-bottom: 1px dashed var(--light-grey);
}

.achievements-list i {
    color: var(--accent-purple);
    margin-left: 0; 
    margin-right: 10px;
    font-size: 1.1rem;
}

.final-statement {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    padding-top: 20px;
}

.call-to-action {
    text-align: center;
    margin-top: 50px;
}



.achievements-banner {
    margin-top: 70px; 
    height: 55vh;
    background-image: url('../images/Achivement banner.png'); 
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white-color);
}
.page-banner h1 {
    font-size: 3rem;
    font-weight: 900;
}

.achievements-section {
    padding: 80px 0;
    background-color: var(--white-color);
}

.intro-text {
    text-align: center;
    max-width: 850px;
    margin: 0 auto 60px auto;
}

.intro-text h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.intro-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--dark-grey);
}

.achievements-subtitle {
    text-align: center;
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 40px;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.achievement-card {
    background-color: var(--card-bg);
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.achievement-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(76, 44, 105, 0.15);
}

.achievement-card i {
    font-size: 2.8rem;
    color: var(--accent-purple);
    margin-bottom: 15px;
}

.achievement-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--dark-grey);
    font-weight: 700;
}

/* ==================== About Us Page Styles (Flipping value list) ==================== */
.about-us-section {
    padding: 80px 0;
}
.about-banner {
    background: url('../images/about\ banner\ en.png') center/cover no-repeat; 
    height: 55vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.about-banner .banner-overlay {
    background: rgba(0, 0, 0, 0.45);
    padding: 60px 20px;
    border-radius: 10px;
}

.about-banner h1 {
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 10px;
    color: #fff;
}

.about-banner p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #f5f5f5;
}


.about-intro, .about-paragraph {
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.about-intro h2 {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-intro p, .about-paragraph p {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--dark-grey);
}

.features-block {
    text-align: center;
    margin: 60px 0;
}

.features-block h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.features-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.features-list li {
    background-color: var(--card-bg);
    padding: 25px 15px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.features-list i {
    font-size: 2.5rem;
    color: var(--accent-purple);
}

.core-values-grid {
    margin-top: 80px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.value-card {
    background-color: var(--white-color);
    border: 1px solid #e9e2f0;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(76, 44, 105, 0.07);
    /* ✅ عكس محاذاة النص */
    text-align: left;
}

.value-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.value-card p {
    line-height: 1.7;
}

.values-list {
    list-style: none;
    padding: 0;
}

.values-list li {
    position: relative;
    /* ✅ عكس الهامش الداخلي: كان padding-right (لأيقونة اليمين) */
    padding-left: 25px;
    padding-right: 0;
    margin-bottom: 10px;
    font-weight: 700;
}

.values-list li::before {
    content: '\f00c';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--accent-purple);
    position: absolute;
    /* ✅ عكس الموقع: كان right: 0 (لتثبيت الأيقونة على اليمين) */
    left: 0;
    right: auto;
    top: 2px;
}

/* ==================== Contact Us Page Styles (الهيكل النهائي) ==================== */
.contact-page-section {
    padding-top: 120px;
    padding-bottom: 80px;
}

.page-title-wrapper {
    text-align: center;
    margin-bottom: 60px;
}
.contact-banner {
    background: url('../images/contact\ banner.png') center/cover no-repeat; 
    height: 75vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.page-title-wrapper h2 {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-title-wrapper p {
    font-size: 1.1rem;
    color: var(--dark-grey);
    max-width: 600px;
    margin: 0 auto;
}

.contact-info h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 30px;
}

/* Flexbox will flip automatically, no change needed */
.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.info-item i {
    color: var(--accent-purple);
    font-size: 1.4rem;
    width: 25px;
    text-align: center;
}

.info-item a {
    color: var(--dark-grey);
    text-decoration: none;
    transition: color 0.3s;
}

.info-item a:hover {
    color: var(--primary-color);
}

.contact-form-card {
    text-align: center; 
}

.whatsapp-btn {
    display: inline-block;
    margin-top: 20px; 
}

/* ==================== Responsive Design (التجاوب) ==================== */

.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
}

@media (max-width: 768px) {
    .nav-toggle { display: block; }

    .nav-right-group { display: none; }
    .nav-right-group.nav-open { display: flex; }
    nav ul {
            transform: translateY(-120%);
            transition: transform 0.28s ease-out;
            /* خصائص شكل القائمة في الموبايل */
            position: fixed;
            top: 70px;
            left: 0;
            right: 0;
            background: var(--primary-color, #fff);
            z-index: 1000;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 10px;
            padding: 18px 10px;
        }

        /* ✅ التعديل الثاني: عند فتح الحاوية، طبّق التحويل على القائمة داخلها */
        .nav-right-group.nav-open nav ul {
            transform: translateY(0);
        }
        
        .nav-toggle.open i { transform: rotate(90deg); }
    nav ul li { width: 100%; text-align: center; }
    nav ul a { display: block; padding: 15px 0; border-bottom: none; }
    nav ul a:hover { background-color: rgba(255, 255, 255, 0.1); }
    .lang-switcher-li { padding: 15px 0; }
    
.hero-section, 
.products-hero-section, 
.achievements-banner, 
.about-banner, 
.contact-banner{
    
    margin-top: 80px; 
    
    height: calc(35vh - 65px);

    background-position: center center; 
    background-size: cover; 
    background-repeat: no-repeat;
}
    
    .about-container { flex-direction: column; }
    .contact-container { grid-template-columns: 1fr; gap: 30px; } 
    .stats-items { flex-direction: column; gap: 30px; }
    .footer-container { flex-direction: column; gap: 15px; }

    .features-collage-wrapper {
        position: static;
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }
    .feature-card {
        position: static;
        width: 90%;
        height: auto;
        transform: none !important;
        z-index: auto !important;
    }

    /* تعديلات صفحة الماكينة */
    .machine-header-wrapper {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .machine-title-group { text-align: center; margin-bottom: 20px; }
    .machine-name { font-size: 2.2rem; }
    .machine-model { font-size: 1.5rem; margin-top: 5px; }
    .machine-specs-text { text-align: center; }
}

@media (min-width: 577px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-grid .product-card {
        max-width: none; 
        margin: 0;
    }
}

@media (min-width: 993px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
.swiper-collage-section {
  position: relative;

  width: 100%;
  padding: 120px 0; 
  display: flex;
  justify-content: center;
  align-items: center;

  overflow: hidden; 
}


.swiper-wrapper {
  display: flex !important; 
  flex-direction: row !important;
}




.swiper {
  width: 100%;
  padding-top: 50px;
  display: flex;
  padding-bottom: 50px;
}

.swiper-slide {
  width: 280px !important;
  height: 350px;
  flex-shrink: 0 !important;
  box-shadow: none; 
  filter: none; 
  padding-left: 5px;
  border-radius: 5px; 
  background-size: cover; 
  background-position: center;
  background-repeat: no-repeat;
  display: flex; 
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
@media (max-width: 768px) {

    .swiper-slide {
        width: 200px !important;  
        height: 250px !important; 
    }}
.swiper-slide-active {
    transform: scale(1.3); 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); 
}

.swiper-pagination-bullet,
.swiper-pagination-bullet-active {
  background:#3b2152; 
  opacity: 1;
}
.video-embed-wrapper {
    text-align: center; 
    padding: 40px 0; 
}


.responsive-video-container {
    max-width: 400px; 
    margin: 0 auto; 
    position: relative;
    padding-bottom: 178.27%; 
    height: 0;
    overflow: hidden;
    box-sizing: border-box; 
}

@media (min-width: 768px) {
    .responsive-video-container {
        padding-bottom: 0 !important;         
        height: 476px !important;         
        max-width: 267px; 
    }
}


@media (max-width: 767px) {
    .responsive-video-container {
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

.responsive-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
/* ==================== Testimonials Section Styles ==================== */

.testimonials-section {
    padding: 80px 0;
    text-align: center;
    background-color: var(--light-grey); 
}

.testimonial-slider-container {
    max-width: 700px; 
    margin: 50px auto 0 auto;
    background-color: var(--white-color);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.stars-rating {
    color: #ffc107; 
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.testimonial-message {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--dark-grey);
    margin-bottom: 25px;
    transition: opacity 0.5s ease-in-out; 
    min-height: 100px; 
    display: flex;
    justify-content: center;
    align-items: center;
}

.client-name {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1rem;
}

/* ------------------- Slider Controls (النقاط) ------------------- */
.slider-controls {
    margin-top: 30px;
}

.control-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: #ccc;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.control-dot.active {
    background-color: var(--primary-color);
}
