/**
 * Core Design System & Styling
 * Dr. Rayaz Ahmed Personal Medical Website
 */

/* ==========================================================================
   1. VARIABLES & DESIGN TOKENS
   ========================================================================== */
:root {
    --primary: #0A2540;          /* Deep Navy - Trust, Authority */
    --accent: #0D9488;           /* Medical Teal - Healing, Care */
    --accent-hover: #0F766E;     /* Darker Teal for hover states */
    --accent-light: #F0FDFA;     /* Soft teal background tint */
    --white: #FFFFFF;
    --light-bg: #F7FAFC;         /* Soft light background */
    --text-dark: #172033;        /* Dark Slate - High readability body text */
    --text-muted: #64748B;       /* Cool Gray - Subtitles and secondary info */
    --border-color: #E2E8F0;     /* Border dividers */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
    
    --font-headings: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    --header-height: 85px;
    --header-height-compact: 70px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   2. GLOBAL RESET & BASIC SETUP
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.625;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headings);
    color: var(--primary);
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 0.75rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    position: relative;
    padding-bottom: 0.75rem;
}

h2.section-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--accent);
}

h3 {
    font-size: 1.375rem;
}

p {
    margin-bottom: 1.25rem;
    color: var(--text-dark);
}

p.lead {
    font-size: 1.125rem;
    color: var(--text-muted);
    line-height: 1.7;
}

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

a:hover {
    color: var(--accent-hover);
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   3. REUSABLE COMPONENTS & UTILITIES
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 3.5rem 0;
}

.section-bg {
    background-color: var(--light-bg);
}

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

.text-center h2.section-heading::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-intro {
    max-width: 700px;
    margin: 0 auto 2rem auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-headings);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.85rem 1.8rem;
    border-radius: 4px; /* Minimal, clean doctor styling */
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

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

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

.btn-secondary {
    background-color: transparent;
    border-color: var(--primary);
    color: var(--primary);
}

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

.btn-outline {
    background-color: transparent;
    border-color: var(--accent);
    color: var(--accent);
}

.btn-outline:hover {
    background-color: var(--accent);
    color: var(--white);
}

/* Visual Cards */
.card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    padding: 2.25rem;
    border-radius: 6px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(10, 37, 64, 0.08), 0 0 0 3px rgba(13, 148, 136, 0.1);
    border-color: var(--accent);
}

/* Image Zoom & Hover Wrapper */
.img-zoom-container {
    overflow: hidden;
    border-radius: 6px;
    position: relative;
    background-color: var(--light-bg);
}

.img-zoom-container img {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    display: block;
    width: 100%;
    height: auto;
}

.img-zoom-container:hover img {
    transform: scale(1.04);
}

/* Dynamic Animation Transitions */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal.reveal-active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* Typewriter cursor */
.typed-cursor {
    font-weight: 200;
    color: var(--accent);
    animation: blink 0.7s infinite;
    margin-left: 2px;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Labels & Badges */
.badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.75rem;
    background-color: var(--accent-light);
    color: var(--accent);
    border-radius: 2px;
    margin-bottom: 0.5rem;
}

.rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #FEF3C7; /* Soft amber */
    color: #92400E; /* Dark amber */
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    margin-top: 0.5rem;
}

/* ==========================================================================
   4. FIXED / STICKY HEADER
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition);
}

/* Scrolled Header State */
.main-header.scrolled {
    height: var(--header-height-compact);
    box-shadow: var(--shadow-md);
    border-bottom: none;
}

.header-container {
    max-width: 1320px;
    height: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}



/* Brand Wordmark */
.header-logo {
    display: flex;
    flex-direction: column;
    color: var(--primary);
    flex-shrink: 0;
}

.header-logo .logo-title {
    font-family: var(--font-headings);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.1;
    color: var(--primary);
}

.header-logo .logo-subtitle {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--accent);
    margin-top: 0.15rem;
}

/* Desktop Menu Links */
.desktop-nav ul {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}


