/* ================================
   MEDICARE CLINIC - COMPLETE STYLES
   Professional Medical Website CSS
   ================================ */

/* ===============================
   FONTS & RESET STYLES
   =============================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Arial', sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #ffffff;
    font-size: 16px;
}

/* ===============================
   CONTAINER & LAYOUT
   =============================== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 1440px) {
    .container {
        max-width: 1200px;
    }
}

@media (max-width: 1200px) {
    .container {
        max-width: 992px;
    }
}

/* ===============================
   HEADER STYLES
   =============================== */
/* Header Wrapper */
.header {
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.15);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
    min-height: 80px;
}

/* Logo + Clinic Name */
.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-home {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

.logo {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    display: inline-block;
    object-fit: contain;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    transition: all 0.3s ease;
}

.logo:hover {
    box-shadow: 0 6px 25px rgba(37, 99, 235, 0.4);
    transform: translateY(-2px);
}

.clinic-name {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1f2937;
    letter-spacing: -0.5px;
    white-space: nowrap;
    text-decoration: none;
    position: relative;
    top: -4px; /* Perfect vertical alignment */
    line-height: 1;
    transition: color 0.3s ease;
}

.nav-brand:hover .clinic-name {
    color: #2563eb;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    text-decoration: none;
    color: #4b5563;
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover,
.nav-link.active {
    color: #2563eb;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Appointment Button */
.appointment-btn {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    position: relative;
    overflow: hidden;
}

.appointment-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transition: left 0.5s ease;
    z-index: -1;
}

.appointment-btn:hover::before {
    left: 0;
}

.appointment-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}


/* ===============================
   HERO SECTION
   =============================== */
.hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #1d4ed8 100%);
    color: white;
    padding: 120px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,122.7C1248,128,1344,160,1392,176L1440,192L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.6;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1s ease-out;
}

.hero-tagline {
    font-size: 2rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    font-weight: 400;
    line-height: 2;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-btn {
    background: rgba(255, 255, 255, 0.95);
    color: #2563eb;
    padding: 18px 36px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    animation: fadeInUp 1s ease-out 0.4s both;
    backdrop-filter: blur(10px);
}

.hero-btn:hover {
    background: white;
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

/* ===============================
   OFFER BANNER
   =============================== */
.offer-banner {
    background: linear-gradient(135deg, #fef3c7, #fed7aa);
    padding: 18px 0;
    text-align: center;
    border-bottom: 3px solid #f59e0b;
    position: relative;
    overflow: hidden;
}

.offer-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(245, 158, 11, 0.1) 10px,
        rgba(245, 158, 11, 0.1) 20px
    );
    animation: moveStripes 20s linear infinite;
}

.offer-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: #92400e;
    position: relative;
    z-index: 2;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* ===============================
   SECTION STYLES
   =============================== */
.section-title {
    text-align: center;
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1f2937;
    position: relative;
    letter-spacing: -0.5px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #6b7280;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===============================
   SERVICE HIGHLIGHTS
   =============================== */
.service-highlights {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
}

.service-highlights::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="white" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,122.7C1248,128,1344,160,1392,176L1440,192L1440,0L1392,0C1344,0,1248,0,1152,0C1056,0,960,0,864,0C768,0,672,0,576,0C480,0,384,0,288,0C192,0,96,0,48,0L0,0Z"></path></svg>') no-repeat top;
    background-size: cover;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(37, 99, 235, 0.15);
}

.service-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: block;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1f2937;
    transition: color 0.3s ease;
}

.service-card:hover h3 {
    color: #2563eb;
}

.service-card p {
    color: #6b7280;
    line-height: 1.6;
    font-size: 1rem;
}

/* ===============================
   ABOUT US SECTION
   =============================== */
.about-us {
    padding: 100px 0;
    background: #ffffff;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
}

.about-text h2 {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    color: #1f2937; /* darker shade for heading */
    font-weight: 600;
    line-height: 1.4;
    text-align: center; /* keep heading centered */
}

.about-text p {
    font-size: 1rem;
    margin-bottom: 1.8rem;
    color: #4b5563;
    line-height: 1.7;
    text-align: justify; /* 👈 justify text */
}

