/* styles.css — visual replica of the references */
:root {
    --bg: #f3fbfb;
    --card: #ffffff;
    --accent: #0b84a5;
    /* teal-ish */
    --primary: #00a98f;
    /* tag / buttons */
    --yellow: #f6c000;
    --muted: #6b7280;
    --soft: #e9f6f6;
    --radius: 12px;
    font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    color-scheme: light;
}

* {
    box-sizing: border-box
}

html,
body {
    height: 100%;
    margin: 0;
    background: var(--bg);
    -webkit-font-smoothing: antialiased
}

.wrap {
    width: calc(100% - 40px);
    max-width: 1100px;
    margin: 0 auto;
    padding: 28px 0
}

.site-header {
    background: #0b84a5;
    box-shadow: 0 6px 20px rgba(2, 16, 33, 0.04);
    position: sticky;
    top: 0;
    z-index: 50
}

.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0
}

.brand {
    display: flex;
    gap: 10px;
    align-items: center;
    text-decoration: none;
    color: var(--accent);
    font-weight: 700
}

.brand img {
    width: 145px;
    height: 50px;
    border-radius: 8px
}

.nav {
    display: flex;
    gap: 14px;
    align-items: center
}

.nav a {
    color: var(--card);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 600
}

.nav a:hover {
    background: rgba(11, 23, 32, 0.04);
    color: #000
}

.btn-primary {
    background: var(--primary);
    color: white;
    padding: 10px 16px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block
}

.btn-ghost {
    background: transparent;
    border: 2px solid rgba(11, 23, 32, 0.06);
    padding: 8px 14px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--accent);
    font-weight: 700
}

.menuBtn {
    display: none;
    background: transparent;
    border: 0;
    font-size: 22px
}

/* HERO */
.hero {
    padding: 36px 0;

}

.hero-inner {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap
}

.hero-text {
    flex: 1;
    min-width: 320px
}

.hero-text h1 {
    font-size: clamp(20px, 3.8vw, 36px);
    margin: 0 0 10px;
    color: #0b1720
}

.lead {
    color: var(--muted);
    margin-bottom: 12px
}

.hero-cta {
    display: flex;
    gap: 12px
}

.hero-figure {
    flex-grow: 1;
    display: flex;
    justify-content: flex-end;
}

.hero-figure img {
    width: 100%;
    max-width: 300px;
}

/* SECTION TITLES */
.section-title {
    text-align: center;
    font-size: 22px;
    color: var(--accent);
    margin-bottom: 18px
}

/* JENJANG FILTER */
.jenjang-filter {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 20px;
    flex-wrap: wrap
}

.jenjang {
    padding: 10px 16px;
    border-radius: 999px;
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
    font-weight: 700;
    cursor: pointer
}

.jenjang.active,
.jenjang:hover {
    background: var(--primary);
    color: #fff
}

/* PROGRAM GRID & CARD */
.program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px
}

.program-card {
    background: var(--card);
    border-radius: 16px;
    padding: 18px 18px 22px;
    box-shadow: 0 12px 30px rgba(2, 16, 33, 0.06);
    position: relative;
    overflow: visible
}

.program-card .tag {
    position: absolute;
    right: 0;
    top: 18px;
    background: var(--accent);
    color: #fff;
    padding: 8px 14px;
    border-radius: 12px 0 0 12px;
    font-weight: 700
}

.card-header {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 12px
}

.card-header img {
    width: 42px;
    height: 42px
}

.card-header h3 {
    margin: 0;
    font-size: 16px;
    color: #0b1720
}

.features {
    list-style: none;
    padding: 0;
    margin: 6px 0 14px
}

.features li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 10px;
    color: #123;
    font-size: 14px
}

.features li .ico {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: rgba(0, 169, 143, 0.08);
    color: var(--primary);
    font-size: 14px
}

.detail-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px
}

.detail-btn {
    background: #eafcf9;
    border-radius: 10px;
    padding: 10px 12px;
    border: 0;
    text-align: left;
    font-weight: 600;
    cursor: pointer;
    position: relative
}

.detail-btn::after {
    content: "›";
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-weight: 800
}

.detail-panel {
    display: none;
    background: #fefefc;
    border-left: 4px solid var(--primary);
    padding: 12px;
    border-radius: 8px;
    margin-top: 8px;
    font-size: 14px
}

.detail-panel.show {
    display: block
}

.accordion {
    width: 100%;
    border-radius: 8px;
}

.accordion-header {
    width: 100%;
    text-align: left;
    padding: 14px 18px;
    background: #f2f2f2;
    border: none;
    outline: none;
    cursor: pointer;
    font-weight: 600;
    border-bottom: 1px solid #ddd;
    transition: 0.3s;
}

.accordion-header:hover {
    background: #e8e8e8;
}

.accordion-content {
    display: none;
    padding: 14px 18px;
    background: #fff;
    border-bottom: 1px solid #ddd;
}


/* CTA within card */
.card-cta {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px
}