.desktop-nav a {
    font-size: 0.925rem;
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
    padding: 0.5rem 0;
    white-space: nowrap;
}

.desktop-nav a:hover,
.desktop-nav a.active {
    color: var(--accent);
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.desktop-nav a:hover::after,
.desktop-nav a.active::after {
    width: 100%;
}

/* Header CTAs */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-shrink: 0;
}

.header-actions .cta-call {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.header-actions .cta-call:hover {
    color: var(--accent);
}

.header-actions .cta-btn {
    font-family: var(--font-headings);
    font-size: 0.875rem;
    font-weight: 500;
    background-color: var(--primary);
    color: var(--white);
    padding: 0.65rem 1.25rem;
    border-radius: 4px;
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
}

.header-actions .cta-btn:hover {
    background-color: var(--accent);
}

/* Mobile Actions Layout (Hidden on Desktop) */
.mobile-actions {
    display: none;
    align-items: center;
    gap: 1rem;
}

.mobile-call-btn {
    width: 40px;
    height: 40px;
    background-color: var(--accent-light);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.1rem;
}

.hamburger-menu {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    z-index: 1100;
}

.hamburger-menu .bar {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
    border-radius: 2px;
}

/* Active Hamburger Drawer state */
.hamburger-menu.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-menu.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Navigation Drawer */
.mobile-menu-drawer {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--white);
    z-index: 999;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 1px solid var(--border-color);
    padding: 2rem 1.5rem;
    overflow-y: auto;
}

.mobile-menu-drawer.active {
    transform: translateX(0);
}

.mobile-nav ul {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-nav a {
    font-family: var(--font-headings);
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--primary);
    display: block;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--light-bg);
}

.mobile-nav a.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.drawer-cta-item {
    margin-top: 1.5rem;
}

.drawer-cta-btn {
    text-align: center;
    width: 100%;
    padding: 0.85rem;
    font-size: 1rem;
    background-color: var(--accent);
    color: var(--white);
    border-radius: 4px;
}

.header-spacer {
    height: var(--header-height);
}

/* ==========================================================================
   5. HERO SECTION
   ========================================================================== */
