/* ============================================================
   Farabi Clinic â€” Modern UI Layer
   ============================================================ */

:root {
    --farabi-primary: var(--theam-color, #f8931a);
    --farabi-primary-dark: color-mix(in srgb, var(--farabi-primary) 82%, #000);
    --farabi-accent: var(--theam-second-color, #ffffff);
    --farabi-accent-hover: color-mix(in srgb, var(--farabi-accent) 88%, #000);
    --farabi-surface: #ffffff;
    --farabi-bg: #f4f7f9;
    --farabi-text: #1a2b3c;
    --farabi-text-muted: #5c6b7a;
    --farabi-border: #e2e8f0;
    --farabi-shadow-sm: 0 1px 3px color-mix(in srgb, var(--farabi-primary) 8%, transparent);
    --farabi-shadow-md: 0 4px 20px color-mix(in srgb, var(--farabi-primary) 12%, transparent);
    --farabi-shadow-lg: 0 12px 40px color-mix(in srgb, var(--farabi-primary) 15%, transparent);
    --farabi-radius: 14px;
    --farabi-radius-lg: 20px;
    --farabi-header-h: 72px;
    --farabi-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --site-container-max: 1320px;
}

/* ---- Base ---- */
html {
    scroll-behavior: smooth;
}

body {
    background: var(--farabi-bg);
    color: var(--farabi-text);
    font-size: 15px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* ---- Header ---- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1050;
    width: 100%;
    padding: 12px 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--farabi-border);
    box-shadow: var(--farabi-shadow-sm);
    float: none !important;
}

.site-header > .container {
    max-width: var(--site-container-max);
}

.site-header .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    min-height: var(--farabi-header-h);
    padding: 8px 20px;
    background: linear-gradient(135deg, var(--farabi-primary) 0%, var(--farabi-primary-dark) 100%);
    border-radius: var(--farabi-radius-lg);
    box-shadow: var(--farabi-shadow-md);
    float: none;
}

.site-header .logo {
    float: none;
    flex-shrink: 0;
    width: auto;
    height: auto;
}

.site-header .logo img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

/* ---- Desktop Navigation ---- */
.site-header .menu {
    float: none;
    flex: 1;
    display: flex;
    justify-content: center;
    margin-top: 0;
    width: auto;
    position: relative;
}

.site-header .menu > ul {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.site-header .menu > ul > li {
    float: none;
}

.site-header .menu > ul > li a {
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.92);
    transition: background var(--farabi-transition), color var(--farabi-transition);
}

.site-header .menu > ul > li:hover > a,
.site-header .menu > ul > li > a:focus {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.site-header .menu > ul > li > ul {
    border-radius: var(--farabi-radius);
    box-shadow: var(--farabi-shadow-lg);
    border: 1px solid var(--farabi-border);
    padding: 16px;
    background: var(--farabi-surface);
    margin-top: 8px;
}

.site-header .menu > ul > li > ul > li a {
    color: var(--farabi-text);
    border-bottom-color: var(--farabi-border);
    border-radius: 8px;
    padding: 8px 12px;
    transition: background var(--farabi-transition), color var(--farabi-transition);
}

.site-header .menu > ul > li > ul > li a:hover {
    background: color-mix(in srgb, var(--farabi-primary) 8%, transparent);
    color: var(--farabi-primary);
}

/* ---- Header Actions (Login / User) ---- */
.site-header .header-actions {
    float: none;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-header .menuuser a.login {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--farabi-accent);
    color: #fff;
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    float: none;
    transition: background var(--farabi-transition), transform var(--farabi-transition), box-shadow var(--farabi-transition);
    box-shadow: 0 2px 8px rgba(248, 147, 26, 0.35);
    white-space: nowrap;
}

.site-header .menuuser a.login:hover {
    background: var(--farabi-accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(248, 147, 26, 0.4);
    color: #fff;
}

.site-header .menuuser a.login i {
    font-size: 20px;
}

.site-header .menuuser .dropdown-toggle {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    padding: 8px 14px;
    color: #fff;
    font-size: 13px;
}

.site-header .menuuser .header-user-menu {
    min-width: 220px;
    max-height: min(78vh, 520px);
    overflow-y: auto;
    padding: 0.25rem 0;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
}

.site-header .menuuser .header-user-menu__profile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 0.55rem 1rem 0.5rem;
    margin: 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    line-height: 1.3;
    white-space: normal;
}

.site-header .menuuser .header-user-menu__name {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
}

.site-header .menuuser .header-user-menu__role {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--farabi-primary, #f8931a);
    background: color-mix(in srgb, var(--farabi-primary) 8%, transparent);
    padding: 1px 7px;
    border-radius: 999px;
    letter-spacing: 0;
    text-transform: none;
}

.site-header .menuuser .header-user-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.55rem 1rem;
    font-size: 0.875rem;
    line-height: 1.35;
    color: #475569;
    transition: background 0.15s ease, color 0.15s ease;
}

.site-header .menuuser .header-user-menu .dropdown-item i.bx {
    font-size: 1.15rem;
    width: 1.25rem;
    text-align: center;
    color: #94a3b8;
    flex-shrink: 0;
}

.site-header .menuuser .header-user-menu .dropdown-item:hover,
.site-header .menuuser .header-user-menu .dropdown-item:focus {
    background: color-mix(in srgb, var(--farabi-primary) 8%, transparent);
    color: var(--farabi-primary, #f8931a);
}

.site-header .menuuser .header-user-menu .dropdown-item:hover i.bx,
.site-header .menuuser .header-user-menu .dropdown-item:focus i.bx {
    color: var(--farabi-primary, #f8931a);
}

.site-header .menuuser .header-user-menu .dropdown-item.text-danger:hover,
.site-header .menuuser .header-user-menu .dropdown-item.text-danger:focus {
    background: rgba(220, 38, 38, 0.08);
    color: #dc2626;
}

.site-header .menuuser .header-user-menu .dropdown-divider {
    margin: 0.25rem 0;
    opacity: 0.12;
}

.site-header .notifications i {
    color: #fff;
    font-size: 22px;
}

/* ---- Mobile Menu Toggle ---- */
.menu-mobile {
    display: none;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.15);
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: background var(--farabi-transition);
}

.menu-mobile:hover {
    background: rgba(255, 255, 255, 0.25);
}

.menu-mobile::after {
    display: none !important;
}

.menu-mobile .hamburger,
.menu-mobile .hamburger::before,
.menu-mobile .hamburger::after {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: transform var(--farabi-transition), opacity var(--farabi-transition);
}

.menu-mobile .hamburger {
    top: 50%;
    margin-top: -1px;
}

.menu-mobile .hamburger::before,
.menu-mobile .hamburger::after {
    content: '';
    left: 0;
    transform: none;
}

.menu-mobile .hamburger::before { top: -7px; }
.menu-mobile .hamburger::after { top: 7px; }

.menu-mobile.is-active .hamburger { background: transparent; }
.menu-mobile.is-active .hamburger::before { top: 0; transform: rotate(45deg); }
.menu-mobile.is-active .hamburger::after { top: 0; transform: rotate(-45deg); }

/* ---- Mobile Menu Backdrop ---- */
.mobile-menu-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 20, 30, 0.5);
    z-index: 1040;
    opacity: 0;
    transition: opacity var(--farabi-transition);
}

.mobile-menu-backdrop.is-visible {
    display: block;
    opacity: 1;
}

body.menu-open {
    overflow: hidden;
}

/* ---- Hero Section ---- */
.search-slideer {
    background: linear-gradient(180deg, #fff 0%, var(--farabi-bg) 100%);
    padding: 48px 0 40px;
    z-index: 1;
}

.search-slideer .search-box {
    padding: 0 24px;
}

.search-slideer .search-box::before,
.search-slideer .search-box::after {
    opacity: 0.35;
}

.search-slideer .search-text h1 {
    font-size: clamp(1.4rem, 4vw, 2rem);
    font-weight: 700;
    color: var(--farabi-primary-dark);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.search-slideer .search-text p {
    font-size: 15px;
    color: var(--farabi-text-muted);
    max-width: 640px;
    margin: 0 auto 24px;
    line-height: 1.8;
}

.hero-badge {
    display: inline-block;
    background: color-mix(in srgb, var(--farabi-primary) 10%, transparent);
    color: var(--farabi-primary);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 16px;
    letter-spacing: 0.02em;
}

/* ---- Cards & Content ---- */
main {
    padding: 24px 0 48px;
    float: none !important;
    width: 100% !important;
}

.card {
    border: 1px solid var(--farabi-border);
    border-radius: var(--farabi-radius);
    box-shadow: var(--farabi-shadow-sm);
    overflow: hidden;
    transition: box-shadow var(--farabi-transition);
}

.card:hover {
    box-shadow: var(--farabi-shadow-md);
}

.card-header.bg-site {
    background: linear-gradient(135deg, var(--farabi-primary) 0%, var(--farabi-primary-dark) 100%) !important;
    border: none;
    padding: 16px 20px;
}

.card-header.bg-site .card-title {
    font-weight: 600;
    font-size: 1.05rem;
}

.btn-primary {
    background: var(--farabi-primary) !important;
    border-color: var(--farabi-primary) !important;
    border-radius: 10px;
    font-weight: 600;
    padding: 10px 20px;
    transition: background var(--farabi-transition), transform var(--farabi-transition), box-shadow var(--farabi-transition);
}

.btn-primary:hover {
    background: var(--farabi-primary-dark) !important;
    border-color: var(--farabi-primary-dark) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--farabi-primary) 30%, transparent);
}

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

.form-control,
.form-select {
    border-radius: 10px;
    border-color: var(--farabi-border);
    padding: 10px 14px;
    transition: border-color var(--farabi-transition), box-shadow var(--farabi-transition);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--farabi-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--farabi-primary) 15%, transparent);
}

