/* ============================================================
   KGS Surgicals — Layout & UI Fixes
   ============================================================ */

/* ---- SIDEBAR / OFFCANVAS PANEL FIX ---- */

/* Remove the 5 stacked overlay divs that cause the blank blue area */
.xs-sidebar-group .xs-overlay {
    display: none !important;
}

/* Sidebar panel — clean slide-in from right */
.xs-sidebar-widget {
    position: fixed;
    right: -480px;
    top: 0;
    bottom: 0;
    width: 100%;
    max-width: 420px;
    height: 100%;
    background: #fff;
    z-index: 999999;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: -4px 0 30px rgba(0, 0, 0, 0.15);
    transition: right 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    visibility: hidden;
    opacity: 1;
}

.xs-sidebar-group.isActive .xs-sidebar-widget {
    right: 0;
    visibility: visible;
    transition: right 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark backdrop when sidebar is open */
.xs-sidebar-group::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease;
}
.xs-sidebar-group.isActive::before {
    opacity: 1;
    visibility: visible;
}

/* Sidebar container padding */
.sidebar-widget-container {
    opacity: 1 !important;
    visibility: visible !important;
    position: relative;
}

.sidebar-textwidget {
    padding: 30px 30px 40px;
}

/* Close button */
.xs-sidebar-group .widget-heading {
    position: relative;
    top: auto;
    right: auto;
    display: flex;
    justify-content: flex-end;
    padding: 20px 24px 10px;
    z-index: 1;
}

.xs-sidebar-group .close-side-widget {
    width: 36px;
    height: 36px;
    background: #f0f0f0;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #333 !important;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    line-height: 1;
}
.xs-sidebar-group .close-side-widget:hover {
    background: var(--theme-color);
    color: #fff !important;
}

/* Logo */
.xs-sidebar-group .logo {
    margin-bottom: 20px;
}
.xs-sidebar-group .logo img {
    max-width: 160px;
    height: auto;
}

/* Description text */
.xs-sidebar-group .content-inner .text {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #eee;
}
.xs-sidebar-group .content-inner .text h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 8px;
    line-height: 1.4;
}
.xs-sidebar-group .content-inner p {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    margin: 0;
}

/* Info box */
.xs-sidebar-group .content-inner .info-box {
    margin-bottom: 0;
}
.xs-sidebar-group .content-inner .info-box h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 16px;
}
.xs-sidebar-group .content-inner .info-box .info {
    list-style: none;
    padding: 0;
    margin: 0;
}
.xs-sidebar-group .content-inner .info-box .info li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 14px;
    padding: 0;
}
.xs-sidebar-group .content-inner .info-box .info li:last-child {
    margin-bottom: 0;
}
.xs-sidebar-group .content-inner .info-box .info li .icon {
    position: static;
    width: 36px;
    height: 36px;
    background: #f0f8f4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.xs-sidebar-group .content-inner .info-box .info li .icon img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}
.xs-sidebar-group .content-inner .info-box .info li a {
    color: #555;
    text-decoration: none;
}
.xs-sidebar-group .content-inner .info-box .info li a:hover {
    color: var(--theme-color);
    text-decoration: none;
}

/* ---- CONTACT FORM FIX ---- */

/* Form fields */
.contact-section .form-inner .form-group {
    margin-bottom: 20px;
}
.contact-section .form-inner .form-group input,
.contact-section .form-inner .form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #dde2e8;
    border-radius: 4px;
    font-size: 14.5px;
    color: #333;
    background: #fff;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    font-family: inherit;
    line-height: 1.5;
    -webkit-appearance: none;
    appearance: none;
}
.contact-section .form-inner .form-group input::placeholder,
.contact-section .form-inner .form-group textarea::placeholder {
    color: #aaa;
    font-size: 14px;
}
.contact-section .form-inner .form-group input:focus,
.contact-section .form-inner .form-group textarea:focus {
    border-color: var(--theme-color) !important;
    box-shadow: 0 0 0 3px rgba(30, 125, 77, 0.1);
    background: #fff;
}
.contact-section .form-inner .form-group textarea {
    resize: vertical;
    min-height: 140px;
}

