:root {
    --primary: #2abae9;
    --primary-hover: #1ea3d1;
    --primary-light: #f0f9ff;
    --secondary: #0ea5e9;
    --secondary-hover: #0c66c2;

    --dark: #0f172a;
    --dark-blue: #1e293b;
    --light: #f8fafc;
    --surface: #ffffff;
    --text-main: #334155;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-premium: 0 20px 25px -5px rgb(0 0 0 / 0.05), 0 8px 10px -6px rgb(0 0 0 / 0.05);
    --header-height: 90px;
    --footer-bg: #093655;
    --footer-bottom-bg: #153248;

    /* Bootstrap Overrides */
    --bs-primary: #2abae9;
    --bs-primary-rgb: 42, 186, 233;
    --bs-link-color: #2abae9;
    --bs-link-hover-color: #1ea3d1;
}

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

body {
    font-family: 'Road UI', system-ui, -apple-system, sans-serif;
    color: var(--text-main);
    background: #fff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

/* Admin Form Controls */
.ck-editor__editable_inline {
    min-height: 200px;
}

/* Doctor Preview Cards */
.doctor-preview-card {
    transition: transform 0.3s;
}

@media (max-width: 768px) {
    .doctor-preview-card h5 {
        font-size: 1.05rem !important;
    }

    .doctor-preview-card p {
        font-size: 0.85rem !important;
    }
}

.doctor-preview-card:hover {
    transform: translateY(-5px);
}

.doctor-preview-card:hover img,
.doctor-preview-card:hover .rounded-circle {
    box-shadow: 0 10px 20px rgba(42, 186, 233, 0.2) !important;
}

/* Doctor Experience Badge */
.doc-exp-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: linear-gradient(135deg, var(--primary) 0%, #0ea5e9 100%);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 2rem;
    font-size: 0.65rem;
    font-weight: 800;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    border: 2px solid white;
    z-index: 5;
    white-space: nowrap;
    text-transform: uppercase;
}

@media (min-width: 768px) {
    .doc-exp-badge {
        top: 10px;
        right: 10px;
        padding: 0.25rem 0.8rem;
        font-size: 0.7rem;
    }
}

/* Mobile: smaller experience badge so it doesn't cover the doctor's face */
@media (max-width: 767.98px) {
    .doc-exp-badge {
        top: 0;
        right: 0;
        padding: 0.1rem 0.35rem;
        font-size: 0.46rem;
        border-width: 1.5px;
        letter-spacing: 0;
    }
}

/* Full Grid System */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -1rem;
}

[class*="col-"] {
    padding: 0 1rem;
    width: 100%;
}

.col-1 {
    width: 8.333%;
}

.col-2 {
    width: 16.666%;
}

.col-3 {
    width: 25%;
}

.col-4 {
    width: 33.333%;
}

.col-5 {
    width: 41.666%;
}

.col-6 {
    width: 50%;
}

.col-7 {
    width: 58.333%;
}

.col-8 {
    width: 66.666%;
}

.col-9 {
    width: 75%;
}

.col-10 {
    width: 83.333%;
}

.col-11 {
    width: 91.666%;
}

.col-12 {
    width: 100%;
}

@media (min-width: 768px) {
    .col-md-1 {
        width: 8.333%;
    }

    .col-md-2 {
        width: 16.666%;
    }

    .col-md-3 {
        width: 25%;
    }

    .col-md-4 {
        width: 33.333%;
    }

    .col-md-5 {
        width: 41.666%;
    }

    .col-md-6 {
        width: 50%;
    }

    .col-md-7 {
        width: 58.333%;
    }

    .col-md-8 {
        width: 66.666%;
    }

    .col-md-9 {
        width: 75%;
    }

    .col-md-10 {
        width: 83.333%;
    }

    .col-md-11 {
        width: 91.666%;
    }

    .col-md-12 {
        width: 100%;
    }
}

@media (min-width: 992px) {
    .col-lg-1 {
        width: 8.333%;
    }

    .col-lg-2 {
        width: 16.666%;
    }

    .col-lg-3 {
        width: 25%;
    }

    .col-lg-4 {
        width: 33.333%;
    }

    .col-lg-5 {
        width: 41.666%;
    }

    .col-lg-6 {
        width: 50%;
    }

    .col-lg-7 {
        width: 58.333%;
    }

    .col-lg-8 {
        width: 66.666%;
    }

    .col-lg-9 {
        width: 75%;
    }

    .col-lg-10 {
        width: 83.333%;
    }

    .col-lg-11 {
        width: 91.666%;
    }

    .col-lg-12 {
        width: 100%;
    }
}

@media (max-width: 992px) {
    .d-lg-block {
        display: none !important;
    }
}

/* Offsets & Spacing */
@media (max-width: 768px) {
    .section-padding {
        padding: 3rem 0;
    }
}

.section-padding {
    padding: 5rem 0;
}

.pt-0 {
    padding-top: 0 !important;
}

.pb-5 {
    padding-bottom: 3rem !important;
}

.mb-2 {
    margin-bottom: 0.5rem !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.mb-5 {
    margin-bottom: 3rem !important;
}

.mt-2 {
    margin-top: 0.5rem !important;
}

.mt-4 {
    margin-top: 1.5rem !important;
}

.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

.px-3 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

.px-4 {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
}

.py-2 {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

.gap-3 {
    gap: 1rem !important;
}

.gap-4 {
    gap: 1.5rem !important;
}

.gap-5 {
    gap: 3rem !important;
}

/* Typography Utility */
.display-4 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.display-5 {
    font-size: 2.5rem;
}

.fw-bold {
    font-weight: 700 !important;
}

.fw-semibold {
    font-weight: 600 !important;
}

.lh-lg {
    line-height: 1.8 !important;
}

/* Header - Light Premium Version */
.top-bar {
    background: var(--light);
    color: var(--dark);
    padding: 10px 0;
    font-size: 0.875rem;
    font-weight: 500;
    border-bottom: 1px solid var(--border-color);
}

.top-bar i {
    color: var(--primary);
}

.top-bar a:hover {
    color: var(--primary);
}

.main-header {
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: 0.3s;
}

.main-header.scrolled {
    height: 75px;
    box-shadow: var(--shadow-md);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    flex-wrap: nowrap;
}

.navbar-brand img {
    height: 54px;
    transition: 0.3s;
}

.main-header.scrolled .navbar-brand img {
    height: 44px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

@media (max-width: 1250px) {
    .nav-menu {
        gap: 0.75rem;
    }

    .nav-link {
        font-size: 0.85rem;
        white-space: nowrap;
    }

    .btn-primary-custom {
        padding: 8px 15px;
        font-size: 0.85rem;
        white-space: nowrap;
    }

    .navbar-brand img {
        height: 48px;
    }
}

.nav-link {
    font-weight: 600;
    color: var(--dark-blue);
    font-size: 0.95rem;
    padding: 0.5rem 0;
    position: relative;
}

.nav-link.active,
.nav-link:hover {
    color: var(--primary);
}

.nav-link.active::after,
.nav-link:hover::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 0px;
    background: var(--primary);
}

.mobile-nav-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--dark-blue);
}

