/*
================================================================
MRIDULA DENTAL CLINIC - MAIN STYLE SHEET (STYLE.CSS)
Theme: Premium, Modern & Elegant Dental Clinic
Colors: Blue (#0D6EFD), Teal (#00B8A9), Light Gray (#FAFCFF)
Fonts: Outfit (Headings), Inter (Body), Poppins (Accents)
================================================================
*/

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&family=Poppins:wght@300;400;500;600;700&display=swap');

/* --- Root Variables & Theme Tokens --- */
:root {
    --primary-dark-green: #356a06;
    --primary-dark-green-rgb: 11, 61, 50;
    --secondary-green: #126B5B;
    --accent-aqua: #4d6c26;
    --muted-aqua: #63ab09;
    --accent-aqua-rgb: 132, 212, 32;
    --light-aqua: #eff6e6;
    --page-bg: #fafbf9;
    --white: #FFFFFF;
    --text-dark: #131517;
    --text-body: #526663;
    --text-muted: #71817E;
    --text-white: #FFFFFF;
    --topbar-yellow: #FFF7D6;
    --footer-green: #063B2F;
    --border-color: #E1EFEC;
    --shadow-premium: 0 10px 30px rgba(11, 61, 50, 0.07);
    --shadow-soft: 0 4px 15px rgba(11, 61, 50, 0.05);
    --glass-blur: 12px;
    --transition-smooth: all 0.35s ease;
    --transition-bounce: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.15);
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 28px;
    --radius-xl: 36px;
}

/* --- Global Reset & Base Elements --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--page-bg);
    color: var(--text-body);
    overflow-x: hidden;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--page-bg);
}
::-webkit-scrollbar-thumb {
    background: rgba(var(--primary-dark-green-rgb), 0.15);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-aqua);
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--muted-aqua);
    letter-spacing: -0.025em;
}

h3, h4, h5, h6 {
    color: var(--muted-aqua); /* Overriding previous green to make all headings aqua */
}

p {
    font-size: 1rem; /* Slightly more compact body text */
    color: var(--text-body);
}

.font-poppins {
    font-family: 'Poppins', sans-serif;
}

/* Highlight Text Gradient */
.text-gradient-blue {
    background: linear-gradient(135deg, var(--muted-aqua), var(--accent-aqua));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-teal {
    background: linear-gradient(135deg, var(--accent-aqua), var(--primary-dark-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- AOS Custom Settings --- */
[data-aos] {
    pointer-events: none;
}

/* --- Glassmorphism Foundation --- */
.glass-panel {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 15px 40px rgba(0,0,0,0.06);
    border-radius: var(--radius-md);
    transition: var(--transition-smooth);
}

.aos-animate {
    pointer-events: auto;
}

.glass-panel:hover {
    box-shadow: var(--shadow-premium);
    border-color: rgba(var(--muted-aqua), 0.18);
}

/* --- Premium Buttons --- */
.btn-premium {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.btn-premium, .btn-premium:hover { 
    text-decoration: none; 
    border: none; /* Ensure no default button border */
}

/* Blue Gradient Button */
.btn-premium-primary {
    background-color: var(--primary-dark-green);
    color: var(--text-white) !important;
    box-shadow: 0 4px 15px rgba(var(--primary-dark-green-rgb), 0.2);
}

.btn-premium-primary:hover {
    transform: translateY(-3px);
    background-color: var(--accent-aqua);
    color: var(--footer-green) !important;
    box-shadow: 0 8px 25px rgba(var(--accent-aqua-rgb), 0.3);
}

/* Teal / Child-friendly CTA Button */
.btn-premium-teal {
    background-color: var(--accent-aqua);
    color: var(--footer-green) !important;
    box-shadow: 0 4px 15px rgba(var(--accent-aqua-rgb), 0.2);
}

.btn-premium-teal:hover {
    transform: translateY(-3px);
    background-color: var(--primary-dark-green);
    color: var(--text-white) !important;
    box-shadow: 0 8px 25px rgba(var(--primary-dark-green-rgb), 0.25);
}

/* White Glass Button */
.btn-premium-outline {
    background: transparent;
    border: 1px solid var(--primary-dark-green);
    color: var(--primary-dark-green) !important;
}

.btn-premium-outline:hover {
    background: var(--primary-dark-green);
    color: var(--text-white) !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(var(--primary-dark-green-rgb), 0.15);
    border-color: var(--primary-dark-green);
}


/* --- Section Formatting --- */
.section-padding {
    padding: 50px 0;
}

.section-title-wrap {
    margin-bottom: 20px;
}

.home-premium-surface {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.home-premium-surface::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(var(--accent-aqua-rgb), 0.1), transparent 32%),
        radial-gradient(circle at top right, rgba(var(--primary-dark-green-rgb), 0.05), transparent 28%);
    pointer-events: none;
    z-index: 0;
}

.home-premium-surface::after {
    content: '';
    position: absolute;
    inset: auto -8% -120px auto;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--accent-aqua-rgb), 0.05) 0%, rgba(var(--accent-aqua-rgb), 0.015) 45%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.home-premium-surface > .container {
    position: relative;
    z-index: 1;
}

.home-premium-surface:nth-of-type(2n) {
    background: var(--page-bg) !important;
}

.home-premium-surface:nth-of-type(2n+1) {
    background: var(--white) !important;
}

.section-tag {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: none;
    letter-spacing: 0.18em;
    color: var(--accent-aqua);
    display: inline-block;
    margin-bottom: 1rem;
    padding: 0.4rem 1.1rem;
    background: var(--light-aqua);
    border: 1px solid rgba(var(--accent-aqua-rgb), 0.1);
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.section-title {
    font-size: 2.55rem;
    font-weight: 800;
    line-height: 1.08;
    margin-bottom: 1.1rem;
    letter-spacing: -0.045em;    
    position: relative;
}

.section-title-wrap .section-title {
    width: 100%;
    text-align: center;
}

.section-title::after {
    content: '';
    display: block;
    width: 84px;
    height: 4px;
    margin-top: 0.9rem;
    margin-left: 0;
    margin-right: auto;
    border-radius: 999px;
    background: var(--accent-aqua);
    opacity: 0.9;
}

.section-title-wrap .section-title::after {
    margin-left: auto;
    margin-right: auto;
}

.section-title-wrap .text-muted {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

/* Why Choose Us List */
.why-choose-list li {
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

.header-premium .navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.header-premium .logo-icon-wrap {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary-dark-green), var(--accent-aqua));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 1.4rem;
    box-shadow: 0 6px 18px rgba(var(--primary-dark-green-rgb), 0.2);
    transition: var(--transition-bounce);
}

.header-premium .navbar-brand:hover .logo-icon-wrap {
    transform: rotate(10deg) scale(1.05);
}

.logo-icon-wrap {
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, var(--primary-dark-green), var(--accent-aqua));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 1.5rem;
    box-shadow: 0 8px 22px rgba(var(--primary-dark-green-rgb), 0.22);
    transition: var(--transition-bounce);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--text-dark);
    line-height: 1;
}

.logo-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent-aqua);
    letter-spacing: 0.07em;
    margin-top: 3px;
}

