/*
 * Theme: Modern Theme for Ruby Hospital
 * Color Palette: Pink/Magenta (#8c1e7a), Green (#27ae60), Orange (#e67e22)
 * Typography: Plus Jakarta Sans
 -------------------------------------------------------*/

@import url('https://fonts.googleapis.com/css2?family=Onest:wght@300;400;500;600;700;800;900&display=swap');
@import url('font-awesome.css');  
@import url('animate.css');

:root {
    --primary-color: #8c1e7a;
    --primary-light: #f7e6f4;
    --primary-dark: #641456;
    
    --secondary-color: #27ae60;
    --secondary-light: #e8f8f0;
    --secondary-dark: #1e8449;
    
    --orange-color: #e67e22;
    --orange-light: #fdf2e9;
    
    --bg-light: #faf8f6; /* Premium warm spa cream background */
    --bg-white: #ffffff;
    
    --text-dark: #1c1c1c; /* Soft luxury slate black */
    --text-gray: #4a4643; /* Warm body text */
    --text-light: #9e9a96;
    
    --border-color: #efebe7; /* Premium soft borders */
    --card-shadow: 0 10px 30px rgba(140, 30, 122, 0.04);
    --hover-shadow: 0 20px 45px rgba(140, 30, 122, 0.08);
}

body {
    font-family: 'Onest', Arial, sans-serif;
    font-weight: 400;
    line-height: 1.75em;
    color: var(--text-gray);
    font-size: 14.5px;
    background-color: var(--bg-light);
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary-color);
    transition: all 0.3s ease;
    text-decoration: none;
}
a:hover, a:focus {
    color: var(--primary-dark);
    text-decoration: none;
    outline: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Onest', sans-serif;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3em;
    margin-bottom: 15px;
}

h1, h2 {
    text-transform: none;
    letter-spacing: -0.5px;
    color: var(--primary-dark);
}

/* Header & Navigation */
.topbar {
    background-color: var(--primary-dark);
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.topbar p {
    color: #f1f5f9;
    margin: 0;
    font-size: 12px;
    font-weight: 500;
}
.topbar p i {
    margin-right: 6px;
    color: var(--orange-color);
}

header {
    background: var(--bg-white);
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    margin-bottom: 0;
    border: none;
    background: transparent;
}
.navbar-brand {
    padding: 10px 15px;
    height: auto;
}
.nlogo {
    max-height: 60px;
    transition: transform 0.3s ease;
}
.nlogo:hover {
    transform: scale(1.02);
}

.navbar-default .navbar-nav > li > a {
    color: var(--text-gray);
    font-size: 14px;
    font-weight: 600;
    padding: 30px 18px;
    transition: all 0.3s ease;
}
.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus {
    color: var(--primary-color);
    background: transparent;
}
.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus {
    color: var(--primary-color);
    background: transparent;
}

/* Theme Switcher in Navbar */
.theme-switch-wrapper {
    display: flex;
    align-items: center;
    padding: 22px 10px;
}
.theme-switch-container {
    display: flex;
    align-items: center;
    background: #f1f5f9;
    padding: 6px 12px;
    border-radius: 30px;
    border: 1px solid var(--border-color);
}
.theme-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-gray);
}
.theme-label.classic-label {
    margin-right: 8px;
}
.theme-label.modern-label {
    margin-left: 8px;
}
.theme-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
    margin-bottom: 0;
}
.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: .4s;
    border-radius: 34px;
}
.slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}
input:checked + .slider {
    background-color: var(--primary-color);
}
input:checked + .slider:before {
    transform: translateX(20px);
}

.info-blocks {
    background: var(--bg-white);
    border-radius: 24px; /* Organic modern rounding */
    padding: 40px 30px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color); /* Soft outline frame */
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    display: block; /* Preserve Bootstrap grid block floats */
    min-height: 350px; /* Force same height on desktop to prevent text overflow and row overlaps */
}
.info-blocks:hover {
    transform: translateY(-6px);
    box-shadow: var(--hover-shadow);
    border-color: rgba(140, 30, 122, 0.08);
}
.info-blocks::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--orange-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}
.info-blocks:hover::before {
    opacity: 1;
}

.info-blocks i.icon-info-blocks,
.info-blocks .new-icon {
    float: left !important;
    width: 64px;
    height: 64px;
    line-height: 64px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 50% !important;
    font-size: 24px !important;
    text-align: center;
    margin-right: 20px;
    margin-top: 0 !important;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(140, 30, 122, 0.2);
}
.info-blocks i.icon-info-blocks {
    padding-top: 0;
}
.info-blocks .new-icon {
    padding: 14px !important; /* Use padding instead of border for sizing to center custom image icons */
    box-sizing: border-box;
}

