/* ==========================================================================
   0. DESIGN SYSTEM & CORE VARIABLES
   ========================================================================== */
:root {
    --primary-color: #1a73e8;       /* Trustworthy Health Blue */
    --primary-dark: #155cb4;        /* Deep Slate Blue Hover */
    --secondary-color: #0d233a;     /* Deep Navy Contrast Primary */
    --text-color: #4a5568;          /* Light slate Charcoal Body Content */
    --heading-color: #1e293b;       /* Dark Indigo-Grey Headings */
    --light-bg: #f8fafc;            /* Clean Blue-Grey Off-White tint */
    --white: #ffffff;
    --border-color: #e2e8f0;
    --max-width: 1200px;
    --transition-speed: 0.3s;
    --header-height: 80px;
}

/* Base Configuration & Resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background-color: var(--white);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    color: var(--heading-color);
    font-weight: 600;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-speed) ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Layout Utilities - Fixed Max Width Frameworks */
.container {
    width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--light-bg);
}

/* Buttons */
.btn {
    display: inline-block;
    font-weight: 500;
    padding: 12px 28px;
    border-radius: 6px;
    font-size: 0.95rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition-speed) ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-text {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-text:hover {
    color: var(--primary-dark);
}

.btn-text i {
    transition: transform var(--transition-speed);
}

.btn-text:hover i {
    transform: translateX(5px);
}


#mannual_add{
    background-color: var(--primary-color);
    padding: 20px;
    font-size: 22px;
    text-align: center;
    color: var(--light-bg);
    display: flex;
    justify-content: center;
}

#container{
    width: 1150px;
}


/* ==========================================================================
   1. NAVIGATION HEADER & DROPDOWNS
   ========================================================================== */
.site-header {
    background-color: var(--white);
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: all var(--transition-speed) ease;
    border-bottom: 1px solid transparent;
}

.site-header.sticky {
    height: 70px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border-color: var(--border-color);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo i { color: var(--primary-color); }
.logo span { color: var(--primary-color); }

.nav-menu {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: #64748b;
    position: relative;
    padding: 24px 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
}

.nav-phone {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 6px;
    background-color: rgba(26, 115, 232, 0.06);
    border: 1px solid rgba(26, 115, 232, 0.1);
}

.nav-phone:hover {
    background-color: var(--primary-color);
    color: var(--white) !important;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Dropdown Elements */
.dropdown {
    position: relative;
}

.icon-small {
    font-size: 0.7rem;
    transition: transform var(--transition-speed);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    background-color: var(--white);
    min-width: 260px;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    padding: 12px 0;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-speed) ease;
    z-index: 1100;
}

.dropdown-menu.cols-2 {
    min-width: 540px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px 12px;
    padding: 16px;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown:hover .icon-small {
    transform: rotate(180deg);
}

.dropdown-menu li a {
    display: block;
    padding: 8px 16px;
    font-size: 0.9rem;
    color: var(--text-color);
    font-weight: 400;
    border-radius: 4px;
}

.dropdown-menu li a:hover {
    background-color: var(--light-bg);
    color: var(--primary-color);
}



/* ==========================================================================
   2. PURE IMAGE HERO SLIDER (CLEANED)
   ========================================================================== */
.hero-slider-section {
    position: relative;
    height: 70vh; /* Scaled down for sleek photo viewport presentation */
    width: 100%;
    overflow: hidden;
    background-color: #000;
}

.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s;
    z-index: 1;
}

.slide img{
    width: 100%;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.4);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1rem;
    backdrop-filter: blur(4px);
    transition: all var(--transition-speed);
}

.slider-arrow:hover { background-color: var(--primary-color); }
.slider-arrow.prev { left: 24px; }
.slider-arrow.next { right: 24px; }

.slider-indicators {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all var(--transition-speed);
}

.indicator.active {
    background-color: var(--primary-color);
    width: 28px;
    border-radius: 6px;
}