@media (max-width: 992px) {
    .nav-menu {
        display: none;
    }

    .mobile-nav-toggle {
        display: block;
    }

    .nav-menu.active {
        display: flex !important;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        padding: 1.25rem 2rem;
        border-top: 1px solid var(--border-color);
        box-shadow: var(--shadow-md);
        max-height: calc(100vh - var(--header-height));
        overflow-y: auto;
        gap: 0.5rem !important;
        animation: slideInDown 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        transform-origin: top;
    }

    @keyframes slideInDown {
        from {
            opacity: 0;
            transform: scaleY(0);
        }

        to {
            opacity: 1;
            transform: scaleY(1);
        }
    }

    .nav-menu.active .nav-item {
        width: 100%;
    }

    .nav-menu.active .megamenu {
        position: static;
        box-shadow: none;
        padding: 0;
        opacity: 1;
        visibility: visible;
        display: none;
        /* Hidden by default on mobile, toggled with JS */
        border: none;
        background: #f8fafc;
        border-radius: 16px;
        margin: 0.5rem 0;
    }

    .nav-menu.active .has-megamenu.expanded .megamenu {
        display: block;
    }

    .nav-menu.active .megamenu-content {
        padding: 0.75rem 0.75rem 1.25rem;
    }

    .nav-menu.active .megamenu-content .row>div:first-child .megamenu-title:first-child {
        margin-top: 0 !important;
    }

    .nav-menu.active .megamenu-title {
        margin-top: 0.5rem;
        margin-bottom: 0.25rem;
        font-size: 0.75rem;
        opacity: 0.5;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .megamenu-list li {
        margin-bottom: 0.15rem;
    }

    .nav-menu.active .megamenu-footer {
        flex-direction: row !important;
        justify-content: space-between !important;
        gap: 0.5rem;
        padding-top: 1rem !important;
        margin-top: 1rem !important;
    }

    .nav-menu.active .megamenu-footer p {
        font-size: 0.75rem !important;
        max-width: 50%;
        text-align: left;
    }

    .nav-menu.active .megamenu-footer .btn {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.75rem !important;
        white-space: nowrap;
    }
}

/* Mega Menu Desktop */
.has-megamenu {
    position: static !important;
}

.megamenu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border-top: 1px solid var(--border-color);
    z-index: 999;
}

.has-megamenu:hover .megamenu,
.has-megamenu .megamenu:hover {
    opacity: 1;
    visibility: visible;
}

.megamenu-content {
    padding: 0 0 1rem 0;
}

.megamenu-title {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

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

.megamenu-list li {
    margin-bottom: 0.75rem;
}

.megamenu-list a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--dark-blue);
    font-weight: 600;
    transition: 0.2s;
}

.megamenu-list i {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1rem;
    transition: 0.3s;
}

.megamenu-list a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.megamenu-more-link {
    font-size: 0.85rem !important;
    color: var(--primary) !important;
    opacity: 0.85;
    background: var(--primary-light);
    padding: 6px 12px;
    border-radius: 8px;
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
}

.megamenu-more-link:hover {
    opacity: 1;
    background: var(--primary);
    color: #fff !important;
    transform: none !important;
}

.megamenu-footer {
    border-color: rgba(0, 0, 0, 0.05) !important;
}

/* Megamenu services overlay */
.megamenu-services-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.99);
    backdrop-filter: blur(15px);
    padding: 2.5rem 2.5rem;
    z-index: 100;
    border-radius: 12px;
    animation: megamenuOverlaySlide 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

