/* =========================
   GRID
========================= */
.roadmap-grid {
    display:grid;
    gap:28px;
    align-items:stretch;
}

.roadmap-grid.cols-2 {
    grid-template-columns:repeat(2,minmax(0,1fr));
}

.roadmap-grid.cols-3 {
    grid-template-columns:repeat(3,minmax(0,1fr));
}

.roadmap-grid.cols-4 {
    grid-template-columns:repeat(4,minmax(0,1fr));
}

/* =========================
   TOP SECTION
========================= */
.roadmap-section {
    padding:0 0 70px;
    background:#fff;
}

/* =========================
   TOP CARDS
========================= */
.roadmap-card {
    position:relative;
    display:flex;
    flex-direction:column;
    min-height:420px;
    padding:34px 30px 28px;
    overflow:hidden;
    border:1px solid var(--section-divider);
    border-radius:24px;
    background:#fff;
    cursor:pointer;
    box-shadow:0 10px 30px rgba(28,43,61,.04);
    transition:transform .3s ease,box-shadow .3s ease,border-color .3s ease;
}

.roadmap-card::before {
    content:"";
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:5px;
    background:var(--section-main);
}

.roadmap-card:hover {
    transform:translateY(-6px);
    border-color:var(--section-light);
    box-shadow:0 18px 45px rgba(28,43,61,.10);
}

.card-label {
    margin-bottom:10px;
    color:var(--section-light);
    font-size:12px;
    font-weight:800;
    letter-spacing:.14em;
}

.card-title {
    margin:0 0 14px;
    color:var(--section-text);
    font-size:32px;
    font-weight:800;
    line-height:1.35;
    letter-spacing:-1.4px;
}

.card-description {
    min-height:62px;
    margin:0;
    color:var(--section-sub);
    font-size:18px;
    font-weight:600;
    line-height:1.7;
    word-break:keep-all;
}

.card-description strong {
    color:var(--section-main);
}

/* =========================
   PREVIEW COMMON
========================= */
.preview-box {
    height:190px;
    display:flex;
    align-items:center;
    justify-content:center;
    margin-top:28px;
    padding:22px 18px;
    border-radius:18px;
    background:var(--section-bg);
}

/* =========================
   STEP PREVIEW
========================= */
.preview-steps {
    width:100%;
    display:grid;
    grid-template-columns:repeat(4,1fr);
    align-items:center;
}

.preview-step {
    position:relative;
    text-align:center;
}

.preview-step:not(:last-child)::after {
    content:"";
    position:absolute;
    z-index:0;
    top:20px;
    left:65%;
    width:70%;
    height:2px;
    background:var(--section-divider);
}

.step-number {
    position:relative;
    z-index:2;
    width:42px;
    height:42px;
    display:flex;
    align-items:center;
    justify-content:center;
    margin:0 auto 10px;
    border-radius:50%;
    background:var(--section-soft);
    color:var(--section-main);
    font-size:13px;
    font-weight:800;
}

.step-title {
    display:block;
    color:var(--section-text);
    font-size:13px;
    font-weight:700;
}

.step-sub {
    display:block;
    margin-top:4px;
    color:var(--section-sub);
    font-size:11px;
}

/* =========================
   LEVEL PREVIEW
========================= */
.preview-levels {
    width:100%;
    display:flex;
    flex-direction:column;
    gap:14px;
}

.preview-level {
    display:grid;
    grid-template-columns:80px 1fr;
    align-items:center;
    gap:12px;
}

.level-title {
    height:41px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:10px;
    color:#fff;
    font-size:13px;
    font-weight:800;
}

.preview-level.level-1 .level-title {
    background:var(--section-step1);
}

.preview-level.level-2 .level-title {
    background:var(--section-step2);
}

.preview-level.level-3 .level-title {
    background:var(--section-step3);
}

.level-items {
    display:flex;
    gap:7px;
}

