/*
Theme Name: The Range Women's Health Services Custom Theme
Theme URI: http://therangewomenshealth.com.au/
Description: A custom WordPress theme matching the Ferlix design reference for The Range Women's Health Services.
Version: 1.0.0
Author: Antigravity
Author URI: https://google.com
License: GNU General Public License v2 or later
Text Domain: trwhs-theme
*/

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Onest:wght@300;400;500;600;700&display=swap');

/* --- CSS Variables (Ferlix Design System) --- */
:root {
    --primary-color: #20296E;      /* Deep Navy Blue */
    --secondary-bg: #F4F5FF;       /* Very Soft Blue/Lavender */
    --text-color: #555555;         /* Charcoal/Grey text */
    --text-light: #888888;         /* Light grey text */
    --accent-color: #FF70A3;       /* Rose Accent */
    --white: #FFFFFF;
    --black: #000000;
    --border-color: #E2E6FF;
    --font-family: 'Onest', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- Reset & Base Styles --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

img {
    max-width: 100%;
    height: auto;
    display: inline-block;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--primary-color);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.5em;
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.8rem; margin-top: 1.2rem; }
h3 { font-size: 1.4rem; }

p {
    margin-bottom: 1.2rem;
}

ul, ol {
    margin-bottom: 1.2rem;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.4rem;
}

/* --- Layout Wrapper --- */
#wrapper {
    width: 100%;
    position: relative;
    overflow-x: hidden;
}

#page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- Header & Navigation (Ferlix Style) --- */
#header-container {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(32, 41, 110, 0.05);
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#logo-container {
    display: flex;
    align-items: center;
}

#logo-container img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

/* Primary Menu */
.primary-menu-container {
    display: flex;
    align-items: center;
}

.primary-menu {
    display: flex;
    list-style: none;
    align-items: center;
    padding-left: 0;
    margin-bottom: 0;
}

.primary-menu > li {
    position: relative;
    margin: 0 8px;
    padding: 10px 0;
}

.primary-menu > li > a {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 5px 0;
    position: relative;
    white-space: nowrap;
}

.primary-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.primary-menu > li:hover > a {
    color: var(--accent-color);
}

.primary-menu > li:hover > a::after,
.primary-menu > li.current-menu-item > a::after,
.primary-menu > li.current-page-ancestor > a::after {
    width: 100%;
}

.primary-menu > li.current-menu-item > a,
.primary-menu > li.current-page-ancestor > a {
    color: var(--accent-color);
}

/* Dropdown Submenus */
.primary-menu li ul.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 250px;
    box-shadow: 0 10px 30px rgba(32, 41, 110, 0.1);
    border-radius: 6px;
    border-top: 3px solid var(--accent-color);
    padding: 10px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: var(--transition);
    z-index: 999;
}

.primary-menu li:hover > ul.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.primary-menu li ul.sub-menu li {
    padding: 0;
    margin: 0;
    position: relative;
}

.primary-menu li ul.sub-menu li a {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-color);
    border-bottom: 1px solid rgba(226, 230, 255, 0.5);
    transition: var(--transition);
}

.primary-menu li ul.sub-menu li:last-child a {
    border-bottom: none;
}

.primary-menu li ul.sub-menu li:hover > a {
    background-color: var(--secondary-bg);
    color: var(--accent-color);
    padding-left: 25px;
}

/* Nested Submenus */
.primary-menu li ul.sub-menu li ul.sub-menu {
    top: 0;
    left: 100%;
    margin-top: -13px;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
    z-index: 1000;
}

.mobile-nav-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--primary-color);
    transition: var(--transition);
}

/* --- Banner Styling --- */
.page-banner {
    width: 100%;
    height: 250px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(32, 41, 110, 0.8) 0%, rgba(32, 41, 110, 0.4) 100%);
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    padding: 0 20px;
}

.banner-content h1 {
    color: var(--white);
    font-size: 2.8rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    margin-bottom: 5px;
}

/* --- Content Layout --- */
#main-content {
    flex: 1;
    background-color: var(--white);
}

.content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px;
}

/* Combined Flexbox Grid for Left Content & Sidebar */
.content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.left_content {
    flex: 1 1 700px;
    max-width: 100%;
}

#sidebar {
    flex: 0 0 280px;
    max-width: 100%;
    background-color: var(--secondary-bg);
    border-radius: 12px;
    padding: 25px;
    align-self: flex-start;
    box-shadow: 0 10px 30px rgba(32, 41, 110, 0.03);
    border: 1px solid var(--border-color);
}

/* Sidebar Subnav styling */
#subnav {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
}

#subnav li.title {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-color);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 2px solid var(--border-color);
}

#subnav li:not(.title) {
    margin-bottom: 8px;
}

#subnav li a {
    display: block;
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 500;
    color: var(--primary-color);
    background-color: var(--white);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

#subnav li a:hover {
    color: var(--white);
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateX(5px);
}

/* Sidebar images (doctor/team) */
#sidebar img {
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    display: block;
    width: 100%;
}

.practice_gap {
    height: 10px;
}

/* Disclaimer at footer/content */
#disclaimer {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.4;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.known_gap {
    background-color: var(--secondary-bg);
    border-left: 4px solid var(--accent-color);
    padding: 15px 20px;
    border-radius: 0 8px 8px 0;
    font-weight: 500;
    color: var(--primary-color);
    margin-top: 20px;
    margin-bottom: 20px;
}

/* --- Our Babies Gallery Styling (Ferlix Style) --- */
.dark_bg {
    background-color: var(--secondary-bg);
    padding: 50px 20px;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.gallery_header {
    max-width: 1160px;
    margin: 0 auto 30px auto;
    font-size: 2rem;
    text-align: center;
    position: relative;
}

.gallery_header::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 10px auto 0 auto;
    border-radius: 2px;
}

#gallery {
    max-width: 1160px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
    padding: 10px;
}

#gallery a {
    display: block;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(32, 41, 110, 0.06);
    background-color: var(--white);
    aspect-ratio: 1;
    border: 3px solid var(--white);
    transition: var(--transition);
}

#gallery a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

#gallery a .border {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    pointer-events: none;
    opacity: 0;
    transform: scale(0.9);
    transition: var(--transition);
}

#gallery a:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(32, 41, 110, 0.15);
    border-color: var(--accent-color);
}

#gallery a:hover img {
    transform: scale(1.08);
}

#gallery a:hover .border {
    opacity: 1;
    transform: scale(1);
    border-color: rgba(255, 255, 255, 0.6);
}

/* Gallery link styled as card */
#gallery a.goto-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    text-align: center;
    padding: 20px;
    color: var(--white);
    text-decoration: none;
}

#gallery a.goto-card:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

#gallery a.goto-card img {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

#gallery a.goto-card .goto {
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Footer (Premium Ferlix Theme Style) --- */
.red_bg {
    background-color: var(--primary-color); /* Updated to Navy Blue for premium style */
    color: rgba(255, 255, 255, 0.8);
    padding: 20px 0 10px 0;
}

#footer {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

#footer .column {
    flex: 1 1 250px;
}

#footer .column h3 {
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

#footer .column h3 a {
    color: var(--white);
}

#footer .column h3 a:hover {
    color: var(--accent-color);
}

#footer .column ul {
    list-style: none;
    padding-left: 0;
}

/* Two-column layout for longer footer links (Obstetrics subpages) */
#footer .column:first-child ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 15px;
}

