/* =======================================
   GLOBAL
======================================= */

/* Applies a premium, soft medical light blue/gray tint to the entire website */
body {
    background-color: #f4f8f9 !important;
    color: #333333; /* Keeps all text crisp and highly readable */
}

/* Ensure your card elements stay solid white so they pop out elegantly against the light background */
.doctor-card,
.site-header,
.card {
    background-color: #ffffff !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02); /* Soft shadow depth */
}


:root {
    --primary: #087c9e;
    --primary-dark: #05617c;
    --secondary: #0fa3b1;
    --accent: #35b779;
    --dark: #16323f;
    --text: #51646c;
    --light: #f5fbfc;
    --lighter: #f9fcfd;
    --white: #ffffff;
    --border: #dfecee;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--dark);
    background: #ffffff;
    font-family: "Segoe UI", Arial, sans-serif;
    line-height: 1.65;
}

a {
    text-decoration: none;
}

.section-padding {
    padding: 95px 0;
}


/* =======================================
   TOP BAR
======================================= */

.top-bar {
    background: var(--primary-dark);
    color: #ffffff;
    padding: 8px 0;
    font-size: 13px;
}


/* =======================================
   HEADER
======================================= */

.site-header {
    background: #ffffff;
    border-bottom: 1px solid #edf2f3;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 15px 0;
}

.clinic-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--dark) !important;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.1;
}

    .clinic-brand small {
        display: block;
        margin-top: 5px;
        color: #819197;
        font-size: 11px;
        font-weight: 500;
        letter-spacing: 1px;
        text-transform: uppercase;
    }

.brand-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 43px;
    height: 43px;
    color: #ffffff;
    background: var(--primary);
    border-radius: 50%;
    font-size: 25px;
}

.navbar-nav .nav-link {
    color: var(--dark);
    font-size: 15px;
    font-weight: 600;
    padding-left: 14px !important;
    padding-right: 14px !important;
}

    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link.active {
        color: var(--primary);
    }

.btn-appointment {
    padding: 11px 20px;
    color: #ffffff !important;
    background: var(--primary);
    border-radius: 7px;
    font-weight: 600;
}

    .btn-appointment:hover {
        background: var(--primary-dark);
    }


/* =======================================
   HERO
======================================= */

.hero-section {
    overflow: hidden;
    background: linear-gradient( 120deg, #b7c4c7 10%, #ffffff 55%, #b7c4c7 100% ) !important;
}

.min-vh-hero {
    min-height: 670px;
    padding: 80px 0 105px;
}

.section-tag {
    display: inline-block;
    margin-bottom: 18px;
    padding: 7px 14px;
    color: var(--primary);
    background: #e4f6f8;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-content h1 {
    max-width: 600px;
    margin-bottom: 24px;
    color: var(--dark);
    font-size: 62px;
    font-weight: 750;
    line-height: 1.07;
    letter-spacing: -2px;
}

    .hero-content h1 span {
        display: block;
        color: var(--primary);
    }

.hero-description {
    max-width: 580px;
    margin-bottom: 30px;
    color: var(--text);
    font-size: 18px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn-primary-custom {
    padding: 13px 26px;
    color: #ffffff;
    background: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 7px;
    font-weight: 600;
}

    .btn-primary-custom:hover {
        color: #ffffff;
        background: var(--primary-dark);
        border-color: var(--primary-dark);
    }

.btn-outline-custom {
    padding: 13px 26px;
    color: var(--primary);
    background: #ffffff;
    border: 2px solid var(--primary);
    border-radius: 7px;
    font-weight: 600;
}

    .btn-outline-custom:hover {
        color: #ffffff;
        background: var(--primary);
    }

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    margin-top: 35px;
    color: #617177;
    font-size: 14px;
}

    .hero-features strong {
        margin-right: 4px;
        color: var(--accent);
    }

.hero-visual {
    position: relative;
    max-width: 520px;
    margin-left: auto;
}

.hero-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 490px;
    /* 1. Removed padding: 20px so the photo stretches all the way to the border edges */
    padding: 0;
    color: var(--primary);
    background: linear-gradient( 135deg, #d7f1f4, #edf9fa );
    border-radius: 35px 8px 35px 8px;
    text-align: center;
    /* 2. Added overflow hidden to cleanly clip the image to your unique border curves */
    overflow: hidden;
}

    .hero-image-placeholder img {
        /* 3. Forces the image element to fill the layout block boundaries */
        width: 100%;
        height: 100%;
        min-height: 490px;
        display: block;
        /* 4. Swapped 'contain' to 'cover' so it fills the background box without gaps */
        object-fit: cover;
        border-radius: inherit;
    }

.eye-symbol {
    display: block;
    margin-bottom: 12px;
    font-size: 95px;
}

.hero-image-placeholder p {
    margin: 0 0 4px;
    font-size: 20px;
    font-weight: 700;
}

.hero-image-placeholder small {
    color: var(--text);
}

.hero-info-card {
    position: absolute;
    bottom: 35px;
    left: -40px;
    display: flex;
    align-items: center;
    min-width: 245px;
    gap: 12px;
    padding: 16px 20px;
    background: #c6d6cb !important;
    border-radius: 40px 40px 40px 40px;
    box-shadow: 0 15px 40px rgba(15, 44, 51, 0.14);
}

.info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: #e5f7f8;
    border-radius: 50%;
}

