/* ====================================================
   STR LAYANAN & STR DETAIL CONTENT SECTION STYLES
   ==================================================== */

#str-layanan-section,
#str-detail-content-section {
    background-color: #f4f9ff;
    width: 100%;
    position: relative;
    padding: 50px 0;
}

/* Header Section 100% Mirrored from produk/kelas-section.css */
#str-layanan-section .judul-container,
#str-detail-content-section .judul-container {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 25px;
}

#str-layanan-section .header-wrapper,
#str-detail-content-section .header-wrapper {
    width: 100%;
    margin-top: 0;
    padding: 0;
}

#str-layanan-section .judul-kelas-container,
#str-detail-content-section .judul-kelas-container {
    width: 60%;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
    background-color: #fff21b;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
}

#str-layanan-section .kelas-head,
#str-detail-content-section .kelas-head {
    position: relative;
    z-index: 1;
}

#str-layanan-section .judul-kelas-container h2,
#str-detail-content-section .judul-kelas-container h2 {
    font-size: 24px;
    color: black;
    margin: 0;
    font-weight: normal;
    line-height: 1.2;
    position: relative;
    z-index: 4;
}

#str-layanan-section .judul-kelas-container h1,
#str-detail-content-section .judul-kelas-container h1 {
    font-size: 48px;
    color: black;
    font-weight: bold;
    margin: 0;
    line-height: 1.2;
    position: relative;
    z-index: 3;
}

#str-layanan-section .judul-kelas-container h4,
#str-detail-content-section .judul-kelas-container h4 {
    font-size: 18px;
    color: black;
    font-style: italic;
    margin: 0;
    line-height: 1.2;
    position: relative;
    z-index: 4;
}

/* Circle Highlight Behind Word */
.header-highlight-wrap {
    position: relative;
    display: inline-block;
}

.header-highlight-text {
    position: relative;
    z-index: 3;
}

.header-yellow-circle-img {
    position: absolute;
    top: 42%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.06, 1.08);
    width: 104%;
    height: auto;
    pointer-events: none;
    z-index: 1;
}

/* ====================================================
   Card Styles (Applied to both #str-layanan-section and #str-detail-content-section)
   ==================================================== */
#str-layanan-section .card,
#str-detail-content-section .card,
.detail-card-wrapper .card {
    background-color: #ffffff !important;
    border-radius: 15px !important;
    transition: box-shadow 0.3s ease;
    border: none !important;
    margin-bottom: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    overflow: visible !important;
}

#str-layanan-section .card:hover,
#str-detail-content-section .card:hover,
.detail-card-wrapper .card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.09);
}

#str-layanan-section .card-title,
#str-detail-content-section .card-title,
.detail-card-wrapper .card-title {
    font-weight: bold;
    color: black;
}

#str-layanan-section .card-header-group {
    min-height: 110px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

