/* ========================================================================
   LAYOUT STANDARDS - Bootstrap-like Consistent Spacing System
   ======================================================================== */

/* ========================================================================
   ZOOM STABILITY - Prevent layout issues on browser zoom
   ======================================================================== */
* {
    /* Prevent text inflation on mobile browsers */
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

html {
    /* Use stable font sizing */
    font-size: 16px;
}

body {
    /* Prevent layout shifts */
    overflow-x: hidden;
    position: relative;
}

/* Container System - Consistent max-width across all screen sizes */
.container,
.container-fluid {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.container {
    max-width: 1280px;
    padding-left: 1rem;
    padding-right: 1rem;
}

.container-fluid {
    max-width: 1280px;
    padding-left: 1rem;
    padding-right: 1rem;
    margin-left: auto;
    margin-right: auto;
}

/* Section Padding - Consistent vertical spacing */
section,
.section {
    padding: 4rem 0;
}

/* Responsive Section Padding */
@media (min-width: 768px) {
    section,
    .section {
        padding: 5rem 0;
    }
}

@media (min-width: 1024px) {
    section,
    .section {
        padding: 6rem 0;
    }
    
    .container,
    .container-fluid {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

@media (min-width: 1280px) {
    .container,
    .container-fluid {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* Large Desktop (1440px+) - Maintain same spacing */
@media (min-width: 1440px) {
    .container,
    .container-fluid {
        max-width: 1280px;
        padding-left: 2rem;
        padding-right: 2rem;
    }
    
    section,
    .section {
        padding: 6rem 0;
    }
}

/* Extra Large Desktop (1920px+) - Maintain same spacing */
@media (min-width: 1920px) {
    .container,
    .container-fluid {
        max-width: 1280px;
        padding-left: 2rem;
        padding-right: 2rem;
    }
    
    section,
    .section {
        padding: 6rem 0;
    }
}

/* Paragraph Margins - Consistent spacing */
p {
    margin-bottom: 1rem;
}

p:last-child {
    margin-bottom: 0;
}

/* Heading Margins - Consistent spacing */
h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    margin-bottom: 1rem;
}

/* Doctor cards (used across service detail pages) */
.doctor-card {
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}

.doctor-card .doctor-name {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.doctor-card:hover {
    transform: translateY(-1px);
}

.doctor-card .doctor-name a {
    color: #1f2937 !important;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    padding: 0.45rem 0.75rem;
    border-radius: 0.6rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 700;
    text-decoration: none !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.doctor-card:hover .doctor-name a {
    color: #2563eb !important;
    background: #eef2ff;
    border-color: #c7d2fe;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12);
}

.doctor-experience-badge {
    background: #eef2ff;
    color: #4338ca;
    border: 1px solid #e0e7ff;
    border-radius: 999px;
    padding: 0.25rem 0.65rem;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.2;
}

.doctor-cta {
    margin-top: 0.35rem;
    color: #2563eb;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    text-decoration: none;
    cursor: pointer;
}

.doctor-cta::after {
    content: '→';
    transition: transform 0.2s ease;
}

.doctor-card:hover .doctor-cta::after {
    transform: translateX(3px);
}

.doctor-experience-line {
    margin-top: 0.2rem;
    font-weight: 600;
    color: #374151;
    font-size: 0.95rem;
}

/* Page Loader */
.page-loader {
    position: fixed;
    inset: 0;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    z-index: 3000;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.page-loader.loader-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-logo {
    width: 360px;
    height: auto;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.1));
}

.loader-spinner {
    width: 44px;
    height: 44px;
    border: 3px solid #e5e7eb;
    border-top-color: #2563eb;
    border-radius: 999px;
    animation: loader-spin 0.9s linear infinite;
}

.loader-text {
    font-weight: 600;
    color: #1f2937;
    letter-spacing: 0.01em;
}

@keyframes loader-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Section Title Margins */
.section-title {
    margin-bottom: 1rem;
}

.section-subtitle {
    margin-bottom: 3rem;
}

/* Content Alignment - Consistent across all sizes */
.text-left {
    text-align: left;
}

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

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

/* Flexbox Alignment - Consistent */
.d-flex {
    display: flex;
}

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

.justify-content-center {
    justify-content: center;
}

.justify-content-between {
    justify-content: space-between;
}

/* Grid Gaps - Consistent spacing */
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }
.gap-5 { gap: 3rem; }

