/* =====================================================================
   Al Ebtisama Specialized Dental Center — site theme
   Based on the DentCare template by HTML Codex (CC BY 4.0),
   re-coloured with the Al Ebtisama logo palette and made RTL-aware.
   Logo navy  : #065394
   Logo olive : #879C3E
   ===================================================================== */

:root {
    --primary: #065394;
    --primary-rgb: 6, 83, 148;
    --primary-dark: #043B6B;
    --secondary: #879C3E;            /* logo olive – accents, icons, lines */
    --secondary-rgb: 135, 156, 62;
    --secondary-dark: #6A7B2C;       /* olive for text/buttons (AA contrast on white) */
    --light: #EEF5FB;
    --olive-tint: #F3F6E8;
    --dark: #052E52;
    --dark-rgb: 5, 46, 82;
    --body: #4B5B6B;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(5, 46, 82, .08);
    --shadow-lg: 0 18px 45px rgba(5, 46, 82, .16);

    /* Bootstrap 5.1 variable overrides */
    --bs-primary: #065394;
    --bs-primary-rgb: 6, 83, 148;
    --bs-secondary: #6A7B2C;
    --bs-secondary-rgb: 106, 123, 44;
    --bs-dark: #052E52;
    --bs-dark-rgb: 5, 46, 82;
    --bs-light: #EEF5FB;
    --bs-light-rgb: 238, 245, 251;
    --bs-body-color: #4B5B6B;
    --bs-font-sans-serif: 'Open Sans', 'Cairo', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Typography ---------- */
body {
    font-family: 'Open Sans', 'Cairo', system-ui, sans-serif;
    color: var(--body);
    line-height: 1.75;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .btn, .navbar-nav .nav-link, .font-heading {
    font-family: 'Jost', 'Cairo', sans-serif;
}
h1, h2, h3, h4, h5, h6 { color: var(--dark); }
.btn-dark, .btn-dark:hover { color: #fff; }

html[lang="ar"] body,
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3,
html[lang="ar"] h4, html[lang="ar"] h5, html[lang="ar"] h6,
html[lang="ar"] .btn, html[lang="ar"] .navbar-nav .nav-link,
html[lang="ar"] .font-heading {
    font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
}

h1, h2, .fw-heavy { font-weight: 700 !important; }
h3, h4 { font-weight: 600 !important; }
h5, h6 { font-weight: 600 !important; }

a { color: var(--primary); text-decoration: none; transition: color .3s; }
.service-text a { text-decoration: underline; }
a:hover { color: var(--secondary-dark); }

.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--secondary-dark) !important; }
.text-olive { color: var(--secondary) !important; }
.bg-primary { background-color: var(--primary) !important; }
.bg-secondary { background-color: var(--secondary-dark) !important; }
.bg-dark { background-color: var(--dark) !important; }
.bg-light { background-color: var(--light) !important; }
.bg-olive-tint { background-color: var(--olive-tint) !important; }
.border-primary { border-color: var(--primary) !important; }

.skip-link {
    position: absolute; top: -60px; inset-inline-start: 10px; z-index: 10000;
    background: var(--primary); color: #fff; padding: 10px 18px; border-radius: 6px;
}
.skip-link:focus { top: 10px; color: #fff; }

:focus-visible { outline: 3px solid rgba(var(--secondary-rgb), .7); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn { font-weight: 600; transition: .4s; border-radius: 8px; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover, .btn-primary:focus { background: var(--secondary-dark); border-color: var(--secondary-dark); color: #fff; }
.btn-secondary { background: var(--secondary-dark); border-color: var(--secondary-dark); color: #fff; }
.btn-secondary:hover, .btn-secondary:focus { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-outline-primary { color: var(--primary); border-color: var(--primary); }
.btn-outline-primary:hover { background: var(--primary); color: #fff; }
.btn-light { color: var(--primary); }
.btn-light:hover { background: var(--secondary-dark); border-color: var(--secondary-dark); color: #fff; }
.btn-dark { background: var(--dark); border-color: var(--dark); }
.btn-dark:hover { background: var(--secondary-dark); border-color: var(--secondary-dark); }
.btn-square, .btn-sm-square, .btn-lg-square {
    padding: 0; display: inline-flex; align-items: center; justify-content: center;
}
.btn-square { width: 38px; height: 38px; }
.btn-sm-square { width: 30px; height: 30px; }
.btn-lg-square { width: 48px; height: 48px; }

/* ---------- Top bar ---------- */
.topbar { background: var(--light); font-size: 14px; }
.topbar a { color: var(--body); }
.topbar a:hover { color: var(--primary); }
.topbar .top-shape {
    position: relative; background: var(--primary); color: #fff;
}
.topbar .top-shape a { color: #fff; }
.topbar .top-shape::before {
    position: absolute; content: ""; width: 35px; height: 100%; top: 0;
    inset-inline-start: -17px; background: var(--primary); transform: skew(40deg);
}
html[dir="rtl"] .topbar .top-shape::before { transform: skew(-40deg); }

/* ---------- Navbar ---------- */
.site-navbar { background: #fff; box-shadow: 0 2px 12px rgba(5,46,82,.08); transition: .4s; z-index: 1030; }
.site-navbar .navbar-brand img { height: 64px; width: auto; transition: height .3s; }
.site-navbar.sticky-top .navbar-brand img { height: 52px; }
.navbar-light .navbar-nav .nav-link {
    padding: 34px 13px; font-size: 17px; color: var(--dark); font-weight: 600; outline: none; transition: .4s;
    position: relative;
}
.sticky-top.navbar-light .navbar-nav .nav-link { padding: 22px 13px; }
.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active { color: var(--primary); }
.navbar-light .navbar-nav .nav-link.active::after {
    content: ""; position: absolute; bottom: 22px; inset-inline-start: 13px; inset-inline-end: 13px;
    height: 3px; border-radius: 3px; background: var(--secondary);
}
.sticky-top.navbar-light .navbar-nav .nav-link.active::after { bottom: 12px; }
.lang-switch {
    display: inline-flex; align-items: center; gap: 6px; font-weight: 700;
    border: 2px solid rgba(var(--primary-rgb), .2); border-radius: 30px; padding: 6px 14px !important;
    color: var(--primary) !important;
}
.lang-switch:hover { border-color: var(--secondary); color: var(--secondary-dark) !important; }

@media (max-width: 991.98px) {
    .navbar-light .navbar-nav .nav-link,
    .sticky-top.navbar-light .navbar-nav .nav-link { padding: 10px 0; }
    .navbar-light .navbar-nav .nav-link.active::after { display: none; }
    .site-navbar .navbar-brand img { height: 50px; }
    .site-navbar .navbar-collapse { padding-bottom: 14px; }
}

/* ---------- Hero carousel ---------- */
.hero-carousel .carousel-item { height: 88vh; min-height: 520px; max-height: 820px; }
.hero-carousel .carousel-item img { width: 100%; height: 100%; object-fit: cover; }
.hero-carousel .carousel-caption {
    top: 0; left: 0; right: 0; bottom: 0; z-index: 1;
    background: linear-gradient(100deg, rgba(var(--dark-rgb), .92) 0%, rgba(var(--primary-rgb), .72) 55%, rgba(var(--primary-rgb), .35) 100%);
    text-align: start;
}
html[dir="rtl"] .hero-carousel .carousel-caption {
    background: linear-gradient(260deg, rgba(var(--dark-rgb), .92) 0%, rgba(var(--primary-rgb), .72) 55%, rgba(var(--primary-rgb), .35) 100%);
}
.hero-kicker {
    display: inline-flex; align-items: center; gap: 10px; color: #fff; letter-spacing: .5px;
    background: rgba(var(--secondary-rgb), .9); border-radius: 30px; padding: 6px 18px; font-size: 15px;
}
.hero-title { color: #fff; font-size: clamp(2rem, 4.6vw, 4rem); line-height: 1.25; }
.hero-text { color: rgba(255,255,255,.9); font-size: 1.15rem; max-width: 640px; }
.carousel-control-prev, .carousel-control-next { width: 6%; }
.carousel-control-prev-icon, .carousel-control-next-icon {
    width: 3rem; height: 3rem; background-color: rgba(var(--primary-rgb), .6); border-radius: 50%; background-size: 50%;
}
.carousel-indicators [data-bs-target] { background-color: var(--secondary); width: 34px; height: 4px; border-radius: 3px; }

@media (max-width: 576px) {
    .hero-carousel .carousel-item { height: 78vh; min-height: 480px; }
}

/* ---------- Info banner under hero ---------- */
@media (min-width: 992px) {
    .banner { position: relative; margin-top: -90px; z-index: 2; }
}
.banner .banner-box { min-height: 290px; padding: 2.5rem; color: #fff; }
.banner .banner-box h2, .banner .banner-box h3, .banner .banner-box h6 { color: #fff; }
.banner .banner-box .hours-row { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed rgba(255,255,255,.25); padding: 7px 0; font-size: 15px; }
.banner .banner-box .hours-row:last-of-type { border-bottom: 0; }
.banner .banner-box .hours-time { direction: ltr; unicode-bidi: isolate; white-space: nowrap; font-weight: 600; }
.bg-olive { background: var(--secondary-dark); }

/* ---------- Section titles ---------- */
.section-title h2.kicker, .section-title .kicker {
    position: relative; display: inline-block; color: var(--primary); text-transform: uppercase;
    font-size: 1.05rem; letter-spacing: 1px; margin-bottom: .75rem; padding-inline-end: 80px;
}
.section-title .kicker::before {
    position: absolute; content: ""; width: 45px; height: 3px; inset-inline-end: 25px; bottom: 11px; background: var(--primary);
}
.section-title .kicker::after {
    position: absolute; content: ""; width: 15px; height: 3px; inset-inline-end: 0; bottom: 11px; background: var(--secondary);
}
.section-title.text-center .kicker { padding-inline-start: 0; }
.section-title .display-title { font-size: clamp(1.8rem, 3.2vw, 2.7rem); line-height: 1.3; margin: 0; }

/* ---------- Page header (inner pages) ---------- */
.page-header {
    position: relative; padding: 110px 0 90px; color: #fff;
    background: linear-gradient(rgba(var(--dark-rgb), .86), rgba(var(--primary-rgb), .78)), var(--page-header-img, url(/images/clinic/page-header.webp)) center/cover no-repeat;
}
.page-header::after {
    content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 6px;
    background: linear-gradient(90deg, var(--primary) 0 60%, var(--secondary) 60% 100%);
}
.page-header h1 { color: #fff; font-size: clamp(2rem, 4vw, 3.4rem); }
.page-header .lead { color: rgba(255,255,255,.88); max-width: 720px; margin-inline: auto; }
.page-header .breadcrumb { justify-content: center; margin: 0; }
.page-header .breadcrumb-item, .page-header .breadcrumb-item a { color: rgba(255,255,255,.85); }
.page-header .breadcrumb-item.active { color: #fff; font-weight: 600; }
.page-header .breadcrumb-item + .breadcrumb-item::before { color: var(--secondary); }

/* ---------- About ---------- */
.about-img-wrap { position: relative; min-height: 460px; }
.about-img-wrap img.main { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.about-img-wrap .badge-exp {
    position: absolute; bottom: -22px; inset-inline-start: -22px; background: var(--secondary-dark); color: #fff;
    border-radius: var(--radius); padding: 22px 26px; box-shadow: var(--shadow-lg); text-align: center;
}
.about-img-wrap .badge-exp strong { display: block; font-size: 2.6rem; line-height: 1; font-family: 'Jost', 'Cairo', sans-serif; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; font-weight: 600; color: var(--dark); }
.check-list li i { color: var(--secondary); font-size: 1.25rem; margin-top: 4px; }

/* ---------- Services ---------- */
.service-item { transition: .4s; }
.service-card {
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); height: 100%;
    padding: 2.2rem 1.8rem; position: relative; overflow: hidden; transition: .4s; border-bottom: 4px solid transparent;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-bottom-color: var(--secondary); }
.service-card .service-icon {
    width: 72px; height: 72px; border-radius: 18px; display: flex; align-items: center; justify-content: center;
    background: var(--light); color: var(--primary); font-size: 1.9rem; margin-bottom: 1.4rem; transition: .4s;
}
.service-card:hover .service-icon { background: var(--primary); color: #fff; }
.service-card h3 { font-size: 1.3rem; }
.service-card p { margin-bottom: 0; }
.service-card .more { font-weight: 700; display: inline-flex; gap: 8px; align-items: center; margin-top: 1rem; }
html[dir="rtl"] .flip-rtl { transform: scaleX(-1); }

/* services page */
.service-nav { position: sticky; top: 110px; }
.service-nav .list-group-item {
    border: 0; border-inline-start: 3px solid transparent; font-weight: 600; color: var(--dark); padding: .8rem 1.1rem;
    background: transparent;
}
.service-nav .list-group-item:hover, .service-nav .list-group-item.active {
    background: var(--light); color: var(--primary); border-inline-start-color: var(--secondary);
}
.service-detail { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; scroll-margin-top: 110px; }
.service-detail .service-detail-img { width: 100%; max-height: 360px; object-fit: cover; }
.service-detail .service-body { padding: 2rem; }
.service-detail .service-body h2 { font-size: 1.6rem; }
.service-detail .service-body img { max-width: 100%; height: auto; }

/* ---------- Image-backed CTA (appointment band) ---------- */
.bg-appointment {
    background: linear-gradient(rgba(var(--dark-rgb), .88), rgba(var(--primary-rgb), .82)), url(/images/clinic/waiting-area.webp) center/cover no-repeat;
}
.bg-appointment h2, .bg-appointment h3 { color: #fff; }
.cta-box { background: rgba(var(--secondary-rgb), .9); border-radius: var(--radius); }

/* ---------- Why us / features ---------- */
.feature-box { display: flex; gap: 18px; align-items: flex-start; }
.feature-box .icon {
    flex: 0 0 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: rgba(var(--secondary-rgb), .15); color: var(--secondary-dark); font-size: 1.5rem;
}
.feature-box h3 { font-size: 1.15rem; margin-bottom: .3rem; }

/* ---------- Counters ---------- */
.counter-box { text-align: center; color: #fff; }
.counter-box .number { display: block; font-size: 2.8rem; font-weight: 700; color: #fff; font-family: 'Jost', 'Cairo', sans-serif; line-height: 1.1; }
.counter-box .number::after { content: "+"; color: var(--secondary); }
.counter-box span { color: rgba(255,255,255,.85); }

/* ---------- Team / doctors ---------- */
.team-item { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); height: 100%; transition: .4s; display: flex; flex-direction: column; }
.team-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.team-item .team-img { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--light); }
.team-item .team-img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: .5s; }
.team-item:hover .team-img img { transform: scale(1.06); }
.team-item .team-img .branch-tag {
    position: absolute; bottom: 12px; inset-inline-start: 12px; background: rgba(var(--primary-rgb), .92); color: #fff;
    font-size: 13px; padding: 4px 12px; border-radius: 20px; font-weight: 600;
}
.team-item .team-text { padding: 1.3rem 1.2rem 1.5rem; text-align: center; border-top: 4px solid var(--secondary); flex: 1; }
.team-item .team-text h3 { font-size: 1.15rem; margin-bottom: .3rem; }
.team-item .team-text .position { color: var(--secondary-dark); font-weight: 600; font-size: .95rem; }
.team-item .team-text p { font-size: .92rem; margin: .6rem 0 0; }

.doctor-carousel .owl-stage { display: flex; }
.doctor-carousel .owl-item { display: flex; padding: 12px 0 18px; }
.doctor-carousel .owl-item > * { width: 100%; }
.owl-nav-brand .owl-nav { display: flex; justify-content: center; gap: 12px; margin-top: 18px; }
.owl-nav-brand .owl-nav button.owl-prev, .owl-nav-brand .owl-nav button.owl-next {
    width: 46px; height: 46px; border-radius: 50%; background: var(--primary) !important; color: #fff !important; font-size: 20px !important;
    display: flex; align-items: center; justify-content: center; transition: .3s;
}
.owl-nav-brand .owl-nav button:hover { background: var(--secondary-dark) !important; }

.filter-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.filter-chips a {
    border: 2px solid rgba(var(--primary-rgb), .18); border-radius: 30px; padding: 8px 20px; font-weight: 600; color: var(--dark); background: #fff;
}
.filter-chips a:hover { border-color: var(--secondary); color: var(--secondary-dark); }
.filter-chips a.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ---------- Testimonial ---------- */
.testimonial-box {
    background: rgba(var(--primary-rgb), .9); color: #fff; border-radius: var(--radius); padding: 3rem; position: relative;
}
.testimonial-box .quote-icon {
    width: 70px; height: 70px; border-radius: 50%; background: var(--secondary); display: flex; align-items: center; justify-content: center;
    font-size: 1.7rem; margin: -80px auto 1.4rem; box-shadow: var(--shadow-lg);
}
.testimonial-box blockquote p { font-size: 1.12rem; line-height: 1.9; color: #fff; }
.testimonial-box .stars { color: #F7C948; }
.bg-testimonial {
    background: linear-gradient(rgba(var(--dark-rgb), .55), rgba(var(--dark-rgb), .55)), url(/images/clinic/hero-2-sm.webp) center/cover no-repeat;
}

/* ---------- Branches ---------- */
.branch-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 2rem; height: 100%; border-top: 4px solid var(--primary); transition: .4s; }
.branch-card:hover { border-top-color: var(--secondary); transform: translateY(-4px); }
.branch-card h3 { font-size: 1.25rem; display: flex; gap: 10px; align-items: center; }
.branch-card h3 i { color: var(--secondary); }
.branch-card .meta { display: flex; gap: 10px; align-items: flex-start; margin-bottom: .55rem; }
.branch-card .meta i { color: var(--primary); margin-top: 6px; width: 18px; text-align: center; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* ---------- Contact / locations ---------- */
.location-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 2rem; scroll-margin-top: 110px; }
.location-card .location-info { padding: 2rem; }
.location-card .location-info h2 { font-size: 1.45rem; display: flex; align-items: center; gap: 12px; }
.location-card .location-info h2 .num {
    width: 38px; height: 38px; border-radius: 50%; background: var(--secondary-dark); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 1rem;
}
.location-card .info-row { display: flex; gap: 12px; margin-bottom: .7rem; align-items: flex-start; }
.location-card .info-row i { color: var(--primary); margin-top: 6px; width: 18px; text-align: center; }
.location-card .location-map { min-height: 340px; height: 100%; }
.location-card iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }
.whatsapp-btn {
    display: inline-flex; align-items: center; gap: 8px; background: #1FAF55; color: #fff; border-radius: 30px; padding: 8px 18px; font-weight: 600; margin: 4px;
}
.whatsapp-btn:hover { background: #178A43; color: #fff; }

/* Working-hours HTML stored in the database (clinic_contact.workinghours_*) */
.hours-widget { background: var(--light); border-radius: 10px; padding: 1.1rem 1.2rem; margin-top: 1rem; }
.hours-widget h6 { display: flex; align-items: center; gap: 8px; color: var(--dark); font-weight: 700; font-size: 1.05rem; margin-bottom: .7rem; }
.hours-widget h6 i { color: var(--secondary); }
.openinghours { display: flex; justify-content: space-between; align-items: center; margin: 0; padding: 9px 4px; border-bottom: 1px dashed rgba(var(--primary-rgb), .2); }
.openinghours:last-of-type { border-bottom: 0; }
.oh-day { font-weight: 600; color: var(--dark); }
.oh-time { font-weight: 700; color: var(--primary); background: #fff; padding: 3px 14px; border-radius: 20px; font-size: .9rem; direction: ltr; unicode-bidi: isolate; }
.oh-time.oh-closed { color: #7A8794; background: #E9EDF1; }
.branch-hours-card { background: #fff; border-radius: 10px; padding: 1.4rem; height: 100%; box-shadow: var(--shadow); }

/* ---------- Gallery ---------- */
.gallery-tabs .nav-link { border-radius: 30px; font-weight: 700; color: var(--dark); padding: .55rem 1.4rem; }
.gallery-tabs .nav-link.active { background: var(--primary); color: #fff; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; transition: opacity .3s; }
.gallery-grid.is-loading { opacity: .4; }
.gallery-item { position: relative; display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--light); box-shadow: var(--shadow); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: .5s; }
.gallery-item::after {
    content: "\f00e"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; color: #fff; background: rgba(var(--primary-rgb), .55); opacity: 0; transition: .4s;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item:hover::after { opacity: 1; }
.gallery-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.gallery-strip .gallery-item { border-radius: 0; box-shadow: none; aspect-ratio: 1 / 1; }

.lightbox { position: fixed; inset: 0; background: rgba(5, 26, 46, .94); display: none; align-items: center; justify-content: center; z-index: 5000; }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 84vh; border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); border: 0; color: #fff; width: 52px; height: 52px; border-radius: 50%; font-size: 1.6rem; }
.lightbox button:hover { background: var(--secondary-dark); }
.lightbox .lightbox-close { top: 20px; inset-inline-end: 20px; }
.lightbox .lightbox-prev { inset-inline-start: 20px; top: 50%; transform: translateY(-50%); }
.lightbox .lightbox-next { inset-inline-end: 20px; top: 50%; transform: translateY(-50%); }
.lightbox .lightbox-counter { position: absolute; bottom: 20px; color: #fff; font-weight: 600; direction: ltr; }

/* ---------- Appointment form ---------- */
.appointment-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; }
.appointment-card .aside { background: linear-gradient(160deg, var(--primary) 0%, var(--dark) 100%); color: #fff; padding: 2.5rem; height: 100%; }
.appointment-card .aside h2, .appointment-card .aside h3 { color: #fff; }
.appointment-card .aside .aside-row { display: flex; gap: 14px; margin-bottom: 1.2rem; }
.appointment-card .aside .aside-row i { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%; background: rgba(var(--secondary-rgb), .9); display: flex; align-items: center; justify-content: center; }
.appointment-card .aside a { color: #fff; }
.appointment-card form { padding: 2.5rem; }
.form-label { font-weight: 600; color: var(--dark); }
.form-control, .form-select { border: 2px solid #E1E8EF; border-radius: 10px; padding: .75rem 1rem; min-height: 52px; }
.form-control:focus, .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 .2rem rgba(var(--primary-rgb), .15); }
.input-validation-error { border-color: #C0392B !important; }
.field-validation-error, .text-danger { color: #B03A2E !important; font-size: .9rem; }
.visit-type-wrapper { display: flex; gap: 12px; flex-wrap: wrap; }
.visit-type-option { flex: 1 1 160px; position: relative; cursor: pointer; margin: 0; }
.visit-type-option input { position: absolute; opacity: 0; }
.visit-type-option .visit-type-card {
    display: flex; align-items: center; justify-content: center; gap: 10px; border: 2px solid #E1E8EF; border-radius: 10px; padding: .85rem 1rem; font-weight: 600; transition: .3s;
}
.visit-type-option input:checked + .visit-type-card { border-color: var(--primary); background: var(--light); color: var(--primary); }
.visit-type-option input:focus-visible + .visit-type-card { outline: 3px solid rgba(var(--secondary-rgb), .6); }

.confirm-box { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 3rem 2rem; text-align: center; max-width: 720px; margin: 0 auto; }
.confirm-box .confirm-icon { width: 96px; height: 96px; border-radius: 50%; background: var(--olive-tint); color: var(--secondary-dark); font-size: 2.8rem; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 1.4rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: rgba(255,255,255,.75); }
.site-footer h2, .site-footer h3 { color: #fff; font-size: 1.15rem; position: relative; padding-bottom: 12px; margin-bottom: 1.3rem; }
.site-footer h2::after, .site-footer h3::after { content: ""; position: absolute; bottom: 0; inset-inline-start: 0; width: 46px; height: 3px; background: var(--secondary); border-radius: 3px; }
.site-footer a { color: rgba(255,255,255,.75); }
.site-footer a:hover { color: #fff; }
.site-footer .footer-links a { display: block; margin-bottom: .55rem; }
.site-footer .footer-links a i { color: var(--secondary); margin-inline-end: 8px; font-size: .8rem; }
.site-footer .social a {
    width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.08); color: #fff; margin-inline-end: 6px; margin-bottom: 6px; transition: .3s;
}
.site-footer .social a:hover { background: var(--secondary-dark); }
.site-footer .footer-logo { background: #fff; border-radius: 12px; padding: 10px 14px; display: inline-block; }
.site-footer .footer-logo img { height: 70px; width: auto; }
.site-footer .copyright { background: #04243F; color: rgba(255,255,255,.6); font-size: 14px; }
.btn-emergency { background: var(--secondary-dark); color: #fff; border-radius: 30px; font-weight: 700; }
.btn-emergency:hover { background: #fff; color: var(--primary); }

/* ---------- Back to top & floating contact ---------- */
.back-to-top { position: fixed; display: none; inset-inline-start: 24px; bottom: 24px; z-index: 99; border-radius: 50%; }

.floating-contact {
    position: fixed; bottom: 24px; inset-inline-end: 18px; z-index: 3000; display: flex; flex-direction: column; align-items: center; gap: 10px;
    transition: opacity .2s ease, transform .2s ease;
}
.floating-contact.fc-hidden { opacity: 0; transform: translateY(12px); pointer-events: none; }
.fc-icon {
    display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; color: #fff; font-size: 1.2rem;
    box-shadow: 0 4px 14px rgba(0,0,0,.22); border: none; cursor: pointer; transition: transform .18s ease;
}
.fc-icon:hover, .fc-icon:focus-visible { transform: scale(1.1); color: #fff; }
.fc-phone { background: var(--primary); }
.fc-whatsapp { background: #1FAF55; }
.fc-appointment { background: var(--secondary-dark); }
.fc-email { background: #0B7FB8; }
.fc-instagram { background: radial-gradient(circle at 30% 110%, #FDF497 0%, #FD5949 45%, #D6249F 60%, #285AEB 90%); }
.fc-location { background: var(--dark); }
.fc-close { background: #8A97A4; }
.fc-reopen {
    position: fixed; bottom: 24px; inset-inline-end: 18px; z-index: 2999; width: 52px; height: 52px; border-radius: 50%; border: none;
    background: var(--primary); color: #fff; font-size: 1.3rem; box-shadow: 0 4px 14px rgba(0,0,0,.25); display: none; align-items: center; justify-content: center;
}
.fc-reopen.fc-visible { display: flex; }
@media (max-width: 480px) {
    .floating-contact, .fc-reopen { inset-inline-end: 12px; bottom: 16px; }
    .fc-icon { width: 42px; height: 42px; font-size: 1.05rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Utilities */
.py-section { padding-top: 5.5rem; padding-bottom: 5.5rem; }
.rounded-brand { border-radius: var(--radius) !important; }
.shadow-brand { box-shadow: var(--shadow) !important; }
.object-cover { object-fit: cover; }

/* ---------- Home page: admin-managed image sections ---------- */
.service-card.has-img { padding: 0 0 1.8rem; display: flex; flex-direction: column; }
.service-card.has-img .service-img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .5s; }
.service-card.has-img:hover .service-img { transform: scale(1.05); }
.service-card.has-img .service-icon { margin: -36px 1.6rem 1rem; position: relative; z-index: 1; background: #fff; box-shadow: var(--shadow); }
.service-card.has-img:hover .service-icon { background: var(--primary); }
.service-card.has-img h3, .service-card.has-img p, .service-card.has-img .more { margin-inline: 1.6rem; }
.service-card.has-img .more { margin-top: auto; padding-top: 1rem; }
.service-card.has-img { overflow: hidden; }

.about-img-wrap .about-small {
    position: absolute; width: 42%; aspect-ratio: 1 / 1; object-fit: cover; bottom: -30px; inset-inline-end: -24px;
    border: 8px solid #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
@media (max-width: 575.98px) { .about-img-wrap .about-small { inset-inline-end: 0; width: 38%; } }

.offer-card { display: block; position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--light); transition: .4s; }
.offer-card img { width: 100%; height: auto; display: block; transition: transform .5s; }
.offer-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.offer-card:hover img { transform: scale(1.03); }
.offer-card .offer-title { position: absolute; inset-inline: 0; bottom: 0; padding: 1.4rem 1rem .9rem; color: #fff; font-weight: 700;
    background: linear-gradient(transparent, rgba(var(--dark-rgb), .85)); }

.ba-carousel .owl-item { padding: 8px 0 14px; }
.ba-item { display: block; position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #fff; aspect-ratio: 1 / 1; }
.ba-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.ba-item:hover img { transform: scale(1.05); }
.ba-item .ba-caption { position: absolute; inset-inline: 0; bottom: 0; padding: 1.2rem .9rem .7rem; color: #fff; font-weight: 600; font-size: .95rem;
    background: linear-gradient(transparent, rgba(var(--dark-rgb), .85)); }
.owl-carousel .owl-item img.owl-lazy { min-height: 1px; }
.hero-carousel .carousel-item .stretched-link { z-index: 1; }