#footer .column ul li {
    margin-bottom: 2px;
}

#footer .column ul li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    transition: var(--transition);
}

#footer .column ul li a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

/* Footer Copyright & Logos */
#copyright {
    width: 100%;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

#copyright img {
    max-height: 35px;
    width: auto;
    opacity: 0.8;
    transition: var(--transition);
}

#copyright img:hover {
    opacity: 1;
}

#copyright ul {
    list-style: none;
    padding-left: 0;
    display: flex;
    gap: 20px;
    margin-bottom: 0;
}

#copyright ul li {
    margin-bottom: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

#copyright ul li a {
    color: rgba(255, 255, 255, 0.8);
}

#copyright ul li a:hover {
    color: var(--accent-color);
}

/* --- Media Queries for Responsiveness --- */
@media (max-width: 1024px) {
    .primary-menu > li {
        margin: 0 6px;
    }
    .primary-menu > li > a {
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .mobile-nav-toggle {
        display: flex;
    }
    
    .primary-menu-container {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        padding: 20px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: var(--transition);
        border-top: 1px solid var(--border-color);
    }
    
    .primary-menu-container.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .primary-menu {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
    
    .primary-menu > li {
        margin: 10px 0;
        width: 100%;
        padding: 0;
    }
    
    .primary-menu > li > a {
        display: block;
        width: 100%;
        padding: 8px 0;
    }
    
    .primary-menu li ul.sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-top: none;
        border-left: 2px solid var(--accent-color);
        border-radius: 0;
        margin-left: 15px;
        padding: 5px 0;
        min-width: auto;
        display: none; /* Controlled via JS toggles if desired, or auto-expand */
    }
    
    .primary-menu li.active-sub > ul.sub-menu {
        display: block;
    }
    
    .primary-menu li ul.sub-menu li a {
        padding: 8px 15px;
    }
    
    .primary-menu li ul.sub-menu li ul.sub-menu {
        margin-left: 15px;
        border-left: 2px solid var(--primary-color);
    }
    
    .page-banner {
        height: 180px;
    }
    
    .banner-content h1 {
        font-size: 2rem;
    }
    
    .content {
        gap: 30px;
    }
    
    #sidebar {
        flex: 1 1 100%;
    }
    
    #copyright {
        flex-direction: column;
        text-align: center;
    }
    
    #copyright ul {
        flex-direction: column;
        gap: 10px;
    }
}

/* ==========================================================================
   Home Page Custom Layouts (Ferlix Premium Theme)
   ========================================================================== */

.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(32, 41, 110, 0.15);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--white);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.15);
}

.btn-light {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-light:hover {
    background-color: var(--accent-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 112, 163, 0.2);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(32, 41, 110, 0.85) 0%, rgba(32, 41, 110, 0.4) 100%);
    z-index: 1;
}

.hero-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 750px;
}

.hero-subtitle {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-color);
    letter-spacing: 2px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.hero-title {
    color: var(--white);
    font-size: 3.4rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-desc {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 35px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Section Common Headers */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

.full-width-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.sec-subtitle {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--accent-color);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.sec-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.sec-divider {
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 0 auto 20px auto;
    border-radius: 2px;
}

.sec-divider-left {
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
    margin-bottom: 20px;
    border-radius: 2px;
}

.section-desc-center {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 30px auto;
    color: var(--text-color);
    font-size: 16px;
    line-height: 1.6;
}

/* ----------------------------------------------------
   Section 2: "Dedicated to your journey" (About Journey)
   ---------------------------------------------------- */
.about-journey-section {
    background-color: #FAF7F2; /* Warm beige background */
    padding: 10px 0;
}

.about-journey-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
    align-items: center;
}

.about-journey-left {
    flex: 1 1 500px;
}

.about-journey-left h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    line-height: 1.25;
}

.journey-desc {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 30px;
    color: var(--text-color);
}

.journey-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.j-feature-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.j-icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
}

.j-feature-item:hover .j-icon-circle {
    background-color: var(--accent-color);
}

.j-svg {
    width: 24px;
    height: 24px;
    fill: var(--white);
}

.j-feature-item h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.j-feature-item p {
    font-size: 14px;
    color: var(--text-color);
    line-height: 1.5;
    margin-bottom: 0;
}

.trusted-badge-box {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.avatar-group {
    display: flex;
    align-items: center;
}

.avatar-group img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--white);
    margin-left: -12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}

.avatar-group img:first-child {
    margin-left: 0;
}

.badge-stars-desc {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rating-stars {
    color: #FFB800;
    font-size: 14px;
    letter-spacing: 1px;
}

.badge-stars-desc p {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0;
}

.badge-btn-link {
    margin-left: auto;
}

.btn-more-about {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-more-about:hover {
    color: var(--primary-color);
}

.about-journey-right {
    flex: 1 1 450px;
    display: flex;
    justify-content: center;
}

/* Circular Collage */
.circular-collage-wrapper {
    position: relative;
    width: 450px;
    height: 450px;
}

.collage-circle {
    position: absolute;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 4px solid var(--white);
    box-shadow: 0 10px 30px rgba(32,41,110,0.1);
    transition: var(--transition);
}

.c-img-1 { width: 220px; height: 220px; top: 0; left: 0; }
.c-img-2 { width: 190px; height: 190px; top: 15px; right: 10px; }
.c-img-3 { width: 180px; height: 180px; bottom: 15px; left: 10px; }
.c-img-4 { width: 220px; height: 220px; bottom: 0; right: 0; }

.circular-collage-wrapper:hover .c-img-1 { transform: translate(-10px, -10px); }
.circular-collage-wrapper:hover .c-img-2 { transform: translate(10px, -10px); }
.circular-collage-wrapper:hover .c-img-3 { transform: translate(-10px, 10px); }
.circular-collage-wrapper:hover .c-img-4 { transform: translate(10px, 10px); }

/* Central Rotating Badge */
.center-consultation-badge {
    position: absolute;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background-color: #534582; /* Rose/Navy mix */
    border: 4px solid var(--white);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: var(--transition);
}

.center-consultation-badge:hover {
    background-color: var(--accent-color);
    transform: translate(-50%, -50%) scale(1.08);
}

.badge-circle-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.arrow-svg {
    width: 28px;
    height: 28px;
    fill: var(--white);
    transition: var(--transition);
}

.center-consultation-badge:hover .arrow-svg {
    transform: rotate(45deg);
}

.center-consultation-badge a {
    display: block;
    width: 100%;
    height: 100%;
}

.badge-text-rotate-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    animation: rotateText 15s linear infinite;
    transform-origin: center;
    pointer-events: none;
}

.badge-text-rotate-svg text {
    font-family: var(--font-family);
    font-size: 7px;
    font-weight: 700;
    fill: var(--white);
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

@keyframes rotateText {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ----------------------------------------------------
   Section 3: "Every step explained" (How It Works Split)
   ---------------------------------------------------- */
.step-explained-section {
    background-color: var(--white);
}

.split-flex {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

.split-left-image {
    flex: 1 1 500px;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 20px;
}

.image-overlay-dark {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(32, 41, 110, 0.45);
    z-index: 1;
}

.glass-cards-container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 25px;
    width: 100%;
    max-width: 460px;
}

/* Glassmorphism Cards */
.glass-card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    padding: 25px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateX(10px);
}

.glass-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.glass-svg {
    width: 24px;
    height: 24px;
    fill: var(--white);
}

.glass-text-box h4 {
    color: var(--white);
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 5px;
}

.glass-text-box p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 13.5px;
    line-height: 1.45;
    margin-bottom: 0;
}

.split-right-content {
    flex: 1 1 500px;
    background-color: #EAF1F5; /* Soft blue-grey background */
    display: flex;
    align-items: center;
    padding: 80px 60px;
}

.split-right-inner {
    max-width: 520px;
    margin: 0 auto;
}

.split-right-inner h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.25;
}

