@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Quicksand:wght@400;500;600;700&display=swap');

:root {
    --primary: #ff4747; /* Signature Smelio Red */
    --primary-dark: #e63946;
    --primary-light: #ffeaee;
    --secondary: #ffd166; /* Sunny Yellow */
    --secondary-dark: #f4be38;
    --mint: #4ecdc4; /* Creative Mint */
    --sky: #3a86ff; /* Soft Blue */
    --coral: #ff6b6b;
    --bg-light: #fffbf7; /* Warm cream background */
    --bg-soft-gradient: linear-gradient(135deg, #fff2f2 0%, #fffbf5 100%);
    --bg-warm-gradient: linear-gradient(135deg, #fff9eb 0%, #fff5e0 100%);
    --bg-sky-gradient: linear-gradient(135deg, #eef7ff 0%, #fffbf7 100%);
    --text-dark: #2f3e46;
    --text-muted: #6c757d;
    --font-heading: 'Quicksand', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --border-radius-sm: 1rem;
    --border-radius-md: 1.5rem;
    --border-radius-lg: 2.25rem;
    --shadow-soft: 0 12px 35px rgba(230, 57, 70, 0.06);
    --shadow-hover: 0 18px 45px rgba(230, 57, 70, 0.12);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Global Reset & Base */
html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Fix responsive horizontal scroll */
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-light);
    scroll-behavior: smooth;
}

/* No default underline on links site-wide; sections that want an underline
   (active nav tab, section title accent) draw it explicitly via border-bottom. */
a, a:hover, a:focus, a:active {
    text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

p {
    font-size: 1.05rem;
    line-height: 1.7;
}

/* Page Layout Wrapper */
.page-decor-container {
    position: relative;
    width: 100%;
    overflow: hidden; /* Prevent floating shape overflow */
}

/* Background Floating Elements */
.decor-shape {
    position: absolute;
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
    animation: floating 8s ease-in-out infinite;
}

@keyframes floating {
    0% { transform: translateY(0px) rotate(0deg) scale(1); }
    50% { transform: translateY(-25px) rotate(15deg) scale(1.05); }
    100% { transform: translateY(0px) rotate(0deg) scale(1); }
}

.decor-1 { top: 8%; left: -60px; width: 160px; height: 160px; background: rgba(255, 71, 71, 0.08); border-radius: 43% 57% 70% 30% / 45% 45% 55% 55%; }
.decor-2 { top: 25%; right: -60px; width: 220px; height: 220px; background: rgba(255, 209, 102, 0.12); border-radius: 50% 50% 30% 70% / 50% 60% 40% 50%; }
.decor-3 { top: 55%; left: 3%; width: 130px; height: 130px; background: rgba(78, 205, 196, 0.1); border-radius: 40% 60% 50% 50% / 40% 40% 60% 60%; animation-duration: 10s; }
.decor-4 { bottom: 12%; right: 5%; width: 190px; height: 190px; background: rgba(58, 134, 255, 0.08); border-radius: 60% 40% 60% 40% / 50% 50% 50% 50%; animation-duration: 7s; }

/* Wavy Section Dividers */
.section-wave-divider {
    position: relative;
    width: 100%;
    line-height: 0;
    z-index: 2;
    margin-top: -1px;
}

.section-wave-divider svg {
    position: relative;
    display: block;
    width: 100%;
    height: 60px;
}

.wave-to-white { fill: #ffffff; }
.wave-to-cream { fill: var(--bg-light); }
.wave-to-soft { fill: #fff2f2; }
.wave-to-sky { fill: #eef7ff; }

/* Navbar Brand & Logo (Capsule style for black logo image) */
.navbar-smelio {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 4px 30px rgba(255, 71, 71, 0.03);
    padding: 1.1rem 0;
    transition: var(--transition);
}

.navbar-smelio.scrolled {
    padding: 0.6rem 0;
    box-shadow: 0 4px 30px rgba(255, 71, 71, 0.06);
}

.navbar-brand img {
    transition: var(--transition);
}

.navbar-brand img:hover {
    transform: scale(1.05);
}

.nav-link-smelio {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark) !important;
    margin: 0 0.4rem;
    position: relative;
    transition: var(--transition);
}

.nav-link-smelio::after {
    content: '';
    position: absolute;
    width: 0;
    height: 4px;
    bottom: -6px;
    left: 0;
    background-color: var(--primary);
    border-radius: 10px;
    transition: var(--transition);
}

.nav-link-smelio:hover::after,
.nav-link-smelio.active::after {
    width: 100%;
}

.nav-link-smelio:hover {
    color: var(--primary) !important;
}

/* Creative Language Switcher */
.lang-switcher-creative {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.95);
    padding: 5px;
    border-radius: 50rem;
    border: 2px dashed var(--primary);
    gap: 4px;
    box-shadow: 0 8px 24px rgba(255, 71, 71, 0.08);
    transition: var(--transition);
}

.lang-switcher-creative:hover {
    border-style: dashed;
    box-shadow: 0 12px 30px rgba(255, 71, 71, 0.15);
}

.lang-btn {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-dark) !important;
    padding: 0.5rem 1.1rem;
    border-radius: 50rem;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lang-btn.active {
    background: var(--primary);
    color: #ffffff !important;
    box-shadow: 0 6px 15px rgba(255, 71, 71, 0.35);
    transform: scale(1.08) translateY(-1px);
}

.lang-btn:hover:not(.active) {
    background-color: var(--primary-light);
    color: var(--primary) !important;
    transform: translateY(-2px);
}

/* Buttons (Playful bubble feel) */
.btn-smelio {
    font-family: var(--font-heading);
    font-weight: 700;
    padding: 0.9rem 2.2rem;
    border-radius: 50rem;
    transition: var(--transition);
    border: none;
    box-shadow: 0 8px 22px rgba(255, 71, 71, 0.08);
}

.btn-smelio-primary {
    background-color: var(--primary);
    color: #fff !important;
}

.btn-smelio-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 28px rgba(255, 71, 71, 0.3);
}

.btn-smelio-secondary {
    background-color: var(--secondary);
    color: var(--text-dark) !important;
}

.btn-smelio-secondary:hover {
    background-color: var(--secondary-dark);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 28px rgba(255, 209, 102, 0.35);
}

.btn-smelio-outline {
    background-color: transparent;
    border: 3px solid var(--primary);
    color: var(--primary) !important;
    padding: 0.75rem 2.1rem;
}

.btn-smelio-outline:hover {
    background-color: var(--primary);
    color: #fff !important;
    transform: translateY(-4px);
}

/* Sections Styling */
.section-padding {
    padding: 5.5rem 0;
    position: relative;
    z-index: 1;
}

.section-title-wrapper {
    margin-bottom: 3.5rem;
}

.section-title {
    font-size: 2.6rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '🎈';
    position: absolute;
    right: -35px;
    top: -5px;
    font-size: 1.5rem;
}

/* 1. Hero Section */
.hero-section {
    background: var(--bg-soft-gradient);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 8rem;
    padding-bottom: 5rem;
    position: relative;
}

.hero-content h1 {
    font-size: 3.6rem;
    line-height: 1.25;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.hero-img-wrapper {
    position: relative;
    padding: 10px;
}

.hero-img-backdrop {
    position: absolute;
    width: 85%;
    height: 85%;
    top: 7%;
    left: 7%;
    background: var(--secondary);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    z-index: 1;
    animation: morphing 12s ease-in-out infinite;
}

@keyframes morphing {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    33% { border-radius: 65% 35% 60% 40% / 45% 65% 35% 55%; }
    66% { border-radius: 40% 60% 30% 70% / 60% 30% 70% 40%; }
    100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}

.hero-img {
    position: relative;
    z-index: 2;
    animation: float 5s ease-in-out infinite;
}

/* 2. About Section */
.about-section {
    background-color: #ffffff;
}

.about-card {
    background: #ffffff;
    border-radius: var(--border-radius-md);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-soft);
    border: 3px solid #fff5f5;
    transition: var(--transition);
    height: 100%;
}

.about-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(255, 71, 71, 0.15);
}

.about-card-icon {
    width: 75px;
    height: 75px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 2.2rem;
    transition: var(--transition);
}

.about-card:hover .about-card-icon {
    background: var(--primary);
    color: #fff;
    transform: scale(1.1) rotate(15deg);
}

/* 3. Clinic Info (Nega biz?) */
.clinic-info-section {
    background: var(--bg-warm-gradient);
}

.advantage-item {
    display: flex;
    margin-bottom: 2.25rem;
}

.advantage-icon {
    width: 60px;
    height: 60px;
    background: #ffffff;
    color: var(--primary);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 8px 20px rgba(255, 71, 71, 0.05);
    margin-right: 1.25rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.advantage-item:hover .advantage-icon {
    background: var(--primary);
    color: #fff;
    transform: scale(1.15) rotate(-10deg);
}

.stat-box {
    background: #ffffff;
    padding: 2.25rem 1.5rem;
    border-radius: var(--border-radius-md);
    text-align: center;
    box-shadow: var(--shadow-soft);
    height: 100%;
    border: 3px solid #fffdfa;
    transition: var(--transition);
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.stat-value {
    font-size: 3rem;
    font-family: var(--font-heading);
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 0.5rem;
}

/* Gallery Grid (Fixed CSS Grid instead of Masonry for Responsive safety) */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    display: block;
    position: relative;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    height: 220px;
    transition: var(--transition);
    cursor: zoom-in;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 71, 71, 0);
    transition: var(--transition);
    border-radius: var(--border-radius-md);
    z-index: 1;
}

.gallery-item:hover::after {
    background: rgba(255, 71, 71, 0.35);
}

.gallery-item .gallery-zoom-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    opacity: 0;
    transition: var(--transition);
    color: #fff;
    font-size: 2.5rem;
}

.gallery-item:hover .gallery-zoom-icon {
    opacity: 1;
    transform: scale(1.1);
}

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

.gallery-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* 4. Services */
.services-section {
    background-color: #ffffff;
}

.service-card {
    background: #ffffff;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 3px solid #fff5f5;
    transition: var(--transition);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.service-img {
    height: 220px;
    overflow: hidden;
    position: relative;
    background: var(--primary-light);
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .service-img img {
    transform: scale(1.08);
}

.service-body {
    padding: 2.25rem 2rem;
}

.service-title {
    font-size: 1.45rem;
    color: var(--text-dark);
    margin-bottom: 0.85rem;
}

/* 5. Doctors */
.doctors-section {
    background: var(--bg-soft-gradient);
}

.doctor-card {
    background: #ffffff;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 3px solid #fff3f3;
    transition: var(--transition);
    height: 100%;
    text-align: center;
}

.doctor-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(255, 71, 71, 0.15);
}

.doctor-img-wrapper {
    height: 340px;
    background-color: #fffafa;
    overflow: hidden;
    position: relative;
}

.doctor-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: var(--transition);
}

.doctor-card:hover .doctor-img-wrapper img {
    transform: scale(1.04);
}

.doctor-info {
    padding: 2rem 1.5rem;
}

.doctor-name {
    font-size: 1.55rem;
    color: var(--text-dark);
    margin-bottom: 0.4rem;
}

.doctor-specialty {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.doctor-experience {
    background: var(--primary-light);
    color: var(--primary);
    display: inline-block;
    padding: 0.3rem 1.25rem;
    border-radius: 50rem;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

.doctor-socials a {
    width: 44px;
    height: 44px;
    background: #fff0f0;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 0.3rem;
    font-size: 1.1rem;
    transition: var(--transition);
}

.doctor-socials a:hover {
    background-color: var(--primary);
    color: #fff;
    transform: translateY(-3px) scale(1.08);
}

/* 6. News/Blog */
.news-section {
    background-color: #ffffff;
}

.news-card {
    background: #ffffff;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 2px solid #fff5f5;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(255, 71, 71, 0.1);
}

.news-img {
    height: 200px;
    overflow: hidden;
}

.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.news-body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.news-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.news-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

.news-title a:hover {
    color: var(--primary);
}

.news-link {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary) !important;
    text-decoration: none !important;
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
}

.news-link i {
    margin-left: 0.5rem;
    transition: var(--transition);
}

.news-link:hover i {
    transform: translateX(5px);
}

/* 7. Contact Section */
.contact-section {
    background: var(--bg-sky-gradient);
}

.contact-card {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
    border: 3px solid #eef7ff;
}

.contact-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-info-item {
    display: flex;
    margin-bottom: 1.75rem;
    align-items: flex-start;
}

.contact-info-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-right: 1.25rem;
    flex-shrink: 0;
}

.border-light-2 {
    border: 2px solid #eef2f6 !important;
}

.border-light-2:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 71, 71, 0.15) !important;
}