.level-item {
    flex:1;
    padding:10px 5px;
    border:1px solid var(--section-divider);
    border-radius:9px;
    background:#fff;
    color:var(--section-sub);
    text-align:center;
    font-size:12px;
    font-weight:700;
}

/* =========================
   CARD BOTTOM
========================= */
.card-bottom {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    margin-top:auto;
    padding-top:22px;
    border-top:1px solid var(--section-divider);
}

.card-bottom-text {
    color:var(--section-sub);
    font-size:13px;
}

.card-detail {
    display:flex;
    align-items:center;
    gap:9px;
    color:var(--section-main);
    font-size:14px;
    font-weight:800;
}

.detail-arrow {
    width:35px;
    height:35px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    background:var(--section-soft);
    transition:transform .25s ease,background .25s ease;
}

.roadmap-card:hover .detail-arrow {
    transform:translateY(4px);
    background:var(--section-step1);
}

/* =========================
   DETAIL SECTION
========================= */
.roadmap-detail-section {
    padding:80px 0;
    border-top:1px solid var(--section-divider);
    background:#fff;
    scroll-margin-top:20px;
}

.roadmap-detail-section.alt {
    background:var(--section-bg);
    margin-left:calc((100vw - 100%)/-2);
    margin-right:calc((100vw - 100%)/-2);
    padding-left:max(40px,calc((100vw - 1120px)/2));
    padding-right:max(40px,calc((100vw - 1120px)/2));
}

.detail-header {
    position:relative;
    margin-bottom:46px;
    padding-right:150px;
}

.detail-label {
    display:block;
    margin-bottom:10px;
    color:var(--section-main);
    font-size:12px;
    font-weight:800;
    letter-spacing:.14em;
}
.detail-card {
    display:block;
    color:inherit;
    text-decoration:none;
    cursor:pointer;
}
.detail-title {
    margin:0;
    color:var(--section-text);
    font-size:38px;
    font-weight:800;
    line-height:1.35;
    letter-spacing:-1.8px;
}

.detail-description {
    margin:14px 0 0;
    color:var(--section-sub);
    font-size:16px;
    line-height:1.75;
    word-break:keep-all;
}

.back-link {
    position:absolute;
    top:0;
    right:0;
    display:inline-flex;
    align-items:center;
    padding:10px 15px;
    border:1px solid var(--section-divider);
    border-radius:30px;
    background:#fff;
    color:var(--section-sub);
    font-size:13px;
    font-weight:700;
    text-decoration:none;
    transition:border-color .2s ease,color .2s ease,transform .2s ease;
}

.back-link:hover {
    transform:translateY(-2px);
    border-color:var(--section-light);
    color:var(--section-main);
}

/* =========================
   DETAIL CARDS
========================= */
.detail-card {
    min-width:0;
    min-height:360px;
    padding:28px 25px;
    border:1px solid var(--section-divider);
    border-radius:20px;
    background:#fff;
    transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease;
}

.detail-card:hover {
    transform:translateY(-5px);
    border-color:var(--section-light);
    box-shadow:0 14px 35px rgba(43,71,107,.08);
}

.detail-card-top {
    display:flex;
    align-items:center;
    gap:13px;
    margin-bottom:25px;
}

.detail-number {
    flex-shrink:0;
    width:46px;
    height:46px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    background:var(--section-soft);
    color:var(--section-main);
    font-size:14px;
    font-weight:800;
}

.detail-target {
    color:var(--section-sub);
    font-size:13px;
    font-weight:700;
    word-break:keep-all;
}

.detail-card h3 {
    margin:0 0 12px;
    color:var(--section-text);
    font-size:22px;
    font-weight:800;
    line-height:1.4;
}

.detail-summary {
    min-height:52px;
    margin:0 0 22px;
    color:var(--section-sub);
    font-size:14px;
    line-height:1.7;
    word-break:keep-all;
}