.btn-orange {
    background: linear-gradient(90deg, #f6a623, #ff7b00);
    color: white;
    padding: 12px;
    border-radius: 10px;
    border: 0;
    font-weight: 900;
    cursor: pointer
}

.card-link {
    display: block;
    text-align: center;
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
    margin-top: 6px
}

/* TIMELINE */
.bg-soft {
    background: linear-gradient(180deg, #f3fbfb 0, #fff 100%);
    border-radius: 14px;
    padding: 28px
}

.timeline-wrap {
    position: relative;
    padding: 20px 10px
}

.timeline-line {
    position: absolute;
    left: 60px;
    top: 20px;
    bottom: 20px;
    width: 4px;
    background: #cfecec;
    border-radius: 4px;
    transform: translateX(-50%)
}

.timeline-item {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 28px;
    position: relative
}

.timeline-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: white;
    border: 4px solid #0b84a5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 2
}

.timeline-card {
    flex: 1;
    padding: 18px 18px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(2, 16, 33, 0.04);
    position: relative
}

.timeline-card.yellow {
    background: #ffd84d10;
    /* subtle */
    background: #f7c800;
    color: #0b1730
}

.timeline-card.light {
    background: #fff;
    color: #0b1730
}

.timeline-card h3 {
    margin-top: 0;
    margin-bottom: 8px
}

.timeline-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 14px
}

.timeline-bullets li {
    margin-bottom: 6px
}

/* INFO TABS */
.info-tabs {
    margin-top: 8px
}

.tab-list {
    display: flex;
    gap: 12px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.04);
    padding-bottom: 10px;
    justify-content: center
}

.tab {
    background: transparent;
    border: 0;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    color: var(--muted)
}

.tab.active {
    color: var(--accent);
    border-bottom: 4px solid var(--accent);
    padding-bottom: 6px
}

.tab-panels {
    margin-top: 18px
}

.tab-panel {
    background: var(--card);
    padding: 18px;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(2, 16, 33, 0.03);
    display: none
}

.tab-panel.active {
    display: block
}

/* FAQ */
.faq-list details {
    background: #fff;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 10px;
    box-shadow: 0 8px 24px rgba(2, 16, 33, 0.03)
}

.faq-list summary {
    font-weight: 700;
    cursor: pointer
}

/* CTA */
.cta-section {
    text-align: center;
    padding: 30px 0
}

.cta-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap
}

.large {
    padding: 14px 20px;
    font-size: 16px
}

/* Footer */
.site-footer {
    padding: 18px 0;
    text-align: center;
    color: var(--muted);
    margin-top: 20px
}

/* Responsiveness */
@media (max-width:900px) {
    .hero-inner {
        flex-direction: column
    }

    .hero-figure {
        order: -1
    }

    .nav {
        display: none
    }

    .menuBtn {
        display: block
    }

    #mobileNav {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 12px;
        background: #fff
    }

    .timeline-line {
        left: 40px
    }
}

@media (max-width:520px) {
    .wrap {
        padding-left: 16px;
        padding-right: 16px;
        padding-bottom: 50px;
    }

    .timeline-line {
        left: 36px
    }

    .timeline-icon {
        width: 40px;
        height: 40px
    }

    .timeline-card {
        padding: 14px
    }
}

/* Timeline active animation */
.timeline-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.timeline-item.active {
    opacity: 1;
    transform: translateY(0);
}

.timeline-icon {
    transition: background 0.3s ease, transform 0.3s ease;
}

.timeline-item.active .timeline-icon {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.15);
}

.timeline-item.active .timeline-icon svg path {
    fill: #fff;
}

.timeline-card {
    transition: box-shadow 0.4s ease;
}

.timeline-item.active .timeline-card {
    box-shadow: 0 8px 20px rgba(11, 132, 165, 0.25);
}

/* --- MOBILE BOTTOM NAV --- */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: none;
    /* default hidden, show only on mobile */
    justify-content: space-around;
    align-items: center;
    padding: 8px 0;
    z-index: 1000;
}

.mobile-bottom-nav .nav-item {
    text-decoration: none;
    color: #0b84a5;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
}

.mobile-bottom-nav .icon {
    font-size: 20px;
    margin-bottom: 3px;
}

/* Center highlight button */
.mobile-bottom-nav .center {
    background: #0b84a5;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 20%;
    position: relative;
    top: -10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    box-shadow: 0 6px 16px rgba(11, 132, 165, 0.3);
}

.mobile-bottom-nav .center .icon {
    font-size: 22px;
}

/* Active state */
.mobile-bottom-nav .nav-item.active,
.mobile-bottom-nav .nav-item:hover {
    color: #007f6f;
}

/* Show only on small screen */
@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
    }
}

/* ========= CONTACT (DESKTOP DEFAULT) ========= */
.contact-section {
    padding: 36px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}

.contact-card .social-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.contact-card .social-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.contact-card .social-links a:hover {
    transform: translateY(-3px);
}

/* Brand colors */
.contact-card .fb {
    background-color: #1877f2;
}

.contact-card .ig {
    background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af);
}

.contact-card .yt {
    background-color: #ff0000;
}

.map-card iframe {
    width: 100%;
    border-radius: 10px;
    height: 225px;
}

/* ========= RESPONSIVE: MOBILE MODE ========= */
@media (max-width: 520px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-card {
        order: 2;
    }

    .map-card {
        order: 1;
        margin-top: 12px;
    }

    /* Ubah social link jadi hanya ikon sejajar */
    .contact-card .social-links {
        display: flex;
        flex-direction: row;
        justify-content: space-evenly;
        align-items: center;
        margin-top: 10px;
        gap: 15px;
    }

    /* Warna masing-masing platform */
    .contact-card .fb {
        background-color: #1877f2;
    }

    .contact-card .ig {
        background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af);
    }

    .contact-card .yt {
        background-color: #ff0000;
    }

    .map-card iframe {
        height: 180px;
        border-radius: 10px;
    }
}