@keyframes megamenuOverlaySlide {
    0% {
        opacity: 0;
        transform: scale(0.98) translateX(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateX(0);
    }
}

.megamenu-services-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.megamenu-services-inner .nav-services-list {
    margin-top: 1.5rem;
    margin-bottom: 2rem;
    flex-grow: 1;
    align-content: flex-start;
}

.megamenu-services-inner a:hover .border {
    border-color: var(--primary) !important;
    background-color: #f8fafc !important;
}
/* Tech badge circle on service page */
.tech-badge-circle {
    width: 120px;
    height: 120px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 25px rgba(15, 23, 42, 0.2);
    padding: 0.75rem;
    border: 1px solid rgba(148, 163, 184, 0.4);
}

 .tech-badge-circle .fs-2 {
    line-height: 1.05;
 }

@media (max-width: 768px) {
    .tech-badge-circle {
        width: 90px;
        height: 90px;
        top: 10px !important;
        right: 10px !important;
        padding: 0.4rem;
        box-shadow: 0 8px 16px rgba(15, 23, 42, 0.28);
    }
    .tech-badge-circle .fs-2 {
        font-size: 1rem !important;
    }
    .tech-badge-circle .small {
        font-size: 0.55rem !important;
    }
}


/* Hero */
@media (max-width: 991px) {
    .hero-section {
        padding: 4rem 0 2rem;
        text-align: center;
    }

    .hero-title {
        font-size: 2.25rem;
        margin-bottom: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .hero-image-mobile {
        max-width: 280px;
        margin: 2rem auto 0;
        display: block;
    }

    .hero-section .d-flex.gap-3 {
        gap: 0.5rem !important;
        margin-top: 1.5rem !important;
    }

    .hero-section .btn-lg {
        padding: 1.25rem 0.5rem !important;
        font-size: 0.85rem !important;
        white-space: nowrap !important;
        flex: 1;
        height: auto;
    }

    /* Scroll Header Transformations */
    .main-header.scrolled .logo-full {
        display: none !important;
    }

    .main-header.scrolled .logo-small {
        display: block !important;
        height: 38px;
    }

    .main-header.scrolled .header-address {
        display: flex !important;
        flex-direction: column;
        background: #f1f5f9;
        padding: 4px 8px;
        border-radius: 12px;
        align-items: flex-start;
        gap: 2px;
        max-width: 65%;
        font-size: 0.7rem;
    }

    .main-header.scrolled .header-address span {
        font-size: 0.7rem;
        color: #475569;
        white-space: nowrap;
    }

    .main-header.scrolled .header-address .header-phone-link {
        font-size: 0.7rem;
        color: #0f172a;
    }
}

.hero-section {
    padding: 10rem 0;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 85vh;
}

.hero-bg-layer {
    position: absolute;
    inset: 0;
    background: url('/assets/images/hero_bg.jpg') center/cover no-repeat;
    z-index: 0;
    opacity: 0;
    transform: scale(1.08);
    will-change: opacity, transform;
    /* Elegant crossfade + slow Ken-Burns zoom while a slide is active */
    transition: opacity 1.1s cubic-bezier(0.4, 0, 0.2, 1), transform 6.5s ease-out;
}

.hero-bg-layer.is-active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}

/* Mobile: paint the lighter mobile hero immediately (matches the preload),
   instead of loading the large desktop image before JS swaps it. */
@media (max-width: 991px) {
    .hero-bg-layer {
        background-image: url('/assets/images/hero_bg_mobile_1.jpg');
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-bg-layer {
        transition: opacity 0.4s ease;
        transform: none;
    }
    .hero-bg-layer.is-active {
        transform: none;
    }
}

.hero-slider-dots {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 3;
}

.hero-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.25);
    background: rgba(255, 255, 255, 0.7);
    padding: 0;
    cursor: pointer;
    transition: all 0.25s ease;
}

.hero-dot.active {
    width: 20px;
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(42, 186, 233, 0.25);
}

/* Glassmorphism card */
.hero-glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 2rem;
    padding: 3.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    animation: fadeInUp 1s ease-out;
    max-width: 600px;
    /* Constrain width on PC */
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--dark);
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: var(--text-main);
    margin-bottom: 2.5rem;
    max-width: 100%;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 991px) {
    .hero-section {
        padding: 5rem 1rem 3rem;
        min-height: 65vh;
        text-align: left;
        display: flex;
        align-items: flex-end;
        background-position: center center;
    }
    .hero-section .container {
        width: 100%;
    }

    .hero-glass-card {
        padding: 1rem 1.2rem 1.2rem;
        max-width: 420px;
        width: 100%;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    .hero-glass-card .badge {
        display: none;
    }

    .hero-title {
        font-size: 1.4rem;
        line-height: 1.2;
        margin-bottom: 0.4rem;
    }

    .hero-subtitle {
        font-size: 0.88rem;
        line-height: 1.3;
        margin-bottom: 0.6rem;
    }

    .hero-section .d-flex.gap-3 {
        gap: 0.5rem !important;
        margin-top: 0.6rem !important;
        flex-direction: row;
        align-items: stretch;
        flex-wrap: nowrap;
    }

    .hero-section .btn-lg {
        padding: 0.7rem 0.4rem !important;
        font-size: 0.8rem !important;
        white-space: nowrap !important;
        flex: 1 1 0;
        min-width: 0;
    }

    .hero-slider-dots {
        bottom: 1.5rem;
    }
}

.hero-floating-badge {
    position: absolute;
    top: -25px;
    right: -25px;
    background: white;
    padding: 1rem 1.75rem;
    border-radius: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.8);
    animation: float 6s ease-in-out infinite;
    z-index: 5;
    width: auto;
    height: auto;
    max-width: fit-content;
}


@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-12px);
    }

    100% {
        transform: translateY(0px);
    }
}

.section-title {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 800;
    color: var(--dark);
}

/* Components */
.custom-card {
    background: #fff;
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: 0.4s;
    height: 100%;
}

.custom-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-premium);
    border-color: var(--primary);
}

@media (max-width: 768px) {
    .contact-form-wrapper {
        padding: 1.25rem !important;
    }
}

.icon-box {
    width: 64px;
    height: 64px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    flex-shrink: 0;
}

@media (max-width: 768px) {

    .icon-box,
    .service-icon,
    .advantage-icon,
    .why-thesis-icon {
        border-radius: 50% !important;
    }
}

/* Advantages Section */
.advantage-card {
    background: #fff;
    border-radius: 24px;
    padding: 2.5rem 1.5rem;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.02);
    height: 100%;
}

.advantage-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px -5px rgba(42, 186, 233, 0.15);
}

.advantage-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-light), #fff);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    box-shadow: 0 8px 16px rgba(42, 186, 233, 0.1);
    transition: 0.4s;
    margin: 0 auto;
}

.advantage-card:hover .advantage-icon {
    background: var(--primary);
    color: #fff;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 24px rgba(42, 186, 233, 0.3);
}

/* Strengths Section (Screenshot Redesign) */
.badge-header {
    background: #e0f2fe;
    color: #0ea5e9;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
}

@media (max-width: 768px) {
    .badge-header {
        top: 0;
        position: static;
        margin-top: 1rem;
    }
}

.brand-accent {
    color: #2abae9;
}

.strengths-grid {
    counter-reset: strength;
}

.strength-card {
    position: relative;
    overflow: hidden;
    background: #fff;
    border-radius: 22px;
    padding: 2.25rem 2.25rem 2.5rem;
    box-shadow: 0 10px 30px -18px rgba(15, 23, 42, 0.18);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    border: 1px solid #eef2f7;
    height: 100%;
    /* Header row: icon | title ; description spans full width below */
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
        "icon title"
        "desc desc";
    column-gap: 1.15rem;
    row-gap: 1.25rem;
    align-items: start;
    text-align: left;
    counter-increment: strength;
}

