/* ==========================================================
   MA PREGNANCY & FERTILITY CLINIC - HOLISTIC ORGANIC STYLESHEET
   ========================================================== */

/* 1. Global Variables & Base Settings (Sage, Terracotta, Alabaster) */
:root { 
    --primary: #5C7C6D;        /* Moss/Sage Green (Headings, buttons, trust elements) */
    --primary-hover: #4A6357;  /* Darker Sage (Button hover states) */
    --secondary: #C48B71;      /* Soft Terracotta (Warm accents, dates, borders) */
    --bg-main: #FAF9F6;        /* Alabaster / Warm Off-White (Main website background) */
    --bg-card: #FFFFFF;        /* Pure White (Cards and content boxes for crisp contrast) */
    --text-main: #2C3E50;      /* Deep Slate (Main reading text - grounded and soft) */
    --text-muted: #6B7A8B;     /* Muted Slate (Subtitles and excerpts) */
    --radius: 16px;            /* Softer, rounder corners for an organic feel */
    --shadow: 0 12px 35px rgba(44, 62, 80, 0.05); /* Soft, airy drop shadow */
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Inter', sans-serif; 
    scroll-behavior: smooth; 
}

body { 
    color: var(--text-main); 
    background-color: var(--bg-main); 
    line-height: 1.7; /* Slightly taller line-height for relaxed reading */
    padding-top: 80px; 
}

/* 2. Navigation Header (Shared across all pages) */
header { 
    background: rgba(255, 255, 255, 0.95); 
    backdrop-filter: blur(10px); 
    position: fixed; 
    width: 100%; 
    top: 0; 
    z-index: 1000; 
    border-bottom: 1px solid rgba(92, 124, 109, 0.1); 
}

.nav-container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0.8rem 2rem; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.clinic-logo { height: 55px; width: auto; }

.nav-links { display: flex; gap: 2rem; list-style: none; align-items: center; }
.nav-links a { text-decoration: none; color: var(--text-main); font-weight: 500; font-size: 0.95rem; transition: 0.2s; }
.nav-links a:hover { color: var(--primary); }

.back-link { text-decoration: none; color: var(--text-main); font-weight: 600; font-size: 0.95rem; transition: 0.2s; }
.back-link:hover { color: var(--secondary); }

/* Buttons */
.btn { 
    background: var(--primary); 
    color: #ffffff !important; 
    padding: 0.7rem 1.8rem; 
    border-radius: 50px; 
    text-decoration: none; 
    font-weight: 600; 
    transition: 0.3s; 
    border: none; 
    cursor: pointer; 
    display: inline-block; 
}
.btn:hover { 
    background: var(--primary-hover); 
    transform: translateY(-2px); 
    box-shadow: 0 6px 15px rgba(92, 124, 109, 0.25); 
}

/* 3. General Containers & Typography */
.container { max-width: 1200px; margin: 0 auto; padding: 4rem 2rem; }
h1, h2, h3 { color: var(--primary); line-height: 1.2; font-weight: 700; }
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 1rem; color: var(--primary); }
.section-subtitle, .subtitle { text-align: center; color: var(--text-muted); max-width: 700px; margin: 0 auto 3.5rem; font-size: 1.1rem; }

/* 4. Homepage Hero Section */
.hero { display: flex; align-items: center; gap: 4rem; background: var(--bg-card); padding: 4rem; border-radius: 24px; margin-top: 2rem; box-shadow: var(--shadow); border: 1px solid rgba(0,0,0,0.02); }
.hero-text { flex: 1; }
.hero-text h1 { font-size: 2.8rem; margin-bottom: 1.5rem; color: var(--text-main); }
.hero-text p { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 2rem; }
.hero-img-box { flex: 1; }
.hero-img-box img { width: 100%; height: auto; aspect-ratio: 4/3; border-radius: var(--radius); box-shadow: var(--shadow); object-fit: cover; }

/* 5. Services & Doctors Grids */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2.5rem; }
.card { background: var(--bg-card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: 0.3s; border: 1px solid rgba(0,0,0,0.03); display: flex; flex-direction: column; }
.card:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(44, 62, 80, 0.08); border-color: rgba(196, 139, 113, 0.3); }
.card img { width: 100%; height: 220px; object-fit: cover; background-color: var(--bg-main); }
.card-body { padding: 2rem; display: flex; flex-direction: column; flex-grow: 1; }
.card-body h3 { font-size: 1.3rem; margin-bottom: 0.8rem; color: var(--text-main); }
.card-body p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1.5rem; flex-grow: 1; }

.doctor-card { background: var(--bg-card); padding: 3rem 2rem; border-radius: var(--radius); text-align: center; box-shadow: var(--shadow); border: 1px solid rgba(0,0,0,0.03); }
.doc-img { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; margin-bottom: 1.5rem; border: 3px solid var(--secondary); padding: 5px; background: var(--bg-card); }