/* Nav Links */
.navbar-nav .nav-link {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--primary-dark-green);
    padding: 0.5rem 0.2rem !important;
    position: relative;
    transition: var(--transition-smooth);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 1rem;
    width: 0;
    height: 2px;
    background: var(--accent-aqua);
    transition: var(--transition-smooth);
}

.navbar-nav .nav-link:hover {
    color: var(--muted-aqua);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 0; /* Underline removed for a cleaner look */
}

.navbar-nav .nav-link.active {
    color: var(--muted-aqua);
    font-weight: 600;
}

.header-premium .navbar-toggler {
    border: none;
    font-size: 1.5rem;
}

.header-premium .navbar-toggler:focus {
    box-shadow: none;
}

/* Offcanvas custom decoration */
.offcanvas-luxury {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(25px);
    border-left: 1px solid var(--bg-card-border);
}

/*
================================================================
SERVICES MEGA-MENU STYLES
================================================================
*/
.dropdown-menu-mega {
    width: 600px;
    padding: 1rem !important; /* Use !important to override potential Bootstrap inline styles */
}

.dropdown-menu-mega .container {
    padding: 0;
}

.mega-menu-item {
    display: flex;
    align-items: center;
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius-sm);
    color: var(--text-body);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    white-space: normal;
}

.mega-menu-item i {
    color: var(--accent-aqua);
    font-size: 1rem;
    transition: var(--transition-smooth);
    opacity: 0.5;
}

.mega-menu-item:hover,
.mega-menu-item.active {
    background-color: var(--light-aqua);
    color: var(--primary-dark-green);
    font-weight: 600;
}

.mega-menu-item:hover i,
.mega-menu-item.active i {
    transform: scale(1.1) translateX(4px);
    opacity: 1;
}

@media (max-width: 991.98px) {
    .dropdown-menu-mega {
        width: 100%;
        box-shadow: none;
        border: none;
        padding: 0.5rem 0 !important;
    }
    .dropdown-mega .dropdown-menu .row > * {
        padding-right: 0;
        padding-left: 0;
    }
}

.floating-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.14;
    z-index: -1;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-aqua);
    top: 15%;
    right: 15%;
    animation: floatBlob 22s infinite alternate;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: var(--secondary-green);
    bottom: 20%;
    left: 10%;
    animation: floatBlob 17s infinite alternate-reverse;
}

.dental-element-float {
    position: absolute;
    opacity: 0.45;
    pointer-events: none;
    z-index: 1;
    filter: drop-shadow(0 12px 25px rgba(var(--primary-dark-green-rgb), 0.1));
}