.detail-list {
    margin:0;
    padding:21px 0 0;
    list-style:none;
    border-top:1px solid var(--section-divider);
}

.detail-list li {
    position:relative;
    margin-bottom:11px;
    padding-left:15px;
    color:var(--section-sub);
    font-size:14px;
    line-height:1.55;
    word-break:keep-all;
}

.detail-list li:last-child {
    margin-bottom:0;
}

.detail-list li::before {
    content:"";
    position:absolute;
    top:.78em;
    left:0;
    width:5px;
    height:5px;
    border-radius:50%;
    background:var(--section-light);
    transform:translateY(-50%);
}

/* =========================
   FLOW
========================= */
.roadmap-flow {
    display:grid;
    grid-template-columns:repeat(4,1fr);
    align-items:center;
    margin-top:32px;
    padding:27px 24px;
    border:1px solid var(--section-divider);
    border-radius:18px;
    background:#fff;
    box-shadow:0 6px 20px rgba(28,43,61,.03);
}

.flow-item {
    position:relative;
    text-align:center;
}

.flow-item:not(:last-child)::after {
    content:"→";
    position:absolute;
    top:50%;
    right:-6px;
    color:var(--section-sub);
    transform:translateY(-50%);
}

.flow-en {
    display:block;
    margin-bottom:4px;
    color:var(--section-light);
    font-size:10px;
    font-weight:800;
    letter-spacing:.08em;
}

.flow-title {
    color:var(--section-text);
    font-size:14px;
    font-weight:700;
}

/* =========================
   SUB SECTION
========================= */
.detail-subsection {
    margin-top:70px;
}

.detail-subsection:first-of-type {
    margin-top:0;
}

.detail-subheader {
    margin-bottom:30px;
}

.detail-sub-label {
    display:block;
    margin-bottom:7px;
    color:var(--section-main);
    font-size:11px;
    font-weight:800;
    letter-spacing:.14em;
}

.detail-sub-title {
    margin:0;
    color:var(--section-text);
    font-size:28px;
    font-weight:800;
    letter-spacing:-1px;
}

.detail-sub-description {
    margin:10px 0 0;
    color:var(--section-sub);
    font-size:14px;
    line-height:1.7;
}

.certificate-section {
    padding-top:65px;
    border-top:1px solid var(--section-divider);
}

.detail-symbol {
    flex-shrink:0;
    min-width:46px;
    height:46px;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:0 10px;
    border-radius:14px;
    background:var(--section-soft);
    color:var(--section-main);
    font-size:11px;
    font-weight:800;
}

