/* ============================================ */
/* PAGE BANNER */
/* ============================================ */
.page-banner {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.page-banner .container {
    position: relative;
    z-index: 3;
    text-align: center;
}

.banner-content {
    width: 100%;
    text-align: center;
    color: white;
}

.banner-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 1rem auto;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.2rem;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.breadcrumb a:hover {
    opacity: 0.8;
}

.breadcrumb .separator {
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumb .current {
    color: rgba(255, 255, 255, 0.9);
}

/* ============================================ */
/* TESTS PACKAGES PAGE */
/* ============================================ */
.tests-packages-page {
    background-color: #f5f7fa;
    padding: 2rem 0 4rem;
}

/* ============================================ */
/* TOGGLE BAR */
/* ============================================ */
.toggle-bar {
    display: flex;
    gap: 0;
    background-color: white;
    border-radius: 50px;
    padding: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    max-width: 400px;
    margin: 0 auto 3rem;
}

.toggle-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    color: #666;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    background: transparent;
    cursor: pointer;
}

.toggle-btn svg {
    transition: all 0.3s ease;
}

.toggle-btn.active {
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.toggle-btn:hover:not(.active) {
    color: #0066cc;
    background-color: #f0f8ff;
}

/* ============================================ */
/* MAIN LAYOUT */
/* ============================================ */
.tests-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 2rem;
    align-items: start;
}

.tests-layout.no-sidebar {
    grid-template-columns: 1fr;
    max-width: 1400px;
    margin: 0 auto;
}

/* ============================================ */
/* FILTER SIDEBAR */
/* ============================================ */
.filter-sidebar {
    background-color: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 100px;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.filter-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.clear-filters {
    background: none;
    border: none;
    color: #0066cc;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.clear-filters:hover {
    background-color: #f0f8ff;
}

.filter-section {
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.filter-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.filter-dropdown-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: color 0.2s ease;
}

.filter-dropdown-btn:hover {
    color: #0066cc;
}

.dropdown-icon {
    transition: transform 0.3s ease;
}

.filter-options {
    display: none;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.filter-options.active {
    display: flex;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.9375rem;
    color: #555;
    transition: color 0.2s ease;
    padding: 4px 0;
}

.filter-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #0066cc;
}

.filter-option:hover {
    color: #0066cc;
}

/* ============================================ */
/* CARDS GRID */
/* ============================================ */
.tests-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
}

.no-results h3 {
    font-size: 1.5rem;
    color: #333;
    margin: 1rem 0 0.5rem;
}

.no-results p {
    color: #666;
    font-size: 1rem;
}

/* ============================================ */
/* TEST CARD */
/* ============================================ */
.test-card {
    background-color: white;
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.test-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.popular-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: linear-gradient(135deg, #ff4757 0%, #ff6348 100%);
    color: white;
    padding: 4px 8px;
    border-radius: 25px;
    font-size: 0.8125rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.3);
}

.card-header {
    background: linear-gradient(135deg, #0066cc 0%, #004d99 100%);
    color: white;
    padding: 1rem 1rem 1rem;
    height: 125px;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.card-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.card-rating span {
    margin-left: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
}

.test-image {
    width: 100%;
    height: 150px;
    overflow: hidden;
    background: #f0f0f0;
}

.test-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-body {
    padding: 1.5rem;
}

.card-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.card-features li {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.9375rem;
    color: #555;
}

.card-features svg {
    flex-shrink: 0;
}

.package-tests-count {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #0066cc;
    background: #f0f7ff;
    padding: 6px 10px;
    border-radius: 20px;
    width: fit-content;
}

.call-options {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.call-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.audio-call {
    background: #e6f2ff;
    color: #0066cc;
}

.audio-call:hover {
    background: #0066cc;
    color: #fff;
}

.video-call {
    background: #e9f9ee;
    color: #1a8f3c;
}

.video-call:hover {
    background: #1a8f3c;
    color: #fff;
}

.card-footer {
    padding: 0 1.5rem 1.75rem;
}

.card-pricing {
    margin-bottom: 1.25rem;
}

.price-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 5px;
    margin-bottom: 0.5rem;
}

.original-price {
    font-size: 0.9375rem;
    color: #999;
    text-decoration: line-through;
}

.discount-badge {
    background-color: #ff4757;
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
}

.current-price {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0066cc;
}

.card-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn-outline,
.btn-primary {
    flex: 1;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-outline {
    background: white;
    color: #0066cc;
    border: 2px solid #0066cc;
}

.btn-outline:hover {
    background: #f0f8ff;
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(34, 197, 94, 0.4);
}

.btn-cart-card {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    flex-shrink: 0;
}

.btn-cart-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.btn-cart-card:active {
    transform: translateY(0);
}

.btn-cart-card.in-cart {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.4);
}

.btn-cart-card.in-cart:hover {
    box-shadow: 0 6px 20px rgba(245, 87, 108, 0.5);
}

/* ============================================ */
/* PACKAGE DETAILS MODAL */
/* ============================================ */
.package-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.package-modal-content {
    background: white;
    border-radius: 20px;
    width: 100%;
    max-width: 650px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    background: linear-gradient(135deg, #0066cc 0%, #004d99 100%);
    color: white;
    padding: 1.5rem 2rem;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.modal-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
}

.modal-body h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0066cc;
    margin: 0 0 1.5rem 0;
}

.tests-included-label {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

.tests-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.test-item {
    background-color: #f5f7fa;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    font-size: 0.9375rem;
    color: #555;
    border-left: 4px solid #0066cc;
    transition: all 0.2s ease;
}

.test-item:hover {
    background-color: #e8f2ff;
    transform: translateX(5px);
}

.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.btn-whatsapp {
    padding: 12px 24px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background: linear-gradient(135deg, #128C7E 0%, #075E54 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}

.btn-modal-close {
    padding: 12px 24px;
    background: white;
    color: #666;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-modal-close:hover {
    background-color: #f5f7fa;
    border-color: #ccc;
}

.btn-modal-book {
    padding: 12px 32px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.btn-modal-book:hover {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(34, 197, 94, 0.4);
}

/* ============================================ */
/* PAGINATION */
/* ============================================ */
.pagination-wrapper {
    margin-top: 3rem;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.page-btn {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border: 2px solid #e0e0e0;
    background-color: white;
    color: #666;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
}

.page-btn:hover:not(.active) {
    border-color: #0066cc;
    color: #0066cc;
    background-color: #f0f8ff;
    transform: translateY(-2px);
}

.page-btn.active {
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    border-color: #0066cc;
    color: white;
}

.page-arrow {
    padding: 0;
    width: 40px;
}

.page-ellipsis {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    color: #999;
    font-weight: 600;
}

/* ============================================ */
/* RESPONSIVE DESIGN */
/* ============================================ */

/* 1440px - Large Desktop */
@media (max-width: 1440px) {
    .tests-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 1024px - Desktop/Laptop */
@media (max-width: 1024px) {
    .tests-layout {
        grid-template-columns: 220px 1fr;
    }

    .tests-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .page-banner {
        height: 300px;
    }

    .banner-title {
        font-size: 2rem;
    }
}

/* 768px - Tablet */
@media (max-width: 768px) {
    .page-banner {
        height: 220px;
        margin-top: 70px;
    }

    .banner-title {
        font-size: 1.75rem;
    }

    .breadcrumb {
        font-size: 0.875rem;
    }

    .tests-packages-page {
        padding: 1.5rem 0 3rem;
    }

    .tests-layout {
        grid-template-columns: 1fr;
    }

    .filter-sidebar {
        position: static;
    }

    .tests-cards-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .card-actions {
        flex-wrap: wrap;
    }

    .btn-outline,
    .btn-primary {
        flex: 1 1 calc(50% - 4px);
        min-width: 0;
    }

    .btn-cart-card {
        width: 100%;
        flex: 1 1 100%;
    }

    .modal-footer {
        flex-direction: column;
    }

    .btn-whatsapp,
    .btn-modal-close,
    .btn-modal-book {
        width: 100%;
    }
}

/* 426px - Mobile Large */
@media (max-width: 426px) {
    .page-banner {
        height: 180px;
        margin-top: 100px;
    }

    .banner-title {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .breadcrumb {
        font-size: 0.8125rem;
    }

    .toggle-bar {
        max-width: 100%;
        padding: 6px;
    }

    .toggle-btn {
        padding: 10px 16px;
        font-size: 0.875rem;
    }

    .modal-header {
        padding: 1.25rem 1.5rem;
    }

    .modal-header h2 {
        font-size: 1.25rem;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .modal-footer {
        padding: 1.25rem 1.5rem;
    }
}

/* 320px - Mobile Small */
@media (max-width: 320px) {
    .page-banner {
        height: 160px;
    }

    .banner-title {
        font-size: 1.25rem;
    }

    .toggle-btn {
        padding: 8px 12px;
        font-size: 0.8125rem;
    }

    .toggle-btn svg {
        width: 16px;
        height: 16px;
    }

    .card-title {
        font-size: 1rem;
    }

    .current-price {
        font-size: 1.5rem;
    }

    .btn-outline,
    .btn-primary {
        padding: 8px 14px;
        font-size: 0.8125rem;
    }
}