/* ===============================
   PROJECT PAGE SECTION
================================ */

.projects-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
  overflow: hidden;
}

.projects-heading {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  color: #00293f;
  margin-bottom: 30px;
}

/* ===============================
   SLIDER
================================ */

.slider-wrapper {
  overflow: hidden;
}

.slider {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding-bottom: 16px;
}

.slider::-webkit-scrollbar {
  display: none;
}

/* ===============================
   PROJECT CARD
================================ */
/* 
.project-wrap {
  flex: 0 0 calc(33.333% - 16px);
  min-width: calc(33.333% - 16px);
  text-align: center;
  scroll-snap-align: center;
}

.project-card {
  background: #ffffff;
  border: 1px solid rgba(0, 41, 63, 0.2);
  border-radius: 18px;
  padding: 14px;
}

.project-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 14px;
} */

/* ===============================
   PROJECT CARD
================================ */

.project-wrap {
  flex: 0 0 calc(33.333% - 16px);
  min-width: calc(33.333% - 16px);
  text-align: center;
  scroll-snap-align: center;
}

.project-card {
  background: #ffffff;
  border: 1px solid rgba(0, 41, 63, 0.2);
  border-radius: 18px;
  overflow: hidden;      /* prevents image overflow */
  padding: 0;            /* remove inner spacing */
}


/* Override Elementor image rule for project cards only */
.projects-section .project-card img {
  width: 100%;
  height: 500px !important;   /* force override */
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .projects-section .project-card img {
    height: 400px !important;
  }
}
/* ===============================
   TEXT
================================ */

.project-title {
  margin: 14px 0 6px;
  font-size: 18px;
  font-weight: 700;
  color: #00293f;
}

.project-location {
  font-size: 14px;
  color: #666;
  margin-bottom: 14px;
}

/* ===============================
   VIEW PROJECT BUTTON
================================ */

.view-project {
  width: 50%;
  padding: 12px 0;
  border-radius: 12px;
  border: none;
  background: #00293f;
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
  transition: 0.25s;
}

.view-project:hover {
  background: #014b72;
  transform: translateY(-2px);
}

/* ===============================
   ARROWS
================================ */

.slider-arrows {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 22px;
}

.slider-arrows .nav {
  width: 48px;
  height: 48px;
  background: #00293f;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===============================
   TABLET (2 CARDS)
================================ */

@media (max-width: 1024px) {
  .project-wrap {
    flex: 0 0 calc(50% - 12px);
    min-width: calc(50% - 12px);
  }
}

/* ===============================
   MOBILE PREMIUM (1 CARD CENTER)
================================ */

@media (max-width: 768px) {

  .projects-section {
    margin: 40px auto;
    padding: 0 16px;
  }

  .projects-heading {
    font-size: 26px;
    margin-bottom: 24px;
  }

  .slider {
    gap: 16px;
  }

  .project-wrap {
    flex: 0 0 92%;
    min-width: 92%;
    margin: 0 auto;
  }

  .project-card img {
    height: 220px;
  }

  .slider-arrows .nav {
    width: 52px;
    height: 52px;
    font-size: 24px;
  }
}

/* ===============================
   CONTACT FORM MODAL (MOBILE SAFE)
================================ */

#contactModal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 999999;
  overflow-y: auto;
}

#contactModal .modal-content {
  background: #ffffff;
  width: 420px;
  max-width: 94%;
  margin: 20px auto;
  padding: 20px 20px 40px;
  border-radius: 16px;
  position: relative;
}

#contactModal .close {
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 26px;
  cursor: pointer;
}
