@media (max-width: 767.98px) {
    .intro-section {
        padding: 0;
    }
}

@media (max-width: 767.98px) {
    .breadcrumb-section {
        padding: 16px 0 0;
    }
}

.intro-section {
    padding-top: 32px;
}

.banner-top {
    max-height: 349px;
}

.banner-top img {
    border-radius: 8px;
}

.section-keuntungan {
    padding-top: 24px;
    padding-bottom: 10px;
}

.tcj-tabs {
    display: flex;
    flex-direction: row;
    gap: 16px;
    justify-content: center;
    margin-bottom: 24px;
    border-bottom: none;
}

.tcj-tab {
    font-size: 14px;
    padding: 10px 0;
    border: none !important;
    background: none !important;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
    text-decoration: none;
    line-height: 1;
    color: var(--secondary-500) !important;
}

.tcj-tab.active {
    border-bottom: 3px solid var(--secondary-500) !important;
    color: var(--secondary-500);
    cursor: default;
}

.tcj-tab:not(.active):hover {
    color: var(--secondary-800);
}

.tcj-banner a {
    display: flex;
    gap: 6px;
    align-items: center;
}

.tcj-banner a::after {
    content: '';
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    background: url('/NewJBATheme/assets/img/tata-cara/arrow-right.svg') no-repeat center center;
    margin-bottom: 4px;
}

.tcj-divider {
    height: 1px;
    background: #D1D1D1;
    width: 100%;
    margin: 24px 0;
}

.keuntungan-card {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    background-color: #fff;
}

.keuntungan-card .keuntungan-item {
    display: flex;
    flex-direction: row;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid #001871;
}

.keuntungan-card .keuntungan-item:first-of-type {
    padding-top: 0;
}

.keuntungan-card .keuntungan-item .keuntungan-number {
    color: #212C68;
    font-size: 32px;
    height: 22px;
    font-style: normal;
    line-height: normal;
    text-transform: uppercase;
    width: 30px;
    flex-shrink: 0;
    margin-bottom: 0;
    margin-top: -4px;
}

.keuntungan-card .keuntungan-item p {
    color: #212529;
}

@media (min-width: 767.98px) {
    .section-keuntungan {
        padding: 50px 0;
    }

    .tcj-tabs {
        gap: 30px;
        justify-content: start;
        margin-bottom: 50px;
    }

    .keuntungan-card {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 0;
        column-gap: 60px;
    }

    .keuntungan-card .keuntungan-item {
        gap: 16px;
        padding: 16px 0;
    }

    .keuntungan-card .keuntungan-item:first-of-type,
    .keuntungan-card .keuntungan-item:nth-of-type(4) {
        padding-top: 0;
    }

    .keuntungan-card .mobile-order:nth-child(2) {
        order: 3;
    }

    .keuntungan-card .mobile-order:nth-child(3) {
        order: 5;
    }

    .keuntungan-card .mobile-order:nth-child(4) {
        order: 2;
    }

    .keuntungan-card .mobile-order:nth-child(5) {
        order: 4;
    }

    .keuntungan-card .mobile-order:nth-child(6) {
        order: 6;
    }

    .tcj-tab {
        font-size: 16px;
    }
}

.step-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 730px;
}

.step-item {
    padding: 24px;
    gap: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 0 2px 1px rgba(0, 0, 0, 0.05);
    flex: 1;
    position: relative;
    overflow: hidden;
}

.step-item.ketika-lelang {
    grid-column: span 2;
}

.step-item-number {
    font-size: 16px;
}

.step-item:nth-of-type(4) .step-item-img {
    top: 10px;
}

.position-relative {
    position: relative;
    max-width: 1366px;
    margin: auto;
    overflow: hidden;
}

.img-mobil {
    position: absolute;
    bottom: 0;
    right: 40px;
}

.img-motor {
    position: absolute;
    top: 0;
    right: 0;
}

@media (min-width: 768px) {
    .step-item-img {
        position: absolute;
        right: 20px;
        top: 20px;
    }

    .step-item-number {
        font-size: 70px;
        line-height: 29px;
        padding-top: 21px;
        margin-bottom: 0;
    }
}

@media (max-width: 1279.98px) {
    .step-wrapper {
        gap: 16px;
        max-width: 448px;
    }
}

@media (max-width: 991.98px) {
    .position-relative {
        min-height: auto;
    }

    .img-mobil,
    .img-motor {
        display: none;
    }

    .step-item {
        padding: 16px;
        gap: 16px;
        flex: none;
    }

    .step-item img {
        width: 40px;
        height: 40px;
    }

    .step-wrapper {
        gap: 12px;
        max-width: 100%;
    }
}

@media (min-width: 992px) and (max-width: 1279.98px) {
    .step-wrapper {
        grid-template-columns: repeat(1, 1fr);
    }
}

.section-banner-titip {
    padding-left: 0;
    padding-right: 0;
}

.bg-banner-titip {
    background-color: #242F69;
}

.banner-titip {
    max-width: 1366px;
    margin: auto;
}

@media (max-width: 768.98px) {
    .bg-banner-titip {
        background: none;
    }

    .section-banner-titip {
        padding-left: 16px;
        padding-right: 16px;
    }

    .banner-titip img, .banner-sk-beli img {
        border-radius: 8px;
    }

    .step-section {
        padding-bottom: 24px;
    }
}

.section-youtube {
    padding-top: 0;
}

.youtube-wrapper {
    display: flex;
    gap: 24px;
    flex-direction: row;
}

.youtube-item {
    flex: 1;
    height: 313px;
    cursor: pointer;
}

.youtube-item iframe {
    border-radius: 8px;
}

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.video-thumbnail:hover img {
    transform: scale(1.05);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease;
}

.youtube-item:hover .play-button {
    transform: translate(-50%, -50%) scale(1.1);
}

.play-button svg {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    width: 200px;
    height: 200px;
}

.bg-grey {
    background-color: #F5F5F5;
}
#videoModal .modal-content {
    background: #000;
    border: none;
    border-radius: 8px;
    position: relative;
    overflow: visible;
}

#videoModal .modal-header {
    border-bottom: 1px solid #333;
    background: #000;
}

#videoModal .modal-title {
    color: #fff;
}

#videoModal .btn-close {
    filter: invert(1);
}

#videoModal .floating-close {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 40px;
    height: 40px;
    background: #FF0012;
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    pointer-events: auto;
    user-select: none;
}

#videoModal .floating-close:hover {
    background: #e00010;
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 991.98px) {
    .youtube-wrapper {
        gap: 16px;
    }

    .youtube-item {
        height: 90px;
    }

    .play-button svg {
        width: 80px;
        height: 80px;
    }

    #videoModal .modal-dialog {
        margin: 20px;
        max-width: calc(100% - 20px);
    }

    #videoModal .floating-close {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
}

.banner-sk-beli {
    padding-bottom: 0;
}