#str-detail-content-section .card-header-group,
.detail-card-wrapper .card-header-group {
    min-height: auto !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

#str-layanan-section .card hr,
#str-detail-content-section .card hr,
.detail-card-wrapper .card hr {
    border: 0 !important;
    border-top: 1px solid #000000 !important;
    opacity: 1 !important;
    margin: 14px 0 !important;
}

#str-layanan-section .title-container,
#str-detail-content-section .title-container,
.detail-card-wrapper .title-container {
    min-height: auto;
    margin-bottom: 4px;
}

#str-layanan-section .subtitle-layanan,
#str-detail-content-section .subtitle-layanan,
.detail-card-wrapper .subtitle-layanan {
    min-height: auto;
    font-size: 0.85em;
    color: #666;
    font-style: italic;
    margin-top: 4px;
    margin-bottom: 0;
    line-height: 1.35;
}

#str-layanan-section .text-sub,
#str-detail-content-section .text-sub,
.detail-card-wrapper .text-sub {
    font-weight: bold;
    color: #007bff;
}

#str-layanan-section .card-collapse-panel,
#str-detail-content-section .card-collapse-panel,
.detail-card-wrapper .card-collapse-panel {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease-in-out;
}

#str-layanan-section .card-collapse-panel.open,
#str-detail-content-section .card-collapse-panel.open,
.detail-card-wrapper .card-collapse-panel.open {
    opacity: 1;
}

#str-layanan-section .collapse-content,
#str-detail-content-section .collapse-content,
.detail-card-wrapper .collapse-content {
    font-style: italic;
    margin-top: 5px;
}

#str-layanan-section .headers,
#str-detail-content-section .headers,
.detail-card-wrapper .headers {
    display: flex;
    align-items: center;
}

#str-layanan-section .duration-button,
#str-detail-content-section .duration-button,
.detail-card-wrapper .duration-button,
#str-layanan-section .str-duration-button,
#str-detail-content-section .str-duration-button,
.detail-card-wrapper .str-duration-button {
    border-radius: 10px !important;
    background-color: #f0f8ff !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 10px 20px !important;
    position: relative !important;
    font-weight: bold !important;
    text-align: center !important;
    width: 100% !important;
    min-height: 48px !important;
    border: 1px solid #e2e8f0 !important;
}

#str-layanan-section .package-text,
#str-detail-content-section .package-text,
.detail-card-wrapper .package-text,
#str-layanan-section .str-duration-text,
#str-detail-content-section .str-duration-text,
.detail-card-wrapper .str-duration-text {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    text-align: center !important;
    width: 100% !important;
    display: block !important;
}

#str-layanan-section .category-badge,
#str-detail-content-section .category-badge,
.detail-card-wrapper .category-badge {
    width: fit-content;
    color: white !important;
    padding: 2px 5px;
    border-radius: 5px;
    background-color: #007bff !important;
}

#str-layanan-section .category-layanan,
#str-detail-content-section .category-layanan,
.detail-card-wrapper .category-layanan {
    background-color: #ffe500 !important;
    color: #ef0c00 !important;
    font-weight: 700;
}

#str-layanan-section .video-container,
#str-detail-content-section .video-container,
.detail-card-wrapper .video-container {
    padding: 0;
    margin: 16px 16px 0 16px;
    width: calc(100% - 32px);
    aspect-ratio: 16 / 9;
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 12px;
}

#str-layanan-section .video-container img,
#str-detail-content-section .video-container img,
.detail-card-wrapper .video-container img {
    border-radius: 12px;
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    display: block;
}

#str-layanan-section .total-payment-container,
#str-detail-content-section .total-payment-container,
.detail-card-wrapper .total-payment-container {
    background-color: #00b2b3;
    padding: 22px 20px 24px 20px;
    border-radius: 0px 0px 14px 14px;
    color: white;
    position: relative;
    margin: 0 -1px -1px -1px;
    min-height: 86px;
}

#str-layanan-section .right-align,
#str-detail-content-section .right-align,
.detail-card-wrapper .right-align {
    position: absolute;
    right: 16px;
    bottom: -15px;
    z-index: 10;
}

#str-layanan-section .toggle-icon,
#str-detail-content-section .toggle-icon,
.detail-card-wrapper .toggle-icon {
    position: absolute;
    right: 10px;
    top: -10px;
    background-color: #2196f3;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

#str-layanan-section .total-payment-text,
#str-detail-content-section .total-payment-text,
.detail-card-wrapper .total-payment-text {
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    margin-bottom: 2px !important;
    color: #ffffff !important;
    line-height: 1.2 !important;
}

#str-layanan-section .total-payment-amount,
#str-detail-content-section .total-payment-amount,
.detail-card-wrapper .total-payment-amount,
#str-layanan-section .total-payment-amount span,
#str-detail-content-section .total-payment-amount span,
.detail-card-wrapper .total-payment-amount span {
    font-weight: 700 !important;
    font-size: 1.45rem !important;
    margin-bottom: 0 !important;
    color: #ffff00 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.3px !important;
}

#str-layanan-section .buy-whatsapp,
#str-detail-content-section .buy-whatsapp,
.detail-card-wrapper .buy-whatsapp {
    background: linear-gradient(to right, rgb(255, 190, 32), rgb(255, 150, 0));
    background-size: 200% auto;
    background-position: left center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2), 0 2px 8px rgba(0, 0, 0, 0.19);
    font-weight: 700;
    color: white !important;
    padding: 7px 18px !important;
    border: none;
    border-radius: 20px;
    font-size: 0.95rem !important;
    cursor: pointer;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    text-decoration: none !important;
    display: inline-block;
    text-align: center;
    transition: all 0.3s ease;
}

#str-layanan-section .buy-whatsapp:hover,
#str-detail-content-section .buy-whatsapp:hover,
.detail-card-wrapper .buy-whatsapp:hover {
    background-position: right center;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3);
}