/* Creative Location Card */
.creative-map-card {
    position: relative;
    padding: 12px 12px 36px 12px;
    background: #ffffff;
    border-radius: var(--border-radius-md);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 3px solid var(--primary);
    transform: rotate(-2deg);
    transition: var(--transition);
    width: 100%;
    max-width: 350px;
    margin-top: 1.5rem;
    overflow: visible;
}

.creative-map-card::after {
    content: "Smelio Kids 🦷✨";
    position: absolute;
    bottom: 8px;
    left: 0;
    right: 0;
    text-align: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--primary);
    letter-spacing: 0.5px;
}

.creative-map-card:hover {
    transform: rotate(1deg) translateY(-10px);
    box-shadow: 0 25px 45px rgba(255, 71, 71, 0.18);
    border-color: var(--secondary);
}

.creative-map-sticker {
    position: absolute;
    top: -18px;
    left: 20px;
    background: var(--secondary);
    color: var(--text-dark);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 6px 16px;
    border-radius: 50rem;
    box-shadow: 0 6px 15px rgba(0,0,0,0.12);
    z-index: 10;
    display: inline-flex;
    align-items: center;
    border: 2px solid #ffffff;
    animation: wiggle 3s ease-in-out infinite;
}

@keyframes wiggle {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

.creative-map-card iframe {
    display: block;
    border-radius: 1rem;
}

/* Floating Contact Button */
.floating-contact-btn {
    position: fixed;
    bottom: 2.5rem;
    right: 2.5rem;
    z-index: 999;
}

.floating-action-icon {
    width: 60px;
    height: 60px;
    background-color: #24a1de; /* Telegram blue */
    color: #fff !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.9rem;
    box-shadow: 0 10px 25px rgba(36, 161, 222, 0.4);
    transition: var(--transition);
    animation: pulse 2s infinite;
    text-decoration: none !important;
    outline: none;
    border: none;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(36, 161, 222, 0.5); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(36, 161, 222, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(36, 161, 222, 0); }
}

.floating-action-icon:hover {
    background-color: #1e87bb;
    transform: translateY(-5px) scale(1.05);
}

/* Footer */
.footer-smelio {
    background-color: #ffffff;
    color: var(--text-dark);
    padding: 5rem 0 2rem 0;
    font-size: 0.95rem;
    border-top: 1px solid #f1f5f9;
}

.footer-smelio h5 {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
}

.footer-social-links a {
    width: 42px;
    height: 42px;
    background: #f8fafc;
    color: var(--text-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 0.6rem;
    font-size: 1.05rem;
    transition: var(--transition);
    border: 1.5px solid #e2e8f0;
    text-decoration: none !important;
    outline: none;
}

.footer-social-links a:hover {
    background-color: var(--primary);
    color: #fff;
    transform: translateY(-4px);
    border-color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid #f1f5f9;
    margin-top: 3.5rem;
    padding-top: 1.5rem;
}

/* Responsive Overrides (Resolving design breakage) */
@media (max-width: 1199.98px) {
    .hero-content h1 {
        font-size: 3rem;
    }
}

@media (max-width: 991.98px) {
    .section-padding {
        padding: 4.5rem 0;
    }
    .hero-section {
        text-align: center;
        padding-top: 7rem;
        padding-bottom: 3.5rem;
        min-height: auto;
    }
    .hero-content h1 {
        font-size: 2.8rem;
    }
    .hero-img-wrapper {
        margin-top: 3rem;
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
    }
    .navbar-smelio {
        padding: 0.8rem 0;
    }
    .navbar-collapse {
        background: #ffffff;
        border-radius: 1rem;
        padding: 1.5rem;
        margin-top: 1rem;
        box-shadow: var(--shadow-hover);
    }
    .nav-link-smelio {
        padding: 0.8rem 1rem !important;
        margin: 0;
    }
    .nav-link-smelio::after {
        display: none; /* Hide border line in mobile dropdown */
    }
    .nav-link-smelio.active, .nav-link-smelio:hover {
        background: var(--primary-light);
        border-radius: 0.5rem;
        color: var(--primary) !important;
    }
    .lang-switcher {
        margin-top: 1rem;
        justify-content: center;
        width: 100%;
        padding-top: 1rem;
        border-top: 1px solid #f1f5f9;
    }
    .lang-switcher-creative {
        width: 100%;
        display: flex;
        justify-content: space-between;
    }
    .lang-btn {
        flex: 1;
        text-align: center;
        justify-content: center;
    }
}

@media (max-width: 767.98px) {
    .section-title {
        font-size: 2.1rem;
    }
    .section-title::after {
        font-size: 1.25rem;
        right: -28px;
    }
    .hero-content h1 {
        font-size: 2.25rem;
    }
    .hero-content p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    .btn-smelio {
        padding: 0.8rem 1.8rem;
        width: 100%;
        margin-bottom: 0.75rem !important;
        margin-right: 0 !important;
        display: block;
        text-align: center;
    }
    .stat-box {
        padding: 1.5rem 1rem;
    }
    .stat-value {
        font-size: 2.3rem;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .gallery-item {
        height: 200px;
    }
    .floating-contact-btn {
        bottom: 1.5rem;
        right: 1.5rem;
    }
    .floating-action-icon {
        width: 52px;
        height: 52px;
        font-size: 1.6rem;
    }
    .contact-card {
        padding: 1.5rem;
    }
    .creative-map-card {
        max-width: 100%;
        transform: none !important;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.85rem;
    }
    .hero-content h1 {
        font-size: 1.9rem;
    }
    .stat-value {
        font-size: 2rem;
    }
}

/* Global utility overrides: make text-primary red instead of Bootstrap blue */
.text-primary {
    color: var(--primary) !important;
}
/* ==========================================================================
   Redesign Custom Styles (Added for dentalcare alignment)
   ========================================================================== */
.bg-header {
    min-height: 100vh;
    width: 100%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    display: flex;
    align-items: center;
    position: relative;
}
.bg-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.55) 0%, rgba(17, 24, 39, 0.65) 100%);
    z-index: 1;
}
.bg-header-fallback {
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 85% 75%, rgba(255, 255, 255, 0.1) 0%, transparent 40%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='%23ffffff' fill-opacity='0.07'%3E%3Ccircle cx='20' cy='20' r='4'/%3E%3Ccircle cx='90' cy='40' r='3'/%3E%3Ccircle cx='55' cy='90' r='5'/%3E%3Ccircle cx='105' cy='105' r='2.5'/%3E%3Ccircle cx='10' cy='75' r='2.5'/%3E%3C/g%3E%3C/svg%3E"),
        linear-gradient(135deg, #ff6b6b 0%, var(--primary) 55%, var(--primary-dark) 100%);
}
.bg-header-content {
    position: relative;
    z-index: 2;
    width: 100%;
}
.bg-child-picture {
    height: 500px;
    width: 100%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    margin-top: 50px;
    position: relative;
}
.bg-child-picture-fallback {
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 40%),
        linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}