/* Editorial ghost index number (01–06) — faint watermark, bottom-right */
.strength-card::before {
    content: counter(strength, decimal-leading-zero);
    position: absolute;
    bottom: 0.75rem;
    right: 1.5rem;
    font-size: 3.4rem;
    font-weight: 800;
    line-height: 1;
    color: #f1f7fc;
    transition: color 0.35s ease;
    pointer-events: none;
    z-index: 0;
}

/* Top accent line that grows in on hover */
.strength-card::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 4px;
    width: 0;
    background: linear-gradient(90deg, #2abae9, #0ea5e9);
    transition: width 0.4s ease;
}

.strength-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 28px 55px -24px rgba(42, 186, 233, 0.45);
    border-color: #cdeafd;
}

.strength-card:hover::after {
    width: 100%;
}

.strength-card:hover::before {
    color: #def0fc;
}

.strength-icon {
    grid-area: icon;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #e6f6fe, #d4ecfb);
    color: #0ea5e9;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 8px 18px -8px rgba(14, 165, 233, 0.5);
    transition: transform 0.35s ease, background 0.35s ease, color 0.35s ease;
    z-index: 1;
}

.strength-card:hover .strength-icon {
    background: linear-gradient(135deg, #2abae9, #0ea5e9);
    color: #fff;
    transform: rotate(-6deg) scale(1.06);
}

.strength-title {
    grid-area: title;
    align-self: center;
    position: relative;
    font-size: 1.3rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 0;
    line-height: 1.25;
    z-index: 1;
}

.strength-desc {
    grid-area: desc;
    position: relative;
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 0;
    z-index: 1;
}

@media (max-width: 992px) {
    .strength-card {
        padding: 2.25rem 2rem;
    }

    .strength-title {
        font-size: 1.25rem;
    }
}

@media (max-width: 768px) {
    .strength-card {
        padding: 1.25rem 1rem 1.25rem;
        border-radius: 16px;
        column-gap: 0.7rem;
        row-gap: 0.75rem;
    }

    .strength-card::before {
        font-size: 2rem;
        bottom: 0.45rem;
        right: 0.7rem;
    }

    .strength-icon {
        width: 42px;
        height: 42px;
        font-size: 1rem;
        border-radius: 12px;
    }

    .strength-title {
        font-size: 0.95rem;
        font-weight: 700;
    }

    .strength-desc {
        font-size: 0.75rem;
        line-height: 1.3;
    }
}

@media (max-width: 480px) {
    .strength-card {
        padding: 1rem 0.5rem;
    }

    .strength-icon {
        width: 34px;
        height: 34px;
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .strength-title {
        font-size: 0.85rem;
        margin-bottom: 0.3rem;
    }

    .strength-desc {
        font-size: 0.85rem;
        line-height: 1.2;
    }
}

/* Service Card (Directions) */
.service-card {
    background: #fff;
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.05);
    /* very soft shadow */
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.01);
    height: 100%;
    display: flex;
    flex-direction: column;
}

@media (max-width: 768px) {
    .service-card {
        padding: 1.25rem !important;
        text-align: center !important;
        align-items: center;
        border-radius: 1.5rem;
    }

    .service-card .position-relative.d-inline-block {
        width: 160px !important;
        height: 160px !important;
        margin-bottom: 1rem !important;
    }

    .service-card .position-relative.d-inline-block div[style*="width:45px"] {
        width: 32px !important;
        height: 32px !important;
        bottom: 2px !important;
        left: 2px !important;
    }

    .service-card .position-relative.d-inline-block div[style*="width:45px"] i {
        font-size: 0.8rem !important;
    }

    .service-title {
        font-size: 1rem !important;
        margin-bottom: 0.5rem !important;
        line-height: 1.2;
    }

    .service-desc {
        font-size: 0.8rem !important;
        margin-bottom: 1rem !important;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .service-link {
        font-size: 0.85rem !important;
    }
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px -5px rgba(42, 186, 233, 0.15);
}

.service-icon {
    width: 56px;
    height: 56px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.service-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
}

.service-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.service-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: 0.3s;
}

.service-link i {
    font-size: 0.85rem;
    transition: 0.3s;
}

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

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

/* Utilities */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    justify-content: center;
}

.btn-primary-custom {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 10px rgba(42, 186, 233, 0.3);
}

.btn-primary-custom:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    color: #fff;
}

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

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

.btn-outline-primary {
    border: 2px solid var(--primary) !important;
    color: var(--primary) !important;
    background: transparent !important;
}

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

.btn-secondary-custom {
    background: var(--secondary);
    color: #fff;
}

.btn-secondary-custom:hover {
    background: var(--secondary-hover);
    color: #fff;
}

.d-flex {
    display: flex !important;
}

.align-items-center {
    align-items: center !important;
}

.justify-content-center {
    justify-content: center !important;
}

.justify-content-between {
    justify-content: space-between !important;
}

.text-center {
    text-align: center !important;
}

.text-start {
    text-align: left !important;
}

.rounded-4 {
    border-radius: 20px !important;
}

.rounded-pill {
    border-radius: 50px !important;
}

.shadow-sm {
    box-shadow: var(--shadow-sm) !important;
}

.shadow-lg {
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1) !important;
}

.img-fluid {
    width: 100%;
    height: auto;
}

.object-fit-cover {
    object-fit: cover !important;
}

.position-relative {
    position: relative !important;
}

.position-absolute {
    position: absolute !important;
}

.bottom-0 {
    bottom: 0 !important;
}

.start-0 {
    left: 0 !important;
}

.bg-white {
    background: #fff !important;
}

.bg-light {
    background: var(--light) !important;
}

.bg-primary-light {
    background: var(--primary-light) !important;
}

.bg-primary {
    background: var(--primary) !important;
}

.bg-danger {
    background: #ff4757 !important;
    color: #fff !important;
}

.text-primary {
    color: var(--primary) !important;
}

.text-secondary {
    color: var(--secondary) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

.text-white {
    color: #fff !important;
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.7) !important;
}

