/* ============================================
   PHYSICIAN - Alternative Medicine Clinic
   Complete Health Education Library Styles
   ============================================ */

/* CSS Variables */
:root {
    --primary: #1a5f4a;
    --primary-dark: #124a39;
    --primary-light: #2d7a62;
    --secondary: #c9a227;
    --secondary-light: #e0c158;
    --accent: #8b4513;
    --text-dark: #1a1a1a;
    --text-medium: #4a4a4a;
    --text-light: #6b6b6b;
    --bg-cream: #faf8f5;
    --bg-white: #ffffff;
    --bg-light: #f5f3f0;
    --border: #e0dcd5;
    --shadow: rgba(0, 0, 0, 0.08);
    --shadow-hover: rgba(0, 0, 0, 0.12);
    
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --transition: all 0.3s ease;
    --radius: 12px;
    --radius-sm: 8px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--bg-cream);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* ============================================
   HEADER
   ============================================ */
.header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--bg-white);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.logo-section {
    text-align: left;
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 4px;
    font-family: var(--font-heading);
}

.tagline {
    font-size: 0.95rem;
    opacity: 0.9;
    font-weight: 300;
    letter-spacing: 1px;
}

.contact-info {
    display: flex;
    align-items: center;
}

.phone-link {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition);
}

.phone-link:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.phone-icon {
    font-size: 1.2rem;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    background: linear-gradient(135deg, var(--bg-cream) 0%, #f0ebe4 100%);
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(26, 95, 74, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(201, 162, 39, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 2.8rem;
    color: var(--primary);
    margin-bottom: 16px;
    font-weight: 700;
}

.hero-stats {
    font-size: 1.1rem;
    color: var(--text-medium);
    margin-bottom: 40px;
    font-weight: 500;
    letter-spacing: 1px;
}

.physician-info {
    background: var(--bg-white);
    padding: 32px;
    border-radius: var(--radius);
    box-shadow: 0 4px 30px var(--shadow);
    margin-bottom: 32px;
    border: 1px solid var(--border);
}

.physician-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.physician-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 4px;
}

.physician-assoc {
    font-size: 1rem;
    color: var(--text-medium);
    font-style: italic;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 95, 74, 0.3);
}

.btn-whatsapp {
    background: #25d366;
    color: var(--bg-white);
}

.btn-whatsapp:hover {
    background: #128c7e;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
}

.disclaimer {
    font-size: 0.85rem;
    color: var(--text-light);
    font-style: italic;
    margin-top: 16px;
}

/* ============================================
   TABLE OF CONTENTS
   ============================================ */
.toc-section {
    padding: 80px 0;
    background: var(--bg-white);
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 48px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--secondary);
    margin: 16px auto 0;
    border-radius: 2px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.category-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    background: var(--bg-cream);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary);
    transform: scaleY(0);
    transition: var(--transition);
}

.category-card:hover {
    background: var(--bg-white);
    box-shadow: 0 8px 30px var(--shadow-hover);
    transform: translateY(-4px);
}

.category-card:hover::before {
    transform: scaleY(1);
}

.category-icon {
    font-size: 2rem;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-white);
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 8px var(--shadow);
}

.category-info h3 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 4px;
    font-weight: 600;
}

.category-urdu {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 8px;
    font-family: 'Noto Nastaliq Urdu', 'Jameel Noori Nastaleeq', serif;
    direction: rtl;
}

.category-count {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--primary);
    background: rgba(26, 95, 74, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 500;
}

/* ============================================
   CONDITION SECTIONS
   ============================================ */
.condition-section {
    padding: 60px 0;
    background: var(--bg-cream);
}

.condition-section:nth-child(even) {
    background: var(--bg-white);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 48px;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--border);
}

.section-icon {
    font-size: 3rem;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: 0 4px 15px var(--shadow);
}

.section-header-content h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 4px;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-medium);
    margin-bottom: 4px;
}

.section-urdu {
    font-size: 1.1rem;
    color: var(--text-light);
    font-family: 'Noto Nastaliq Urdu', 'Jameel Noori Nastaleeq', serif;
    direction: rtl;
}