/* --- Modern Interactive 3D Cards --- */
.interactive-card {
    padding: 1.75rem;
    border-radius: 20px;
    background: var(--white);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    height: 100%;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.interactive-card:hover {
    transform: translateY(-5px); /* More subtle lift */
    box-shadow: 0 12px 35px rgba(var(--muted-aqua), 0.1);
    border-color: var(--muted-aqua);
}

.card-icon-box {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    background: var(--light-aqua);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-aqua);
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    transition: var(--transition-smooth);
}

.interactive-card:hover .card-icon-box {
    background: var(--muted-aqua);
    color: var(--white);
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(70, 161, 161, 0.25);
}

/* --- Special Dynamic Grid --- */
.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}

.gallery-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    aspect-ratio: 4/3;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(var(--primary-dark-green-rgb), 0.85), rgba(70, 161, 161, 0.35));
    opacity: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2.25rem;
    transition: var(--transition-smooth);
}

.gallery-card:hover .gallery-img {
    transform: scale(1.12);
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-title {
    color: var(--text-white);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    transform: translateY(20px);
    transition: var(--transition-smooth);
}

.gallery-tag {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    font-family: 'Poppins', sans-serif;
    transform: translateY(20px);
    transition: var(--transition-smooth) 0.1s;
}

.gallery-card:hover .gallery-title,
.gallery-card:hover .gallery-tag {
    transform: translateY(0);
}

/* --- Testimonial Carousel --- */
.testimonial-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-premium);
    margin: 15px;
}

.star-rating {
    color: #FBBF24; /* A warmer yellow for stars */
    margin-bottom: 1.25rem;
    font-size: 1.15rem;
}

.testimonial-text {
    font-style: italic;
    font-size: 1.05rem;
    color: var(--text-body);
    line-height: 1.75;
    margin-bottom: 1.75rem;
}

.testimonial-user {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.testimonial-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--muted-aqua);
}

.testimonial-info h5 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
}

.testimonial-info span {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-family: 'Poppins', sans-serif;
}

/* --- Accordion Custom Design --- */
.accordion-luxury .accordion-item {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 16px !important;
    margin-bottom: 1.2rem;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
}

.accordion-luxury .accordion-item:hover {
    border-color: rgba(70, 161, 161, 0.2);
    box-shadow: var(--shadow-premium);
}

.accordion-luxury .accordion-button {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    color: var(--muted-aqua);
    background: transparent;
    padding: 1.2rem 1.5rem;
    font-size: 1.1rem;
    box-shadow: none;
    transition: var(--transition-smooth);
}

.accordion-luxury .accordion-button:not(.collapsed) {
    color: var(--muted-aqua);
    background-color: var(--light-aqua);
}

.accordion-luxury .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2346A1A1'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    transition: var(--transition-bounce);
}

.accordion-luxury .accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2346A1A1'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-luxury .accordion-body {
    padding: 1.5rem;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.75;
}

/* --- Forms & Inputs --- */
.form-group-custom {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-control-custom {
    width: 100%;
    padding: 1rem 1.2rem;
    border-radius: 16px;
    background: var(--white);
    border: 1px solid var(--border-color);
    color: var(--text-body);
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: var(--transition-smooth);
}

.form-control-custom:focus {
    outline: none;
    border-color: var(--muted-aqua);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(70, 161, 161, 0.15);
}

.form-label-custom {
    position: absolute;
    left: 1.35rem;
    top: 1rem;
    color: var(--text-muted);
    pointer-events: none;
    transition: var(--transition-smooth);
}

.form-control-custom:focus ~ .form-label-custom,
.form-control-custom:not(:placeholder-shown) ~ .form-label-custom {
    top: -0.75rem;
    left: 0.9rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--muted-aqua);
    background: var(--white);
    padding: 0 0.6rem;
}

/* --- Footer Area --- */
.global-footer-container {
    background: #FFFFFF;
    border-top: 1px solid rgba(13, 110, 253, 0.08);
    position: relative;
    z-index: 10;
}

.footer-top {
    padding: 72px 0 58px;
}

.footer-bottom {
    padding: 28px 0;
    border-top: 1px solid rgba(13, 110, 253, 0.06);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.75rem;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.75rem;
}

.footer-socials {
    display: flex;
    gap: 0.85rem;
}

.social-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--light-aqua);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark-green);
    font-size: 1.15rem;
    transition: var(--transition-bounce);
    text-decoration: none;
}

.social-circle:hover {
    background: var(--primary-dark-green);
    color: var(--text-white);
    transform: translateY(-6px);
    box-shadow: 0 6px 18px rgba(var(--primary-dark-green-rgb), 0.22);
}

