/* Global overflow prevention */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0066cc;
    --secondary: #00a79d;
    --accent: #ff6b35;
    --light: #f0f8ff;
    --dark: #0a2540;
    --gray: #6c757d;
    --success: #28a745;
}

.logo img {
    max-height: 50px;
    width: auto;
    display: block;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.8;
    color: #333;
    background-color: #fff;
    overflow-x: hidden;
    font-size: 16px;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

h1 {
    font-size: 4rem;
    font-weight: 800;
}

h2 {
    font-size: 3rem;
    font-weight: 700;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 16px;
    border: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

.btn-primary:hover {
    background: #0052a3;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.4);
}

.btn-secondary {
    background: var(--secondary);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 167, 157, 0.3);
}

.btn-secondary:hover {
    background: #008a82;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* Dropdown page styling */
/* Modal/Dropdown Page Styles */
.dropdown-page {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 37, 64, 0.85); /* Darker, more professional backdrop */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    overflow-y: auto;
    padding: 20px;
    animation: fadeIn 0.3s ease;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dropdown-page.show {
    display: block;
    opacity: 1;
}

.dropdown-content {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 900px;
    margin: 40px auto;
    padding: 0;
    position: relative;
    animation: slideUp 0.4s ease;
    overflow: hidden;
}

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

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

.dropdown-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    color: var(--dark);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.dropdown-close:hover {
    background: var(--primary);
    color: white;
    transform: rotate(90deg);
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

.dropdown-close:active {
    transform: rotate(90deg) scale(0.95);
}

.dropdown-close i {
    font-size: 1.1rem;
}

.dropdown-header {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    padding: 40px 40px 30px 40px;
    text-align: center;
    color: white;
}

.dropdown-header h2 {
    font-size: 2.2rem;
    margin: 0;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.3;
}

.dropdown-body {
    padding: 40px;
    text-align: left;
}

.dropdown-body p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--dark);
    margin-bottom: 20px;
    text-align: justify;
    text-justify: inter-word;
}

.dropdown-body p:last-child {
    margin-bottom: 0;
}

.dropdown-body p strong {
    color: var(--primary);
    font-weight: 600;
}

.dropdown-body .highlight-text {
    background: var(--light);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid var(--primary);
    font-weight: 500;
    color: var(--dark);
    margin-top: 30px;
    text-align: left;
}

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

/* ============================================
   PROFESSIONAL HERO SECTION - LIGHT OVERLAY
   ============================================ */

.hero {
    /* Background with professional blur and light overlay */
    background: 
        linear-gradient(
            135deg, 
            rgba(0, 102, 204, 0.15) 0%,      /* Very light blue - top left */
            rgba(0, 168, 204, 0.25) 50%,     /* Slightly more visible - middle */
            rgba(0, 102, 204, 0.35) 100%     /* Subtle visibility - bottom right */
        ),
        url('/static/medibridge/assets/images/hero.jpg');
    
    /* Hide poor image quality with blur and proper sizing */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    
    /* Blur the background image to hide low quality */
    position: relative;
    
    /* Layout */
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 80px;
    
    /* Ensure text is on top */
    z-index: 1;
}

/* Optional: Additional blur layer for background (if image is very poor quality) */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    filter: blur(2px);  /* Blur only the background, not the text */
    z-index: -1;
}

/* Content container - ensure text is crisp and readable */
.hero .container {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

/* ============================================
   TYPOGRAPHY - PROFESSIONAL & READABLE
   ============================================ */

.hero h1 {
    color: #ffffff;
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 25px;
    letter-spacing: -0.5px;
    
    /* Multiple text shadows for depth and readability */
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.3),      /* Subtle close shadow */
        0 4px 8px rgba(0, 0, 0, 0.2),      /* Medium shadow */
        0 8px 16px rgba(0, 0, 0, 0.15);    /* Outer glow */
    
    /* Smooth text rendering */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.hero p,
.hero .hero-subtitle {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    
    /* Text shadow for readability */
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.4),
        0 4px 8px rgba(0, 0, 0, 0.2);
    
    /* Slightly transparent for softer look */
    opacity: 0.98;
}

/* ============================================
   MODERN BUTTON STYLING
   ============================================ */

.hero .hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
}

.hero .btn {
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    
    /* Professional shadows */
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.2),
        0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Primary Button (Blue) */
