:root {
  --hijau: #3157D5;
  --hijau-terang: #7654E8;
  --hijau-muda: #EEF0FF;
  --navy: #202B59;
  --navy-muda: #E4E8FF;
  --emas: #A78BFA;
  --emas-muda: #F3E8FF;
  --latar: #F0F2FF;
  --teks: #1F2D3D;
  --teks-redup: #68798B;
  --garis: #DDE1FA;
  --bayangan: 0 10px 30px rgba(10, 37, 64, .08);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  font-family: "Poppins", "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--teks);
  background: #F9FAFF;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--navy);
  line-height: 1.3;
}

p {
  margin-top: 0;
}

a {
  color: var(--hijau);
}

img {
  max-width: 100%;
}


.section-padding {
  padding: 90px 0;
}

.section-soft {
  background: var(--latar);
}

.section-heading {
  margin-bottom: 42px;
}

.section-kicker {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--hijau);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.section-heading h2 {
  margin-bottom: 12px;
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 700;
}

.heading-line {
  width: 58px;
  height: 4px;
  margin: 0 auto 18px;
  border-radius: 10px;
  background: var(--emas);
}

.section-heading > p {
  max-width: 650px;
  margin: 0 auto;
  color: var(--teks-redup);
}


.navbar-school {
  min-height: 92px;
  padding: 12px 0;
  background: rgba(247, 248, 255, .97);
  border-bottom: 1px solid var(--garis);
  box-shadow: 0 3px 18px rgba(10, 37, 64, .06);
  z-index: 1030;
}

.navbar-school .container {
  gap: 20px;
}

.navbar-school .navbar-brand {
  gap: 12px;
  margin-right: 24px;
  white-space: normal;
}

.school-logo {
  width: 48px;
  height: 52px;
  object-fit: contain;
  background: transparent;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.brand-text strong {
  color: var(--navy);
  font-size: 15px;
  font-weight: 800;
}

.brand-text small {
  margin-top: 3px;
  color: var(--teks-redup);
  font-size: 12px;
}

.navbar-school .nav-link {
  padding: 10px 12px !important;
  color: #435365;
  font-size: 14px;
  font-weight: 600;
}

.navbar-school .nav-link:hover,
.navbar-school .nav-link:focus,
.navbar-school .nav-link.active {
  color: var(--hijau);
}

.btn-contact {
  display: inline-block;
  padding: 10px 23px;
  border: 1px solid var(--navy);
  border-radius: 7px;
  color: #fff;
  background: var(--navy);
  font-size: 14px;
  font-weight: 600;
}

.btn-contact:hover,
.btn-contact:focus {
  color: #fff;
  background: var(--hijau);
  border-color: var(--hijau);
}

.navbar-toggler {
  border-color: var(--garis);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 .2rem rgba(118, 84, 232, .18);
}


.hero-section {
  padding-top: 92px;
}

.hero-section .carousel-item {
  position: relative;
  height: min(78vh, 650px);
  min-height: 490px;
  background: var(--navy);
}

.hero-section .carousel-item > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(26, 35, 85, .86) 0%,
    rgba(26, 35, 85, .58) 48%,
    rgba(26, 35, 85, .08) 100%
  );
}

.hero-caption {
  right: auto;
  bottom: auto;
  left: max(8%, calc((100% - 1140px) / 2));
  top: 50%;
  width: min(700px, 78%);
  padding: 0;
  text-align: left;
  transform: translateY(-45%);
}

.hero-label {
  margin-bottom: 14px;
  color: #DDE5FF;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
}

.hero-caption h1,
.hero-caption h2 {
  max-width: 720px;
  margin-bottom: 18px;
  color: #fff;
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 800;
}

.hero-slogan {
  max-width: 600px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, .9);
  font-size: 17px;
  line-height: 1.8;
}

.btn-primary-school {
  padding: 12px 25px;
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: var(--hijau-terang);
  font-weight: 700;
}

.btn-primary-school:hover,
.btn-primary-school:focus {
  color: #fff;
  background: var(--hijau);
}

.hero-section .carousel-indicators {
  z-index: 5;
  margin-bottom: 25px;
}

.hero-section .carousel-indicators [data-bs-target] {
  width: 9px;
  height: 9px;
  margin: 0 5px;
  border: 0;
  border-radius: 50%;
}

.hero-section .carousel-indicators .active {
  width: 26px;
  border-radius: 10px;
  background: var(--emas);
}


.profile-image-wrap {
  position: relative;
}

.profile-image {
  display: block;
  width: 100%;
  height: 430px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(10, 37, 64, .14);
}

