:root {
    --judi-teal: #008f72;
    --judi-teal-bright: #049f82;
    --judi-green: #2fbb6d;
    --judi-ink: #222;
    --judi-muted: #676767;
    --judi-line: #e4eeeb;
    --judi-paper: #f7f7f7;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: Nunito, system-ui, sans-serif;
    color: var(--judi-ink);
    background: #fff;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: var(--judi-teal-bright); text-decoration: none; }
img { max-width: 100%; height: auto; }
main { flex: 1; }

.skip-link {
    position: absolute;
    left: -999px;
}

.site-container {
    width: min(1240px, calc(100% - 40px));
    margin: 0 auto;
}

#masthead {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    border-bottom: 1px solid #edf4f2;
}

.site-header-inner {
    width: min(1290px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 82px;
    display: grid;
    grid-template-columns: 200px 1fr auto;
    align-items: center;
    gap: 16px;
}

.site-branding img {
    max-width: 168px;
    display: block;
}

.header-navigation .menu {
    display: flex;
    justify-content: center;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.header-navigation a,
.mobile-drawer a {
    display: inline-flex;
    align-items: center;
    gap: 0.45em;
    color: #454545;
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 600;
}

.header-navigation .current-menu-item a,
.header-navigation a:hover {
    background: #e9f6f2;
    color: var(--judi-teal);
    font-weight: 700;
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.judi-nav-login,
.header-navigation .judi-nav-login {
    background: var(--judi-teal-bright);
    color: #fff !important;
    border-radius: 999px;
    padding: 0.55em 1.15em !important;
    font-weight: 700;
    box-shadow: 0 6px 16px rgba(4, 159, 130, 0.18);
}

.judi-nav-login:hover { background: var(--judi-teal); }

.header-admin {
    color: var(--judi-teal);
    font-weight: 700;
}

.avatar-name {
    background: var(--judi-teal);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    font-weight: 700;
}

.mobile-toggle {
    display: none;
    background: none;
    border: 0;
    padding: 8px;
    cursor: pointer;
}

.mobile-drawer {
    display: none;
    background: #fff;
    border-top: 1px solid #edf4f2;
    padding: 8px 16px 16px;
}

.mobile-drawer.is-open { display: block; }
.mobile-drawer .menu { list-style: none; margin: 0; padding: 0; }
.mobile-drawer a { width: 100%; }
.mobile-drawer .judi-nav-login a {
    background: var(--judi-teal-bright);
    color: #fff !important;
    justify-content: center;
    border-radius: 10px;
    margin-top: 8px;
}

.header-navigation .feather,
.mobile-drawer .feather,
.judi-nav-login .feather {
    width: 16px;
    height: 16px;
}

.content-area { margin: 1.5rem 0 3rem; }
.archive-title { font-size: 42px; margin: 8px 0 24px; }
.child-tag-title { margin: 35px 0 15px; font-size: 20px; }
.crumb { color: var(--judi-muted); margin-bottom: 8px; }
.flash-notice {
    margin-top: 16px;
    padding: 12px 16px;
    background: #e9f6f2;
    border-radius: 10px;
}

.hero {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    min-height: 430px;
    background: #2b3940;
    color: #fff;
}

.hero-copy {
    padding: 72px 8% 64px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-kicker {
    color: #c1f780;
    font-weight: 700;
    margin: 0 0 10px;
}

.hero h1 {
    font-size: clamp(32px, 4vw, 52px);
    line-height: 1.15;
    margin: 0 0 16px;
}

.hero-copy p { max-width: 36rem; line-height: 1.6; }

.hero-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: var(--judi-teal);
    font-weight: 800;
    border-radius: 999px;
    padding: 14px 28px;
    width: fit-content;
    margin-top: 12px;
}

.hero-cta.dark {
    background: var(--judi-teal-bright);
    color: #fff;
}

.hero-media {
    background:
        linear-gradient(90deg, #2b3940 0%, rgba(43,57,64,0.15) 18%, transparent 40%),
        url("https://startertemplatecloud.com/21/wp-content/uploads/sites/46/2020/09/hero-mobile-background-min.jpg") center/cover no-repeat;
}

.home-tags { padding: 42px 0 20px; }

.judi-academy-tag-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.judi-academy-tag-col { flex: 0 0 calc(33% - 16px); }

.judi-academy-tag-col a {
    display: flex;
    padding: 15px;
    color: inherit;
    border-radius: 15px;
}

.judi-academy-tag-col a:hover { background: #e6f1ef; }

.judi-academy-tag-col img {
    border-radius: 20px;
    max-width: 120px;
    box-shadow: 8px 8px 20px rgba(106,194,157,0.1);
}

.judi-academy-tag-col .cat-details { padding: 0 20px; }
.judi-academy-tag-col h4 { margin: 0 0 8px; font-size: 20px; }
.judi-academy-tag-col .counter { color: #8a8a8a; font-size: 13px; }
.judi-academy-tag-col .counter div { display: flex; align-items: center; gap: 6px; margin: 3px 0; }
.judi-academy-tag-col .counter svg { width: 12px; height: 12px; }

.welcome-band {
    background: var(--judi-paper);
    padding: 56px 0;
    text-align: center;
}

.welcome-band h2 { font-size: 34px; margin-bottom: 12px; }
.welcome-band p { max-width: 720px; margin: 0 auto 16px; color: #454545; line-height: 1.7; }
.text-link { font-weight: 700; }

.feature-grid { padding: 56px 0; }
.section-heading { text-align: center; font-size: 32px; margin-bottom: 28px; }
.feature-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.feature-cards img { width: 70px; }
.feature-cards h3 { margin: 12px 0 8px; }
.feature-cards p { color: #454545; line-height: 1.6; }

.how-it-works {
    background: #2b3940;
    color: #fff;
    padding: 64px 0;
    text-align: center;
}
.how-it-works .steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 28px 0;
    text-align: left;
}
.how-it-works h2 { font-size: 34px; }

.course-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.course-item {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    position: relative;
}

.course-item img { width: 100%; border-radius: 8px; }
.course-item h2 { font-size: 17px; margin: 5px 0 0; }
.course-item h2 a { color: inherit; }
.course-item .course-code { font-size: 11px; color: #999; }
.course-item .course-tag {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid rgba(222,222,222,0.87);
}
.course-properties {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 10px;
}
.course-property {
    display: flex;
    align-items: center;
    font-size: 14px;
    gap: 5px;
}
.course-property svg { width: 20px; color: #63ad9e; }
.course-item.course-type-closed img { filter: grayscale(1); opacity: 0.4; }
.course-type-closed { background: #fafafa; }
.course-type-closed h2, .course-type-closed .course-property { color: #ccc; }
.closed-text {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    border-radius: 7px;
    padding: 2px 8px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
}
.closed-text svg { width: 15px; height: 15px; }
.course-item .course-status {
    display: flex;
    align-items: center;
    margin-top: 15px;
}
.free-price {
    padding: 8px;
    border: 1px solid #9e9e9e;
    border-radius: 8px;
    margin-right: 10px;
    color: #777;
}
.enroll-button {
    padding: 8px 16px;
    background: var(--judi-teal);
    color: #fff !important;
    border-radius: 8px;
    flex: 1;
    text-align: center;
    border: 0;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    display: inline-block;
}
.enroll-button:hover { background: #14aa8c; }

.prerequisite-warning {
    border: 1px solid #ffcd00;
    background: #fff8dc;
    padding: 15px;
    border-radius: 5px;
    margin-top: 12px;
}

.courses-list { position: relative; }
.courses-list::before {
    content: "";
    position: absolute;
    width: 1px;
    height: 100%;
    border-left: 1px dashed #dedede;
    top: 30px;
    left: 35px;
    z-index: 0;
}
.courses-list .path-course {
    display: flex;
    padding: 15px;
    margin: 7px 0;
    border-radius: 18px;
    color: inherit;
    position: relative;
    z-index: 1;
}
.courses-list .path-course:hover {
    background: #fff;
    box-shadow: 3px 3px 16px rgba(0,0,0,0.1);
}
.courses-list .course-status {
    flex: 60px;
    display: flex;
    align-items: center;
}
.svg-wrapper {
    background: #e0e0e0;
    color: #616161;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.svg-wrapper svg { width: 17px; height: 17px; }
.path-course-info { flex: 1; }
.path-course-info .course-name { display: flex; color: #222; }
.path-course-info .title { flex: 1; font-weight: 700; }
.path-course-info .course-code { font-size: 13px; color: #848484; flex: 110px; }
.course-code-pogress-container { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.learndash-progress-bar {
    background: #f5f5f5;
    border-radius: 15px;
    height: 8px;
    width: 100%;
}
.learndash-progress-bar-inner {
    background: #ffd000;
    height: 8px;
    border-radius: 15px;
}
.percentage { flex: 55px; font-size: 12px; color: #7e7e7e; text-align: right; }

.path-header-wrapper {
    display: flex;
    align-items: center;
    background: #008f72;
    padding: 10px 16px;
    border-radius: 19px;
    color: #fff;
    gap: 12px;
    margin-bottom: 24px;
}
.path-header-wrapper h1 { margin: 0; font-size: 22px; color: #fff; }
.path-header-image img { width: 60px; border-radius: 12px; box-shadow: 3px 3px 16px rgba(0,0,0,0.1); }

.course-hero-image { border-radius: 12px; margin-bottom: 16px; }
.pre-course .accordion-content { display: flex; flex-wrap: wrap; gap: 20px; }
.pre-course .left-column { flex: 0 0 56%; }
.pre-course .right-column { flex: 0 0 40%; }
.block-container.course-structure,
.pre-course .block-container {
    padding: 0 15px 15px;
    border: 2px solid #b0d6cd;
    border-radius: 10px;
    color: #5a7771;
    background: #f7fdfc;
    margin-bottom: 20px;
}
.block-container h3 {
    border-bottom: 2px solid #cee4df;
    padding-bottom: 6px;
    margin-bottom: 19px;
}
.course-toolbar { display: flex; align-items: center; gap: 16px; margin: 20px 0; }
.topic-list { list-style: none; padding: 0; margin: 0; }
.topic-list li { padding: 8px 0; border-bottom: 1px solid #e4eeeb; }
.topic-list a, .topic-list span { display: flex; align-items: center; gap: 8px; color: inherit; }
.topic-list .is-complete a { color: var(--judi-teal); }
.lesson-block { margin-bottom: 18px; }

.video-sample-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    margin: 16px 0 24px;
    background: #000;
}
.video-sample-container iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.entry-content { line-height: 1.7; color: #353535; }
.entry-content p { margin: 0 0 1em; }

.topic-quiz { margin: 32px 0; padding: 24px; background: #f7fdfc; border: 1px solid #b0d6cd; border-radius: 12px; }
.quiz-question { border: 0; margin: 0 0 18px; padding: 0; }
.quiz-question legend { font-weight: 700; margin-bottom: 8px; }
.quiz-question label { display: flex; gap: 8px; margin: 6px 0; }
.quiz-status { padding: 10px 12px; border-radius: 8px; }
.quiz-status.is-pass { background: #e9f6f2; }
.quiz-status.is-fail { background: #fdecec; }
.topic-nav { display: flex; justify-content: space-between; gap: 16px; margin: 28px 0; }

.judi-login, .judi-account { display: flex; justify-content: center; padding: 48px 0 80px; }
.judi-login__card, .judi-account__card {
    width: 100%;
    max-width: 460px;
    background: #fff;
    border: 1px solid #e4eeeb;
    border-radius: 16px;
    padding: 40px 36px 32px;
    box-shadow: 0 10px 32px rgba(4, 159, 130, 0.08);
}
.judi-account__card { max-width: 720px; }
.judi-login h1, .judi-account h1 { text-align: center; margin: 0 0 8px; font-size: 32px; }
.judi-account h1 { text-align: left; margin-bottom: 24px; }
.judi-login__lead { text-align: center; color: var(--judi-muted); margin: 0 0 28px; }
.judi-login__notice { padding: 12px 14px; border-radius: 10px; margin-bottom: 20px; }
.judi-login__notice--error { background: #fdecec; color: #9b2c2c; }
.judi-login__notice--info { background: #e9f6f2; }
.judi-login__form label { display: block; margin-bottom: 8px; font-weight: 600; }
.judi-login__form input[type="email"], .judi-login__code {
    width: 100%;
    border: 1px solid #d5e4e0;
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 16px;
    margin-bottom: 16px;
    font-family: inherit;
}
.judi-login__code { text-align: center; letter-spacing: 0.45em; font-size: 28px; font-weight: 700; }
.judi-login__form button[type="submit"] {
    width: 100%;
    border: 0;
    border-radius: 10px;
    padding: 14px 16px;
    background: var(--judi-green);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}
.judi-login__form button[type="submit"]:hover { background: var(--judi-teal); }
.judi-login__resend { margin-top: 18px; display: flex; justify-content: space-between; }
.judi-login__linkbtn, .judi-login__alt a {
    color: var(--judi-teal-bright);
    background: none;
    border: 0;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}
.judi-login__alt { text-align: center; color: var(--judi-muted); font-size: 14px; }
.judi-account__fields { margin: 0; }
.judi-account__fields > div {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #edf4f2;
}
.judi-account__actions { display: flex; gap: 12px; margin-top: 28px; }
.judi-account__button {
    display: inline-block;
    background: var(--judi-green);
    color: #fff !important;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 600;
    border: 0;
    font: inherit;
    cursor: pointer;
}
.judi-account__button--ghost {
    background: transparent;
    color: var(--judi-teal-bright) !important;
    border: 1px solid var(--judi-teal-bright);
}

.judi-contact__cards { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.judi-contact__card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid #e4eeeb;
    border-radius: 14px;
    color: inherit;
    box-shadow: 0 8px 22px rgba(4, 159, 130, 0.06);
}

.page-content .entry-content { max-width: 860px; }
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
}

.site-footer {
    background: #1f2a2e;
    color: #d7e3df;
    padding: 48px 0 0;
    margin-top: 40px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}
.site-footer h2 { color: #fff; font-size: 20px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer a { color: #d7e3df; }
.site-footer a:hover { color: #2fbb6d; }
.footer-copy {
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 32px;
    padding: 16px 0;
    text-align: center;
    font-size: 13px;
}

@media (max-width: 980px) {
    .hero, .feature-cards, .how-it-works .steps, .course-grid, .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .judi-academy-tag-col { flex-basis: 100%; }
    .pre-course .left-column, .pre-course .right-column { flex-basis: 100%; }
}

@media (max-width: 768px) {
    .site-header-inner { grid-template-columns: 1fr auto; }
    .header-navigation { display: none; }
    .mobile-toggle { display: inline-flex; }
    .hero { grid-template-columns: 1fr; min-height: 0; }
    .hero-media { min-height: 220px; }
    .course-grid, .feature-cards, .how-it-works .steps, .footer-grid { grid-template-columns: 1fr; }
    .judi-account__fields > div { grid-template-columns: 1fr; }
}