.buy-whatsapp.btn-whatsapp-green,
#str-layanan-section .buy-whatsapp.btn-whatsapp-green,
#str-detail-content-section .buy-whatsapp.btn-whatsapp-green,
.detail-card-wrapper .buy-whatsapp.btn-whatsapp-green {
    background: #00d362 !important;
    background-color: #00d362 !important;
    color: white !important;
    box-shadow: 0 4px 10px rgba(0, 211, 98, 0.35) !important;
    padding: 7px 18px !important;
    font-size: 0.95rem !important;
}

.buy-whatsapp.btn-whatsapp-green:hover,
#str-layanan-section .buy-whatsapp.btn-whatsapp-green:hover,
#str-detail-content-section .buy-whatsapp.btn-whatsapp-green:hover,
.detail-card-wrapper .buy-whatsapp.btn-whatsapp-green:hover {
    background: #00b853 !important;
    background-color: #00b853 !important;
    transform: translateY(-2px);
}

#str-layanan-section .service-item,
#str-detail-content-section .service-item,
.detail-card-wrapper .service-item {
    font-size: 13px;
    color: #334155;
    margin-bottom: 6px;
    line-height: 1.45;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.service-item-text {
    flex: 1;
    min-width: 0;
    line-height: 1.45;
}

.check-gratis,
#str-layanan-section .check-gratis,
#str-detail-content-section .check-gratis,
.detail-card-wrapper .check-gratis {
    color: #ffc107 !important;
    font-size: 1.2em !important;
    margin-top: 1px;
    flex-shrink: 0;
}

/* Tablet & Mobile Responsive */
@media (max-width: 991.98px) {
    #str-layanan-section .judul-kelas-container,
    #str-detail-content-section .judul-kelas-container {
        width: 80%;
        padding: 15px;
    }
    #str-layanan-section .judul-kelas-container h2,
    #str-detail-content-section .judul-kelas-container h2 {
        font-size: 20px;
    }
    #str-layanan-section .judul-kelas-container h1,
    #str-detail-content-section .judul-kelas-container h1 {
        font-size: 36px;
    }
    #str-layanan-section .judul-kelas-container h4,
    #str-detail-content-section .judul-kelas-container h4 {
        font-size: 16px;
    }
}

@media (max-width: 575.98px) {
    #str-layanan-section .judul-kelas-container,
    #str-detail-content-section .judul-kelas-container {
        width: 100%;
        padding: 12px 16px;
    }
    #str-layanan-section .judul-kelas-container h2,
    #str-detail-content-section .judul-kelas-container h2 {
        font-size: 16px;
    }
    #str-layanan-section .judul-kelas-container h1,
    #str-detail-content-section .judul-kelas-container h1 {
        font-size: 26px;
    }
    #str-layanan-section .judul-kelas-container h4,
    #str-detail-content-section .judul-kelas-container h4 {
        font-size: 13.5px;
    }
}

.detail-section-heading {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.45rem, 2.4vw, 2.25rem);
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.3px;
    line-height: 1.3;
}

.detail-section-subheading {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.2rem, 2.0vw, 1.85rem);
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.3px;
    line-height: 1.35;
}

/* ====================================================
   PEEK CAROUSEL STYLES FOR #str-layanan-section
   ==================================================== */
#str-layanan-section .peek-carousel {
    position: relative;
    width: 100%;
}

#str-layanan-section .peek-carousel-viewport {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding-top: 15px;
    padding-bottom: 40px;
    margin-top: -15px;
    margin-bottom: -40px;
}

#str-layanan-section .peek-carousel-track {
    display: flex;
    gap: 0px;
    width: 100%;
    will-change: transform;
}

#str-layanan-section .peek-carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    box-sizing: border-box;
    padding: 0 10px;
}

#str-layanan-section .peek-carousel-slide .card {
    overflow: visible !important;
}

#str-layanan-section .peek-carousel-slide .card-item-main {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
}

#str-layanan-section .peek-carousel-controls {
    margin-top: 50px !important;
}

#str-layanan-section .carousel-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: #00A99D;
    color: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 169, 157, 0.25);
    font-size: 13px;
    cursor: pointer;
    flex-shrink: 0;
}

#str-layanan-section .carousel-btn:hover {
    background-color: #00877D;
    transform: scale(1.08);
}

#str-layanan-section .custom-carousel-indicators {
    position: static !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 6px !important;
}

#str-layanan-section .custom-carousel-indicators button {
    width: 9px !important;
    height: 9px !important;
    border-radius: 50% !important;
    background-color: #CBD5E1 !important;
    border: none !important;
    opacity: 0.7 !important;
    transition: all 0.3s ease !important;
    padding: 0 !important;
    margin: 0 3px !important;
    cursor: pointer !important;
}

