/* ====================================================
   TRYOUT SECTION & CARD STYLES
   (100% matched with course-card & halal-section responsiveness)
   ==================================================== */

.tryout-section {
    background-color: #f4f9ff;
    width: 100%;
    padding: 20px 0 60px 0;
    scroll-margin-top: 25px;
}

.tryout-section-card {
    background-color: #ffffff;
    border-radius: 24px !important;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04) !important;
}

/* Header Section Style */
.tryout-section-header {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    margin-bottom: 28px !important;
}

.tryout-section-header-icon {
    width: 44px;
    height: auto;
    max-height: 44px;
    object-fit: contain;
    flex-shrink: 0;
}

.tryout-section-header-title {
    font-family: 'Mont', 'Montserrat', 'Poppins', sans-serif !important;
    font-size: 20px;
    font-weight: 800;
    color: #111827;
    margin: 0;
}

/* Card Wrapper Spacing for Floating Bottom Button */
.tryout-section .card-wrapper,
.detail-card-wrapper {
    padding-bottom: 18px;
}

/* Card Styling exactly matching course-card in home/ecourse */
.tryout-card,
.tryout-section .card,
#tryout-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;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06) !important;
    overflow: visible !important;
}

.tryout-card hr,
.tryout-section .card hr {
    border: 0 !important;
    border-top: 1px solid #000000 !important;
    opacity: 1 !important;
    margin: 10px 0 8px 0 !important;
}

.tryout-card:hover,
.tryout-section .card:hover {
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08) !important;
}

.tryout-card .card-title,
.tryout-section .card-title {
    font-weight: bold;
    color: black;
}

/* Video / Image Container */
.tryout-card .video-container,
.tryout-section .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;
}

.tryout-thumb-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 12px;
}

.tryout-card-img {
    width: 100%;
    max-height: 240px;
    height: 195px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    transition: transform 0.35s ease;
}

.tryout-card:hover .tryout-card-img,
.tryout-section .card:hover .tryout-card-img {
    transform: scale(1.03);
}

.tryout-badge-premium {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: linear-gradient(135deg, #d49a37, #b87c24);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 2;
}

/* Card Body */
.tryout-card .card-body,
.tryout-section .card-body {
    padding: 14px 20px 16px 20px;
}

/* Meta Badges */
.tryout-badges-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px !important;
}

