/* ============================= */
/*          GLOBAL STYLE         */
/* ============================= */

/* Font utama */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

html,
body {
  font-family: 'Poppins', sans-serif;
  color: #333;
  background-color: #fff;
  overflow-x: hidden !important;
  max-width: 100vw;
  width: 100%;
  -webkit-text-size-adjust: 100%;
}

.welcome-content {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* ============================= */
/*           4 CARD              */
/* ============================= */

#program {
  position: relative;
  top: -60px;
  z-index: 5;
}

.bg-purple {
  background-color: #cc33ff;
}

.bg-blue {
  background-color: #2a39e7;
}

.card-fitur {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-fitur:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}



@media (max-width: 768px) {
  #program {
    top: -40px;
  }
}

/* ============================= */
/*           NAVBAR              */
/* ============================= */

.navbar {
  font-family: 'Poppins', sans-serif;
  background-color: white;
  transition: all 0.3s ease;
  z-index: 1000;
  padding: 0.8rem 1rem;
}

.navbar .container-fluid {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo di kiri */
.navbar-brand {
  display: flex;
  align-items: center;
  margin-right: auto;
}

.navbar-brand img {
  height: 50px;
  width: auto;
  transition: transform 0.3s ease;
}

.navbar-brand:hover img {
  transform: scale(1.05);
}

/* Menu di kanan */
.navbar-collapse {
  flex-grow: 0 !important;
  justify-content: flex-end;
}

.navbar-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.nav-item .nav-link {
  font-size: 17px;
  font-weight: 600;
  color: #212529;
  position: relative;
  transition: all 0.3s ease;
  padding: 8px 12px;
}

.nav-item .nav-link:hover,
.nav-item .nav-link.active {
  color: #f97316 !important;
}

/* ============================= */
/* === Tombol PPDB Animasi === */
/* ============================= */
/* From Uiverse.io by Nawsome */
.continue-application {
  --color: #fff;
  --background: #404660;
  --background-hover: #3A4059;
  --background-left: #2B3044;
  --folder: #F3E9CB;
  --folder-inner: #BEB393;
  --paper: #FFFFFF;
  --paper-lines: #BBC1E1;
  --paper-behind: #E1E6F9;
  --pencil-cap: #fff;
  --pencil-top: #275EFE;
  --pencil-middle: #fff;
  --pencil-bottom: #5C86FF;
  --shadow: rgba(13, 15, 25, .2);
  border: none;
  outline: none;
  cursor: pointer;
  position: relative;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 500;
  line-height: 19px;
  display: inline-block;
  -webkit-tap-highlight-color: transparent;
  padding: 17px 29px 17px 69px;
  text-decoration: none;
  transition: background 0.3s;
  color: var(--color);
  background: var(--bg, var(--background));
}

.continue-application:hover,
.continue-application:focus {
  color: var(--color);
  text-decoration: none;
}

.continue-application>div {
  top: 0;
  left: 0;
  bottom: 0;
  width: 53px;
  position: absolute;
  overflow: hidden;
  border-radius: 5px 0 0 5px;
  background: var(--background-left);
}

.continue-application>div .button-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  color: var(--color);
  font-size: 24px;
  line-height: 1;
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.continue-application:hover>div .button-icon,
.continue-application:focus>div .button-icon {
  transform: translate(-50%, -50%) scale(1.12) rotate(-8deg);
}

.continue-application.button-news {
  --background: #263238;
  --background-hover: #1b3038;
  --background-left: #0d6efd;
}

.continue-application.button-video {
  --background: #4a2730;
  --background-hover: #3a1f27;
  --background-left: #dc3545;
}

.continue-application.button-gallery {
  --background: #303452;
  --background-hover: #252840;
  --background-left: #6f42c1;
}

.continue-application.button-register {
  --background: #404660;
  --background-hover: #3A4059;
  --background-left: #2B3044;
}

.continue-application.button-principal {
  --background: #343a40;
  --background-hover: #27313a;
  --background-left: #1004b5;
}

.continue-application.home-action-button {
  --button-height: 42px;
  --button-icon-width: 42px;
  align-items: center;
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  justify-content: center;
  line-height: 1;
  min-width: 138px;
  min-height: var(--button-height);
  padding: 0 24px 0 calc(var(--button-icon-width) + 14px);
  white-space: nowrap;
}

.continue-application.home-action-button>div {
  width: var(--button-icon-width);
}

.continue-application.home-action-button .button-icon {
  font-size: 18px;
}

.continue-application.home-action-button::before,
.continue-application.home-action-button::after {
  right: 12px;
  top: 50%;
  transform: translateY(-50%) translateX(var(--cx, 0)) scale(0.45) rotate(var(--r, -45deg));
}

.continue-application.home-action-button-sm {
  --button-height: 36px;
  --button-icon-width: 36px;
  font-size: 12px;
  min-width: 104px;
  padding-left: calc(var(--button-icon-width) + 12px);
  padding-right: 18px;
}

.continue-application.home-action-button-wide {
  min-width: 172px;
  padding-right: 26px;
}

.continue-application>div .folder {
  width: 23px;
  height: 27px;
  position: absolute;
  left: 15px;
  top: 13px;
}

.continue-application>div .folder .top {
  left: 0;
  top: 0;
  z-index: 2;
  position: absolute;
  transform: translateX(var(--fx, 0));
  transition: transform 0.4s ease var(--fd, 0.3s);
}

.continue-application>div .folder .top svg {
  width: 24px;
  height: 27px;
  display: block;
  fill: var(--folder);
  transform-origin: 0 50%;
  transition: transform 0.3s ease var(--fds, 0.45s);
  transform: perspective(120px) rotateY(var(--fr, 0deg));
}

.continue-application>div .folder:before,
.continue-application>div .folder:after,
.continue-application>div .folder .paper {
  content: "";
  position: absolute;
  left: var(--l, 0);
  top: var(--t, 0);
  width: var(--w, 100%);
  height: var(--h, 100%);
  border-radius: 1px;
  background: var(--b, var(--folder-inner));
}

.continue-application>div .folder:before {
  box-shadow: 0 1.5px 3px var(--shadow), 0 2.5px 5px var(--shadow), 0 3.5px 7px var(--shadow);
  transform: translateX(var(--fx, 0));
  transition: transform 0.4s ease var(--fd, 0.3s);
}

.continue-application>div .folder:after,
.continue-application>div .folder .paper {
  --l: 1px;
  --t: 1px;
  --w: 21px;
  --h: 25px;
  --b: var(--paper-behind);
}

.continue-application>div .folder:after {
  transform: translate(var(--pbx, 0), var(--pby, 0));
  transition: transform 0.4s ease var(--pbd, 0s);
}

.continue-application>div .folder .paper {
  z-index: 1;
  --b: var(--paper);
}

.continue-application>div .folder .paper:before,
.continue-application>div .folder .paper:after {
  content: "";
  width: var(--wp, 14px);
  height: 2px;
  border-radius: 1px;
  transform: scaleY(0.5);
  left: 3px;
  top: var(--tp, 3px);
  position: absolute;
  background: var(--paper-lines);
  box-shadow: 0 12px 0 0 var(--paper-lines), 0 24px 0 0 var(--paper-lines);
}

.continue-application>div .folder .paper:after {
  --tp: 6px;
  --wp: 10px;
}

.continue-application>div .pencil {
  height: 2px;
  width: 3px;
  border-radius: 1px 1px 0 0;
  top: 8px;
  left: 105%;
  position: absolute;
  z-index: 3;
  transform-origin: 50% 19px;
  background: var(--pencil-cap);
  transform: translateX(var(--pex, 0)) rotate(35deg);
  transition: transform 0.4s ease var(--pbd, 0s);
}

.continue-application>div .pencil:before,
.continue-application>div .pencil:after {
  content: "";
  position: absolute;
  display: block;
  background: var(--b, linear-gradient(var(--pencil-top) 55%, var(--pencil-middle) 55.1%, var(--pencil-middle) 60%, var(--pencil-bottom) 60.1%));
  width: var(--w, 5px);
  height: var(--h, 20px);
  border-radius: var(--br, 2px 2px 0 0);
  top: var(--t, 2px);
  left: var(--l, -1px);
}

.continue-application>div .pencil:before {
  -webkit-clip-path: polygon(0 5%, 5px 5%, 5px 17px, 50% 20px, 0 17px);
  clip-path: polygon(0 5%, 5px 5%, 5px 17px, 50% 20px, 0 17px);
}

.continue-application>div .pencil:after {
  --b: none;
  --w: 3px;
  --h: 6px;
  --br: 0 2px 1px 0;
  --t: 3px;
  --l: 3px;
  border-top: 1px solid var(--pencil-top);
  border-right: 1px solid var(--pencil-top);
}

.continue-application:before,
.continue-application:after {
  content: "";
  position: absolute;
  width: 10px;
  height: 2px;
  border-radius: 1px;
  background: var(--color);
  transform-origin: 9px 1px;
  transform: translateX(var(--cx, 0)) scale(0.5) rotate(var(--r, -45deg));
  top: 26px;
  right: 16px;
  transition: transform 0.3s;
}

.continue-application:after {
  --r: 45deg;
}

.continue-application:hover {
  --cx: 2px;
  --bg: var(--background-hover);
  --fx: -40px;
  --fr: -60deg;
  --fd: .15s;
  --fds: 0s;
  --pbx: 3px;
  --pby: -3px;
  --pbd: .15s;
  --pex: -24px;
}

/* === Button Progress Flip === */
.btn-96,
.btn-96 *,
.btn-96::after,
.btn-96::before,
.btn-96 *::after,
.btn-96 *::before {
  border: 0 solid;
  box-sizing: border-box;
}

.btn-96 {
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: button;
  appearance: button;
  background-color: #000;
  background-image: none;
  color: #fff;
  cursor: pointer;
  display: inline-block;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: 100%;
  font-weight: 900;
  line-height: 1.5;
  margin: 0;
  padding: 2rem 5rem;
  perspective: 800px;
  position: relative;
  isolation: isolate;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transform-style: preserve-3d;
  -webkit-mask-image: none;
  mask-image: none;
}

.btn-96:hover,
.btn-96:focus {
  color: #fff;
  text-decoration: none;
}

.btn-96:disabled {
  cursor: default;
}

.btn-96:-moz-focusring {
  outline: auto;
}

.btn-96 svg {
  display: block;
}

.btn-96 [hidden] {
  display: none;
}

.btn-96 span {
  background: #fff;
  color: #000;
  display: grid;
  inset: 0;
  min-height: 100%;
  padding: inherit;
  place-items: center;
  position: absolute;
  transform: rotateX(0deg);
  transform-origin: top center;
  transition: 0.2s;
  z-index: 2;
}

.btn-96:hover span,
.btn-96:focus span {
  transform: rotateX(35deg);
}

.btn-96::after,
.btn-96::before {
  background: #ddd;
  content: "";
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  transform: rotateX(0deg);
  width: 100%;
  z-index: 0;
}

.btn-96::after {
  background: #ccc;
  width: 0;
  z-index: 1;
}

.btn-96:hover::after,
.btn-96:focus::after {
  animation: progress-bar 1.2s;
}

@-webkit-keyframes progress-bar {
  0% {
    opacity: 1;
    width: 0;
  }

  10% {
    opacity: 1;
    width: 15%;
  }

  25% {
    opacity: 1;
    width: 25%;
  }

  40% {
    opacity: 1;
    width: 35%;
  }

  55% {
    opacity: 1;
    width: 75%;
  }

  60% {
    opacity: 1;
    width: 100%;
  }

  to {
    opacity: 0;
    width: 100%;
  }
}

@keyframes progress-bar {
  0% {
    opacity: 1;
    width: 0;
  }

  10% {
    opacity: 1;
    width: 15%;
  }

  25% {
    opacity: 1;
    width: 25%;
  }

  40% {
    opacity: 1;
    width: 35%;
  }

  55% {
    opacity: 1;
    width: 75%;
  }

  60% {
    opacity: 1;
    width: 100%;
  }

  to {
    opacity: 0;
    width: 100%;
  }
}

/* ============================= */
/*         DROPDOWN MENU         */
/* ============================= */

.navbar .dropdown-menu {
  border: none;
  padding: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  min-width: 220px;
  border-radius: 6px;
  overflow: hidden;
}

.navbar .dropdown-item {
  padding: 10px 16px;
  border-bottom: 1px solid #ccc;
  color: #000000;
  background-color: #fff;
  transition: all 0.3s ease;
  font-weight: 500;
}

/* Hover effect */
.navbar .dropdown-item:hover {
  background-color: #004d60;
  color: #fff !important;
  font-weight: 600;
}

/* ============================= */
/*        SCROLL & RESPONSIVE    */
/* ============================= */

.scroll-nav-active {
  background-color: white;
  box-shadow: 1px 1px 11px -1px rgba(1, 1, 1, 0.08);
}

.text-nav-active {
  color: black;
}

@media (max-width: 992px) {
  .navbar {
    white-space: normal;
  }

  .navbar-collapse {
    flex-grow: 1 !important;
    text-align: center;
    justify-content: center;
  }

  .navbar-nav {
    flex-direction: column;
    gap: 10px;
  }

  .navbar-nav .nav-item {
    margin: 6px 0;
  }
}

/* ============================= */
/*           BUTTONS             */
/* ============================= */

.btn-danger {
  background-color: #1004b5;
  border-radius: 10px;
  border-color: #1004b5;
  padding: 10px 45px;
  color: white;
  transition: all 0.3s ease;
}

.btn-outline-danger {
  background-color: transparent;
  border-radius: 10px;
  border: 2px solid #1004b5;
  padding: 10px 45px;
  color: #1004b5;
  transition: all 0.3s ease;
}

.btn-outline-danger:hover {
  background-color: #1004b5;
  color: white;
}

/* ============================= */
/*           HERO                */
/* ============================= */


#hero {
  background-color: #0f172a;
  background-image: url("../../assets/images/1.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  /* scroll: scoped to #hero only — fixed caused image to bleed onto all pages */
  height: 100vh;
  height: 100dvh;
  position: sticky;
  /* curtain: hero sticks while sections scroll over */
  top: 0;
  z-index: 0;
  /* sections (z-index:1) paint on top as they scroll up */
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Curtain reveal: every section after #hero slides over the pinned hero ── */
#hero~section,
#hero~div,
#footer {
  position: relative;
  z-index: 1;
  background-color: #ffffff;
}

#hero+* {
  margin-top: 0;
}

