﻿/* Mehtab Medical Centre - Heritage Theme CSS */
/* Per master1.md: A Legacy of Healing Since 1947 */
/* NO ANIMATIONS - Instant Rendering */

:root {
    /* Heritage Color Palette (derived from logo) */
    --primary-navy: #083B74;
    --secondary-gold: #C58A45;
    --background-light: #FAF8F4;
    --text-dark: #333333;
    --white: #FFFFFF;
    
    /* Bootstrap compatibility */
    --primary-color: #083B74;
    --secondary-color: #C58A45;
    --background-color: #FAF8F4;
    --text-color: #333333;
    --light-gray: #e9ecef;
    --border-radius: 8px;
}

/* NO ANIMATIONS - Per master1.md strict requirements */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    animation: none !important;
    transition: none !important;
}

html {
    scroll-behavior: auto !important;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-dark);
    background-color: var(--background-light);
    line-height: 1.6;
}

/* Heritage Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    color: var(--primary-navy);
}
.mb-4, .mb-3 { 
    margin-bottom: 1.5rem !important;
    color: var(--secondary-gold) !important;
    
   
}

p {
    color: #666;
    font-weight: 400;
}

a {
    color: var(--primary-navy);
    text-decoration: none;
}

a:hover {
    color: var(--secondary-gold);
}


/* Navbar */
.navbar {
    padding: 1rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.navbar-brand {
    font-size: 1.25rem;
    font-weight: 700;
}

.navbar-logo {
    height: 40px;
    width: auto;
}

.nav-link {
    font-weight: 500;
    margin: 0 8px;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-navy) !important;
}

/* Buttons */
.btn {
    font-weight: 600;
    border-radius: var(--border-radius);
    border: none;
}

.btn-primary,
.btn-primary:hover {
    background: var(--primary-navy);
    color: white;
    border: none;
}

.btn-secondary,
.btn-secondary:hover {
    background: var(--secondary-gold);
    color: white;
    border: none;
}

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

/* Cards */
.card {
    border: none;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.whatsapp-float:hover {
    background-color: #20ba58;
}

/* Form Elements */
.form-control,
.form-select {
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-size: 1rem;
    padding: 0.75rem 1rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-navy);
    box-shadow: 0 0 0 0.2rem rgba(8, 59, 116, 0.15);
}

.form-control-lg {
    padding: 0.9rem 1.2rem;
    font-size: 1.1rem;
}

/* Sections */
section {
    position: relative;
}

section.py-5 {
    padding: 3rem 0;
}

/* Alert Customization */
.alert {
    border: none;
    border-radius: var(--border-radius);
    padding: 1.25rem;
}

.alert-success {
    background-color: #d1e7dd;
    color: #0f5132;
}

.alert-danger {
    background-color: #f8d7da;
    color: #842029;
}

/* Footer */
footer {
    margin-top: auto;
    padding-top: 3rem;
    padding-bottom: 2rem;
}

footer a:hover {
    color: var(--secondary-gold);
}

/* Utility Classes */
.shadow-sm {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

.shadow-lg {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12) !important;
}

/* Image Responsiveness */
img {
    max-width: 100%;
    height: auto;
}

.img-fluid {
    width: 100%;
    height: auto;
}

/* Homepage Heritage Sections */
.hero-section {
    min-height: 70vh;
    display: flex;
    align-items: center;
}
.hero-legacy {
    background-color: var(--background-light);
    color: var(--text-dark);
}
.hero-panel {
    padding-top: 2rem;
    padding-bottom: 2rem;
    min-height: calc(70vh - 3rem);
    display: flex;
    align-items: center;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    letter-spacing: 0.16em;
    font-weight: 700;
    color: var(--secondary-gold);
    text-transform: uppercase;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}