.footer-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.85rem;
    position: relative;
    padding-bottom: 0.6rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--muted-aqua);
    border-radius: 5px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.95rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.98rem;
    transition: var(--transition-smooth);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--muted-aqua);
    transform: translateX(6px);
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.footer-contact-item {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
}

.footer-contact-item i {
    color: var(--muted-aqua);
    font-size: 1.15rem;
    margin-top: 3px;
}

.footer-contact-item p {
    margin: 0;
    font-size: 0.98rem;
    color: var(--text-muted);
}

/* Map Embed */
.footer-map-container {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--bg-card-border);
    box-shadow: var(--shadow-soft);
    height: 190px;
}

/* --- Floating Utilities --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 62px;
    height: 62px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 32px;
    box-shadow: 0 5px 18px rgba(37, 211, 102, 0.35);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition-bounce);
}

.whatsapp-float:hover {
    transform: scale(1.12) translateY(-6px);
    color: #FFF;
    box-shadow: 0 10px 28px rgba(37, 211, 102, 0.5);
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: var(--white);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted-aqua);
    box-shadow: var(--shadow-soft);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    text-decoration: none;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--muted-aqua);
    color: var(--white);
    transform: translateY(-6px);
}

/* Preloader styles */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--page-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.loader-spinner {
    position: relative;
    width: 80px;
    height: 80px;
}

.loader-spinner::before,
.loader-spinner::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 4px solid transparent;
    border-top-color: var(--primary-dark-green);
    animation: spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.loader-spinner::after {
    border-top-color: var(--accent-aqua);
    animation-delay: -0.6s;
}

.loader-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.8rem;
    color: var(--primary-dark-green);
}

/* Cursor Glow effect */
.cursor-glow {
    width: 500px;
    height: 500px;    background: radial-gradient(circle, rgba(70, 161, 161, 0.08) 0%, rgba(11, 61, 50, 0.03) 50%, transparent 100%);
    position: fixed;
    pointer-events: none;
    z-index: 1;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Animation keyframes helper */
@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes floatBlob {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(60px, -40px) scale(1.18); }
    100% { transform: translate(-30px, 50px) scale(0.85); }
}

/*
================================================================
NEW HERO SLIDER STYLES
================================================================
*/
.hero-slider-section {
    height: 550px !important;
    position: relative;
    background-color: #e9f5ff; /* Fallback color */
}

#heroCarousel,
.carousel-inner,
.carousel-item {
    height: 100%;
}

.carousel-item {
    background-size: cover;
    background-position: center center;
    transition: opacity 0.8s ease-in-out; /* Smooth fade transition */
}

.carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.7) 0%, rgba(15, 23, 42, 0.1) 80%);
}

.carousel-caption-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 10%;
    color: white;
}

.carousel-caption-content {
    max-width: 650px;
    text-align: left;
}

.hero-tag {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(5px);
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-shadow: 0 2px 15px rgba(0,0,0,0.2);
}

.hero-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

/* Carousel Controls */
.carousel-indicators {
    bottom: 30px;
    margin-left: 10%;
    justify-content: flex-start;
}

.carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    opacity: 0.6;
    transition: all 0.4s ease;
}

.carousel-indicators .active {
    width: 30px;
    border-radius: 10px;
    background-color: white;
    opacity: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.4s ease;
}

.hero-slider-section:hover .carousel-control-prev,
.hero-slider-section:hover .carousel-control-next {
    opacity: 1;
}

.carousel-control-prev { left: 30px; }
.carousel-control-next { right: 30px; }

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .hero-slider-section { height: 520px; }
    .hero-title { font-size: 2.5rem; }
    .hero-description { font-size: 1.05rem; }
    .carousel-caption-container { padding: 0 8%; }
}

@media (max-width: 767.98px) {
    .hero-slider-section { height: 500px; }
    .carousel-item::before { background: linear-gradient(0deg, rgba(15, 23, 42, 0.8) 0%, rgba(15, 23, 42, 0.1) 100%); }
    .carousel-caption-container { align-items: flex-end; text-align: center; padding: 0 1rem 80px 1rem; }
    .carousel-caption-content { text-align: center; max-width: 100%; }
    .hero-title { font-size: 2.2rem; }
    .hero-description { margin-left: auto; margin-right: auto; }
    .carousel-indicators { justify-content: center; margin-left: 0; bottom: 20px; }
    .carousel-control-prev, .carousel-control-next { display: none; }
}

@media (max-width: 767.98px) {
    .section-title { font-size: 2.1rem; }
    .why-choose-list li { font-size: 1rem; }
    .about-image-collage .collage-img-1 { width: 100%; }
    .about-image-collage .collage-img-2 { display: none; }
    #appointment { margin-top: -120px; }
    .final-cta-buttons { flex-direction: column; }
    .final-cta-buttons .btn-premium { width: 100%; }
}