/* ==========================================================================
   3. SERVICES CARDS
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background-color: var(--white);
    padding: 40px 32px;
    border-radius: 8px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.02);
    border: 1px solid var(--border-color);
    transition: all var(--transition-speed) cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card h3 {
    font-size: 1.35rem;
    margin-bottom: 14px;
}

.service-card p {
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(26, 115, 232, 0.1);
    border-color: rgba(26, 115, 232, 0.2);
}



/* ==========================================================================
   4. OFFICE CONTAINER BLOCK
   ========================================================================== */
.doctor-container {
    display: grid;
    grid-template-columns: 4.5fr 7.5fr;
    gap: 60px;
    align-items: center;
}

.doctor-image-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.doctor-image-wrapper img{
    width: 100%;
}

.doctor-content .subtitle {
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
}

.doctor-content h2 {
    font-size: 2.25rem;
    margin: 8px 0 24px 0;
}

.doctor-meta {
    font-size: 1rem;
    margin-bottom: 10px;
}

.doctor-meta strong {
    color: var(--heading-color);
    font-weight: 500;
}

.doctor-divider {
    border: 0;
    height: 1px;
    background-color: var(--border-color);
    margin: 24px 0;
}

.doctor-bio { margin-bottom: 36px; }



/* ==========================================================================
   5. DR. RAMESH GUPTA PROFILE MODULE (THEMED RECONSTRUCTION)
   ========================================================================== */

.doctor-profile-section {
    background-color: var(--white);
    color: var(--text-color);
}

/* Header Typography */
.profile-header {
    margin-bottom: 30px;
}

.profile-header h2 {
    font-size: 2.6rem;
    color: var(--heading-color);
    font-weight: 700;
    margin: 0 0 6px 0;
}

.profile-address {
    font-size: 1.15rem;
    color: var(--primary-color);
    font-weight: 600;
    margin: 0;
}

.profile-address i {
    margin-right: 6px;
}

/* Core Split Body Layout via Flexbox */
.profile-body-layout {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 45px;
    margin-bottom: 40px;
}

.profile-text-content {
    flex: 7.5;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.profile-graphic-pane {
    flex: 3.5;
    text-align: center;
}

/* Typography Rules */
.bio-text {
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--text-color);
    margin: 0;
}

.bio-text.dynamic-lead {
    font-size: 1.15rem;
    color: var(--heading-color);
    font-weight: 500;
}

.theme-link {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px dotted var(--primary-color);
    font-weight: 500;
}

.theme-link:hover {
    color: var(--primary-dark);
    border-bottom-style: solid;
}

/* Services and Clean Custom Bullets */
.services-block {
    margin: 10px 0;
}

.services-block h3 {
    font-size: 1.15rem;
    color: var(--heading-color);
    margin: 0 0 14px 0;
    font-weight: 600;
}

.custom-bullet-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.custom-bullet-list li {
    font-size: 1rem;
    position: relative;
    padding-left: 22px;
    color: var(--text-color);
}

.custom-bullet-list li::before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.4rem;
    position: absolute;
    left: 2px;
    top: -4px;
}

/* Contact Anchor Treatment */
.cta-text {
    font-size: 1.05rem;
    color: var(--heading-color);
    font-weight: 500;
    margin: 0;
}

.phone-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.phone-link:hover {
    text-decoration: underline;
}

/* Clean Sidebar Graphics Component - Border completely stripped */
.anatomy-illustration {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.anatomy-caption {
    display: block;
    margin-top: 12px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    color: #64748b;
}

/* Insurance Multi-language Footnote Section */
.insurance-footer-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.insurance-lang-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.insurance-lang-row p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.insurance-en {
    color: var(--heading-color);
    font-weight: 600;
}

.insurance-es {
    color: var(--text-color);
    font-weight: 500;
}

.insurance-lang-row.es-border {
    padding-top: 16px;
    border-top: 1px dashed var(--border-color);
}

.security-icon {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-top: 2px;
}

.language-icon {
    font-size: 1.25rem;
    color: #64748b;
    margin-top: 2px;
}



/* ==========================================================================
   6. MAP & LOCATION STRUCT
   ========================================================================== */
.location-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 550px;
}