/* Give the footer the same stacking treatment */
#footer {
  position: relative;
  z-index: 1;
}

#hero .hero-ken-burns-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  transition: opacity 1.2s ease-in-out;
  will-change: transform, background-position;
}

#hero .hero-ken-burns-layer.is-active {
  opacity: 1;
}

#hero .hero-ken-burns-layer.is-top {
  z-index: 1;
}

#hero .hero-ken-burns-layer.ken-burns-zoom-right {
  animation: heroKenBurnsZoomRight 10s ease-in-out forwards;
}

#hero .hero-ken-burns-layer.ken-burns-zoom-left {
  animation: heroKenBurnsZoomLeft 10s ease-in-out forwards;
}

#hero .hero-ken-burns-layer.ken-burns-zoom-center {
  animation: heroKenBurnsZoomCenter 10s ease-in-out forwards;
}

#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  /* deeper overlay so text stays readable over any background photo */
  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0.60) 0%,
      rgba(0, 0, 0, 0.45) 60%,
      rgba(0, 0, 0, 0.55) 100%);
  pointer-events: none;
}

#hero .container {
  position: relative;
  z-index: 3;
  padding-top: 80px;
  /* offset for fixed navbar */
  width: 100%;
  transform-origin: center top;
  will-change: transform, opacity, filter;
  transition: transform 0.12s linear, opacity 0.12s linear, filter 0.12s linear;
}

