.hero-section {
    background: linear-gradient(135deg, #0055ff, #3399ff);
    padding-top: 190px;
    padding-bottom: 180px;
    position: relative;
    overflow: hidden;
    color: white;
}

.breadcrumb-wrapper {
  margin-bottom: 2rem;
  /* direction: rtl;
  text-align: right; */
}

.breadcrumb {
  font-weight: 600;
  background: transparent;
  padding: 0;
  margin-bottom: 0;
  display: inline-flex;
  flex-wrap: wrap;
  list-style: none;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "›";
  color: #ccc;
  margin: 0 0.5rem;
}

.icon-box {
  background-color: white;
  color: #0055ff;
  width: 135px;
  height: 140px;
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  margin: 0;
}

/* .icon-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.2);
} */

.icons-page{
  font-size: 4rem !important; 
}

.icon-box small {
  font-size: 1.3rem; 
  font-weight: 700;
  color: #0055ff;
}

.floating-content {
  margin-top: -200px;
  position: relative;
  z-index: 2;
  padding: 3rem 1.5rem;
}

.patterned-box {
  background: url('/assets/images/circuit.png');
  background-size: contain;
  background-repeat: repeat;
  border-radius: 1rem;
  padding-top: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  margin-bottom: 80px;
  position: relative;
}

.patterned-box .white-inner-box {
  background-color: #fff;
  border-radius: 1rem;
  padding: 2rem;
  position: relative;
  z-index: 2;
}

.patterned-box-news {
  background: url('/assets/images/circuit.png');
  background-size: contain;
  background-repeat: repeat;
  border-radius: 1rem;
  padding-top: 1rem;
  padding-left: 0;
  padding-right: 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  /* margin-bottom: 80px; */
  position: relative;
}

.patterned-box-news .white-inner-box-news {
  background-color: #fff;
  border-radius: 1rem;
  /* padding: 2rem; */
  position: relative;
  z-index: 2;
}

/* .mb-custom {
  margin-bottom: 500px !important;
} */

.stacked-image-container {
  position: relative;
  cursor: pointer;
  max-width: 100%;
  margin: auto;
  box-shadow: 0 40px 120px rgba(30, 100, 200, 0.4);
  border-radius: 1rem;
}

.stacked-layer {
  position: absolute;
  border-radius: 1rem;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.layer-blue {
  background-color: #007bff;
  bottom: -25px;
  left: 25px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1); 
}

.layer-pattern {
  background-color: #fff;
  background-image: url('/assets/images/circuit.png');
  background-size: cover;
  background-repeat: no-repeat;
  top: -25px;
  right: 25px;
}

/* خلي التدرج يتمدد مع التكبير */
.layer-gradient {
  position: absolute;         /* لازم عشان يتموضع فوق الصورة */
  left: 0;                    /* يبدأ من اليسار */
  right: 0;                   /* ينتهي عند اليمين */
  bottom: 0;                  /* ملتصق بالأسفل */
  height: 30%;                /* ارتفاعه جزء من الصورة */
  background: linear-gradient(to top, rgba(0, 86, 179, 0.6), transparent);
  border-radius: 0 0 1rem 1rem;
  opacity: 0.9;
  transition: all 0.5s ease-in-out;
  z-index: 3;                 /* فوق الصورة */
}


/* وقت الهوفر يكبر مع باقي العناصر */
.hover-zoom-row:hover .layer-gradient,
.hover-zoom-parent:hover .layer-gradient {
  transform: scaleY(1.15); /* يكبر عموديًا */
  opacity: 1; /* يعطيه وضوح أكثر */
}

/* تأثير الزوم على الصورة فقط */
.stacked-image-container .image-zoom {
  z-index: 2;
  position: relative;
}

.stacked-image-container {
  max-width: 350px;
  margin: auto;
}

/* هذا الكلاس فقط يلغي max-width بشكل مخصص */
/* .w-100-unlimited {
  max-width: 80% !important;
} */


.share-section {
  text-align: center;
  margin-top: 3rem;
  margin-bottom: 2rem;
}

.share-section p {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 2rem;
  color: #003f7f;
}
/* فقط الصورة تكبر وتتحرك للأعلى */
.hover-zoom-parent:hover .image-zoom .layer-gradient .layer-blue .layer-pattern {
    transform: scale(1.05) translateY(-5px);
    transition: transform 0.5s ease-in-out, box-shadow 0.5s ease-in-out;
    z-index: 2;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.image-zoom {
    transition: transform 0.5s ease-in-out, box-shadow 0.5s ease-in-out;
    will-change: transform;
}

/* ✨ تكبير خفيف للنص بدل تحريكه */
.hover-zoom-parent:hover .content-zoom {
    transform: scale(1.015);
    transition: transform 0.4s ease-in-out;
}

.content-zoom {
    transition: transform 0.4s ease-in-out;
}

/* تحريك بسيط للطبقات بدون تكبير */
.hover-zoom-parent:hover .layer-blue {
    left: 20px; 
    bottom: -20px;
}

.hover-zoom-parent:hover .layer-pattern {
    right: 20px;
    top: -15px;
}

/* انتقال ناعم للطبقات */
/* ======= Layers base (استبدال القاعدة القديمة) ======= */
.layer-blue,
.layer-pattern,
.layer-gradient {
  position: absolute;
  border-radius: 1rem;
  transition: transform 0.45s ease, left 0.45s ease, right 0.45s ease, top 0.45s ease, bottom 0.45s ease, opacity 0.35s ease, box-shadow 0.35s ease;
  will-change: transform, left, right, top, bottom, opacity;
}

/* layer positions (ابقِ المواضع الأساسية كما كانت أو عدّلها حسب الحاجة) */
.layer-blue {
  bottom: -25px;
  left: 25px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  z-index: 1;
}

.layer-pattern {
  top: -25px;
  right: 25px;
  background-image: url('/assets/images/circuit.png');
  background-size: cover;
  background-repeat: no-repeat;
  z-index: 2;
}

/* Gradient يغطي عرض الصورة ويُثبت بالأسفل */
.layer-gradient {
  left: 0;
  right: 0;
  bottom: 0;
  height: 30%;
  background: linear-gradient(to top, rgba(0,86,179,0.6), transparent);
  border-radius: 0 0 1rem 1rem;
  opacity: 0.9;
  transform-origin: bottom center; /* مهم لتمدد عمودي سلس */
  z-index: 3;
}

/* ======= Hover effects — طبقها على العنصر الحاوي (مثال: .hover-zoom-row) ======= */
.hover-zoom-row:hover .image-zoom {
  transform: scale(1.05) translateY(-5px);
  z-index: 4;
  box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

/* حركات خفيفة للطبقات الجانبية */
.hover-zoom-row:hover .layer-blue {
  left: 20px;
  bottom: -20px;
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 14px 30px rgba(0,0,0,0.18);
}

.hover-zoom-row:hover .layer-pattern {
  right: 20px;
  top: -15px;
  transform: translateY(-4px) scale(1.03);
}

/* التدرج يتمدد عمودياً مع باقي التحريك ليحافظ على تناسق الشكل */
.hover-zoom-row:hover .layer-gradient {
  transform: scaleY(1.12);
  opacity: 1;
}


/* ✅ الصورة تكبر وتتحرك للأعلى عند تمرير الماوس على الصف فقط */
.hover-zoom-row:hover .image-zoom {
  transform: scale(1.05) translateY(-5px);
  transition: transform 0.5s ease-in-out, box-shadow 0.5s ease-in-out;
  z-index: 2;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

/* ✅ تكبير خفيف للنص */
.hover-zoom-row:hover {
  transform: scale(1.015);
  transition: transform 0.4s ease-in-out;
}

/* ✅ الطبقات تتحرك بشكل بسيط فقط عند مرور الماوس على الصف */
.hover-zoom-row:hover .layer-blue {
  left: 20px; 
  bottom: -20px;
}

.hover-zoom-row:hover .layer-pattern {
  right: 20px;
  top: -15px;
}


.social-icons a, .social-icons button {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    border-radius: 50%;
    background-color: #f5f5f5;
    color: #333;
    text-decoration: none;
    margin: 5px;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
  }

  .social-icons a:hover,
  .social-icons button:hover {
    background-color:rgb(58, 116, 240);
    color: #fff;
  }

  .copy-toast {
    opacity: 0;
    transition: opacity 0.4s ease;
    text-align: center;
    color: green;
    font-size: 15px;
    margin-top: 10px;
  }

  .copy-toast.show {
    opacity: 1;
  }
  .gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.gallery-item img {
    transition: transform 0.4s ease;
    width: 100%;
    display: block;
    border-radius: 12px;
}

.gallery-item:hover img {
    transform: scale(1.05); /* زوم عند التمرير */
}

/* العنوان دائم الظهور */
.gallery-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    color: #fff;
    font-size: 14px;
    /* text-align: center; */
    z-index: 2;
}

/* طبقة شفافة عند التمرير */
.gallery-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.gallery-item:hover::after {
    opacity: 1;
}

.video-thumb-wrapper {
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease;
}
.video-thumb-wrapper:hover {
  transform: scale(1.03);
}
.video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}
.video-thumb-wrapper:hover .video-overlay {
  opacity: 1;
}


/* تنسيقات خاصة لبرنامج البكالوريوس وفرص العمل */

.program-career-section {
  background: linear-gradient(135deg, #f8f9fa, #eef1f6); /* خلفية ناعمة */
  border-radius: 16px; /* زوايا دائرية */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); /* ظل بسيط */
  padding: 30px 25px;
  margin-bottom: 30px;
  transition: all 0.3s ease-in-out;
}

.program-career-section:hover {
  transform: translateY(-5px); /* تأثير خفيف عند مرور الماوس */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.program-career-section h2 {
  font-size: 28px;
  margin-bottom: 20px;
  color: #0d6efd; /* لون العناوين */
}

.program-career-section p {
  font-size: 16px;
  color: #555;
  line-height: 1.7;
}

.program-career-section ul {
  margin-top: 20px;
}

.program-career-section ul li {
  font-size: 16px;
  color: #333;
  margin-bottom: 12px;
  padding-left: 5px;
  position: relative;
}

.program-career-section ul li::before {
  content: "✔️";
  position: absolute;
  left: -25px;
  color: #0d6efd;
  font-size: 18px;
}

/* زر الخطة الدراسية */
.program-career-section .btn-primary {
  font-size: 16px;
  padding: 10px 20px;
  border-radius: 8px;
}

.custom-card {
  border-radius: 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: 30px 20px;
  margin-top: 20px;
  margin-bottom: 20px;
  background: #f9f9f9; /* خلفية الكرت رمادي فاتح */
  border: 1px solid #e0e0e0; /* حدود خفيفة */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08); /* ظل خفيف وناعم */
}

.custom-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15); /* ظل أقوى عند الهوفر */
}

/* وسوم تفاعلية */
.hover-tag:hover {
  background-color: #0d6efd;
  color: #fff;
  transition: 0.3s;
  cursor: pointer;
}

/* تكبير البطاقة عند الهوفر */
.news-card {
  border-radius: 10px;
  transition: transform 0.3s ease;
  overflow: hidden; /* لحماية الزوايا عند التكبير */
}

.news-card:hover {
  transform: scale(1.02);
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

.transition-scale {
  transition: transform 0.3s ease;
}

.transition-scale:hover {
  transform: scale(1.03);
}

/* تأثير حاوية التاريخ */
.hover-transparent {
  background-color: #0d6efd !important; /* أزرق غير شفاف */
  transition: all 0.3s ease;
}

.hover-transparent:hover {
  background-color: transparent !important;
  color: #0d6efd !important;
  border: 2px solid #0d6efd !important;
}

.hover-transparent:hover .text-white-50 {
  color: #6c757d !important;
}

/* اجعل الحاوية قابلة للتحويل وتتحكم بالمصدر */
.stacked-image-container {
  transition: transform 0.45s ease-in-out;
  transform-origin: center center;
  display: inline-block; /* يمنع مشاكل التدفق مع التحجيم */
  will-change: transform;
}

/* على الهوفير، كبّر الحاوية كاملة (يشمل الصورة والطبقات) */
.hover-zoom-row:hover .stacked-image-container,
.hover-zoom-parent:hover .stacked-image-container {
  transform: scale(1.05) translateY(-5px);
  z-index: 12; /* ارفعه للامام أثناء الهوفير */
}

/* ألغِ التحويل المزدوج: لا تكبر الصورة داخليًا إذا كبرت الحاوية */
.hover-zoom-row:hover .image-zoom,
.hover-zoom-parent:hover .image-zoom {
  transform: none !important;
}
