:root {
    --primary-color: #0066ff;
    --primary-dark: #0052cc;
    --neutral-bg: #f8f9fa;
    --neutral-border: #e0e6ed;
    --text-dark: #1a202c;
    --text-light: #6b7280;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 10px 13px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px rgba(0, 0, 0, 0.15);
}

body {
    background-color: var(--neutral-bg);
    color: var(--text-dark);
    line-height: 1.6;
}

.packages-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h5 {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.section-header h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.section-header p {
    color: var(--text-light);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

.carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
}

.carousel-track {
    display: flex;
    overflow: hidden;
    flex: 1;
    border-radius: 12px;
}

.carousel-wrapper {
    display: flex;
    width: 100%;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.package-item {
    flex: 0 0 100%;
    min-width: 100%;
}

@media (min-width: 768px) {
    .package-item {
        flex: 0 0 50%;
        min-width: 50%;
    }
}

@media (min-width: 1024px) {
    .package-item {
        flex: 0 0 33.333%;
        min-width: 33.333%;
    }
}

.package-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: 10px;
}

.package-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.package-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 15;
}

.package-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.package-price {
    position: absolute;
    bottom: 0;
    left: 0;
    background: var(--primary-color);
    color: var(--white);
    padding: 12px 20px;
    font-size: 24px;
    font-weight: 700;
    border-radius: 0 8px 0 0;
    z-index: 15;
}

.package-features {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.5));
    color: var(--white);
    display: flex;
    font-size: 12px;
    z-index: 15;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    height: 50px;

}

.feature-item {
    flex: 1;
    padding: 12px;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.feature-item:last-child {
    border-right: none;
}

.feature-item i {
    margin-right: 6px;
}

.package-content {
    padding: 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.package-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-dark);
}

.package-subtitle {
    font-size: 12px;
    color: var(--primary-color);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.package-rating {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
}

.package-rating i {
    color: var(--primary-color);
    font-size: 14px;
}

.package-description {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}


.package-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-top: 1px solid var(--neutral-border);
    margin: -28px 18px -8px 18px;
    position: relative;
    z-index: 10; /* bring it forward */

}

.action-btn {
    flex: 1;
    padding: 14px 0;
    border: none;
    background: var(--white);
    color: var(--text-dark);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    border-right: 1px solid var(--neutral-border);
}

.action-btn:last-child {
    border-right: none;
}

.action-btn:hover {
    background: var(--neutral-bg);
}

.action-btn.primary-action {
    grid-column: 1 / -1;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 0;
    margin: 0;
}

.action-btn.primary-action:hover {
    background: var(--primary-dark);
}

.carousel-controls {
    display: flex;
    gap: 12px;
    align-items: center;
}

.carousel-btn {
    width: 44px;
    height: 44px;
    border: 2px solid var(--neutral-border);
    background: var(--white);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    transition: all 0.3s ease;
    font-size: 18px;
}

.carousel-btn:hover:not(:disabled) {
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: var(--shadow);
}

.carousel-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.carousel-indicators {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 30px;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--neutral-border);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: var(--primary-color);
    width: 24px;
    border-radius: 4px;
}

/* Modal styles for package detail view */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background-color: var(--white);
    border-radius: 16px;
    overflow: hidden;
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
    box-shadow: var(--shadow-lg);
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    position: relative;
    height: 300px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.modal-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--text-dark);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    transform: scale(1.1);
    background: var(--primary-color);
    color: var(--white);
}

.modal-body {
    padding: 40px;
}

.modal-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.modal-subtitle {
    font-size: 14px;
    color: var(--primary-color);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.modal-rating {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
}

.modal-rating i {
    color: var(--primary-color);
    font-size: 16px;
}

.detail-section {
    margin-bottom: 30px;
}

.detail-section h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.detail-section p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 8px;
}

.features-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.features-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text-light);
    font-size: 14px;
}

.features-list i {
    color: var(--primary-color);
    margin-top: 2px;
    flex-shrink: 0;
}

.modal-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-top: 1px solid var(--neutral-border);
    padding: 0 40px 40px 40px;
}

.modal-btn {
    padding: 14px 24px;
    border: none;
    background: var(--white);
    color: var(--text-dark);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    border-right: 1px solid var(--neutral-border);
    margin-top: 24px;
}

.modal-btn:last-child {
    border-right: none;
}

.modal-btn:hover {
    background: var(--neutral-bg);
}

.modal-btn.primary {
    grid-column: 1 / -1;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    margin-top: 24px;
}

.modal-btn.primary:hover {
    background: var(--primary-dark);
}

@media (max-width: 768px) {
    .packages-section {
        padding: 40px 16px;
    }

    .section-header h1 {
        font-size: 28px;
    }

    .carousel-controls {
        position: absolute;
        right: 0;
        top: -50px;
        gap: 8px;
    }

    .carousel-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .package-card {
        margin: 8px;
    }

    .modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .modal-body {
        padding: 24px;
    }

    .modal-footer {
        padding: 0 24px 24px 24px;
    }

    .modal-title {
        font-size: 20px;
    }
}