.info-blocks:hover i.icon-info-blocks,
.info-blocks:hover .new-icon {
    background: linear-gradient(135deg, var(--orange-color) 0%, #d35400 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 8px 20px rgba(230, 126, 34, 0.35);
    transform: scale(1.1) rotate(10deg);
}

.info-blocks .info-blocks-in {
    padding: 0 !important;
    overflow: hidden !important; /* Creates new block formatting context for float alignment */
}
.info-blocks .info-blocks-in h3 {
    color: var(--text-dark);
    font-size: 18px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 12px;
}
.info-blocks .info-blocks-in p {
    color: var(--text-gray);
    font-size: 13.5px;
    line-height: 1.6em;
    margin-bottom: 15px;
}
.info-blocks .info-blocks-in ul {
    padding-left: 15px;
    margin-bottom: 15px;
}
.info-blocks .info-blocks-in ul li {
    font-size: 13px;
    color: var(--text-gray);
    margin-bottom: 5px;
}
.info-blocks .info-blocks-in a {
    font-weight: 700;
    font-size: 13px;
    color: var(--primary-color) !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s ease;
}
.info-blocks .info-blocks-in a:hover {
    color: var(--orange-color) !important;
}
.info-blocks .info-blocks-in a::after {
    content: ' →';
    transition: transform 0.2s ease;
}
.info-blocks .info-blocks-in a:hover::after {
    transform: translateX(4px);
}

/* Call to Action Section */
#call-to-action-2 {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    padding: 50px 0;
    color: #ffffff;
}
#call-to-action-2 h3 {
    color: #ffffff;
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 15px;
}
#call-to-action-2 p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    line-height: 1.8em;
}

/* Buttons */
.btn {
    border-radius: 30px !important;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 12px;
    padding: 12px 30px !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: none !important;
}
.btn-warning, .btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 6px 15px rgba(140, 30, 122, 0.2);
}
.btn-warning:hover, .btn-primary:hover,
.btn-warning:focus, .btn-primary:focus {
    background: linear-gradient(135deg, var(--orange-color) 0%, #d35400 100%) !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(230, 126, 34, 0.35);
    color: #ffffff !important;
}

/* Hero / Banner Area styling */
#banner {
    position: relative;
    overflow: hidden;
}
.flexslider {
    border: none;
    margin-bottom: 0;
    box-shadow: none;
    background: var(--text-dark);
}
.flexslider .slides li {
    position: relative;
    overflow: hidden;
}
.flexslider .slides li img {
    width: 100%;
    height: auto;
}
.flex-caption {
    zoom: 1;
    background-color: transparent;
    color: #fff;
    margin: 0;
    padding: 2px 25px 0px 30px;
    position: absolute;
    left: 0;
    text-align: left;
    margin: 0 auto;
    right: 0px;
    display: inline-block;
    bottom: 24%;
    width: 80%;
    right: 0 !important;
    border-radius: 15px 15px 0 0;
}
.flex-caption h3 {
    color: #f9f9f9;
    letter-spacing: 0px;
    margin-bottom: 8px;
    text-transform: uppercase;
    font-size: 70px;
    font-weight: 700;
}
.flex-caption p {
    margin: 12px 0 18px;
    font-size: 22px;
    font-weight: 400;
}

/* Pregnancy Care / Feature Section */
.section-padding {
    padding: 60px 0;
}
.gray-bg {
    background-color: var(--bg-light);
}
.section-title {
    text-align: center;
    margin-bottom: 40px;
}
.section-title h2 {
    font-size: 30px;
    font-weight: 800;
}
.section-title p {
    font-size: 14.5px;
    line-height: 1.8em;
    color: var(--text-gray);
    max-width: 900px;
    margin: 15px auto 0;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease;
}
.about-image img:hover {
    transform: scale(1.02);
}

/* Doctor / Team Cards */
.team-member {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 25px;
    box-shadow: var(--card-shadow);
    margin-bottom: 30px;
    border: 1px solid rgba(0,0,0,0.01);
    transition: all 0.3s ease;
    overflow: hidden;
}
.team-member:hover {
    transform: translateY(-6px);
    box-shadow: var(--hover-shadow);
}
.team-member img {
    border-radius: 12px;
    margin-bottom: 20px;
    transition: transform 0.5s ease;
}
.team-member:hover img {
    transform: scale(1.03);
}
.team-member h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}
.team-member .deg {
    display: block;
    font-size: 12px;
    color: var(--text-gray);
    margin-bottom: 8px;
    font-weight: 500;
}
.team-member .btn-primary {
    margin-top: 15px;
    width: 100%;
}