.hero-info-card small {
    display: block;
    color: #206b88;
}

.hero-info-card strong {
    display: block;
    color: var(--dark);
}


/* =======================================
   QUICK INFO
======================================= */

.quick-info {
    position: relative;
    z-index: 5;
    margin-top: -45px;
}

.quick-info-box {
    overflow: hidden;
    background: #86e3fa !important;
    border-radius: 13px;
    box-shadow: 0 12px 45px rgba(13, 67, 79, 0.12);
}

.quick-info-item {
    display: flex;
    align-items: center;
    min-height: 105px;
    gap: 15px;
    padding: 20px 30px;
    border-right: 1px solid var(--border);
}

    .quick-info-item:last-child {
        border-right: 0;
    }

.quick-icon {
    font-size: 27px;
}

.quick-info-item h5 {
    margin-bottom: 2px;
    font-size: 15px;
    font-weight: 700;
}

.quick-info-item p {
    margin: 0;
    color: var(--text);
    font-size: 14px;
}

/* Zero out the section layer thickness */
.quick-info-floating-section {
    position: relative;
    z-index: 10; /* Lifts it higher than both Hero and About sections */
    height: 0;   /* Collapses structural footprint to keep sections touching */
    padding: 0 !important;
    margin: 0 !important;
}

/* The actual 50/50 floating panel */
.quick-info-overlay-card {
    background: #eeeee8 !important; /* Forces absolute crisp white card surface */
    border-radius: 40px;
    padding: 2px 20px;
    
    /* Perfect 50/50 shift: Pulls up exactly half the estimated height of the bar */
    transform: translateY(-50%); 
    
    /* Modern shadow that defines the layout edge distinctly over both colors */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Internal layout balancing */
.quick-info-split-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
}

/* Optional layout border line between cards on desktop layout windows */
@media (min-width: 768px) {
    .quick-info-split-item:not(:last-child) {
        border-right: 1px solid #e9ecef;
    }
}

.quick-icon-wrapper {
    font-size: 1.75rem;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quick-text-wrapper h5 {
    margin: 0 0 4px 0;
    font-size: 1rem;
    font-weight: 600;
    color: #212529;
}

.quick-text-wrapper p {
    margin: 0;
    font-size: 0.85rem;
    color: #6c757d;
    line-height: 1.4;
}

/* 🎯 IMPORTANT ADJUSTMENT: Give About section breathing room at the top */
#about.section-padding {
    padding-top: 120px !important; /* Pushes about text away from the overlay card */
}



/* =======================================
   GENERAL SECTIONS
======================================= */

.section-title {
    margin-bottom: 20px;
    color: var(--dark);
    font-size: 42px;
    font-weight: 750;
    line-height: 1.15;
}

.section-description {
    color: var(--text);
    font-size: 18px;
}

.section-heading {
    max-width: 700px;
    margin: 0 auto 55px;
}

    .section-heading p {
        color: var(--text);
    }


/* =======================================
   ABOUT
======================================= */

.about-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 480px;
    color: var(--primary);
    background: #e8f7f8;
    border-radius: 12px 55px 12px 55px;
    text-align: center;
}

    .about-image-placeholder span {
        display: block;
        font-size: 80px;
    }

    .about-image-placeholder p {
        font-weight: 700;
    }

