/* Sticky Navbar Style */
.sticky-navbar {
  position: -webkit-sticky;
  position: sticky;
  top: 120px;
  background-color: #1e1e1e;
  padding: 10px 0;
  z-index: 90;
  margin-bottom: 40px;
}

.sticky-navbar ul {
  display: flex;
  justify-content: center;
  list-style: none;
}

/* Add this to your existing CSS */

.sticky-navbar.hidden {
  display: none;
}

.sticky-navbar ul li {
  margin: 0 20px;
  position: relative;
}

.sticky-navbar ul li a {
  color: white;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
}

/* Highlighted navbar item */
.sticky-navbar ul li.active a {
  border-bottom: 3px solid #ffd700;
}

/* Styling for sections - Remove global padding and margin */
section {
  padding: 0;
  margin: 0;
}

.projectschemcon {
  max-width: 1200px;
  margin: 0 auto;
}

/* Hero Section - Remove gap and set to top */
.section-banner {
  position: relative;
  margin-top: 0;
}

.section-banner img {
  width: 100%;
  height: 50vh;
  object-fit: cover;
  display: block;
  margin: 0;
  /* No margin */
}

.section-banner .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 223, 0, 0.1);
  z-index: 1;
}

.section-banner .text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 20px;
  color: white;
  text-align: center;
  width: 50%;
  border-radius: 8px;
  z-index: 2;
}

.projectschemcon h2 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 30px;
    display: inline-block;
    position: relative;
    padding-bottom: 10px;
  }
  
.projectschemcon h2::after {
    content: "";
    display: block;
    width: 30%; /* Border width set to 30% of heading */
    height: 3px; /* Border thickness */
    background-color: #ffd700; /* Border color */
    position: absolute;
    left: 0; /* Align border to the left */
    bottom: 0; /* Position border at the bottom of text */
  }
  

/* Project Cards - Equal image size and neat alignment */
.project-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.project-card {
  width: calc(50% - 20px);
  /* Two items per row */
  text-align: center;
  box-sizing: border-box;
}

.project-card img {
  width: 100%;
  height: 400px;
  /* Fixed height for equal sizing */
  object-fit: cover;
  /* Ensures images cover the card area */
  border-radius: 8px;
}

.project-card p {
  margin-top: 10px;
  font-size: 1rem;
  font-weight: bold;
  text-align: start;
}

/* Apply unique top margin to each section */
#uae {
  margin-top: 0;
  /* No margin for the first section */
}

#ksa {
  margin-top: 60px;
  /* Adjusted for the next section */
}

#qatar {
  margin-top: 60px;
  /* Adjusted for the next section */
}

#kuwait {
  margin-top: 60px;
  /* Adjusted for the next section */
}
@media (max-width: 1199px) {
  .projectschemcon {
    max-width: 100%;
    padding: 20px;
  }
}
/* For mobile responsiveness */
@media (max-width: 768px) {
  .sticky-navbar {
    top: 120px;
  }

  .sticky-navbar ul {
    flex-direction: column;
    text-align: center;
  }

  .sticky-navbar ul li {
    margin-bottom: 10px;
  }

  .project-container {
    flex-direction: column;
    align-items: center;
  }

  .project-card {
    width: 100%;
    padding: 20px;
  }
  .project-card img {
    height: auto;
    width: 100%;
    object-fit: contain;
  }
}