/* TPA List scrollable box */
.panel-group {
    background: var(--bg-white);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 10px;
}
.panel {
    border: none;
    box-shadow: none;
    margin-bottom: 5px;
    background: transparent;
}
.panel-heading {
    background: #f8fafc !important;
    border-radius: 8px !important;
    border: 1px solid #f1f5f9;
}
.panel-title a {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-gray);
}
.panel-title a i {
    color: var(--primary-color);
    margin-right: 8px;
}

/* Footer Section styling */
footer {
    background: linear-gradient(135deg, #420f38 0%, #641456 100%);
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 0;
    font-size: 13.5px;
}
footer h5.widgetheading {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
}
footer h5.widgetheading::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 3px;
    background: var(--orange-color);
    bottom: -8px;
    left: 0;
}
footer a {
    color: rgba(255, 255, 255, 0.7);
}
footer a:hover {
    color: var(--orange-color);
}
footer .link-list li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
#sub-footer {
    background: rgba(0, 0, 0, 0.2);
    padding: 25px 0;
    margin-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
#sub-footer p {
    margin: 0;
    font-size: 12px;
}

/* Social Network icons */
ul.social-network {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline-flex;
    gap: 8px;
}
ul.social-network li {
    display: inline-block;
    padding: 0;
    margin: 0;
    list-style: none;
}
#sub-footer ul.social-network {
    float: right;
}
ul.social-network li a {
    width: 36px;
    height: 36px;
    line-height: 36px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    display: inline-block;
    text-align: center;
    transition: all 0.3s ease;
}
ul.social-network li a:hover {
    background: var(--orange-color);
    transform: scale(1.1);
}

/* Timetable styling (Specialties pages) */
.timetable {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%) !important;
    padding: 25px !important;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    color: #ffffff;
}
.timetable h3 {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 20px;
}
.timetable hr {
    border-color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .navbar-default .navbar-nav > li > a {
        padding: 12px 20px;
    }
    .info-blocks {
        padding: 30px 20px;
        text-align: center;
        min-height: auto; /* Reset min-height on mobile */
    }
    .info-blocks i.icon-info-blocks,
    .info-blocks .new-icon {
        float: none !important;
        margin-right: 0;
        margin-bottom: 20px;
        display: inline-flex;
    }
}

@media (min-width: 769px) and (max-width: 1200px) {
    .navbar-default .navbar-nav > li > a {
        padding: 25px 10px;
        font-size: 13px;
    }
    .info-blocks {
        padding: 25px 15px;
        min-height: 440px; /* Increased to accommodate wrapped column texts */
    }
}

/* Smooth Easing & Global Overflow safety */
html {
    scroll-behavior: smooth;
}
body {
    overflow-x: hidden;
}