#hero .container.hero-at-top {
  transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease, filter 0.4s ease;
  animation: heroBubblePop 0.65s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes heroBubblePop {
  0% {
    transform: scale(0.95) translateY(-10px);
    opacity: 0;
  }

  60% {
    transform: scale(1.02) translateY(2px);
    opacity: 1;
  }

  80% {
    transform: scale(0.99) translateY(-1px);
  }

  100% {
    transform: scale(1) translateY(0px);
    opacity: 1;
  }
}

.hero-title {
  position: relative;
  z-index: 3;
  padding-top: 0;
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}

/* ── Hero heading ── */
.hero-heading {
  margin: 0 auto;
  font-family: "Poppins", sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: rgba(183, 215, 228, 0.959);
  line-height: 1.15;
  max-width: 100%;
  width: 100%;
  text-align: center;
  white-space: nowrap;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.55),
    0 6px 24px rgba(0, 0, 0, 0.35);
}


/* ── Hero subtitle ── */
.hero-subtitle {
  display: block;
  margin: clamp(1rem, 2.5vw, 1.75rem) auto 0;
  max-width: 100%;
  font-family: "Poppins", sans-serif;
  font-size: clamp(0.65rem, 1.1vw + 0.2rem, 1.1rem);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #f97316;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
  white-space: nowrap;
}


.hero-subtitle-divider {
  margin: 0 0.4em;
  opacity: 0.55;
  font-weight: 300;
}

@media screen and (max-width: 768px) {
  .hero-heading {
    font-size: 26px !important;
    line-height: 1.3;
    white-space: normal !important;
  }

  .hero-subtitle {
    font-size: 12px !important;
    letter-spacing: 0.05em;
    margin-top: 15px;
    white-space: normal !important;
    line-height: 1.6;
    padding: 0 15px;
  }

  .hero-subtitle-divider {
    margin: 0 0.3em;
  }

  .hero-cta-wrapper {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 12px !important;
    padding: 0 10px;
    width: 100%;
    justify-content: center;
  }

  .hero-cta-wrapper .services-btn {
    flex: 1 1 50%;
    width: auto !important;
    max-width: 50% !important;
    font-size: 12px !important;
    padding: 12px 10px !important;
    min-width: 0 !important;
    white-space: normal !important;
    line-height: 1.3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* ── Hero CTA Button ── */
.hero-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;

  padding: 0.5rem 1.25rem;

  font-family: "Poppins", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;

  color: #ffffff;
  text-decoration: none;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.30);
  border-bottom: 2px solid #ce6215;
  border-radius: 4px;

  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  transition:
    background 0.28s ease,
    border-color 0.28s ease,
    color 0.28s ease,
    transform 0.22s ease,
    box-shadow 0.28s ease;

  position: relative;
  overflow: hidden;
}

.hero-cta-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.hero-cta-btn:hover::before,
.hero-cta-btn:focus::before {
  opacity: 1;
}

.hero-cta-btn:hover,
.hero-cta-btn:focus {
  color: #ffffff;
  border-color: #f97316;
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(249, 115, 22, 0.45);
  text-decoration: none;
}

.hero-cta-text {
  position: relative;
  z-index: 1;
}

