/* Improved and polished CSS with countup styling */
@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap');

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Schibsted Grotesk', sans-serif;
  overflow-x: hidden;
}

/* Slideshow */
/* Main slideshow container */
.slideshow {
  width: 100%;
  height: auto;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Autoplay container for the slides */
.slideshow .autoplay {
  position: relative;
  width: 100%;
  height: 100%;
}

.slick-dots li button {
  cursor: pointer;
}

/* Individual slide item */
.slideshow .autoplay .item {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Slide image styling */
.slideshow .autoplay .item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  /* Match container height */
}


.prev-button,
.next-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: white !important;
  border: 2px solid white !important;
  color: #1c4386 !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 50%;
  font-size: 18px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  opacity: 1;
}

.prev-button {
  left: 15px;
}

.next-button {
  right: 15px;
}

/* Responsive adjustments */
@media (max-width: 768px) {

  .prev-button,
  .next-button {
    width: 35px !important;
    height: 35px !important;
    font-size: 16px !important;
  }

  .prev-button {
    left: 10px;
  }

  .next-button {
    right: 10px;
  }
}

@media (max-width: 480px) {

  .prev-button,
  .next-button {
    width: 30px !important;
    height: 30px !important;
    font-size: 14px !important;
    border-width: 1px !important;
  }

  .prev-button {
    left: 5px;
  }

  .next-button {
    right: 5px;
  }
}

/* For very small screens, you might want to make the buttons more visible */
@media (max-width: 320px) {

  .prev-button,
  .next-button {
    width: 28px !important;
    height: 28px !important;
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.3) !important;
  }
}

/* About section */

.about-section {
  position: relative;
  padding: 4rem 2rem;
  background-color: #f8fafc;
}

.about-section .container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  /* Added column for divider */
  gap: 4rem;
  align-items: center;
  min-height: 500px;
}

/* Vertical Divider */
.about-divider {
  height: 70%;
  width: 2.5px;
  background-color: #1c4386;
  /* light gray */
  justify-self: center;
}

.about-photos {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
}

.about-photos img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  object-fit: cover;
}

.about-photos img:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.about-photos img:first-child {
  height: 250px;
}

.about-photos img:last-child {
  height: 250px;
  margin-left: auto;
  margin-right: 2rem;
}

.about-text {
  padding: 2rem 0;
}

.about-text .heading {
  margin-bottom: 2rem;
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: black;
  margin-bottom: 1.5rem;
  text-align: justify;
}

.about-text p:last-child {
  margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .about-divider {
    display: none;
  }

  .about-photos {
    order: -1;
    align-items: center;
  }

  .about-photos img:last-child {
    margin-left: 0;
    margin-right: 0;
  }

  .about-text h2::after {
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  .about-section {
    padding: 3rem 1rem;
  }

  .about-content {
    gap: 2rem;
  }

  .about-photos {
    gap: 1.5rem;
  }

  .about-photos img:first-child {
    max-width: 100%;
    height: auto;
  }

  .about-photos img:last-child {
    height: auto;
  }

  .about-text h2 {
    font-size: 2rem;
  }

  .about-text p {
    font-size: 1rem;
    text-align: left;
  }
}

@media (max-width: 480px) {
  .about-section {
    padding: 2rem 1rem;
  }

  .about-text h2 {
    font-size: 1.75rem;
  }
}

/* Stats Container - Numerical Stats */
.stats-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  padding: 2rem 0 calc(2rem + 45px) 0;
  background: #f5f7fa;
  position: relative;
  flex-direction: column;
}

.heading h2 {
  color: #1c4386;
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  position: relative;
  cursor: pointer;
  margin: 0;
}

.heading h2::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 0;
  height: 2.3px;
  background-color: #1c4386;
  transition: all 0.4s ease;
  transform: translateX(-50%);
}

.heading h2:hover::after {
  width: 30%;
  /* You can adjust the width as needed */
}

.stat-box {
  text-align: center;
  padding: 2rem;
  min-width: 200px;
  transition: transform 0.3s ease;
}

.stat-box:hover {
  transform: translateY(-5px);
}

.stat-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 1rem;
  object-fit: contain;
}

.counter {
  font-size: 3rem;
  font-weight: 700;
  color: #1c4386;
  transition: all 0.5s ease;
}

.stat-title {
  font-size: 1.2rem;
  color: #333;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  row-gap: 20px;
  justify-content: space-around;
  font-weight: 1000;
}

.stat-description {
  width: 80%;
  align-self: center;
}

.stat-description p {
  position: relative;
  font-size: 1rem;
  color: #666;
  line-height: 1.6;
  text-align: left;
  margin-top: 1rem;
  font-weight: 600;
}

.stat-description p::before {
  position: absolute;
  top: 0px;
  left: -20px;
  width: 2px;
  content: '';
  background-color: #1c4386;
  height: 100%;
}

/* Vision Mission Cards */
.vision-mission {
  position: relative;
  padding: 2rem 0 calc(4rem + 45px) 0;
  display: flex;
  flex-direction: column;
}

.vision-mission .heading {
  text-align: center;
}

.vision-mission-content {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  flex-wrap: wrap;
}

.card {
  width: 25%;
  height: 200px;
  perspective: 500px;
  margin: 1rem;
}