.section-para {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 15px;
    color: var(--text-color);
}

.section-para-sub {
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 0;
}

.step-stats-grid {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(32, 41, 110, 0.12);
}

.stat-col {
    display: flex;
    flex-direction: column;
    position: relative;
    padding-right: 10px;
}

.stat-num {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.1;
    margin-bottom: 3px;
}

.stat-lbl {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-step-num {
    position: absolute;
    top: -12px;
    right: 5px;
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-color);
}

/* ----------------------------------------------------
   Section 4: "Hope, care, science" (Overview Banner)
   ---------------------------------------------------- */
.hope-science-section {
    background-color: var(--white);
    padding: 10px 0;
}

.hope-science-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
    align-items: center;
}

.hope-science-left {
    flex: 1 1 500px;
}

.hope-science-left h2 {
    font-size: 2.5rem;
    line-height: 1.25;
    margin-bottom: 20px;
}

.hope-science-left p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-color);
}

.hope-stats-row {
    display: flex;
    gap: 40px;
    margin: 35px 0;
    padding: 25px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.hope-stat-item {
    display: flex;
    flex-direction: column;
}

.h-stat-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent-color);
    line-height: 1.1;
}

.h-stat-desc {
    font-size: 13px;
    color: var(--text-color);
    margin-top: 5px;
    font-weight: 500;
}

.hope-buttons {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
}

.btn-watch-video {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14.5px;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-watch-video:hover {
    color: var(--accent-color);
}

.play-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.play-svg {
    width: 18px;
    height: 18px;
    fill: var(--primary-color);
    margin-left: 3px;
    transition: var(--transition);
}

.btn-watch-video:hover .play-circle {
    border-color: var(--accent-color);
    background-color: var(--accent-color);
}

.btn-watch-video:hover .play-svg {
    fill: var(--white);
}

.hope-science-right {
    flex: 1 1 450px;
    display: flex;
    justify-content: center;
}

.hope-image-wrapper {
    position: relative;
    max-width: 450px;
    width: 100%;
}

.hope-image-wrapper img {
    width: 100%;
    height: 440px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(32,41,110,0.1);
}

.floating-rating-card {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background-color: var(--white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 15px 35px rgba(32,41,110,0.15);
    max-width: 280px;
    border-left: 4px solid var(--accent-color);
}

.floating-rating-card .rating-stars {
    margin-bottom: 8px;
}

.floating-rating-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 6px;
}

.floating-rating-card p {
    font-size: 13px;
    line-height: 1.4;
    color: var(--text-color);
    margin-bottom: 0;
}

/* ----------------------------------------------------
   Section 5: "Every step designed" (Our Medical Services & Cascading Images)
   ---------------------------------------------------- */
.step-designed-section {
    background-color: #FAF7F2; /* Warm beige background */
    /* padding: 10px 0; */
}

.step-designed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
    flex-wrap: wrap;
    gap: 20px;
}

.step-designed-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    max-width: 600px;
    line-height: 1.2;
    margin-bottom: 0;
}

.step-designed-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
    align-items: center;
}

.step-designed-left {
    flex: 1 1 500px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Horizontal Service Cards (Bar Style) */
.service-card-bar {
    background-color: var(--white);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 25px rgba(32,41,110,0.02);
    display: flex;
    gap: 25px;
    align-items: flex-start;
    transition: var(--transition);
}

.service-card-bar:hover {
    border-color: var(--accent-color);
    transform: translateX(10px);
    box-shadow: 0 15px 30px rgba(32,41,110,0.08);
}

.s-icon-box {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: var(--secondary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
}

.service-card-bar:hover .s-icon-box {
    background-color: var(--accent-color);
}

.s-svg {
    width: 26px;
    height: 26px;
    fill: var(--primary-color);
    transition: var(--transition);
}

.service-card-bar:hover .s-svg {
    fill: var(--white);
}

.s-card-info h3 {
    font-size: 19px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 6px;
}

.s-card-info p {
    font-size: 14px;
    color: var(--text-color);
    line-height: 1.5;
    margin-bottom: 12px;
}

.s-card-link {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.s-card-link:hover {
    color: var(--primary-color);
}

.step-designed-right {
    flex: 1 1 450px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Cascading overlapping images */
.cascading-images-wrapper {
    position: relative;
    width: 440px;
    height: 450px;
}

.c-photo {
    position: absolute;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(32,41,110,0.12);
    object-fit: cover;
    transition: var(--transition);
    border: 4px solid var(--white);
}

.c-photo-1 {
    width: 250px;
    height: 250px;
    top: 0;
    left: 15px;
    z-index: 3;
}

.c-photo-2 {
    width: 230px;
    height: 230px;
    top: 80px;
    right: 5px;
    z-index: 2;
}

.c-photo-3 {
    width: 210px;
    height: 210px;
    bottom: 0;
    left: 70px;
    z-index: 4;
}

.c-photo:hover {
    transform: scale(1.05);
    z-index: 10;
    box-shadow: 0 20px 45px rgba(32,41,110,0.2);
}

/* ----------------------------------------------------
   Section 6: Interactive Patient Information Section
   ---------------------------------------------------- */
/* ----------------------------------------------------
   Section 6: Interactive Patient Information Section
   ---------------------------------------------------- */
.patient-info-section {
    background: linear-gradient(180deg, var(--white) 0%, #fffbfd 100%);
    /* padding: 100px 0; */
    position: relative;
}

.info-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
    margin-top: 50px;
}

.info-card {
    background-color: var(--white);
    padding: 45px 35px;
    border-radius: 16px;
    border: 1px solid rgba(32, 41, 110, 0.06);
    box-shadow: 0 4px 6px -1px rgba(32, 41, 110, 0.02), 0 10px 20px -3px rgba(32, 41, 110, 0.04);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* Color-coded top borders */
.info-card.hours-card {
    border-top: 4px solid var(--accent-color);
}
.info-card.fees-card {
    border-top: 4px solid #7C4DFF;
}
.info-card.security-card {
    border-top: 4px solid #00C853;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(255, 112, 163, 0.03), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}
.info-card.fees-card::before {
    background: radial-gradient(circle at top right, rgba(124, 77, 255, 0.03), transparent 60%);
}
.info-card.security-card::before {
    background: radial-gradient(circle at top right, rgba(0, 200, 83, 0.03), transparent 60%);
}

.info-card:hover {
    transform: translateY(-10px);
    border-color: rgba(32, 41, 110, 0.1);
    box-shadow: 0 20px 40px -15px rgba(32, 41, 110, 0.12);
}

.info-card:hover::before {
    opacity: 1;
}

.info-card-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(32, 41, 110, 0.06);
}

.info-card-icon-box {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hours-card .info-card-icon-box {
    background-color: rgba(255, 112, 163, 0.08);
    color: var(--accent-color);
}
.fees-card .info-card-icon-box {
    background-color: rgba(124, 77, 255, 0.08);
    color: #7C4DFF;
}
.security-card .info-card-icon-box {
    background-color: rgba(0, 200, 83, 0.08);
    color: #00C853;
}

.info-card:hover .info-card-icon-box {
    transform: scale(1.1) rotate(3deg);
}

.info-card-badge-num {
    position: absolute;
    top: -6px;
    right: -6px;
    background-color: var(--primary-color);
    color: var(--white);
    font-size: 9px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 10px;
    line-height: 1;
    border: 1.5px solid var(--white);
    letter-spacing: 0.02em;
}

.info-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0;
    line-height: 1.3;
}

.info-card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-intro {
    font-size: 15px;
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 25px;
    opacity: 0.9;
}

/* Timetable Styles */
.timetable-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 25px;
}

.timetable-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    background-color: rgba(32, 41, 110, 0.02);
    border: 1px solid rgba(32, 41, 110, 0.04);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.timetable-row:hover {
    background-color: rgba(255, 112, 163, 0.03);
    border-color: rgba(255, 112, 163, 0.15);
}

.timetable-row .day {
    font-weight: 600;
}

.timetable-row .time {
    color: var(--text-color);
}

.timetable-row.closed {
    background-color: rgba(32, 41, 110, 0.01);
}

.timetable-row.closed .day {
    opacity: 0.6;
}

.time-badge {
    background-color: rgba(255, 112, 163, 0.1);
    color: var(--accent-color);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sub-detail {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.6;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px dashed rgba(32, 41, 110, 0.08);
}

.sub-detail a {
    color: var(--accent-color);
    transition: opacity 0.2s;
}

.sub-detail a:hover {
    opacity: 0.8;
}

/* Structured Info Sub Items */
.info-sub-item {
    margin-bottom: 22px;
    border-left: 2px solid rgba(32, 41, 110, 0.06);
    padding-left: 18px;
    transition: border-color 0.4s ease;
}

.info-sub-item:last-child {
    margin-bottom: 0;
}

.hours-card:hover .info-sub-item {
    border-left-color: rgba(255, 112, 163, 0.3);
}
.fees-card:hover .info-sub-item {
    border-left-color: rgba(124, 77, 255, 0.3);
}
.security-card:hover .info-sub-item {
    border-left-color: rgba(0, 200, 83, 0.3);
}

.info-sub-title {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--primary-color);
    margin-bottom: 6px;
    opacity: 0.85;
}

.info-sub-item p {
    font-size: 14.5px;
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 0;
}

/* ----------------------------------------------------
   Section 7: Babies Gallery Section
   ---------------------------------------------------- */
.home-gallery-section {
    background-color: #FAF7F2; /* Warm beige background */
    /* padding: 80px 0; */
}

.home-gallery-section .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 35px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0 40px 0;
}

.gallery-item a {
    display: block;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(32, 41, 110, 0.06);
    background-color: var(--white);
    aspect-ratio: 1;
    border: 3px solid var(--white);
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1), border-color 0.4s ease, box-shadow 0.4s ease;
}

.gallery-item a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.165, 0.84, 0.44, 1), filter 0.4s ease;
}