.bg-child-picture-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
}
.bg-child-picture-caption {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
}
.bg-child-picture-caption h2 {
    color: #ffffff;
    font-weight: 800;
    font-size: clamp(1.6rem, 4vw, 3rem);
    text-shadow: 0 3px 14px rgba(0, 0, 0, 0.45);
    margin: 0;
    max-width: 800px;
}
@media (max-width: 768px) {
    .bg-child-picture {
        height: 250px;
        background-size: contain;
    }
}
.call-btn-premium {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--primary) !important;
    color: #ffffff !important;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 0.9rem 1.8rem;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(255, 71, 71, 0.15);
    transition: all 0.3s ease;
    text-decoration: none !important;
}
.call-btn-premium:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(255, 71, 71, 0.25);
    background-color: var(--primary-dark) !important;
}
@media (max-width: 575.98px) {
    .call-btn-premium {
        font-size: 0.95rem;
        padding: 0.8rem 1.2rem;
        display: flex;
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}
/* Accordion component */
.accordion-container {
    width: 100%;
    max-width: 800px;
    margin: 2rem auto;
}
.accordion-item {
    width: 100%;
    margin-top: 1rem;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    overflow: hidden;
}
.accordion-item:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e1;
}
.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 1.25rem 1.5rem;
    transition: background-color 0.2s;
}
.accordion-header:hover {
    background-color: #f8fafc;
}
.accordion-badge {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-right: 1rem;
    overflow: hidden;
}
.accordion-badge img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.accordion-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0;
    flex: 1;
}
.accordion-icon-wrap {
    transition: transform 0.3s ease;
    font-size: 1.2rem;
    color: var(--primary);
}
.accordion-item.open .accordion-icon-wrap {
    transform: rotate(180deg);
}
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.accordion-item.open .accordion-content {
    max-height: 500px;
}
.accordion-body {
    padding: 1.5rem;
    background-color: #f8fafc;
    border-top: 1px solid #edf2f7;
}
.accordion-body p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 0;
}
.reviews-section {
    background-color: #ffffff;
    padding: 5rem 0;
}
.review-card {
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}
.review-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}
.review-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
}
.review-text {
    font-size: 1.05rem;
    color: var(--text-dark);
    line-height: 1.6;
    margin-top: 0.5rem;
}
.review-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: block;
    margin-top: 0.5rem;
}

