.construction-wrapper {
  display: flex;
  min-height: 100vh;
}

/* Header Styles */
.construction-header {
  background-color: #1a5276;
  color: white;
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  width: 100%;
   
}

.construction-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.construction-logo {
  font-size: 24px;
  font-weight: bold;
}

.construction-logo span {
  color: #f39c12;
}

.construction-nav ul {
  display: flex;
  list-style: none;
}

.construction-nav ul li {
  margin-left: 25px;
}

.construction-nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.construction-nav ul li a:hover {
  color: #f39c12;
}

/* Hero Section */
.construction-hero {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("/assets/image/services/construction.jpg") center/cover no-repeat;
  color: white;
  text-align: center;
  padding: 130px 0;
  width: 100%;
}

.construction-hero-content {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.construction-hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
  font-family: 'Unbounded', sans-serif;
}

.construction-hero p {
  font-size: 20px;
  max-width: 700px;
  margin: 0 auto 30px;
}

.construction-btn {
  display: inline-block;
  background-color: #f39c12;
  color: white;
  padding: 12px 30px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s;
}

.construction-btn:hover {
  background-color: #e67e22;
}

/* Sidebar Styles */
.construction-sidebar {
  width: 300px;
  background-color: #2c3e50;
  color: white;
  padding: 30px 0;
  flex-shrink: 0;
  position: sticky;
  top: 20px;
}

.construction-sidebar-title {
  padding: 0 20px 20px;
  font-size: 22px;
  border-bottom: 1px solid #3a546b;
  margin-bottom: 20px;
  color: #f39c12;
}

.construction-sidebar-services {
  list-style: none;
}

.construction-sidebar-services li {
  padding: 15px 20px;
  border-bottom: 1px solid #3a546b;
  transition: background-color 0.3s;
}

.construction-sidebar-services li:hover {
  background-color: #3a546b;
}

.construction-sidebar-services a {
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.construction-sidebar-services i {
  margin-right: 10px;
  color: #f39c12;
}

/* Main Content Styles */
.construction-main {
  flex-grow: 1;
  padding: 40px;
  background-color: #fff;
}

.construction-section-title {
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 2px solid #f39c12;
  color: #1a5276;
  font-family: "Unbounded", sans-serif;
  font-size: 1.5rem;
}

.construction-expertise-content {
  margin-bottom: 40px;
}

.construction-expertise-content p {
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 1.8;
}

.construction-points {
  margin: 30px 0;
  padding-left: 20px;
}

.construction-points li {
  margin-bottom: 15px;
  font-size: 16px;
}

.construction-points li strong {
  color: #1a5276;
}

/* Projects Section */
.construction-projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.construction-project-card {
  background-color: #f9f9f9;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.construction-project-card:hover {
  transform: translateY(-5px);
}

.construction-project-img {
  height: 200px;
  background-color: #ddd;
  background-position: center;
  background-size: cover;
}

.construction-project-content {
  padding: 20px;
}

.construction-project-content h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #1a5276;
}

.construction-project-content p {
  color: #666;
  margin-bottom: 15px;
  font-size: 14px;
}

/* Footer */
.construction-footer {
  background-color: #2c3e50;
  color: white;
  padding: 30px 0 15px;
  width: 100%;
}

.construction-footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto 30px;
  padding: 0 15px;
}

.construction-footer-section h3 {
  font-size: 20px;
  margin-bottom: 20px;
  color: #f39c12;
}

.construction-footer-section p,
.construction-footer-section li {
  margin-bottom: 10px;
  font-size: 14px;
}

.construction-footer-section ul {
  list-style: none;
}

.construction-footer-section a {
  color: #ddd;
  text-decoration: none;
  transition: color 0.3s;
}

.construction-footer-section a:hover {
  color: #f39c12;
}

.construction-social-icons a {
  display: inline-block;
  margin-right: 15px;
  font-size: 20px;
}

.construction-footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #3a546b;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 992px) {
  .construction-wrapper {
    flex-direction: column;
  }

  .construction-sidebar {
    width: 100%;
    order: 2;
  }

  .construction-main {
    order: 1;
  }

  .construction-header-inner {
    flex-direction: column;
  }

  .construction-nav ul {
    margin-top: 20px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .construction-nav ul li {
    margin: 5px 10px;
  }
}

@media (max-width: 768px) {
  .construction-hero h1 {
    font-size: 36px;
  }

  .construction-hero p {
    font-size: 18px;
  }

  .construction-projects-grid {
    grid-template-columns: 1fr;
  }
}

.construction-expertise {
  display: flex; 
  align-items: flex-start;
  margin-top: 50px;
}

.construction-expertise-content {
  flex: 1;
}

.construction-expertise-image {
  flex: 1;
  margin-top: 100px;
}

.construction-expertise-image img {
  width: 100%;
  height: 500px;
  border-radius: 10px;
  object-fit: cover;
}

/* ✅ Mobile Responsive */
@media (max-width: 768px) {
  .construction-expertise {
    flex-direction: column;
  }
  
  .construction-expertise-image {
    margin-top: -20px; 
    margin-bottom: 20px;
  }
  
  .construction-expertise-image img {
    height: auto; 
  }
}

/* Only affect this page’s image */
@media (min-width: 768px) {
  .construction-expertise-image.interior-adjust {
    margin-top: -40px; /* adjust as needed */
  }
}
@media (min-width: 768px) {
  .peb-adjust {
    margin-top: 70px; /* adjust value as needed */
  }
}



/* Add this CSS to ensure images are visible during loading */
.construction-project-img {
  height: 200px;
  background-color: #f0f0f0; /* Light gray background while loading */
  background-position: center;
  background-size: cover;
  position: relative;
  overflow: hidden;
}

.construction-project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover; 
}

.construction-project-img img.loaded {
  opacity: 1; /* Fade in when loaded */
}

/* Loading indicator for images */
.construction-project-img::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #f39c12;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 1;
  opacity: 0; 
}

.construction-project-img.loading::before {
  opacity: 1;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


.construction-project-img img {
  opacity: 1; /* 👈 force visible by default */
  transform: translate(0,0);
}