.gallery-item a .border {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 10px;
    pointer-events: none;
    opacity: 0;
    transform: scale(1.04);
    transition: transform 0.4s ease, opacity 0.4s ease, border-color 0.4s ease;
    z-index: 3;
}

.gallery-item a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 112, 163, 0.15) 0%, rgba(32, 41, 110, 0.45) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
}

.gallery-item a::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF70A3' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E") no-repeat center;
    background-size: 20px;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0.6);
    opacity: 0;
    z-index: 3;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
    box-shadow: 0 10px 25px rgba(32, 41, 110, 0.2);
}

/* Desktop Staggered Masonry Alignment */
@media (min-width: 768px) {
    .home-gallery-section .gallery-grid .gallery-item:nth-child(1) a {
        transform: translateY(15px);
    }
    .home-gallery-section .gallery-grid .gallery-item:nth-child(2) a {
        transform: translateY(-15px);
    }
    .home-gallery-section .gallery-grid .gallery-item:nth-child(3) a {
        transform: translateY(15px);
    }

    .home-gallery-section .gallery-grid .gallery-item:nth-child(1) a:hover {
        transform: translateY(5px);
    }
    .home-gallery-section .gallery-grid .gallery-item:nth-child(2) a:hover {
        transform: translateY(-25px);
    }
    .home-gallery-section .gallery-grid .gallery-item:nth-child(3) a:hover {
        transform: translateY(5px);
    }
}

.gallery-item a:hover {
    box-shadow: 0 20px 40px rgba(32, 41, 110, 0.15);
    border-color: var(--accent-color);
}

.gallery-item a:hover img {
    transform: scale(1.08);
    filter: brightness(0.9) contrast(1.05);
}

.gallery-item a:hover::before {
    opacity: 1;
}

.gallery-item a:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.gallery-item a:hover .border {
    opacity: 1;
    transform: scale(1);
    border-color: rgba(255, 255, 255, 0.6);
}

/* ----------------------------------------------------
   Section 8: Call to Action Section
   ---------------------------------------------------- */
.cta-section {
    background-color: var(--primary-color);
    padding: 30px 20px;
}

.cta-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.cta-content {
    max-width: 750px;
}

.cta-content h2 {
    color: var(--white);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    margin-bottom: 0;
}

