html {
  background: #f0f0f0;
  background-image: 
    linear-gradient(45deg, rgba(255,255,255,0.15) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255,255,255,0.15) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(255,255,255,0.15) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, 0.12) 75%);
  background-size: 50px 50px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
  min-height: 100vh;
}

html,
body {
  overflow-x: hidden;
  font-family: "Poppins", Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #f0f0f0;
  background-image: 
    linear-gradient(45deg, rgba(255,255,255,0.15) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255,255,255,0.15) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(255,255,255,0.15) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(255,255,255,0.15) 75%);
  background-size: 50px 50px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
  position: relative;
}

/* Geometric pattern background */

/* About Carousel Styles */
.about-carousel-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0;
}

.about-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 10px 28px 0 rgba(30, 40, 90, 0.18);
}

.about-carousel-track {
  display: flex;
  gap: 2rem; /* Equal gaps between items */
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  padding: 0 1rem; /* Add padding for first and last items */
}

.about-carousel-item {
  flex: 0 0 calc(33.333333% - 1.333333rem); /* 3 items per view with gap consideration */
  height: 420px; /* Increased desktop height */
  overflow: hidden;
  border-radius: 16px;
}

.about-carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

.about-carousel-item:hover img {
  transform: scale(1.05);
}

.about-carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  font-size: 1.2rem;
  color: #183f85;
}

.about-carousel-nav:hover {
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  transform: translateY(-50%) scale(1.1);
}

.about-carousel-nav.prev {
  left: -24px;
}

.about-carousel-nav.next {
  right: -24px;
}

.about-carousel-nav:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: translateY(-50%) scale(1);
}

/* Banner Styles */
.hero-banner {
  width: 100vw;
  height: 55vh;
  max-width: 100vw;
  overflow: hidden;
  position: relative;
  margin-bottom: 0;
  padding-bottom: 0;
  background: transparent;
}

.hero-banner img,
.carousel-item img {
  width: 100%;
  height: 55vh;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Hero Placeholder Styles */
.hero-placeholder {
  width: 100%;
  height: 100%;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-placeholder::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent;
}

.placeholder-content {
  text-align: center;
  z-index: 2;
  position: relative;
  color: #183f85;
}

.placeholder-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

.placeholder-content p {
  font-size: 1.2rem;
  color: #6c757d;
  margin: 0;
  font-weight: 400;
}

/* Cards Carousel (hero replacement) */
.cards-carousel {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 3.5rem; /* room for nav buttons */
}

.cards-carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2rem) / 3);
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 0.25rem;
  /* hide scrollbar (Firefox) */
  scrollbar-width: none;
}

.cards-carousel-track::-webkit-scrollbar { display: none; }

.cards-carousel-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(30, 40, 90, 0.14);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  scroll-snap-align: start;
}

.cards-carousel-item img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.cards-carousel-title {
  width: 100%;
  padding: 0.6rem 0.8rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #183f85;
  text-align: left;
}

.cards-carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #e0e0e0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.cards-carousel-nav.prev {
  left: 1rem;
}
.cards-carousel-nav.next {
  right: 1rem;
}
.cards-carousel-nav:hover {
  background: #f7f7f7;
}
.cards-carousel-nav:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* About Section and Card Styles */
.about-section {
  margin-top: 0;
  padding-top: 0;
  position: relative;
  z-index: 1;
}

/* About Header with Icon */
.about-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
/* About Highlights */
.about-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(24, 63, 133, 0.1);
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(24, 63, 133, 0.05);
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #183f85;
  transition: all 0.3s ease;
}

.highlight-item:hover {
  background: rgba(24, 63, 133, 0.1);
  transform: translateY(-2px);
}

.highlight-item i {
  color: #667eea;
  font-size: 1rem;
}

/* Mission Goals */
.mission-goals {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(24, 63, 133, 0.1);
}

.goal-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(46, 204, 64, 0.05);
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #183f85;
  transition: all 0.3s ease;
}

.goal-item:hover {
  background: rgba(46, 204, 64, 0.1);
  transform: translateX(5px);
}

.goal-item i {
  color: #2ecc40;
  font-size: 1.1rem;
}

/* Section and Spacing */
.full-screen-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 4rem 0;
  margin-bottom: 0;
  background: transparent !important;
  position: relative;
  z-index: 1;
}

/* Layout proportions: Text 2/3, Image 1/3 */
.full-screen-section .col-lg-8 {
  width: 66.666667%;
  flex: 0 0 66.666667%;
  max-width: 66.666667%;
}

.full-screen-section .col-lg-4 {
  width: 33.333333%;
  flex: 0 0 33.333333%;
  max-width: 33.333333%;
}

