/* =========================================================
   Unified curriculum page stylesheet.
   Replaces: standar.css, webdev.css, ai.css, iot.css,
   cybersecurity.css, ethicalhacker.css, inggris.css.
   Vars + global .cta-button still come from kurikulumBase.css.
   ========================================================= */

.course-page {
    --course-max: 900px;
    --course-radius: 1.25rem;
    --course-card-shadow: 0 10px 30px -10px rgba(29, 70, 110, 0.18);
    --course-card-shadow-hover: 0 18px 40px -12px rgba(29, 70, 110, 0.28);

    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding-bottom: 3rem;
}

/* ====================== HERO ====================== */
.course-hero {
    width: 100%;
    padding: 7rem var(--con-padding) 4.5rem;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 55%),
        linear-gradient(135deg, var(--accent2) 0%, var(--secondary) 100%);
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.course-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px);
    background-size: 22px 22px;
    opacity: 0.18;
    pointer-events: none;
}

.course-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.course-hero__eyebrow {
    font-family: "Poppins", sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
}

.course-hero__title {
    font-family: "Poppins", sans-serif;
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
    margin: 0;
}

.course-hero__tagline {
    font-family: "Open Sans", sans-serif;
    font-size: clamp(15px, 1.6vw, 17px);
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.88);
    max-width: 60ch;
    margin: 0.5rem 0 0;
}

/* ====================== SECTION CARD ====================== */
.course-section {
    width: 100%;
    max-width: var(--course-max);
    background: #fff;
    border-radius: var(--course-radius);
    box-shadow: var(--course-card-shadow);
    padding: 2rem;
}

.course-section + .course-section {
    margin-top: 0;
}

.course-section__head {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 1.25rem;
    border-left: 4px solid var(--accent);
    padding-left: 0.9rem;
}

.course-section__eyebrow {
    font-family: "Poppins", sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
}

.course-section__title {
    font-family: "Poppins", sans-serif;
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 700;
    color: var(--secondary);
    line-height: 1.2;
    margin: 0;
}