.hero-title {
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.02;
    margin-bottom: 1rem;
    color: var(--primary-navy);
    letter-spacing: -0.03em;
}
.hero-subtitle {
    font-size: clamp(24px, 3vw, 32px);
    margin-bottom: 1.5rem;
    color: #333333;
    line-height: 1.2;
}
.hero-text {
    max-width: 660px;
    font-size: clamp(18px, 2vw, 20px);
    line-height: 1.85;
    color: #4f4f4f;
    margin-bottom: 1.75rem;
}
.hero-timeline {
    margin-top: 0.75rem;
    letter-spacing: 0.16em;
    color: #5c5c5c;
    font-size: 0.95rem;
    border-top: 1px solid rgba(8, 59, 116, 0.12);
    padding-top: 1rem;
}
.trust-stats {
    background: var(--background-light);
}
.trust-card {
    background: var(--white);
    border: 1px solid #E5E7EB;
    border-radius: 20px;
    padding: 2rem 1.5rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
    min-height: 190px;
}
.trust-year {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 0.5rem;
}
.trust-label {
    color: #4f4f4f;
    font-size: 1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.section-heading {
    color: var(--primary-navy);
    font-weight: 700;
    line-height: 1.3;
}
.hero-portrait-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}
.portrait-card {
    background: var(--white);
    border-radius: 20px;
    border-top: 4px solid var(--secondary-gold);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    padding: 20px;
    min-height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.portrait-card img {
    width: 100%;
    max-height: 260px;
    object-fit: contain;
    display: block;
}
.portrait-caption {
    padding-top: 1rem;
    text-align: center;
    color: #333333;
    font-weight: 700;
    background: transparent;
}
.portrait-summary {
    margin-top: 1.5rem;
    color: #5c5c5c;
    font-weight: 700;
    letter-spacing: 0.1em;
}
.timeline-panel {
    background: var(--background-light);
    
}
.timeline-heading {
    margin-bottom: 2rem;
    color: var(--primary-navy);
    font-size: clamp(30px, 4vw, 44px);
    letter-spacing: 0.02em;
    font-weight: 700;
    line-height: 1.3;
    
}
.timeline-flow {
    display: flex;
    gap: 1rem;
    align-items: stretch;
    justify-content: space-between;
    position: relative;
    padding: 2rem 0;
    
}
.timeline-item {
    background: var(--white);
    border-radius: 20px;
    padding: 1.75rem;
    border: 1px solid #E5E7EB;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
    
}
.timeline-flow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 2rem;
    right: 2rem;
    height: 2px;
    background: rgba(8, 59, 116, 0.12);
    z-index: 0;
    
}
.timeline-item {
    position: relative;
    z-index: 1;
    flex: 1;
    min-width: 180px;
    background: var(--white);
    border-radius: 20px;
    padding: 1.75rem;
    border: 1px solid rgba(8, 59, 116, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    
}
.timeline-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -0.75rem;
    width: 16px;
    height: 16px;
     background: var(--white); 
    border-radius: 50%;
    transform: translateY(-50%);
    border: 3px solid var(--white);
    box-sizing: content-box;
    
}
.timeline-year {
    margin-bottom: 0.75rem;
    color: var(--secondary-gold);
    font-size: 1.05rem;
    font-weight: 700;
    
}
.timeline-copy {
    color: #4f4f4f;
    line-height: 1.75;
    font-size: 1rem;
    
}
.principle-card {
    position: relative;
    background: var(--white);
    border: 1px solid #E5E7EB;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}
.principle-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 1rem;
    border: 1px solid rgba(197, 138, 69, 0.3);
    border-radius: 50%;
}
.principle-title {
    margin-bottom: 0.75rem;
    font-size: 1.15rem;
    color: var(--primary-navy);
}
.principle-copy {
    color: #4f4f4f;
    line-height: 1.8;
}
.legacy-cta {
    background: var(--white);
    border-top: 4px solid var(--secondary-gold);
    padding-top: 2rem;
}
.legacy-cta-content {
    max-width: 800px;
}
.legacy-cta h2 {
    font-size: clamp(28px, 3vw, 38px);
    color: var(--primary-navy);
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
    font-weight: 700;
    line-height: 1.3;
}
.legacy-btn {
    background: var(--secondary-gold);
    color: white;
    border-radius: 12px;
    padding: 14px 28px;
    border: none;
}
.faith-section {
    background: var(--primary-navy);
    color: var(--white);
    padding: 2rem 0;
}
.faith-section h2 {
    color: var(--white);
    margin-bottom: 1rem;
}
.faith-section .container-fluid {
    max-width: 900px;
}
.faith-text {
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.8;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
.faith-accent {
    color: var(--secondary-gold);
}
.faith-scripture {
    margin: 1.5rem 0;
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.6;
}
.faith-list {
    list-style: none;
    list-style-type: none;
    padding: 0;
    margin: 1.25rem 0 0;
    display: grid;
    gap: 0.9rem;
}
.faith-list li {
    position: relative;
    padding-left: 1.4rem;
    font-weight: 600;
    
}
.faith-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--secondary-gold);
    font-size: 1.2rem;
    line-height: 1;
    
}
.faith-center ul {
    list-style: none;
    padding-left: 0;
    margin-top: 1rem;
}
@media (max-width: 991px) {
    .hero-portrait-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .portrait-card {
        min-height: 220px;
    }
    .portrait-card img {
        max-height: 220px;
    }
    .timeline-flow {
        flex-direction: column;
        padding: 0;
    }
    .timeline-flow::before {
        top: 1rem;
        left: 1rem;
        right: auto;
        width: 2px;
        height: calc(100% - 2rem);
    }
    .timeline-item::before {
        left: calc(50% - 8px);
        top: -0.75rem;
        transform: none;
    }
}
@media (max-width: 767px) {
    .hero-portrait-grid {
        grid-template-columns: 1fr;
    }
    .portrait-card,
    .portrait-card img {
        min-height: 180px;
        max-height: 180px;
    }
    .hero-title {
        font-size: 34px;
    }
    .hero-subtitle {
        font-size: 24px;
    }
    .hero-text {
        font-size: 18px;
    }
    .timeline-flow::before {
        left: 1rem;
    }
}


/* Print Styles */
@media print {
    .navbar,
    .whatsapp-float,
    footer {
        display: none;
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Performance Optimization */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-navy);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-gold);
}

/* Responsive Design */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2rem;
    }

    .navbar-brand {
        font-size: 1.1rem;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 24px;
    }

    .card {
        margin-bottom: 1rem;
    }

    .lead {
        font-size: 1rem;
    }
}