/* Dark navbar styles to override bootstrap / template important color */
.navbar-dark .nav-link-smelio {
    color: #f3f4f6 !important;
}
.navbar-dark .nav-link-smelio:hover,
.navbar-dark .nav-link-smelio.active {
    color: var(--primary) !important;
}
.navbar-dark .navbar-toggler-icon {
    filter: invert(1);
}
.navbar-dark .lang-btn {
    color: #f3f4f6 !important;
    border-color: #f3f4f6 !important;
}
.navbar-dark .lang-btn.active {
    background-color: var(--primary) !important;
    color: #fff !important;
    border-color: var(--primary) !important;
}

/* Fix for invisible navbar text (white on white background override) */
.navbar-dark.navbar-smelio {
    background: rgba(31, 41, 55, 0.95) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2) !important;
    border-bottom: 1px solid #374151;
}
.navbar-dark .nav-link-smelio {
    color: #e5e7eb !important;
}
.navbar-dark .nav-link-smelio:hover,
.navbar-dark .nav-link-smelio.active {
    color: var(--primary) !important;
}
.navbar-dark .navbar-toggler-icon {
    filter: invert(1);
}

/* Accordion chevron rotate on open */
.accordion-header[aria-expanded="true"] .accordion-icon-wrap {
    transform: rotate(180deg);
}