.about-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 24px 24px 24px 24px;
  box-shadow: 0 10px 28px 0 rgba(30, 40, 90, 0.18);
  width: 100%;
  height: auto; /* Let content define height */
  min-height: 420px; /* Increased desktop baseline */
  box-sizing: border-box; /* include padding/border in height */
  padding: 2.5rem 2rem;
  text-align: left;
  outline-offset: 3px;
  transition: box-shadow 0.3s cubic-bezier(0.24, 0.68, 0.45, 1.12),
    transform 0.25s cubic-bezier(0.24, 0.68, 0.45, 1.12);
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  border-right: none;
  position: relative;
  z-index: 2;
}

.about-card:hover,
.about-card:focus-within {
  box-shadow: 0 16px 48px 0 rgba(30, 40, 90, 0.22);
  transform: translateY(-6px) scale(1.015);
}

.about-title {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #183f85;
  margin-bottom: 1rem;
  text-align: left;
}

.about-title.mt-4 {
  margin-top: 1.2rem !important;
}

.about-text {
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.5rem;
  color: #444;
  margin: 0 0 0.7rem 0;
  text-align: justify;
}

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

.about-image-square {
  width: 100%;
  height: 200px; /* Increased desktop height */
  /* match card baseline */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box; /* include border in height */
  padding: 0;
  margin: 0 auto; /* Center the image square */
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 28px 0 rgba(30, 40, 90, 0.18);
  position: relative;
  z-index: 2;
}

.about-image-square img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0 24px 24px 0; /* default: image on the right, round right corners */
}

/* Fix border radius when row is reversed (image on the left) */
@media (min-width: 768px) {
  .flex-md-row-reverse .about-image-square img {
    border-radius: 24px 0 0 24px; /* round left corners when image is on the left */
  }
}

/* Desktop equal-height layout for side image and text card */
@media (min-width: 992px) {
  .full-screen-section {
    align-items: stretch; /* stretch columns to equal height */
  }
  .full-screen-section .col-lg-8,
  .full-screen-section .col-lg-4 {
    display: flex; /* allow inner blocks to stretch */
  }
  .full-screen-section .col-lg-8 > .about-card,
  .full-screen-section .col-lg-4 > .about-image-square {
    height: 100%; /* match heights */
  }
}


/* Fade Up Animation */
.fadeUp {
  opacity: 0;
  transform: translateY(60px);
  will-change: opacity, transform;
  transition: none;
}

.section-divider {
  height: 3px;
  width: 80vw;
  margin: 0 auto 2.5rem auto;
  border-radius: 20px;
  background: linear-gradient(90deg, #2186eb 0%, #02d4ff 100%);
  opacity: 0.15;
  position: relative;
  z-index: 2;
}

/* -- Why Choose Section -- */
.why-choose-section {
  background: transparent !important;
  padding: 4rem 0;
  position: relative;
  z-index: 1;
}

.why-choose-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #183f85;
  margin-bottom: 3rem;
  text-align: center;
}