/* --- Scroll Reveal Animations & Offsets --- */
.reveal {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal-up {
    transform: translateY(40px);
}

.reveal-left {
    transform: translateX(-40px);
}

.reveal-right {
    transform: translateX(40px);
}

.reveal.active {
    opacity: 1;
    transform: translate(0, 0);
}

/* --- Media Queries for Responsive UX --- */
@media (max-width: 1024px) {
    .about-journey-flex {
        gap: 30px;
    }
    .hope-science-flex {
        gap: 30px;
    }
    .step-designed-flex {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: 480px;
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-desc {
        font-size: 1rem;
    }
    .sec-title, .welcome-left h2, .about-journey-left h2, .split-right-inner h2, .hope-science-left h2, .step-designed-header h2 {
        font-size: 1.8rem;
    }
    .welcome-right {
        flex: 1 1 100%;
    }
    .about-journey-right {
        flex: 1 1 100%;
        margin-top: 30px;
    }
    .circular-collage-wrapper {
        width: 320px;
        height: 320px;
        margin: 0 auto;
    }
    .c-img-1 { width: 150px; height: 150px; }
    .c-img-2 { width: 130px; height: 130px; top: 10px; }
    .c-img-3 { width: 120px; height: 120px; bottom: 10px; }
    .c-img-4 { width: 150px; height: 150px; }
    .center-consultation-badge {
        width: 100px;
        height: 100px;
    }
    .badge-text-rotate-svg text {
        font-size: 5.5px;
    }
    .arrow-svg {
        width: 20px;
        height: 20px;
    }
    .split-right-content {
        padding: 50px 20px;
    }
    .hope-science-right {
        flex: 1 1 100%;
        margin-top: 30px;
    }
    .step-designed-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .step-designed-header .btn {
        margin-top: 10px;
    }
    .step-designed-right {
        flex: 1 1 100%;
        margin-top: 30px;
    }
    .cascading-images-wrapper {
        width: 320px;
        height: 330px;
        margin: 0 auto;
    }
    .c-photo-1 { width: 180px; height: 180px; left: 10px; }
    .c-photo-2 { width: 160px; height: 160px; top: 60px; right: 0; }
    .c-photo-3 { width: 150px; height: 150px; left: 40px; }
    .info-cards-grid {
        grid-template-columns: 1fr;
    }
    .cta-container {
        flex-direction: column;
        text-align: center;
    }
    .cta-btn {
        width: 100%;
    }
    .cta-btn .btn {
        width: 100%;
        text-align: center;
    }
}

/* ==========================================================================
   Inner Page Styling & Lifelong Care Infographics
   ========================================================================== */

/* Left Content Design Polish */
.left_content {
    animation: fadeInUp 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.left_content h1 {
    position: relative;
    padding-bottom: 12px;
    margin-bottom: 25px;
    font-size: 2.2rem;
    font-weight: 700;
}

.left_content h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.left_content p {
    font-size: 16px;
    line-height: 1.8;
    color: #4A526D;
    margin-bottom: 1.6rem;
}

/* Drop Cap & Lead Paragraph */
.left_content > p:first-of-type {
    font-size: 18px;
    line-height: 1.85;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 25px;
}

.left_content > p:first-of-type::first-letter {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--accent-color);
    float: left;
    line-height: 0.8;
    margin-right: 12px;
    margin-top: 6px;
    font-family: var(--font-family);
}

/* Statistics Callout Cards */
.stats-callout {
    background-color: var(--secondary-bg);
    border-left: 4px solid var(--accent-color);
    padding: 22px 25px;
    border-radius: 0 12px 12px 0;
    margin: 25px 0;
    box-shadow: 0 8px 20px rgba(32, 41, 110, 0.02);
    position: relative;
    overflow: hidden;
}

.stats-callout::after {
    content: "%";
    position: absolute;
    bottom: -20px;
    right: 10px;
    font-size: 120px;
    font-weight: 900;
    color: rgba(255, 112, 163, 0.04);
    pointer-events: none;
    line-height: 1;
}

.stats-callout p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 0;
    position: relative;
    z-index: 2;
}

/* Premium Card-based Unordered Lists */
.left_content ul {
    list-style: none;
    padding-left: 0;
    margin: 30px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.left_content ul li {
    position: relative;
    padding: 18px 20px 18px 48px;
    background-color: #F8F9FD;
    border-radius: 12px;
    border-left: 4px solid var(--accent-color);
    font-size: 14.5px;
    line-height: 1.5;
    color: var(--primary-color);
    font-weight: 500;
    box-shadow: 0 5px 15px rgba(32, 41, 110, 0.01);
    transition: var(--transition);
    margin-bottom: 0;
}

.left_content ul li:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(32, 41, 110, 0.05);
    background-color: var(--white);
    border-left-color: var(--primary-color);
}

.left_content ul li::before {
    content: "";
    position: absolute;
    left: 18px;
    top: 20px;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23FF70A3'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    transition: var(--transition);
}

.left_content ul li:hover::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2320296E'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
}

/* Premium Card-based Ordered Lists */
.left_content ol {
    list-style: none;
    padding-left: 0;
    margin: 30px 0;
    counter-reset: li-counter;
}

.left_content ol li {
    position: relative;
    padding: 16px 20px 16px 48px;
    background-color: #F8F9FD;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    font-size: 14.5px;
    line-height: 1.5;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 12px;
    box-shadow: 0 5px 15px rgba(32, 41, 110, 0.01);
    transition: var(--transition);
}

.left_content ol li:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(32, 41, 110, 0.05);
    background-color: var(--white);
    border-left-color: var(--accent-color);
}

.left_content ol li::before {
    counter-increment: li-counter;
    content: counter(li-counter, decimal-leading-zero);
    position: absolute;
    left: 18px;
    top: 15px;
    font-size: 15px;
    font-weight: 700;
    color: var(--accent-color);
}

/* Sidebar Animations & Custom Cards */
#sidebar {
    animation: fadeInRight 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.sidebar-card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    margin-top: 30px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 25px rgba(32, 41, 110, 0.03);
    transition: var(--transition);
}

.sidebar-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(32, 41, 110, 0.08);
    border-color: var(--accent-color);
}

.sidebar-card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.sidebar-card-content {
    padding: 20px;
}

.sidebar-card-content h4 {
    font-size: 16px;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-weight: 700;
}

.sidebar-card-content p {
    font-size: 13.5px;
    color: var(--text-color);
    line-height: 1.5;
    margin-bottom: 0;
}

/* Life Stages Infographic Section */
.life-stages-infographic-section {
    margin-top: 60px;
    padding-top: 50px;
    border-top: 1px solid var(--border-color);
}

.infographic-header {
    text-align: center;
    margin-bottom: 40px;
}

.infographic-header h3 {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 700;
}

.infographic-header p {
    font-size: 15px;
    color: var(--text-color);
    max-width: 600px;
    margin: 0 auto;
}

.life-stages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.stage-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px 25px;
    position: relative;
    transition: var(--transition);
    box-shadow: 0 10px 25px rgba(32, 41, 110, 0.02);
}

.stage-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-color);
    box-shadow: 0 15px 30px rgba(32, 41, 110, 0.08);
}

.stage-card.active {
    background-color: var(--secondary-bg);
    border-color: var(--primary-color);
    border-width: 2px;
}

.stage-num {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 28px;
    font-weight: 700;
    color: rgba(32, 41, 110, 0.08);
    font-family: var(--font-family);
}

.stage-card:hover .stage-num {
    color: rgba(255, 112, 163, 0.15);
}

.stage-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: var(--transition);
}

.stage-icon svg {
    width: 22px;
    height: 22px;
    fill: var(--white);
}

.stage-card:hover .stage-icon {
    background-color: var(--accent-color);
}

.stage-card h4 {
    font-size: 17px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stage-card p {
    font-size: 13.5px;
    color: var(--text-color);
    line-height: 1.5;
    margin-bottom: 0;
}

/* Animations Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ==========================================================================
   Premium Overrides for Ultrasounds, Contact & Our Babies Pages
   ========================================================================== */

/* Reusable Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.93);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Base animations applied to elements */
.contact-card, 
.office-hours-section, 
.contact-map-section, 
.scan-type-card, 
.accreditation-box, 
.gallery-header-section {
    animation: fadeInUp 0.75s cubic-bezier(0.165, 0.84, 0.44, 1) both;
}

#gallery a {
    animation: scaleIn 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) both;
}

/* Staggered Loading Animations */
.contact-grid > div:nth-child(1) { animation-delay: 0.05s; }
.contact-grid > div:nth-child(2) { animation-delay: 0.1s; }
.contact-grid > div:nth-child(3) { animation-delay: 0.15s; }
.contact-grid > div:nth-child(4) { animation-delay: 0.2s; }

.scans-grid > div:nth-child(1) { animation-delay: 0.1s; }
.scans-grid > div:nth-child(2) { animation-delay: 0.2s; }

/* Stagger gallery items loading */
#gallery a:nth-child(1) { animation-delay: 0.02s; }
#gallery a:nth-child(2) { animation-delay: 0.04s; }
#gallery a:nth-child(3) { animation-delay: 0.06s; }
#gallery a:nth-child(4) { animation-delay: 0.08s; }
#gallery a:nth-child(5) { animation-delay: 0.1s; }
#gallery a:nth-child(6) { animation-delay: 0.12s; }
#gallery a:nth-child(7) { animation-delay: 0.14s; }
#gallery a:nth-child(8) { animation-delay: 0.16s; }
#gallery a:nth-child(9) { animation-delay: 0.18s; }
#gallery a:nth-child(10) { animation-delay: 0.2s; }
#gallery a:nth-child(11) { animation-delay: 0.22s; }
#gallery a:nth-child(12) { animation-delay: 0.24s; }