.hero .btn-primary {
    background: linear-gradient(135deg, #0066cc 0%, #0088dd 100%);
    color: white;
}

.hero .btn-primary:hover {
    background: linear-gradient(135deg, #0052a3 0%, #0077cc 100%);
    transform: translateY(-3px);
    box-shadow: 
        0 6px 25px rgba(0, 102, 204, 0.4),
        0 3px 10px rgba(0, 0, 0, 0.2);
}

/* Secondary Button (WhatsApp Green) - Used for WhatsApp button */
.hero .btn-secondary {
    background: linear-gradient(135deg, #25D366 0%, #20BA5A 100%);
    color: white;
}

.hero .btn-secondary:hover {
    background: linear-gradient(135deg, #20BA5A 0%, #1FA855 100%);
    transform: translateY(-3px);
    box-shadow: 
        0 6px 25px rgba(37, 211, 102, 0.4),
        0 3px 10px rgba(0, 0, 0, 0.2);
}

/* Also support btn-whatsapp class if used */
.hero .btn-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #20BA5A 100%);
    color: white;
}

.hero .btn-whatsapp:hover {
    background: linear-gradient(135deg, #20BA5A 0%, #1FA855 100%);
    transform: translateY(-3px);
    box-shadow: 
        0 6px 25px rgba(37, 211, 102, 0.4),
        0 3px 10px rgba(0, 0, 0, 0.2);
}

.hero .btn:active {
    transform: translateY(-1px);
}

/* Focus states for buttons */
.hero .btn:focus {
    outline: 3px solid rgba(255, 255, 255, 0.5);
    outline-offset: 3px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet */
@media (max-width: 992px) {
    .hero {
        min-height: 80vh;
        padding: 100px 30px 60px;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero p {
        font-size: 1.3rem;
    }
    
    .hero .btn {
        padding: 14px 35px;
        font-size: 1rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
}

/* ============================================
   OPTIONAL: ANIMATED ELEMENTS
   ============================================ */

/* Fade in animation for hero content */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    animation: fadeInUp 0.8s ease-out;
}

.hero p {
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.hero .hero-buttons {
    animation: fadeInUp 1.2s ease-out 0.4s backwards;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .hero h1,
    .hero p,
    .hero .hero-buttons {
        animation: none;
    }
    
    .hero .btn {
        transition: none;
    }
}

/* How It Works Section */
.section {
    padding: 80px 0; /* Reduced from 120px for uniform spacing */
}

.section-title {
    text-align: center;
    margin-bottom: 50px; /* Reduced from 80px for uniform spacing */
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 15px;
}

.section-title p {
    font-size: 1.2rem;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
}

/* === UPDATED STEP CARDS === */
.steps-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}

.step-card {
    background: white;
    border-radius: 12px;
    padding: 30px 20px; /* Reduced padding for consistency */
    border: 1px solid #e9e9e9;
    box-shadow: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%; /* Ensure consistent height */
}

.step-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    border-radius: 50%;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 20px; /* Slightly smaller */
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px; /* Reduced spacing */
}

.step-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 25px;
    background-color: transparent;
    border-radius: 0;
    min-width: auto;
    height: auto;
}

.step-card-content h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px; /* Increased from 16px for better visibility */
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark);
}

.step-card-content p {
    font-family: 'Poppins', sans-serif;
    color: var(--gray);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 0;
}

.center-btn {
    text-align: center;
    margin-top: 60px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Why Choose Section */
.why-choose {
    background-color: var(--light);
}

.benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.benefit-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    border: 1px solid #f0f0f0;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.15);
    border-color: var(--primary);
}

.benefit-icon {
    font-size: 1.8rem;
    color: var(--secondary);
    background-color: #e6f6f5;
    border-radius: 12px;
    min-width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-content {
    text-align: left;
}

.benefit-content h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--dark);
    font-weight: 700;
}

.benefit-content p {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    color: var(--gray);
    line-height: 1.5;
}

/* --- UPDATED TESTIMONIAL STYLES --- */
/* Testimonial Slider Wrapper - Full Width Container */
.testimonial-slider-wrapper {
    width: 100%;
    position: relative;
    padding: 0 80px; /* Space for navigation buttons */
    margin: 0 auto;
}

.testimonial-slider {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    padding: 0;
}

.testimonial-card {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 280px; /* Fixed minimum height to prevent content shift */
    height: 100%;
}

.testimonial-card p {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--gray);
    margin-bottom: 25px;
    line-height: 1.7;
}

.testimonial-rating {
    font-size: 1.2rem;
    color: #FFC107;
    margin-bottom: 10px;
}

.testimonial-author {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
}

.testimonial-location {
    font-size: 1rem;
    color: var(--gray);
}

.swiper-slide {
    height: auto;
    display: flex;
    align-items: stretch; /* Ensure all slides have same height */
}

.testimonial-slider .swiper-slide {
    height: auto;
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background-color: #ccc;
    opacity: 0.8;
    transition: background-color 0.3s ease;
}

.swiper-pagination-bullet-active {
    background-color: var(--primary);
}

.testimonial-slider-wrapper .swiper-button-next,
.testimonial-slider-wrapper .swiper-button-prev {
    color: var(--primary);
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    margin-top: 0;
}

.testimonial-slider-wrapper .swiper-button-prev {
    left: 0;
}

.testimonial-slider-wrapper .swiper-button-next {
    right: 0;
}

.testimonial-slider-wrapper .swiper-button-next:hover,
.testimonial-slider-wrapper .swiper-button-prev:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 20px rgba(0, 102, 204, 0.3);
}

.testimonial-slider-wrapper .swiper-button-next:after,
.testimonial-slider-wrapper .swiper-button-prev:after {
    font-size: 20px;
    font-weight: 900;
}

/* Specialties */
.specialties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.specialty-card {
    background: white;
    border-radius: 15px;
    padding: 30px 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.specialty-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 102, 204, 0.15);
}

.specialty-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.specialty-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.specialty-card ul {
    list-style: none;
    text-align: left;
    padding-left: 20px;
}

.specialty-card ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.specialty-card ul li:before {
    content: "•";
    color: var(--secondary);
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

/* Hospitals */
.hospitals {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    color: white;
    padding: 80px 0;
}

.hospitals .section-title h2,
.hospitals .section-title p {
    color: white;
}

.hospitals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.hospital-logo {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    padding: 20px;
    transition: all 0.3s ease;
}

.hospital-logo:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.hospital-logo img {
    max-width: 100%;
    max-height: 70px;
    filter: brightness(0) invert(1);
}

/* Consultation */
.consultation {
    background-color: var(--light);
}

.consult-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
    gap: 40px;
}

.consult-content {
    text-align: center;
    width: 100%;
}

.consult-content h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--dark);
}

.consult-content p {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--gray);
    line-height: 1.7;
}

.consult-content p:last-of-type {
    margin-bottom: 30px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
    list-style: none;
    padding: 0;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    text-align: left;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.contact-item i {
    color: var(--primary);
    font-size: 1.3rem;
    margin-top: 3px;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
}

.contact-item div {
    flex: 1;
    color: var(--dark);
    font-size: 1rem;
    line-height: 1.6;
}

.contact-item a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--secondary);
    text-decoration: underline;
}

.consult-form {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-control:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.2);
}

.form-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 0;
}