@media (max-width: 575.98px) {
    .section-padding { padding: 40px 0; }
    .section-title { font-size: 2rem; }
    .section-title-wrap .section-title {
        text-align: left;
    }
    .section-title-wrap .section-title::after {
        margin-left: 0;
        margin-right: auto;
    }
    .hero-slider-section { height: 480px; }
    .hero-title { font-size: 2rem; }
    .hero-description { font-size: 1rem; }
    #appointment { margin-top: -100px; }
}

/*
================================================================
NEW PREMIUM HEADER/NAVBAR STYLES
================================================================
*/
.clinic-header-new {
    background-color: #0f172a; /* Dark Navy/Blue */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.clinic-header-new .navbar {
    padding: 0.5rem 0;
}

.clinic-header-new .navbar-brand {
    padding-top: 0;
    padding-bottom: 0;
}

.clinic-header-new .logo-icon-wrap {
    background: linear-gradient(135deg, var(--accent-aqua), var(--secondary-green));
    box-shadow: 0 5px 15px rgba(0, 201, 139, 0.2);
}

.clinic-header-new .logo-title {
    color: #FFFFFF;
}

.clinic-header-new .logo-subtitle {
    color: var(--accent-aqua);
}

.clinic-header-new .nav-link {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: #e2e8f0; /* Lighter text for contrast */
    padding: 0.8rem 1rem !important;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.clinic-header-new .nav-link:hover {
    color: #FFFFFF;
    background-color: rgba(255, 255, 255, 0.05);
}

/* Active state for HOME */
.clinic-header-new .nav-link.active-bg {
    background-color: var(--muted-aqua);
    color: var(--primary-dark-green);
    font-weight: 700;
}

/* Active state for other links */
.clinic-header-new .nav-link.active {
    color: var(--muted-aqua);
    font-weight: 700;
}

/* Outlined active state for KIDS DENTISTRY */
.clinic-header-new .nav-link.active-outline {
    color: var(--muted-aqua);
    font-weight: 700;
    box-shadow: 0 0 0 2px var(--muted-aqua);
}

.clinic-header-new .dropdown-toggle::after {
    border: solid #e2e8f0;
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 2.5px;
    transform: rotate(45deg);
    margin-left: 0.4em;
}

.clinic-header-new .dropdown-menu {
    background-color: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.5rem 0;
}

.clinic-header-new .dropdown-item {
    color: #e2e8f0;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
}

.clinic-header-new .dropdown-item:hover {
    background-color: var(--muted-aqua);
    color: var(--primary-dark-green);
}

/* CTA Button */
.btn-cta-header {
    background-color: var(--muted-aqua);
    color: var(--footer-green);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.8rem 2rem;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-cta-header:hover {
    background-color: var(--white);
    color: var(--primary-dark-green);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(70, 161, 161, 0.3);
}

/* Mobile Toggler */
.navbar-dark .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.2);
}
.navbar-dark .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Responsive Offcanvas Menu */
@media (max-width: 991.98px) {
    .clinic-header-new .offcanvas {
        background-color: #0f172a;
        color: white;
    }
    .clinic-header-new .offcanvas-header {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    .clinic-header-new .btn-close {
        background-color: #fff;
    }
    .clinic-header-new .navbar-nav {
        align-items: flex-start;
    }
    .clinic-header-new .btn-cta-header {
        width: 100%;
        margin-top: 1rem;
        text-align: center;
    }
}
/*
================================================================
NEW CLINIC HEADER STYLES
================================================================
*/

/* --- Main Header Container --- */
.clinic-header {
    /* background-color is now on the navbar */
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Top Header Bar --- */
.top-header {
    background-color: var(--muted-aqua); /* Muted Aqua */
    color: white; /* Dark Green Text */
    padding: 0.3rem 0; /* Reduced padding */
    font-size: 0.8rem; /* Slightly smaller font */
    font-weight: 500;
    border-bottom: 1px solid rgba(var(--primary-dark-green-rgb), 0.1);
}

.top-header .social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background-color: var(--white);
    color: var(--primary-dark-green);
    border: 1px solid rgba(var(--primary-dark-green-rgb), 0.2);
    border-radius: 50%;
    margin-left: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
}

.top-header .social-icons a:hover {
    background-color: var(--primary-dark-green);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--primary-dark-green-rgb), 0.2);
}

/* --- Main Navbar --- */
.clinic-navbar {
    position: sticky;
    top: 0;
    z-index: 1050;
    padding: 0.1rem 0;
    background-color: var(--white);
    box-shadow: 0 4px 25px rgba(var(--primary-dark-green-rgb), 0.03);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Sticky Shrink Effect */
.clinic-header.scrolled .clinic-navbar {
    padding: 0.5rem 0;
    box-shadow: 0 8px 30px rgba(var(--primary-dark-green-rgb), 0.05);
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
}

.clinic-header.scrolled .logo-img {
    height: 60px;
}

/* Logo */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo-img {
    height: 75px;
    width: auto; /* Maintain aspect ratio */
    object-fit: contain; /* Ensure the logo scales properly */
    transition: height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark-green);
}