.location-map-container {
    width: 100%;
    height: 100%;
    min-height: 400px;
}

.location-content-container {
    padding: 80px 10%;
    display: flex;
    align-items: center;
}

.contact-box h2 { font-size: 2rem; margin-bottom: 16px; }
.contact-box > p { margin-bottom: 36px; }
.contact-details { display: flex; flex-direction: column; gap: 24px; }

.contact-item {
    display: grid;
    grid-template-columns: 40px 1fr;
    align-items: start;
}

.contact-item i { font-size: 1.25rem; color: var(--primary-color); margin-top: 4px; }
.contact-item h4 { font-size: 1.05rem; margin-bottom: 4px; }
.contact-item p { font-size: 0.95rem; }



/* ==========================================================================
   7. FOOTER CORE SYSTEM
   ========================================================================== */
.site-footer {
    background-color: var(--secondary-color);
    color: #94a3b8;
    padding-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 4.5fr 3.5fr 4fr;
    gap: 60px;
    padding-bottom: 50px;
}

.footer-logo { color: var(--white); margin-bottom: 20px; }
.footer-logo span { color: var(--primary-color); }
.footer-brand p { font-size: 0.95rem; margin-bottom: 24px; }

.footer-links h3, .footer-newsletter h3 {
    color: var(--white);
    font-size: 1.15rem;
    margin-bottom: 24px;
}

.footer-links ul { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { font-size: 0.95rem; }

.footer-links a:hover {
    color: var(--white);
    padding-left: 6px;
}

.footer-newsletter p { font-size: 0.95rem; margin-bottom: 20px; }

.footer-bottom { background-color: #081625; padding: 24px 0; text-align: center; font-size: 0.9rem; }


/* Animation Effect for Footer */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}



/* ==========================================================================
   Other Pages
   ========================================================================== */

/* Full-Page Background Layout & Top Cushion Padding Area */
.page-viewport-wrapper {
    background-color: var(--light-bg);
    padding: 60px 20px;
    min-height: 100vh;
    width: 100%;
}

/* Centralized content block structural card */
.themed-body-box {
    max-width: 1140px;
    margin: 0 auto;
    margin-top: 50px;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

/* Card inner text structural margins */
.themed-inner-padding {
    padding: 50px;
}

.profile-lang-segment {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.med-fullname {
    font-size: 1.8rem;
    color: var(--heading-color);
    font-weight: 700;
    margin: 0;
}

.med-credentials {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-color);
    margin: -4px 0 0 0;
}

.med-specialty-subtitle {
    font-size: 1.3rem;
    color: var(--heading-color);
    font-weight: 600;
    margin: 0 0 4px 0;
}

.med-body-p {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--text-color);
    margin: 0;
}

.med-inline-link {
    color: var(--primary-color);
    text-decoration: none;
}

.med-inline-link:hover {
    text-decoration: underline;
}

/* Chronological numeric list component layouts */
.med-ordered-fallback {
    list-style: none;
    padding: 0;
    margin: 4px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.med-ordered-fallback li {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-color);
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.med-ordered-fallback li span {
    font-weight: 600;
    color: var(--primary-color);
    min-width: 18px;
}

.med-ordered-fallback li a {
    color: var(--primary-color);
    text-decoration: none;
}

.med-ordered-fallback li a:hover {
    text-decoration: underline;
}

.link-styled-list li a {
    font-weight: 500;
}

/* Category header titles decoration formatting */
.med-list-label {
    font-size: 1.1rem;
    color: var(--heading-color);
    font-weight: 700;
    margin: 16px 0 0 0;
    text-decoration: underline;
}

.med-procedure-group-heading {
    font-size: 1rem;
    color: var(--heading-color);
    font-weight: 700;
    margin: 12px 0 -2px 0;
}

/* Horizontal display adjustments for affiliation entries */
.med-facility-card-row {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-left: 12px;
    margin: 4px 0;
}

.facility-entry {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.facility-anchor {
    font-size: 0.95rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.facility-anchor:hover {
    text-decoration: underline;
}

.facility-entry span {
    font-size: 0.9rem;
    color: var(--text-color);
}

/* Bold highlighted footnote details blocks for legal/insurance acceptances */
.med-insurance-alert-text {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--heading-color);
    font-weight: 700;
    margin: 4px 0 0 0;
}

/* Thin card section breaker divider styling */
.med-section-break {
    border: 0;
    height: 1px;
    background-color: var(--border-color);
    margin: 45px 0;
}







/* ---------------------- Responsive --------------------------- */

/* ==========================================================================
   8. MOBILE NAVIGATION & HAMBURGER SYSTEM
   ========================================================================== */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1100;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--secondary-color);
    border-radius: 2px;
    transition: all var(--transition-speed) ease;
}

/* Transform hamburger bars into an 'X' close indicator when active */
.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}



