/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Poppins:wght@300;400;500;600&display=swap');

/* --- CSS Variables --- */
:root {
    --primary-color: #5F9EA0;
    /* CadetBlue - Gentle Teal */
    --secondary-color: #8FBC8F;
    /* DarkSeaGreen - Nature Green */
    --accent-color: #FFA07A;
    /* LightSalmon - Soft Warmth */
    --dark-text: #2F4F4F;
    /* DarkSlateGray */
    --light-text: #555555;
    --background-color: #F8FBF8;
    /* Very light minty white */
    --white: #FFFFFF;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;

    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.1);

    --transition: all 0.3s ease;

    --radius-md: 12px;
    --radius-lg: 20px;
}

/* --- Global Reset & Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--background-color);
    color: var(--light-text);
    line-height: 1.7;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--dark-text);
    margin-bottom: 1rem;
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    width: 100%;
    color: var(--primary-color);
}

.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem auto;
    font-size: 1.1rem;
}

.center-btn {
    text-align: center;
    margin-top: 3rem;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 500;
    font-family: var(--font-body);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(95, 158, 160, 0.3);
}

.btn-primary:hover {
    background-color: #4A7A7C;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(143, 188, 143, 0.3);
}

.btn-secondary:hover {
    background-color: #76A076;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-outline-dark {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-dark:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* --- Header --- */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1350px;
    /* Increased width to separate logo and nav */
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    /* Reduced size */
    font-weight: 700;
    color: var(--primary-color);
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-list a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--dark-text);
}

.nav-list a:hover {
    color: var(--primary-color);
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--dark-text);
    cursor: pointer;
}