/* 6. Patient Education Hub Grid */
.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 2.5rem; }
.article-card { background: var(--bg-card); border: 1px solid rgba(0,0,0,0.03); border-radius: var(--radius); padding: 2.5rem; box-shadow: var(--shadow); transition: 0.3s; display: flex; flex-direction: column; }
.article-card:hover { transform: translateY(-5px); border-color: rgba(196, 139, 113, 0.3); box-shadow: 0 15px 35px rgba(44, 62, 80, 0.08); }
.article-date { color: var(--secondary); font-size: 0.9rem; font-weight: 600; margin-bottom: 1rem; }
.article-title { font-size: 1.4rem; color: var(--text-main); margin-bottom: 1rem; line-height: 1.3; }
.article-excerpt { color: var(--text-muted); font-size: 1rem; margin-bottom: 2rem; flex-grow: 1; line-height: 1.6; }
.read-more { color: var(--primary); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; border: 2px solid var(--primary); padding: 0.6rem 1.5rem; border-radius: 50px; transition: 0.3s; align-self: flex-start; }
.read-more:hover { background: var(--primary); color: #fff; }

/* 7. Individual Medical Articles Formatting */
.article-container { max-width: 800px; margin: 2rem auto 4rem; padding: 0 2rem; }
.article-hero-img { width: 100%; border-radius: var(--radius); margin-bottom: 2rem; box-shadow: var(--shadow); }
.article-header { border-bottom: 1px solid rgba(0,0,0,0.05); padding-bottom: 2rem; margin-bottom: 2rem; }
.article-header h1 { color: var(--text-main); font-size: 2.5rem; line-height: 1.2; margin-bottom: 1rem; }
.article-author { color: var(--secondary); font-weight: 600; font-size: 1.1rem; }
.article-content h2 { color: var(--primary); font-size: 1.6rem; margin: 2.5rem 0 1rem; }
.article-content h3 { color: var(--text-main); font-size: 1.3rem; margin: 2rem 0 1rem; }
.article-content p { margin-bottom: 1.5rem; font-size: 1.1rem; color: var(--text-main); }
.article-content ul { margin-left: 2rem; margin-bottom: 1.5rem; }
.article-content li { margin-bottom: 0.8rem; font-size: 1.1rem; color: var(--text-main); }
.article-content a { color: var(--secondary); text-decoration: none; font-weight: 600; transition: 0.2s; }
.article-content a:hover { color: var(--primary); text-decoration: underline; }

.author-box { background: var(--bg-card); padding: 2rem; border-radius: var(--radius); margin-top: 4rem; border: 1px solid rgba(0,0,0,0.05); box-shadow: var(--shadow); }
.author-box h3 { color: var(--primary); margin-bottom: 0.5rem; }
.author-box p { margin-bottom: 0; font-size: 1rem; color: var(--text-main); }
.disclaimer { font-size: 0.9rem; color: var(--text-muted); margin-top: 1rem; font-style: italic; }

/* 8. Contact Form & Footer */
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; background: var(--bg-card); padding: 4rem; border-radius: 24px; box-shadow: var(--shadow); border: 1px solid rgba(0,0,0,0.03); }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 600; font-size: 0.9rem; color: var(--text-main); }
.form-control { width: 100%; padding: 0.8rem 1rem; background: var(--bg-main); border: 1px solid rgba(0,0,0,0.08); border-radius: 8px; font-size: 1rem; font-family: inherit; transition: 0.2s; color: var(--text-main); }
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(92, 124, 109, 0.15); }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 100px; }

.contact-details h3 { font-size: 1.8rem; margin-bottom: 1.5rem; color: var(--text-main); }
.contact-details p { margin-bottom: 1rem; font-size: 1.1rem; color: var(--text-main); }
.contact-details a { color: var(--secondary); text-decoration: none; font-weight: 600; transition: 0.2s; }
.contact-details a:hover { color: var(--primary); }

.qr-box { margin-top: 2rem; text-align: center; background: var(--bg-main); padding: 1.5rem; border-radius: var(--radius); display: inline-block; border: 1px solid rgba(0,0,0,0.05); }
.qr-box img { width: 150px; height: 150px; margin-bottom: 0.5rem; border-radius: 8px; }

footer { background: var(--text-main); color: #fff; text-align: center; padding: 2.5rem 2rem; margin-top: 4rem; }

/* 9. Mobile Responsive Rules */
@media (max-width: 900px) {
    .hero, .contact-wrap { grid-template-columns: 1fr; flex-direction: column; padding: 2rem; }
    .nav-links { display: none; }
    .hero-text h1 { font-size: 2.2rem; }
    .article-header h1 { font-size: 2rem; }
}