.alert {
    border-radius: var(--farabi-radius);
    border: none;
}

.alert-info {
    background: color-mix(in srgb, var(--farabi-primary) 8%, transparent);
    color: var(--farabi-primary-dark);
}

/* ---- Doctor & Insurance Cards ---- */
.doctor-card,
.insurance-item,
.insurance-card {
    border-radius: var(--farabi-radius) !important;
    border-color: var(--farabi-border) !important;
    transition: transform var(--farabi-transition), box-shadow var(--farabi-transition), border-color var(--farabi-transition) !important;
}

.doctor-card:hover,
.insurance-item:hover,
.insurance-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: var(--farabi-shadow-md) !important;
    border-color: var(--farabi-primary) !important;
}

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

/* ---- Footer (Farabi theme) ---- */
footer {
    width: 100%;
    float: none;
    clear: both;
    position: relative;
    margin-top: 60px;
    background: #fffbef;
    z-index: 2;
    padding-top: 20px;
    color: #5b5555;
    overflow: visible;
}

footer .foot_box {
    float: right;
    width: 15%;
    background-position: center;
    background-repeat: no-repeat;
    height: auto;
}

footer .foot_box .footer-logo {
    margin-bottom: 30px;
    width: 100%;
    float: right;
}

footer .foot_box .footer-logo img {
    width: 100%;
    height: auto;
    max-width: 100%;
}

