.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.text-center {
    align-items: center;     /* vertical */
    justify-content: center; /* horizontal */
    text-align: -webkit-center;
    gap: 6px;
    line-height: 1;
}

/* ===== CARD STYLE ===== */
.tryout-card {
    position: relative;
    border-radius: 18px;
    padding: 18px;
    background:
        linear-gradient(135deg, #f8fafc, #f4e6b9);
    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(6px);
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-image: url(https://img.freepik.com/premium-vector/comic-cartoon-pop-art-background-with-cloud-illustration_530597-2392.jpg);
    background-size: cover;
    background-position: center;
    background-color: #f0f406;
    background-blend-mode: screen;
}

.tryout-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at top left,
        rgba(99, 102, 241, 0.15),
        transparent 60%
    );
    opacity: 0;
    transition: opacity 0.35s ease;
}

.tryout-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.12);
}

.tryout-card:hover::before {
    opacity: 1;
}

/* TAP ANIMATION (MOBILE) */
.tryout-card:active {
    transform: scale(0.97);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.card-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.badge {
    font-size: 12px;
    padding: 5px 12px;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.badge-premium {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #78350f;
}

.badge-free {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #ecfdf5;
}

.button-inline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 5px;
}

.description {
    font-size: 14px;
    color: #475569;
    line-height: 1.5;
    margin: 10px 0 14px;
}

.meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #334155;
    margin-bottom: 6px;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.icon {
    width: 16px;
    height: 16px;
    stroke-width: 1.8;
    color: #4f46e5; /* indigo elegan */
    flex-shrink: 0;
}

.actions {
    margin-top: auto;
}

.actions .btn,
.actions button {
    width: 100%;
    border-radius: 12px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.actions .btn:hover,
.actions button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

.wrapper-paket {
    display: flex;
    flex-wrap: wrap; /* Membuat tombol turun jika ruang tidak cukup */
    gap: 12px;       /* Jarak antar tombol */
    margin-top: 16px; /* Jarak dari teks heading di atasnya */
}


/* Menghilangkan margin atas jika di layar lebar agar sejajar dengan header */
@media (min-width: 1024px) {
    .wrapper-paket {
        margin-top: 0;
    }
}


/* ===== MOBILE: HORIZONTAL SCROLL ===== */
@media (max-width: 768px) {
    .wrapper-paket {
        flex-direction: column; /* Tombol berjejer vertikal di mobile */
        gap:25px;
    }
    
    .wrapper-paket > a, 
    .wrapper-paket > button {
        width: 100%; /* Tombol jadi lebar penuh */
    }
    
    .card-grid {
        display: flex;
        overflow-x: auto;
        gap: 16px;
        padding-bottom: 12px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .card-grid::-webkit-scrollbar {
        height: 6px;
    }

    .card-grid::-webkit-scrollbar-thumb {
        background: #cbd5f5;
        border-radius: 10px;
    }

    .tryout-card {
        min-width: 82%;
        max-width: 82%;
        scroll-snap-align: start;
    }

    .fi-header-heading {
        font-size: 1.3rem;
    }

    .fi-header-subheading {
        font-size: 0.85rem;
    }
}

/* Header wrapper */
.fi-header {
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #e5e7eb;
}

.fi-header-heading {
    font-size: 1.6rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.4px;
}

.fi-header-heading::after {
    content: "";
    display: block;
    width: 34px;
    height: 3px;
    margin-top: 8px;
    background: #fb923c;
    border-radius: 999px;
}

.fi-header-subheading {
    font-size: 0.95rem;
    color: #64748b;
    margin-top: 6px;
}

/* Sidebar background */

.fi-sidebar {
    background: #ffffff;
    border-right: 1px solid #e5e7eb;
}

/* Header / logo area */
.fi-sidebar-header {
    padding: 1.25rem;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(
        180deg,
        #ffffff,
        #f8fafc
    );
}

/* Sidebar item */
.fi-sidebar-item {
    border-radius: 12px;
    margin: 2px 4px;
    padding: 5px 14px;
    transition: all 0.2s ease;
}

/* Label */
.fi-sidebar-item-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #334155;
}

/* Icon */
.fi-sidebar-item-icon {
    color: #94a3b8;
}

/* Hover (soft orange wash) */
.fi-sidebar-item:hover {
    background: rgba(251, 146, 60, 0.12);
}

/* Active state – PREMIUM */
.fi-sidebar-item-active {
    background: linear-gradient(
        90deg,
        rgba(251, 146, 60, 0.22),
        rgba(251, 146, 60, 0.05)
    );
    box-shadow: inset 4px 0 0 #fb923c;
}

.fi-sidebar-item-active .fi-sidebar-item-label {
    color: #9a3412;
    font-weight: 600;
}

.fi-sidebar-item-active .fi-sidebar-item-icon {
    color: #fb923c;
}

.fi-sidebar-group-label {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #94a3b8;
    padding: 14px 16px 6px;
}

.fi-card {
    border-radius: 18px;
    border: 1px solid #e5e7eb;
    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.04);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.fi-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.fi-card-wellcome {
    width:100%;
}

.stat-label {
    font-size: 13px;
    color: #6b7280;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
}

.stat-card.success {
    border-left: 4px solid #16a34a;
}

.stat-card.warning {
    border-left: 4px solid #f59e0b;
}

/* Tryout Footer */
.app-footer {
    margin-top: 3rem;
    padding: 1.25rem 2rem;
    background: linear-gradient(
        180deg,
        #ffffff,
        #f8fafc
    );
    border-top: 1px solid #e5e7eb;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-left {
    font-size: 0.85rem;
    color: #64748b;
}

.footer-right {
    display: flex;
    gap: 1.25rem;
}

.footer-link {
    font-size: 0.85rem;
    color: #334155;
    text-decoration: none;
    position: relative;
}

.footer-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: #fb923c;
    transition: width 0.2s ease;
}

.footer-link:hover::after {
    width: 100%;
}

/* syarat dan ketentuan */
.policy-content {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #334155;
}

.policy-content h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.policy-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    color: #0f172a;
}