.about-points {
    margin-top: 90px;
}

.about-point {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

    .about-point > span {
        display: flex;
        flex: 0 0 31px;
        align-items: center;
        justify-content: center;
        width: 31px;
        height: 31px;
        color: #ffffff;
        background: var(--accent);
        border-radius: 50%;
        font-weight: bold;
    }

    .about-point strong {
        display: block;
        margin-bottom: 3px;
    }

    .about-point p {
        margin-bottom: 0;
        color: var(--text);
        font-size: 14px;
    }


/* =======================================
   SERVICES
======================================= */

.services-section {
    background: var(--lighter);
}

.service-card {
    height: 100%;
    padding: 35px 30px;
    background: #f0dede !important;
    border: 1px solid #e7eff1;
    border-radius: 12px;
    transition: 0.25s ease;
}

    .service-card:hover {
        border-color: transparent;
        transform: translateY(-6px);
        box-shadow: 0 15px 40px rgba(20, 70, 82, 0.10);
    }

.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    margin-bottom: 22px;
    color: var(--primary);
    background: #eaf8fa;
    border-radius: 12px;
    font-size: 27px;
}

.service-card h4 {
    margin-bottom: 13px;
    font-size: 20px;
    font-weight: 700;
}

.service-card p {
    min-height: 74px;
    color: var(--text);
    font-size: 14px;
}

.service-card a {
    color: var(--primary);
    font-size: 14px;
    font-weight: 700;
}


/* =======================================
   WHY CHOOSE US
======================================= */

.why-section {
    color: #ffffff;
    background: var(--primary-dark);
}

.light-tag {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.13);
}

.why-section h2 {
    max-width: 550px;
    font-size: 42px;
    font-weight: 750;
}

.why-intro {
    max-width: 600px;
    color: #c9e2e8;
    font-size: 17px;
}

.why-item {
    display: flex;
    gap: 12px;
}

    .why-item > span {
        color: #65dfaa;
        font-size: 20px;
    }

    .why-item strong {
        display: block;
        margin-bottom: 4px;
    }

    .why-item p {
        color: #bddbe1;
        font-size: 13px;
    }

.why-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 420px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 45px 10px 45px 10px;
    text-align: center;
}

    .why-image-placeholder span {
        display: block;
        font-size: 80px;
    }


/* =======================================
   DOCTORS
======================================= */

/* Smoothly zooms the doctor profile photo inside its bounding box */
.zoom-effect {
    transition: transform 0.3s ease-in-out;
}

.doctor-card:hover .zoom-effect {
    transform: scale(1.08);
}

.doctor-card {
    overflow: hidden;
    height: 100%;
    background: #dce2e2 !important;
    border: 1px solid #e6eff0;
    border-radius: 13px;
    transition: 0.25s;
}

    .doctor-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 14px 35px rgba(12, 68, 79, 0.10);
    }

.doctor-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 310px;
    color: var(--primary);
    background: #e8f6f8;
    font-weight: 600;
}

.doctor-details {
    padding: 25px;
}

    .doctor-details h4 {
        margin-bottom: 3px;
        font-size: 20px;
        font-weight: 700;
    }

    .doctor-details > span {
        display: block;
        margin-bottom: 15px;
        color: var(--primary);
        font-size: 13px;
        font-weight: 600;
    }

    .doctor-details p {
        color: var(--text);
        font-size: 14px;
    }


/* =======================================
   APPOINTMENT
======================================= */

.appointment-section {
    padding: 0 0 95px;
}

.appointment-box {
    padding: 55px;
    color: #ffffff;
    background: linear-gradient( 120deg, var(--primary), var(--secondary) );
    border-radius: 18px;
}

.appointment-label {
    display: block;
    margin-bottom: 10px;
    color: #dff7f8;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.appointment-box h2 {
    max-width: 650px;
    font-size: 38px;
    font-weight: 750;
}

.appointment-box p {
    max-width: 720px;
    margin-bottom: 0;
    color: #e1f6f7;
}

.appointment-main-btn {
    padding: 14px 27px;
    color: var(--primary);
    font-weight: 700;
}


/* =======================================
   FOOTER
======================================= */

.site-footer {
    padding: 70px 0 25px;
    color: #b9c9ce;
    background: #102a34;
    font-size: 14px;
}