.logo-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

/* Navigation Links */
.navbar-nav {
    gap: 0.25rem; /* Adjusted gap for a balanced, professional look */
    margin-left: auto; /* Pushes the nav items group to the right */
}

.nav-link {
    font-weight: 500;
    color: var(--primary-dark-green);
    padding: 0.5rem 0 !important;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2.5px;
    background-color: var(--muted-aqua);
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover,
.nav-link.active {
    color: var(--muted-aqua);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.dropdown-menu {
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-premium);
    padding: 0.5rem 0;
}

.dropdown-item {
    font-weight: 500;
    padding: 0.6rem 1.2rem;
}
.dropdown-item:hover {
    background-color: var(--light-aqua);
    color: var(--primary-dark-green);
}


/* CTA Button */
.btn-cta {
    background-color: var(--primary-dark-green);
    color: #fff;
    border-radius: 14px;
    height: 58px;
    padding: 0 30px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 5px 20px rgba(var(--primary-dark-green-rgb), 0.2);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-cta i {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-cta:hover {
    background-color: var(--muted-aqua);
    color: var(--footer-green);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(70, 161, 161, 0.3);
}

.btn-cta:hover i {
    transform: translateX(5px);
}

/* --- Responsive Adjustments --- */
@media (max-width: 991.98px) {
    .navbar-nav {
        gap: 15px;
        margin-top: 1.5rem;
        margin-bottom: 1.5rem;
        align-items: center;
    }
    .nav-link::after {
        display: none;
    }
    .nav-link.active {
        background-color: var(--light-aqua);
        padding: 0.5rem 1rem !important;
        border-radius: 8px;
    }
    .clinic-navbar .btn-cta {
        width: 100%;
        justify-content: center;
    }
}

/*
================================================================
PREMIUM GALLERY SECTION STYLES
================================================================
*/
.premium-gallery-section .section-title-wrap {
    margin-bottom: 60px;
}

.premium-gallery-card {
    position: relative;
    height: 350px;
    border-radius: 16px;
    overflow: hidden;
    background-color: var(--white);
    box-shadow: var(--shadow-soft);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.premium-gallery-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-premium);
}

.premium-gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.premium-gallery-card:hover .premium-gallery-img {
    transform: scale(1.08);
}

.premium-gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(11, 61, 50, 0) 0%, rgba(11, 61, 50, 0.85) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem;
}

.premium-gallery-card:hover .premium-gallery-overlay {
    opacity: 1;
}

.premium-gallery-content {
    color: #fff;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
}

.premium-gallery-card:hover .premium-gallery-content {
    transform: translateY(0);
    opacity: 1;
}

.premium-gallery-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.4;
    margin: 0;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .premium-gallery-card {
        height: 300px;
    }
}

@media (max-width: 575.98px) {
    .premium-gallery-card {
        height: 320px;
    }
}

@media (max-width: 767.98px) {
    .top-header {
        font-size: 0.8rem;
    }
    .top-header .row > div {
        text-align: center !important;
    }
}

/* Other minor fixes */
.about-image-collage {
    position: relative;
    width: 100%;
    max-width: 560px;
    margin-left: auto;
    margin-right: 0;
    padding: 1.5rem 0 1.5rem 1.5rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 520px;
}

.about-image-collage::before {
    content: '';
    position: absolute;
    inset: 3rem 1rem 2rem 2.75rem;
    border-radius: 2.5rem;
    background: linear-gradient(145deg, rgba(70, 161, 161, 0.08), rgba(11, 61, 50, 0.06));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
    z-index: 0;
}

.about-image-collage::after {
    content: '';
    position: absolute;
    top: 2rem;
    right: 0;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(70, 161, 161, 0.18) 0%, rgba(70, 161, 161, 0.02) 70%, transparent 100%);
    z-index: 0;
}

.about-image-collage img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    max-width: 500px;
    height: 100%;
    object-fit: cover;
    border: 8px solid rgba(255, 255, 255, 0.96);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
    transform: translateX(0) translateY(0);
}

.about-image-collage .collage-img-1 {
    border-radius: 2.2rem;
}

.why-choose-image-wrap {
    position: relative;
    width: 100%;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    padding: 1.25rem;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.why-choose-image-wrap::before {
    content: '';
    position: absolute;
    inset: 2.25rem 1.5rem 1.75rem 1.5rem;
    border-radius: 2.5rem;
    background: linear-gradient(145deg, rgba(70, 161, 161, 0.08), rgba(11, 61, 50, 0.06));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
    z-index: 0;
}

.why-choose-image-wrap::after {
    content: '';
    position: absolute;
    bottom: 1.25rem;
    left: 1rem;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(70, 161, 161, 0.16) 0%, rgba(70, 161, 161, 0.02) 70%, transparent 100%);
    z-index: 0;
}