.badge-tryout-cyan {
    background-color: #e0f7fa;
    color: #0288d1;
    font-weight: 600;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.badge-tryout-green {
    background-color: #e8f5e9;
    color: #2e7d32;
    font-weight: 600;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.badge-tryout-outline {
    border: 1px solid #94a3b8;
    color: #334155;
    font-weight: 700;
    font-size: 10.5px;
    padding: 3px 9px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
}

.badge-tryout-red,
.badge-tryout-solid-cyan,
.badge-tryout-wa {
    font-weight: 700;
    font-size: 10.5px;
    line-height: 1.4;
    min-height: 25px;
    padding: 4px 10px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    vertical-align: middle;
}

.badge-tryout-red {
    background-color: #ef4444;
    color: #ffffff;
}

.badge-tryout-solid-cyan {
    background-color: #00bcd4;
    color: #ffffff;
}

.badge-tryout-wa {
    background-color: #37a74d;
    color: #ffffff !important;
    gap: 5px;
    text-decoration: none !important;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.badge-tryout-wa:hover {
    background-color: #2f9440 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(55, 167, 77, 0.35);
}

.badge-tryout-wa:active {
    transform: translateY(0);
}

.badge-tryout-wa i {
    font-size: 11.5px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

/* Sub-title label */
.tryout-card .text-sub,
.tryout-section .text-sub {
    font-weight: bold;
    color: blue !important;
}

/* Duration Button Options - Exactly matching course-card and /tryout */
.tryout-card .duration-button,
.tryout-section .duration-button {
    border-radius: 10px;
    background-color: #f0f8ff !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    position: relative;
    font-weight: bold;
    border: none;
    width: 100%;
    color: #000000 !important;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.tryout-card .duration-button:hover,
.tryout-section .duration-button:hover {
    background-color: #e2eefb !important;
    color: #000000 !important;
}

.tryout-card .duration-button.selected,
.tryout-section .duration-button.selected {
    background-color: #ffcc00 !important;
    color: #000000 !important;
}

.tryout-card .discount-badge,
.tryout-section .discount-badge {
    font-weight: bold;
    position: absolute;
    top: -10px;
    left: 10px;
    background-color: #4caf50;
    color: white;
    padding: 2px 5px;
    border-radius: 5px;
    font-size: 0.8em;
}

.tryout-card .package-text,
.tryout-section .package-text {
    font-size: 1.2em;
}

.tryout-card .price,
.tryout-section .price {
    text-align: right;
    font-size: 1.2em;
}

.tryout-card .price sup,
.tryout-section .price sup {
    font-size: 0.6em;
    vertical-align: super;
    font-weight: 700;
}

/* Collapse Panel */
.tryout-card .card-collapse-panel,
.tryout-section .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;
}

.tryout-card .card-collapse-panel.open,
.tryout-section .card-collapse-panel.open {
    opacity: 1;
}

.tryout-card .collapse-content,
.tryout-section .collapse-content {
    margin-top: 5px;
}

.tryout-card .headers,
.tryout-section .headers {
    display: flex;
    align-items: center;
}

.tryout-card .headers h4,
.tryout-card .headers h6,
.tryout-section .headers h4,
.tryout-section .headers h6 {
    margin: 0;
    flex-grow: 1;
}

.tryout-card .subtest-group,
.tryout-section .subtest-group {
    margin-bottom: 12px;
}

.tryout-card .subtest-title,
.tryout-section .subtest-title {
    font-size: 15px !important;
    font-weight: 800 !important;
    color: #111827 !important;
    margin-bottom: 4px;
}

.tryout-card .subtest-item,
.tryout-section .subtest-item {
    color: #6c757d !important;
    font-size: 13.5px !important;
    line-height: 1.35;
    margin-bottom: 2px;
}

.tryout-card .subtest-item i,
.tryout-section .subtest-item i {
    color: #94a3b8 !important;
    font-size: 13px !important;
}

/* ====================================================
   TOTAL PAYMENT CONTAINER
   ==================================================== */

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

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

.tryout-card .total-payment-amount,
.tryout-section .total-payment-amount,
.tryout-card .total-payment-amount span,
.tryout-section .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;
}

.tryout-card .toggle-icon,
.tryout-section .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;
    z-index: 5;
    box-shadow: 0 2px 6px rgba(33, 150, 243, 0.4);
    transition: background-color 0.2s ease, transform 0.3s ease;
}

.tryout-card .toggle-icon:hover,
.tryout-section .toggle-icon:hover {
    background-color: #1976d2;
}

.tryout-card .right-align,
.tryout-section .right-align {
    position: absolute;
    right: 16px !important;
    bottom: -15px !important;
    z-index: 10;
}

.tryout-card .buy-package-button,
.tryout-section .buy-package-button,
.tryout-card .already-paid-button,
.tryout-section .already-paid-button,
.tryout-card .btn-lanjut-bayar,
.tryout-section .btn-lanjut-bayar {
    font-weight: 700 !important;
    color: white !important;
    padding: 7px 18px !important;
    border: none;
    border-radius: 20px !important;
    font-size: 0.95rem !important;
    cursor: pointer;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    text-decoration: none !important;
    transition: background-position 0.4s ease, box-shadow 0.3s ease;
    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);
    display: inline-block;
    text-align: center;
}

.tryout-card .already-paid-button,
.tryout-section .already-paid-button,
.tryout-card .btn-lanjut-bayar,
.tryout-section .btn-lanjut-bayar {
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
}

.tryout-card .buy-package-button:hover,
.tryout-section .buy-package-button:hover,
.tryout-card .already-paid-button:hover,
.tryout-section .already-paid-button:hover {
    background-position: right center;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3);
}

/* ====================================================
   PEEK CAROUSEL (MOBILE & TABLET)
   (100% matched with halal-section.css)
   ==================================================== */

.tryout-section .peek-carousel {
    position: relative;
    width: 100%;
}

.tryout-section .peek-carousel-viewport {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding-top: 15px;
    padding-bottom: 20px;
    margin-top: -15px;
    margin-bottom: -20px;
}

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

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

.tryout-section .peek-carousel-slide .card {
    overflow: visible !important;
}

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

.tryout-section .peek-carousel-controls {
    margin-top: 16px !important;
}

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

    .tryout-section .tryout-section-card {
        overflow: visible !important;
        padding-bottom: 2rem !important;
    }

    .tryout-section .peek-carousel {
        margin-right: -15vw !important;
    }

    .tryout-section .peek-carousel-viewport {
        overflow: hidden !important;
        width: calc(100% + 15vw + 40px) !important;
        padding: 25px 20px 18px 20px !important;
        margin: -25px -20px -18px -20px !important;
    }

    .tryout-section .peek-carousel-track {
        gap: 44px !important;
    }

    .tryout-section .peek-carousel-slide {
        flex: 0 0 calc(55% - 22px) !important;
        width: calc(55% - 22px) !important;
        padding: 0 !important;
    }

    .tryout-section .card-item-main {
        max-width: 100% !important;
        margin: 0 !important;
    }

    .tryout-section .peek-carousel-controls {
        margin-top: 36px !important;
    }

    .tryout-section .total-payment-amount {
        font-size: 2em !important;
    }

    .tryout-section .buy-package-button {
        font-size: 1.05rem !important;
        padding: 8px 18px !important;
    }

    .tryout-section .duration-button {
        padding: 8px 14px !important;
    }

    .tryout-section .package-text,
    .tryout-section .price {
        font-size: 1rem !important;
    }
}

