/* Frontpage preview: scoped to the public home page. */
.home-path-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.home-path-card { min-width: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid #dce5df; border-radius: 16px; background: #fff; }
.home-path-content { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.home-path-labels { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.home-path-tag { padding: 5px 10px; background: #f0f5f2; border-radius: 20px; font-size: 11px; color: #356657; font-weight: 700; }
.home-path-doctor { padding: 4px 8px; background: #fff3e3; border: 1px solid #efcf9e; border-radius: 20px; font-size: 10px; color: #855000; font-weight: 700; }
.home-path-content h3 { font-size: 19px; line-height: 1.3; margin-bottom: 12px; }
.home-path-summary { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.home-path-summary p { flex: 1; min-width: 0; color: #46574e; font-size: 13px; line-height: 1.6; margin: 0; }
.home-path-summary a { flex-shrink: 0; padding: 10px 0; color: #356657; font-size: 12px; font-weight: 700; }
.home-path-summary a:focus-visible { outline: 2px solid #356657; outline-offset: 4px; }
.home-path-card > img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; background: #f0f5f2; }
.home-paths-layout > .home-offers-row { align-self: start; }
@media(max-width:767px) {
    .home-path-grid { grid-template-columns: minmax(0,1fr); }
    .home-path-content { padding: 18px; }
    .home-path-summary p { font-size: 14px; }
}
.frontpage .home-flow { display: block; }
.frontpage .kursus-hero h1 { font-size: clamp(34px, 3.5vw, 54px); line-height: 1.14; letter-spacing: -.035em; max-width: 620px; }
.frontpage .kursus-hero .home-hero-proof { font-size: 13px; font-weight: 600; color: #356657; margin: 22px 0 0; }
.frontpage .home-feature-band { padding: 36px 0; }
.frontpage .home-programs { padding: 64px 0; }
.home-programs-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 30px; }
.home-programs-heading .section-title { max-width: 660px; margin-bottom: 14px; }
.home-programs-heading .section-lead { max-width: 650px; margin-bottom: 0; }
.home-catalog-link { color: #356657; font-weight: 700; flex-shrink: 0; padding: 12px 0; }
.home-course-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.home-course-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid #dde5df; border-radius: 20px; background: #fff; box-shadow: 0 8px 24px #244d3d08; }
.home-course-image { aspect-ratio: 16/9; overflow: hidden; background: #edf3ee; }
.home-course-image img { display: block; width: 100%; height: auto; object-fit: contain; }
.home-course-content { display: flex; flex-direction: column; flex: 1; padding: 24px; }
.home-course-audience { color: #356657; font-size: 12px; font-weight: 700; margin-bottom: 12px; }
.home-course-content h3 { font-size: 23px; line-height: 1.3; margin-bottom: 12px; }
.home-course-description { font-size: 14px; line-height: 1.7; color: #56615c; margin-bottom: 22px; }
.home-course-facts { margin: auto 0 0; padding: 16px 0; border-top: 1px solid #e7ece8; border-bottom: 1px solid #e7ece8; }
.home-course-facts div { display: flex; justify-content: space-between; gap: 14px; margin: 5px 0; font-size: 13px; }
.home-course-facts dt { font-weight: 400; color: #65726b; }
.home-course-facts dd { margin: 0; text-align: right; font-weight: 600; color: #283e34; }
.home-course-content .ke-button { width: 100%; display: flex; justify-content: center; gap: 12px; }
.home-guidance { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 30px 34px; margin-top: 30px; border-radius: 18px; background: #edf4ef; }
.home-guidance .section-subtitle { font-size: 11px; margin-bottom: 8px; }
.home-guidance h3 { font-size: 24px; margin-bottom: 8px; }
.home-guidance p { font-size: 14px; margin: 0; max-width: 650px; }
.home-guidance .ke-button { flex-shrink: 0; }
.frontpage .home-flow__schedule { padding: 64px 0; }
.frontpage .home-flow__about { padding-top: 64px; }
.home-catalog-link:focus-visible { outline: 3px solid #356657; outline-offset: 5px; }
@media(max-width:991px) {
    .home-course-grid { gap: 14px; }
    .home-course-content { padding: 18px; }
    .home-course-content h3 { font-size: 20px; }
    .home-course-facts div { flex-direction: column; gap: 2px; }
    .home-course-facts dd { text-align: left; }
    .home-programs-heading, .home-guidance { align-items: flex-start; flex-direction: column; }
}
@media(max-width:767px) {
    .frontpage .home-feature-band .features-item-two { display: flex; align-items: flex-start; gap: 16px; text-align: left; margin-bottom: 22px; }
    .frontpage .home-feature-band .features-icon-two { flex: 0 0 52px; width: 52px; height: 52px; margin: 0; }
    .frontpage .home-feature-band .features-content-two .title { font-size: 18px; margin-bottom: 6px; }
    .frontpage .home-feature-band .features-content-two p { font-size: 13px; line-height: 1.65; }
    .frontpage .kursus-hero h1 { font-size: 36px; }
    .frontpage .kursus-hero .home-hero-proof { font-size: 12px; }
    .frontpage .home-programs, .frontpage .home-flow__schedule { padding: 40px 0; }
    .home-course-grid { grid-template-columns: 1fr; gap: 22px; }
    .home-course-content { padding: 22px; }
    .home-course-content h3 { font-size: 24px; }
    .home-course-facts div { flex-direction: row; }
    .home-course-facts dd { text-align: right; }
    .home-course-description { font-size: 15px; }
    .home-guidance { padding: 24px; }
    .home-guidance .ke-button { width: 100%; }
    .home-programs-heading { gap: 8px; }
}

/* Compact frontpage: classes and admin-managed banners share one section. */
.frontpage .kursus-hero { padding-top: 128px; padding-bottom: 88px; }
.frontpage .kursus-hero .hero-img-card img { height: 380px; object-fit: cover; }
.frontpage .kursus-hero h1 { font-size: clamp(34px, 3.2vw, 48px); }
.frontpage .hero-badge { margin-bottom: 18px; }
.frontpage .kursus-hero .banner-btn { margin-top: 22px; }
.frontpage .home-feature-band { padding: 24px 0 10px; }
.frontpage .home-feature-band .features-item-two { margin-bottom: 12px; }
.frontpage .home-flow > .ke-band { padding-top: 40px; padding-bottom: 40px; }
.frontpage .home-flow > .home-feature-band { padding-top: 36px; padding-bottom: 24px; }
.frontpage .home-flow > .home-programs { padding-top: 28px; }
.frontpage .home-schedule-heading { margin-bottom: 24px !important; }
.frontpage .home-about-heading { margin-bottom: 24px; }
.frontpage .home-registration-section { padding: 24px 0 32px; }
.frontpage .home-registration-cta { padding: 26px 30px; }
.frontpage .section-title { font-size: clamp(27px, 2.5vw, 36px); line-height: 1.25; }
.frontpage #program, .frontpage #promo, .frontpage #jadwal { scroll-margin-top: 86px; }
.home-programs-heading { margin-bottom: 22px; gap: 22px; }
.home-programs-heading .section-title { margin-bottom: 8px; }
.home-programs-heading .section-lead { font-size: 14px; }
.home-programs-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1.15fr); gap: 20px; align-items: stretch; }
.home-course-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.home-course-card { display: flex; flex-direction: column; border-radius: 16px; }
.home-course-image { width: 100%; height: auto; min-height: 0; aspect-ratio: auto; flex-shrink: 0; }
.home-course-content { padding: 16px 18px; }
.home-course-audience { font-size: 11px; margin-bottom: 5px; }
.home-course-content h3 { font-size: 20px; margin-bottom: 9px; line-height: 1.3; }
.home-course-description { font-size: 13px; line-height: 1.55; margin-bottom: 10px; }
.home-course-facts { display: flex; flex-wrap: wrap; gap: 6px 22px; padding: 12px 0; margin: auto 0 0; border-bottom: 0; }
.home-course-facts div { display: block; margin: 0; font-size: 12px; }
.home-course-facts dd { text-align: left; }
.home-course-content .ke-button { width: 100%; min-height: 44px; padding: 9px 10px; font-size: 12px; margin-top: 4px; }
.home-offers-row { min-width: 0; padding: 18px; border: 1px solid #dce6df; border-radius: 16px; background: #edf4ef; }
.home-offers-row .program-promo-section { height: 100%; }
.home-offers-row .program-promo-carousel { flex-shrink: 0; box-shadow: none; border-radius: 12px; }
.home-offers-row .program-section-heading { min-height: 0; margin-bottom: 14px; }
.home-offers-row .program-section-heading .section-title { font-size: 23px; }
.home-offers-row .program-promo__pagination { margin-top: 10px; }
.home-offers-row .program-promo--full > img { object-fit: contain; }
.home-guidance { padding: 20px 24px; margin-top: 22px; gap: 20px; }
.home-guidance h3 { font-size: 22px; }
.home-guidance .section-subtitle { margin-bottom: 5px; }
@media (min-width:768px) and (max-width:1199px) {
    .home-programs-layout { grid-template-columns: minmax(0,1fr); gap: 18px; }
    .home-offers-row .program-promo-section { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,320px); gap: 0 24px; }
    .home-offers-row .program-section-heading { grid-column: 1; grid-row: 1; }
    .home-offers-row .program-promo-carousel { grid-column: 2; grid-row: 1; }
    .home-offers-row .program-promo__progress, .home-offers-row .program-promo__pagination { grid-column: 2; }
    .home-course-content { padding: 14px; }
    .home-course-content h3 { font-size: 19px; }
    .home-guidance { flex-direction: row; align-items: center; }
}
@media(max-width:767px) {
    .frontpage .kursus-hero { padding: 98px 0 60px; }
    .frontpage .kursus-hero h1 { font-size: 34px; }
    .frontpage .kursus-hero .hero-img-card { margin-top: 24px; }
    .frontpage .kursus-hero .hero-img-card img { height: 220px; }
    .frontpage .hero-image-note { padding: 12px; font-size: 11px; }
    .frontpage .home-flow > .ke-band { padding-top: 28px; padding-bottom: 28px; }
    .frontpage .home-flow > .home-feature-band { padding-top: 28px; padding-bottom: 12px; }
    .frontpage .home-flow > .home-programs { padding-top: 22px; }
    .home-programs-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .home-course-grid { grid-template-columns: minmax(0,1fr); }
    .home-course-content { padding: 18px; }
    .home-course-content h3 { font-size: 22px; }
    .home-course-description { font-size: 14px; }
    .home-course-content .ke-button { width: 100%; min-height: 44px; padding-inline: 8px; }
    .home-programs-heading { gap: 4px; }
    .home-catalog-link { font-size: 13px; padding: 8px 0; }
    .home-offers-row { width: 100%; max-width: 400px; margin-inline: auto; }
    .home-offers-row .program-promo-section { order: 0; }
    .home-guidance { padding: 20px; gap: 16px; }
    .frontpage .home-registration-cta { padding: 22px; }
}

/* Classic learning categories: promotion left, two-by-two paths right. */
.home-programs-layout.home-paths-layout { grid-template-columns: minmax(0, 1.03fr) minmax(0, 2fr); gap: 32px; align-items: start; }
.home-paths-main { min-width: 0; }
.home-paths-layout .home-offers-row { padding: 0; border: 0; border-radius: 0; background: transparent; max-width: none; }
.home-paths-layout .home-programs-heading,
.home-paths-layout .program-section-heading { min-height: 120px; margin-bottom: 20px; }
.home-paths-layout .home-programs-heading { display: block; position: relative; padding-bottom: 24px; }
.home-paths-layout .home-catalog-link { position: absolute; right: 0; bottom: 0; padding: 0; font-size: 12px; }
.home-paths-layout .program-section-heading .section-title { font-size: clamp(27px, 2.5vw, 36px); }
.home-paths-layout .program-promo-section { display: flex; flex-direction: column; height: auto; }
.home-paths-layout .program-promo-carousel { border-radius: 16px; box-shadow: 0 12px 30px #244d3d0d; }
.home-paths-layout .home-path-card { box-shadow: 0 10px 28px #244d3d08; }
.home-paths-layout .home-path-content { padding: 16px; min-height: 140px; }
.home-paths-layout .home-path-content h3 { font-size: 18px; margin-bottom: 10px; }
.home-paths-layout .home-path-card > img { aspect-ratio: 2.3 / 1; object-fit: cover; object-position: center; }
@media (max-width: 991px) {
    .home-programs-layout.home-paths-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .home-paths-layout .home-offers-row { width: 100%; max-width: 420px; margin-inline: auto; }
    .home-paths-layout .home-programs-heading,
    .home-paths-layout .program-section-heading { min-height: 0; margin-bottom: 20px; }
}
@media (max-width: 767px) {
    .home-paths-layout .home-path-content { min-height: 0; }
    .home-paths-layout .home-path-card > img { aspect-ratio: 2 / 1; }
}

/* Leave breathing room above the decorative hero transition. */
.frontpage .kursus-hero-wave { height: 48px; }
.frontpage .kursus-hero-wave__line { stroke: rgba(53, 104, 89, .07); stroke-width: 1; }
@media (max-width: 767px) {
    .frontpage .kursus-hero-wave { height: 32px; }
}