.why-choose-image {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    max-width: 520px;
    height: 100%;
    min-height: 520px;
    object-fit: cover;
    border: 8px solid rgba(255, 255, 255, 0.96);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
}

@media (min-width: 992px) {
    .about-image-collage {
        height: 560px;
    }

    .about-image-collage img {
        max-width: 520px;
        height: 100%;
    }

    .why-choose-image-wrap {
        min-height: 540px;
    }

    .why-choose-image {
        max-width: 520px;
        min-height: 540px;
    }
}

@media (max-width: 991.98px) {
    .about-image-collage {
        max-width: 100%;
        height: 440px;
        padding: 0;
        justify-content: center;
    }

    .about-image-collage::before {
        inset: 2rem 0.75rem 1.5rem 0.75rem;
    }

    .about-image-collage img {
        max-width: 100%;
        height: 100%;
    }

    .why-choose-image-wrap {
        max-width: 100%;
        min-height: 420px;
        padding: 0;
    }

    .why-choose-image-wrap::before {
        inset: 1.5rem 0.75rem 1rem 0.75rem;
    }

    .why-choose-image {
        max-width: 100%;
        height: 100%;
        min-height: 420px;
    }
}

@media (max-width: 767.98px) {
    .about-image-collage {
        height: 340px;
    }

    .about-image-collage::before {
        inset: 1.25rem 0.5rem 1rem 0.5rem;
        border-radius: 1.75rem;
    }

    .about-image-collage::after {
        width: 80px;
        height: 80px;
        top: 1rem;
    }

    .about-image-collage img {
        height: 100%;
        max-width: 100%;
        border-width: 6px;
        border-radius: 1.75rem;
    }

    .why-choose-image-wrap {
        min-height: 320px;
    }

    .why-choose-image-wrap::before {
        inset: 1rem 0.5rem 0.75rem 0.5rem;
        border-radius: 1.75rem;
    }

    .why-choose-image-wrap::after {
        width: 80px;
        height: 80px;
        bottom: 0.75rem;
        left: 0.5rem;
    }

    .why-choose-image {
        min-height: 320px;
        border-width: 6px;
        border-radius: 1.75rem;
    }
}

@media (max-width: 575.98px) {
    .about-image-collage {
        height: 280px;
    }

    .about-image-collage::before {
        inset: 1rem 0.25rem 0.75rem 0.25rem;
    }

    .about-image-collage img {
        height: 100%;
        border-width: 5px;
    }

    .why-choose-image-wrap {
        min-height: 280px;
    }

    .why-choose-image {
        min-height: 280px;
        border-width: 5px;
    }
}


/*
================================================================
PREMIUM FOOTER STYLES
================================================================
*/
.footer-premium {
    position: relative;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.78);
    background: var(--text-dark);
}

.footer-premium::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.06), transparent 38%),
        linear-gradient(300deg, rgba(255, 255, 255, 0.03), transparent 32%);
    pointer-events: none;
}

.footer-premium::after {
    content: '';
    position: absolute;
    inset: auto -140px -140px auto;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(70, 161, 161, 0.08) 0%, rgba(70, 161, 161, 0.02) 45%, transparent 72%);
    pointer-events: none;
}

.footer-premium .container {
    position: relative;
    z-index: 1;
}

.footer-cta-section {
    background: rgba(255, 255, 255, 0.03);
    padding: 3rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.footer-cta-title {
    color: #fff;
    font-weight: 700;
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.footer-cta-text {
    color: #D5ECE8;
    margin: 0;
}

.footer-main {
    padding: 72px 0 58px;
}

.footer-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 48px;
    height: 3px;
    background: var(--muted-aqua);
    border-radius: 999px;
}

.footer-text {
    font-size: 0.95rem;
    color: #B9D4CF;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    max-width: 340px;
}

.footer-social-icons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.social-icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted-aqua);
    font-size: 1rem;
    transition: var(--transition-smooth);
    text-decoration: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.social-icon-circle:hover {
    background: var(--muted-aqua);
    color: #fff;
    transform: translateY(-4px) scale(1.04);
    border-color: transparent;
    box-shadow: 0 12px 24px rgba(70, 161, 161, 0.18);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #D5ECE8;
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--muted-aqua);
    transform: translateX(6px);
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    color: #B9D4CF;
}

.footer-contact-info i {
    color: var(--muted-aqua);
}

.footer-contact-info a:hover {
    color: var(--muted-aqua);
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.2rem 0;
    text-align: center;
    font-size: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom p {
    margin: 0;
    color: #B9D4CF;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.82);
    font-weight: 500;
}

.footer-bottom a:hover {
    color: var(--muted-aqua);
}

/*
================================================================
SERVICE DETAIL PAGE STYLES
================================================================
*/

.service-hero-section {
    background-size: cover;
    background-position: center;
    color: var(--text-white);
    min-height: 50vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 80px 0;
}

.service-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.2) 100%);
    z-index: 1;
}

