/* استيراد خط عربي (مثال: Cairo) */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;700&display=swap');

/* الألوان الأساسية:
   الأحمر: var(--primaryColor)
   الخط: #333 
*/

.pest-control-section {
    position: relative;
    /* المسافة العلوية والسفلية */
    padding: 80px 0;
    margin-top: 50px;
    font-family: 'Cairo', sans-serif;
    background-color: var(--white);
    overflow: hidden;
    /* لإخفاء النقاط التي تخرج عن الحدود */
}

.pest-control-section .container {
    /* تصميم أساسي لـ Grid بصفين: المحتوى والصورة */
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    /* المحتوى (Text) 1fr مقابل الصورة 1.1fr (لتبدو الصورة أعرض قليلاً) */
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    align-items: center;
    /* لمحاذاة العناصر عمودياً في الوسط */
}

/* ----------------------------------
   1. تنسيق الخطوط والألوان والمسافات
   ---------------------------------- */

.text-content {
    direction: rtl;
    /* ضمان الاتجاه من اليمين لليسار */
}

.tag {
    background-color: var(--primaryColor);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 20px;
}

.pest-control-section h1 {
    color: #333;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 25px;
    /* تنسيق خاص لكلمة "الحشرات" لتميزها بلون آخر إذا لزم الأمر */
    /* h1 span { color: var(--primaryColor); } */
}

.text-content p {
    color: #555;
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 15px;
}

.text-content .first-intro-text {
    font-size: 16px;
    font-weight: 800;
    color: var(--primaryColor);
    margin-bottom: 30px;
}

.text-content .second-intro-text {
    font-size: 16px;
    color: #777;
    margin-bottom: 30px;
}

.contact-prompt {
    font-weight: 700;
    font-size: 17px;
    color: #333;
    margin-top: 30px;
    margin-bottom: 20px;
}


/* ----------------------------------
   4. شكل الـ li (علامة الصح الحمراء)
   ---------------------------------- */

.services-list {
    list-style: none;
    /* إزالة التنقيط الافتراضي */
    padding: 0;
    margin-top: 20px;
}

.services-list li {
    position: relative;
    color: #555;
    font-size: 17px;
    padding-right: 30px;
    margin-bottom: 15px;
    line-height: 1.6;
}


.services-list li i {
    color: white;
    background-color: var(--primaryColor);
    border-color: var(--primaryColor);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    align-content: center;
    text-align: center;
    font-weight: 500;
    font-size: 15px;
    position: relative;
    right: 0;
    top: 0;
}



.button-container {
    width: 100%;

    margin-top: 20px;
}

.cta-button {

    display: inline-block;
    background-color: var(--primaryColor);
    color: var(--white);
    text-align: center;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 8px;

    font-size: 18px;
    font-weight: 700;

    width: 100%;
    max-width: 250px;

    box-shadow: 0 4px 10px var(--primaryColor);

    transition: background-color 0.3s;
    line-height: 1.2;
}

.cta-button:hover {
    background-color: var(--primaryColor);

}

.cta-button .phone-number {
    display: block;

    font-size: 14px;
    font-weight: 400;
    margin-top: 5px;
}

.image-content img {

    width: 100%;

    aspect-ratio: 3 / 4;
    object-fit: cover;

    border-radius: 10px;

    display: block;
}


.pest-control-section .dots {
    position: absolute;
    left: 5%;
    bottom: 20px;
    display: grid;
    grid-template-columns: repeat(8, 15px);
    grid-template-rows: repeat(4, 15px);
    gap: 5px;
    /* المسافة بين النقاط */
}

.pest-control-section .dots span {
    width: 6px;
    height: 6px;
    background: var(--helperColor);
    border-radius: 50%;
    display: inline-block;
}

@media (max-width: 992px) {
    .pest-control-section .container {

        grid-template-columns: 1fr;
        gap: 30px;
    }

    .text-content {
        order: 2;

    }

    .image-content {
        order: 1;

    }

    .image-content img {

        aspect-ratio: 16 / 9;

    }

   .pest-control-section h1 {
        font-size: 32px;
    }
}