.feature-box {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  box-shadow: 0 1px 16px rgba(34, 54, 130, 0.12);
  padding: 1.5rem 1rem;
  text-align: center;
  height: 100%;
  transition: box-shadow 0.25s cubic-bezier(0.24, 0.68, 0.45, 1.12),
    transform 0.2s cubic-bezier(0.24, 0.68, 0.45, 1.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.feature-box:hover {
  box-shadow: 0 8px 38px rgba(34, 54, 130, 0.24);
  transform: translateY(-7px) scale(1.04);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
}

.feature-icon i.bi-check-circle-fill {
  color: #2ecc40 !important;
}

.feature-title {
  font-size: 1rem;
  font-weight: 600;
  color: #183f85;
  margin-bottom: 0.5rem;
  margin-top: 0;
  text-align: center;
}

.feature-text {
  color: #444;
  font-size: 0.95rem;
  line-height: 1.4;
  text-align: center;
  margin: 0;
}

.enquire-section {
  padding-top: 3rem;
  text-align: center;
  position: relative;
  z-index: 2;
}

.enquire-btn {
  font-size: 1rem;
  padding: 0.7em 1.6em;
  border-radius: 26px;
  font-weight: 600;
  letter-spacing: 0.6px;
  box-shadow: 0 3px 12px rgb(16 180 72 / 13%);
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.enquire-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgb(16 180 72 / 20%);
  text-decoration: none;
}

/* Bootstrap subtle backgrounds fallback for icons */
.bg-primary-subtle {
  background: #e3eefd !important;
  color: #2b57cf !important;
}
.bg-info-subtle {
  background: #e0f2fc !important;
  color: #19c1e6 !important;
}
.bg-warning-subtle {
  background: #fff5de !important;
  color: #f1ba1a !important;
}
.bg-success-subtle {
  background: #eaefe5 !important;
  color: #249c54 !important;
}
.bg-danger-subtle {
  background: #fde8e8 !important;
  color: #dc2626 !important;
}
.bg-secondary-subtle {
  background: #f3f4f6 !important;
  color: #6b7280 !important;
}

/* Service Tags Section */
.service-tags-section {
  padding: 1.5rem 0;
  background: transparent;
  position: relative;
  z-index: 2;
  margin-top: -100px;
  margin-bottom: 100px;c  /* Pull tags up onto the hero section */
  transition: margin-top 0.3s ease; /* Smooth transition */
}

.service-tags-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 0 1rem;
  margin: 0 auto; /* Ensure container is centered */
  max-width: 1200px; /* Limit container width */
}

.service-tag {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.3s ease;
  font-weight: bold;
  color: #000000;
 
  padding: 1rem 1.5rem;
  border-radius: 12px;
  
}

.service-tag i {
  font-size: 1.5rem;
  color: #667eea;
}

/* Responsive Styles */
@media (max-width: 1199.98px) {
  .hero-banner {
    height: 52vh;
  }
  
  .hero-banner img,
  .carousel-item img {
    height: 52vh;
  }
  
  .placeholder-content h1 {
    font-size: 3.2rem;
  }
  
  .placeholder-content p {
    font-size: 1.15rem;
  }
}

@media (max-width: 991.98px) {
  .hero-banner {
    height: 50vh;
  }
  
  .hero-banner img,
  .carousel-item img {
    height: 50vh;
  }
  
  .placeholder-content h1 {
    font-size: 3rem;
  }
  
  .placeholder-content p {
    font-size: 1.1rem;
  }
  
  .service-tag {
    margin-top: -80px;
  }
  
  .service-tag i {
    font-size: 1.3rem;
  }
  
  .full-screen-section {
    padding: 3rem 0;
  }
  
  .full-screen-section .col-lg-8,
  .full-screen-section .col-lg-4 {
    width: 100%;
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  .full-screen-section .col-lg-4 {
    margin-top: 2rem;
  }
  
  .flex-md-row-reverse {
    flex-direction: column !important;
  }
  
  .about-card {
    padding: 2rem 1.5rem;
    height: auto; /* Let content define height on tablet */
    min-height: 320px; /* smaller baseline on tablet */
  }
  
  .about-title {
    font-size: 1.7rem;
  }
  
  .about-text {
    font-size: 0.95rem;
  }
  
  .about-image-square {
    height: 300px; /* Smaller image on tablet */
    margin: 0 auto;
  }
  
  .about-highlights {
    gap: 0.75rem;
  }
  
  .highlight-item {
    font-size: 0.85rem;
    padding: 0.4rem 0.9rem;
  }
  
  .mission-goals {
    gap: 0.6rem;
  }
  
  .goal-item {
    font-size: 0.9rem;
    padding: 0.65rem 0.9rem;
  }
  
  .why-choose-title {
    font-size: 1.8rem;
  }
  
  .feature-box {
    padding: 1.3rem 0.8rem;
  }
  
  .feature-title {
    font-size: 0.95rem;
  }
  
  .feature-text {
    font-size: 0.9rem;
  }
  
  .feature-icon {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  
  .section-divider {
    width: 90vw;
    margin: 0 auto 2rem auto;
  }
  
  .enquire-btn {
    font-size: 0.95rem;
    padding: 0.65em 1.5em;
  }
  
  .cards-carousel {
    padding: 1rem 3rem;
  }
  
  .cards-carousel-track {
    grid-auto-columns: calc((100% - 1.5rem) / 2.5);
    gap: 0.8rem;
  }
  
  .cards-carousel-item img {
    height: 320px;
  }
  
  .cards-carousel-nav {
    width: 34px;
    height: 34px;
  }
  
  .about-carousel-item {
    flex: 0 0 calc(50% - 1rem); /* Show 2 items on tablet */
    height: 300px; /* Reduce height on tablet */
  }
  
  .about-carousel-nav {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }
  
  .about-carousel-nav.prev {
    left: -22px;
  }
  
  .about-carousel-nav.next {
    right: -22px;
  }
  
  .about-header {
    gap: 0.75rem;
    margin-bottom: 1.25rem;
  }
  
  .fadeUp {
    transform: translateY(50px);
  }
  
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (max-width: 767.98px) {
  /* Hero placeholder adjustments */
  .placeholder-content h1 {
    font-size: 2.5rem;
  }
  
  .placeholder-content p {
    font-size: 1rem;
  }
  
  .hero-banner {
    height: 45vh;
  }
  
  .hero-banner img,
  .carousel-item img {
    height: 45vh;
  }

  /* Cards carousel sizing */
  .cards-carousel {
    padding: 0.75rem 2.5rem;
  }
  .cards-carousel-track {
    grid-auto-columns: calc((100% - 1rem) / 2);
    gap: 0.75rem;
  }
  .cards-carousel-item img {
    height: 260px;
  }

  /* Section adjustments */
  .full-screen-section {
    min-height: auto;
    padding: 2rem 0;
    margin-bottom: 0;
  }

  /* Full width columns on mobile */
  .full-screen-section .col-lg-8,
  .full-screen-section .col-lg-4 {
    width: 100%;
    flex: 0 0 100%;
    max-width: 100%;
  }

  /* About Card adjustments */
  .about-card {
    padding: 1.5rem 1rem;
    max-width: 100%;
    margin-bottom: 1rem;
    height: auto;
    min-height: auto;
    border-radius: 24px;
  }

  /* Title & Text size */
  .about-title {
    font-size: 1.6rem;
    text-align: center;
  }

  .about-text {
    font-size: 0.92rem;
    line-height: 1.4;
    margin: 0 0 0.8rem 0;
    text-align: left;
  }

  /* Image spacing */
  .about-image-square {
    width: 100%;
    height: 500px;
    max-width: 100%;
    margin: 1rem auto 0 auto; /* Center the image square and add top margin */
    border-radius: 24px;
  }

  .flex-md-row-reverse {
    flex-direction: column !important;
  }

  .why-choose-title {
    font-size: 1.35rem;
  }

  .feature-box {
    padding: 1.2rem 0.65rem 1rem 0.65rem;
    margin-bottom: 1rem;
  }

  .why-choose-section {
    padding: 2rem 0;
  }

  .enquire-section {
    padding-top: 2rem;
  }

  /* About Carousel mobile adjustments */
  .about-carousel-container {
    padding: 1rem 0;
  }
  
  .about-carousel-track {
    gap: 1rem; /* Smaller gaps on mobile */
    padding: 0 0.5rem;
  }
  
  .about-carousel-item {
    flex: 0 0 calc(33.333333% - 0.666667rem); /* Adjust for smaller gap */
    height: 300px; /* Same as mobile about-image-square */
  }
  
  .about-carousel-nav {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .about-carousel-nav.prev {
    left: -20px;
  }
  
  .about-carousel-nav.next {
    right: -20px;
  }
  
  /* Service Tags mobile adjustments */
  .service-tags-container {
    gap: 1rem;
    flex-direction: column; /* Stack tags vertically on mobile */
    align-items: center; /* Center tags in the column */
  }
  
  .service-tag {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    margin: 0 auto; /* Center tags on mobile */
  }
  
  .service-tag i {
    font-size: 1.2rem;
  }
  
  .section-divider {
    width: 95vw;
    margin: 0 auto 1.5rem auto;
  }
  
  .enquire-btn {
    font-size: 0.9rem;
    padding: 0.6em 1.4em;
  }
  
  .fadeUp {
    transform: translateY(40px);
  }
  
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (max-width: 575.98px) {
  .about-card {
    padding: 1.25rem 0.75rem;
  }
  
  .about-title {
    font-size: 1.4rem;
  }
  
  .about-text {
    font-size: 0.88rem;
  }
  
  .feature-box {
    padding: 1rem 0.5rem;
  }
  
  .feature-title {
    font-size: 0.9rem;
  }
  
  .feature-text {
    font-size: 0.85rem;
  }
  
  .hero-banner {
    height: 40vh;
  }
  
  .hero-banner img,
  .carousel-item img {
    height: 40vh;
  }
  
  /* New elements mobile adjustments */
  .about-header {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
  
  .about-icon {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  
  .about-highlights {
    justify-content: center;
    gap: 0.5rem;
  }
  
  .highlight-item {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
  
  .mission-goals {
    gap: 0.5rem;
  }
  
  .goal-item {
    font-size: 0.85rem;
    padding: 0.6rem 0.8rem;
  }
  
  /* Service Tags mobile adjustments */
  .service-tags-container {
    flex-direction: column;
    align-items: center;
  }
  
  .service-tag {
    width: 80%;
    justify-content: center;
    margin: 0 auto; /* Center tags on small screens */
    padding: 0.8rem 1rem; /* Adjust padding for small screens */
  }
  
  .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}