.policy-content p {
    margin-bottom: 0.75rem;
}

.policy-content strong {
    color: #fb923c;
}

/* ANIMASI */
.tryout-hero {
    position: relative;
    padding: 15px;
    border-radius: 18px;
    animation: heroFloat 6s ease-in-out infinite;
    transition: all 0.3s ease;
    background-size: cover;
    background-position: center;
    background-blend-mode: screen;
    background-image: url('https://i.pinimg.com/originals/87/54/09/875409c9661c9701049b177188ed09e8.jpg');
    background-color: #ecd065;
}

/*.tryout-hero:hover {*/
/*    transform: translateY(-6px) scale(1.02);*/
/*    box-shadow: 0 20px 40px rgba(79,70,229,0.25);*/
/*}*/

@keyframes heroFloat {
    0%   { transform: translateY(0); }
    50%  { transform: translateY(-4px); }
    100% { transform: translateY(0); }
}

.tryout-hero h2 {
    margin: 0;
    font-size: 22px;
}

.tryout-hero p {
    margin-top: 6px;
    color: #64748b;
}

/*CARD PAKET TRYOUT */
.video-package {
    position: relative;
    padding: 0;
    border: 2px solid #BDBDBD;
    border-radius: 22px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(0,0,0,.08);
    transition: transform .35s ease, box-shadow .35s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Hover */
.video-package:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0,0,0,.14);
}

/* THUMBNAIL */
.package-thumb {
    height: 180px;
    overflow: hidden;
    border-radius: 10px;
}

.package-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
    border-radius:10px;
}

.video-package:hover .package-thumb img {
    transform: scale(1.07);
    border-radius: 10px;
}

/* BODY */
.package-body {
    padding: 22px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.package-body h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}

.package-desc {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 14px;
}

/* PRICE */
.package-price {
    font-size: 22px;
    font-weight: 800;
    color: #2563eb;
    margin-bottom: 16px;
}

/* BUTTON */
.package-btn {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 12px;
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: transform .2s ease, box-shadow .2s ease;
    margin-top: auto;
    cursor: pointer;
}

.package-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37,99,235,.35);
}

/* BADGE */
.package-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 999px;
    background: #facc15;
    color: #92400e;
    z-index:10;
}

/* RECOMMENDED HIGHLIGHT */
.video-package.recommended {
    border: 2px solid #d9eb25;
    box-shadow: 0 25px 60px rgba(37,99,235,.25);
    transform: scale(1.04);
    z-index: 2;
}

.package-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

/* 4 kolom untuk layar besar */
@media (min-width: 1400px) {
    .package-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Tablet */
@media (max-width: 1024px) {
    .package-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 640px) {
    .package-grid {
        grid-template-columns: 1fr;
    }
}