.about-text p strong {
    display: block;
    font-size: 1.2rem;
    color: #111827; /* bold blackish tone */
    font-weight: 600;
    margin-top: 1.5rem;
    text-align: center; /* tagline centered */
}

/* ===============================
   SERVICES PAGE
   =============================== */
.services-page {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.service-detail-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    position: relative;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.service-detail-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-radius: 20px 20px 0 0;
}

.service-detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(37, 99, 235, 0.12);
}

.service-detail-card h3 {
    color: #2563eb;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.service-detail-card p {
    color: #4b5563;
    margin-bottom: 2rem;
    line-height: 1.7;
    font-size: 1rem;
}

.service-btn {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.service-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

/* ===============================
   CONSULTANTS PAGE
   =============================== */
   
   .consultants-section {
    padding: 2rem 1rem; ;
    margin: auto;
}
   .consultants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 5rem;
    margin-bottom: 2rem;
    margin-top: 3rem;
}

.consultant-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: left;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    position: relative;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.consultant-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(37, 99, 235, 0.15);
}

.consultant-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    object-fit: cover;
    border: 4px solid #e5e7eb;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

.consultant-card:hover .consultant-image {
    border-color: #2563eb;
    transform: scale(1.05);
}

.consultant-card h3 {
    color: #1f2937;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0rem;
    text-align: center;
}