.hero-cta-icon {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  font-size: 1.2em;
  transition: transform 0.25s ease;
}

.hero-cta-btn:hover .hero-cta-icon,
.hero-cta-btn:focus .hero-cta-icon {
  transform: translateX(4px);
}

@keyframes heroBtnPulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.65;
    transform: scale(1.18);
  }
}

@media (max-width: 480px) {
  .hero-cta-btn {
    width: 90%;
    justify-content: center;
  }
}

@keyframes heroKenBurnsZoomRight {
  0% {
    transform: scale(1.04);
    background-position: 45% 50%;
  }

  100% {
    transform: scale(1.18);
    background-position: 58% 46%;
  }
}

@keyframes heroKenBurnsZoomLeft {
  0% {
    transform: scale(1.04);
    background-position: 58% 48%;
  }

  100% {
    transform: scale(1.18);
    background-position: 43% 52%;
  }
}

@keyframes heroKenBurnsZoomCenter {
  0% {
    transform: scale(1.02);
    background-position: center;
  }

  100% {
    transform: scale(1.16);
    background-position: 50% 44%;
  }
}

/*
 * NOTE: Intentionally NOT disabling the hero animation under
 * `prefers-reduced-motion: reduce` (Windows "Animation effects = Off").
 * The hero Ken Burns effect must keep animating regardless of that OS setting.
 */

/* ============================= */

/* ============================= */
/*          RESPONSIVE           */
/* ============================= */
@media screen and (max-width: 800px) {

  /* iOS Safari: background-attachment:fixed breaks inside overflow:hidden.
     Fall back to scroll so the image still covers the hero correctly. */
  #hero {
    background-attachment: scroll;
    overflow-x: hidden;
  }

  .hero-heading {
    font-size: clamp(1.25rem, 4vw, 1.75rem);
    line-height: 1.28;
    padding: 0 8px;
  }

  .hero-subtitle {
    letter-spacing: 0.08em;
    font-size: clamp(0.7rem, 2.8vw, 0.95rem);
    padding: 0 8px;
  }
}

@media screen and (max-width: 480px) {

  /* Reduce navbar offset slightly on very small screens */
  #hero .container {
    padding-top: 70px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .hero-heading {
    font-size: clamp(1.15rem, 5.8vw, 1.65rem);
    line-height: 1.3;
  }

  /* Tighten letter-spacing so subtitle doesn't overflow narrow screens */
  .hero-subtitle {
    letter-spacing: 0.05em;
    font-size: 0.72rem;
    line-height: 1.6;
  }

  .hero-subtitle-divider {
    margin: 0 0.25em;
  }
}



/* ============================= */
/*           JOIN                */
/* ============================= */

.stripe {
  height: 5px;
  width: 40px;
  background-color: rgba(255, 90, 34, 0.9);
}

.activity-news-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.about-section-header {
  margin-bottom: 22px;
}

#about .about-layout,
#aboutindex .about-layout {
  width: 100%;
}

#about .about-body,
#aboutindex .about-body {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  align-items: start;
  column-gap: 20px;
}

#about .about-content,
#aboutindex .about-content {
  padding-top: 0;
}

@media (max-width: 991px) {
  .activity-news-header {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 767px) {

  #about .about-body,
  #aboutindex .about-body {
    grid-template-columns: 1fr;
    row-gap: 18px;
  }

  #about .about-principal-card,
  #aboutindex .about-principal-card {
    margin-left: 0;
  }
}

.img-frame {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* ============================= */
/*           VIDEO               */
/* ============================= */

#video {
  background-image: url('../../assets/images/il-bg-video.png');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  height: 500px;
}

iframe {
  border: none;
  border-radius: 10px;
  box-shadow: 0 0 15px white;
  transition: box-shadow 0.3s ease-in-out;
}

iframe:hover {
  box-shadow: 0 0 25px white;
}

/* ============================= */
/*           FOTO                */
/* ============================= */

.section-foto {
  background-attachment: fixed;
  background-position: top;
  background-size: cover;
  height: 500px;
  width: 100%;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: start;
  padding: 20px;
}

.parallax {
  background-image: url('../../assets/images/il-berita-02.png');
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
  height: 500px;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  background-blend-mode: darken;
}

.stripe-putih {
  height: 5px;
  width: 40px;
  background-color: #ffffff;
  border-radius: 3px;
}

/* ============================= */
/*           FOOTER              */
/* ============================= */

.nav-link .bi {
  transition: transform 0.3s ease, color 0.3s ease;
}

.nav-link:hover .bi {
  transform: scale(1.2);
  color: #007bff;
}

/* ============================= */
/*         KEPALA SEKOLAH        */
/* ============================= */

#about .card {
  border-radius: 0;
}

#about .about-principal-card,
#aboutindex .about-principal-card {
  width: min(120%, 150px);
  margin: 0 auto;
  background: rgb(236, 236, 236);
  border-radius: 0;
  box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px,
    rgba(0, 0, 0, 0.3) 0px 7px 13px -3px,
    rgba(0, 0, 0, 0.2) 0px -3px 0px inset;
  overflow: hidden;
}

#about .about-photo-card,
#aboutindex .about-photo-card {
  width: 100%;
  height: 158px;
}

#about .about-photo-card img,
#aboutindex .about-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#about .about-principal-info,
#aboutindex .about-principal-info {
  padding: 6px 8px 7px;
  background: #ffffff;
  border-top: 2px solid #1004b5;
}

#about {
  margin-top: -50px;
  /* naikkan agar mendekat ke card atas */
  padding-top: 40px;
  /* sedikit ruang di atas */
  padding-bottom: 60px;
  /* tetap lega di bawah */
  border: 4px solid #fff;
  border-radius: 0;
  font-size: 15px;
  line-height: 1.8;
}

#about p {
  font-size: 15px;
  line-height: 1.8;
}

.img-container {
  width: 70%;
  max-width: 300px;
  margin: 0 auto;
  transition: border-radius 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card {
  width: 100%;
  border-radius: 10px;
  background: white;
  overflow: hidden;
}

.shadow {
  box-shadow: inset 0 -3em 3em rgba(0, 0, 0, 0.1),
    0 0 0 2px rgb(190, 190, 190),
    0.3em 0.3em 1em rgba(0, 0, 0, 0.3);
}

.img-container img {
  width: 100%;
  height: auto;
  display: block;
}

#about .about-principal-card:hover,
#aboutindex .about-principal-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(16, 4, 181, 0.25);
}