.badge {
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 18px;
    display: inline-block;
}


.border {
    border: 1px solid var(--border-color) !important;
}

.border-primary {
    border-color: #ededed !important;
}

.overflow-hidden {
    overflow: hidden !important;
}

.w-100 {
    width: 100% !important;
}

.text-decoration-none {
    text-decoration: none !important;
}

/* Components */
.breadcrumb {
    display: flex;
    gap: 8px;
    list-style: none;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    align-items: center;
}

.breadcrumb-item+.breadcrumb-item::before {
    content: "/";
    color: var(--text-muted);
}

.form-control,
.form-select {
    width: 100%;
    padding: 14px 20px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background-color: var(--light);
    font-family: inherit;
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
}

.ratio {
    position: relative;
    width: 100%;
}

.ratio-1x1::before {
    content: "";
    display: block;
    padding-top: 100%;
}

.ratio>* {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Footer */
.main-footer {
    background: var(--footer-bg);
    color: #fff;
    padding-top: 4rem;
    font-size: 0.95rem;
}

.footer-heading {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    transition: 0.3s;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-contact p {
    color: #fff;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.footer-contact i {
    width: 24px;
    text-align: center;
    color: #fff;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 1.5rem;
}

.footer-social a {
    color: #fff;
    font-size: 1.2rem;
    transition: 0.3s;
}

.footer-social a:hover {
    color: var(--primary);
}

.footer-bottom {
    background: var(--footer-bottom-bg);
    padding: 1.5rem 0;
    margin-top: 3rem;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.85rem;
    color: #fff;
}

.footer-bottom a {
    color: #fff;
    font-size: 0.85rem;
    text-decoration: none;
    transition: 0.3s;
}

.footer-bottom a:hover {
    color: var(--primary);
}

.footer-bottom .dropdown-menu {
    background-color: #fff;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.footer-bottom .dropdown-item {
    color: var(--dark) !important;
    font-size: 0.85rem;
}

.footer-bottom .dropdown-item:hover {
    background-color: var(--primary-light);
    color: var(--primary) !important;
}

.footer-dropdown-btn:hover,
.footer-dropdown-btn:focus,
.footer-dropdown-btn.show {
    background-color: #fff !important;
    color: var(--primary) !important;
    border-color: #fff !important;
}

.footer-bottom .legal-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.footer-bottom .payment-icons {
    display: flex;
    gap: 15px;
    align-items: center;
    font-size: 1.5rem;
}

@media (max-width: 992px) {
    .main-footer {
        padding-top: 3rem;
    }

    .footer-bottom .container {
        flex-direction: column;
        text-align: center;
        justify-content: center;
    }

    .footer-bottom .legal-links {
        justify-content: center;
        flex-wrap: wrap;
    }
}

.btn-outline-secondary {
    border: 2px solid var(--border-color);
    color: var(--text-main);
    background: transparent;
}

.btn-outline-secondary:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.border-bottom {
    border-bottom: 1px solid var(--border-color) !important;
}

.h-100 {
    height: 100% !important;
}

.card {
    border: none;
}

.card-body {
    padding: 1.5rem;
    flex: 1 1 auto;
}

/* Sticky Contact Bar */
.sticky-contact-bar {
    position: fixed;
    bottom: -100px;
    left: 0;
    width: 100%;
    height: 80px;
    background: #1e699c;
    /* Target site green tone */
    z-index: 1040;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
    transition: bottom 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    visibility: hidden;
}

.sticky-contact-bar.active {
    bottom: 0;
    visibility: visible;
}

.close-sticky-bar {
    position: absolute;
    top: -20px;
    right: 30px;
    width: 40px;
    height: 40px;
    background: #1e699c;
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    z-index: 1041;
    transition: 0.3s;
}

.close-sticky-bar:hover {
    background: #dc3545;
    transform: scale(1.1);
}

.sticky-contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: 0.3s;
    min-width: max-content;
    height: 100%;
    padding: 0 15px;
}

.sticky-contact-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.sticky-icon {
    width: 36px;
    height: 36px;
    background: #fff;
    color: #0a6d8d;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-bottom: 4px;
    transition: 0.3s;
}

.sticky-contact-item span {
    font-size: 0.75rem;
    font-weight: 600;
}

.sticky-contact-item:hover .sticky-icon {
    transform: scale(1.1);
}

/* Swiper overrides */
.swiper-pagination-bullet-active {
    background-color: var(--primary) !important;
}

.custom-scrollbar::-webkit-scrollbar {
    height: 4px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

/* Scroll hint for the sticky contact bar (mobile) — fade + chevron showing more items to the right */
.sticky-contact-bar .scroll-hint {
    display: none;
}

@media (max-width: 767.98px) {
    /* Pack items to the left so the next one peeks out from behind the fade */
    .sticky-contact-bar .custom-scrollbar {
        justify-content: flex-start !important;
        padding-right: 44px !important;
    }

    .sticky-contact-bar .scroll-hint {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        position: absolute;
        top: 0;
        right: 0;
        height: 100%;
        width: 64px;
        padding-right: 6px;
        background: linear-gradient(to right, rgba(30, 105, 156, 0) 0%, #1e699c 60%);
        color: #fff;
        font-size: 1.1rem;
        pointer-events: none;
        z-index: 2;
        transition: opacity 0.25s ease;
    }

    .sticky-contact-bar .scroll-hint i {
        animation: stickyHintNudge 1.4s ease-in-out infinite;
    }
}

@keyframes stickyHintNudge {
    0%, 100% { transform: translateX(0); opacity: 0.7; }
    50% { transform: translateX(4px); opacity: 1; }
}

/* Floating Contact Button */
.floating-contact-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: auto;
    height: 56px;
    padding: 0 20px;
    gap: 9px;
    border-radius: 999px;
    background-color: #2abae9;
    border-color: #5bb3cf;
    color: white;
    font-size: 1.25rem;
    border: none;
    box-shadow: 0 4px 15px rgba(32, 201, 151, 0.4);
    cursor: pointer;
    z-index: 1030;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse-green 2s infinite;
}

.floating-contact-label {
    font-size: 0.95rem;
    font-weight: 700;
    white-space: nowrap;
}

/* Floating button on mobile: square tile (icon over label), matches bottom-nav height */
@media (max-width: 991px) {
    .floating-contact-btn {
        flex-direction: column;
        width: 80px;
        height: 80px;
        padding: 8px 6px;
        gap: 5px;
        font-size: 1.4rem;
        bottom: 20px;
        right: 14px;
        border-radius: 18px;
        background: linear-gradient(135deg, #2abae9 0%, #1b97c9 100%);
        box-shadow: 0 12px 30px rgba(42, 186, 233, 0.5);
    }
    .floating-contact-label {
        font-size: 0.7rem;
        font-weight: 800;
        line-height: 1.1;
        white-space: normal;
        text-align: center;
        max-width: 100%;
    }
}

.floating-contact-btn.hide {
    transform: scale(0);
    opacity: 0;
    pointer-events: none;
}

.floating-contact-btn:hover {
    background: #1b87a8;
    transform: translateY(-5px) scale(1.05);
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(61, 176, 243, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(32, 201, 151, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(32, 201, 151, 0);
    }
}

.swiper {
    margin-left: auto;
    margin-right: auto;
    position: relative;
    overflow: hidden;
    list-style: none;
    padding: 0 0 50px 0 !important;
    z-index: 1;
    display: block;
}

/* Promotional Price Badge */
.badge-promo-price {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    background: linear-gradient(135deg, #fff5f5 0%, #fff0f0 100%);
    color: #e63946;
    border: 1px solid rgba(230, 57, 70, 0.15);
    border-radius: 50px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(230, 57, 70, 0.08);
    white-space: nowrap;
    animation: badge-float 2s ease-in-out infinite alternate;
}

@keyframes badge-float {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-2px);
    }
}

.price-row:hover .badge-promo-price {
    background: linear-gradient(135deg, #e63946 0%, #d62828 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.2);
}

.sticky-top {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 10 !important;
}

/* Custom SVG Icons Support */
.custom-svg-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    line-height: 1;
}

.custom-svg-icon svg {
    width: 80% !important;
    height: 80% !important;
    max-width: 80%;
    max-height: 80%;
    fill: currentColor;
    display: block;
}


.custom-svg-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.fs-2 {
    font-size: 1rem !important;
}

/* Global Mobile Optimization */
@media (max-width: 768px) {
    h1 {
        font-size: 1.15rem !important;
    }

    h2 {
        font-size: 1rem !important;
    }

    .lead {
        font-size: 0.9rem !important;
        line-height: 1.4 !important;
    }

    .container {
        padding-left: 1.15rem !important;
        padding-right: 1.15rem !important;
    }

    /* Scrollable Breadcrumbs */
    .breadcrumb {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 5px;
        scrollbar-width: none;
        /* Firefox */
    }

    .breadcrumb::-webkit-scrollbar {
        display: none;
        /* Chrome/Safari */
    }

    .breadcrumb-item {
        display: inline-block !important;
        float: none !important;
    }

    /* Compact Tables/Price Lists */
    .table-responsive {
        border: 0;
        padding: 0 !important;
    }

    .table th,
    .table td {
        padding: 0.5rem 0.3rem !important;
        font-size: 0.75rem !important;
    }

    .table th[style*="width: 150px;"],
    .table td.text-end {
        width: auto !important;
        min-width: 0 !important;
        white-space: nowrap;
    }

    .table td:last-child {
        width: auto !important;
        padding-right: 0.5rem !important;
    }

    .price-name {
        font-size: 0.8rem !important;
        line-height: 1.2 !important;
        max-width: 160px;
    }

    .fs-5.fw-bold.text-primary {
        font-size: 0.95rem !important;
    }

    .price-section h3 {
        font-size: 1.25rem !important;
        margin-bottom: 1rem !important;
    }

    .price-section {
        margin-bottom: 2rem !important;
    }

    /* Compacting sections */
    section:not(.no-padding-mobile),
    .py-5:not(.no-padding-mobile),
    .py-4:not(.no-padding-mobile) {
        padding-top: 1.25rem !important;
        /* padding-bottom: 3.25rem !important; */
    }

    .breadcrumb {
        margin-bottom: 0.25rem !important;
    }

    .hero-img-container {
        padding: 1rem !important;
    }

    .hero-img-container img {
        max-height: 220px !important;
        object-fit: contain;
    }
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    position: fixed;
    bottom: -100px;
    left: 12px;
    width: 300px;
    max-width: calc(100% - 2rem);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-around;
    padding: 10px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 999;
    transition: bottom 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-bottom-nav.active {
    bottom: 20px;
}

/* On narrow phones 300px spreads the buttons too far apart — tighten it */
@media (max-width: 430px) {
    .mobile-bottom-nav {
        width: 250px;
    }
}

/* Lift Binotel getCall (bingc) widget above the mobile bottom nav so they don't overlap */
@media (max-width: 991px) {
    #bingc-phone-button,
    .bingc-phone-button,
    #bingc-active,
    #bingc-passive,
    #bn_widget,
    [id*="getcall"],
    [class*="getcall"],
    [id*="binotel"],
    [class*="binotel"] {
        bottom: 110px !important;
    }
}

.mobile-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #475569;
    font-size: 0.7rem;
    font-weight: 700;
    gap: 6px;
    flex: 1;
}

/* Colourful soft-3D icon tiles */
.mobile-nav-ico {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.15rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18), inset 0 1px 1px rgba(255, 255, 255, 0.45);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}

/* Glossy highlight for the slightly 3D feel */
.mobile-nav-ico::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.mobile-nav-ico i {
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.18));
}