footer .foot_box .footer-warp {
    background-color: transparent;
    background-image: linear-gradient(180deg, #ffe1a0 0%, #fffbef 100%);
    width: 100%;
    float: right;
    text-align: center;
    font-size: 13px;
    padding: 20px;
    border-radius: 20px 20px 0 0;
}

footer .foot_box .footer-warp-box {
    margin-bottom: 20px;
}

footer .foot_box .footer-warp .footer-warp-icon svg {
    width: 32px;
    height: 32px;
}

footer .foot_box .footer-warp .footer-warp-title {
    font-size: 12px;
    margin-bottom: 10px;
}

footer .foot_box .footer-warp .footer-warp-subtitle {
    font-size: 9px;
    margin: 0;
}

footer .footer {
    width: 100%;
    height: auto;
    position: relative;
    float: right;
    display: flex;
    gap: 25px;
    flex-basis: auto;
    flex-grow: 1;
    flex-shrink: 1;
    align-self: auto;
}

footer .footer-suport {
    width: 20%;
    border-radius: 15px;
    position: relative;
    float: right;
    margin-top: 50px;
}

footer .footer-suport .footer-suport-box {
    background: #f8931a;
    float: right;
    width: 100%;
    min-height: 220px;
    height: calc(100% - 70px);
    border-radius: 20px;
    padding: 20px 15px;
    text-align: center;
    line-height: 3;
    position: relative;
    overflow: hidden;
}

footer .footer-suport .footer-suport-box:before {
    content: "";
    background-image: url(../images/footer-call.png);
    background-repeat: no-repeat;
    background-size: cover;
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.06;
    z-index: 0;
    top: 0;
    border-radius: 20px;
}

footer .footer-suport .footer-suport-box > * {
    position: relative;
    z-index: 1;
}

footer .footer-suport .footer-contact-top {
    position: absolute;
    top: -50px;
    background: #ffe0a0;
    width: 100%;
    padding: 20px;
    left: 0;
    text-align: center;
    z-index: 0;
    border-radius: 20px 20px 0 0;
}

footer .footer-suport .element-soial {
    width: 100%;
    float: right;
}

footer .footer-suport .footer-suport-text {
    color: #fff;
    font-size: 17px;
    text-align: center;
    font-weight: bold;
}

footer .footer-suport .footer-suport-tel {
    color: #fff;
    text-align: center;
    border-top: 2px solid #fff;
    border-bottom: 2px solid #fff;
    direction: ltr;
    font-size: 22px;
}

footer .footer-suport .footer-suport-icon img {
    max-width: 64px;
    height: auto;
    margin-top: 8px;
}

footer .footer-suport .element-soial ul {
    list-style: none;
    display: flex;
    padding: 0;
    margin: 0;
}

footer .footer-suport .element-soial ul li {
    width: 100%;
    text-align: center;
    padding: 10px;
}

footer .footer-suport .element-soial ul li a {
    font-size: 34px;
    color: #ef8f23;
    text-decoration: none;
}

footer .footer-suport .element-soial ul li span,
footer .footer-suport .element-soial .elementor-screen-only {
    display: none;
}

footer .footer-main {
    width: 65%;
    padding-top: 15px;
    float: right;
}

footer .footer-main .footer-about-text {
    font-size: 13px;
    line-height: 2;
    text-align: justify;
    padding-bottom: 40px;
    border-bottom: 1px solid #ccc;
}

footer .footer-main .footer-about-text strong {
    display: inline;
    margin-left: 4px;
}

footer .footer-main .footer-contact {
    font-size: 14px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 30px;
    padding-top: 30px;
    width: 100%;
    float: right;
}

footer .footer-main .footer-contact .footer-contact-icon {
    float: right;
    width: 10%;
}

footer .footer-main .footer-contact .footer-contact-address {
    float: right;
    width: 70%;
    font-size: 12px;
    line-height: 2;
}

.footer-contact-address-title {
    background: #ef8f23;
    color: #fff;
    padding: 5px 10px;
    border-radius: 10px;
    margin-bottom: 10px;
    float: right;
    font-size: 12px;
}

.footer-contact-address-box {
    width: 100%;
    float: right;
    padding-left: 20px;
}

footer .footer-main .footer-contact .footer-contact-email {
    float: right;
    width: 20%;
}

footer .footer-main .footer-contact .footer-contact-email .email,
footer .footer-main .footer-contact .footer-contact-email .email a {
    color: #5b5555;
    float: right;
    width: 100%;
    word-break: break-word;
}

footer .footer-main .footer-copyright {
    width: 100%;
    float: right;
    padding: 20px 0;
}

footer .footer-link-box {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 30px;
    width: 100%;
    float: right;
}

footer .footer-link-box .footer-link {
    width: 100%;
}

footer .footer-link-box .footer-link-title {
    margin-bottom: 15px;
    font-size: 15px;
    font-weight: 700;
}

footer .footer-link-box .footer-link ul {
    list-style: none;
    font-size: 13px;
    padding: 0;
    margin: 0;
}

footer .footer-link-box .footer-link ul li {
    margin-bottom: 15px;
}

footer .footer-link-box .footer-link ul li a {
    color: #4f4a4a;
    font-size: 11px;
    text-decoration: none;
}

footer .footer-link-box .footer-link ul li a:hover {
    color: #ef8f23;
}

footer .footer-link-box .footer-link ul li i {
    color: #ef8f23;
    margin-left: 4px;
    font-size: 12px;
}

footer .nemad {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    min-width: 110px;
}

footer .nemad .nemad-box img {
    max-width: 90px;
    height: auto;
}

.copyright {
    color: #f4821f;
    font-size: 12px;
    width: 100%;
    bottom: 0;
    overflow: hidden;
}

.copyright span {
    float: right;
    line-height: 2.3;
    color: #858585;
    margin-left: 16px;
}

.copyright a {
    color: #ec8d1d;
    text-decoration: none;
}

/* ---- Unified page width (header = content = footer) ---- */
.site-header > .container,
footer > .container,
.site-content > .container,
.panel-main > .container,
.footbaner .container,
.headerbaner .container,
.home-slider > .container {
    max-width: var(--site-container-max);
    margin-left: auto;
    margin-right: auto;
}

/* ---- Site Content (all pages) ---- */
.site-content {
    min-height: 40vh;
    padding-top: 1.25rem;
    float: none !important;
    width: 100% !important;
}

.site-content .card {
    border: 1px solid var(--farabi-border);
    border-radius: var(--farabi-radius);
    box-shadow: var(--farabi-shadow-sm);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.site-content .card-header.bg-primary,
.site-content .card-header.bg-site {
    background: linear-gradient(135deg, var(--farabi-primary) 0%, var(--farabi-primary-dark) 100%) !important;
    border: none;
    color: var(--text-second-color, #fff) !important;
}

.site-content .list-group-item {
    border-color: var(--farabi-border);
    padding: 14px 18px;
    transition: background var(--farabi-transition);
}

.site-content .list-group-item:hover {
    background: color-mix(in srgb, var(--farabi-primary) 5%, #fff);
}

.site-content .table {
    border-radius: var(--farabi-radius);
    overflow: hidden;
}

.site-content .table thead th {
    background: color-mix(in srgb, var(--farabi-primary) 8%, #fff);
    color: var(--farabi-text);
    font-weight: 600;
    border: none;
}

.site-content .single_page,
.site-content .thechers,
.site-content .content {
    background: var(--farabi-surface);
    border: 1px solid var(--farabi-border);
    border-radius: var(--farabi-radius);
    padding: 24px;
    box-shadow: var(--farabi-shadow-sm);
    float: none;
    width: 100%;
    margin: 24px auto;
}

.site-content .single_page .title h1,
.site-content .cat_title h1 {
    color: var(--farabi-primary-dark);
    border-color: var(--farabi-border);
}

.site-content .last_blog .last_blog_box {
    border-color: var(--farabi-border);
    border-radius: var(--farabi-radius);
    transition: transform var(--farabi-transition), box-shadow var(--farabi-transition);
}

.site-content .last_blog .last_blog_box:hover {
    transform: translateY(-4px);
    box-shadow: var(--farabi-shadow-md);
}

.site-content .offerbox ul li,
.site-content .search-slideer .search-list ul li {
    background: var(--farabi-surface);
    border: 1px solid var(--farabi-border);
    transition: all var(--farabi-transition);
}

.site-content .offerbox ul li:hover,
.site-content .search-slideer .search-list ul li:hover {
    background: var(--farabi-primary);
    border-color: var(--farabi-primary);
}

.site-content .btn-outline-primary {
    color: var(--farabi-primary);
    border-color: var(--farabi-primary);
    border-radius: 10px;
}

.site-content .btn-outline-primary:hover {
    background: var(--farabi-primary);
    border-color: var(--farabi-primary);
}

.site-content .badge.bg-primary {
    background: var(--farabi-primary) !important;
}

.site-content .pagination .page-link {
    border-radius: 8px;
    margin: 0 2px;
    color: var(--farabi-primary);
}

.site-content .pagination .page-item.active .page-link {
    background: var(--farabi-primary);
    border-color: var(--farabi-primary);
}

/* Legacy footer override */
footer {
    float: none !important;
}

/* Panel: ÙÙˆØªØ± ÛŒÚ©Ø³Ø§Ù† Ø¨Ø§ ØµÙØ­Ù‡ Ø§ØµÙ„ÛŒ */
body.panel-page .panel-main {
    float: none !important;
}

body.panel-page .panel-after-main {
    clear: both;
    height: 0;
}

body.panel-page footer {
    margin-top: 40px;
}

body.panel-page .panel-sidebar-inner .border-top.d-grid {
    margin-bottom: 0;
}

/* ---- Modal ---- */
.modal-content {
    border-radius: var(--farabi-radius-lg);
    border: none;
    box-shadow: var(--farabi-shadow-lg);
}

#loginModal .btn-primary {
    border-radius: 12px;
    padding: 12px;
}

/* ---- Info Message ---- */
#infoMessage {
    margin-top: 12px;
}

#infoMessage .alert {
    margin-bottom: 0;
}

/* ============================================================
   Mobile Responsive
   ============================================================ */
@media (max-width: 959px) {
    .site-header {
        padding: 0;
    }

    .site-header .container {
        padding: 0;
        max-width: 100%;
    }

    .site-header .header-inner {
        border-radius: 0;
        padding: 10px 16px;
        min-height: 60px;
        gap: 10px;
    }

    .site-header .logo img {
        width: 44px;
        height: 44px;
    }

    .site-header .menu {
        order: 3;
        flex: 0;
        width: auto;
        float: none;
    }

    .menu-mobile {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .site-header .menu > ul {
        display: none !important;
        position: fixed;
        top: 0;
        right: 0;
        width: min(320px, 88vw);
        height: 100dvh;
        height: 100vh;
        background: var(--farabi-surface);
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: 80px 0 24px;
        margin: 0;
        z-index: 1055;
        overflow-y: auto;
        box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
        transform: translateX(100%);
        transition: transform var(--farabi-transition);
    }

    .site-header .menu > ul.show-on-mobile {
        display: flex !important;
        transform: translateX(0);
    }

    .site-header .menu > ul > li {
        width: 100%;
        border-bottom: 1px solid var(--farabi-border);
    }

    .site-header .menu > ul > li a {
        color: var(--farabi-text);
        padding: 16px 20px;
        border-radius: 0;
        font-size: 15px;
    }

    .site-header .menu > ul > li.menu-dropdown-icon::after {
        left: 20px;
        top: 22px;
        filter: invert(0.4);
    }

    .site-header .menu > ul > li > ul {
        position: static;
        display: none;
        width: 100%;
        background: var(--farabi-bg);
        padding: 0;
        box-shadow: none;
        border: none;
        border-radius: 0;
        margin: 0;
    }

    .site-header .menu > ul > li > ul > li {
        width: 100%;
        float: none;
        margin: 0;
    }

    .site-header .menu > ul > li > ul > li a {
        padding: 12px 20px 12px 32px;
        font-size: 14px;
        border-bottom: 1px solid var(--farabi-border);
    }

    .menu-dropdown-icon::before {
        display: block !important;
        position: absolute;
        left: 16px;
        top: 0;
        height: 100%;
        width: 44px;
        padding: 0;
        background-size: 16px;
        background-position: center;
        filter: invert(0.3);
    }

    .site-header .header-actions {
        margin-right: auto;
    }

    .site-header .menuuser a.login span {
        display: none;
    }

    .site-header .menuuser a.login {
        padding: 10px 12px;
        border-radius: 10px;
    }

    .site-header .menuuser .dropdown-toggle span {
        display: none;
    }

    .search-slideer {
        padding: 32px 0 24px;
    }

    .search-slideer .search-box {
        padding: 0 16px;
    }

    .auth-input-wrapper {
        flex-wrap: wrap;
        gap: 8px;
    }

    .auth-input-wrapper .auth-input {
        flex: 1 1 calc(33% - 8px);
        min-width: 44px;
        margin: 0 !important;
    }
}

@media (max-width: 480px) {
    .container.py-5 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }

    .doctor-card {
        min-height: 160px !important;
    }

    .btn-lg {
        width: 100%;
    }
}

/* ---- Homepage banner slider (Sinarom-style) ---- */
.slider.home-slider {
    padding: 1.25rem 0 0;
    margin-bottom: 1.5rem;
    width: 100%;
}

.home-slider-wrap {
    border-radius: var(--farabi-radius-lg);
    overflow: hidden;
    box-shadow: var(--farabi-shadow-lg);
    background: var(--farabi-surface);
}

.home-hero-swiper,
.slider-swiper {
    border-radius: var(--farabi-radius-lg);
    overflow: hidden;
}

.home-hero-swiper .swiper-wrapper,
.slider-swiper .swiper-wrapper {
    display: flex;
}

.home-hero-swiper .swiper-slide,
.slider-swiper .swiper-slide {
    flex-shrink: 0;
    width: 100%;
}

.home-hero-swiper:not(.swiper-initialized) .swiper-slide ~ .swiper-slide,
.slider-swiper:not(.swiper-initialized) .swiper-slide ~ .swiper-slide {
    display: none;
}

.home-slider-slide {
    position: relative;
    display: block;
    width: 100%;
    background: linear-gradient(135deg, var(--farabi-primary-dark) 0%, var(--farabi-primary) 100%);
}

.home-hero-swiper .swiper-slide,
.slider-swiper .swiper-slide {
    height: auto;
}

.home-slider-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.35) 0%,
        rgba(0, 0, 0, 0.08) 40%,
        transparent 65%
    );
    pointer-events: none;
    z-index: 1;
}

