:root {
  --background-color: #f3f7f6;
  --default-color: #53656a;
  --heading-color: #0b1f33;
  --accent-color: #087f5b;
  --accent-gold: #c9973b;
  --surface-color: #ffffff;
  --contrast-color: #ffffff;
  --nav-color: #0b1f33;
  --nav-hover-color: #087f5b;
  --nav-mobile-background-color: #0b1f33;
  --nav-dropdown-background-color: #ffffff;
  --nav-dropdown-color: #0b1f33;
  --nav-dropdown-hover-color: #087f5b;
}

body {
  background: var(--background-color);
  color: var(--default-color);
}

.header {
  --background-color: rgba(11, 31, 51, .96);
  padding: 0;
}

.header .header-container {
  background: transparent;
  min-height: 78px;
  padding-top: 0;
  padding-bottom: 0;
}

.navmenu a,
.navmenu a:focus {
  color: rgba(255, 255, 255, .86);
  font-weight: 500;
}

.navmenu a:hover,
.navmenu .active,
.navmenu li:hover > a {
  color: #8de2c3;
}

.navmenu ul ul {
  border-top: 3px solid var(--accent-color);
  border-radius: 0 0 12px 12px;
  box-shadow: 0 14px 30px rgba(11, 31, 51, .16);
}

.navmenu ul ul a,
.navmenu ul ul a:focus {
  color: var(--nav-dropdown-color);
}

.navmenu ul ul a:hover,
.navmenu ul ul li:hover > a {
  background: #edf8f4;
  color: var(--accent-color);
}

.hero,
.section {
  background-color: var(--background-color);
}

.hero {
  background:
    radial-gradient(circle at 82% 18%, rgba(8, 127, 91, .12), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f3f7f6 100%);
}

.hero-wrapper {
  padding-top: 36px;
  padding-bottom: 72px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 4.25rem);
  line-height: 1.08;
  letter-spacing: -.04em;
}

.hero .hero-content p {
  color: #617276;
  font-size: 1.05rem;
  line-height: 1.8;
}

.hero .main-image {
  border: 6px solid var(--surface-color);
  border-radius: 28px 28px 28px 100px !important;
  box-shadow: 0 22px 48px rgba(11, 31, 51, .16) !important;
  transform: none !important;
}

.hero .main-image:hover {
  transform: none !important;
}

.hero-media-frame {
  position: relative;
}

.hero-media-frame::before {
  content: "";
  position: absolute;
  inset: -16px -16px auto auto;
  width: 110px;
  height: 110px;
  border: 3px dashed rgba(8, 127, 91, .35);
  border-radius: 50%;
  z-index: -1;
}

.hero .image-overlay {
  left: -16px !important;
  right: auto !important;
}

@media (max-width: 992px) {
  .hero .image-overlay {
    left: 0 !important;
  }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(8, 127, 91, .08);
  border: 1px solid rgba(8, 127, 91, .25);
  color: var(--accent-color);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero .action-buttons {
  flex-wrap: wrap;
}

.hero .action-buttons .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent !important;
  border: 2px solid rgba(11, 31, 51, .14);
  color: var(--heading-color) !important;
}

.hero .action-buttons .btn-secondary:hover {
  border-color: var(--accent-color);
  color: var(--accent-color) !important;
  background: rgba(8, 127, 91, .06) !important;
}

.hero-pillars {
  margin-top: 44px;
  border-top: 1px solid #dfe9e5;
}

.hero-pillars .pillar-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid #dfe9e5;
  transition: padding-left .3s ease;
}

.hero-pillars .pillar-item:hover {
  padding-left: 10px;
}

.hero-pillars .pillar-index {
  font-family: var(--heading-font, "Raleway", sans-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: rgba(8, 127, 91, .28);
  min-width: 42px;
  transition: color .3s ease;
}

.hero-pillars .pillar-item:hover .pillar-index {
  color: var(--accent-color);
}

.hero-pillars .pillar-body h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--heading-color);
}

.hero-pillars .pillar-body h4 i {
  color: var(--accent-color);
}

.hero-pillars .pillar-body p {
  margin: 0;
  font-size: .92rem;
  line-height: 1.65;
  color: #6a7b80;
}