/* --- Hero Section --- */
.hero {
    height: 90vh;
    /* Reduced height to fit viewport better on laptops */
    background-image: url('hero-bg.png');
    /* Use local image */
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    color: var(--white);
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(47, 79, 79, 0.6), rgba(95, 158, 160, 0.5));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.hero h1 {
    font-size: 3rem;
    /* Reduced slightly */
    margin-bottom: 20px;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.hero-btns {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- Section 1: About --- */
.about-section {
    background-color: var(--white);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    border: 5px solid var(--white);
    max-height: 500px;
    object-fit: cover;
    width: 100%;
}

.about-text h2 {
    color: var(--primary-color);
    font-size: 2.2rem;
}

.about-text h3 {
    margin-top: 2rem;
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.check-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.check-list i {
    color: var(--secondary-color);
}

/* --- Section 2: Specializations --- */
.specializations-section {
    background-color: var(--background-color);
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    border-top: 4px solid var(--secondary-color);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.card h3 {
    font-size: 1.4rem;
}

.card ul {
    margin-top: 15px;
}

.card ul li {
    margin-bottom: 8px;
    font-size: 0.95rem;
    position: relative;
    padding-left: 15px;
}

.card ul li::before {
    content: "•";
    color: var(--secondary-color);
    position: absolute;
    left: 0;
}

.note {
    font-size: 0.9rem;
    margin-top: 15px;
    font-style: italic;
    color: #777;
    background: #f9f9f9;
    padding: 10px;
    border-radius: 8px;
}

/* --- Section 3: Why Homeopathy Works --- */
.why-section {
    background-color: var(--primary-color);
    color: var(--white);
}

.why-section .section-title,
.why-section h3 {
    color: var(--white);
}

.why-section .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.why-col ul li {
    margin-bottom: 15px;
    position: relative;
    padding-left: 25px;
    font-size: 1.1rem;
}

.why-col ul li::before {
    content: "✔";
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

/* --- Section 4: Conditions Treated --- */
.conditions-section {
    background-color: var(--white);
    text-align: center;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    max-width: 900px;
    margin: 0 auto;
}

.tag {
    background-color: #EDF7F6;
    color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition);
}

.tag:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* --- Section 5: Process --- */
.process-section {
    background-color: #F0F8FF;
    /* AliceBlue */
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    text-align: center;
}

.step-card {
    background: var(--white);
    padding: 30px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    position: relative;
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: var(--secondary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px auto;
    font-family: var(--font-heading);
}

/* --- Section 6: Testimonials --- */
.testimonials-section {
    background-color: var(--white);
}

.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: #FFFAFA;
    /* Snow */
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    text-align: center;
    border: 1px solid #eee;
}

.testimonial-card p {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #444;
}

.stars {
    color: gold;
}

/* --- Section 7: FAQ --- */
.faq-section {
    background-color: var(--background-color);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    border-left: 4px solid var(--primary-color);
}

.faq-item h4 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* --- Section 8: Contact --- */
.contact-section {
    background-color: var(--white);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info {
    padding-right: 30px;
}

.info-item {
    margin-bottom: 30px;
}

.info-item h3 {
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.contact-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.map-placeholder iframe {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}

/* --- Footer --- */
.footer {
    background-color: var(--dark-text);
    color: var(--white);
    text-align: center;
    padding: 30px 0;
}

/* --- Footer Social Links --- */
.social-links {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-icon {
    font-size: 1.5rem;
    color: var(--white);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
}

.social-icon:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
    color: var(--white);
}


/* --- Responsive Layout --- */
@media (max-width: 768px) {
    .header-container {
        /* Keep logo and toggle in a row */
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0 10px;
    }

    .logo {
        font-size: 1.2rem;
    }

    .mobile-menu-toggle {
        display: block;
        /* Show hamburger button */
    }

    /* Start nav hidden/collapsed */
    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        padding: 20px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        display: none;
        /* Hidden by default */
        flex-direction: column;
        border-top: 1px solid #eee;
    }

    .nav.nav-active {
        display: flex;
        /* Show when active class added via JS */
    }

    .nav-list {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        width: 100%;
    }

    .nav-list li {
        width: 100%;
    }

    .nav-list a {
        display: block;
        padding: 10px;
        font-size: 1rem;
    }

    /* Hero Section Mobile Adjustments */
    .hero {
        height: auto;
        /* Allow height to grow with content */
        min-height: 100vh;
        /* Ensure it covers screen */
        padding: 120px 0 60px 0;
        /* Add top padding for header and bottom for spacing */
    }

    .hero-content {
        padding: 0 15px;
        /* Ensure check padding */
    }

    .hero h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .about-container,
    .why-grid,
    .contact-container {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 40px 0;
        /* Slightly reduced padding */
    }

    .order-2 {
        order: 2;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        gap: 15px;
    }

    .btn {
        width: 100%;
        text-align: center;
        padding: 12px 20px;
        /* Ensure comfortable touch target but not massive */
    }

    .about-image img {
        max-height: 300px;
        /* Reduce image height on mobile */
    }
}

/* --- Modal Styles --- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 30px;
    border: 1px solid #888;
    width: 90%;
    max-width: 500px;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close:hover,
.close:focus {
    color: var(--primary-color);
    text-decoration: none;
    cursor: pointer;
}

.modal h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark-text);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--radius-md);
    box-sizing: border-box;
    /* Make sure padding doesn't affect width */
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(95, 158, 160, 0.1);
}

.btn-block {
    width: 100%;
    margin-top: 10px;
    border: none;
    font-size: 1.1rem;
}

/* --- Loading Animation Styles --- */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--white);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: opacity 0.5s ease-out, visibility 0.5s;
}

.loader-hidden {
    opacity: 0;
    visibility: hidden;
}

/* Form-to-Doctor Morph Loader (Consultation Process) */
.morph-loader {
    width: 100px;
    height: 100px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.morph-icon-wrapper {
    font-size: 3.5rem;
    position: relative;
    /* Slide Animation */
    animation: gentle-slide 3s ease-in-out infinite;
}

.icon-form,
.icon-doctor {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.icon-form {
    color: #1976D2;
    /* Blue Form */
    animation: morph-out 3s ease-in-out infinite;
}

.icon-doctor {
    color: #2E7D32;
    /* Green Doctor */
    opacity: 0;
    animation: morph-in 3s ease-in-out infinite;
}

@keyframes gentle-slide {
    0% {
        transform: translateX(-30px);
    }

    50% {
        transform: translateX(30px);
    }

    100% {
        transform: translateX(-30px);
    }
}

@keyframes morph-out {

    0%,
    40% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

    /* Visible start */
    45%,
    95% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }

    /* Hidden mid-end */
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes morph-in {

    0%,
    40% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }

    /* Hidden start */
    45%,
    95% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

    /* Visible mid-end */
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
}

/* Heartbeat ECG Animation */
.heartbeat-container {
    width: 300px;
    height: 150px;
    position: relative;
    overflow: hidden;
}

.ecg-line {
    fill: none;
    stroke: var(--primary-color);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: dash 2s linear forwards infinite;
}

@keyframes dash {
    to {
        stroke-dashoffset: 0;
    }
}

/* Stethoscope Pulse Animation */
.stethoscope-container {
    position: relative;
    width: 150px;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.stethoscope-icon {
    font-size: 6rem;
    color: var(--primary-color);
    animation: pulse-steth 1s infinite ease-in-out;
}

@keyframes pulse-steth {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.loading-text {
    margin-top: 20px;
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-size: 1.2rem;
    letter-spacing: 1px;
    animation: blink 1.5s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Healing Body Animation */
.healing-body-container {
    width: 120px;
    height: 200px;
    position: relative;
    margin-bottom: 20px;
}

.body-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.body-outline {
    fill: none;
    stroke: #555;
    /* Dark gray for visibility */
    stroke-width: 3;
}

.body-filled {
    fill: var(--primary-color);
    stroke: none;
}

/* Mask Animation for Fill */
.fill-mask-rect {
    y: 200;
    height: 200;
    fill: white;
    animation: fill-body 3s ease-in-out forwards;
}

@keyframes fill-body {
    0% {
        y: 200;
    }

    100% {
        y: 0;
    }
}

/* Organs */
.organ {
    fill: #ffeb3b;
    /* Bright Yellow */
    opacity: 0;
    filter: drop-shadow(0 0 5px orange);
    animation: organ-glow 0.5s ease-out forwards;
}

@keyframes organ-glow {
    0% {
        opacity: 0;
        transform: scale(0.5);
        transform-box: fill-box;
        transform-origin: center;
    }

    100% {
        opacity: 1;
        transform: scale(1.5);
        transform-box: fill-box;
        transform-origin: center;
    }
}

/* Staggered Delays */
.knee-left {
    animation-delay: 0.5s;
}

.knee-right {
    animation-delay: 0.5s;
}

.stomach {
    animation-delay: 1.5s;
}

.heart {
    animation-delay: 2.2s;
}

.brain {
    animation-delay: 2.8s;
}

/* Paediatric Page Specifics (Global reusables) */
.bg-pastel-blue {
    background-color: #E3F2FD;
}

.bg-pastel-yellow {
    background-color: #FFF9C4;
}

.bg-pastel-pink {
    background-color: #FCE4EC;
}

.bg-pastel-green {
    background-color: #E8F5E9;
}

.paediatric-hero {
    background-color: #E0F7FA;
    /* User requested background image - Reduced overlay for visibility */
    background: linear-gradient(rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.3)), url('./Paediatric.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 85vh;
    display: flex;
    align-items: center;
    text-align: center;
    padding-top: 100px;
    position: relative;
    box-shadow: inset 0 -50px 50px -50px rgba(255, 255, 255, 1);
}



/* Teddy Bear Animation (Improved) */
.teddy-container {
    width: 160px;
    height: 200px;
    position: relative;
    margin-bottom: 20px;
}

.teddy-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

/* Colors */
.fur-primary {
    fill: #D98E56;
}

/* Softer Brown */
.fur-light {
    fill: #E6B386;
}

/* Light Tan for snout/ears */
.nose {
    fill: #4E342E;
}

.eye-base {
    fill: #333;
}

.eye-shine {
    fill: #FFF;
    opacity: 0.8;
}

.cheek {
    fill: #FFCDD2;
    opacity: 0.6;
}

/* Blush */

.coat-base {
    fill: #F5F5F5;
    stroke: #DDD;
    stroke-width: 1;
}

.coat-detail {
    fill: #E0E0E0;
}

.coat-btn {
    fill: #B0BEC5;
}

.steth-cord {
    fill: none;
    stroke: #37474F;
    stroke-width: 3.5;
    stroke-linecap: round;
}

.steth-metal {
    fill: #CFD8DC;
    stroke: #90A4AE;
    stroke-width: 1;
}

/* Animations */
.teddy-arm-wave {
    transform-box: fill-box;
    transform-origin: 10% 90%;
    /* Pivot at shoulder connection */
    animation: cute-wave 1.5s ease-in-out infinite;
}

.teddy-head {
    transform-origin: center 60px;
    animation: head-tilt 3s ease-in-out infinite;
}

.steth-piece {
    animation: gentle-bounce 2s ease-in-out infinite;
    transform-origin: center;
    transform-box: fill-box;
}

.blink-eyes {
    animation: blink-anim 4s infinite;
    transform-origin: center;
    transform-box: fill-box;
}

@keyframes cute-wave {

    0%,
    100% {
        transform: rotate(-5deg);
    }

    50% {
        transform: rotate(25deg);
    }
}

@keyframes head-tilt {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-3deg);
    }

    75% {
        transform: rotate(3deg);
    }
}

@keyframes gentle-bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

/* Internal Linking Section (About Page) */
.link-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* CTA Section Responsiveness */
.center-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 25px;
}

@media (max-width: 768px) {
    .center-btn {
        flex-direction: column;
        width: 100%;
    }

    .center-btn .btn {
        width: 100%;
        max-width: 350px;
        /* Prevent overly wide buttons on tablets */
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0 !important;
        /* Override any lingering margins */
    }
}

/* Paediatric Hero Mobile Optimization */
@media (max-width: 768px) {
    .paediatric-hero {
        background-size: contain !important;
        background-position: center top !important;
        height: auto !important;
        min-height: 50vh !important;
        /* Allow it to shrink to fit image */
        padding-top: 100px;
        /* Keep space for navbar */
        align-items: flex-start;
        /* Move text nicely if needed */
    }
}

.link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
}

.link-card i {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
    transition: color 0.3s;
}

.link-card:hover i {
    color: var(--primary-color);
}

.link-card h4 {
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
    color: #444;
}

@keyframes blink-anim {

    0%,
    45%,
    55%,
    100% {
        transform: scaleY(1);
    }

    50% {
        transform: scaleY(0.1);
    }
}

/* Flower Bloom Animation (Women's Health) */
.flower-loader {
    width: 120px;
    height: 140px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.flower-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.petal {
    fill: #FF80AB;
    /* Vibrant Pink */
    stroke: #C2185B;
    /* Dark Pink Stroke */
    stroke-width: 2;
    /* Thicker stroke */
    opacity: 1;
    transform-box: fill-box;
    transform-origin: center bottom;
    transition: all 0.5s ease;
}

.petal-center {
    fill: #F8BBD0;
    stroke: #E91E63;
}

.stem {
    fill: none;
    stroke: #43A047;
    /* Darker Green */
    stroke-width: 5;
    stroke-linecap: round;
}

.leaf {
    fill: #66BB6A;
    stroke: #2E7D32;
    stroke-width: 2;
    transform-box: fill-box;
    transform-origin: right bottom;
}

/* Animation Classes */
.bloom-petal-1 {
    animation: bloom-p1 4s ease-in-out infinite;
}

.bloom-petal-2 {
    animation: bloom-p2 4s ease-in-out infinite;
}

.bloom-petal-3 {
    animation: bloom-p3 4s ease-in-out infinite;
}

.bloom-petal-4 {
    animation: bloom-p4 4s ease-in-out infinite;
}

/* Center Bud */
.grow-stem {
    animation: grow-up 4s ease-in-out infinite;
}

.grow-leaf-l {
    animation: leaf-left 4s ease-in-out infinite;
}

.grow-leaf-r {
    animation: leaf-right 4s ease-in-out infinite;
    transform-origin: left bottom;
}

@keyframes grow-up {
    0% {
        stroke-dasharray: 0 100;
        opacity: 0;
    }

    15% {
        stroke-dasharray: 100 0;
        opacity: 1;
    }

    85% {
        stroke-dasharray: 100 0;
        opacity: 1;
    }

    100% {
        stroke-dasharray: 100 0;
        opacity: 0;
    }
}

@keyframes bloom-p1 {

    /* Left Petal */
    0%,
    20% {
        transform: scale(0) rotate(0deg);
        opacity: 0;
    }

    40%,
    80% {
        transform: scale(1) rotate(-35deg);
        opacity: 1;
    }

    100% {
        transform: scale(0) rotate(0deg);
        opacity: 0;
    }
}

@keyframes bloom-p2 {

    /* Right Petal */
    0%,
    20% {
        transform: scale(0) rotate(0deg);
        opacity: 0;
    }

    40%,
    80% {
        transform: scale(1) rotate(35deg);
        opacity: 1;
    }

    100% {
        transform: scale(0) rotate(0deg);
        opacity: 0;
    }
}

@keyframes bloom-p3 {

    /* Top Petal */
    0%,
    25% {
        transform: scale(0) translateY(10px);
        opacity: 0;
    }

    45%,
    80% {
        transform: scale(1) translateY(-10px);
        opacity: 1;
    }

    100% {
        transform: scale(0) translateY(10px);
        opacity: 0;
    }
}

@keyframes bloom-p4 {

    /* Core/Bud */
    0% {
        transform: scale(0);
        opacity: 0;
    }

    20% {
        transform: scale(0.4);
        opacity: 1;
    }

    40%,
    80% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(0);
        opacity: 0;
    }
}

@keyframes leaf-left {

    0%,
    20% {
        transform: scale(0) rotate(20deg);
    }

    40%,
    80% {
        transform: scale(1) rotate(0deg);
    }

    100% {
        transform: scale(0) rotate(20deg);
    }
}

@keyframes leaf-right {

    0%,
    20% {
        transform: scale(0) rotate(-20deg);
    }

    40%,
    80% {
        transform: scale(1) rotate(0deg);
    }

    100% {
        transform: scale(0) rotate(-20deg);
    }
}

/* Mind-Body Merge Animation (Chronic Disease) */
.mind-body-loader {
    width: 200px;
    height: 120px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.icon-wrapper {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.brain-icon {
    left: 20px;
    color: #42A5F5;
    /* Blue for Mind */
    animation: move-right 4s ease-in-out infinite;
}

.heart-icon {
    right: 20px;
    color: #EF5350;
    /* Red for Heart/Body */
    animation: move-left 4s ease-in-out infinite;
}

.merge-glow {
    position: absolute;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, #66BB6A 0%, rgba(102, 187, 106, 0) 70%);
    border-radius: 50%;
    opacity: 0;
    transform: scale(0.5);
    animation: merge-explode 4s ease-in-out infinite;
    z-index: 10;
}

.merge-icon {
    position: absolute;
    color: #2E7D32;
    /* Deep Green */
    font-size: 2.5rem;
    opacity: 0;
    z-index: 11;
    animation: show-harmony 4s ease-in-out infinite;
}

@keyframes move-right {

    0%,
    20% {
        transform: scale(1) translateX(0);
    }

    /* Pulse start */
    10% {
        transform: scale(1.1) translateX(0);
    }

    40% {
        transform: translateX(30px) scale(0.8);
        opacity: 1;
    }

    /* Move to center */
    50% {
        transform: translateX(30px) scale(0.2);
        opacity: 0;
    }

    /* Merge/Disappear */
    90% {
        transform: scale(0) translateX(0);
        opacity: 0;
    }

    /* Stay hidden */
    100% {
        transform: scale(0) translateX(0);
        opacity: 0;
    }
}

@keyframes move-left {

    0%,
    20% {
        transform: scale(1) translateX(0);
    }

    /* Pulse start */
    10% {
        transform: scale(1.1) translateX(0);
    }

    40% {
        transform: translateX(-30px) scale(0.8);
        opacity: 1;
    }

    /* Move to center */
    50% {
        transform: translateX(-30px) scale(0.2);
        opacity: 0;
    }

    /* Merge/Disappear */
    90% {
        transform: scale(0) translateX(0);
        opacity: 0;
    }

    /* Stay hidden */
    100% {
        transform: scale(0) translateX(0);
        opacity: 0;
    }
}

@keyframes merge-explode {

    0%,
    40% {
        opacity: 0;
        transform: scale(0.1);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }

    /* Glow burst */
    80% {
        opacity: 0.8;
        transform: scale(1.5);
    }

    /* Radiate */
    100% {
        opacity: 0;
        transform: scale(2);
    }

    /* Fade out */
}

@keyframes show-harmony {

    0%,
    45% {
        opacity: 0;
        transform: scale(0);
    }

    55% {
        opacity: 1;
        transform: scale(1);
    }

    /* Icon appears */
    85% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(0);
    }
}