.service-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.5) 0%, rgba(15, 23, 42, 0.3) 100%);
    z-index: 1;
}

.service-hero-section .container {
    position: relative;
    z-index: 2;
}

.service-hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    text-shadow: 0 3px 15px rgba(0,0,0,0.2);
}

.service-hero-desc {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 550px;
}

.breadcrumb-service {
    padding: 1rem 1.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.breadcrumb-service a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.breadcrumb-service a:hover {
    color: var(--text-white);
}

.breadcrumb-service .active {
    color: var(--text-white);
    font-weight: 600;
}

.process-step-card {
    position: relative;
    padding: 2rem 1.5rem;
    text-align: center;
    border-radius: var(--radius-md);
    background-color: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    height: 100%;
}

.process-step-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-premium);
    border-color: rgba(var(--accent-aqua-rgb), 0.2);
}

.process-step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: var(--muted-aqua);
    color: var(--text-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 5px 15px rgba(70, 161, 161, 0.3);
}

@media (max-width: 767.98px) {
    .service-hero-section {
        text-align: center;
        min-height: 40vh;
        padding: 80px 0;
    }
    .service-hero-desc {
        margin-left: auto;
        margin-right: auto;
    }
    .service-hero-title {
        font-size: 2.5rem;
    }
}

/*
================================================================
NEW SERVICE CARD STYLES
================================================================
*/
.service-card-premium {
    background-color: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.service-card-premium:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-premium);
    border-color: var(--muted-aqua);
}

.service-card-img-container {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.service-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.service-card-premium:hover .service-card-img {
    transform: scale(1.08);
}

.service-card-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--primary-dark-green);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.service-card-body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--muted-aqua);
    margin-bottom: 0.75rem;
}

.service-card-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* Custom styles for footer logo */
.footer-logo-link {
    display: block;
    margin-bottom: 1.6rem; /* Matches the margin-bottom of .footer-title */
}

.footer-logo-img {
    height: 64px; /* Smaller than header logo for footer context */
    width: auto;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.22));
}

/*
================================================================
FINAL CTA SECTION STYLES
================================================================
*/
.final-cta {
    position: relative;
    overflow: hidden;
    padding: 1rem 0;
    color: #fff;
    background: var(--primary-dark-green);
}

.final-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.05), transparent 45%),
        linear-gradient(300deg, rgba(255, 255, 255, 0.04), transparent 38%);
    pointer-events: none;
}

.final-cta::after {
    content: '';
    position: absolute;
    inset: auto -120px -120px auto;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(70, 161, 161, 0.18) 0%, rgba(70, 161, 161, 0.05) 45%, transparent 72%);
    pointer-events: none;
}

.final-cta .container {
    position: relative;
    z-index: 1;
}

.final-cta__inner {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    align-items: center;
    gap: 2rem;
    padding: 0.5rem 0;
}

.final-cta__item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    padding: 0.5rem 0;
}

.final-cta__item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60%;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.22), transparent);
}

.final-cta__icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    font-size: 1.55rem;
    color: #fff;
    background: var(--muted-aqua);
    box-shadow: 0 14px 28px rgba(70, 161, 161, 0.18);
    flex-shrink: 0;
}

.final-cta__heading {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #D5ECE8;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.final-cta__phone-number {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    transition: var(--transition-smooth);
    text-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.final-cta__phone-number:hover {
    color: var(--muted-aqua);
}

.final-cta__hours-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}

.final-cta__hours-list li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.final-cta__hours-list li span {
    font-weight: 600;
    color: #B9D4CF;
}

.final-cta__action {
    justify-content: flex-end;
}

.final-cta__button {
    display: inline-flex;
    align-items: center;
    background: var(--muted-aqua);
    color: var(--footer-green);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    padding-left: 1.75rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 16px 30px rgba(70, 161, 161, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.final-cta__button-text {
    padding: 0.8rem 0;
}

.final-cta__button-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--white);
    color: var(--primary-dark-green);
    border-radius: 50%;
    margin-left: 1rem;
    margin-right: 4px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.final-cta__button:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 35px rgba(70, 161, 161, 0.28);
    background: var(--white);
    color: var(--primary-dark-green);
}

.final-cta__button:hover .final-cta__button-icon-wrap {
    transform: scale(1.1) rotate(10deg);
}

/* Responsive */
@media (max-width: 991.98px) {
    .final-cta__inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .final-cta__item {
        flex-direction: column;
        gap: 0.5rem;
    }
    .final-cta__item:not(:last-child)::after {
        display: none;
    }
    .final-cta__action {
        margin-top: 1.5rem;
    }
    .final-cta__hours-list li {
        justify-content: center;
    }

    .final-cta__item:not(:last-child)::after {
        display: none;
    }
}