.ico-directions {
    background: linear-gradient(145deg, #0169ff 0%, #52c9f0 100%);
}

.ico-doctors {
    background: linear-gradient(145deg, #2abae9 0%, #3c8299 100%);
}

.ico-prices {
    background: linear-gradient(145deg, #cd6f74 0%, #ff2a34 100%);
}

.mobile-nav-btn:active .mobile-nav-ico,
.mobile-nav-btn:hover .mobile-nav-ico {
    transform: translateY(-3px) scale(1.06);
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.22), inset 0 1px 1px rgba(255, 255, 255, 0.45);
}

.mobile-nav-btn:hover {
    color: var(--primary);
}

.doctor-photo-circle {
    width: 380px;
    max-width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    border: 4px solid #fff;
    object-fit: cover;
    border-radius: 50% !important;
}

/* 3D direction icon as a small rounded-square badge in the photo's bottom-left corner */
.dir-3d-badge {
    border-radius: 16px;
    border: 2px solid #fff;
    overflow: hidden;
    padding: 0;
    background: #fff;
}
.dir-3d-badge img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 14px;
}
/* Large badge (home page cards) — bottom-left of the photo circle */
.dir-3d-badge-lg {
    width: 96px;
    height: 96px;
    border-radius: 22px;
    bottom: 6px;
    left: 6px;
}
.dir-3d-badge-lg img {
    border-radius: 20px;
}

/* Small badge (directions index cards) — bottom-left of the photo circle */
.dir-3d-badge-sm {
    width: 102px;
    height: 102px;
    border-radius: 18px;
    bottom: 0;
    left: 2.2rem;
}
.dir-3d-badge-sm img {
    border-radius: 16px;
}

/* Mobile: smaller badges, raised into the photo circle's lower-left so they
   don't overlap the title text below. */
@media (max-width: 767.98px) {
    .dir-3d-badge-lg {
        width: 62px;
        height: 62px;
        border-radius: 16px;
        bottom: 18px;
        left: 6px;
    }
    .dir-3d-badge-lg img {
        border-radius: 14px;
    }
    .dir-3d-badge-sm {
        width: 65px;
        height: 65px;
        border-radius: 16px;
        bottom: 0px;
        left: 6px;
    }
    .dir-3d-badge-sm img {
        border-radius: 14px;
    }
}

/* Small inline 3D icon inside the hero tag badge */
.dir-3d-inline {
    width: 34px;
    height: 34px;
    object-fit: cover;
    border-radius: 9px;
    vertical-align: middle;
    display: inline-block;
}

@media (max-width: 991px) {
    .doctor-photo-circle {
        width: 310px;
        height: auto;
    }
}

@media (max-width: 768px) {
    .doctor-photo-circle {
        width: 225px;
        height: auto;
        border-width: 3px;
    }

    .doctor-preview-card-wrapper {
        padding: 0.75rem 0.5rem !important;
    }

    .doctor-preview-card .mb-3.position-relative {
        margin-bottom: 0.75rem !important;
    }

    .doctor-preview-card h5 {
        font-size: 0.9rem !important;
        margin-bottom: 0.35rem !important;
    }

    .doctor-preview-card .doc-spec {
        font-size: 0.75rem !important;
        margin-bottom: 0.25rem !important;
    }

    .doctor-preview-card .doc-cat {
        font-size: 0.7rem !important;
        margin-bottom: 0.4rem !important;
    }

    .doctors-hero {
        padding-top: 1.25rem !important;
        padding-bottom: 1.25rem !important;
        margin-bottom: 0.75rem !important;
    }

    .section-padding.pt-0 .container > .bg-white.rounded-4.shadow-sm {
        padding: 1.3rem 0.75rem 1.25rem !important;
    }

    /* Форма поиска врачей — компактнее */
    .doctors-filter-box {
        padding: 0.75rem 0.75rem 0.9rem !important;
        margin-bottom: 0.75rem !important;
        border-radius: 16px !important;
    }

    .doctors-filter-box .form-control,
    .doctors-filter-box .form-select {
        padding: 0.4rem 0.6rem !important;
        font-size: 0.8rem !important;
    }

    .doctors-filter-box .btn.btn-primary-custom {
        padding: 0.45rem 0.3rem !important;
        font-size: 0.8rem !important;
    }

    /* По одному врачу в ряд на мобиле */
    .section-padding.pt-0 .row.gx-2.gy-4.text-center.justify-content-center > .col-6.col-md-4.col-lg-4 {
        width: 100% !important;
    }

    .small-mobile-text {
        font-size: 0.85rem !important;
        line-height: 1.4 !important;
    }

    .doctors-filter-box {
        padding: 1rem !important;
        margin-bottom: 1.5rem !important;
    }

    .doc-name {
        font-size: 0.95rem !important;
        margin-bottom: 4px !important;
    }

    .doc-spec {
        font-size: 0.75rem !important;
        line-height: 1.2 !important;
        margin-bottom: 6px !important;
        height: 2.4em;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .doc-cat {
        font-size: 0.7rem !important;
    }

    .btn-doc-book {
        font-size: 0.75rem !important;
        padding: 0.4rem 0.5rem !important;
    }

    .doctor-preview-card-wrapper {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
        border: 1px solid #f1f5f9 !important;
    }

    .directions-hero {
        padding-top: 1.1rem !important;
        padding-bottom: 1.1rem !important;
        margin-bottom: 0.6rem !important;
    }

    .smart-search-pill {
        padding: 2px 6px !important;
        border-radius: 999px !important;
    }

    .smart-search-pill .input-group-text {
        padding: 0.25rem 0.4rem !important;
        font-size: 0.8rem !important;
    }

    .smart-search-pill .form-control {
        padding-top: 0.3rem !important;
        padding-bottom: 0.3rem !important;
        font-size: 0.8rem !important;
    }

    .section-padding.pt-0 .services-tab-group {
        margin-bottom: 0.5rem !important;
    }

    .section-padding.pt-0 .row.g-4 {
        row-gap: 1rem !important;
    }

    .direction-card-item .custom-card {
        padding: 0.85rem 0.75rem !important;
    }

    .direction-card-item .dir-name {
        font-size: 0.9rem !important;
        margin-bottom: 0.35rem !important;
    }

    .direction-card-item .btn.btn-outline-primary {
        font-size: 0.78rem !important;
        padding-top: 0.4rem !important;
        padding-bottom: 0.4rem !important;
    }

    .direction-card-item .doctor-photo-circle {
        width: 170px !important;
    }

    .text-sm {
        font-size: 0.85rem !important;
    }

    .small-label {
        font-size: 0.75rem !important;
        margin-bottom: 2px !important;
        display: block;
    }

    .compact-form [class*="col-"] {
        padding: 0 4px !important;
    }

    .btn-sm-mobile {
        font-size: 0.75rem !important;
        padding: 0.4rem 0.5rem !important;
    }

    .dir-icon-badge {
        width: 30px !important;
        height: 30px !important;
        bottom: 0px !important;
        left: 1rem !important;
    }

    .dir-icon-badge i {
        font-size: 0.7rem !important;
    }

    .direction-card-item .custom-card {
        padding: 10px !important;
        border-radius: 20px !important;
    }

    .footer-info-title {
        font-size: 1.1rem !important;
    }

    @media (max-width: 576px) {
        .footer-info-title {
            font-size: 0.95rem !important;
        }
    }

    .price-hero {
        padding-top: 1rem !important;
        padding-bottom: 0.85rem !important;
        margin-bottom: 0 !important;
    }

    /* Remove the empty gap between the price hero and the search/filter card */
    .price-hero + .section-padding {
        padding-top: 0 !important;
    }

    .price-hero + .section-padding .bg-white.p-4 {
        margin-top: 0.5rem !important;
    }

    .scrollable-filters-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; 
        /* Firefox */
        -ms-overflow-style: none;
        /* IE and Edge */
        margin: 0 -15px;
        padding: 0 15px;
    }

    .scrollable-filters-container::-webkit-scrollbar {
        display: none;
        /* Chrome, Safari and Opera */
    }

    .price-filter-btn {
        white-space: nowrap;
        flex-shrink: 0;
    }

    #priceCategories {
        justify-content: flex-start;
    }

    @media (max-width: 768px) {
        .scrollable-filters-container #priceCategories {
            flex-wrap: nowrap !important;
            overflow: auto;
        }
    }

    @media (max-width: 768px) {

        /* Remove double borders/frames in Price */
        .price-section .table-responsive {
            border: none !important;
            padding: 0 !important;
            box-shadow: none !important;
        }

        .price-section {
            margin-bottom: 2rem !important;
            margin-top: 2.25rem;   /* more breathing room above each section title */
        }

        .price-section h3 {
            margin-bottom: 1rem !important;
            padding-left: 0.85rem;   /* keep the title off the screen edge */
        }

        /* Align first column of the table with the indented title */
        .price-section .table th:first-child,
        .price-section .table td:first-child {
            padding-left: 0.85rem !important;
        }

        /* Make price filter buttons even smaller */
        .price-filter-btn {
            font-size: 0.75rem !important;
            padding: 0.3rem 0.8rem !important;
        }

        .price-hero h1 {
            font-size: 1.8rem !important;
        }
    }

    @media (max-width: 768px) {

        /* Expand frame to edges */
        section.px-2 {
            padding-left: 5px !important;
            padding-right: 5px !important;
        }

        /* Reduce filter box padding */
        .price-hero+.section-padding .bg-white.p-4 {
            padding: 10px !important;
            border-radius: 12px !important;
        }

        /* Maximize table width, drop the side frame on mobile */
        .price-section .table-responsive {
            padding: 0 !important;
            border: none !important;
            box-shadow: none !important;
            border-radius: 0 !important;
        }

        .price-section .table th,
        .price-section .table td {
            padding-left: 4px !important;
            padding-right: 4px !important;
            font-size: 0.85rem !important;
        }

        .price-name {
            font-size: 0.85rem !important;
            line-height: 1.3 !important;
        }

        .price-section .fs-5 {
            font-size: 0.95rem !important;
        }

        .price-section h3 {
            font-size: 1.2rem !important;
            margin-bottom: .5rem !important;
        }
    }

    .about-hero {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
        margin-bottom: 1rem !important;
    }
}