.footer-brand {
    color: #ffffff;
    font-size: 23px;
    font-weight: 700;
}

.site-footer h5 {
    margin-bottom: 20px;
    color: #ffffff;
    font-size: 16px;
}

.footer-links {
    margin: 0;
    padding: 0;
    list-style: none;
}

    .footer-links li {
        margin-bottom: 9px;
    }

    .footer-links a {
        color: #b9c9ce;
    }

        .footer-links a:hover {
            color: #ffffff;
        }

.site-footer hr {
    margin: 45px 0 22px;
    border-color: #54717b;
}

.footer-bottom {
    font-size: 13px;
}


/* =======================================
   RESPONSIVE
======================================= */

@media (max-width: 991.98px) {

    .navbar-collapse {
        padding: 15px 0 5px;
    }

    .hero-content h1 {
        font-size: 48px;
    }

    .min-vh-hero {
        padding: 70px 0 120px;
    }

    .hero-visual {
        margin-right: auto;
    }

    .quick-info-item {
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

    .section-title,
    .why-section h2 {
        font-size: 36px;
    }
}


@media (max-width: 767.98px) {

    .section-padding {
        padding: 70px 0;
    }

    .hero-content h1 {
        font-size: 42px;
        letter-spacing: -1px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-image-placeholder {
        min-height: 370px;
    }

    .hero-info-card {
        bottom: 20px;
        left: 15px;
    }

    .quick-info {
        margin-top: -35px;
    }

    .quick-info-box {
        margin-left: 8px;
        margin-right: 8px;
    }

    .section-title {
        font-size: 32px;
    }

    .about-image-placeholder {
        min-height: 350px;
    }

    .appointment-box {
        padding: 35px 25px;
    }

        .appointment-box h2 {
            font-size: 30px;
        }
}


@media (max-width: 575.98px) {

    .hero-content h1 {
        font-size: 38px;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .hero-features {
        display: block;
    }

        .hero-features div {
            margin-bottom: 8px;
        }

    .hero-info-card {
        position: relative;
        bottom: auto;
        left: auto;
        margin: -30px 15px 0;
    }

    .clinic-brand {
        font-size: 18px;
    }
}

/* ==========================================================================
   SUNAJAR ADMIN DASHBOARD STYLES
   ========================================================================== */

/* Login Page Container alignment centering */
.admin-login-body {
    background: #f4f7f6; 
    height: 100vh; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Card Box structural shadows */
.login-card { 
    width: 100%; 
    max-width: 400px; 
    padding: 35px; 
    border-radius: 12px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.08); 
    background: #fff; 
    border: 1px solid #eef2f1; 
}

/* Data Table Grid layout corrections */
.table-card { 
    background: #fff; 
    border-radius: 12px; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.04); 
    border: 1px solid #eef2f1; 
    padding: 25px; 
}
.table th { 
    font-weight: 600; 
    color: #4b5563; 
    background-color: #f9fafb !important; 
    text-transform: uppercase; 
    font-size: 0.75rem; 
    letter-spacing: 0.5px; 
    padding: 14px; 
}
.table td { 
    padding: 16px 14px; 
    vertical-align: top; 
    border-bottom: 1px solid #f3f4f6; 
}
.patient-name { 
    font-size: 1.05rem; 
    font-weight: 600; 
    color: #1e3a8a; 
}

/* ==========================================================================
   CIRCULAR BRANDING SOCIAL ICONS
   ========================================================================== */
.social-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    color: #ffffff !important;
    text-decoration: none;
    font-size: 16px;
    transition: transform 0.2s ease, filter 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Subtle zoom interaction when hovered */
.social-circle:hover {
    transform: scale(1.1);
    filter: brightness(1.08);
}

/* Exact Brand Color Backgrounds */
.bg-facebook {
    background-color: #3b5998;
}

.bg-x {
    background-color: #000000;
}

/* Linear Gradient representing the official Instagram branding logo look */
.bg-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.bg-youtube {
    background-color: #ff0000;
}

.bg-whatsapp {
    background-color: #25D366;
}

/* ==========================================================================
    FOOTER LEGAL LINKS
    ========================================================================== */
.footer-legal-link {
    transition: color 0.2s ease-in-out;
}
.footer-legal-link:hover {
    color: #198754 !important; /* Changes text to clinical success-green on hover */
    text-decoration: underline !important;
}