/* ----------------------------------------------------
   Contact Page Styles
   ---------------------------------------------------- */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.contact-card {
    background-color: #F8F9FD;
    border-radius: 16px;
    padding: 30px 25px;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 20px rgba(32, 41, 110, 0.015);
    display: flex;
    gap: 20px;
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent-color);
    box-shadow: 0 16px 36px rgba(32, 41, 110, 0.08);
    background-color: var(--white);
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
}

.contact-icon svg {
    width: 22px;
    height: 22px;
    fill: var(--white);
    transition: transform 0.4s ease;
}

.contact-card:hover .contact-icon {
    background-color: var(--accent-color);
    transform: scale(1.08) rotate(5deg);
}

.contact-info h3 {
    font-size: 17px;
    color: var(--primary-color);
    margin-bottom: 6px;
    font-weight: 700;
}

.contact-info p {
    font-size: 14px;
    color: var(--text-color);
    line-height: 1.5;
    margin-bottom: 12px;
}

.contact-info .phone-num, 
.contact-info .email-address, 
.contact-info .fax-num {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary-color);
}

.contact-action-btn {
    display: inline-block;
    padding: 8px 18px;
    font-size: 12px;
    font-weight: 700;
    color: var(--white) !important;
    background-color: var(--accent-color);
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.contact-action-btn:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 112, 163, 0.2);
}

.contact-status-badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    color: var(--primary-color);
    background-color: var(--secondary-bg);
    border-radius: 4px;
    text-transform: uppercase;
}

/* Office Hours & Google Maps Split Container */
.hours-map-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.office-hours-section, 
.contact-map-section {
    background-color: #F8F9FD;
    border-radius: 16px;
    padding: 30px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.hours-header, 
.map-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.clock-icon, 
.map-icon {
    width: 24px;
    height: 24px;
    fill: var(--accent-color);
}

.hours-header h3, 
.map-header h3 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 0;
    font-weight: 700;
}

.hours-table {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hours-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 500;
    padding: 8px 0;
}

.hours-row .day-name {
    color: var(--primary-color);
    font-weight: 600;
}

.hours-row .hours-time {
    color: #4A526D;
}

.hours-row.closed {
    opacity: 0.65;
}

.hours-row.closed .hours-time {
    color: var(--accent-color);
    font-weight: 700;
}

.map-iframe-container {
    width: 100%;
    flex-grow: 1;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.03);
}

.map-iframe-container iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 200px;
}

/* ----------------------------------------------------
   Ultrasounds Service Page Styles
   ---------------------------------------------------- */
.featured-scanner-box {
    display: flex;
    gap: 30px;
    background-color: #F8F9FD;
    border-radius: 16px;
    padding: 30px;
    margin-top: 30px;
    align-items: center;
    border: 1px solid var(--border-color);
}

.scanner-text {
    flex: 1;
}

.scanner-img-container {
    flex: 0 0 220px;
    overflow: hidden;
    border-radius: 12px;
}

.scanner-photo {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 12px;
    border: 3px solid var(--white);
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.featured-scanner-box:hover .scanner-photo {
    transform: scale(1.05);
}

.scans-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

/* Redesigned Premium Scans Card with Image */
.scan-type-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(32,41,110,0.02);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.scan-type-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-color);
    box-shadow: 0 20px 40px rgba(32,41,110,0.08);
}

.scan-card-img-wrapper {
    width: 100%;
    height: 190px;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.scan-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.scan-type-card:hover .scan-card-img {
    transform: scale(1.06);
}

.scan-card-body {
    padding: 30px;
    position: relative;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Sit the icon halfway on the image boundary */
.scan-card-body .scan-icon-container {
    position: absolute;
    top: -24px;
    right: 25px;
    margin-bottom: 0;
    box-shadow: 0 6px 16px rgba(255, 112, 163, 0.25);
    z-index: 2;
}

.scan-icon-container {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.scan-icon-container svg {
    width: 22px;
    height: 22px;
    fill: var(--white);
    transition: transform 0.4s ease;
}

.scan-type-card:hover .scan-icon-container {
    background-color: var(--accent-color);
}

.scan-type-card:hover .scan-icon-container svg {
    transform: scale(1.1) rotate(-5deg);
}

.scan-type-card h3 {
    font-size: 19px;
    color: var(--primary-color);
    font-weight: 700;
    margin-top: 5px;
    margin-bottom: 12px;
}

.scan-type-card p {
    font-size: 14px;
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.scan-bullets {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    border-top: 1px solid var(--border-color);
    padding-top: 20px !important;
}

.scan-bullets li {
    font-size: 13.5px !important;
    font-weight: 600 !important;
    color: var(--primary-color) !important;
    padding: 0 0 0 25px !important;
    position: relative !important;
    margin-bottom: 0 !important;
    transition: transform 0.3s ease;
}

.scan-type-card:hover .scan-bullets li {
    transform: translateX(3px);
}

.scan-bullets li::before {
    content: "" !important;
    position: absolute !important;
    left: 2px !important;
    top: 2px !important;
    width: 14px !important;
    height: 14px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23FF70A3'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
}

/* Premium Gold-bordered Accreditation Box */
.accreditation-box {
    display: flex;
    gap: 25px;
    background-color: #FAF7F2;
    border-radius: 16px;
    padding: 25px 30px;
    margin-top: 40px;
    align-items: center;
    border: 1px solid rgba(212, 175, 55, 0.22);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.03);
}

.accred-logo {
    flex: 0 0 80px;
    transition: transform 0.4s ease;
}

.accreditation-box:hover .accred-logo {
    transform: scale(1.05);
}

.accred-logo img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.accred-text h4 {
    font-size: 16px;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 6px;
}

.accred-text p {
    font-size: 13.5px;
    color: var(--text-color);
    line-height: 1.5;
    margin-bottom: 0;
}

/* ----------------------------------------------------
   Our Babies Gallery Section Overrides
   ---------------------------------------------------- */
.gallery-header-section {
    text-align: center;
    margin: 15px auto 45px auto;
    max-width: 800px;
}

.gallery-intro-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--secondary-bg);
    border: 1px solid var(--border-color);
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 18px;
}

.gallery-intro-badge span {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.stroller-svg {
    width: 15px;
    height: 15px;
    fill: var(--accent-color);
}

.gallery-header-section h1 {
    font-size: 32px;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 12px;
}

.gallery-header-section p.lead-text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-color);
}

/* Clean Overrides for the grid links */
#gallery.babies-grid {
    display: block;
    column-count: 4;
    column-gap: 25px;
    padding: 20px 0;
}

@media (max-width: 1024px) {
    #gallery.babies-grid {
        column-count: 3;
        column-gap: 20px;
    }
}

@media (max-width: 768px) {
    #gallery.babies-grid {
        column-count: 2;
        column-gap: 15px;
    }
}

@media (max-width: 480px) {
    #gallery.babies-grid {
        column-count: 2;
        column-gap: 10px;
    }
}

#gallery.babies-grid a {
    display: inline-block;
    width: 100%;
    margin-bottom: 25px;
    break-inside: avoid;
    overflow: hidden;
    position: relative;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(32, 41, 110, 0.04);
    border: 3px solid var(--white);
    background-color: var(--white);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), border-color 0.4s ease, box-shadow 0.5s ease;
}

