/* Inner Hero (Projects / Pages) */
.hero--inner {
  background: var(--urho-indigo);
  min-height: 50vh;
  display: flex;
  align-items: center;
}
.hero--inner .carousel-caption {
  position: relative;
  padding: 50px 20px 0px;
}
.hero--inner h1 {
  font-size: 56px;
  font-weight: 400;
}
.hero--inner p {
  font-size: 18px;
  color: #f1f1f1;
}
.home-link{
    color: #f1f1f1;
    transition: all 0.3s ease;
}
.home-link:hover{
    color: #7ab644;
}
.text-green {
  color: #7ab644;
}
@media (max-width: 768px){
    .hero--inner h1 {
        font-size: 32px;
    }
    .hero--inner p {
        font-size: 16px;
    }
    .hero--inner
    .carousel-caption {
      padding-top: 130px;
      text-align: center;
    }
}

/* Project Item */
#projectsGrid {
  padding: 40px 0px;
  gap: 0px;
}
/* ===== PROJECTS GRID CARD ===== */
.project-card {
  display: block;
  height: 100%;
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  transition: all 0.35s ease;
}
.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
}
/* Image */
.project-image {
  position: relative;
  overflow: hidden;
  height: 300px;
}
.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.project-card:hover .project-image img {
  transform: scale(1.08);
}
/* Content */
.project-content {
  padding: 0px 22px 24px;
}
.project-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 8px;

  /* clamp title */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.project-location {
  font-size: 14px;
  color: #7ab644;
  font-weight: 500;
}
/* Responsive tweaks */
@media (max-width: 768px) {
  #projectsGrid{
    padding: 20px 20px;
  }
  .project-image {
    height: 250px;
  }
  .project-title {
    font-size: 16px;
  }
}

/* Project Details Page */
#pagedatails{
  overflow: hidden;
}
#projectDescription{
    margin-top: 20px;
    font-size: 18px;
    line-height: 1.6;
    
}
/* ===== Project Details Layout Fix ===== */
.project-details .col-lg-7 {
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* 👈 يخلي المحتوى يبدأ من فوق */
}

/* ===== Specs Grid ===== */
.project-specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 32px;
}

/* ===== Spec Card ===== */
.spec-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

/* subtle accent line */
.spec-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: #222;
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* Hover effect */
.spec-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.08);
}

.spec-card:hover::before {
  opacity: 1;
}

/* Text styling */
.spec-label {
  display: block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #999;
  margin-bottom: 6px;
  font-weight: 500;
}

.spec-value {
  font-size: 16px;
  color: #222;
  font-weight: 500;
  line-height: 1.4;
}

/* ===== Mini Gallery (FIXED) ===== */
#projectGallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* تجاهل Bootstrap columns */
#projectGallery .col-md-4 {
  width: 100%;
  max-width: 100%;
}

/* Gallery Item */
#projectGallery a {
  display: block;
  height: 460px;              
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
}

/* Image */
#projectGallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

/* Hover effects */
#projectGallery a:hover img {
  transform: scale(1.08);
}

#projectGallery a:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
}

/* Responsive */
@media (max-width: 991px) {
  #projectGallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  #projectGallery {
    grid-template-columns: 1fr;
  }
}


.project-specs {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.project-specs li {
  margin-bottom: 10px;
  font-size: 16px;
}