/* Sticky Header Scrolled state */
header {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
header.scrolled {
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(140, 30, 122, 0.04);
}
header.scrolled .navbar-default .navbar-nav > li > a {
    padding: 20px 18px; /* Shrink link height on scroll */
}
header.scrolled .nlogo {
    max-height: 48px; /* Shrink logo height on scroll */
}

@media (min-width: 769px) and (max-width: 1200px) {
    header.scrolled .navbar-default .navbar-nav > li > a {
        padding: 15px 10px;
    }
}

/* Scroll Reveal Animations - Dermix Luxury Theme Inspired */
.scroll-reveal,
.scroll-reveal-up,
.scroll-reveal-left,
.scroll-reveal-right,
.scroll-reveal-scale {
    opacity: 0;
    will-change: transform, opacity, filter;
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
                transform 1.2s cubic-bezier(0.16, 1, 0.3, 1),
                filter 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.scroll-reveal-up {
    transform: translateY(50px);
    filter: blur(4px); /* Premium focal-blur entrance */
}
.scroll-reveal-left {
    transform: translateX(-50px);
    filter: blur(3px);
}
.scroll-reveal-right {
    transform: translateX(50px);
    filter: blur(3px);
}
.scroll-reveal-scale {
    transform: scale(0.92);
    filter: blur(4px);
}

.visible.scroll-reveal,
.visible.scroll-reveal-up,
.visible.scroll-reveal-left,
.visible.scroll-reveal-right,
.visible.scroll-reveal-scale {
    opacity: 1;
    transform: translate(0) scale(1);
    filter: blur(0);
}

/* Image Swipe Reveal - Dermix Inspired clip-path inset */
.scroll-reveal-image {
    opacity: 0;
    clip-path: inset(0 100% 0 0); /* Wipe left-to-right */
    transform: scale(1.06);
    will-change: opacity, clip-path, transform;
    transition: opacity 1.4s cubic-bezier(0.16, 1, 0.3, 1),
                clip-path 1.4s cubic-bezier(0.16, 1, 0.3, 1),
                transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.visible.scroll-reveal-image,
.visible .scroll-reveal-image,
.visible.team-member img,
.visible.about-image img {
    opacity: 1 !important;
    clip-path: inset(0 0% 0 0) !important;
    transform: scale(1) !important;
}

/* Stats Section styling */
.stats-section {
    background: linear-gradient(135deg, var(--bg-light) 0%, rgba(140, 30, 122, 0.03) 100%);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 70px 0;
}
.stat-box {
    background: var(--bg-white);
    padding: 30px 20px;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(140, 30, 122, 0.02);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
    border-color: rgba(140, 30, 122, 0.06);
}
.stat-icon {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 15px;
    transition: transform 0.4s ease;
}
.stat-box:hover .stat-icon {
    transform: scale(1.1) rotate(5deg);
}
.counter-val {
    font-size: 38px;
    font-weight: 800;
    color: var(--primary-dark);
}
.stat-suffix {
    font-size: 28px;
    font-weight: 800;
    color: var(--orange-color);
}
.stat-box p {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-gray);
    margin-top: 8px;
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Mobile Sticky Bottom Bar (Sticky Footer Actions) */
.mobile-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: #ffffff;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.08);
    display: none; /* Hidden by default on desktop */
    justify-content: space-between;
    align-items: center;
    z-index: 99999;
}

.sticky-action-btn {
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    transition: all 0.3s ease;
    border: none;
    outline: none;
}

.sticky-action-btn i {
    font-size: 18px;
    margin-bottom: 2px;
}

.sticky-action-btn span {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Custom styling for Call Now */
.sticky-action-btn.btn-call {
    background: var(--primary-color);
    color: #ffffff !important;
}
.sticky-action-btn.btn-call:hover {
    background: var(--primary-dark);
}

/* Custom styling for Book Appointment */
.sticky-action-btn.btn-appointment {
    background: var(--primary-dark);
    color: #ffffff !important;
    border-left: 1px solid rgba(255,255,255,0.1);
    border-right: 1px solid rgba(255,255,255,0.1);
}
.sticky-action-btn.btn-appointment:hover {
    background: #4b0e40;
}

/* Custom styling for WhatsApp */
.sticky-action-btn.btn-whatsapp {
    background: #25d366; /* Standard WhatsApp Green */
    color: #ffffff !important;
}
.sticky-action-btn.btn-whatsapp:hover {
    background: #128c7e;
}

/* Mobile media query overrides */
@media (max-width: 768px) {
    body {
        padding-bottom: 56px !important; /* Ensure bottom content is not blocked by footer bar */
    }
    .mobile-sticky-bar {
        display: flex !important;
    }
}

/* About Overview Section (Dermix Inspired Overlapping Images) */
#about-overview {
    background-color: var(--bg-white);
    overflow: hidden;
}

.about-overview-images {
    position: relative;
    height: 480px;
    max-width: 480px;
    margin: 0 auto;
}

.main-image-wrapper {
    position: absolute;
    left: 100px;
    top: 0;
    width: 320px;
    height: 400px;
    z-index: 1;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
}

.main-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay-image-wrapper {
    position: absolute;
    left: 0;
    top: 140px;
    width: 220px;
    height: 220px;
    z-index: 2;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(140, 30, 122, 0.08);
    border: 8px solid #ffffff;
}

.overlay-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.deco-floral-line {
    position: absolute;
    left: -20px;
    bottom: -10px;
    z-index: 0;
    pointer-events: none;
}

.overview-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: var(--primary-light);
    color: var(--primary-color);
    border-radius: 30px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    border: 1px solid rgba(140, 30, 122, 0.08);
}

#about-overview h2 {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.3em;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

#about-overview p.lead-text {
    font-size: 15px;
    line-height: 1.8em;
    color: var(--text-gray);
    margin-bottom: 30px;
}