@media (max-width: 768px) {
    #gallery.babies-grid a {
        margin-bottom: 15px;
        border-radius: 12px;
        border: 2px solid var(--white);
    }
}

/* Premium zoom overlay on hover */
#gallery.babies-grid a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 112, 163, 0.15) 0%, rgba(32, 41, 110, 0.45) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
}

#gallery.babies-grid a::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF70A3' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E") no-repeat center;
    background-size: 20px;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0.6);
    opacity: 0;
    z-index: 3;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
    box-shadow: 0 10px 25px rgba(32, 41, 110, 0.2);
}

#gallery.babies-grid a img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.7s cubic-bezier(0.165, 0.84, 0.44, 1), filter 0.4s ease;
}

#gallery.babies-grid a .border {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 10px;
    opacity: 0;
    transform: scale(1.04);
    transition: transform 0.4s ease, opacity 0.4s ease, border-color 0.4s ease;
    z-index: 3;
    pointer-events: none;
}

/* Hover active overrides */
#gallery.babies-grid a:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(255, 112, 163, 0.2);
    border-color: var(--accent-color);
}

#gallery.babies-grid a:hover img {
    transform: scale(1.08);
    filter: brightness(0.9) contrast(1.05);
}

#gallery.babies-grid a:hover::before {
    opacity: 1;
}

#gallery.babies-grid a:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

#gallery.babies-grid a:hover .border {
    opacity: 1;
    transform: scale(1);
    border-color: rgba(255, 255, 255, 0.6);
}


/* ----------------------------------------------------
   Responsive Breakpoints
   ---------------------------------------------------- */
@media (max-width: 992px) {
    .hours-map-container {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .hours-map-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .scans-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .featured-scanner-box {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .scanner-img-container {
        flex: 1;
        width: 100%;
    }
    .accreditation-box {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    .accred-logo {
        flex: 1;
        width: 80px;
        margin: 0 auto;
    }
    .contact-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }
    #gallery.babies-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
}

/* ==========================================================================
   Sub-Pages Split Layout & Ambient Animations
   ========================================================================== */

/* Alternating Split Column Layout for Sub-pages */
.inner-split-container {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-top: 20px;
}

.inner-split-container.img-left {
    flex-direction: row-reverse;
}

.inner-text-panel {
    flex: 1 1 55%;
    background-color: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(32, 41, 110, 0.02);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-color);
    position: relative;
    overflow: hidden;
}

.inner-text-panel::before {
    content: "";
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23FF70A3' fill-opacity='0.03'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
}

.inner-image-panel {
    flex: 1 1 40%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.inner-img-wrapper {
    position: relative;
    width: 100%;
    max-width: 380px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(32, 41, 110, 0.06);
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1;
}

.inner-img-wrapper:hover {
    transform: translateY(-5px) scale(1.02);
}

.inner-feature-img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 20px;
    border: 4px solid var(--white);
    display: block;
}

/* Decorative circle background behind images */
.inner-img-wrapper .decor-circle {
    position: absolute;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background-color: var(--secondary-bg);
    opacity: 0.8;
    z-index: -1;
    pointer-events: none;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.inner-split-container.img-right .inner-img-wrapper .decor-circle {
    bottom: -25px;
    right: -25px;
    border: 3px dashed var(--accent-color);
}

.inner-split-container.img-left .inner-img-wrapper .decor-circle {
    top: -25px;
    left: -25px;
    border: 3px dashed var(--primary-color);
}

.inner-img-wrapper:hover .decor-circle {
    transform: scale(1.15) rotate(15deg);
}

/* Ambient Background Blobs */
.ambient-blobs-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: -99;
    overflow: hidden;
}

.ambient-blob {
    position: absolute;
    border-radius: 50%;
    mix-blend-mode: multiply;
    filter: blur(120px);
    opacity: 0.08;
    pointer-events: none;
}

.ambient-blob-1 {
    width: 450px;
    height: 450px;
    background-color: #FF70A3;
    top: -10%;
    left: -10%;
    animation: floatBlob1 25s infinite alternate ease-in-out;
}

.ambient-blob-2 {
    width: 500px;
    height: 500px;
    background-color: #E2E6F3;
    bottom: -10%;
    right: -10%;
    animation: floatBlob2 30s infinite alternate ease-in-out;
}

/* Ambient Blobs floating animations */
@keyframes floatBlob1 {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        border-radius: 50%;
    }
    33% {
        transform: translate(120px, 80px) scale(1.15) rotate(120deg);
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    }
    66% {
        transform: translate(-80px, 150px) scale(0.9) rotate(240deg);
        border-radius: 60% 40% 30% 70% / 50% 30% 70% 50%;
    }
    100% {
        transform: translate(0, 0) scale(1) rotate(360deg);
        border-radius: 50%;
    }
}

@keyframes floatBlob2 {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        border-radius: 50%;
    }
    50% {
        transform: translate(-150px, -100px) scale(1.2) rotate(-180deg);
        border-radius: 30% 70% 70% 30% / 50% 60% 40% 50%;
    }
    100% {
        transform: translate(0, 0) scale(1) rotate(-360deg);
        border-radius: 50%;
    }
}

/* Responsive overrides for sub-page split layout */
@media (max-width: 992px) {
    .inner-split-container {
        gap: 30px;
    }
    .inner-feature-img {
        height: 280px;
    }
}

@media (max-width: 768px) {
    .inner-split-container {
        flex-direction: column !important;
        gap: 25px;
    }
    .inner-text-panel {
        padding: 30px 25px;
    }
    .inner-image-panel {
        width: 100%;
        margin-top: 10px;
    }
    .inner-img-wrapper {
        max-width: 100%;
    }
    .inner-feature-img {
        height: 240px;
    }
    .decor-circle {
        display: none;
    }
}

/* Premium inner body content formatting */
.inner-body-content {
    margin-top: 40px;
    font-size: 16px;
    line-height: 1.8;
    color: var(--primary-color);
}

.inner-body-content p {
    margin-bottom: 24px;
}

.inner-body-content h2, 
.inner-body-content h3 {
    margin-top: 40px;
    margin-bottom: 16px;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 24px;
    position: relative;
    padding-bottom: 8px;
}

.inner-body-content h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.inner-body-content h2 .accent-word, 
.inner-body-content h3 .accent-word {
    color: var(--accent-color);
}

.inner-body-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(32, 41, 110, 0.02);
    border: 1px solid var(--border-color);
}

.inner-body-content th {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: left;
    padding: 14px 18px;
    font-weight: 600;
    font-size: 15px;
}

.inner-body-content td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-color);
    color: var(--primary-color);
    font-size: 14.5px;
    background-color: var(--white);
}

.inner-body-content tr:last-child td {
    border-bottom: none;
}

.inner-body-content tr:nth-child(even) td {
    background-color: #F8F9FD;
}

/* Babies page CTA card */
.babies-intro-cta {
    display: flex;
    gap: 40px;
    background-color: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(32, 41, 110, 0.02);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-color);
    margin: 40px 0;
    align-items: stretch;
}

.babies-intro-cta .cta-left {
    flex: 1.2 1 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px dashed var(--border-color);
    padding-right: 40px;
}

.babies-intro-cta .cta-right {
    flex: 0.8 1 0;
    padding-left: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cta-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background-color: var(--secondary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.cta-icon {
    width: 24px;
    height: 24px;
    fill: var(--accent-color);
}

.cta-left h2 {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 12px;
    font-weight: 700;
}

.cta-left p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--primary-color);
    opacity: 0.85;
    margin-bottom: 24px;
}