/* ==========================================================================
   9. MEDIA QUERIES (RESPONSIVE VIEWPORTS)
   ========================================================================== */

/* --- Tablet / Large Mobile Breakpoint (Max-width: 992px) --- */
@media screen and (max-width: 992px) {
    .container {
        width: 100%;
        padding: 0 20px;
    }

    .section-padding {
        padding: 60px 0;
    }

    /* Mobile Header adjustments */
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background-color: var(--white);
        box-shadow: -5px 0 25px rgba(0,0,0,0.1);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 100px 30px 40px 30px;
        gap: 0;
        transition: right var(--transition-speed) ease;
        overflow-y: auto;
        z-index: 1050;
    }

    .nav-menu.open {
        right: 0;
    }

    .nav-link {
        width: 100%;
        padding: 15px 0;
        border-bottom: 1px solid var(--border-color);
        justify-content: space-between;
    }

    .header-actions {
        margin-right: 20px;
    }

    /* Convert Hover Dropdowns to click-ready/stackable elements for mobile devices */
    .dropdown {
        width: 100%;
    }

    .dropdown-menu {
        position: relative;
        top: 0;
        left: 0;
        transform: none !important;
        opacity: 1;
        visibility: visible;
        display: none;
        box-shadow: none;
        border: none;
        padding: 0 0 0 15px;
        min-width: 100%;
        background-color: var(--light-bg);
    }

    .dropdown-menu.cols-2 {
        min-width: 100%;
        grid-template-columns: 1fr;
        padding: 0 0 0 15px;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .dropdown:hover .dropdown-menu {
        transform: none;
    }

    /* Section Layout Transformations */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .doctor-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .profile-body-layout {
        flex-direction: column-reverse;
        gap: 30px;
    }

    .profile-graphic-pane {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .location-section {
        grid-template-columns: 1fr;
    }

    .location-map-container {
        height: 350px;
    }

    .location-content-container {
        padding: 50px 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

/* --- Small Mobile Breakpoint (Max-width: 768px) --- */
@media screen and (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .hero-slider-section {
        height: 50vh;
    }

    .slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    .slider-arrow.prev { left: 10px; }
    .slider-arrow.next { right: 10px; }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .profile-header h2 {
        font-size: 2rem;
    }

    .insurance-lang-row {
        flex-direction: column;
        gap: 8px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Subpages Layout Customizations (Other Pages) */
    .themed-inner-padding {
        padding: 30px 20px;
    }

    .page-viewport-wrapper {
        padding: 30px 10px;
    }
}

/* --- Micro Devices (Max-width: 480px) --- */
@media screen and (max-width: 480px) {
    .header-actions {
        display: none; /* Hises desktop phone action bar layout on micro screen viewports */
    }
    
    .nav-menu::after {
        content: "Call: (201) 794-8900";
        display: block;
        margin-top: 30px;
        font-weight: 600;
        color: var(--primary-color);
    }
}