.home-slider-slide__media {
    display: block;
    width: 100%;
    line-height: 0;
}

.home-slider-slide__img,
.slider-swiper img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    transition: transform 0.7s ease;
}

.home-slider-slide__media:hover .home-slider-slide__img {
    transform: scale(1.03);
}

.home-slider-slide__caption,
.slider-info {
    position: absolute;
    z-index: 2;
    right: 0;
    left: auto;
    bottom: 0;
    max-width: min(520px, 88%);
    padding: 1.75rem 2rem;
    color: #fff;
    line-height: 1.75;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
    pointer-events: none;
}

.home-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 46px;
    height: 46px;
    margin: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--farabi-primary);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--farabi-transition), color var(--farabi-transition), transform var(--farabi-transition);
}

.home-slider-nav i {
    font-size: 1.65rem;
    line-height: 1;
}

.home-slider-nav::after {
    display: none;
}

.home-slider-nav:hover {
    background: var(--farabi-primary);
    color: #fff;
    transform: translateY(-50%) scale(1.05);
}

.home-slider-nav--prev {
    right: 1rem;
    left: auto;
}

.home-slider-nav--next {
    left: 1rem;
    right: auto;
}

.home-slider-pagination {
    position: absolute;
    bottom: 1rem !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%);
    z-index: 5;
    width: auto !important;
    display: flex;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.42);
}