.feature-card h3,
.program-banner h3,
.program-item h4,
.section-title h2 {
  color: var(--heading-color) !important;
}

.about,
.featured-programs,
.recent-news,
.services,
.contact {
  padding-top: 92px;
  padding-bottom: 92px;
}

.section-title h2::after {
  background: var(--accent-color) !important;
}

.news-card {
  background: var(--surface-color) !important;
  border: 1px solid #dce8e4 !important;
  border-radius: 18px !important;
  box-shadow: 0 12px 30px rgba(11, 31, 51, .07) !important;
}

.program-banner {
  overflow: visible !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.program-banner .banner-image img {
  transition: transform .35s ease;
}

.program-banner:hover .banner-image img {
  transform: scale(1.04);
}

.program-banner .banner-info {
  padding: 26px !important;
}

.program-item {
  padding: 14px !important;
  transition: transform .2s ease, border-color .2s ease;
}

.program-item:hover {
  border-color: rgba(8, 127, 91, .38) !important;
  transform: translateX(4px);
}

.item-icon img {
  border-radius: 12px !important;
}

.discover-btn,
.btn-event {
  background: var(--accent-color) !important;
  color: #fff !important;
  border-radius: 999px !important;
}

.item-arrow a {
  color: var(--accent-color) !important;
  background: #e4f6ef !important;
}

.hero h1,
h1, h2, h3, h4, h5, h6 {
  color: var(--heading-color);
}

.btn-primary,
.action-buttons .btn-primary,
.btn-get-started {
  background: var(--accent-color) !important;
  border-color: var(--accent-color) !important;
  color: var(--contrast-color) !important;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(8, 127, 91, .18);
}

.btn-primary:hover,
.action-buttons .btn-primary:hover,
.btn-get-started:hover {
  background: #056044 !important;
  border-color: #056044 !important;
  transform: translateY(-1px);
}

.card,
.info-item,
.feature-item,
.course-card,
.testimonial-item {
  border-color: #dce8e4;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(11, 31, 51, .06);
}

.highlight-card-box {
  box-shadow: 0 16px 36px rgba(11, 31, 51, .16);
}

.highlight-overlay {
  background: linear-gradient(105deg, rgba(8, 127, 91, .9), rgba(11, 31, 51, .2)) !important;
}

.announcement-overlay {
  background: linear-gradient(105deg, rgba(11, 31, 51, .88), rgba(8, 127, 91, .3)) !important;
}

input, select, textarea {
  border-color: #dce8e4 !important;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--accent-color) !important;
  box-shadow: 0 0 0 .2rem rgba(8, 127, 91, .12) !important;
}

.footer {
  background: var(--heading-color);
  color: rgba(255, 255, 255, .72);
}

@media (max-width: 1199px) {
  .navmenu a,
  .navmenu a:focus {
    color: var(--contrast-color);
  }
  
 @media (max-width: 1199px) {
  .mobile-nav-toggle {
    position: relative;
    z-index: 10000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 10px;
    background: #087f5b;
    color: #ffffff !important;
    font-size: 28px;
    cursor: pointer;
  }
}

/* Perbaikan menu dan submenu pada HP */
@media (max-width: 1199px) {

  /* Warna semua tulisan menu mobile */
  .mobile-nav-active .navmenu a,
  .mobile-nav-active .navmenu a:focus {
    color: #ffffff !important;
  }

  /* Warna tulisan submenu */
  .mobile-nav-active .navmenu ul ul a,
  .mobile-nav-active .navmenu ul ul a:focus {
    color: #ffffff !important;
    background: #102a43 !important;
  }

  /* Warna saat submenu disentuh */
  .mobile-nav-active .navmenu ul ul a:hover,
  .mobile-nav-active .navmenu ul ul li:hover > a {
    color: #ffffff !important;
    background: #087f5b !important;
  }

  /* Latar submenu */
  .mobile-nav-active .navmenu ul ul {
    background: #102a43 !important;
    border: 1px solid rgba(255, 255, 255, .15);
  }

  /* Tombol panah dropdown */
  .mobile-nav-active .navmenu .toggle-dropdown {
    color: #ffffff !important;
    background: #087f5b !important;
    border-radius: 50%;
  }

  /* Saat submenu sedang terbuka */
  .mobile-nav-active .navmenu .dropdown-active > a,
  .mobile-nav-active .navmenu .dropdown-active > a:focus {
    color: #8de2c3 !important;
  }
}

}

/* ==========================================================
   Top identity bar
   ========================================================== */
.topbar-identity {
  background: linear-gradient(90deg, var(--heading-color) 0%, #123049 100%);
  padding: 10px 0 12px;
}

.topbar-identity .topbar-logos img {
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .3));
}