.profile-badge {
  position: absolute;
  right: -14px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  min-width: 135px;
  padding: 16px 22px;
  border-radius: 10px;
  color: #fff;
  background: var(--hijau);
  box-shadow: var(--bayangan);
}

.profile-badge strong {
  font-size: 28px;
  line-height: 1.2;
}

.profile-badge span {
  font-size: 12px;
}

.profile-lead {
  color: var(--teks);
  font-size: 17px;
  line-height: 1.85;
  text-align: justify;
}

#profil .text-muted {
  color: var(--teks-redup) !important;
  text-align: justify;
}

.vision-box,
.mission-box {
  padding: 20px 22px;
  border-radius: 12px;
  background: var(--hijau-muda);
}

.vision-box {
  border-left: 4px solid var(--hijau);
}

.mission-box {
  background: #F3F2FF;
  border-left: 4px solid var(--emas);
}

.mini-title {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--hijau);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.vision-box p,
.mission-box ul {
  margin-bottom: 0;
}

.vision-box p {
  text-align: justify;
}

.mission-box ul {
  padding-left: 20px;
}

.mission-box li {
  margin-bottom: 7px;
}

.mission-box li:last-child {
  margin-bottom: 0;
}

.mission-box li::marker {
  color: var(--emas);
}


.info-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 30px 28px;
  border: 1px solid var(--garis);
  border-radius: 14px;
  background: #F9FAFF;
  box-shadow: var(--bayangan);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 22px;
  border-radius: 12px;
  color: var(--hijau);
  background: var(--hijau-muda);
  font-size: 17px;
  font-weight: 800;
}

.info-card h3 {
  margin-bottom: 12px;
  font-size: 19px;
}

.info-card p {
  margin-bottom: 20px;
  color: var(--teks-redup);
  text-align: justify;
}

.card-link {
  display: inline-block;
  align-self: flex-start;
  margin-top: auto;
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.card-link span {
  display: inline-block;
  margin-left: 5px;
  transition: transform .2s ease;
}

.card-link:hover {
  color: var(--hijau);
}

.card-link:hover span {
  transform: translateX(4px);
}


.staff-card {
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--garis);
  border-radius: 14px;
  background: #F9FAFF;
  box-shadow: var(--bayangan);
}

.staff-card img {
  display: block;
  width: 100%;
  height: 285px;
  object-fit: cover;
  object-position: center;
  background: #E5E9FF;
}

.staff-info {
  padding: 20px 16px;
  text-align: center;
}

.staff-info h3 {
  margin-bottom: 5px;
  font-size: 17px;
}

.staff-info span {
  color: var(--teks-redup);
  font-size: 13px;
}

.news-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--garis);
  border-radius: 12px;
  background: #F9FAFF;
  box-shadow: var(--bayangan);
}

.news-image {
  position: relative;
  overflow: hidden;
  background: #E5E9FF;
}

.news-image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform .35s ease;
}

.news-card:hover .news-image img {
  transform: scale(1.025);
}

.news-date {
  position: absolute;
  bottom: 18px;
  left: 18px;
  padding: 8px 12px;
  border-radius: 5px;
  color: #fff;
  background: var(--navy);
  font-size: 11px;
  font-weight: 700;
}

.news-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 28px 30px 30px;
}

.news-category {
  display: block;
  margin-bottom: 14px;
  color: #B77A16;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
}

.news-body h3 {
  margin: 0 0 18px;
  color: var(--navy);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.42;
}

.news-body p {
  margin: 0 0 24px;
  color: var(--teks-redup);
  font-size: 15px;
  line-height: 1.85;
  text-align: justify;
  text-align-last: left;
  overflow-wrap: break-word;
}

.news-body .card-link {
  display: inline-block;
  align-self: flex-start;
  margin-top: auto;
  padding-top: 8px;
  line-height: 1.6;
}

.outline-link {
  display: inline-block;
  padding: 10px 17px;
  border: 1px solid var(--hijau);
  border-radius: 6px;
  color: var(--hijau);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.outline-link:hover {
  color: #fff;
  background: var(--hijau);
}


.gallery-grid {
  align-items: stretch;
}

.gallery-item {
  position: relative;
  display: block;
  height: 100%;
  min-height: 190px;
  overflow: hidden;
  border-radius: 12px;
  background: #E5E9FF;
  box-shadow: var(--bayangan);
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform .35s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-item span {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 35px 16px 14px;
  color: #fff;
  background: linear-gradient(
    transparent,
    rgba(10, 37, 64, .88)
  );
  font-size: 14px;
  font-weight: 700;
}


.contact-section {
  padding: 65px 0;
  background: var(--hijau);
}

.contact-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 38px 42px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .1);
}