#about .about-principal-info p,
#aboutindex .about-principal-info p {
  margin: 0;
  font-family: 'Poppins', sans-serif;
}

#about {
  margin-top: 70px;
  /* atau 80px kalau navbar lebih tinggi */
}


/* === ABOUT TEXT === */
#about .about-content p,
#aboutindex .about-content p {
  font-size: 13px !important;
  line-height: 1.55 !important;
  color: #333 !important;
  margin-bottom: 12px !important;
}

/* === NAMA KEPALA SEKOLAH === */
#about .about-principal-info p.fw-bold,
#aboutindex .about-principal-info p.fw-bold {
  font-size: 9px !important;
  font-weight: 700 !important;
  color: #000 !important;
  line-height: 1.25 !important;
}

/* === JABATAN KEPALA SEKOLAH === */
#about .about-principal-info .jabatan,
#aboutindex .about-principal-info .jabatan {
  font-size: 8px !important;
  color: #6c757d !important;
  line-height: 1.25 !important;
}



/* ============================= */
/*          SEARCH BUTTON        */
/* ============================= */

.contactButton {
  background: #000080;
  color: white;
  font-family: inherit;
  padding: 0.45em 3em 0.45em 1em;
  font-size: 17px;
  font-weight: 500;
  border-radius: 0.9em;
  border: none;
  cursor: pointer;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  box-shadow: inset 0 0 1.6em -0.6em #714da6;
  overflow: hidden;
  position: relative;
  height: 2.8em;
}

.iconButton {
  margin-left: 1em;
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2.2em;
  width: 2.2em;
  border-radius: 0.7em;
  right: 0.3em;
  transition: all 0.3s;
}

.contactButton:hover {
  transform: translate(-0.05em, -0.05em);
  box-shadow: 0.15em 0.15em #5566c2;
}

.contactButton:active {
  transform: translate(0.05em, 0.05em);
  box-shadow: 0.05em 0.05em #5566c2;
}



/* -----------------------------
   Footer
------------------------------ */

#footer {
  position: relative;
  padding: 0;
  color: #fff;
  font-size: 13px;
  background: #003b73;
  overflow: hidden;
}

#footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("/assets/images/footer_flight_route_map.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 100% auto;
  mix-blend-mode: multiply;
  opacity: 0.30;
  pointer-events: none;
  z-index: 0;
}

#footer .footer-top {
  background-color: #003b73;
  padding: 24px 0 22px;
}

#footer .footer-top>.container,
#footer .footer-bottom>.container {
  position: relative;
  z-index: 1;
}

#footer .footer-top .footer-links,
#footer .footer-top .footer-contact,
#footer .footer-top .footer-location {
  min-width: 0;
}

/* Lively Footer Pop Appear & Pop Out System */
#footer.footer-pop-ready .footer-pop-item {
  opacity: 0;
  transform: translateY(28px) scale(0.96);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.38s ease;
  will-change: transform, opacity;
}

#footer.footer-pop-ready .footer-pop-item.is-popped {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
}

#footer.footer-pop-ready .footer-pop-item.is-popping-out {
  opacity: 0;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.22s ease;
  transition-delay: 0ms !important;
}

#footer.footer-pop-ready .footer-pop-item:nth-child(1).is-popped {
  transition-delay: 0ms;
}

#footer.footer-pop-ready .footer-pop-item:nth-child(2).is-popped {
  transition-delay: 75ms;
}

#footer.footer-pop-ready .footer-pop-item:nth-child(3).is-popped {
  transition-delay: 150ms;
}

#footer.footer-pop-ready .footer-pop-item:nth-child(4).is-popped {
  transition-delay: 225ms;
}

#footer .footer-top .footer-links,
#footer .footer-top .footer-location {
  padding-top: 12px;
}

#footer .footer-top h4 {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 11px;
  margin-bottom: 14px;
  letter-spacing: 0;
}

#footer .footer-top h4::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  border-bottom: 2px solid #ffffff;
}


#footer .footer-contact-body {
  padding-left: 0;
}


#footer .footer-top .footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#footer .footer-top .footer-links ul li {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  padding: 6px 0;
}

#footer .footer-top .footer-links ul li:first-child {
  padding-top: 0;
}

#footer .footer-top .footer-links ul i {
  color: #ffffff;
  font-size: 12px;
  line-height: 1;
  flex: 0 0 14px;
  text-align: center;
  opacity: 0.92;
}

#footer .footer-top .footer-links ul a {
  display: block;
  min-width: 0;
  font-size: 13px;
  line-height: 1.25;
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s;
}

#footer .footer-top .footer-links ul a:hover {
  color: #00bfff;
}

#footer .footer-top .footer-contact p {
  color: #ffffff;
  line-height: 1.85;
  margin-bottom: 10px;
}

#footer .footer-top .social-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 10px;
}

#footer .footer-top .social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: #002e5f;
  line-height: 1;
  padding: 0;
  margin: 0;
  text-align: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: 0.3s;
}

#footer .footer-top .social-links a i {
  display: block;
  font-size: 20px;
  line-height: 1;
}

#footer .footer-top .social-links a:hover {
  background: #00bfff;
  color: #ffffff;
  transform: translateY(-3px);
}

#footer .map-container {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
}

#footer .map-container iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

#footer .map-container iframe:hover {
  box-shadow: none;
}

#footer .footer-bottom {
  background: #111;
  color: #fff;
  text-align: center;
  padding: 13px 0;
  font-size: 13px;
}

#footer .footer-company-name {
  color: #ff1818;
}

@media (max-width: 991px) {
  #footer .footer-top {
    padding: 28px 0;
  }

  #footer .footer-top .footer-links,
  #footer .footer-top .footer-location {
    padding-top: 0;
  }

  #footer .map-container {
    max-width: 100%;
  }

  #footer .footer-contact-body {
    padding-left: 0;
  }
}



/* Section Our Customer */
.trusted {
  background: #f3f4f6;
  /* abu muda lembut */
}

.trusted h2 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.8rem;
  color: #333;
  position: relative;
  display: inline-block;
}

/* Garis kecil di bawah judul */
.trusted h2::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: #b91c1c;
  border-radius: 3px;
}

/* Grid logo */
.logo-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 50px;
  padding: 30px 0;
}