.topbar-divider {
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, .25);
}

.topbar-schoolname {
  color: #fff;
  font-family: var(--heading-font, "Raleway", sans-serif);
  font-weight: 700;
  letter-spacing: .05em;
  margin-top: 6px;
  font-size: 14px;
  text-transform: uppercase;
}

.topbar-tagline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 4px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .22);
  color: #8de2c3;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
}

/* ==========================================================
   Header / logo lockup / nav / CTA
   ========================================================== */
.scrolled .header {
  --background-color: rgba(11, 31, 51, .97);
  box-shadow: 0 10px 30px rgba(11, 31, 51, .2);
}

.header .logo-lockup {
  position: static;
  background: transparent;
  padding: 0;
  gap: 12px;
}

.logo-lockup .logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-lockup .logo-text strong {
  color: #fff;
  font-family: var(--heading-font, "Raleway", sans-serif);
  font-size: 17px;
  letter-spacing: .02em;
}

.logo-lockup .logo-text small {
  color: rgba(255, 255, 255, .62);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

@media (min-width: 1200px) {
  .navmenu > ul > li > a {
    padding: 10px 16px !important;
    border-radius: 999px;
    margin: 0 1px;
  }

  .navmenu > ul > li:hover > a,
  .navmenu > ul > li.active > a {
    background: rgba(255, 255, 255, .08);
  }
}

.header-cta {
  margin-left: 16px;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--accent-color);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  align-items: center;
  gap: 6px;
  transition: all .3s ease;
  box-shadow: 0 10px 22px rgba(8, 127, 91, .32);
}

.header-cta:hover {
  background: #056044;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(8, 127, 91, .4);
}

/* ==========================================================
   Carousel / Welcome Banner
   ========================================================== */

.banner-shell {
  padding: 22px clamp(12px, 3vw, 40px) 0;
  background: var(--background-color);
}

.modern-carousel {
  width: 100%;
  height: 520px;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 26px 55px rgba(11, 31, 51, .22);
}

.modern-carousel .carousel-inner,
.modern-carousel .carousel-item {
  height: 520px;
}

.modern-carousel .carousel-item img {
  display: block;
  width: 100%;
  height: 520px;
  object-fit: cover;
  filter: saturate(1.05);
}

@media (max-width: 768px) {
  .modern-carousel,
  .modern-carousel .carousel-inner,
  .modern-carousel .carousel-item {
    height: 440px;
  }

  .modern-carousel .carousel-item img {
    height: 440px;
  }
}

.modern-carousel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 31, 51, .15) 0%, rgba(11, 31, 51, .35) 55%, rgba(11, 31, 51, .20) 100%);
  pointer-events: none;
}

.banner-overlay-content {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 40px clamp(20px, 5vw, 70px) 46px;
  text-align: left;
  color: #fff;
}

.banner-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .3);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #8de2c3;
  margin-bottom: 16px;
}

.banner-logos img {
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, .35));
}

.banner-overlay-content h2 {
  color: #fff;
  font-size: clamp(1.5rem, 3.4vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 8px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .3);
}

.banner-overlay-content p {
  color: rgba(255, 255, 255, .85);
  font-size: 1rem;
  margin: 0;
}

.modern-carousel .carousel-control-prev,
.modern-carousel .carousel-control-next {
  width: 56px;
  opacity: 1;
}

.banner-nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .3);
  color: #fff;
  font-size: 1.1rem;
  transition: all .3s ease;
}

.modern-carousel .carousel-control-prev:hover .banner-nav-icon,
.modern-carousel .carousel-control-next:hover .banner-nav-icon {
  background: var(--accent-color);
  border-color: var(--accent-color);
}

@media (max-width: 576px) {
  .banner-overlay-content {
    padding: 24px 20px 28px;
  }

  .modern-carousel .carousel-control-prev,
  .modern-carousel .carousel-control-next {
    display: none;
  }
}