.doctor-spec-pills {
    align-items: center;
    /* Center the pills; "safe" falls back to left-align when they overflow
       so none get clipped/unreachable in the horizontal scroll. */
    justify-content: safe center;
}

.doctor-spec-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #0f172a;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    transition: all 0.2s ease;
}

.doctor-spec-pill:hover {
    background: #e0f2fe;
    border-color: #bae6fd;
    color: #0f172a;
}

.doctor-spec-pill.active {
    background: #2abae9; /* брендовый голубой */
    border-color: #2abae9;
    color: #fff;
    box-shadow: 0 4px 12px rgba(42, 186, 233, 0.25);
}

@media (min-width: 992px) {
    .doctor-spec-pills {
        align-items: center;
        flex-wrap: wrap !important;
    }
}


/* Promotions Redesign */
.promo-section-title {
    color: #0f172a;
    font-size: 1.75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
}

.promo-section-title i {
    color: #38bdf8;
    font-size: 1.5rem;
}

.promo-grid-card {
    background: #fff;
    border: none;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
    height: 100%;
}

.promo-grid-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.promo-img-box {
    width: 100%;
    max-width: 180px;
    aspect-ratio: 1/1;
    border-radius: 24px;
    background: #f8fafc;
    overflow: hidden;
    margin: 0 auto;
}

.promo-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.promo-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.tag-popular {
    background: #e0f2fe;
    color: #0ea5e9;
}

.tag-new {
    background: #dcfce7;
    color: #22c55e;
}

.promo-content h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 12px;
    line-height: 1.2;
}

.promo-desc {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 24px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.promo-price-old {
    color: #94a3b8;
    text-decoration: line-through;
    font-size: 0.85rem;
    margin-bottom: 2px;
}

.promo-price-new {
    color: #0ea5e9;
    font-size: 1.45rem;
    font-weight: 800;
}

.btn-promo-buy {
    background: #38bdf8;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
}

.btn-promo-buy:hover {
    background: #0ea5e9;
    color: #fff;
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.4);
}

@media (max-width: 991px) {
    .promo-grid-card .row {
        flex-direction: column;
    }

    .promo-img-box {
        aspect-ratio: 16/9;
        margin-bottom: 0;
        border-radius: 24px 24px 0 0;
        max-width: 100%;
    }

    .promo-content {
        padding: 1.5rem !important;
    }
}