.form-buttons .btn {
    width: 100%;
    max-width: 300px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.whatsapp-btn {
    background: #25D366;
    color: white;
    white-space: normal; /* Allow text to wrap */
    display: inline-flex; /* Use flexbox for better alignment */
    align-items: center;
    justify-content: center;
    gap: 8px; /* Space between icon and text */
    text-align: center;
    word-wrap: break-word; /* Allow long words to break */
}

.whatsapp-btn:hover {
    background: #128C7E;
}

.whatsapp-btn i {
    flex-shrink: 0; /* Prevent icon from shrinking */
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 70px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-column h3 {
    font-size: 1.4rem;
    margin-bottom: 25px;
    position: relative;
}

.footer-column h3:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 50px;
    height: 3px;
    background: var(--secondary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.contact-info {
    list-style: none;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.contact-info i {
    margin-right: 15px;
    color: var(--secondary);
    min-width: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--secondary);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: #aaa;
    font-size: 0.9rem;
}

/* ============================================
   HEADER & NAVIGATION STYLES - BOOTSTRAP
   ============================================ */

header {
    margin-bottom: 0;
}

/* Add padding to main content for fixed navbar - dynamic height */
main {
    padding-top: 20px; /* Reduced from 80px for tighter, cleaner look */
}

.navbar {
    padding: 0;
    min-height: auto; /* Changed to auto to accommodate wrapped menu */
}

.navbar > .container,
.navbar > .container-fluid {
    padding: 10px 20px;
    min-height: auto; /* Changed to auto to accommodate wrapped menu */
}

.navbar > .container > .row,
.navbar > .container-fluid > .row {
    min-height: auto; /* Changed to auto to accommodate wrapped menu */
    margin: 0;
    align-items: center !important; /* Vertically center all columns */
}

/* Logo Column - Force vertical center */
.navbar > .container > .row > .col-lg-2,
.navbar > .container > .row > .col-lg-3,
.navbar > .container-fluid > .row > .col-lg-2,
.navbar > .container-fluid > .row > .col-lg-3 {
    display: flex !important;
    align-items: center !important;
    padding: 0 5px 0 0 !important; /* Minimal spacing between logo and menu */
}

.navbar-brand {
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start;
    height: auto; /* Changed from fixed height */
    line-height: normal; /* Changed from fixed line-height */
}

.navbar-brand img {
    max-height: 40px; /* Reduced from 50px to 40px */
    width: auto;
    display: block;
    margin: 0;
    padding: 0;
}

.navbar-toggler {
    border: none;
    padding: 4px 8px;
    align-self: center;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Menu Column - Force vertical center */
.navbar > .container > .row > .col-lg-9,
.navbar > .container > .row > .col-lg-10,
.navbar > .container-fluid > .row > .col-lg-9,
.navbar > .container-fluid > .row > .col-lg-10 {
    display: flex !important;
    align-items: center !important;
    padding: 0 !important;
}

.navbar-collapse {
    display: flex !important;
    align-items: center !important;
    justify-content: center;
    width: 100%;
}

.navbar-nav {
    align-items: center !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px; /* Reduced from 6px to 4px */
    margin: 0 !important;
    padding: 5px 0 !important; /* Added vertical padding to accommodate wrapped rows */
    row-gap: 4px; /* Reduced from 8px to 4px */
    display: flex !important;
    transform: none !important; /* Override any JavaScript transforms */
    line-height: normal; /* Changed from fixed line-height */
}

.navbar-nav .nav-item {
    flex-shrink: 0;
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    height: auto; /* Allow natural height */
}

.navbar-nav .nav-link {
    color: var(--dark) !important;
    font-weight: 400; /* Reduced from 500 to 400 */
    font-size: 12px; /* Reduced from 13px to 12px */
    padding: 6px 12px !important; /* Reduced padding */
    margin: 0 !important;
    transition: all 0.3s ease;
    white-space: nowrap;
    border-radius: 6px;
    display: flex;
    align-items: center;
    line-height: 1.4;
}

.navbar-nav .nav-link:hover {
    color: var(--primary) !important;
    background-color: rgba(0, 102, 204, 0.08);
    transform: translateY(-1px);
}

/* Active/expanded dropdown toggle */
.navbar-nav .nav-link.dropdown-toggle.show {
    color: #009E94 !important; /* Teal color when expanded */
    background-color: rgba(0, 158, 148, 0.1); /* Light teal background */
}

/* Passive navigation highlight for active parent category */
.navbar-nav .nav-link.active-parent-category {
    color: #009E94 !important; /* Teal text */
    font-weight: 600 !important; /* Bold text */
    border-left: 4px solid #009E94 !important; /* Teal left border */
    padding-left: 8px !important; /* Adjust padding to accommodate border */
}

.navbar-toggler {
    border: none;
    padding: 4px 8px;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Bootstrap Dropdown Styling */
.dropdown-menu {
    min-width: 250px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    border-radius: 8px;
    padding: 8px 0;
    border: none;
    border-left: 4px solid #009E94 !important; /* Teal left rail */
    background-color: #e9ecef !important; /* 12% grey background */
    margin-top: 8px;
}

.dropdown-item {
    padding: 10px 20px 10px 25px !important; /* Added 25px left padding for indentation */
    font-size: 14px;
    color: var(--dark);
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    line-height: 1.5;
}

.dropdown-item:hover {
    background-color: var(--light);
    color: var(--primary);
    padding-left: 30px !important; /* Slightly more indentation on hover */
    border-left-color: var(--primary);
}

/* Active dropdown item styling */
.dropdown-item.active {
    background-color: #009E94 !important; /* Teal background for active item */
    color: #fff !important;
    font-weight: 600;
    border-left-color: #0060B6 !important; /* Blue left border */
    padding-left: 30px !important;
}

/* Scrollbar styling for dropdown */
.dropdown-menu::-webkit-scrollbar {
    width: 6px;
}

.dropdown-menu::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 3px;
}

.dropdown-menu::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

/* Search in Nav */
.nav-search {
    margin-left: 10px;
    display: flex;
    align-items: center;
    position: relative;
}

.nav-search .fa-search {
    cursor: pointer;
    font-size: 16px;
    color: var(--dark);
    padding: 10px;
}

.nav-search .search-box {
    display: none;
    position: absolute;
    top: 105%;
    right: 0;
    background: white;
    padding: 5px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.nav-search .search-box input {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 8px 12px;
    outline: none;
}

.nav-search.active .search-box {
    display: block;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    z-index: 1001;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--dark);
    transition: all 0.3s ease;
}

.menu-toggle.active .bar:nth-child(2) { 
    opacity: 0; 
}

.menu-toggle.active .bar:nth-child(1) { 
    transform: translateY(8px) rotate(45deg); 
}

.menu-toggle.active .bar:nth-child(3) { 
    transform: translateY(-8px) rotate(-45deg); 
}

/* Responsive Navigation */
@media (max-width: 1400px) {
    .nav-links > li > a {
        font-size: 12px;
        padding: 10px 8px;
    }
}

@media (max-width: 1200px) {
    .nav-links > li > a {
        font-size: 11px;
        padding: 8px 6px;
    }
    
    .dropdown-menu {
        min-width: 220px;
    }
}

/* Desktop: Using Bootstrap grid for perfect alignment */
@media (min-width: 992px) {
    .navbar {
        padding: 0;
        min-height: 70px;
    }
    
    .navbar > .container,
    .navbar > .container-fluid {
        padding: 10px 20px;
        min-height: auto; /* Allow dynamic height for wrapped menu */
    }
    
    .navbar > .container > .row,
    .navbar > .container-fluid > .row {
        min-height: auto; /* Allow dynamic height for wrapped menu */
        align-items: center !important;
    }
    
    /* Logo column - vertically centered */
    .navbar > .container > .row > .col-lg-2,
    .navbar > .container > .row > .col-lg-3,
    .navbar > .container-fluid > .row > .col-lg-2,
    .navbar > .container-fluid > .row > .col-lg-3 {
        display: flex !important;
        align-items: center !important;
        padding: 0 5px 0 0 !important; /* Minimal spacing */
    }
    
    .navbar-brand {
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start;
    }
    
    .navbar-brand img {
        display: block;
        margin: 0;
        padding: 0;
        max-height: 50px !important; /* Reduced logo size */
    }
    
    .navbar-toggler {
        display: none;
    }
    
    /* Menu column - vertically centered */
    .navbar > .container > .row > .col-lg-9,
    .navbar > .container > .row > .col-lg-10,
    .navbar > .container-fluid > .row > .col-lg-9,
    .navbar > .container-fluid > .row > .col-lg-10 {
        display: flex !important;
        align-items: center !important;
        justify-content: center;
        padding: 0 !important;
    }
    
    .navbar-collapse {
        display: flex !important;
        justify-content: center;
        align-items: center !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100%;
    }
    
    .navbar-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px; /* Reduced gap */
        row-gap: 4px; /* Reduced row gap */
        align-items: center !important;
        margin: 0 !important;
        padding: 5px 0 !important; /* Added vertical padding for wrapped rows */
        display: flex !important;
        transform: none !important; /* Override any JavaScript transforms */
    }
    
    .navbar-nav .nav-item {
        display: flex !important;
        align-items: center !important;
        margin: 0 !important;
        padding: 0;
    }
    
    .navbar-nav .nav-link {
        display: flex !important;
        align-items: center !important;
        margin: 0 !important;
        padding: 6px 12px !important; /* Reduced padding */
        font-weight: 600 !important; /* Increased font weight */
        font-size: 12px !important; /* Reduced font size */
    }
}

/* Mobile Menu Styling */
@media (max-width: 991.98px) {
    .navbar > .container > .row,
    .navbar > .container-fluid > .row {
        align-items: center !important;
        margin: 0 !important;
    }
    
    /* Logo column on mobile */
    .navbar > .container > .row > .col-12:first-child,
    .navbar > .container-fluid > .row > .col-12:first-child {
        padding: 0 15px !important;
        height: auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        order: 1; /* Logo row comes first */
    }
    
    /* Ensure toggle button is visible and functional on mobile */
    .navbar-toggler.d-lg-none {
        display: block !important;
        z-index: 1050;
    }
    
    .navbar-brand {
        height: auto !important;
        line-height: normal !important;
    }
    
    .navbar-brand img {
        max-height: 75px !important;
        height: auto !important;
    }
    
    .navbar-toggler {
        margin: 0 !important;
        padding: 4px 8px;
    }
    
    /* Menu column on mobile - full width, positioned below logo */
    .navbar > .container > .row > .col-12.col-lg-10,
    .navbar > .container > .row > .col-12.col-lg-9,
    .navbar > .container-fluid > .row > .col-12.col-lg-10,
    .navbar > .container-fluid > .row > .col-12.col-lg-9 {
        padding: 0 15px !important;
        height: auto !important;
        display: block !important;
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
        margin-top: 0 !important;
        order: 3; /* Ensure it comes after logo/toggle row */
    }
    
    /* Ensure menu is hidden by default on mobile - Bootstrap collapse handles this */
    .navbar-collapse {
        margin-top: 0 !important;
        max-height: calc(100vh - 70px) !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        width: 100% !important;
        background: white !important;
        box-shadow: none !important;
        z-index: auto !important;
        height: auto !important;
        padding: 0 !important;
    }
    
    /* Bootstrap handles show/hide, but ensure it's hidden by default on mobile */
    .navbar-collapse:not(.show) {
        display: none !important;
    }
    
    /* When menu is expanded (visible) */
    .navbar-collapse.show {
        display: block !important;
    }
    
    /* Prevent menu from showing on page load */
    .navbar-collapse.collapse {
        display: none;
    }
    
    .navbar-collapse.collapse.show {
        display: block !important;
    }
    
    .navbar-nav {
        padding: 10px 0 20px 0 !important;
        flex-wrap: nowrap !important;
        flex-direction: column !important;
        width: 100% !important;
        height: auto !important;
        line-height: normal !important;
        justify-content: flex-start !important;
        gap: 0 !important;
        row-gap: 0 !important;
    }
    
    .navbar-nav .nav-item {
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .navbar-nav .nav-link {
        padding: 15px 20px !important;
        border-bottom: 1px solid #f0f0f0;
        font-size: 14px;
        width: 100% !important;
        height: auto !important;
        line-height: normal !important;
        display: block !important;
        text-align: left !important;
    }
    
    .dropdown-menu {
        position: static !important;
        float: none !important;
        width: 100% !important;
        margin-top: 0 !important;
        background-color: #e9ecef !important; /* 12% grey background */
        border: none !important;
        border-left: 4px solid #009E94 !important; /* Teal left rail */
        box-shadow: none !important;
        border-radius: 0 !important;
    }
    
    .dropdown-item {
        padding: 12px 20px 12px 25px !important; /* 25px left padding for indentation */
        border-left: none !important;
    }
    
    .dropdown-item:hover {
        padding-left: 30px !important; /* Slightly more on hover */
    }
    
    /* Active dropdown item on mobile */
    .dropdown-item.active {
        background-color: #009E94 !important; /* Teal background for active item */
        color: #fff !important;
        font-weight: 600;
        padding-left: 30px !important;
    }
    
    /* Hide search on mobile */
    .nav-item.d-lg-block {
        display: none !important;
    }
}

/* --- STYLES FOR CONDITION LANDING PAGE --- */
.condition-hero {
    background: linear-gradient(rgba(10, 37, 64, 0.8), rgba(10, 37, 64, 0.8)), url('https://images.unsplash.com/photo-1519494026892-80bbd2d6fd0d?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1953&q=80') center/cover no-repeat;
    color: white;
    text-align: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 80px 20px;
    position: relative;
}

.condition-hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.condition-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
}

.condition-hero p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin: 0 auto;
}

.condition-details {
    padding: 100px 0 80px 0;
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
    margin-bottom: 20px;
}

/* Breadcrumb in Hero Section - Non-sticky, transparent background */
.condition-hero .breadcrumb-nav {
    background-color: transparent;
    margin-bottom: 15px;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding: 10px 0;
    display: flex;
    justify-content: center;
}

.condition-hero .breadcrumb {
    justify-content: center;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    background: transparent;
    font-size: 0.95rem;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    display: inline-block;
    padding: 0 12px;
    color: var(--gray);
    font-weight: 400;
}

.breadcrumb-item a {
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--secondary);
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: var(--dark);
    font-weight: 500;
}

/* Breadcrumb in Hero Section - White Text */
.condition-hero .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.9);
}

