
  /* Shorter hero section and adjusted upward shift */
  .hero-up .slick1, .hero-up .item-slick1 {
    min-height: 20vh; /* Reduced from 62vh */
  }

  .hero-up .hero-stack {
    transform: translateY(-4vh); /* Adjust for tighter space */
  }

  @media (max-width: 768px){
    .hero-up .slick1, .hero-up .item-slick1 {
      min-height: 15vh; /* Reduced from 56vh */
    }

    .hero-up .hero-stack {
      transform: translateY(-2vh); /* Slight shift on smaller screens */
    }
  }

  /* Scroll offset for anchor links */
  #projects, #services, #contact {
    scroll-margin-top: 90px;
  }












<!-- Include previous CSS and JS for arrows, hover, pagination functionality -->

/* Slider wrapper */
.modern-slider-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.modern-slider-row {
  display: flex;
  overflow: hidden; /* disable horizontal scroll */
  gap: 28px;
  transition: transform 0.4s ease;
}
.modern-slider-item { flex: 0 0 360px; }

/* Arrows */
.modern-slider-arrow {
  background: rgba(30,144,255,0.9);
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.6rem;
  z-index: 5;
  display: none; /* initially hidden */
  position: relative;
  user-select: none;
  transition: background 0.3s ease;
}
.modern-slider-arrow:hover { background: rgba(30,144,255,1); }
.modern-slider-arrow.left { margin-right: 12px; }
.modern-slider-arrow.right { margin-left: 12px; }

/* Cards */
.modern-map-card {
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.09);
  transition: transform 0.6s ease, box-shadow 0.5s ease, filter 0.5s ease;
  position: relative;
}
.modern-map-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}
.modern-map-card:hover {
  transform: scale(1.05);
  box-shadow: 0 16px 32px rgba(30,144,255,0.35);
}
.modern-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 16px;
  background: linear-gradient(0deg, rgba(30,144,255,0.8), transparent);
  color: #fff;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.modern-map-card:hover .modern-overlay { opacity: 1; transform: translateY(0); }

/* Labels and badges */
.modern-label {
  position: absolute;
  top: 14px;
  left: 14px;
  background: linear-gradient(90deg,#1e90ff,#63b3ed);
  color: #fff;
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 6px 10px rgba(46, 45, 45, 0.459);
}
.modern-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 16px;
  color: #fff;
}
.new-badge { background: #28a745; }
.hot-badge { background: #dc3545; }

/* Section title */
.modern-section-title {
  font-size: 2rem;
  font-weight: 900;
  color: #1e2a38;
  position: relative;
}
.modern-section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  margin: 8px 0 0;
  background: linear-gradient(90deg,#1e90ff,#63b3ed);
  border-radius: 3px;
}

/* Pagination */
.modern-pagination {
  display: flex;
  justify-content: center;
  margin-top: 16px;
  gap: 6px;
}
.modern-pagination-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #d1d5db;
  cursor: pointer;
  transition: all 0.3s;
}
.modern-pagination-dot.active {
  background: #1e90ff;
  box-shadow: 0 0 6px rgba(30,144,255,0.6);
}



/* ===== Global Box Sizing ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ===== Hero Slider ===== */
.section-slide .item-slick1 {
  min-height: 400px; /* default for smaller screens */
}

.hero-stack span.ltext-101 {
  font-size: 1.5rem;
}

.hero-stack h2.ltext-201 {
  font-size: 2rem;
}

.hero-stack a {
  font-size: 0.9rem;
  padding: 8px 12px;
}

/* ===== Recent Maps Grid ===== */
#recent-maps .row {
  flex-wrap: wrap;
}

#recent-maps div[style*="flex:1;"] {
  min-width: 100%;
}

@media(min-width: 576px) {
  #recent-maps div[style*="flex:1;"] { min-width: 48%; }
}

@media(min-width: 768px) {
  #recent-maps div[style*="flex:1;"] { min-width: 31%; }
}

@media(min-width: 1200px) {
  #recent-maps div[style*="flex:1;"] { min-width: 23%; }
}

/* ===== Filters & Grid ===== */
#search aside {
  position: relative;
  width: 100%;
  margin-bottom: 24px;
}

#search .col-lg-9 {
  width: 100%;
}

/* On larger screens use flex */
@media(min-width: 992px) {
  #search {
    display: flex;
    gap: 20px;
  }
  #search aside {
    flex: 0 0 25%;
    margin-bottom: 0;
  }
  #search .col-lg-9 {
    flex: 1;
  }
}

/* ===== Slider Items ===== */
.modern-slider-row {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-behavior: smooth;
}

.modern-slider-item {
  flex: 0 0 auto;
  width: 200px; /* default for small screens */
}

@media(min-width: 576px) { .modern-slider-item { width: 220px; } }
@media(min-width: 768px) { .modern-slider-item { width: 250px; } }
@media(min-width: 1200px) { .modern-slider-item { width: 280px; } }

/* ===== Project Section Hero ===== */
.project-section .bg-image {
  height: 300px; /* small screens */
}

.project-section .text-box {
  max-width: 90%;
}

@media(min-width: 768px) {
  .project-section .bg-image { height: 400px; }
  .project-section .text-box { max-width: 400px; }
}

@media(min-width: 1200px) {
  .project-section .bg-image { height: 500px; }
  .project-section .text-box { max-width: 500px; }
}

/* ===== Why Choose Us Cards ===== */
section[style*="Why Choose Us"] > div > div > div {
  width: 100%;
  margin: 10px auto;
}

@media(min-width: 576px) { section[style*="Why Choose Us"] > div > div > div { width: 45%; } }
@media(min-width: 768px) { section[style*="Why Choose Us"] > div > div > div { width: 45%; } }
@media(min-width: 992px) { section[style*="Why Choose Us"] > div > div > div { width: 250px; } }

/* ===== Responsive Hero Text ===== */
.hero-stack h2.ltext-201, .hero-stack span.ltext-101 {
  word-wrap: break-word;
}

/* ===== Scrollbar hiding for sliders ===== */
.modern-slider-row::-webkit-scrollbar { display: none; }
.modern-slider-row { -ms-overflow-style: none; scrollbar-width: none; }