.conditions-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.condition-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: 0 4px 20px var(--shadow);
    overflow: hidden;
    border: 1px solid var(--border);
}

.condition-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--bg-white);
    padding: 28px 32px;
    position: relative;
}

.condition-header h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.condition-urdu {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 12px;
    font-family: 'Noto Nastaliq Urdu', 'Jameel Noori Nastaleeq', serif;
    direction: rtl;
}

.condition-category {
    display: inline-block;
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 500;
}

.condition-content {
    padding: 32px;
}

.content-section {
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border);
}

.content-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.content-section h4 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.content-section h4::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--secondary);
    border-radius: 50%;
}

.content-section p {
    color: var(--text-medium);
    line-height: 1.8;
}

.content-section ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.content-section li {
    position: relative;
    padding-left: 24px;
    color: var(--text-medium);
    line-height: 1.7;
}

.content-section li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Treatment Section */
.treatment-section {
    background: var(--bg-light);
    padding: 28px;
    border-radius: var(--radius-sm);
    margin-top: 8px;
}

.treatment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.treatment-box {
    background: var(--bg-white);
    padding: 24px;
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--secondary);
}

.treatment-box h5 {
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 10px;
    font-weight: 600;
}

.treatment-box p {
    font-size: 0.95rem;
    color: var(--text-medium);
    line-height: 1.7;
}

.personalized-plan {
    background: var(--primary);
    color: var(--bg-white);
    padding: 20px 24px;
    border-radius: var(--radius-sm);
    margin-top: 8px;
}

.personalized-plan strong {
    color: var(--secondary-light);
}

/* Condition Footer */
.condition-footer {
    background: var(--bg-light);
    padding: 28px 32px;
    text-align: center;
    border-top: 1px solid var(--border);
}

.supervision {
    font-size: 0.9rem;
    color: var(--text-medium);
    margin-bottom: 8px;
    font-style: italic;
}

.care-message {
    font-size: 1rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 16px;
}

.action-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.action-link {
    color: var(--primary);
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    transition: var(--transition);
}

.action-link:hover {
    background: rgba(26, 95, 74, 0.1);
    color: var(--primary-dark);
}

.separator {
    color: var(--border);
    font-weight: 300;
}

.back-to-toc {
    text-align: center;
    margin-top: 48px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
    padding: 12px 24px;
    border: 2px solid var(--primary);
    border-radius: 50px;
    transition: var(--transition);
}

.back-link:hover {
    background: var(--primary);
    color: var(--bg-white);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #0d3326 100%);
    color: var(--bg-white);
    padding: 60px 0 30px;
}

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

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 8px;
}

.footer-tagline {
    font-size: 0.95rem;
    opacity: 0.8;
    margin-bottom: 24px;
}

.footer-physician {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.footer-phone {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 24px;
}

.footer-disclaimer {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 24px;
    margin-top: 24px;
}

.footer-disclaimer p {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-bottom: 8px;
}

.copyright {
    opacity: 0.5;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .logo {
        font-size: 1.6rem;
    }
    
    .hero {
        padding: 60px 0 40px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-stats {
        font-size: 0.95rem;
    }
    
    .physician-info {
        padding: 24px;
    }
    
    .physician-name {
        font-size: 1.2rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .category-card {
        padding: 20px;
    }
    
    .section-header {
        flex-direction: column;
        text-align: center;
    }
    
    .section-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .section-header-content h2 {
        font-size: 1.6rem;
    }
    
    .condition-header {
        padding: 24px;
    }
    
    .condition-header h3 {
        font-size: 1.2rem;
    }
    
    .condition-content {
        padding: 24px;
    }
    
    .treatment-grid {
        grid-template-columns: 1fr;
    }
    
    .action-links {
        flex-direction: column;
        gap: 4px;
    }
    
    .separator {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.6rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .category-icon {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .treatment-section {
        padding: 20px;
    }
}

/* Print Styles */
@media print {
    .header,
    .hero-actions,
    .back-to-toc,
    .footer {
        display: none;
    }
    
    .condition-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}