.condition-hero .breadcrumb-item a:hover {
    color: white;
    text-decoration: underline;
}

/* Category link in breadcrumb - make it look clickable */
.breadcrumb-category-link {
    border-bottom: 1px dashed rgba(255, 255, 255, 0.7) !important;
    cursor: pointer;
    transition: all 0.3s ease;
}

.breadcrumb-category-link:hover {
    border-bottom: 1px dashed white !important;
    color: white !important;
    text-decoration: none !important;
}

.breadcrumb-category-link i {
    margin-right: 5px;
    opacity: 0.9;
}

/* Category Modal Styles */
.list-group-item.active-teal {
    background-color: #009E94 !important;
    color: white !important;
    font-weight: 600;
    border-color: #009E94 !important;
}

.list-group-item.active-teal:hover {
    background-color: #008a82 !important;
    color: white !important;
}

.list-group-item-action:hover {
    background-color: #f8f9fa;
    color: #009E94;
}

.condition-hero .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.6);
}

.condition-hero .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.95);
}

.breadcrumb-item i {
    font-size: 0.9rem;
}

/* Category Badge */
.category-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 25px;
    box-shadow: 0 3px 10px rgba(0, 102, 204, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.3);
}

.category-badge i {
    font-size: 0.85rem;
}

/* Category Badge in Hero Section */
.condition-hero .category-badge {
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
}