.features-grid {
    display: flex;
    gap: 25px;
    margin-bottom: 30px;
}

.feature-item {
    display: flex;
    gap: 15px;
    flex: 1;
}

.feature-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--orange-color) 0%, #d35400 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(230, 126, 34, 0.2);
}

.feature-text h4 {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0 0 5px 0;
}

.feature-text p {
    font-size: 13px;
    line-height: 1.6em;
    color: var(--text-gray);
    margin: 0;
}

.overview-divider {
    height: 1px;
    background: var(--border-color);
    margin-bottom: 30px;
}

.cta-signature-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.btn-overview {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.signature-box {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.signature-text {
    font-family: 'Georgia', serif;
    font-style: italic;
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
}

.signature-sub {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .image-container-col {
        margin-bottom: 40px;
    }
}

@media (max-width: 767px) {
    .about-overview-images {
        height: 380px;
        max-width: 320px;
        margin: 0 auto 30px;
    }
    .main-image-wrapper {
        left: 60px;
        width: 240px;
        height: 320px;
    }
    .overlay-image-wrapper {
        left: 0;
        top: 100px;
        width: 150px;
        height: 150px;
        border-width: 4px;
    }
    .features-grid {
        flex-direction: column;
        gap: 20px;
    }
    #about-overview h2 {
        font-size: 30px;
    }
}

/* Services Layout Section (Dermix Inspired 2x2 Grid + Tall Banner) */
.services-header-col {
    margin-bottom: 45px;
}

.services-header-col h2 {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-dark);
    margin-top: 10px;
    letter-spacing: -1px;
}

.services-section-desc {
    font-size: 15px;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
}

.services-row-wrapper {
    display: flex;
    flex-wrap: wrap;
}

.service-card-item {
    background: #ffffff;
    border-radius: 24px;
    padding: 35px 25px;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 230px;
}

.service-card-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--hover-shadow);
    border-color: rgba(140, 30, 122, 0.1);
}

.card-icon-box {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--primary-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.card-icon-box.fa-box i {
    font-size: 20px;
}

.service-card-item:hover .card-icon-box {
    background: var(--primary-color);
    color: #ffffff;
}

.new-icon-badge {
    width: 28px;
    height: 28px;
    object-fit: contain;
    transition: filter 0.3s ease;
}

.service-card-item:hover .new-icon-badge {
    filter: brightness(0) invert(1); /* Invert icon to white on hover primary bg */
}

.service-card-item h3 {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0 0 10px 0;
}

.service-card-item p {
    font-size: 13px;
    line-height: 1.6em;
    color: var(--text-gray);
    margin-bottom: 15px;
    flex-grow: 1;
}

.card-read-more {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.3s ease;
    text-decoration: none !important;
}

.card-read-more:hover {
    color: var(--orange-color);
}

.service-banner-card {
    position: relative;
    height: 490px;
    border-radius: 24px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: 40px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
}

.banner-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 20%, rgba(28,28,28,0.92) 100%);
    z-index: 1;
}

.banner-card-content {
    position: relative;
    z-index: 2;
    color: #ffffff;
}

.banner-card-content h3 {
    color: #ffffff;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.4em;
    margin-bottom: 12px;
}

.banner-card-content p {
    color: rgba(255,255,255,0.85);
    font-size: 13.5px;
    line-height: 1.6em;
    margin-bottom: 25px;
}

.btn-banner-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .service-banner-card {
        height: 380px;
        padding: 30px;
        margin-top: 10px;
    }
}

@media (max-width: 767px) {
    .services-header-col h2 {
        font-size: 30px;
    }
}

/* Service Icons Visibility & Contrast Fixes */
.card-icon-box i {
    display: inline-block !important;
    font-size: 22px !important;
    line-height: 1 !important;
    color: var(--primary-color) !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    float: none !important;
    width: auto !important;
    height: auto !important;
    transition: color 0.3s ease;
}

.service-card-item:hover .card-icon-box i {
    color: #ffffff !important;
}

.new-icon-badge {
    width: 28px !important;
    height: 28px !important;
    object-fit: contain !important;
    /* Custom CSS filter to tint white/black PNG icon into Ruby Magenta (#8c1e7a) */
    filter: invert(18%) sepia(82%) saturate(2253%) hue-rotate(279deg) brightness(85%) contrast(92%) !important;
    transition: filter 0.3s ease;
}

.service-card-item:hover .new-icon-badge {
    filter: brightness(0) invert(1) !important; /* Switch to white on hover */
}