.logo-grid img {
  max-height: 80px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

/* Hover efek ringan */
.logo-grid img:hover {
  transform: scale(1.05);
}

/* Responsif */
@media (max-width: 768px) {
  .logo-grid {
    gap: 30px;
  }

  .logo-grid img {
    max-height: 60px;
  }
}

/* ====== Gaya Umum ====== */
.our-team-container {
  max-width: 1200px;
  margin: auto;
}

/* ====== Kartu Umum (Our Team) ====== */
.team-card {
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  overflow: hidden;
  transition: all 0.2s ease-in-out;
  text-align: center;
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* ====== Foto ====== */
.foto-wrapper {
  background-color: #f3f3f3;
}

.team-photo {
  width: 100%;
  height: 340px;
  object-fit: cover;
}

/* ====== Teks Informasi ====== */
.team-info {
  padding: 12px 10px 18px 10px;
}

.team-name {
  font-size: 1.05rem;
  font-weight: 500;
  color: #222;
  margin-bottom: 4px;
}

.team-position {
  font-size: 1rem;
  color: #555;
  margin-bottom: 4px;
}

.nip,
.tgl-lahir {
  font-size: 0.8rem;
  color: #555;
  margin-bottom: 2px;
}

/* ====== Team Leader ====== */
.team-leader {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.team-leader .team-card {
  max-width: 300px;
}

/* ====== Responsif ====== */
@media (max-width: 768px) {
  .team-card {
    margin-bottom: 20px;
  }

  .team-photo {
    height: 280px;
  }
}


/* ===== VISI MISI STYLE ===== */
.visi-misi-section {
  margin-top: 70px;
  /* atau 80px kalau navbar lebih tinggi */
}

.kotak-visi-misi {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 25px 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.kotak-visi-misi h4 {
  font-size: 1.3rem;
  font-weight: 700;
}

.kotak-visi-misi p,
.kotak-visi-misi li {
  font-size: 1rem;
  line-height: 1.7;
  color: #444;
}

.kotak-visi-misi ul {
  margin: 0;
  padding-left: 1.2rem;
}

/* ===SEJARAH === */
.sejarah-section {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.95) 40%, rgba(255, 255, 255, 0.8) 100%);
}

.sejarah-bg {
  position: absolute;
  top: 0;
  right: 0;
  left: auto;
  width: 60%;
  height: 100%;
  background-image: url("../../assets/images/sejarah.png");
  background-size: cover;
  background-position: center;
  border-top-right-radius: 20px;
  border-bottom-right-radius: 20px;
}

.sejarah-content {
  position: relative;
  z-index: 2;
  padding: 60px 50px;
  color: #000000;
}

.highlight {
  border-left: 4px solid #e60000;
  padding-left: 12px;
}

.timeline-line {
  height: 3px;
  top: 50%;
  background-color: #dc3545;
  z-index: 1;
}

.sejarah-section {
  margin-top: 70px;
  /* atau 80px kalau navbar lebih tinggi */
}

.kegiatan-guru-section {
  margin-top: 70px;
  /* atau 80px kalau navbar lebih tinggi */
}

/* About Section */
.about-hero-section {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(90deg,
      rgba(3, 24, 39, 0.96) 0%,
      rgba(4, 31, 50, 0.88) 17%,
      rgba(4, 20, 34, 0.52) 40%,
      rgba(3, 13, 23, 0.35) 100%),
    url("/assets/images/BG.png");
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
}

.about-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 55% 48%, rgba(26, 188, 210, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(5, 18, 32, 0.14), rgba(2, 15, 25, 0.84));
  z-index: 1;
}

.about-hero-container {
  position: relative;
  z-index: 2;
}

.about-hero-content {
  padding-top: 11px;
  padding-bottom: 60px;
  max-width: 880px;
}

.about-title {
  font-size: clamp(54px, 7vw, 10px);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: 1px;
  margin-bottom: 18px;
  color: #fff;
  text-transform: uppercase;
}

.about-title-line {
  width: 76px;
  height: 6px;
  border-radius: 50px;
  background: #ff5a22;
  margin-bottom: 24px;
}

.about-subtitle {
  font-size: clamp(24px, 2.2vw, 24px);
  font-weight: 800;
  color: #20c4d5;
  margin-bottom: 22px;
}

.about-description {
  max-width: 980px;
  font-size: 15px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 26px;
  text-align: left;
}

.about-services {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  max-width: 850px;
  margin-bottom: 34px;
}

.about-service-card {
  height: 142px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  color: #fff;
  transition: 0.25s ease;
}

.about-service-card:hover {
  border-color: rgba(255, 90, 34, 0.9);
  transform: translateY(-4px);
}

.about-service-card i {
  font-size: 42px;
  color: #fff;
  line-height: 1;
}

.about-service-card i::after {
  content: "";
  display: block;
  width: 30px;
  height: 3px;
  border-radius: 30px;
  background: #ff5a22;
  margin: 10px auto 0;
}

.about-service-card span {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
}

.about-info-box {
  max-width: 880px;
  min-height: 92px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  padding: 18px 32px;
  gap: 28px;
  margin-bottom: 34px;
}

.about-info-item {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.about-info-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.32);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff5a22;
  font-size: 28px;
}

.about-info-item small {
  display: block;
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
  line-height: 1.1;
}

.about-info-item strong {
  display: inline-block;
  color: #fff;
  font-size: 24px;
  line-height: 1.15;
  font-weight: 900;
  position: relative;
}

.about-info-item strong::after {
  content: "";
  display: block;
  width: 32px;
  height: 3px;
  background: #ff5a22;
  border-radius: 20px;
  margin-top: 8px;
}

.about-info-divider {
  width: 1px;
  height: 46px;
  background: rgba(255, 255, 255, 0.32);
}

.about-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  min-width: 330px;
  height: 64px;
  padding: 0 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ff7a2b, #ff4a1c);
  color: #fff;
  font-size: 19px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(255, 74, 28, 0.28);
  transition: 0.25s ease;
}

.about-btn:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(255, 74, 28, 0.42);
}

.about-btn i {
  font-size: 22px;
}

@media (max-width: 1199px) {
  .about-services {
    grid-template-columns: repeat(3, 1fr);
    max-width: 620px;
  }

  .about-service-card {
    height: 130px;
  }

  .about-description {
    font-size: 18px;
  }
}

@media (max-width: 991px) {
  .about-hero-section {
    background-position: center;
  }

  .about-hero-content {
    padding-top: 90px;
  }

  .about-info-box {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }

  .about-info-divider {
    width: 100%;
    height: 1px;
  }
}