.condition-hero .category-badge:hover {
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

/* Quick Links / Table of Contents */
.quick-links-container {
    background: white;
    padding: 25px 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 1px solid #eef2f7;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.04);
}

.quick-links-container h3 {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 20px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    width: 100%;
}

.quick-links-container h3 i {
    color: #009E94;
}

.quick-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.quick-links li {
    margin: 0;
}

.quick-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--dark);
    text-decoration: none;
    padding: 12px 15px;
    border-radius: 8px;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.quick-links a:hover {
    background-color: #e9ecef;
    color: #009E94;
    border-left-color: #009E94;
    transform: translateX(5px);
}

.quick-links a i {
    color: #009E94;
    font-size: 1.1rem;
}

.condition-block {
    background: white;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 50px;
    border: 1px solid #eef2f7;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.04);
    scroll-margin-top: 100px; /* Offset for sticky breadcrumb when scrolling to anchor */
}

.condition-block h2 {
    font-size: 2rem;
    color: var(--dark);
    margin-bottom: 25px;
    padding-bottom: 10px;
    text-align: center;
    position: relative;
}

.condition-block h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background-color: var(--primary);
}

.condition-block h3 {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 20px;
    margin-top: 20px;
    text-align: center;
    width: 100%;
}

.includes-list {
    list-style: none;
    padding-left: 0;
    columns: 2;
    -webkit-columns: 2;
    -moz-columns: 2;
}

.includes-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
}

.includes-list li::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--secondary);
    position: absolute;
    left: 0;
    top: 2px;
}

