body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.hero-section {
  min-height: 80vh;
  padding-top: 6rem;
  padding-bottom: 4rem;
  background: radial-gradient(circle at top left, #20a4ff 0, #004b7c 40%, #001722 100%);
  color: #f8f9fa;
}
.hero-image {
  max-height: 420px;
  object-fit: cover;
}
.event-banner {
  background: linear-gradient(135deg, #111827, #1f2937);
  color: #f9fafb;
}
.solution-card {
  background-color: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.3);
}
.partner-logo {
  max-height: 70px;
  object-fit: contain;
}
.about-logo {
  max-height: 120px;
  object-fit: contain;
}
.partners-strip {
  background: #f3f4f6;
}
.partner-logo-small {
  max-height: 40px;
  object-fit: contain;
}
footer.bg-black {
  background: #020617 !important;
}

#heroSlider {
  position: relative;
}
.hero-slide {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  position: absolute;
  inset: 0;
}
.hero-slide.active {
  opacity: 1;
  transform: translateY(0);
  position: relative;
}
.hero-section {
  overflow: hidden;
}

@media (max-width: 991.98px) {
  .hero-slide {
    position: static;
  }
}
/* ===== HERO & LAYOUT RESPONSIVE TWEAKS ===== */

/* Base hero styling – works for both desktop & mobile */
.hero-section {
  padding-top: 6rem;   /* keep space below fixed navbar */
  padding-bottom: 4rem;
}

/* Make slides transition cleaner if you use opacity/display in CSS */
.hero-slide {
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Desktop & large screens */
@media (min-width: 992px) {
  .hero-section {
    min-height: calc(100vh - 72px); /* fills screen without feeling too tall */
  }

  .hero-section .display-5 {
    font-size: 2.75rem;
  }

  .hero-section .lead {
    font-size: 1.1rem;
    max-width: 36rem;
  }

  .hero-image {
    max-width: 90%;
  }
}

/* Tablets & mobiles */
@media (max-width: 991.98px) {
  /* Let content define height, remove “giant hero” effect */
  .hero-section {
    min-height: auto;
    padding-top: 5rem;
    padding-bottom: 2.5rem;
  }

  /* Put text first, image below for better reading flow */
  .hero-section .row {
    flex-direction: column-reverse;
    text-align: left;
  }

  .hero-section .col-lg-7,
  .hero-section .col-lg-5 {
    width: 100%;
  }

  /* Typo & button sizing for small screens */
  .hero-section .display-5 {
    font-size: 1.8rem;
    line-height: 1.2;
  }

  .hero-section .lead {
    font-size: 1rem;
  }

  .hero-section .btn-lg {
    padding: 0.6rem 1.1rem;
    font-size: 0.95rem;
  }

  .hero-section .tracking {
    font-size: 0.75rem;
  }

  /* Hero image: smaller & centered */
  .hero-image {
    max-width: 80%;
    margin: 0 auto 0.5rem auto;
  }

  /* Navbar compact on mobile */
  .navbar {
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
  }

  /* Sections: reduce padding a bit on mobile to avoid feeling too “tall” */
  section {
    scroll-margin-top: 4.5rem; /* nicer anchor scroll under fixed navbar */
  }

  #solutions,
  #labs,
  #erp,
  #awards,
  #workshops,
  #about,
  #contact,
  #event {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }
}

/* Extra-small phones */
@media (max-width: 575.98px) {
  .hero-section .display-5 {
    font-size: 1.6rem;
  }

  .hero-section .lead {
    font-size: 0.95rem;
  }

  .hero-image {
    max-width: 90%;
  }
}
/* ===== HERO: MINIMAL HEIGHT, DESKTOP + MOBILE ===== */
.hero-section {
  /* Stop it from behaving like full-screen banner */
  display: block;
  min-height: auto !important;
  padding-top: 6rem;   /* below fixed navbar */
  padding-bottom: 3rem;
}

/* Hero layout & typography for desktop */
@media (min-width: 992px) {
  .hero-section {
    padding-top: 6.5rem;
    padding-bottom: 3.5rem; /* not too tall */
  }

  .hero-section .display-5 {
    font-size: 2.4rem;
    line-height: 1.2;
  }

  .hero-section .lead {
    font-size: 1.05rem;
    max-width: 36rem;
  }

  .hero-image {
    max-width: 85%;
  }
}

/* Hero layout & typography for tablets + mobiles */
@media (max-width: 991.98px) {
  .hero-section {
    padding-top: 5rem;
    padding-bottom: 2.5rem;
  }

  /* Put image below text on small screens */
  .hero-section .row {
    flex-direction: column-reverse;
    text-align: left;
  }

  .hero-section .col-lg-7,
  .hero-section .col-lg-5 {
    width: 100%;
  }

  .hero-section .display-5 {
    font-size: 1.7rem;
    line-height: 1.25;
  }

  .hero-section .lead {
    font-size: 0.98rem;
  }

  .hero-section .btn-lg {
    padding: 0.55rem 1.05rem;
    font-size: 0.95rem;
  }

  .hero-image {
    max-width: 80%;
    margin: 0 auto 0.75rem auto;
  }
}

/* Extra-small phones */
@media (max-width: 575.98px) {
  .hero-section .display-5 {
    font-size: 1.55rem;
  }

  .hero-section .lead {
    font-size: 0.94rem;
  }

  .hero-image {
    max-width: 90%;
  }
}

/* ===== SECTION SPACING & TYPOGRAPHY ===== */

/* Slightly tighter sections overall (still readable) */
section[id] {
  scroll-margin-top: 5rem; /* nice anchor scroll under fixed navbar */
}

/* Desktop section spacing */
@media (min-width: 992px) {
  #solutions,
  #labs,
  #erp,
  #awards,
  #workshops,
  #about,
  #contact,
  #event {
    padding-top: 3.5rem !important;
    padding-bottom: 3.5rem !important;
  }

  #solutions h2,
  #labs h2,
  #erp h2,
  #awards h2,
  #workshops h2,
  #about h2,
  #contact h2,
  #event h2 {
    font-size: 2rem;
  }

  #solutions p,
  #labs p,
  #erp p,
  #awards p,
  #workshops p,
  #about p,
  #contact p,
  #event p {
    font-size: 1rem;
  }
}