#str-layanan-section .custom-carousel-indicators button.active {
    width: 24px !important;
    border-radius: 10px !important;
    background-color: #00A99D !important;
    opacity: 1 !important;
}

/* Tablet Responsive */
@media (min-width: 768px) and (max-width: 991.98px) {
    #str-layanan-section {
        overflow-x: hidden !important;
    }

    #str-layanan-section .peek-carousel,
    #strPageCarousel {
        margin-right: -15vw !important;
    }

    #str-layanan-section .peek-carousel-viewport,
    #strPageCarousel .peek-carousel-viewport {
        overflow: hidden !important;
        width: calc(100% + 15vw + 40px) !important;
        padding: 25px 20px 30px 20px !important;
        margin: -25px -20px 0 -20px !important;
    }

    #str-layanan-section .peek-carousel-track,
    #strPageCarousel .peek-carousel-track {
        gap: 44px !important;
    }

    #str-layanan-section .peek-carousel-slide,
    #strPageCarousel .peek-carousel-slide {
        flex: 0 0 calc(55% - 22px) !important;
        width: calc(55% - 22px) !important;
        padding: 0 !important;
    }

    #str-layanan-section .peek-carousel-slide .card-item-main,
    #strPageCarousel .card-item-main {
        max-width: 100% !important;
        margin: 0 !important;
    }

    #str-layanan-section .peek-carousel-controls,
    #strPageCarousel .peek-carousel-controls {
        margin-top: 50px !important;
    }

    #str-layanan-section .total-payment-amount,
    #str-layanan-section .total-payment-amount span {
        font-size: 1.65rem !important;
        font-weight: 700 !important;
    }

    #str-layanan-section .buy-whatsapp,
    #str-detail-content-section .buy-whatsapp,
    .detail-card-wrapper .buy-whatsapp {
        font-size: 1rem !important;
        padding: 8px 18px !important;
    }

    .description-card,
    #str-detail-content-section .description-card {
        padding: 24px 20px !important;
        border-radius: 16px !important;
    }
}

/* Mobile Responsive */
@media (max-width: 767.98px) {
    #str-layanan-section {
        overflow-x: hidden !important;
    }

    #str-layanan-section .total-payment-amount,
    #str-layanan-section .total-payment-amount span,
    #str-detail-content-section .total-payment-amount,
    #str-detail-content-section .total-payment-amount span,
    .detail-card-wrapper .total-payment-amount,
    .detail-card-wrapper .total-payment-amount span {
        font-size: 1.65rem !important;
        font-weight: 700 !important;
    }

    #str-layanan-section .buy-whatsapp,
    #str-detail-content-section .buy-whatsapp,
    .detail-card-wrapper .buy-whatsapp {
        font-size: 0.95rem !important;
        padding: 7px 16px !important;
    }

    #str-layanan-section .duration-button,
    #str-detail-content-section .duration-button,
    .detail-card-wrapper .duration-button {
        padding: 10px 14px !important;
        font-size: 1rem !important;
        min-height: 48px !important;
    }

    #str-layanan-section .package-text,
    #str-detail-content-section .package-text,
    .detail-card-wrapper .package-text {
        font-size: 0.92rem !important;
    }

    #str-layanan-section .right-align,
    #str-detail-content-section .right-align,
    .detail-card-wrapper .right-align {
        right: 15px !important;
        bottom: -15px !important;
    }

    .description-card,
    #str-detail-content-section .description-card {
        padding: 20px 16px !important;
        border-radius: 14px !important;
    }
}

@media (min-width: 992px) {
    #str-layanan-section .peek-carousel-viewport {
        overflow: hidden !important;
        width: calc(100% + 24px) !important;
        padding: 25px 12px 30px 12px !important;
        margin: -25px -12px 0 -12px !important;
    }

    #str-layanan-section .peek-carousel-track {
        display: flex !important;
        gap: 24px !important;
        width: 100% !important;
        will-change: transform;
    }

    #str-layanan-section .peek-carousel-slide {
        flex: 0 0 calc((100% - 48px) / 3) !important;
        width: calc((100% - 48px) / 3) !important;
        max-width: calc((100% - 48px) / 3) !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    #str-layanan-section .peek-carousel-slide .card-item-main {
        max-width: 100% !important;
        margin: 0 !important;
        width: 100% !important;
    }

    #str-layanan-section .peek-carousel-controls {
        margin-top: 30px !important;
    }
}