/* Contact info cards */
.contact-info-card {
    background: #fff !important;
    border: 1px solid #e8edf2;
    border-left: 4px solid var(--theme-color);
    border-radius: 6px !important;
    padding: 20px 22px !important;
    margin-bottom: 16px !important;
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: box-shadow 0.2s ease;
}
.contact-info-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.09);
}
.contact-info-card .icon {
    width: 44px !important;
    height: 44px !important;
    background: #f0f8f4 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
    color: var(--theme-color) !important;
    flex-shrink: 0 !important;
}
.contact-info-card h5 {
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #999 !important;
    margin-bottom: 4px !important;
    opacity: 1 !important;
}
.contact-info-card p,
.contact-info-card a {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: var(--secondary-color) !important;
    margin: 0 !important;
    text-decoration: none !important;
    line-height: 1.5;
}
.contact-info-card a:hover {
    color: var(--theme-color) !important;
}

/* Contact section layout spacing */
.contact-section.contact-page-one .content-column {
    padding-right: 40px;
}
@media (max-width: 991px) {
    .contact-section.contact-page-one .content-column {
        padding-right: 15px;
        margin-bottom: 40px;
    }
}


/* ============================================================
   FONT ICON FIX — Override broken @font-face src references
   The original font-awesome-all.css referenced .html files
   as font sources (now deleted). Override with valid paths only.
   ============================================================ */

/* Font Awesome 5 Solid (fas) */
@font-face {
    font-family: 'Font Awesome 5 Pro';
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url('../fonts/fa-solid-900.woff2') format('woff2'),
         url('../fonts/fa-solid-900.woff')  format('woff');
}

/* Font Awesome 5 Regular (far) */
@font-face {
    font-family: 'Font Awesome 5 Pro';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/fa-regular-400.woff2') format('woff2'),
         url('../fonts/fa-regular-400.woff')  format('woff');
}

/* Font Awesome 5 Brands (fab) — WhatsApp, Facebook, Instagram etc. */
@font-face {
    font-family: 'Font Awesome 5 Brands';
    font-style: normal;
    font-weight: normal;
    font-display: swap;
    src: url('../fonts/fa-brands-400.woff2') format('woff2'),
         url('../fonts/fa-brands-400.woff')  format('woff');
}

/* Flaticon (used for service/benefit icons) */
@font-face {
    font-family: 'flaticon';
    font-style: normal;
    font-weight: normal;
    font-display: swap;
    src: url('../fonts/flaticonfeda.woff2') format('woff2'),
         url('../fonts/flaticonfeda.woff')  format('woff'),
         url('../fonts/flaticonfeda.ttf')   format('truetype');
}


/* ============================================================
   WHATSAPP FLOATING BUTTON — Professional Style
   ============================================================ */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 58px;
    height: 58px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: #fff !important;
    text-decoration: none !important;
    z-index: 99999;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.whatsapp-float:hover {
    background: #1ebe5d;
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.6);
    color: #fff !important;
}
.whatsapp-float i { line-height: 1; }
/* Tooltip label */
.whatsapp-float::after {
    content: 'Chat with us';
    position: absolute;
    right: 68px;
    background: #1a1a1a;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    font-family: 'Poppins', sans-serif;
}
.whatsapp-float:hover::after { opacity: 1; }
/* Remove old pulse ring */
.whatsapp-float::before { display: none; }

/* ============================================================
   THEME COLOR — Logo Green Branding
   ============================================================ */
:root {
    --theme-color: #1E7D4D;
    --secondary-color: #0A2C52;
}
.theme-btn-one { background: var(--theme-color) !important; border-color: var(--theme-color) !important; }
.theme-btn-one:hover { background: #155f3a !important; }
.theme-btn-two:hover { background: var(--theme-color) !important; border-color: var(--theme-color) !important; }
.main-menu .navigation > li.current > a { color: var(--theme-color) !important; }
.main-menu .navigation > li:hover > a { color: var(--theme-color) !important; }
.footer-bottom .link a { color: var(--theme-color) !important; }
.scroll-to-top .scroll-bar-text { color: var(--theme-color) !important; }

/* ============================================================
   MISSION / VISION — Premium Redesign
   ============================================================ */
.mv-section {
    padding: 20px 0;
    background: #fff;
    border-top: 1px solid #eee;
}
.mv-section .sec-title { margin-bottom: 56px; }

/* Card-free horizontal layout with left accent line */
.mv-block {
    padding: 32px 28px 32px 32px;
    border-left: 3px solid var(--theme-color);
    background: #f8faf9;
    height: 100%;
    position: relative;
    transition: box-shadow 0.3s ease;
}
.mv-block:hover {
    box-shadow: 0 4px 24px rgba(30, 125, 77, 0.1);
}
/* Remove the inline border-left/right dividers from middle block */
.mv-block[style*="border-left: 1px solid"] {
    border-left: 3px solid var(--theme-color) !important;
    border-right: none !important;
    padding: 32px 28px 32px 32px !important;
}
.mv-block .mv-icon {
    width: 52px;
    height: 52px;
    background: var(--theme-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
    margin-bottom: 20px;
    flex-shrink: 0;
}
.mv-block .mv-label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--theme-color);
    display: block;
    margin-bottom: 8px;
}
.mv-block h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 0 0 14px;
    line-height: 1.3;
}
.mv-block p {
 
    
    color: #5a5a5a;
    line-height: 1.85;
    margin: 0;
}
/* Gap between columns */
.mv-section .row > [class*="col-"] {
    padding-left: 12px;
    padding-right: 12px;
    margin-bottom: 24px;
}

