/* ===================================================
   Detail Pelatihan — Public Page (dp2-*)
   =================================================== */

/* ===== HERO ===== */
.dp2-hero {
    background: var(--ui-bg, #fff);
    border-bottom: 1px solid var(--ui-border, #e2e8f0);
    padding: 64px 128px;
}

.dp2-hero__inner {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 1184px;
    margin: 0 auto;
}

.dp2-hero__badges {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.dp2-hero__content {
    display: flex;
    flex-direction: column;
    gap: 19px;
    max-width: 972px;
}

.dp2-hero__title {
    font-size: 48px !important;
    color: var(--ui-text-highlighted, #0f172b) !important;
    letter-spacing: -0.96px;
    line-height: 1.1 !important;
    margin: 0 !important;
}

.dp2-hero__desc {
    font-size: 20px !important;
    color: var(--ui-text, #314158) !important;
    letter-spacing: -0.4px;
    margin: 0 !important;
}

.dp2-hero__cta {
    width: max-content;
}

.dp2-separator {
    border: none;
    border-top: 1px solid var(--ui-border, #e2e8f0);
    margin: 4px 0;
}

/* ===== HERO INFO HIGHLIGHTS ===== */
.dp2-hero__info {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

.dp2-info-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: var(--ui-default, #fff);
    border: 1px solid var(--ui-border, #e2e8f0);
    border-radius: 10px;
    padding: 18px 20px;
}

.dp2-info-item__wrapper {
    display: flex;
    flex-direction: column;
}

.dp2-info-item__label {
    font-family: 'Work Sans', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: var(--ui-text-muted, #62748e);
    letter-spacing: 0.96px;
    text-transform: uppercase;
    line-height: 1.4;
}

.dp2-info-item__value {
    font-family: 'Work Sans', sans-serif;
    font-weight: 600;
    font-size: 28px;
    color: var(--ui-text-highlighted, #0f172b);
    letter-spacing: -1.28px;
    line-height: 1.2;
}

.dp2-info-item__value--sm {
    font-size: 20px;
    letter-spacing: -0.5px;
}

.dp2-info-item__value--danger {
    color: var(--ui-error, #fb2c36) !important;
}

.dp2-info-item__sub {
    font-family: 'Work Sans', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: var(--ui-text-muted, #62748e);
    line-height: 1.4;
}

/* ===== MAIN CONTENT ===== */
.dp2-main {
    background: var(--ui-bg-elevated, #f1f5f9);
    padding: 40px 128px;
}

.dp2-main__inner {
    display: flex;
    gap: 22px;
    max-width: 1184px;
    margin: 0 auto;
    align-items: flex-start;
}

.dp2-main__left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 13px;
    min-width: 0;
    @media (max-width: 900px){
        width: 100%;
    }
}

.dp2-main__right {
    width: 421px;
    flex-shrink: 0;
    position: sticky;
    top: 20px;
}

/* ===== CONTENT CARDS ===== */
.dp2-card {
    background: var(--ui-bg, #fff);
    border: 1px solid var(--ui-border, #e2e8f0);
    border-radius: 10px;
    overflow: hidden;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.dp2-card__title {
    font-family: 'Work Sans', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: var(--biru-tua, #233f7c);
    letter-spacing: 0.96px;
    text-transform: uppercase;
}

.dp2-card__body {
    font-family: 'Work Sans', sans-serif;
    font-size: 16px;
    color: var(--ui-text, #314158);
    line-height: 1.7;
}

.dp2-card__body ul,
.dp2-card__body ol {
    margin: 0;
    padding-left: 24px;
}

.dp2-card__body li {
    margin-bottom: 6px;
}

.dp2-card__body p {
    margin-bottom: 4px;
}

/* ===== TRAINER LIST ===== */
.dp2-trainer-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dp2-trainer-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--ui-bg-elevated, #f8fafc);
    border: 1px solid var(--ui-border, #e2e8f0);
    border-radius: 12px;
    padding: 14px 18px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s ease;
}

.dp2-trainer-card:hover {
    box-shadow: 0 4px 16px rgba(35, 63, 124, 0.1);
    text-decoration: none;
    color: inherit;
}

.dp2-trainer-card__avatar {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.dp2-trainer-card__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.dp2-trainer-card__name {
    color: var(--ui-text-highlighted, #0f172b) !important;
    margin: 0 !important;
}

.dp2-trainer-card__field {
    color: var(--ui-text, #314158) !important;
    margin: 0 !important;
}

/* ===== SIDEBAR ===== */
.dp2-sidebar {
    border: 1px solid var(--ui-border, #e2e8f0);
    border-radius: 12px;
    overflow: hidden;
    background: var(--ui-bg, #fff);
}

.dp2-sidebar__image {
    width: 100%;
    aspect-ratio: 4/5;
    overflow: hidden;
}

.dp2-sidebar__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.dp2-sidebar__panel {
    background: var(--ui-bg, #fff);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ===== COUNTDOWN ===== */
.dp2-countdown {
    display: flex;
    gap: 24px;
    align-items: center;
    justify-content: space-around;
    background: rgba(35, 63, 124, 0.1);
    border-radius: 12px;
    padding: 16px 26px;
}

.dp2-countdown__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.dp2-countdown__num {
    font-family: 'Work Sans', sans-serif;
    font-weight: 700;
    font-size: 30px;
    color: var(--biru-tua, #233f7c);
    letter-spacing: 1.92px;
    line-height: 1;
}

.dp2-countdown__lbl {
    font-family: 'Work Sans', sans-serif;
    font-weight: 600;
    font-size: 13px;
    color: var(--ui-text-muted, #62748e);
    letter-spacing: 0.5px;
}

.dp2-countdown__expired {
    font-family: 'Work Sans', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: var(--ui-error, #fb2c36);
    text-align: center;
    width: 100%;
    padding: 8px 0;
}

/* ===== INFO TABLE ===== */
.dp2-info-table {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.dp2-info-table__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0;
}

.dp2-info-table__key {
    font-family: 'Work Sans', sans-serif;
    font-weight: 400;
    font-size: 15px;
    color: var(--ui-text, #314158);
    white-space: nowrap;
    flex-shrink: 0;
}

.dp2-info-table__val {
    font-family: 'Work Sans', sans-serif;
    font-weight: 600;
    font-size: 15px;
    color: var(--ui-text-highlighted, #0f172b);
    text-align: right;
}

.dp2-info-table__val--danger {
    color: var(--ui-error, #fb2c36) !important;
}

.dp2-info-table__sep {
    border: none;
    border-top: 1px solid var(--ui-border, #e2e8f0);
    margin: 2px 0;
}

/* ===== PRICE ===== */
.dp2-sidebar__price {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dp2-sidebar__price-label {
    font-family: 'Work Sans', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: var(--ui-text, #314158);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dp2-sidebar__price-value {
    font-family: 'Work Sans', sans-serif;
    font-weight: 700;
    font-size: 28px;
    color: var(--ui-text-highlighted, #0f172b);
}

/* ===== SIDEBAR ACTIONS ===== */
.dp2-sidebar__actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dp2-sidebar__actions .sitra-btn {
    width: 100%;
    justify-content: center;
}

/* ===== SPARSE MEDIA ROW (image + panel side by side) ===== */
.dp2-media-row {
    display: flex;
    align-items: stretch;
    background: var(--ui-bg, #fff);
    border: 1px solid var(--ui-border, #e2e8f0);
    border-radius: 12px;
    overflow: hidden;
}

.dp2-media-row__image {
    width: auto;
    max-height: 480px;
    flex: 1;
    flex-shrink: 0;
}

.dp2-media-row__image img {
    width: 100%;
    max-width: fit-content;
    height: 100%;
    object-fit: contain;
    display: block;
}

.dp2-media-row__panel {
    flex: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
}

/* ===== PROGRAM LAINNYA ===== */
.dp2-other {
    background: var(--ui-bg, #fff);
    padding: 64px 0;
}

.dp2-other__inner {
    max-width: 1184px;
    margin: 0 auto;
    padding: 0 128px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.dp2-other__title {
    text-align: center;
    margin-bottom: 0 !important;
}

.dp2-other__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.dp2-other__cta {
    display: flex;
    justify-content: center;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1280px) {
    .dp2-hero,
    .dp2-main,
    .dp2-other__inner {
        padding-left: 48px;
        padding-right: 48px;
    }
    .dp2-hero__inner,
    .dp2-main__inner {
        max-width: 100%;
    }
}

@media (max-width: 1100px) {
    .dp2-main__right {
        width: 360px;
    }
}

@media (max-width: 900px) {
    .dp2-main__inner {
        flex-direction: column;
    }
    .dp2-main__right {
        width: 100%;
        position: static;
    }
    .dp2-other__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 800px) {
    .dp2-media-row {
            flex-direction: column;
        }

    .dp2-media-row__image {
        width: 100%;
        max-height: max-content;
    }
}

@media (max-width: 640px) {
    .dp2-hero {
        padding: 40px 20px;
    }
    .dp2-main {
        padding: 24px 20px;
    }
    .dp2-other__inner {
        padding: 0 20px;
    }
    .dp2-hero__title {
        font-size: 28px !important;
    }
    .dp2-hero__desc {
        font-size: 16px !important;
    }
    .dp2-hero__info {
        grid-template-columns: 1fr;
    }
    .dp2-info-item {
        padding: 14px 16px;
    }
    .dp2-info-item__value {
        font-size: 22px;
    }
    .dp2-other__grid {
        grid-template-columns: 1fr;
    }
    .dp2-countdown {
        gap: 12px;
        padding: 12px 16px;
    }
    .dp2-countdown__num {
        font-size: 22px;
    }
    .dp2-media-row {
        flex-direction: column;
    }
    .dp2-media-row__image {
        width: 100%;
        max-height: max-content;
    }
}
