body {
  overflow-x: hidden;
}

/* hero */
/* #hero {
  animation: load-other 1s ease-in 1200ms;
} */
/* Swiper container */
.hero-slider {
  height: 600px;
  position: relative; /* Needed to position navigation arrows */
}

/* Swiper slides */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: self-start;
  font-size: 50px;
  background-size: cover;
  position: relative;
  overflow: hidden;
}
@media (max-width: 425px) {
  .hero {
    padding: 0 10px;
  }
}

@media (min-width: 1100px) {
  .hero {
    padding: 0 5%;
  }
}
@media (min-width: 1400px) {
  .hero {
    padding: 0 9%;
  }
}
@media (max-width: 1099px) {
  .hero {
    padding: 0 5%;
  }
}

/* Darken slide background */
/* .hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: inherit; 
  background-size: cover;
  background-position: center;
  filter: brightness(60%);
  z-index: 1; 
  background: linear-gradient(-90deg, hsl(from var(--brand) h s l/ 0.1), hsl(from var(--brand-second) h s l/ 0.9));
} */

.slider-text {
  position: relative;
  z-index: 2; /* Place above the darkened background */
  max-width: 600px;
  color: #fff;
}

.hero {
  position: relative;
}

.hero h1 {
  font-size: clamp(40px, 8vw, 55px);
  font-family: "Noto Sans Sinhala", serif;
  line-height: 1.1;
  margin: 20px 0;
  font-weight: 500;
  text-transform: capitalize;
  color: #fff;
}

.hero h6 {
  color: #fff;
  margin-bottom: 30px;
}

.hero p {
  color: #fff;
  /* max-width: 750px; */
  margin-top: 30px;
  font-size: 17px;
}
.hero .sinhala-para-text {
  font-size: 20px;
}


/* Navigation arrows */
.swiper-button-next,
.swiper-button-prev {
  color: var(--brand-second); /* Custom arrow color */
  font-size: 24px; /* Adjust size if needed */
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  cursor: pointer;
  opacity: 0; /* Initially hidden */
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

/* Individual positioning */
.swiper-button-next {
  right: 20px;
}
.swiper-button-prev {
  left: 20px;
}

/* Show navigation buttons on hover */
.swiper:hover .swiper-button-next,
.swiper:hover .swiper-button-prev {
  opacity: 1;
  visibility: visible;
}

/* Add hover effect for arrows */
.swiper-button-next:hover,
.swiper-button-prev:hover {
  color: var(--brand); /* Change color on hover */
}

/* home-thumb-section */
.home-thumb-section {
  padding-top: 80px;
}
.home-thumb-section h5 {
  margin-bottom: 15px;
}
.home-thumb-section h1 {
  margin-bottom: 5px;
}
.home-thumb-section p {
  margin-top: 20px !important;
}
.home-thumb-section img {
  display: inline-block;
  text-align: center;
}
/*  */
.home-thumb-box {
  box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
  border-radius: 10px;
  user-select: none;
  position: relative;
  max-width: 370px;
  margin: auto;
}
.home-thumb-text-box {
  padding: 20px;
  text-align: center;
  position: relative;
}
.home-thumb-img-box {
  overflow: hidden;
  border-radius: 10px 10px 0 0 !important;
  position: relative;
}
.home-thumb-img-box img {
  border-radius: 10px 10px 0 0 !important;
  transition: all 0.5s ease;
}
.home-thumb-box:hover .home-thumb-img-box img {
  transform: scale(1.1);
}
.home-thumb-text-box a {
  margin: 20px 0 15px 0;
  border-bottom: 1px solid var(--brand-second);
  transition: all 0.5s ease;
}
.home-thumb-text-box a:hover {
  transform: translateY(-5px);
  color: var(--brand);
  border-bottom: 1px solid var(--brand);
}
.home-thumb-img-box::before {
  position: absolute;
  top: 200px;
  left: 0;
  height: 194px;
  width: 100%;
  overflow: hidden;
  clip-path: ellipse(60% 50% at 50% 50%);
  background: #ffffff;
  content: "";
  z-index: 10 !important;
}

/*  */
.home-thum-icon-box {
  position: absolute;
  top: 37% !important;
  left: 50% !important;
  transform: translateX(-50%);
  background-color: var(--brand-second);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
}
.home-thum-icon-box i {
  color: #ffffff;
  font-size: 20px;
}
/* abt section */
.abt-section {
  padding: 100px 0 100px 0;
  background: #fbfbfb;
}
.abt-text-box * + * {
  margin-top: 25px;
}
.brand-logo-container {
  margin-top: 50px;
  display: flex;
  justify-content: space-evenly;
  flex-wrap: wrap;
  row-gap: 30px;
}

.hm-points-box {
  color: #000 !important;
  font-size: 30px;
}
.hm-points-box * + * {
  margin-top: 10px !important;
}
.hm-points-box i {
  background: var(--brand-second);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff !important;
  font-size: 17px;
}
.hm-points-box p {
  display: flex;
  align-items: center;
  gap: 15px;
  color: #000 !important;
  font-size: 15px;
}

/* Preloader Styling */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--brand-second);
  z-index: 9999; /* Ensure it's on top of everything */
  transition: opacity 0.75s ease, visibility 0.75s ease;
  opacity: 1;
  visibility: visible;
  overflow: hidden; /* Ensure no scroll inside */
}
.preloader-hidden {
  opacity: 0;
  visibility: hidden;
}
.preloader-wapper {
  position: absolute;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.loder-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
/* Optional spinner */
.loader {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  display: inline-block;
  border-top: 5px solid #fff;
  border-right: 5px solid transparent;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Prevent scrolling on both html and body when preloader is active */
html.preloader-active,
body.preloader-active {
  overflow: hidden;
  height: 100%; /* Ensure no unexpected scroll behavior */
}
