/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2E5BFF;
    --primary-dark: #1E40AF;
    --secondary: #00D4AA;
    --accent: #FF6B6B;
    --dark: #1E293B;
    --light: #F8FAFC;
    --gray: #64748B;
    --gray-light: #E2E8F0;
    --border-radius: 12px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    
}
body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000" opacity="0.1"><polygon fill="white" points="0,1000 1000,0 1000,1000"/></svg>');
    background-size: cover;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.hero-features {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.feature-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

.price-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.current-price {
    font-size: 2.5rem;
    font-weight: 700;
}

.original-price {
    font-size: 1.5rem;
    text-decoration: line-through;
    opacity: 0.7;
}

.discount-badge {
    background: var(--accent);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.hero-cta {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.medical-illustration {
    position: relative;
    width: 300px;
    height: 300px;
}

.illustration-circle {
    width: 100%;
    height: 100%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    position: relative;
    animation: pulse 2s infinite;
}

.illustration-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation: pulse 2s infinite 0.5s;
}

@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

/* Main Content */
.main-container {
    background: var(--light);
    padding: 4rem 0;
}

.content-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

/* Cards */
.content-card, .sidebar-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    overflow: hidden;
}

.card-header {
    background: linear-gradient(135deg, #1e3c72 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.card-icon {
    font-size: 1.5rem;
}

.card-header h2 {
    font-size: 1.3rem;
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

.card-text {
    color: var(--gray);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.highlight-box {
    background: var(--light);
    border-left: 4px solid var(--primary-dark);
    padding: 1.5rem;
    border-radius: 8px;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.highlight-icon {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.highlight-content h4 {
    color: var(--dark);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.highlight-content p {
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Warning Alert */
.warning-alert {
    background: #FEF3CD;
    border: 1px solid #FDE68A;
    color: #92400E;
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

/* Tests Container */
.test-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.tests-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.test-category {
    background: var(--light);
    border-radius: 8px;
    padding: 1.25rem;
    border-left: 4px solid var(--primary);
    transition: all 0.3s;
    cursor: pointer;
}

.test-category:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow);
}

.test-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.test-category-header h4 {
    color: var(--dark);
    font-weight: 600;
    font-size: 1rem;
}

.test-number {
    background: linear-gradient(135deg, #1e3c72 0%, #764ba2 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.test-description {
    color: var(--gray);
    font-size: 0.85rem;
    margin: 0;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.feature-item {
    text-align: center;
    padding: 1.5rem;
    background:linear-gradient(135deg, #1e3c72 0%, #764ba2 100%);
    border-radius: 8px;
    transition: all 0.3s;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.feature-icon-wrapper {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
}

.feature-item h4 {
    color: var(--dark);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.feature-item p {
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Sidebar Cards */
.sidebar-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.widget-header {
    background: linear-gradient(135deg, #1e3c72 0%, #764ba2 100%);
    color: white;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Emergency-specific header tweaks (keeps colors identical but aligns spacing) */
.widget-header.emergency {
    padding: 1.5rem;
    align-items: center;
    gap: 1rem;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.widget-header.emergency i {
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.widget-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
} 

/* Booking Form */
.booking-form {
    padding: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--gray-light);
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s;
    font-family: 'Poppins', sans-serif;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(46, 91, 255, 0.1);
}

.form-control::placeholder {
    color: #9CA3AF;
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s;
    margin-top: 0.5rem;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Contact Widget */
.contact-content {
    padding: 1.5rem;
}

.contact-content p {
    color: var(--gray);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

/* Emergency Widget content (keeps visual style, fixes alignment) */
.emergency-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
}

.emergency-content p {
    margin: 0;
    color: var(--dark);
    line-height: 1.5;
}

.emergency-contact {
    background: var(--accent);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.emergency-contact i {
    font-size: 1.1rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--light);
    border-radius: 8px;
    text-decoration: none;
    color: var(--dark);
    transition: all 0.3s;
    font-size: 0.9rem;
}

.contact-method:hover {
    background: var(--primary);
    color: white;
    transform: translateX(5px);
}

/* Lab Widget */
.lab-content {
    padding: 1.5rem;
}

.lab-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    text-align: center;
}

.stat-item {
    padding: 1rem 0.5rem;
}

.stat-number {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.7rem;
    color: var(--gray);
    line-height: 1.2;
}

/* Related Tests */
.related-tests-section {
    margin-top: 4rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark);
}

.section-header p {
    color: var(--gray);
    font-size: 1.1rem;
}

.related-tests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.related-test-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    border: 1px solid var(--gray-light);
    text-align: center;
}

.related-test-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.test-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-direction: column;
    gap: 0.5rem;
}

.test-card-header h4 {
    color: var(--dark);
    font-weight: 600;
    font-size: 1.1rem;
}

.test-badge {
    background: var(--primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
}

.test-description {
    color: var(--gray);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.test-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.test-book-btn {
    width: 100%;
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.test-book-btn:hover {
    background: var(--primary);
    color: white;
}

/* Company Info */
.company-info-section {
    margin-top: 3rem;
}

/* Footer */
.footer {
  background: #1a1a2e;
  color: #fff;
  padding: 60px 20px 30px;
}
.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 40px;
}
.footer-col h4 {
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: #fff;
}
.footer-col ul {
  list-style: none;
  padding: 0;
}
.footer-col ul li {
  margin-bottom: 8px;
  color: #ccc;
  transition: color 0.3s;
}
.footer-col ul li:hover {
  color: #ffcc00;
}
.footer-social a {
  color: #fff;
  margin-right: 10px;
  font-size: 1.2rem;
}
.hours span {
  color: #ff3b3b;
  font-weight: 600;
}
.footer-bottom {
  text-align: center;
  border-top: 1px solid #233454;
  padding-top: 20px;
  margin-top: 30px;
  font-size: 0.9rem;
  color: #aaa;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .content-layout {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-search {
        flex: 1;
        width: 100%;
        order: 3;
    }
    
    .nav-menu {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-features {
        flex-direction: column;
        align-items: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .lab-stats {
        grid-template-columns: 1fr;
    }
    
    .related-tests-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .price-section {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .card-header {
        padding: 1rem;
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .highlight-box {
        flex-direction: column;
        text-align: center;
    }
}