
.main {
  background-color: #fff;
}

/* Hero Section */
.hero {
  position: relative;
  height: 50vh;
  background: url('../images/hero-services.webp') no-repeat center center/cover;
}



/* ========== PAGE HEADING (custom only) ========== */
.page-heading {
    text-align: center;
    padding: 3rem 2rem 1rem;
  }
  
  .page-heading h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
  }
  
  .page-heading p {
    font-size: 1rem;
    color: #777;
  }
  
  
  /* ========== GRID LAYOUT ========== */
  .project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 2rem;
    max-width: 1600px;
    margin: auto;
  }
  
  
  /* ========== CARD CONTAINER ========== */
  .project-card {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  }
  
  
  /* ========== SWIPER CONFIG ========== */
  .card-swiper,
  .card-swiper .swiper-wrapper,
  .card-swiper .swiper-slide {
    width: 100%;
    height: 100%;
  }
  
  .card-swiper .swiper-slide {
    background-size: cover;
    background-position: center;
  }
  
  
  /* ========== OVERLAY TITLE ========== */
  .overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0,0,0,0.4);
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2; /* Add this */
    pointer-events: none; /* Optional: allows clicks to pass through */
  }
  
  .project-card:hover .overlay {
    opacity: 1;
    transform: scale(1);
  }
  
  .overlay h2 {
    font-size: 1.8rem;
    font-weight: 100;
    margin: 0;
    text-align: center;
  }
  
  
  /* ========== ARROW NAVIGATION ========== */
  .swiper-button-next,
  .swiper-button-prev {
    color: #fff !important;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    top: 54% !important;
    transform: translateY(-50%);
    z-index: 10;
    transition: opacity 0.3s ease;
  }
  
  .swiper-button-next::after,
  .swiper-button-prev::after {
    font-size: 16px;
  }
  
  .swiper-button-prev {
    left: 10px;
  }
  
  .swiper-button-next {
    right: 10px;
  }
  
  .project-card:hover .swiper-button-next,
  .project-card:hover .swiper-button-prev {
    opacity: 1;
  }
  .card-swiper .swiper-slide {
    background-size: cover;
    background-position: center;
    z-index: 1; /* Add this if needed */
  }

  /* Extra small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
  .swiper-button-next, .swiper-button-prev {
    top: 75% !important;
    width: 15px !important;
    height: 15px !important;
  }

  .swiper-button-next::after,
  .swiper-button-prev::after {
    font-size: 15px !important; /* or smaller as needed */
  }
  .overlay h2 {
    display: none;
  }
}

/* Small devices (phones in landscape, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .swiper-button-next, .swiper-button-prev {
    top: 60% !important;
    width: 25px !important;
    height: 25px !important;
  }

  .swiper-button-next::after,
  .swiper-button-prev::after {
    font-size: 25px !important; /* or smaller as needed */
  }
  .overlay h2 {
    font-size: 0.8rem;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .swiper-button-next, .swiper-button-prev {
    top: 60% !important;
    width: 25px !important;
    height: 25px !important;
  }

  .swiper-button-next::after,
  .swiper-button-prev::after {
    font-size: 25px !important; /* or smaller as needed */
  }
  .overlay h2 {
    font-size: 0.8rem;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .swiper-button-next, .swiper-button-prev {
    top: 57% !important;
    width: 25px !important;
    height: 25px !important;
  }

  .overlay h2 {
    font-size: 1.3rem !important;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) and (max-width: 1439.98px) {
  .overlay h2 {
    font-size: 0.9rem !important;
  }
}

/* Ultra wide screens (1440px and up) */
@media (min-width: 1440px) {
 
}