.home-slider-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    opacity: 0.55;
    background: #fff;
    transition: width var(--farabi-transition), opacity var(--farabi-transition), background var(--farabi-transition);
}

.home-slider-pagination .swiper-pagination-bullet-active {
    width: 22px;
    border-radius: 999px;
    opacity: 1;
    background: var(--farabi-accent);
}

.headerbaner img,
.footbaner img,
.banner-strip img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--farabi-radius-lg);
}

.headerbaner,
.footbaner {
    padding: 0.75rem 0;
}

.banner-strip .container {
    max-width: var(--site-container-max);
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 767.98px) {
    .home-slider-slide__caption,
    .slider-info {
        padding: 1rem 1.1rem;
        max-width: 100%;
        font-size: 0.9rem;
    }

    .home-slider-nav {
        width: 38px;
        height: 38px;
    }

    .home-slider-nav--prev { right: 0.5rem; }
    .home-slider-nav--next { left: 0.5rem; }
}


@media (max-width: 991px) {
    footer {
        padding: 20px 0;
        margin-top: 40px;
    }
    footer .foot_box {
        display: none;
    }
    footer .footer {
        flex-wrap: wrap;
        flex-direction: column-reverse;
        gap: 30px;
    }
    footer .footer-main {
        float: none;
        width: 100%;
    }
    footer .footer-suport {
        float: none;
        width: 100%;
        margin-top: 60px;
    }
    footer .footer-main .footer-contact .footer-contact-address {
        width: 90%;
        padding-right: 15px;
    }
    footer .footer-main .footer-contact .footer-contact-email {
        width: 90%;
        margin-top: 20px;
        float: left;
        padding-right: 15px;
    }
    footer .footer-main .footer-contact .footer-contact-email .email {
        float: right;
        width: 100%;
    }
    footer .footer-link-box {
        flex-wrap: wrap;
    }
    .copyright span {
        width: 100%;
        height: auto;
        text-align: center;
        float: none;
        display: block;
        margin-left: 0;
    }
}