/* ============================================================
   FOOTER CONTACT INFO — Alignment Fix
   ============================================================ */
.main-footer .contact-widget .info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.main-footer .contact-widget .info-list li {
    display: flex;
    align-items: flex-start;
    gap: 0;
    font-size: 13.5px;
    color: #aaa;
    line-height: 1.6;
    margin-bottom: 10px;
    padding: 0;
}
.main-footer .contact-widget .info-list li:last-child { margin-bottom: 0; }
.main-footer .contact-widget .info-list li i {
    flex-shrink: 0;
    width: 20px;
    margin-top: 3px;
    color: white !important;
    font-size: 13px;
}
.main-footer .contact-widget .info-list li a {
    color: #aaa;
    text-decoration: none;
}
.main-footer .contact-widget .info-list li a:hover {
    color: var(--theme-color);
}

@media (max-width: 991px) {
    .mv-block { margin-bottom: 20px; }
    .mv-section .row > [class*="col-"] { margin-bottom: 16px; }
}


/* ============================================================
   MOBILE MENU — Contact Info List Styling
   ============================================================ */
.mobile-menu .contact-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.mobile-menu .contact-info ul li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 13.5px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mobile-menu .contact-info ul li:last-child { border-bottom: none; }
.mobile-menu .contact-info ul li i {
    font-size: 14px;
    flex-shrink: 0;
    width: 16px;
    text-align: center;
}
.mobile-menu .contact-info ul li a {
    color: inherit;
    text-decoration: none;
}
.mobile-menu .contact-info ul li a:hover { color: #1E7D4D; }

/* ============================================================
   SECTION BACKGROUND COLOR — Logo Green Theme
   Top Header Strip / Stats Counter / Footer
   ============================================================ */

/* Top header strip */
.header-top {
    background: var(--theme-color) !important;
}
.header-top .top-inner p,
.header-top .top-inner p a {
    color: #fff !important;
}
.header-top .top-inner p a:hover {
    color: rgba(255,255,255,0.75) !important;
}

/* Statistics counter section */
.stats-section {
    background: var(--theme-color) !important;
}
/* Count numbers — white so they pop on green */
.stat-item .count {
    color: #fff !important;
}
/* Labels — slightly transparent white */
.stat-item .stat-label {
    color: rgba(255,255,255,0.88) !important;
}

/* Main footer */
.main-footer {
    background: #0f4a2e !important; /* slightly darker green for depth */
}
.main-footer .widget-section p,
.main-footer .widget-section a,
.main-footer .contact-widget .info-list li,
.main-footer .contact-widget .info-list li a,
.main-footer .links-widget .links-list li a {
    color: rgba(255,255,255,0.72) !important;
}
.main-footer .links-widget .links-list li a:hover,
.main-footer .contact-widget .info-list li a:hover {
    color: #fff !important;
}
.main-footer .widget-title h4 {
    color: #fff !important;
}
.main-footer .widget-title:before {
    background: rgba(255,255,255,0.35) !important;
}
.main-footer .logo-widget .social-links li a {
    color: rgba(255,255,255,0.7) !important;
    border-color: rgba(255,255,255,0.25) !important;
}
.main-footer .logo-widget .social-links li a:hover {
    color: #fff !important;
    border-color: #fff !important;
}

/* Footer bottom bar */
.footer-bottom {
    background: #0f4a2e !important;
    border-top: none !important;
}
.footer-bottom p,
.footer-bottom a {
    color: rgba(255,255,255,0.6) !important;
}
.footer-bottom .link a {
    color: rgba(255,255,255,0.85) !important;
}
.footer-bottom .link a:hover,
.footer-bottom a:hover {
    color: #fff !important;
}

/* ============================================================
   MISSION / VISION — Final Premium Open Layout Override
   ============================================================ */

/* Section */
.mv-section {
    padding: 50px 0 30px !important;
    background: #fff !important;
    border-top: 1px solid #eee !important;
}
.mv-section .sec-title { margin-bottom: 72px !important; }

/* Kill all old mv-block styles */
.mv-block,
.mv-block[style*="border-left"],
.mv-block[style*="padding"] {
    padding: 0 36px 0 28px !important;
    border-left: none !important;
    border-right: none !important;
    background: transparent !important;
    box-shadow: none !important;
    height: auto !important;
    position: relative !important;
    transition: none !important;
}
.mv-block:hover { box-shadow: none !important; }

/* Left green accent line via pseudo */
.mv-block::before {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    top: 4px !important;
    width: 2px !important;
    height: calc(100% - 4px) !important;
    background: linear-gradient(to bottom, var(--theme-color) 60%, transparent) !important;
    display: block !important;
}

/* Floating icon — bare, no box */
.mv-block .mv-icon {
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    border-radius: 0 !important;
    display: block !important;
    font-size: 34px !important;
    color: var(--theme-color) !important;
    margin-bottom: 20px !important;
    line-height: 1 !important;
    flex-shrink: unset !important;
}

/* Label */
.mv-block .mv-label {
    font-size: 10px !important;
    font-weight: 800 !important;
    letter-spacing: 4px !important;
    text-transform: uppercase !important;
    color: var(--theme-color) !important;
    display: block !important;
    margin-bottom: 10px !important;
}

/* Heading */
.mv-block h3 {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: var(--secondary-color) !important;
    margin: 0 0 8px !important;
    line-height: 1.35 !important;
}

/* Thin underline after heading */
.mv-block h3::after {
    content: '' !important;
    display: block !important;
    width: 32px !important;
    height: 2px !important;
    background: var(--theme-color) !important;
    margin-top: 10px !important;
    margin-bottom: 14px !important;
    opacity: 0.55 !important;
}

/* Body text */
.mv-block p {
   
    
    color: #5e6e6a !important;
   
    margin: 0 !important;
}

/* Column spacing */
.mv-section .row > [class*="col-"] {
    margin-bottom: 0 !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
}

/* Vertical divider between columns */
.mv-col-divider {
    display: flex !important;
    align-items: stretch !important;
    justify-content: center !important;
    padding: 0 !important;
}
.mv-col-divider::after {
    content: '' !important;
    display: block !important;
    width: 1px !important;
    min-height: 100% !important;
    background: linear-gradient(to bottom, transparent, #b8ddc8 25%, #b8ddc8 75%, transparent) !important;
}

@media (max-width: 991px) {
    .mv-block { padding: 0 0 0 22px !important; margin-bottom: 44px !important; }
    .mv-col-divider { display: none !important; }
    .mv-section { padding: 50px 0 50px !important; }
}
@media (max-width: 575px) {
    .mv-block { padding: 0 0 0 18px !important; }
    .mv-block .mv-icon { font-size: 28px !important; }
    .mv-block h3 { font-size: 18px !important; }
}

/* ============================================================
   NAVBAR — Products Dropdown Arrow (all pages)
   ============================================================ */
.main-menu .navigation > li.dropdown > a .nav-arrow {
    font-size: 11px;
    margin-left: 4px;
    display: inline-block;
    vertical-align: middle;
    transition: transform 0.3s ease;
    color: inherit;
}
.main-menu .navigation > li.dropdown:hover > a .nav-arrow {
    transform: rotate(180deg);
}

/* ============================================================
   HEADER — Shift logo and top-bar contact text left
   Only affects desktop; mobile unchanged
   ============================================================ */
@media (min-width: 992px) {
    /* Remove container left padding in header rows */
    .main-header .header-top .container,
    .main-header .header-lower .container {
        padding-left: 0;
    }

    /* Pull logo further left with a negative margin */
    .main-header .header-lower .logo-box {
        margin-left: -30px;
    }

    /* Pull top-bar left column text further left */
    .main-header .header-top .left-column {
        margin-left: -30px;
    }
}
