/* =========================================
   PACKAGES SECTION
   ========================================= */

.packages {
    width: 100%;
    padding: 110px 180px 110px;
    background: #f8f9fa;
}

/* Tab Navigation */
.tab_nav_sec {
    max-width: 1200px;
    margin: 0 auto 48px;
}

.nav-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
    border: none;
}

.nav-item {
    margin: 0;
}

.nav-link {
    font-family: var(--font-main);
    font-size: 15px;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    transition: var(--transition-normal);
    cursor: pointer;
    display: inline-block;
}

.nav-link:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.nav-link.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

/* Tab Content */
.tab-content {
    max-width: 1620px;
    margin: 0 auto;
}

.tab-pane {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tab-pane.active {
    display: block;
    opacity: 1;
}

.tab-pane.fade.show.active {
    display: block;
    opacity: 1;
}

/* Swiper Slider - Each tab has its own swiper container */
.swiper-container {
    position: relative;
    width: 100%;
    /* Top/bottom spacing for the swiper container to separate it from surrounding elements */
    padding: 20px 0 40px;
}

.swiper {
    width: 100%;
    padding: 10px;

}

.swiper-wrapper {
    display: flex;
    height: 650px;
}

.swiper-slide {
    height: auto;
    display: flex;
}

/* Package Card */
.package-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    width: 100%;
}

.package-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary-color);
    box-shadow: 0 12px 32px rgba(0, 71, 255, 0.12);
}

.package-header {
    margin-bottom: 8px;
    text-align: center;
    padding-bottom: 12px;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.package-name {
    font-family: var(--font-main);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-main);
    margin-bottom: 8px;
    line-height: 1.4;
}

.package-price {
    font-family: var(--font-main);
    font-size: 32px;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 16px;
}

.package-price span {
    font-size: 16px;
    color: #9ca3af;
}

.package-subtitle {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    text-align: center;
}

.package-features {
    list-style: none;
    padding: 0;
    margin: 0 0 auto;
    flex: 1;
    max-height: 340px;
    overflow-y: auto;
}

.package-features::-webkit-scrollbar {
    width: 4px;
}

.package-features::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 2px;
}

.package-features::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.package-features li {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #4b5563;
    padding-left: 24px;
    position: relative;
    margin-bottom: 12px;
}

.package-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-color);
    font-weight: 700;
}

/* Order Now Button Container - Fixed alignment */
.package-actions {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #f3f4f6;
}

.package-cta {
    font-family: var(--font-mono);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 24px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 0;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition-fast);
    width: 100%;
    margin-bottom: 16px;
}

.package-cta:hover {
    background: var(--primary-hover);
    box-shadow: 0 4px 12px rgba(0, 71, 255, 0.3);
}

.package-cta .btn-dots {
    display: flex;
    gap: 2px;
}

.package-cta .btn-dots span {
    width: 3px;
    height: 3px;
    background: currentColor;
    border-radius: 50%;
}

.view_detail {
    text-align: center;
}

.view_detail a {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.view_detail a:hover {
    color: var(--primary-color);
}

/* Swiper Navigation - Unique per swiper instance */
.swiper-button-next,
.swiper-button-prev {
    color: var(--white);
    background: var(--primary-color);
    border: 1px solid var(--border-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: var(--white);
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 71, 255, 0.3);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 18px;
    font-weight: bold;
}

.swiper-button-next {
    right: -60px;
}

.swiper-button-prev {
    left: -60px;
}

@media (min-width: 1400px) {
    .swiper-button-next {
        right: -25px;
    }

    .swiper-button-prev {
        left: -25px;
    }
}

@media (max-width: 1400px) {
    .swiper-button-next {
        right: 10px;
    }

    .swiper-button-prev {
        left: 10px;
    }
}

/* Responsive */
@media (max-width: 1200px) {
    .packages {
        padding: 80px 32px 110px;
    }

    .packages-title h2 {
        font-size: 36px;
    }

    .swiper-button-next,
    .swiper-button-prev {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .packages {
        padding: 60px 24px 90px;
    }

    .packages-title {
        text-align: left;
        margin-bottom: 22px;
        text-align: center;
    }

    .packages-title h2 {
        text-align: center;
        font-size: 28px;
        letter-spacing: -0.6px;
        line-height: 30px;
        margin-left: 0;
        margin-right: 0;
    }

    .packages-title p {
        text-align: center;
        line-height: 20px;
        font-size: 15px;
        margin-left: 0;
        margin-right: 0;
    }

    .nav-tabs {
        gap: 8px;
    }

    .nav-link {
        padding: 12px 20px;
        font-size: 14px;
    }
}