/* Redesign navbar dark modifications */
.navbar-dark .lang-switcher-creative {
    background: #1f2937 !important;
    border: 2px dashed var(--primary) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
}
.navbar-dark .lang-btn {
    color: #e5e7eb !important;
}
.navbar-dark .lang-btn:hover:not(.active) {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: var(--primary) !important;
}

/* Redesign mobile collapsible menu background and text fixes */
@media (max-width: 991.98px) {
    .navbar-dark .navbar-collapse {
        background: #1f2937 !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25) !important;
        border: 1px solid #374151;
    }
    .navbar-dark .navbar-collapse .nav-link-smelio {
        color: #e5e7eb !important;
    }
    .navbar-dark .navbar-collapse .nav-link-smelio:hover,
    .navbar-dark .navbar-collapse .nav-link-smelio.active {
        background: rgba(255, 255, 255, 0.05) !important;
        color: var(--primary) !important;
    }
}

/* Graceful empty state, shown when an admin-managed section has no content yet */
.empty-state-block {
    width: 100%;
}
.empty-state-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

/* Local, brand-colored placeholder used instead of hotlinked stock photos
   when a doctor/news item has no uploaded image yet */
.local-placeholder-img {
    width: 100%;
    height: 100%;
    background: var(--bg-soft-gradient);
    color: var(--primary);
}
.local-placeholder-img i {
    font-size: 2.75rem;
    opacity: 0.45;
}
