/* Health Packages Section Styles */
.health-pkg-section {
    padding: 60px 20px;
    background: linear-gradient(135deg, #f8fafb 0%, #eef2f7 100%);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.health-pkg-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Section Header */
.health-pkg-header {
    text-align: center;
    margin-bottom: 50px;
}

.health-pkg-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.health-pkg-header p {
    font-size: 1.1rem;
    color: #7f8c8d;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Packages Grid */
.health-pkg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* Package Card */
.health-pkg-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px 25px;
    position: relative;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
    overflow: hidden;
}

.health-pkg-highlight {
    box-shadow: 0 15px 40px rgba(78, 205, 196, 0.3);
    transform: translateY(-10px);
    border: 2px solid var(--primary-color);
}

@keyframes health-pkg-pulse {
    0% { box-shadow: 0 0 0 0 rgba(78, 205, 196, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(78, 205, 196, 0); }
    100% { box-shadow: 0 0 0 0 rgba(78, 205, 196, 0); }
}

.health-pkg-pulse {
    animation: health-pkg-pulse 1s;
}

.health-pkg-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.health-pkg-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: #3498db;
}

.health-pkg-card:hover::before {
    opacity: 1;
}

.health-pkg-card.health-pkg-featured {
    border: 2px solid #e74c3c;
    position: relative;
    transform: scale(1.02);
}

.health-pkg-card.health-pkg-featured::before {
    background: linear-gradient(90deg, #e74c3c, #c0392b);
    opacity: 1;
}

.health-pkg-card.health-pkg-hidden {
    display: none;
}

/* Popular Badge */
.health-pkg-popular-badge {
    position: absolute;
    top: -2px;
    right: 20px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    padding: 8px 8px;
    padding-left: 7px;
    border-radius: 0 0 12px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

/* Package Icon */
.health-pkg-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #3498db 0%, #2ecc71 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.health-pkg-card.health-pkg-featured .health-pkg-icon {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.health-pkg-icon i {
    font-size: 1.8rem;
    color: white;
}

.health-pkg-card:hover .health-pkg-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Package Title */
.health-pkg-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    text-align: center;
}

/* Package Price */
.health-pkg-price {
    text-align: center;
    margin-bottom: 10px;
}

.health-pkg-original-price {
    font-size: 1rem;
    color: #95a5a6;
    text-decoration: line-through;
    margin-right: 10px;
}

.health-pkg-current-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.health-pkg-discount-code {
    text-align: center;
    font-size: 0.85rem;
    color: #e74c3c;
    margin-bottom: 20px;
    font-weight: 500;
    background: rgba(231, 76, 60, 0.1);
    padding: 5px 10px;
    border-radius: 20px;
    display: inline-block;
    width: 100%;
}

/* Package Description */
.health-pkg-description {
    font-size: 0.95rem;
    color: #7f8c8d;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Package Details */
.health-pkg-details {
    margin-bottom: 25px;
}

.health-pkg-test-count {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: block;
    width: calc(100% - 0px);
    box-sizing: border-box;
}

.health-pkg-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.health-pkg-content li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #2c3e50;
    line-height: 1.4;
}

.health-pkg-content li i {
    color: #2ecc71;
    margin-right: 10px;
    margin-top: 2px;
    font-size: 0.8rem;
}

.health-pkg-content li strong {
    color: #2c3e50;
    margin-right: 5px;
}

.health-pkg-fasting-note {
    font-size: 0.8rem;
    color: #7f8c8d;
    font-style: italic;
    margin-top: 15px;
    padding: 10px;
    background: rgba(149, 165, 166, 0.1);
    border-radius: 8px;
}

/* Modal Styles */
.health-pkg-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.health-pkg-modal.active {
    display: flex;
    opacity: 1;
    justify-content: center;
    align-items: center;
}

.health-pkg-modal-content {
    background: #ffffff;
    padding: 30px;
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.health-pkg-modal.active .health-pkg-modal-content {
    transform: translateY(0);
}

.health-pkg-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #95a5a6;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 5px;
}

.health-pkg-modal-close:hover {
    color: #e74c3c;
}

.health-pkg-modal-header {
    margin-bottom: 25px;
    padding-right: 30px;
}

.health-pkg-modal-title {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.3;
}

.health-pkg-modal-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.health-pkg-modal .health-pkg-description {
    text-align: left;
    margin-bottom: 25px;
    line-height: 1.6;
    color: #34495e;
}

.health-pkg-modal .health-pkg-test-count {
    text-align: left;
    margin-bottom: 25px;
    font-weight: 600;
}

.health-pkg-modal .health-pkg-content {
    padding: 0 5px;
}

.health-pkg-modal .health-pkg-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.health-pkg-modal .health-pkg-content li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    font-size: 0.95rem;
    color: #2c3e50;
    line-height: 1.5;
    padding-left: 5px;
}

.health-pkg-modal .health-pkg-content li i {
    color: #2ecc71;
    margin-right: 12px;
    margin-top: 4px;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.health-pkg-modal .health-pkg-content li strong {
    color: #2c3e50;
    margin-right: 8px;
    font-weight: 600;
}

.health-pkg-modal .health-pkg-fasting-note {
    margin-top: 25px;
    padding: 15px;
    background: rgba(149, 165, 166, 0.1);
    border-radius: 10px;
    font-size: 0.9rem;
    color: #34495e;
    line-height: 1.5;
}

/* Responsive Modal Styles */
@media (max-width: 768px) {
    .health-pkg-modal-content {
        padding: 25px 20px;
        width: 95%;
    }

    .health-pkg-modal-title {
        font-size: 1.5rem;
        margin-bottom: 12px;
    }

    .health-pkg-modal-header {
        margin-bottom: 20px;
    }

    .health-pkg-modal .health-pkg-content li {
        font-size: 0.9rem;
        margin-bottom: 12px;
        padding-left: 3px;
    }

    .health-pkg-modal .health-pkg-description {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }

    .health-pkg-modal .health-pkg-test-count {
        margin-bottom: 20px;
    }

    .health-pkg-modal .health-pkg-fasting-note {
        margin-top: 20px;
        padding: 12px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .health-pkg-modal-content {
        padding: 20px 15px;
        border-radius: 15px;
    }

    .health-pkg-modal-close {
        top: 10px;
        right: 10px;
        font-size: 1.2rem;
    }

    .health-pkg-modal-title {
        font-size: 1.3rem;
    }

    .health-pkg-modal .health-pkg-content {
        padding: 0 2px;
    }

    .health-pkg-modal .health-pkg-content li {
        font-size: 0.85rem;
        margin-bottom: 10px;
    }

    .health-pkg-modal .health-pkg-content li i {
        margin-right: 10px;
        margin-top: 3px;
    }

    .health-pkg-modal .health-pkg-fasting-note {
        padding: 10px;
        font-size: 0.8rem;
    }
}

/* Smooth button transitions */
.health-pkg-read-more-btn {
    background: none;
    border: none;
    color: #3498db;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 0;
    margin-top: 10px;
    text-decoration: underline;
    transition: color 0.3s ease, opacity 0.3s ease;
}

.health-pkg-read-more-btn:hover {
    color: #2980b9;
}

.health-pkg-read-more-btn:disabled {
    opacity: 0.6;
    cursor: wait;
}

/* Book Now Button */
.health-pkg-btn {
    width: 100%;
    padding: 15px 25px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.health-pkg-btn-primary {
    background: linear-gradient(135deg, #3498db 0%, #2ecc71 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.3);
}

.health-pkg-card.health-pkg-featured .health-pkg-btn-primary {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.3);
}

.health-pkg-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
}

.health-pkg-card.health-pkg-featured .health-pkg-btn:hover {
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.4);
}

.health-pkg-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.health-pkg-btn:hover::before {
    left: 100%;
}

/* Explore More Button with enhanced transitions */
.health-pkg-explore-container {
    text-align: center;
    margin-top: 40px;
}

.health-pkg-explore-btn {
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(52, 73, 94, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.health-pkg-explore-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 73, 94, 0.4);
}

.health-pkg-explore-btn:disabled {
    opacity: 0.7;
    cursor: wait;
    transform: none !important;
}

.health-pkg-explore-btn i {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.health-pkg-explore-btn.health-pkg-expanded i {
    transform: rotate(180deg);
}

/* Loading animation for explore button */
.health-pkg-explore-btn:disabled::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: healthPkgButtonLoading 1.5s infinite;
}

@keyframes healthPkgButtonLoading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Optimized animations for faster performance */
@keyframes healthPkgFadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes healthPkgFadeOutDown {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* Faster transitions for packages */
.health-pkg-card.health-pkg-showing {
    will-change: opacity, transform;
}

.health-pkg-card.health-pkg-hiding {
    will-change: opacity, transform;
}

/* Responsive Design */
@media (max-width: 768px) {
    .health-pkg-section {
        padding: 40px 15px;
    }
    
    .health-pkg-header h2 {
        font-size: 2rem;
    }
    
    .health-pkg-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .health-pkg-card {
        padding: 20px 15px;
        margin: 0 auto;
        border-radius: 15px;
    }
    
    .health-pkg-card.health-pkg-featured {
        transform: none;
        margin-bottom: 10px;
    }
    
    .health-pkg-current-price {
        font-size: 1.5rem;
    }
    
    .health-pkg-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 15px;
    }
    
    .health-pkg-icon i {
        font-size: 1.4rem;
    }
    
    .health-pkg-card h3 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    
    .health-pkg-description {
        font-size: 0.85rem;
        margin-bottom: 15px;
    }
    
    .health-pkg-discount-code {
        font-size: 0.8rem;
        margin-bottom: 15px;
    }
    
    .health-pkg-test-count {
        font-size: 0.8rem;
        padding: 8px 15px;
        margin-bottom: 10px;
    }
    
    .health-pkg-content li {
        font-size: 0.8rem;
        margin-bottom: 8px;
    }
    
    .health-pkg-btn {
        padding: 10px 15px;
        font-size: 0.85rem;
    }
    
    .health-pkg-popular-badge {
        right: 10px;
        font-size: 0.7rem;
        padding: 4px 10px;
    }
}

@media (max-width: 480px) {
    .health-pkg-section {
        padding: 30px 10px;
    }
    
    .health-pkg-header h2 {
        font-size: 1.8rem;
    }
    
    .health-pkg-header p {
        font-size: 1rem;
    }
    
    .health-pkg-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .health-pkg-card {
        padding: 18px 12px;
        border-radius: 12px;
        max-width: 100%;
    }
    
    .health-pkg-card h3 {
        font-size: 1rem;
    }
    
    .health-pkg-current-price {
        font-size: 1.3rem;
    }
    
    .health-pkg-icon {
        width: 45px;
        height: 45px;
    }
    
    .health-pkg-icon i {
        font-size: 1.2rem;
    }
    
    .health-pkg-content li {
        font-size: 0.75rem;
    }
    
    .health-pkg-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    .health-pkg-explore-btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
    
    .health-pkg-popular-badge {
        right: 8px;
        font-size: 0.65rem;
        padding: 3px 8px;
    }
}

/* High DPI displays */
@media (min-width: 1400px) {
    .health-pkg-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablet landscape */
@media (min-width: 769px) and (max-width: 1024px) {
    .health-pkg-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .health-pkg-card.health-pkg-featured {
        transform: scale(1.01);
    }
}

/* Mobile landscape optimization */
@media (max-width: 768px) and (orientation: landscape) {
    .health-pkg-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .health-pkg-card {
        padding: 15px 10px;
    }
    
    .health-pkg-icon {
        width: 40px;
        height: 40px;
    }
}

/* Compact mobile view for very small screens */
@media (max-width: 320px) {
    .health-pkg-card {
        padding: 15px 8px;
    }
    
    .health-pkg-card h3 {
        font-size: 0.9rem;
    }
    
    .health-pkg-current-price {
        font-size: 1.2rem;
    }
    
    .health-pkg-description {
        font-size: 0.8rem;
    }
}

/* Print styles */
@media print {
    .health-pkg-section {
        background: white;
        box-shadow: none;
    }
    
    .health-pkg-card {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
    }
    
    .health-pkg-btn, .health-pkg-explore-btn {
        display: none;
    }
}