.treatment-option {
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    background: var(--light);
}

.treatment-option h4 {
    font-size: 1.3rem;
    font-family: 'Montserrat', sans-serif;
    color: var(--primary);
    margin-bottom: 10px;
}

.pros-cons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-top: 20px;
}

.pros-cons-grid h5 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.pros-cons-grid h5 i {
    margin-right: 10px;
}

.advantages h5 { color: var(--success); }
.limitations h5 { color: var(--accent); }

.advantages ul, .limitations ul {
    list-style: none;
    padding-left: 0;
}

.advantages ul li, .limitations ul li {
    padding-left: 22px;
    position: relative;
    margin-bottom: 10px;
}

.advantages ul li::before {
    content: '✓';
    color: var(--success);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.limitations ul li::before {
    content: '✗';
    color: var(--accent);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.cost-table-wrapper {
    overflow-x: auto;
}
.cost-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.cost-table th, .cost-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.cost-table thead {
    background-color: var(--primary);
    color: white;
}

.cost-table tbody tr:nth-child(even) {
    background-color: var(--light);
}

.cost-item small {
    display: block;
    margin-top: 10px;
    color: var(--gray);
    font-style: italic;
}

.other-costs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.other-costs-grid .cost-item {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    border: 1px solid #e9ecef;
}

.other-costs-grid .cost-item h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.other-costs-grid .cost-item i {
    color: var(--primary);
    margin-right: 12px;
}

.other-costs-grid .cost-item p {
    margin-bottom: 5px;
}

/* --- STYLES FOR COST CALCULATOR --- */
/* Calculator Section - Professional Styling */
.calculator-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.calculator-inputs,
.calculator-summary {
    background: white;
    border-radius: 15px;
    padding: 35px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.calculator-inputs:hover,
.calculator-summary:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.calculator-inputs h3,
.calculator-summary h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 25px;
    font-weight: 700;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--light);
}

.form-group-calc {
    margin-bottom: 22px;
}

.form-group-calc:last-of-type {
    margin-bottom: 0;
}

.form-group-calc label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark);
    font-size: 0.95rem;
    font-family: 'Poppins', sans-serif;
}

.form-group-calc select,
.form-group-calc input {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    background: white;
}

.form-group-calc select:focus,
.form-group-calc input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-group-calc select:disabled {
    background: #f5f5f5;
    color: #999;
    cursor: not-allowed;
    border-color: #ddd;
}

.form-group-calc button {
    margin-top: 10px;
    padding: 14px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.summary-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    margin-bottom: 18px;
    color: var(--dark);
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.summary-row:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}

.summary-row span:first-child {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: var(--dark);
}

.summary-row span:first-child i {
    font-size: 1.2rem;
}

.summary-row span:last-child {
    font-weight: 700;
    color: var(--dark);
    font-size: 1.1rem;
}

.summary-box hr {
    border: 0;
    border-top: 2px solid #e0e0e0;
    margin: 25px 0;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    padding: 20px;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.05) 0%, rgba(0, 167, 157, 0.05) 100%);
    border-radius: 10px;
    margin-top: 10px;
    flex-wrap: nowrap;
    white-space: nowrap;
    gap: 15px;
}

.summary-total span:first-child {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    flex-shrink: 0;
}

.summary-total span:first-child i {
    font-size: 1.4rem;
    color: var(--primary);
    flex-shrink: 0;
}

.summary-total span:last-child {
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 800;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: auto;
}