.card .content {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

.card:hover .content {
  transform: rotateY(180deg);
}

.front,
.back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.front {
  background: white;
  color: #1c4386;
}

.back {
  background: #1c4386;
  color: white;
  transform: rotateY(180deg);
}

.text {
  text-align: center;
  box-sizing: border-box;
  padding: 25px;
}

.text i {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.text h2 {
  font-size: 1.5rem;
  margin: 0.5rem 0;
}

.news-section {
  position: relative;
  padding: 2rem 0 calc(2rem + 45px) 0;
  background: #f5f7fa;
}

/* Features Section */
.feature-section {
  padding: 2rem 0 calc(2rem + 45px) 0;
  position: relative;
}

/* Partners Section */
.partners {
  position: relative;
  padding: 3rem 0 calc(3rem + 45px) 0;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.contain {
  width: 90%;
  margin: 0 auto;
}

.ourpartners h1 {
  color: #1c4386;
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

.customer-logos {
  margin: 1rem 0;
}

.slide {
  padding: 1rem;
  text-align: center;
}

.slide img {
  max-height: 60px;
  width: auto;
  margin: 0 auto;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.slide:hover img {
  filter: grayscale(0);
  opacity: 1;
  transform: scale(1.05);
}

/* Testimonials */
.testi {
  padding: 5rem 0;
  background: #f9f9f9;
}

.testi .head h3 {
  color: #1c4386;
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

.swiper-slide {
  padding: 2rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.thumbnail {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto;
  border: 5px solid #1c4386;
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.aside {
  text-align: center;
  padding: 1.5rem 0 0;
}

.aside p {
  font-style: italic;
  color: #555;
  margin-bottom: 1.5rem;
}

.name h4 {
  color: #1c4386;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.name strong {
  color: #333;
  font-weight: 500;
  font-size: 1rem;
}

.swiper-button-next,
.swiper-button-prev {
  background: #1c4386 !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 50%;
  color: white !important;
  transition: all 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  transform: scale(1.1);
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 1.2rem !important;
}

.swiper-pagination-bullet {
  background: #ccc !important;
  opacity: 1 !important;
}

.swiper-pagination-bullet-active {
  background: #1c4386 !important;
}

/* Responsive Adjustments */
@media (max-width: 980px) {
  .editorial {
    height: 30px;
  }

  .container {
    margin: 0 2rem;
  }

  .counter {
    font-size: 1.8rem;
  }

  .stat-box {
    padding: 0;
  }

  .stats-container {
    padding: 1rem 0 calc(1rem + 30px) 0;
    gap: 10px;
  }

  .card {
    width: 70%;
    margin: 1rem 0;
  }

  .stat-numbers {
    margin: 10px 0px;
  }

  .stats-content {
    flex-direction: column;
  }

  .stats-item {
    width: 100%;
    margin-bottom: 2rem;
  }

  .heading h2 {
    font-size: 1.8rem;
  }

  .heading h2:hover::after {
    width: 80%;
    /* You can adjust the width as needed */
  }

  .stat-description p {
    font-size: 0.8rem;
    line-height: 1;
    text-align: center;
    margin-top: 0.7rem;
  }
}

@media (max-width: 768px) {
  .container {
    margin: 0 1rem;
  }

  .stats-container {
    flex-direction: column;
    align-items: center;
  }

  .customer-logos .slide {
    padding: 0.5rem;
  }

  .slide img {
    max-height: 60px;
  }

  /* Offerings responsive */
  .contents {
    width: 100%;
    max-width: 250px;
    padding: 1.5rem 1rem;
  }
}

@media (max-width: 480px) {
  .contents {
    max-width: 100%;
  }
}

/* Animation for counter */
@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.counter {
  animation: countUp 0.5s ease-out forwards;
}

/* Smooth transitions for all hover effects */
a,
button,
.button,
.card,
.contents,
.snip1208,
.slide img {
  transition: all 0.3s ease;
}

/* Focus states for accessibility */
/* button:focus,
.button:focus,
a:focus {
  outline: 2px solid #1c4386;
  outline-offset: 2px;
} */


.editorial {
  height: 30px;
}
}

/* Updated Tooltip Styles for stat-box */
.stat-box {
  position: relative;
  cursor: pointer;
  transition: transform 0.4s ease;
}

.stat-box:hover {
  transform: translateY(-5px);
}

.tippy-box[data-theme~='stats'] {
  background-color: #f5f7fa;
  color: #1c4386;
  font-weight: 500;
  border-radius: 5px;
  padding: 8px 14px;
  box-shadow: 0 3px 12px rgba(0, 75, 80, 0.2);
  font-family: 'Schibsted Grotesk', sans-serif;
  font-size: 0.9rem;
  line-height: 1.4;
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
  backdrop-filter: blur(3px);
}

.tippy-box[data-theme~='stats']>.tippy-arrow {
  color: hsla(216, 33%, 97%, 0.764);
}

.tippy-box[data-theme~='stats'] .tippy-content {
  padding: 3px 6px;
}

.tippy-box[data-theme~='stats'] strong {
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #1c4386;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.marquee-container {
  width: 100%;
  background-color: #ff6f3c;
  /* Bright orange */
  color: #fffbe6;
  /* Creamy white */
  position: relative;
}

.marquee-content {
  display: inline-block;
  white-space: nowrap;
  padding-left: 100%;
  animation: marquee 18s linear infinite;
  font-family: 'Lato', sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.6px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  /* Subtle glow for readability */
}

.marquee-content:hover {
  animation-play-state: paused;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-content {
    animation: none;
    white-space: normal;
    padding-left: 0;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .marquee-content {
    font-size: 1rem;
    animation-duration: 14s;
  }
}

.marquee-container::before,
.marquee-container::after {
  content: '';
  position: absolute;
  top: 0;
  width: 50px;
  height: 100%;
  z-index: 2;
  background: linear-gradient(to right, #ff6f3c, transparent);
}

.marquee-container::after {
  right: 0;
  background: linear-gradient(to left, #ff6f3c, transparent);
}

.marquee-container a {
  color: #fffbe6;
  /* Creamy white */
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.3s ease;
}