@media (max-width: 575px) {
  .about-hero-content {
    padding-top: 70px;
    padding-bottom: 45px;
  }

  .about-services {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-service-card {
    height: 122px;
  }

  .about-service-card i {
    font-size: 34px;
  }

  .about-service-card span {
    font-size: 14px;
  }

  .about-info-box {
    padding: 18px;
  }

  .about-btn {
    width: 100%;
    min-width: unset;
  }
}

.services-section {
  position: relative;
  padding: 72px 0 64px;
  overflow: hidden;
  color: #0f172a;
  background:
    radial-gradient(circle at 88% 8%, rgba(14, 116, 144, 0.09), transparent 26%),
    linear-gradient(180deg, #f8fbfd 0%, #eef5f8 100%);
}

.services-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(1180px, calc(100% - 40px));
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(15, 23, 42, 0.16), transparent);
  transform: translateX(-50%);
}

.services-section .container {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 40px));
  max-width: 100%;
  margin-right: auto;
  margin-left: auto;
}

.services-header {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(24px, 4vw, 70px);
  align-items: end;
  margin-bottom: 54px;
}

.services-heading-block {
  max-width: 720px;
}

.services-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: #0e7490;
  font-family: "Poppins", sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.services-eyebrow span {
  width: 34px;
  height: 2px;
  background: #f97316;
}

.services-title {
  font-family: "Poppins", sans-serif;
  max-width: 700px;
  margin: 0;
  color: #082f49;
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.services-intro {
  max-width: 520px;
  margin: 0 0 4px auto;
  padding-left: 28px;
  border-left: 2px solid #f97316;
  color: #536474;
  font-size: 16px;
  line-height: 1.8;
}

.service-item {
  --service-accent: #0e7490;
  position: relative;
  height: 100%;
  min-height: 460px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #d7e3e9;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.07);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.service-item::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: var(--service-accent);
}

.service-item::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -90px;
  width: 190px;
  height: 190px;
  border: 1px solid color-mix(in srgb, var(--service-accent) 18%, transparent);
  border-radius: 50%;
  pointer-events: none;
}

.service-item--training {
  --service-accent: #f97316;
}

.service-item--engineering {
  --service-accent: #2563eb;
}

.service-item:hover {
  border-color: color-mix(in srgb, var(--service-accent) 40%, #d7e3e9);
  box-shadow: 0 24px 54px rgba(15, 23, 42, 0.12);
  transform: translateY(-8px);
}

.service-card-header {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 80px;
  gap: 16px;
  align-items: center;
  padding: 24px 24px 16px;
}

.service-title-block {
  min-width: 0;
}

.service-media {
  position: relative;
  width: 80px;
  height: 80px;
  overflow: hidden;
  border-radius: 12px;
  background: #dce8ed;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.service-media::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--service-accent) 16%, transparent);
  pointer-events: none;
}

.service-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.service-item:hover .service-media img {
  transform: scale(1.055);
}

.service-content {
  position: relative;
  z-index: 1;
  padding: 0 24px 24px;
}

.service-category {
  display: block;
  margin-bottom: 10px;
  color: var(--service-accent);
  font-family: "Poppins", sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.service-heading {
  font-family: "Poppins", sans-serif;
  margin: 0;
  color: #082f49;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.service-description {
  margin: 0 0 24px;
  color: #64748b;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.75;
}

.service-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 18px 8px 6px 0;
  border-top: 1px solid #e5edf1;
  list-style: none;
  max-height: 152px;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--service-accent) 45%, #cbd5e1) transparent;
}

.service-list::-webkit-scrollbar {
  width: 5px;
}

.service-list::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.03);
  border-radius: 999px;
}

.service-list::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--service-accent) 45%, #cbd5e1);
  border-radius: 999px;
  transition: background 0.2s ease;
}

.service-list:hover::-webkit-scrollbar-thumb {
  background: var(--service-accent);
}

.service-list li {
  position: relative;
  padding-left: 24px;
  color: #334155;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  word-break: break-word;
  transition: color 0.2s ease;
}

.service-list li::before {
  content: "\F26B";
  position: absolute;
  top: 1px;
  left: 0;
  color: var(--service-accent);
  font-family: "bootstrap-icons";
  font-size: 14px;
  transition: transform 0.2s ease;
}

.service-list-link {
  color: inherit;
  text-decoration: none;
  display: inline-block;
  width: 100%;
  cursor: pointer;
  transition: color 0.2s ease;
}

.service-list-link:hover {
  color: var(--service-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.service-list li:hover::before {
  transform: scale(1.18);
}

.services-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  margin-top: 42px;
  padding: 28px 30px;
  border: 1px solid rgba(8, 47, 73, 0.12);
  border-radius: 14px;
  background: #082f49;
  box-shadow: 0 18px 44px rgba(8, 47, 73, 0.16);
}

.services-cta-label {
  display: block;
  margin-bottom: 5px;
  color: #67e8f9;
  font-family: "Poppins", sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.services-cta p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
  line-height: 1.65;
}

.services-cta .services-btn--services {
  --services-btn-bg: rgba(255, 255, 255, 0.08);
  --services-btn-hover: #f97316;
  --services-btn-color: #ffffff;
  --services-btn-border: rgba(255, 255, 255, 0.72);
  --services-btn-hover-border: #f97316;
  flex-shrink: 0;
}

.services-btn {
  --services-btn-bg: rgba(255, 255, 255, 0.52);
  --services-btn-hover: #df5351;
  --services-btn-color: #df5351;
  --services-btn-border: #df5351;
  --services-btn-hover-color: #ffffff;
  --services-btn-hover-border: #df5351;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: fit-content;
  min-width: 200px;
  height: 50px;
  padding: 0 28px;
  border: 1px solid var(--services-btn-border);
  background: var(--services-btn-bg);
  color: var(--services-btn-color);
  -webkit-backdrop-filter: blur(10px) saturate(130%);
  backdrop-filter: blur(10px) saturate(130%);
  text-decoration: none;
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  border-radius: 0;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.services-btn:hover,
.services-btn:focus-visible {
  border-color: var(--services-btn-hover-border);
  background: var(--services-btn-hover);
  color: var(--services-btn-hover-color);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
  text-decoration: none;
}

.services-btn:active {
  transform: translateY(0) scale(0.98);
  box-shadow: none;
}

@media (max-width: 991px) {
  .services-section {
    padding: 60px 0 52px;
  }

  .services-header {
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start;
  }

  .services-intro {
    max-width: 680px;
    margin-left: 0;
  }

  #hero {
    min-height: 85vh;
  }

  .hero-heading {
    white-space: nowrap;
  }

  #hero .container {
    align-items: flex-start;
    flex-direction: column;
  }

  .service-item {
    min-height: 480px;
  }

  .services-cta {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 575px) {
  .services-section {
    padding: 48px 0 40px;
  }

  .services-section .container {
    width: min(100%, calc(100% - 28px));
  }

  .services-title {
    font-size: 30px;
  }

  .services-intro {
    padding-left: 18px;
    font-size: 14px;
  }

  .service-item {
    min-height: 0;
    border-radius: 14px;
  }

  .service-card-header {
    grid-template-columns: minmax(0, 1fr) 84px;
    gap: 16px;
    padding: 24px 24px 16px;
  }

  .service-media {
    width: 84px;
    height: 84px;
    border-radius: 11px;
  }

  .service-content {
    padding: 0 24px 24px;
  }

  .service-heading {
    font-size: 20px;
  }

  .services-cta {
    padding: 24px;
    border-radius: 12px;
  }

  .services-btn {
    width: fit-content;
    min-width: 0;
    max-width: 100%;
    padding-right: 14px;
    padding-left: 14px;
    font-size: 11px;
    white-space: nowrap;
  }
}

.aering-stats-section {
  background: #eaf3f8;
  padding: 40px 0;
  overflow: hidden;
}

.aering-stats-grid {
  display: grid;
  grid-template-columns: repeat(var(--desktop-cols, 3), minmax(0, 1fr));
  gap: 0;
  align-items: center;
  margin-bottom: 0;
}

.aering-stat-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 0 30px;
  min-height: 96px;
  position: relative;
  opacity: 0;
  transform: translateY(18px);
  transition: all 0.6s ease;
}