/* Mobile section spacing & fonts */
@media (max-width: 991.98px) {
  #solutions,
  #labs,
  #erp,
  #awards,
  #workshops,
  #about,
  #contact,
  #event {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }

  #solutions h2,
  #labs h2,
  #erp h2,
  #awards h2,
  #workshops h2,
  #about h2,
  #contact h2,
  #event h2 {
    font-size: 1.6rem;
  }

  #solutions p,
  #labs p,
  #erp p,
  #awards p,
  #workshops p,
  #about p,
  #contact p,
  #event p {
    font-size: 0.96rem;
  }
}

/* Cards slightly tighter and clean */
.solution-card,
#erp .card,
#awards .card,
#workshops .card {
  border-radius: 1rem;
}

.solution-card h3 {
  margin-bottom: 0.6rem;
}

/* ===== SWIPE HINT STYLE ===== */
.swipe-hint {
  opacity: 0.8;
}

@media (max-width: 991.98px) {
  .swipe-hint {
    font-size: 0.78rem;
    margin-top: 0.75rem;
  }
}
/* === FINAL HERO FIX: ONLY ACTIVE SLIDE TAKES SPACE === */

/* Make hero wrap content instead of being very tall */
.hero-section {
  min-height: auto !important;
  padding-top: 5rem;   /* below navbar */
  padding-bottom: 2.5rem;
}

/* Desktop: slightly more breathing space but still compact */
@media (min-width: 992px) {
  .hero-section {
    padding-top: 6rem;
    padding-bottom: 3rem;
  }
}

/* Core slider layout: non-active slides do NOT take height */
#heroSlider {
  position: relative;
}

/* All slides: hidden & absolutely positioned by default */
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(10px);
  display: none;
}

/* Active slide only: visible and participates in layout */
.hero-slide.active {
  position: relative;
  opacity: 1;
  transform: translateY(0);
  display: block;
}

/* Mobile layout: text first, image below, compact spacing */
@media (max-width: 991.98px) {
  .hero-section {
    padding-top: 5rem;
    padding-bottom: 2rem;
  }

  .hero-section .row {
    flex-direction: column-reverse;
    text-align: left;
  }

  .hero-section .col-lg-7,
  .hero-section .col-lg-5 {
    width: 100%;
  }

  .hero-section .display-5 {
    font-size: 1.6rem;
    line-height: 1.25;
  }

  .hero-section .lead {
    font-size: 0.95rem;
  }

  .hero-image {
    max-width: 85%;
    margin: 0 auto 0.75rem auto;
  }
}

/* Extra-small phones */
@media (max-width: 575.98px) {
  .hero-section .display-5 {
    font-size: 1.5rem;
  }

  .hero-section .lead {
    font-size: 0.9rem;
  }

  .hero-image {
    max-width: 90%;
  }
}
/* Enhanced solution cards */
.solution-card {
  background-color: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.solution-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.15);
  border-color: rgba(59, 130, 246, 0.7);
}

/* Icon bubble inside solution cards */
.solution-icon {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  color: #ffffff;
  font-size: 1.4rem;
}

/* Contact CTA pills */
.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.4);
}

/* WhatsApp button */
.contact-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.2rem;
  border-radius: 999px;
  background: #16a34a;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.contact-whatsapp:hover {
  color: #ffffff;
  opacity: 0.92;
}