.consultant-specialty {
    color: #2563eb;
    text-align: center;
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.consultant-card p {
    color: #6b7280;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ===============================
   BLOG PAGE
   =============================== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.blog-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(37, 99, 235, 0.12);
}

.blog-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-image {
    transform: scale(1.05);
}

.blog-content {
    padding: 2rem;
}

.blog-card h3 {
    color: #1f2937;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.blog-card:hover h3 {
    color: #2563eb;
}

.blog-date {
    color: #2563eb;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-card p {
    color: #6b7280;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ===============================
   READ MORE BUTTON
   =============================== */
.read-more-btn {
    margin-top: 1rem;
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    background: #1e40af;
    transform: translateY(-2px);
}

/* ===============================
   READ MORE TEXT (Smooth Expand + Scrollbar)
   =============================== */
.read-more-text {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.4s ease;
    opacity: 0;
    margin-top: 0;
    width: 100%;
    text-align: left;
    font-size:0.9rem;
    line-height: 1.5;
}

/* Active state with scrollable area */
.read-more-text.active {
    max-height: 220px; /* fixed area */
    overflow-y: auto;
    opacity: 1;
    margin-top: 0.5rem;
    padding-right: 0.5rem;
}

/* Custom scrollbar */
.read-more-text.active::-webkit-scrollbar {
    width: 6px;
}
.read-more-text.active::-webkit-scrollbar-thumb {
    background: #2563eb;
    border-radius: 3px;
}
.read-more-text.active::-webkit-scrollbar-track {
    background: #f3f4f6;
}



/* ===============================
   CONTACT PAGE
   =============================== */
.contact-page {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-info h3 {
    color: #1f2937;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border-left: 4px solid #2563eb;
}

.contact-item:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.1);
}

.contact-item strong {
    margin-right: 15px;
    min-width: 100px;
    font-weight: 600;
    color: #374151;
}

.whatsapp-btn {
    background: linear-gradient(135deg, #25d366, #22c55e);
    color: white;
    padding: 12px 24px;
    border-radius: 10px;
    text-decoration: none;
    display: inline-block;
    margin: 10px 0;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.whatsapp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.4);
}

/* ===============================
   APPOINTMENT FORM
   =============================== */
.appointment-form {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.appointment-form h3 {
    color: #1f2937;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 500;
    color: #374151;
    font-size: 1rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #fafafa;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #2563eb;
    background: white;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

/* ===============================
   MAP CONTAINER
   =============================== */
.map-container {
    margin: 4rem 0;
    border-radius: 20px;
    overflow: hidden;
    height: 350px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    border-radius: 20px;
}

/* ===============================
   TEXT BUTTONS
   =============================== */
.text-buttons {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.text-btn {
    color: #2563eb;
    text-decoration: none;
    margin: 0 30px;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
}

.text-btn::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background: #2563eb;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.text-btn:hover::after {
    width: 100%;
}

.text-btn:hover {
    color: #1d4ed8;
}

/* ===============================
   MODAL STYLES
   =============================== */
.modal {
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    margin: 2rem;
    padding: 2.5rem;
    border-radius: 20px;
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.2);
    animation: modalFadeIn 0.3s ease-out;
}

.close {
    position: absolute;
    right: 25px;
    top: 20px;
    color: #6b7280;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f3f4f6;
}

.close:hover {
    color: #2563eb;
    background: #dbeafe;
}

.faq-item {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h4 {
    color: #2563eb;
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.faq-item p {
    color: #4b5563;
    line-height: 1.6;
}

.privacy-content h4 {
    color: #2563eb;
    margin: 2rem 0 1rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.privacy-content h4:first-child {
    margin-top: 0;
}

.privacy-content p {
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* ===============================
   FOOTER STYLES
   =============================== */
/* Footer */
.footer {
    background: #1f2937;
    color: #fff;
    padding: 40px 0 20px;
    position: relative;
    font-size: 0.95rem;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23f8fafc" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,122.7C1248,128,1344,160,1392,176L1440,192L1440,0L1392,0C1344,0,1248,0,1152,0C1056,0,960,0,864,0C768,0,672,0,576,0C480,0,384,0,288,0C192,0,96,0,48,0L0,0Z"></path></svg>') no-repeat top;
    background-size: cover;
}

/* Footer Content */
.footer-content {
    display: grid;
    grid-template-columns: 1fr auto;
    justify-content: space-between;
    gap: 4rem;
    margin-bottom: 1.5rem;
    padding-top: 15px;
    max-width: 1000px;
    margin-left: 0;
    margin-right: auto;
}

/* Section Titles */
.footer-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #60a5fa;
    position: relative;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #2563eb, #60a5fa);
    border-radius: 1px;
}

/* Quick Links Section - Vertical Column Layout */
.footer-section a {
    display: block;
    color: #d1d5db;
    text-decoration: none;
    padding: 6px 8px;
    margin: 2px 0;
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    font-weight: 500;
    border-left: 3px solid transparent;
    background: transparent;
    font-size: 0.9rem;
    margin-right: 0;
}

.footer-section a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(96, 165, 250, 0.05));
    border-radius: 4px;
    transition: width 0.3s ease;
    z-index: -1;
}

.footer-section a:hover {
    color: #60a5fa;
    transform: translateX(6px);
    border-left-color: #2563eb;
    background: rgba(37, 99, 235, 0.08);
}

.footer-section a:hover::before {
    width: 100%;
}

/* Ensure each footer section displays as a column */
.footer-section {
    display: flex;
    flex-direction: column;
}

/* Family Care Clinic Section - Extreme Left */
.footer-section:first-child {
    text-align: left;
    justify-self: start;
    align-self: start;
}

/* Quick Links Section - Two Column Layout */
.footer-section:last-child {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    align-items: start;
}

.footer-section:last-child h4 {
    grid-column: 1 / -1;
    margin-bottom: 1rem;
}

/* General text and other links */
.footer-section p {
    color: #d1d5db;
    margin-bottom: 0.4rem;
    line-height: 1.5;
}

/* Bottom Bar */
.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 15px;
    text-align: center;
    color: #9ca3af;
    font-size: 0.85rem;
    margin-top: 2rem;
}

/* Responsive Design */
@media (max-width: 640px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-section h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-section a {
        text-align: left;
    }
}
/* ===============================
   ANIMATIONS
   =============================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes moveStripes {
    0% {
        transform: translateX(-50px);
    }
    100% {
        transform: translateX(50px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Pulse animation for important elements */
.pulse {
    animation: pulse 2s infinite;
}

/* ===============================
   UTILITY CLASSES
   =============================== */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }
.p-5 { padding: 3rem; }

/* ===============================
   RESPONSIVE BREAKPOINTS
   =============================== */

/* Large Desktop */
@media (max-width: 1400px) {
    .hero-title {
        font-size: 3.4rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
}

/* Desktop */
@media (max-width: 1200px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }
    
    .service-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
}

/* Tablet */
@media (max-width: 992px) {
    .header .container {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1rem 15px;
    }
    
    .nav-menu {
        gap: 2rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero {
        padding: 80px 0 60px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-tagline {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .service-highlights,
    .about-us,
    .services-page,
    .contact-page {
        padding: 60px 0;
    }
    .footer-content {
        grid-template-columns: 1fr 1fr; /* keep left + right */
        gap: 2rem;
        text-align: left;
    }

    .footer-section:last-child {
        grid-template-columns: repeat(2, 1fr); /* keep 2-column links */
    }
}

/* Mobile Large */
@media (max-width: 768px) {
    .nav-menu {
        gap: 1.5rem;
    }
    
    .appointment-btn {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }
    
    .hero-tagline {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .services-grid,
    .consultants-grid,
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card,
    .service-detail-card,
    .consultant-card,
    .blog-card {
        margin: 0 10px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .modal-content {
        margin: 1rem;
        padding: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: left;
    }
}

/* Mobile Medium */
@media (max-width: 576px) {
    .container {
        padding: 0 10px;
    }
    
    .header .container {
        padding: 0.8rem 10px;
    }
    
    .logo {
        width: 45px;
        height: 45px;
        margin-right: 10px;
    }
    
    .clinic-name {
        font-size: 1.4rem;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    .nav-link {
        font-size: 0.9rem;
    }
    
    .hero {
        padding: 60px 0 40px;
    }
    
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.2;
    }
    
    .hero-tagline {
        font-size: 0.95rem;
    }
    
    .hero-btn {
        padding: 15px 25px;
        font-size: 1rem;
    }
    
    .offer-text {
        font-size: 1rem;
        padding: 0 10px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .service-card,
    .service-detail-card,
    .consultant-card {
        padding: 2rem;
        margin: 0;
    }
    
    .consultant-image {
        width: 120px;
        height: 120px;
    }
    
    .contact-item {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    
    .contact-item strong {
        margin-bottom: 0.5rem;
        margin-right: 0;
    }
    
    .appointment-form {
        padding: 2rem;
    }
    
    .text-btn {
        margin: 0 15px;
        font-size: 1rem;
    }
    
    .map-container {
        height: 250px;
        margin: 2rem 0;
    }
}

/* Mobile Small */
@media (max-width: 375px) {
    .hero-title {
        font-size: 1.6rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .service-card,
    .service-detail-card,
    .consultant-card,
    .appointment-form {
        padding: 1.5rem;
    }
    
    .modal-content {
        padding: 1.5rem;
        margin: 0.5rem;
    }
    
    .text-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .text-btn {
        margin: 0;
    }
}
/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
    .modal-content {
        margin: 20% auto;
        padding: 1.5rem;
    }
}

/* ===============================
   PRINT STYLES
   =============================== */
@media print {
    .header,
    .footer,
    .appointment-btn,
    .service-btn,
    .whatsapp-btn,
    .hero-btn {
        display: none !important;
    }
    
    .hero {
        background: none !important;
        color: black !important;
        padding: 20px 0 !important;
    }
    
    .service-card,
    .consultant-card,
    .blog-card {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
        break-inside: avoid;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .section-title {
        font-size: 18pt;
        color: black !important;
    }
}

/* ===============================
   ACCESSIBILITY IMPROVEMENTS
   =============================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for better accessibility */
.nav-link:focus,
.appointment-btn:focus,
.service-btn:focus,
.whatsapp-btn:focus,
.hero-btn:focus,
.text-btn:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #2563eb !important;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .service-card,
    .consultant-card,
    .blog-card,
    .service-detail-card {
        border: 2px solid #000;
    }
    
    .nav-link,
    .text-btn {
        text-decoration: underline;
    }
}

/* ===============================
   CUSTOM SCROLLBAR
   =============================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
}

/* ===============================
   SELECTION STYLES
   =============================== */
::selection {
    background: rgba(37, 99, 235, 0.2);
    color: #1f2937;
}

::-moz-selection {
    background: rgba(37, 99, 235, 0.2);
    color: #1f2937;
}

/* ===============================
   END OF STYLES
   =============================== */