.portfolio-hero p,
.footer p,
.footer-links a {
  color: var(--text-gray) !important;
  font-size: 1.1rem !important;
}

/* --- Hero Section Styling --- */
.portfolio-hero {
  position: relative;
  height: 60vh;
  min-height: 400px;
  background: url("assets/bg.jpg") center/cover no-repeat fixed;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  color: var(--text-white);
}

.portfolio-hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65); /* Dark Overlay */
  z-index: 1;
}

.hero-content-box {
  position: relative;
  z-index: 2;
}

.portfolio-hero h1 {
  font-size: 3.8rem;
  font-weight: 900;
  margin-bottom: 15px;
  color: var(--primary-gold);
  text-shadow: 2px 2px 15px rgba(0, 0, 0, 0.3);
}

.section-padding {
  padding: 100px 0;
}
.bg-light {
  background-color: #f9f9f9 !important;
}
.mb-100 {
  margin-bottom: 50px;
}
.mb-150 {
  margin-bottom: 50px;
}

.project-block {
  background: #ffffff;
  padding: 50px;
  border-radius: 40px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.07);
  border: 1px solid rgba(0, 0, 0, 0.02);
  transition: transform 0.3s ease;
}

.gold-line {
  width: 100px;
  height: 5px;
  background: var(--primary-gold);
  margin-top: 20px;
  border-radius: 20px;
}

/* --- Breadcrumb Styling --- */
.breadcrumb-item a {
  color: var(--text-white);
  text-decoration: none;
  opacity: 0.8;
}
.breadcrumb-item a:hover {
  color: var(--primary-gold);
  opacity: 1;
}
.breadcrumb-item.active {
  color: var(--primary-gold) !important;
}
.breadcrumb-item + .breadcrumb-item::before {
  color: #fff;
  content: "|";
  padding: 0 10px;
}
/* --- تسمية الصور (Labels) --- */
.img-label-box {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 15px;
  padding-right: 15px;
  border-right: 4px solid var(--primary-gold);
  color: var(--dark-bg);
}

/* --- التحكم بالصور الرئيسية --- */
.portfolio-img-container {
  overflow: hidden;
  border-radius: 25px;
}

.img-main-portfolio {
  width: 100%;
  height: 550px; /* طول ثابت وموحد لكل المشاريع لمنع التداخل */
  object-fit: contain;
  transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.img-main-portfolio:hover {
  transform: scale(1.05);
}

.border-gold {
  border: 3px solid var(--primary-gold);
}

/*projects */
.img-detail-small {
  width: 100%;
  height: 180px;
  object-fit: contain;
  border-radius: 15px;
  cursor: pointer;
  transition: 0.4s ease;
  border: 1px solid transparent;
}

.img-detail-small:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  border-color: var(--primary-gold);
}

/* Language text alignment */
html[lang="en"] .lang-key {
  direction: ltr;
}

/* --- Responsive (للجوال) --- */
@media (max-width: 991px) {
  .img-main-portfolio {
    height: 400px;
  }
}

@media (max-width: 768px) {
  .project-block {
    padding: 25px;
    border-radius: 25px;
  }
  .img-main-portfolio {
    height: 300px;
  }
  .mb-150 {
    margin-bottom: 80px;
  }
  .section-padding {
    padding: 60px 0;
  }
}

/* Fix Horizontal Scroll Issues */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

/* .container {
    max-width: 100vw;
    overflow: hidden;
} */

.row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

section {
    width: 100%;
    overflow: hidden; 
}
/* Styling for the label above images */
.img-label-box {
    padding: 10px 20px;
    /* background: rgba(212, 175, 55, 0.1);  */
    /* Remove the fixed border-right and use logical properties */
    border-right: none; 
    border-left: none;
    
    /* This creates the border on the "start" of the text regardless of language */
    border-inline-start: 5px solid var(--primary-gold); 
    
    margin-bottom: 15px;
    font-weight: 700;
    display: inline-block;
}

/* For English (LTR) - the line will automatically move to the left */
[dir="ltr"] .img-label-box {
    border-inline-start: 5px solid var(--primary-gold);
}

/* For Arabic (RTL) - the line will automatically move to the right */
[dir="rtl"] .img-label-box {
    border-inline-start: 5px solid var(--primary-gold);
}


  /* توحيد حجم صور السلايدر (المربعات الصغيرة) */
  .detail-item img, .img-detail-small {
    width: 100%;
    height: 200px; /* ارتفاع ثابت لجميع الصور */
    object-fit: cover; /* أهم سطر: يقص الزوائد ويمنع تمطيط الصورة */
    border-radius: 8px; /* حواف ناعمة */
    transition: all 0.3s ease;
  }

  /* تنسيق الحاوية الخاصة بالسلايدر */
  .details-slider-container {
    padding: 10px 0;
  }

.img-main-portfolio {
    width: 100%;
    height: auto; /* يسمح للصورة بالنمو حسب أبعادها */
    aspect-ratio: 16 / 16; /* يفرض نسبة احترافية مثل شاشات العرض */
    object-fit: cover; /* لضمان ملء المساحة */
    border-radius: 12px;
    background-color: #f0f0f0; /* لون خلفية خفيف في حال التحميل */
}

  /* أزرار التنقل للسلايدر */
  .carousel-control-prev, .carousel-control-next {
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.5); /* خلفية سوداء شفافة للأزرار */
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
  }
