/*
Theme Name: Schaduf GS Child
Theme URI: http://example.com
Description: Child Theme of Hello Elementor for Schaduf GS
Author: Aya Gamal
Author URI: http://example.com
Template: hello-elementor
Version: 1.0
Text Domain: schadufgs
*/

/* Test if Child Theme CSS is working */
/* Bottom short gradient overlay */
.carousel-overlay .swiper {
    position: relative;
}

.carousel-overlay .swiper::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.55) 20%,
        rgba(0, 0, 0, 0.25) 35%,
        rgba(0, 0, 0, 0.00) 45%
    );
    z-index: 3;
    pointer-events: none;
}
.carousel-overlay .swiper {
    position: relative;
}


/* ===============================
   Hover underline
================================ */
.gallery-home .elementor-gallery-item__title,
.gallery-home figcaption {
    position: relative;
    display: inline-block;
}

/* الخط نفسه */
.gallery-home .elementor-gallery-item__title::after,
.gallery-home figcaption::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 1px;               /* رفيع */
    background-color: #ffffff;
    transition: width 0.3s ease;
}

/* يظهر عند الهوفر */
.gallery-home .elementor-gallery-item:hover 
.elementor-gallery-item__title::after,
.gallery-home .elementor-gallery-item:hover 
figcaption::after {
    width: 250px;               /* طول الخط */
}

/*الهيدر يتغير لونه لتحت*/
/* smooth transition */
.header {
    background-color: transparent;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    z-index: 1000; /* keep it on top */
}

/* عند السكروول: خلفية أبيض + ظل */
.header.elementor-sticky--effects {
    background-color: #fff !important; /* الخلفية أبيض */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important; /* ظل خفيف */
}

/* روابط الهيدر عند السكروول */
.header.elementor-sticky--effects .custom-menu-class a {
    color: #000 !important; /* لون النص أسود */
}

/* روابط المينو الفرعي عند السكروول */
.header.elementor-sticky--effects #menu-main-menu .sub-menu a {
    color: #333 !important; /* لون رمادي داكن */
}


/* =====================================================
   Media Carousel – Caption centered & always visible
   Light overlay normal / darker overlay on hover
===================================================== */

/* الأساس - Overlay */
.caption-hover-overlay .elementor-carousel-image-overlay {
    opacity: 1 !important;
    visibility: visible !important;

    display: flex;
    align-items: center;       /* عمودي */
    justify-content: center;   /* أفقي */

    text-align: center;
    padding: 20px;

    /* Overlay في الوضع العادي */
    background: rgba(0, 0, 0, 0.35) !important;

    transition: background 0.4s ease;
}

/* منع Elementor من إخفاء الكابشن */
.caption-hover-overlay .swiper-slide:not(:hover)
.elementor-carousel-image-overlay {
    opacity: 1 !important;
}

/* عند الهوفر – Overlay أغمق */
.caption-hover-overlay .swiper-slide:hover
.elementor-carousel-image-overlay {
    background: rgba(0, 0, 0, 0.55) !important;
}

/* النص داخل Overlay */
.caption-hover-overlay .elementor-carousel-image-overlay * {
    margin: 0;
    color: #ffffff;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
    position: relative;       /* ضروري للخط */
    text-decoration: none;
    transition: color 0.3s ease;
}

/* الخط المخفي افتراضيًا */
.caption-hover-overlay .elementor-carousel-image-overlay *::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -6px;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background-color: #ffffff;
    transition: width 0.3s ease;
}

/* عند hover على السلايد يظهر الخط */
.caption-hover-overlay .swiper-slide:hover
.elementor-carousel-image-overlay *::after {
    width: 100%;
}

/* =====================================================
   Continuous Carousel Style
===================================================== */

/* =====================================================
   Image Marquee – Continuous Horizontal Scroll
===================================================== */

.image-marquee {
    overflow: hidden;
    width: 100%;
}

.image-marquee-track {
    display: flex;
    width: max-content;
    animation: marquee-scroll 80s linear infinite;
}

.image-marquee-track img {
    height: 100px;        /* تحكمي في ارتفاع الصور */
    width: 100px;
    margin-right: 40px;  /* مسافة بين الصور */
    flex-shrink: 0;
    object-fit: contain;
}

/* الحركة */
@keyframes marquee-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/*جاليري لوجو تكنولوجيا */

.clients-logos {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* نفس عدد الأعمدة */
  gap: 30px 40px;
  max-width: 1250px;   /* يتحكم في عرض الجاليري */
  margin: 0 auto;     /* ده اللي بيخليه في النص */
  align-items: center;
  justify-items: center;
}

.clients-logos img {
  max-width: 160px;
  max-height: 80px;
  object-fit: contain;
  filter: grayscale(100%) brightness(0.50);
  opacity: 0.85;
}
@media (max-width: 1024px) {
  .clients-logos {
    grid-template-columns: repeat(4, 1fr);
  }
}


@media (max-width: 768px) {
  .clients-logos {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }
}

@media (max-width: 480px) {
  .clients-logos {
    grid-template-columns: repeat(2, 1fr);
  }
}

/*جاليريي نولدج*/
/*جاليري لوجو تكنولوجيا */

.clients-logos1 {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* نفس عدد الأعمدة */
  gap: 30px 40px;
  max-width: 1250px;   /* يتحكم في عرض الجاليري */
  margin: 0 auto;     /* ده اللي بيخليه في النص */
  align-items: center;
  justify-items: center;
}

.clients-logos1 img {
  max-width: 160px;
  max-height: 80px;
  object-fit: contain;
  filter: grayscale(100%) brightness(0.50);
  opacity: 0.85;
}
@media (max-width: 1024px) {
  .clients-logos1 {
    grid-template-columns: repeat(4, 1fr);
  }
}


@media (max-width: 768px) {
  .clients-logos1 {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }
}

@media (max-width: 480px) {
  .clients-logos1 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/*جاليريي ديفلوبمنت*/
/*جاليري لوجو ديفلوبمنت */

.clients-logos2 {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* نفس عدد الأعمدة */
  gap: 30px 40px;
  max-width: 1250px;   /* يتحكم في عرض الجاليري */
  margin: 0 auto;     /* ده اللي بيخليه في النص */
  align-items: center;
  justify-items: center;
}

.clients-logos2 img {
  max-width: 160px;
  max-height: 80px;
  object-fit: contain;
  filter: grayscale(100%) brightness(0.50);
  opacity: 0.85;
}
@media (max-width: 1024px) {
  .clients-logos2 {
    grid-template-columns: repeat(4, 1fr);
  }
}


@media (max-width: 768px) {
  .clients-logos2 {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }
}

@media (max-width: 480px) {
  .clients-logos2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