.cta-btn {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background-color: var(--accent-color);
    color: var(--white) !important;
    font-weight: 600;
    font-size: 14.5px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(255, 112, 163, 0.2);
    transition: var(--transition);
    text-decoration: none !important;
}

.cta-btn:hover {
    background-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(32, 41, 110, 0.15);
    transform: translateY(-2px);
}

.btn-arrow {
    width: 18px;
    height: 18px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.cta-btn:hover .btn-arrow {
    transform: translateX(4px);
}

.cta-right h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.req-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.req-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 14.5px;
    color: var(--primary-color);
    font-weight: 500;
}

.req-list li small {
    opacity: 0.6;
    font-weight: 400;
}

.check-icon {
    width: 18px;
    height: 18px;
    fill: var(--accent-color);
    flex-shrink: 0;
}

.note-box {
    background-color: var(--secondary-bg);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--primary-color);
}

.note-box p {
    margin: 0;
}

/* Fertility stats section grid */
.fertility-stats-section {
    margin: 50px 0;
}

.stats-header {
    text-align: center;
    margin-bottom: 35px;
}

.stats-grid-container {
    display: flex;
    gap: 40px;
    align-items: stretch;
}

.stats-cards-grid {
    flex: 1.1 1 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.stat-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(32, 41, 110, 0.01);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(32, 41, 110, 0.04);
    border-color: var(--accent-color);
}

.stat-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background-color: #FFF0F5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.stat-icon {
    width: 22px;
    height: 22px;
    fill: var(--accent-color);
}

.stat-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 8px;
    line-height: 1.1;
}

.stat-label {
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--primary-color);
    opacity: 0.8;
    margin-bottom: 0;
    font-weight: 500;
}

/* Stats focus card */
.stats-focus-card {
    flex: 0.9 1 0;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(32, 41, 110, 0.02);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.focus-card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}

.focus-text {
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--primary-color);
    opacity: 0.9;
    margin-bottom: 24px;
}

.focus-media-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: auto;
}

.focus-small-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    border: 3px solid var(--white);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

/* Circular Text Stamp */
.stamp-wrapper {
    position: relative;
    width: 90px;
    height: 90px;
    flex-shrink: 0;
}

.circular-stamp {
    width: 100%;
    height: 100%;
    animation: rotateStamp 20s linear infinite;
}

.circular-stamp text {
    font-family: var(--font-family);
    font-size: 8.5px;
    font-weight: 700;
    fill: var(--accent-color);
    letter-spacing: 1px;
}

.stamp-center-arrow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 8px rgba(255, 112, 163, 0.3);
}

.stamp-center-arrow svg {
    width: 18px;
    height: 18px;
    fill: var(--white);
}

@keyframes rotateStamp {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@media (max-width: 992px) {
    .stats-grid-container {
        flex-direction: column;
    }
    .stats-cards-grid {
        width: 100%;
    }
    .stats-focus-card {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .babies-intro-cta {
        flex-direction: column;
        padding: 30px 24px;
        gap: 30px;
    }
    .babies-intro-cta .cta-left {
        border-right: none;
        padding-right: 0;
        border-bottom: 1px dashed var(--border-color);
        padding-bottom: 30px;
    }
    .babies-intro-cta .cta-right {
        padding-left: 0;
    }
}

/* ==========================================================================
   Sitemap & Website Directory Redesign
   ========================================================================== */
.sitemap-header-section {
    text-align: center;
    margin-bottom: 50px;
    animation: fadeInUp 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.sitemap-intro-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 700;
    color: var(--accent-color);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.sitemap-intro-badge svg {
    width: 16px;
    height: 16px;
    fill: var(--accent-color);
}

.sitemap-header-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
    margin-top: 30px;
    animation: fadeInUp 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.15s forwards;
    opacity: 0;
}

.sitemap-card {
    background-color: var(--white);
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 10px 30px rgba(32, 41, 110, 0.02);
    border: 1px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
}

.sitemap-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(32, 41, 110, 0.06);
}

.sitemap-card.obstetrics-card {
    border-top-color: var(--accent-color);
}

.sitemap-card.gynaecology-card {
    border-top-color: #B388FF;
}

.sitemap-card.specialty-card {
    border-top-color: #00E676;
}

.sitemap-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 20px;
}

.sitemap-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background-color: var(--secondary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sitemap-card-icon svg {
    width: 22px;
    height: 22px;
    fill: var(--primary-color);
}

.sitemap-card.obstetrics-card .sitemap-card-icon {
    background-color: rgba(255, 112, 163, 0.08);
}
.sitemap-card.obstetrics-card .sitemap-card-icon svg {
    fill: var(--accent-color);
}

.sitemap-card.gynaecology-card .sitemap-card-icon {
    background-color: rgba(179, 136, 255, 0.08);
}
.sitemap-card.gynaecology-card .sitemap-card-icon svg {
    fill: #7C4DFF;
}

.sitemap-card.specialty-card .sitemap-card-icon {
    background-color: rgba(0, 230, 118, 0.08);
}
.sitemap-card.specialty-card .sitemap-card-icon svg {
    fill: #00C853;
}

.sitemap-card-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.sitemap-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sitemap-links-list li {
    position: relative;
    padding-left: 24px;
}

.sitemap-links-list li a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s ease, padding-left 0.2s ease;
    display: inline-block;
}

.sitemap-links-list li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--border-color);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.sitemap-links-list li a:hover {
    color: var(--accent-color);
    padding-left: 4px;
}

.sitemap-links-list li:hover::before {
    background-color: var(--accent-color);
    transform: translateY(-50%) scale(1.3);
}

.sitemap-card.obstetrics-card .sitemap-links-list li a:hover {
    color: var(--accent-color);
}
.sitemap-card.obstetrics-card .sitemap-links-list li:hover::before {
    background-color: var(--accent-color);
}

.sitemap-card.gynaecology-card .sitemap-links-list li a:hover {
    color: #7C4DFF;
}
.sitemap-card.gynaecology-card .sitemap-links-list li:hover::before {
    background-color: #7C4DFF;
}

.sitemap-card.specialty-card .sitemap-links-list li a:hover {
    color: #00C853;
}
.sitemap-card.specialty-card .sitemap-links-list li:hover::before {
    background-color: #00C853;
}

/* ==========================================================================
   Premium Preloader Styles
   ========================================================================== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #ffffff 0%, #fff5f8 100%);
    z-index: 100000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

#preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.spinner-container {
    position: relative;
    width: 90px;
    height: 90px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.preloader-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    z-index: 2;
    animation: preloader-pulse 2s ease-in-out infinite;
}

.preloader-spinner {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid rgba(255, 112, 163, 0.1);
    border-top: 3px solid var(--accent-color, #ff70a3);
    border-radius: 50%;
    z-index: 1;
    animation: preloader-spin 1.2s cubic-bezier(0.5, 0.1, 0.4, 0.9) infinite;
}

.preloader-text {
    font-family: 'Onest', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-color, #20296e);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.8;
    animation: preloader-fade 2s ease-in-out infinite;
}

@keyframes preloader-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes preloader-pulse {
    0%, 100% {
        transform: scale(0.92);
        opacity: 0.95;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

@keyframes preloader-fade {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 0.9;
    }
}