@media (max-width: 576px) {
    .pest-control-section {
        padding: 50px 0;
    }

    .pest-control-section .container {
        padding: 0 15px;
    }

    .pest-control-section h1 {
        font-size: 28px;
    }

    .text-content p,
    .services-list li {
        font-size: 15px;
    }

    .cta-button {
        padding: 12px 20px;
        font-size: 16px;
        max-width: 100%;
    }

    .image-content img {

        aspect-ratio: 4 / 3;
    }

    .moving-dots-container {

        display: none;
    }
}

/* *************************** */

.temp3-about-us-container-imgs {
    width: 100%;
    border-radius: 50%;
    position: relative;
}

/* --------------------------- */
.temp3-about-us-common-img-style {
    height: auto;
    aspect-ratio: 1/1;
    border: 10px solid var(--white);
    border-radius: 50%;
}

/* --------------------------- */

.temp3-about-us-container-imgs img:nth-child(1) {
    width: 90%;
    box-shadow: 0 0 40px rgba(82, 85, 90, 0.1);
}

/* --------------------------- */

.temp3-about-us-container-imgs img:nth-child(2) {
    position: absolute;
    bottom: 25%;
    right: -60px;
    background-color: var(--lightSecondaryColor);

    width: 40%;
}

.temp3-about-us-container-imgs img:nth-child(3) {
    position: absolute;
    bottom: 5%;
    left: -10px;
    background-color: var(--lightSecondaryColor);
    width: 40%;
}

.temp3-about-us-container-imgs img:nth-child(4) {
    position: absolute;
    top: 0%;
    left: 0%;
    background-color: var(--lightSecondaryColor);

    width: 40%;
}



/* @@@@@@@@@@@@@@@@@@ */
@media (max-width:320px) {
   

    .temp3-about-us-container-imgs img:nth-child(2) {
        right: 0px;
        bottom: 0%;
        width: 40%;
    }

    .temp3-about-us-container-imgs img:nth-child(3) {
        position: absolute;
        bottom: 0%;
        left: 0px;

        width: 40%;
    }

    .temp3-about-us-container-imgs img:nth-child(4) {
        width: 40%;
    }
}

/* @@@@@@@@@@@@@@@@@@@@@@@@@@ */
@media (min-width:321px) and (max-width:425px) {
   
    .temp3-about-us-right {
        width: 98%;
    }

    .temp3-about-us-container-imgs img:nth-child(2) {
        right: 0px;
        bottom: 0%;
        width: 40%;
    }

    .temp3-about-us-container-imgs img:nth-child(3) {
        position: absolute;
        bottom: 0%;
        left: 0px;

        width: 40%;
    }

    .temp3-about-us-container-imgs img:nth-child(4) {
        width: 40%;
    }
}

/* @@@@@@@@@@@@@@@@@@@@@@@@@@ */
@media (min-width:426px) and (max-width:768px) {
   

    .temp3-about-us-right {
        width: 80%;
    }

    .temp3-about-us-container-imgs img:nth-child(2) {
        right: -60px;
        bottom: 25%;
        width: 40%;
    }

    .temp3-about-us-container-imgs img:nth-child(3) {
        position: absolute;
        bottom: 0%;
        left: -10px;

        width: 40%;
    }

    .temp3-about-us-container-imgs img:nth-child(4) {
        width: 40%;
    }
}

/* @@@@@@@@@@@@@@@@ */
@media (min-width:769px) and (max-width:1440px) {
   

    .temp3-about-us-container-imgs img:nth-child(3) {
        width: 40%;
        left: 0px;
    }
}
/* ***************** */
.video-gallery {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px auto 100px auto;
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    height: 500px;
}

.video-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.5s ease;
}

.video-item {
    width: 150px;
    aspect-ratio: 1/1;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--white);
    cursor: pointer;
}


.video-item.active {
    width: 300px;
    height: 300px;
    border: 8px solid var(--primaryColor);
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}


.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background-color: rgba(0,0,0,0.5);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.play-icon::before {
    content: "\25B6";
    color: white;
    font-size: 20px;
}
/* .video-gallery {
    overflow-x: hidden; 
} */

/* Responsive */
@media (max-width:768px){
    .video-item.active {
        width: 300px;
        height: 300px;
    }

    .video-item {
        width: 100px;
        height: 100px;

    }
    .video-container {
        height:450px; 
    }
    
}