.course-section__body {
    font-family: "Open Sans", sans-serif;
    color: var(--text);
    font-size: clamp(15px, 1.7vw, 17px);
    line-height: 1.65;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.course-section__body p {
    margin: 0;
    text-align: justify;
}

.course-section__body ul,
.course-section__body ol {
    padding-left: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

/* Overview variant: slightly bigger lead paragraph */
.course-section--overview .course-section__body > p:first-child {
    font-size: clamp(16px, 1.8vw, 18px);
    color: #2a3340;
}

/* ====================== CURRICULUM ====================== */
.course-curriculum {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.course-module {
    background: #fff;
    border: 1px solid rgba(29, 70, 110, 0.08);
    border-radius: 0.9rem;
    box-shadow: 0 2px 8px rgba(29, 70, 110, 0.05);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    overflow: hidden;
}

.course-module:hover {
    box-shadow: var(--course-card-shadow-hover);
    transform: translateY(-2px);
}

.course-module__header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    width: 100%;
    background: transparent;
    border: none;
    text-align: left;
    cursor: default;
    font-family: "Poppins", sans-serif;
    color: var(--text);
}

.course-module--accordion .course-module__header {
    cursor: pointer;
}

.course-module__number {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent) 0%, #c08e10 100%);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px -2px rgba(217, 166, 31, 0.45);
}

.course-module__title {
    flex: 1;
    font-size: clamp(15px, 1.7vw, 17px);
    font-weight: 600;
    color: var(--secondary);
    line-height: 1.35;
    margin: 0;
}

.course-module__chevron {
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    transition: transform 0.35s ease;
}

.course-module--accordion[data-open="true"] .course-module__chevron {
    transform: rotate(180deg);
}

.course-module__body {
    height: 0;
    overflow: hidden;
    transition: height 0.4s ease;
}

.course-module--flat .course-module__body {
    height: auto;
}

.course-module__body-inner {
    padding: 0 1.25rem 1.25rem calc(1.25rem + 2.25rem + 1rem);
    font-family: "Open Sans", sans-serif;
    font-size: clamp(14px, 1.55vw, 15.5px);
    color: var(--text);
    line-height: 1.6;
}

.course-module__body-inner ul,
.course-module__body-inner ol {
    margin: 0;
    padding-left: 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.course-module__body-inner ul li::marker {
    color: var(--accent2);
}

.course-module__body-inner ol li {
    margin-bottom: 0.4rem;
}

.course-module__body-inner ol > li > p {
    font-weight: 600;
    color: var(--secondary);
    margin: 0 0 0.25rem;
}

/* ====================== FEATURES ====================== */
.course-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.85rem;
}

.course-feature {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 0.75rem;
    background: rgba(64, 179, 229, 0.07);
    border: 1px solid rgba(64, 179, 229, 0.18);
}

.course-feature__icon {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: rgba(64, 179, 229, 0.18);
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.95rem;
}

.course-feature__text {
    font-family: "Open Sans", sans-serif;
    font-size: clamp(14px, 1.55vw, 15.5px);
    line-height: 1.5;
    color: var(--text);
    margin: 0;
}

/* ====================== OS TEMPLATE IMAGE ====================== */
.os-template {
    display: flex;
    justify-content: center;
    padding: 1rem;
    background: rgba(64, 179, 229, 0.07);
    border: 1px solid rgba(64, 179, 229, 0.18);
    border-radius: 0.75rem;
}

.os-template img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

/* ====================== CTA CARD ====================== */
.course-cta {
    width: 100%;
    max-width: var(--course-max);
    border-radius: var(--course-radius);
    padding: 3rem 2rem;
    background:
        radial-gradient(circle at 80% 20%, rgba(217, 166, 31, 0.25) 0%, transparent 55%),
        linear-gradient(135deg, var(--secondary) 0%, var(--accent2) 100%);
    color: #fff;
    text-align: center;
    box-shadow: 0 14px 36px -12px rgba(29, 70, 110, 0.35);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.course-cta__kicker {
    font-family: "Poppins", sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
}

.course-cta__title {
    font-family: "Poppins", sans-serif;
    font-size: clamp(1.25rem, 2.5vw, 1.6rem);
    font-weight: 700;
    margin: 0;
    line-height: 1.25;
}

.course-cta__lead {
    font-family: "Open Sans", sans-serif;
    font-size: clamp(14px, 1.6vw, 16px);
    color: rgba(255, 255, 255, 0.88);
    max-width: 50ch;
    margin: 0;
}

.course-cta .cta-button {
    margin-top: 0.5rem;
}

/* ====================== HUB LINK GRID ====================== */
.course-hub {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
    gap: 1rem;
}

.course-hub__link {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    min-height: 130px;
    padding: 1.5rem 1.25rem;
    background: #fff;
    border: 1px solid rgba(29, 70, 110, 0.08);
    border-radius: 1rem;
    text-align: center;
    text-decoration: none;
    color: var(--secondary);
    font-family: "Poppins", sans-serif;
    font-size: clamp(1.05rem, 2.2vw, 1.4rem);
    font-weight: 700;
    box-shadow: 0 4px 14px -4px rgba(29, 70, 110, 0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.course-hub__link:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 32px -12px rgba(29, 70, 110, 0.3);
    background: linear-gradient(135deg, var(--secondary), var(--accent2));
    color: #fff;
}

.course-hub__link-sub {
    font-family: "Open Sans", sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(31, 35, 40, 0.7);
    text-transform: none;
}

.course-hub__link:hover .course-hub__link-sub {
    color: rgba(255, 255, 255, 0.85);
}

/* ====================== RESPONSIVE ====================== */
@media (max-width: 768px) {
    .course-hero {
        padding: 5.5rem 1rem 3rem;
    }

    .course-page {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .course-section {
        padding: 1.25rem;
    }

    .course-module__header {
        padding: 0.85rem 1rem;
        gap: 0.75rem;
    }

    .course-module__number {
        width: 2rem;
        height: 2rem;
        font-size: 0.85rem;
    }

    .course-module__body-inner {
        padding: 0 1rem 1rem calc(1rem + 2rem + 0.75rem);
    }

    .course-cta {
        padding: 2.25rem 1.25rem;
    }
}

@media (max-width: 480px) {
    .course-features {
        grid-template-columns: 1fr;
    }
}