/* --- RESPONSIVE STYLES --- */
@media (max-width: 1200px) {
    .steps-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .logo {
        margin-top: 0;
    }

    .logo img {
        max-height: 40px;
    }
    .consult-container {
        grid-template-columns: 1fr;
    }
    .section {
        padding: 80px 0;
    }
    .section-title {
        margin-bottom: 60px;
    }
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .contact-btn, .nav-search { display: none; }

    .steps-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .includes-list {
        columns: 1;
        -webkit-columns: 1;
        -moz-columns: 1;
    }
    
    /* --- Calculator Responsive --- */
    .calculator-container {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 0;
    }
    
    .calculator-inputs,
    .calculator-summary {
        padding: 25px 20px;
    }
    
    .calculator-inputs h3,
    .calculator-summary h3 {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }
    
    .form-group-calc {
        margin-bottom: 18px;
    }
    
    .form-group-calc label {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }
    
    .form-group-calc select,
    .form-group-calc input {
        padding: 12px 14px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .summary-box {
        padding: 25px 20px;
        margin-top: 0;
    }
    
    .summary-row {
        font-size: 0.95rem;
        margin-bottom: 15px;
        padding: 10px 0;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .summary-row span:first-child {
        font-size: 0.95rem;
    }
    
    .summary-row span:last-child {
        font-size: 1rem;
    }
    
    .summary-total {
        font-size: 1.1rem;
        padding: 15px;
        flex-wrap: nowrap;
        gap: 10px;
        white-space: nowrap;
    }
    
    .summary-total span:first-child {
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .summary-total span:last-child {
        font-size: 1.3rem;
        white-space: nowrap;
        flex-shrink: 0;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0; /* Reduced padding for mobile */
    }
    
    .section-title {
        margin-bottom: 40px; /* Reduced margin for mobile */
    }
    
    .hero {
        min-height: 70vh;
        padding: 80px 20px 50px;
        background-attachment: scroll; /* Better performance on mobile */
    }
    
    .hero h1 {
        font-size: 2.2rem;
        letter-spacing: -0.3px;
    }
    
    .hero p {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }
    
    .hero .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero .btn {
        width: 100%;
        max-width: 350px;
        padding: 14px 30px;
        font-size: 1rem;
    }
    
    /* Calculator Mobile Styles */
    .calculator-container {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        padding: 0 10px !important;
        max-width: 100% !important;
    }
    
    .calculator-inputs,
    .calculator-summary {
        padding: 20px 15px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .calculator-inputs h3,
    .calculator-summary h3 {
        font-size: 1.2rem !important;
        margin-bottom: 18px !important;
    }
    
    .form-group-calc {
        margin-bottom: 16px !important;
    }
    
    .form-group-calc label {
        font-size: 0.9rem !important;
        margin-bottom: 6px !important;
    }
    
    .form-group-calc select,
    .form-group-calc input {
        padding: 12px !important;
        font-size: 16px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .form-group-calc button {
        width: 100% !important;
        padding: 14px 20px !important;
        font-size: 16px !important;
    }
    
    .summary-box {
        padding: 20px 15px !important;
    }
    
    .summary-row {
        font-size: 0.9rem !important;
        margin-bottom: 12px !important;
        padding: 10px 0 !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 5px !important;
    }
    
    .summary-row span:first-child {
        font-size: 0.9rem !important;
        width: 100% !important;
    }
    
    .summary-row span:last-child {
        font-size: 1rem !important;
        width: 100% !important;
        text-align: right !important;
        font-weight: 700 !important;
    }
    
    .summary-box hr {
        margin: 20px 0 !important;
    }
    
    .summary-total {
        font-size: 1rem !important;
        padding: 15px 12px !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
        white-space: normal !important;
    }
    
    .summary-total span:first-child {
        font-size: 1rem !important;
        width: 100% !important;
    }
    
    .summary-total span:last-child {
        font-size: 1.4rem !important;
        width: 100% !important;
        text-align: right !important;
    }
    
    /* Ensure container doesn't overflow */
    #calculator .container {
        padding: 0 15px !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
    
    #calculator .section-title {
        padding: 0 10px !important;
    }
    
    #calculator .section-title h2 {
        font-size: 1.8rem !important;
    }
    
    #calculator .section-title p {
        font-size: 1rem !important;
    }
    
    .consult-container {
        gap: 30px;
        padding: 0 15px;
    }
    
    .consult-content h2 {
        font-size: 1.8rem;
    }
    
    .consult-content p {
        font-size: 1rem;
    }
    
    .contact-info {
        gap: 15px;
    }
    
    .contact-item {
        padding: 15px;
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .contact-item i {
        margin-top: 0;
        margin-bottom: 10px;
    }
    
    .contact-item div {
        text-align: center;
    }
    
    .consult-form {
        padding: 30px 20px;
    }
    
    .form-buttons .btn {
        max-width: 100%;
    }
    
    /* Modal Responsive Styles */
    .dropdown-page {
        padding: 10px;
    }
    
    .dropdown-content {
        margin: 20px auto;
        border-radius: 15px;
        max-width: 100%;
    }
    
    .dropdown-header {
        padding: 30px 20px 25px 20px;
    }
    
    .dropdown-header h2 {
        font-size: 1.6rem;
        padding-right: 40px; /* Space for close button */
    }
    
    .dropdown-body {
        padding: 30px 20px;
    }
    
    .dropdown-body p {
        font-size: 1rem;
        line-height: 1.7;
        text-align: left;
    }
    
    .dropdown-close {
        top: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
    }
    
    .dropdown-close i {
        font-size: 1rem;
    }
    
    .dropdown-body .highlight-text {
        padding: 15px;
        margin-top: 20px;
    }
    
    .section {
        padding: 60px 0; /* Uniform spacing for mobile */
    }
    
    .section-title {
        margin-bottom: 40px; /* Uniform margin for mobile */
    }
    
    .section-title h2 {
        font-size: 2rem;
    }

    .steps-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .step-card {
        padding: 25px 15px;
    }
    
    .benefits {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .benefit-card {
        padding: 25px 20px;
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .benefit-icon {
        margin-bottom: 15px;
    }
    
    .specialties-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .specialty-card {
        padding: 25px 15px;
    }

    body {
        line-height: 1.5;
    }

    .testimonial-slider-wrapper {
        padding: 0 60px; /* Reduced padding for mobile */
    }
    
    .testimonial-slider {
        padding: 0;
    }
    
    .testimonial-card {
        min-height: 250px; /* Slightly reduced for mobile */
        padding: 30px 20px;
    }

    .testimonial-slider-wrapper .swiper-button-next,
    .testimonial-slider-wrapper .swiper-button-prev {
        width: 40px;
        height: 40px;
    }
    
    .testimonial-slider-wrapper .swiper-button-prev {
        left: 10px;
    }
    
    .testimonial-slider-wrapper .swiper-button-next {
        right: 10px;
    }
    
    .testimonial-slider-wrapper .swiper-button-next:after,
    .testimonial-slider-wrapper .swiper-button-prev:after {
        font-size: 16px;
    }

    .condition-details {
        padding: 60px 0;
    }

    .container {
        padding: 0 15px;
    }

    .condition-block {
        padding: 20px;
    }
    
    /* Ensure center-btn container has full width on mobile */
    .condition-block .center-btn {
        width: 100%;
        padding: 0;
        margin-left: 0;
        margin-right: 0;
    }

    .condition-hero h1 {
        font-size: 2.2rem;
        line-height: 1.2;
    }

    .condition-hero p {
        font-size: 1.1rem;
    }

    .condition-block h2 {
        font-size: 1.8rem;
        text-align: center;
    }
    
    .condition-hero h1 {
        text-align: center;
    }
    
    .condition-hero h2 {
        text-align: center;
    }
    
    /* Center Quick Links and Includes Headers on Mobile */
    .quick-links-container h3 {
        text-align: center;
        justify-content: center;
    }
    
    .condition-block h3 {
        text-align: center;
    }
    
    /* Breadcrumb Mobile Styles */
    .condition-hero .breadcrumb-nav {
        background-color: transparent;
        margin-bottom: 15px;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        padding: 10px 0;
    }
    
    .breadcrumb {
        font-size: 0.85rem;
    }
    
    .breadcrumb-item + .breadcrumb-item::before {
        padding: 0 8px;
    }
    
    .breadcrumb-item a {
        gap: 4px;
    }
    
    .breadcrumb-item i {
        font-size: 0.8rem;
    }
    
    .category-badge {
        padding: 8px 16px;
        font-size: 0.85rem;
        margin-bottom: 20px;
    }
    
    .category-badge i {
        font-size: 0.8rem;
    }

    .pros-cons-grid {
        grid-template-columns: 1fr;
    }

    .treatment-option {
        padding: 20px;
    }

    .treatment-option h4 {
        font-size: 1.2rem;
    }

    .other-costs-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .other-costs-grid .cost-item {
        padding: 20px 15px;
    }

    .other-costs-grid .cost-item h3 {
        font-size: 1.05rem;
        margin-bottom: 12px;
    }

    .other-costs-grid .cost-item i {
        font-size: 1.2rem;
        margin-right: 10px;
    }

    .cost-table th, .cost-table td {
        padding: 12px 10px;
        font-size: 0.9rem;
    }
    
    /* Quick Links Mobile Styles */
    .quick-links-container {
        padding: 20px 15px;
        margin-bottom: 25px;
    }
    
    .quick-links-container h3 {
        font-size: 1.3rem;
        margin-bottom: 15px;
        margin-top: 20px;
        text-align: center;
        justify-content: center;
    }
    
    .quick-links {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .quick-links a {
        padding: 10px 12px;
        font-size: 0.95rem;
    }
    
    .condition-block {
        scroll-margin-top: 80px; /* Adjust for mobile sticky breadcrumb */
    }
}

@media (max-width: 576px) {
    /* Breadcrumb Mobile Polish - Prevent awkward wrapping */
    .breadcrumb {
        font-size: 13px;
        flex-wrap: nowrap;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Hide scrollbar for a cleaner look */
    .breadcrumb::-webkit-scrollbar {
        display: none;
    }
    
    /* Ensure all headers are centered on very small screens */
    .condition-hero h1,
    .condition-hero h2,
    .condition-block h2,
    .condition-block h3,
    .quick-links-container h3 {
        text-align: center !important;
    }
    
    /* Remove any potential negative margins on containers */
    .container,
    .container-fluid {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* WhatsApp button fixes for very small screens */
    .condition-block .whatsapp-btn,
    .condition-block .btn-secondary.whatsapp-btn,
    .hero .btn,
    .condition-block .btn {
        width: 100% !important;
        padding: 12px 15px !important;
        font-size: 15px !important;
        margin-bottom: 10px;
        white-space: normal !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px;
    }
    
    .center-btn {
        width: 100% !important;
        margin-top: 30px;
        margin-bottom: 20px;
        padding: 0 15px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
        display: flex;
        align-items: center;
        width: 100%;
    }
    
    /* WhatsApp button in condition blocks - mobile styles */
    .condition-block .whatsapp-btn,
    .condition-block .btn-secondary.whatsapp-btn {
        width: 100%;
        padding: 12px 15px;
        font-size: 15px;
        margin-bottom: 10px;
        white-space: normal;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }
    
    /* Center-btn container on mobile */
    .center-btn {
        width: 100%;
        margin-top: 30px;
        margin-bottom: 20px;
    }
    
    .form-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .form-buttons .btn {
        width: 100%;
        text-align: center;
    }
    
    /* Calculator Extra Small Mobile */
    .calculator-container {
        gap: 15px !important;
        padding: 0 5px !important;
    }
    
    .calculator-inputs,
    .calculator-summary {
        padding: 15px 12px !important;
    }
    
    .calculator-inputs h3,
    .calculator-summary h3 {
        font-size: 1.1rem !important;
        margin-bottom: 15px !important;
    }
    
    .form-group-calc {
        margin-bottom: 14px !important;
    }
    
    .form-group-calc label {
        font-size: 0.85rem !important;
    }
    
    .summary-box {
        padding: 15px 12px !important;
    }
    
    .summary-row {
        font-size: 0.85rem !important;
        margin-bottom: 10px !important;
    }
    
    .summary-row span:first-child i {
        font-size: 1rem !important;
    }
    
    .summary-total {
        font-size: 0.95rem !important;
        padding: 12px 10px !important;
    }
    
    .summary-total span:last-child {
        font-size: 1.2rem !important;
    }
    
    #calculator .section-title h2 {
        font-size: 1.6rem !important;
    }

    .benefit-card {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .benefit-content {
        text-align: center;
    }

    .testimonial-card {
        padding: 25px;
        min-height: 220px;
    }

    .testimonial-card p {
        font-size: 1rem;
    }
    
    .testimonial-slider-wrapper {
        padding: 0 50px;
    }
    
    .testimonial-slider-wrapper .swiper-button-next,
    .testimonial-slider-wrapper .swiper-button-prev {
        width: 35px;
        height: 35px;
    }
    
    .testimonial-slider-wrapper .swiper-button-prev {
        left: 5px;
    }
    
    .testimonial-slider-wrapper .swiper-button-next {
        right: 5px;
    }
}

@media (max-width: 400px) {
    h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 12px 18px;
        font-size: 14px;
        white-space: nowrap;
    }
    
    .benefits {
        grid-template-columns: 1fr;
    }
    
    .benefit-card {
        padding: 20px;
    }
    
    .benefit-content h3 {
        font-size: 1.2rem;
    }
    
    .benefit-content p {
        font-size: 0.9rem;
    }
}

/* --- Styling for the Hospital Contact Note --- */
.hospital-contact-note {
    background-color: var(--light);
    border-left: 4px solid var(--primary);
    padding: 15px 20px;
    margin-top: 25px;
    border-radius: 0 8px 8px 0;
    font-weight: 500;
}