/* Carousel Controls & Indicators Styling */
.tryout-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;
}

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

.tryout-section .carousel-indicators.custom-carousel-indicators {
    position: static !important;
    margin: 0 !important;
    padding: 0 !important;
    justify-content: center;
    align-items: center;
}

.tryout-section .carousel-indicators.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;
}

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

/* Tablet Responsive */
@media (max-width: 991px) {
    .tryout-section {
        padding: 20px 0 40px 0;
    }
    .tryout-section .peek-carousel-controls {
        margin-top: 36px !important;
    }
}

/* Mobile Responsive */
@media (max-width: 767px) {
    .tryout-section {
        padding: 15px 0 25px 0;
    }
    .tryout-section .tryout-section-card {
        padding-bottom: 1.75rem !important;
    }
    .tryout-section-header-icon {
        width: 32px;
        max-height: 32px;
    }
    .tryout-section-header-title {
        font-size: 16px !important;
    }
    .tryout-section-header {
        margin-bottom: 24px !important;
    }
    .tryout-card-img {
        height: 160px;
    }
    .tryout-card .total-payment-container,
    .tryout-section .total-payment-container {
        padding: 22px 20px 24px 20px !important;
        min-height: 86px !important;
    }
    .tryout-card .total-payment-amount,
    .tryout-section .total-payment-amount,
    .tryout-card .total-payment-amount span,
    .tryout-section .total-payment-amount span {
        font-size: 1.45rem !important;
        font-weight: 700 !important;
    }
    .tryout-card .buy-package-button,
    .tryout-section .buy-package-button,
    .tryout-card .already-paid-button,
    .tryout-section .already-paid-button,
    .tryout-card .btn-lanjut-bayar,
    .tryout-section .btn-lanjut-bayar {
        font-size: 0.95rem !important;
        padding: 7px 18px !important;
    }
    .tryout-card .duration-button,
    .tryout-section .duration-button {
        padding: 10px 14px !important;
        font-size: 1rem !important;
        min-height: 48px !important;
    }
    .tryout-card .package-text,
    .tryout-section .package-text {
        font-size: 0.92rem !important;
    }
    .tryout-card .price,
    .tryout-section .price {
        font-size: 0.95rem !important;
    }
    .tryout-card .right-align,
    .tryout-section .right-align {
        right: 16px !important;
        bottom: -15px !important;
    }
    .tryout-section .peek-carousel-viewport {
        padding-top: 15px !important;
        padding-bottom: 16px !important;
        margin-top: -15px !important;
        margin-bottom: -16px !important;
    }
    .tryout-section .peek-carousel-controls {
        margin-top: 34px !important;
    }
}

@media (max-width: 575.98px) {
    .tryout-section .tryout-section-card {
        padding-bottom: 1.5rem !important;
    }
    .tryout-section-header {
        margin-bottom: 20px !important;
    }
    .tryout-section .peek-carousel-controls {
        margin-top: 32px !important;
    }
    .tryout-badges-row {
        gap: 5px !important;
        margin-bottom: 5px !important;
    }
    .tryout-card hr,
    .tryout-section .card hr {
        margin: 8px 0 6px 0 !important;
    }
    .badge-tryout-cyan,
    .badge-tryout-green,
    .badge-tryout-outline,
    .badge-tryout-red,
    .badge-tryout-solid-cyan,
    .badge-tryout-wa {
        font-size: 10px !important;
        padding: 3px 8px !important;
        border-radius: 10px !important;
        min-height: 22px !important;
        line-height: 1.4 !important;
    }
    .badge-tryout-wa i {
        font-size: 11px !important;
    }
}

@media (min-width: 992px) {
    .tryout-section .tryout-section-card {
        padding-bottom: 1.5rem !important;
    }

    .tryout-section .peek-carousel-viewport {
        overflow: hidden !important;
        width: calc(100% + 24px) !important;
        padding: 25px 12px 20px 12px !important;
        margin: -25px -12px -20px -12px !important;
    }

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

    .tryout-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;
    }

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

    .tryout-section .peek-carousel-controls {
        margin-top: 20px !important;
    }
}