.section-kicker.light {
  color: #E5DDFF;
}

.contact-box h2 {
  margin-bottom: 10px;
  color: #fff;
  font-size: clamp(25px, 3vw, 34px);
}

.contact-box p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, .88);
}

.btn-light-school {
  flex-shrink: 0;
  padding: 12px 24px;
  border-radius: 6px;
  color: var(--hijau);
  background: #F9FAFF;
  font-weight: 700;
}

.btn-light-school:hover {
  color: var(--navy);
  background: var(--emas-muda);
}


.footer-school {
  padding: 62px 0 0;
  color: #C4CFD9;
  background: var(--navy);
  border-top: 4px solid var(--hijau-terang);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  color: #fff;
  text-decoration: none;
}

.footer-brand .school-logo {
  width: 48px;
  height: 52px;
}

.footer-brand span {
  display: flex;
  flex-direction: column;
  line-height: 1.4;
}

.footer-brand strong {
  color: #fff;
  font-size: 14px;
}

.footer-brand small {
  margin-top: 4px;
  color: #C4CFD9;
  font-size: 12px;
}

.footer-description,
.social-note {
  max-width: 430px;
  color: #C4CFD9;
  font-size: 14px;
  text-align: justify;
}

.footer-school h3 {
  margin-bottom: 20px;
  color: #fff;
  font-size: 18px;
}

.footer-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-list li {
  margin-bottom: 12px;
  color: #C4CFD9;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.social-links {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 16px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    color: #FFFFFF;
    font-size: 22px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: #FFFFFF;
    background-color: #7654E8;
    border-color: #7654E8;
}

.social-links i {
    line-height: 1;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 48px;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, .13);
}

.footer-bottom p {
  margin: 0;
  color: #C4CFD9;
  font-size: 13px;
}

.footer-bottom a {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--emas);
}


@media (max-width: 991.98px) {
  .section-padding {
    padding: 70px 0;
  }

  .navbar-school .navbar-collapse {
    padding: 15px 0 8px;
  }

  .navbar-school .nav-link {
    padding: 10px 0 !important;
  }

  .navbar-school .btn-contact {
    margin-top: 8px;
  }

  .hero-caption {
    left: 7%;
    width: 82%;
  }

  .profile-image {
    height: 380px;
  }

  .profile-badge {
    right: 12px;
  }

  .news-body {
    padding: 24px 22px 26px;
  }

  .news-body h3 {
    font-size: 20px;
  }

  .news-body p {
    font-size: 14px;
  }
}


@media (max-width: 575.98px) {
  body {
    font-size: 14px;
  }

  .section-padding {
    padding: 55px 0;
  }

  .section-heading {
    margin-bottom: 30px;
  }

  .section-heading h2 {
    font-size: 27px;
  }

  .navbar-school {
    min-height: 76px;
  }

  .navbar-school .container {
    gap: 8px;
  }

  .navbar-school .navbar-brand {
    gap: 8px;
    margin-right: 5px;
  }

  .school-logo {
    width: 39px;
    height: 43px;
  }

  .brand-text strong {
    font-size: 11px;
  }

  .brand-text small {
    font-size: 10px;
  }

  .hero-section {
    padding-top: 76px;
  }

  .hero-section .carousel-item {
    height: 560px;
    min-height: 460px;
  }

  .hero-overlay {
    background: rgba(26, 35, 85, .68);
  }

  .hero-caption {
    top: 48%;
    left: 8%;
    width: 84%;
    transform: translateY(-40%);
  }

  .hero-caption h1,
  .hero-caption h2 {
    font-size: 32px;
  }

  .hero-slogan {
    font-size: 14px;
  }

  .profile-image {
    height: 300px;
  }

  .profile-badge {
    right: 10px;
    bottom: 12px;
    min-width: 110px;
    padding: 12px 15px;
  }

  .profile-badge strong {
    font-size: 23px;
  }

  .info-card {
    padding: 24px 22px;
  }

  .staff-card img {
    height: 260px;
  }

  .news-body {
    padding: 22px 20px 24px;
  }

  .news-body h3 {
    font-size: 19px;
  }

  .news-body p {
    font-size: 14px;
    line-height: 1.75;
    text-align: justify;
  }

  .gallery-item img {
    height: 180px;
  }

  .contact-box {
    align-items: flex-start;
    flex-direction: column;
    padding: 28px 24px;
  }

  .footer-school {
    padding-top: 48px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    margin-top: 30px;
  }
}