.aering-stat-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.aering-stat-item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 0;
  width: 1px;
  height: 96px;
  background: rgba(11, 59, 90, 0.18);
}

.aering-stat-icon {
  width: 54px;
  height: 54px;
  border-radius: 4px;
  background: #ea580c;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.aering-stat-text {
  line-height: 1.1;
}

.aering-stat-number {
  display: block;
  font-size: clamp(28px, 3.5vw, 38px);
  font-weight: 900;
  color: #0b3b5a;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.aering-stat-label {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #000000ff;
}

.aering-stats-illustration {
  display: flex;
  justify-content: center;
  align-items: center;
}

.aering-stats-illustration svg {
  width: min(100%, 860px);
  height: auto;
  display: block;
}

@media (max-width: 991px) {
  .aering-stats-section {
    padding: 40px 0;
  }

  .aering-stats-grid {
    grid-template-columns: 1fr;
    gap: 26px;
    margin-bottom: 0;
  }

  .aering-stat-item {
    justify-content: flex-start;
    padding: 0;
  }

  .aering-stat-item:not(:last-child)::after {
    display: none;
  }
}

/* ============================================================ */
/*       PREMIUM BIDIRECTIONAL SCROLL ANIMATIONS (AOS ENHANCED) */
/* ============================================================ */

/* Base transition smoothing for all AOS elements */
[data-aos] {
  pointer-events: auto;
  will-change: transform, opacity, filter;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition-duration: 600ms !important;
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* 1. Fade Up (Default & Most Common) - Shrinks & drifts down when scrolling away, expands & pops up when entering */
[data-aos="fade-up"] {
  opacity: 0 !important;
  transform: translate3d(0, 44px, 0) scale(0.88) !important;
  filter: blur(2px);
  transition-property: transform, opacity, filter !important;
}

[data-aos="fade-up"].aos-animate {
  opacity: 1 !important;
  transform: translate3d(0, 0, 0) scale(1) !important;
  filter: blur(0px);
}

/* 2. Fade Down - Shrinks & drifts up when scrolling away */
[data-aos="fade-down"] {
  opacity: 0 !important;
  transform: translate3d(0, -44px, 0) scale(0.88) !important;
  filter: blur(2px);
  transition-property: transform, opacity, filter !important;
}

[data-aos="fade-down"].aos-animate {
  opacity: 1 !important;
  transform: translate3d(0, 0, 0) scale(1) !important;
  filter: blur(0px);
}

/* 3. Fade Right - Shrinks & shifts left when exiting */
[data-aos="fade-right"] {
  opacity: 0 !important;
  transform: translate3d(-48px, 0, 0) scale(0.88) !important;
  filter: blur(2px);
  transition-property: transform, opacity, filter !important;
}

[data-aos="fade-right"].aos-animate {
  opacity: 1 !important;
  transform: translate3d(0, 0, 0) scale(1) !important;
  filter: blur(0px);
}

/* 4. Fade Left - Shrinks & shifts right when exiting */
[data-aos="fade-left"] {
  opacity: 0 !important;
  transform: translate3d(48px, 0, 0) scale(0.88) !important;
  filter: blur(2px);
  transition-property: transform, opacity, filter !important;
}

[data-aos="fade-left"].aos-animate {
  opacity: 1 !important;
  transform: translate3d(0, 0, 0) scale(1) !important;
  filter: blur(0px);
}

/* 5. Zoom In - Shrinks deeper on exit, scales gracefully on entry */
[data-aos="zoom-in"] {
  opacity: 0 !important;
  transform: scale(0.82) !important;
  filter: blur(3px);
  transition-property: transform, opacity, filter !important;
}

[data-aos="zoom-in"].aos-animate {
  opacity: 1 !important;
  transform: scale(1) !important;
  filter: blur(0px);
}

/* 6. Zoom Out */
[data-aos="zoom-out"] {
  opacity: 0 !important;
  transform: scale(1.15) !important;
  filter: blur(3px);
  transition-property: transform, opacity, filter !important;
}

[data-aos="zoom-out"].aos-animate {
  opacity: 1 !important;
  transform: scale(1) !important;
  filter: blur(0px);
}

/* 7. Flip Up */
[data-aos="flip-up"] {
  opacity: 0 !important;
  transform: perspective(2500px) rotateX(-25deg) scale(0.88) !important;
  filter: blur(2px);
  transition-property: transform, opacity, filter !important;
}

[data-aos="flip-up"].aos-animate {
  opacity: 1 !important;
  transform: perspective(2500px) rotateX(0) scale(1) !important;
  filter: blur(0px);
}