/* =========================
   TABLET
========================= */
@media(max-width:1100px) {
    .roadmap-grid.cols-4,
    .roadmap-grid.cols-3 {
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .detail-card {
        min-height:340px;
    }

    .roadmap-detail-section.alt {
        padding-left:32px;
        padding-right:32px;
    }
}

@media(max-width:900px) {
    .roadmap-grid.cols-2 {
        grid-template-columns:1fr;
    }

    .roadmap-card {
        min-height:auto;
    }
}

/* =========================
   MOBILE
========================= */
@media(max-width:600px) {
    .roadmap-section {
        padding-bottom:50px;
    }

    .roadmap-grid {
        gap:18px;
    }

    .roadmap-grid.cols-2,
    .roadmap-grid.cols-3,
    .roadmap-grid.cols-4 {
        grid-template-columns:1fr;
    }

    .roadmap-card {
        min-height:auto;
        padding:28px 20px 22px;
        border-radius:18px;
    }

    .roadmap-card:hover {
        transform:none;
        box-shadow:0 10px 30px rgba(28,43,61,.04);
    }

    .card-label {
        margin-bottom:7px;
        font-size:10px;
    }

    .card-title {
        margin-bottom:9px;
        font-size:26px;
        letter-spacing:-1px;
    }

    .card-description {
        min-height:0;
        font-size:15px;
        line-height:1.65;
    }

    .preview-box {
        height:auto;
        min-height:160px;
        margin-top:24px;
        padding:20px 12px;
        border-radius:14px;
    }

    .preview-step:not(:last-child)::after {
        top:16px;
    }

    .step-number {
        width:32px;
        height:32px;
        margin-bottom:7px;
        font-size:10px;
    }

    .step-title {
        font-size:11px;
    }

    .step-sub {
        display:none;
    }

    .preview-levels {
        gap:9px;
    }

    .preview-level {
        grid-template-columns:56px 1fr;
        gap:7px;
    }

    .level-title {
        height:34px;
        border-radius:8px;
        font-size:10px;
    }

    .level-items {
        gap:4px;
    }

    .level-item {
        padding:8px 2px;
        font-size:10px;
    }

    .card-bottom {
        margin-top:22px;
        padding-top:17px;
    }

    .card-bottom-text {
        display:none;
    }

    .card-detail {
        width:100%;
        justify-content:flex-end;
        font-size:13px;
    }

    .detail-arrow {
        width:31px;
        height:31px;
    }

    .roadmap-detail-section {
        padding:55px 0;
    }

    .roadmap-detail-section.alt {
        margin-left:calc((100vw - 100%)/-2);
        margin-right:calc((100vw - 100%)/-2);
        padding-left:16px;
        padding-right:16px;
    }

    .detail-header {
        margin-bottom:28px;
        padding:44px 0 0;
    }

    .detail-label {
        margin-bottom:7px;
        font-size:10px;
    }

    .detail-title {
        font-size:27px;
        letter-spacing:-1.1px;
    }

    .detail-description {
        margin-top:9px;
        font-size:13px;
        line-height:1.7;
    }

    .back-link {
        top:0;
        right:auto;
        left:0;
        padding:8px 12px;
        font-size:11px;
    }

    .detail-card {
        min-height:0;
        padding:23px 19px;
        border-radius:17px;
    }

    .detail-card:hover {
        transform:none;
        box-shadow:none;
    }

    .detail-card-top {
        gap:10px;
        margin-bottom:18px;
    }

    .detail-number {
        width:39px;
        height:39px;
        font-size:12px;
    }

    .detail-target {
        font-size:12px;
    }

    .detail-card h3 {
        margin-bottom:8px;
        font-size:20px;
    }

    .detail-summary {
        min-height:0;
        margin-bottom:17px;
        font-size:13px;
    }

    .detail-list {
        padding-top:16px;
    }

    .detail-list li {
        margin-bottom:8px;
        font-size:13px;
    }

    .roadmap-flow {
        grid-template-columns:repeat(2,1fr);
        gap:22px 0;
        margin-top:22px;
        padding:22px 12px;
        border-radius:14px;
    }

    .flow-item::after {
        display:none;
    }

    .flow-en {
        font-size:9px;
    }

    .flow-title {
        font-size:12px;
    }

    .detail-subsection {
        margin-top:50px;
    }

    .detail-subheader {
        margin-bottom:22px;
    }

    .detail-sub-title {
        font-size:23px;
    }

    .detail-sub-description {
        font-size:13px;
    }

    .certificate-section {
        padding-top:45px;
    }

    .detail-symbol {
        min-width:39px;
        height:39px;
        border-radius:11px;
        font-size:9px;
    }
}

@media(max-width:380px) {
    .roadmap-card {
        padding:26px 17px 21px;
    }

    .card-title {
        font-size:24px;
    }

    .card-description {
        font-size:14px;
    }

    .preview-box {
        padding-left:9px;
        padding-right:9px;
    }

    .step-number {
        width:30px;
        height:30px;
    }

    .preview-level {
        grid-template-columns:52px 1fr;
    }

    .level-item {
        font-size:9px;
    }

    .detail-title {
        font-size:25px;
    }

    .detail-card {
        padding:21px 17px;
    }
}