.hero-section {
    position: relative;
    padding: 3.5rem 0;
    background-color: var(--light-bg);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-eyebrow {
    color: var(--accent);
    font-family: var(--font-headings);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.hero-name {
    font-size: 3.25rem;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.hero-qualifications {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.hero-text {
    font-size: 1.15rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
    max-width: 580px;
    line-height: 1.65;
}

.hero-ctas {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

/* Hero Portrait Display */
.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
}

.doctor-portrait-container {
    position: relative;
    width: 100%;
    max-width: 380px;
    aspect-ratio: 4 / 5;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    padding: 0.75rem;
    border-radius: 4px;
    box-shadow: var(--shadow-lg);
}

.doctor-portrait-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, #1e3a8a 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--white);
    text-align: center;
    padding: 2rem;
}

.doctor-portrait-placeholder i {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.15);
    margin-bottom: 1.5rem;
}

.doctor-portrait-placeholder span {
    font-family: var(--font-headings);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.doctor-portrait-placeholder small {
    font-size: 0.8rem;
    color: var(--accent);
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.doctor-portrait-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 2px;
}

/* Hero Trust Indicators Grid */
.trust-indicators {
    width: 100%;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.trust-item {
    display: flex;
    flex-direction: column;
}

.trust-num {
    font-family: var(--font-headings);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1.1;
    margin-bottom: 0.25rem;
}

.trust-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    line-height: 1.3;
}

/* ==========================================================================
   6. ABOUT SECTIONS & CHRONOLOGY
   ========================================================================== */
.about-summary-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.about-intro-text {
    font-size: 1.05rem;
    line-height: 1.7;
}

.about-bullets-list {
    margin: 1.5rem 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.about-bullets-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.95rem;
    font-weight: 500;
}

.about-bullets-list li i {
    color: var(--accent);
    margin-top: 0.25rem;
}

.achievements-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

/* Professional Timeline */
.timeline {
    position: relative;
    max-width: 850px;
    margin: 2.5rem auto 0 auto;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background-color: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    top: 5px;
    left: -2rem;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--accent);
    border: 2px solid var(--white);
    box-shadow: 0 0 0 4px var(--accent-light);
}

.timeline-date {
    font-family: var(--font-headings);
    font-weight: 700;
    color: var(--accent);
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.timeline-title {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.timeline-institution {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.timeline-content {
    font-size: 0.95rem;
    color: var(--text-dark);
}

/* ==========================================================================
   7. EXPERTISE & SERVICES LAYOUTS
   ========================================================================== */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.expertise-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.expertise-icon-box {
    width: 50px;
    height: 50px;
    background-color: var(--accent-light);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
}

.expertise-title {
    margin-bottom: 0.75rem;
}

.expertise-desc {
    font-size: 0.925rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Services Page Sub-categories */
.services-section-block {
    margin-bottom: 4.5rem;
}

.services-section-block:last-child {
    margin-bottom: 0;
}

.services-block-title {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.service-educational-card {
    height: 100%;
}

.service-educational-card p {
    font-size: 0.95rem;
    color: var(--text-dark);
}

.service-educational-card ul {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.service-educational-card li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.service-educational-card li i {
    color: var(--accent);
    margin-top: 0.25rem;
}

/* Bone Marrow Transplant Features homepage block */
.bmt-feature-card {
    background-color: var(--primary);
    color: var(--white);
    padding: 3.5rem;
    border-radius: 4px;
    box-shadow: var(--shadow-lg);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.bmt-feature-content h2, 
.bmt-feature-content h3 {
    color: var(--white);
}

.bmt-feature-content h2::after {
    background-color: var(--accent);
}

.bmt-feature-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

.bmt-types-accordion {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.bmt-accordion-item {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 1.25rem;
}

.bmt-accordion-title {
    font-family: var(--font-headings);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.bmt-accordion-title i {
    color: var(--accent);
}

.bmt-accordion-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
}

/* ==========================================================================
   8. PUBLICATIONS & RESEARCH
   ========================================================================== */
.publications-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.publication-item {
    border-left: 3px solid var(--accent);
    padding-left: 1.5rem;
}

.publication-number {
    font-family: var(--font-headings);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
}

.publication-title {
    font-size: 1.15rem;
    color: var(--primary);
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.publication-meta {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* ==========================================================================
   9. EXTERNAL PROFILES
   ========================================================================== */
.profiles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.profile-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-card-icon {
    font-size: 2.25rem;
    color: var(--accent);
    margin-bottom: 1.25rem;
}

.profile-card-title {
    margin-bottom: 0.75rem;
}

.profile-card-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.75rem;
    flex-grow: 1;
}

/* ==========================================================================
   10. MAP & LOCATION SECTION
   ========================================================================== */
.location-section {
    padding: 5rem 0 0 0; /* Keeps map flush at bottom */
}

.location-wrapper {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
}

.location-info h3 {
    margin-bottom: 1rem;
}

.location-hospital-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.location-address {
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.location-meta-box {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    margin-bottom: 2rem;
}

.location-rating {
    margin-bottom: 0.5rem;
}

.location-cta-group {
    display: flex;
    gap: 1rem;
}

.location-map-container {
    width: 100%;
    height: 450px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.location-map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ==========================================================================
   11. CONSULTATION FORM & CONTACTS
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4rem;
}

.contact-info-block {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-card {
    padding: 2rem;
}

.contact-card-title {
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.contact-card-title i {
    color: var(--accent);
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.contact-list li i {
    color: var(--accent);
    margin-top: 0.25rem;
}

.contact-list a {
    color: var(--text-dark);
}

.contact-list a:hover {
    color: var(--accent);
}

/* Inquiry Form */
.consultation-form-wrapper {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 3rem;
    box-shadow: var(--shadow-md);
}

.consultation-form-wrapper h3 {
    margin-bottom: 0.5rem;
}

.consultation-form-wrapper .form-lead {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    font-family: var(--font-body);
    font-size: 0.95rem;
    padding: 0.8rem 1rem;
    background-color: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-dark);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.form-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 1rem;
    line-height: 1.4;
}

/* Alert Notification Boxes */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    font-size: 0.925rem;
    line-height: 1.5;
}

.alert-success {
    background-color: #ECFDF5;
    border: 1px solid #A7F3D0;
    color: #065F46;
}

.alert-danger {
    background-color: #FEF2F2;
    border: 1px solid #FECACA;
    color: #991B1B;
}

/* ==========================================================================
   12. MEDICAL EDUCATION BLOG
   ========================================================================== */
.blog-layout {
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    gap: 3.5rem;
}

.blog-filters-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.blog-categories-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.category-pill {
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.35rem 1rem;
    background-color: var(--light-bg);
    color: var(--text-dark);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.category-pill:hover,
.category-pill.active {
    background-color: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

.blog-search-form {
    position: relative;
    max-width: 300px;
    width: 100%;
}

.blog-search-form .form-control {
    padding-right: 2.5rem;
}

.blog-search-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
}

/* Blog Cards Layout */
.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3.5rem;
}

.blog-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

.blog-card-image-box {
    aspect-ratio: 16 / 9;
    background-color: var(--primary);
    position: relative;
}

.blog-card-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: var(--white);
}

.blog-card-image-placeholder i {
    font-size: 2.5rem;
    opacity: 0.3;
}

.blog-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card-content {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.blog-card-title {
    font-size: 1.2rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.blog-card-title a {
    color: var(--primary);
}

.blog-card-title a:hover {
    color: var(--accent);
}

.blog-card-excerpt {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.blog-card-readmore {
    font-weight: 600;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.pagination-item {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
}

.pagination-item:hover,
.pagination-item.active {
    background-color: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

/* Sidebar Widgets */
.sidebar-widget {
    background-color: var(--light-bg);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 4px;
    margin-bottom: 2rem;
}

.sidebar-widget-title {
    font-size: 1.15rem;
    margin-bottom: 1.25rem;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 0.5rem;
}

.sidebar-categories-list li {
    margin-bottom: 0.75rem;
}

.sidebar-categories-list li:last-child {
    margin-bottom: 0;
}

.sidebar-categories-list a {
    color: var(--text-dark);
    font-size: 0.925rem;
    display: flex;
    justify-content: space-between;
}

.sidebar-categories-list a:hover {
    color: var(--accent);
}

.recent-posts-list li {
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px dashed var(--border-color);
}

.recent-posts-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.recent-post-link {
    font-weight: 600;
    font-size: 0.925rem;
    color: var(--primary);
    line-height: 1.3;
    display: block;
    margin-bottom: 0.25rem;
}

.recent-post-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Individual Post Layout */
.post-header {
    margin-bottom: 2.5rem;
}

.post-meta-details {
    display: flex;
    gap: 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.post-meta-details span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-featured-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 3rem;
    border: 1px solid var(--border-color);
}

.post-content {
    font-size: 1.05rem;
    line-height: 1.75;
}

.post-content h2, 
.post-content h3 {
    margin: 2.5rem 0 1rem 0;
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content ul, 
.post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.post-content ul {
    list-style-type: disc;
}

.post-content li {
    margin-bottom: 0.5rem;
}

.post-disclaimer-box {
    margin-top: 4rem;
    background-color: var(--light-bg);
    border-left: 4px solid var(--accent);
    padding: 1.75rem;
    font-size: 0.925rem;
    color: var(--text-muted);
}

/* Author Box */
.author-profile-box {
    margin-top: 3.5rem;
    border-top: 1px solid var(--border-color);
    padding-top: 2.5rem;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.author-avatar {
    width: 80px;
    height: 80px;
    background-color: var(--primary);
    border-radius: 50%;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.author-details h4 {
    margin-bottom: 0.25rem;
}

.author-details p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* ==========================================================================
   13. FOOTER LAYOUT & MOBILE FIXED CTA BAR
   ========================================================================== */
.main-footer {
    background-color: #051422; /* Darker Navy for Contrast */
    color: var(--white);
    border-top: 1px solid #0f273d;
}

.footer-top {
    padding: 3.5rem 0 2.5rem 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-top .footer-container {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
    gap: 2.5rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-col-title {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-col-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--accent);
}

.footer-logo-link {
    display: inline-block;
    margin-bottom: 1.25rem;
}

.footer-logo-img {
    height: 45px;
    width: auto;
    display: block;
}

/* Full white version for footer — converts teal icon + all colors to pure white */
.footer-logo-white {
    height: 48px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

.footer-description {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.footer-social-links {
    display: flex;
    gap: 0.75rem;
}

.footer-social-links a {
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-social-links a:hover {
    background-color: var(--accent);
    border-color: var(--accent);
    color: var(--white);
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: color 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 0;
}

.footer-links a:hover {
    color: var(--accent);
}

/* Chevron Quick Links */
.footer-chevron-links a {
    gap: 0.5rem;
}

.footer-chevron-links a i {
    font-size: 0.65rem;
    color: var(--accent);
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.footer-chevron-links a:hover i {
    transform: translateX(3px);
}

/* Plain Specialties Links - no icons, clean */
.footer-plain-links a {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.875rem;
    transition: color 0.25s ease, padding-left 0.25s ease;
    padding-left: 0;
}

.footer-plain-links a:hover {
    color: var(--accent);
    padding-left: 4px;
}

.footer-contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    margin-bottom: 1.5rem;
}

.footer-contact-details li {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.5;
}

.footer-contact-details li i {
    color: var(--accent);
    margin-top: 0.2rem;
    flex-shrink: 0;
    font-size: 1rem;
}

/* Hospital contact block */
.footer-contact-hospital > div {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.hospital-name {
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 600;
    display: block;
}

.footer-contact-details a {
    color: rgba(255, 255, 255, 0.65);
    transition: color 0.2s;
}

.footer-contact-details a:hover {
    color: var(--accent);
}

/* Get Directions Button */
.footer-directions-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.6rem 1rem;
    border-radius: 4px;
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
    margin-top: 0.25rem;
    white-space: nowrap;
}

.footer-directions-btn i {
    color: var(--accent);
    font-size: 0.9rem;
}

.footer-directions-btn:hover {
    background-color: var(--accent);
    border-color: var(--accent);
    color: var(--white);
}

.footer-directions-btn:hover i {
    color: var(--white);
}

/* Footer Bottom Area */
.footer-bottom {
    background-color: #030d17;
    padding: 1.25rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright-text {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0;
}

.footer-legal-links {
    display: flex;
    gap: 1.5rem;
}

.footer-legal-links a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

.footer-legal-links a:hover {
    color: var(--accent);
}

/* Mobile Bottom CTA Action Bar (Sticky at viewport bottom) */
.mobile-sticky-action-bar {
    display: none; /* Hidden on desktop */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: var(--white);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.06);
    z-index: 998;
}

.mobile-action-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-headings);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.action-call {
    color: var(--primary);
    background-color: var(--white);
}

.action-consult {
    color: var(--white);
    background-color: var(--accent);
}

.action-consult:hover {
    background-color: var(--accent-hover);
}

/* ==========================================================================
   14. SYSTEM PAGES (404, LOGIN, ACCESSIBILITY)
   ========================================================================== */
.system-page-wrapper {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 1.5rem;
}

.system-page-card {
    max-width: 500px;
    width: 100%;
    text-align: center;
}

.system-page-icon {
    font-size: 4rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.system-page-card h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.system-page-card p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

.system-page-ctas {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Keyboard Navigation focus outline rules */
a:focus-visible, 
button:focus-visible, 
input:focus-visible, 
textarea:focus-visible, 
select:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Accessibility bypass link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--accent);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    z-index: 2000;
    transition: top 0.2s ease;
    font-weight: bold;
    border-radius: 0 0 4px 0;
}

.skip-link:focus {
    top: 0;
}

/* Simple CSS classes to restrict animations on prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