@media (max-width: 576px) {
  .banner-caption {
    padding: 26px 20px 30px;
  }

  .modern-carousel .carousel-control-prev,
  .modern-carousel .carousel-control-next {
    display: none;
  }
}

/* ==========================================================
   About — numbered timeline & mission/vision cards
   ========================================================== */
.about .about-content .timeline {
  counter-reset: tl;
  padding-left: 44px;
}

.about .about-content .timeline:before {
  width: 2px;
  background: linear-gradient(180deg, var(--accent-color), rgba(8, 127, 91, .1));
}

.about .about-content .timeline .timeline-item {
  counter-increment: tl;
}

.about .about-content .timeline .timeline-item .timeline-dot {
  width: 30px;
  height: 30px;
  left: -53px;
  top: -4px;
  background: var(--surface-color);
  border: 2px solid var(--accent-color);
  box-shadow: 0 6px 16px rgba(8, 127, 91, .25);
}

.about .about-content .timeline .timeline-item .timeline-dot::before {
  content: counter(tl);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--heading-font, "Raleway", sans-serif);
  color: var(--accent-color);
}

.about .about-image img {
  border-radius: 28px 28px 100px 28px !important;
}

.about .about-image .mission-vision .mission,
.about .about-image .mission-vision .vision {
  border-left: 4px solid var(--accent-color) !important;
  border-radius: 14px !important;
}

.about .about-image .mission-vision .vision {
  border-left-color: var(--accent-gold) !important;
}

.about .about-image .mission-vision .mission h3,
.about .about-image .mission-vision .vision h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 0 !important;
}

.about .about-image .mission-vision .mission h3::before,
.about .about-image .mission-vision .vision h3::before {
  content: none !important;
}

.about .about-image .mission-vision .mission h3 i {
  color: var(--accent-color);
  font-size: 1.05rem;
}

.about .about-image .mission-vision .vision h3 i {
  color: var(--accent-gold);
  font-size: 1.05rem;
}

/* ==========================================================
   Featured Programs — floating overlap banner + list
   ========================================================== */
.featured-programs .banner-image {
  border-radius: 26px;
  height: 320px;
}

.featured-programs .banner-info {
  background: var(--surface-color) !important;
  margin: -60px 22px 0;
  position: relative;
  border-radius: 20px !important;
  padding: 30px 28px !important;
  box-shadow: 0 24px 46px rgba(11, 31, 51, .16) !important;
  z-index: 2;
}

.featured-programs .banner-badge {
  top: 22px;
  right: 22px;
}

.featured-programs .banner-badge .badge-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.featured-programs .program-item {
  border: 1px solid transparent !important;
  background: var(--surface-color) !important;
  box-shadow: 0 10px 26px rgba(11, 31, 51, .06);
  border-radius: 16px !important;
}

/* ==========================================================
   Recent News — editorial card grid
   ========================================================== */
.recent-news .post-item {
  position: relative;
  display: block !important;
  border-radius: 22px !important;
  border: 1px solid #e2ece8;
}

.recent-news .post-img {
  flex: none !important;
  width: 100% !important;
  height: 210px;
}

.recent-news .post-img img {
  width: 100% !important;
  height: 100% !important;
}

.recent-news .post-content {
  padding: 24px !important;
}

.recent-news .category {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  margin-bottom: 0;
  background-color: rgba(255, 255, 255, .95) !important;
  box-shadow: 0 6px 16px rgba(11, 31, 51, .18);
}

.recent-news .post-title a {
  font-size: 19px;
  line-height: 1.35;
}

.recent-news .post-description {
  font-size: 14.5px;
}

/* ==========================================================
   Footer — richer identity + quick links
   ========================================================== */
.footer {
  border-top-left-radius: 32px;
  border-top-right-radius: 32px;
}

.footer .footer-tagline {
  color: color-mix(in srgb, var(--default-color), transparent 10%);
  max-width: 40ch;
  line-height: 1.7;
  margin-bottom: 0;
}

.footer .footer-contact p {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.footer .footer-contact p i {
  color: var(--accent-color);
  margin-top: 3px;
}

.footer h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 32px;
  height: 3px;
  border-radius: 3px;
  background: var(--accent-color);
}
