/* ===== Custom Cursor: disabled ===== */
.custom-cursor__cursor,
.custom-cursor__cursor-two {
    display: none !important;
}

/* ===== Arama Sonuç Sayfası ===== */
.search-results-page__form {
    margin-bottom: 40px;
}
.search-results-page__input-wrap {
    display: flex;
    align-items: stretch;
    gap: 0;
    max-width: 680px;
    border: 2px solid var(--sifoxen-base, #AE61BE);
    border-radius: 6px;
    overflow: hidden;
}
.search-results-page__input {
    flex: 1 1 0;
    height: 56px;
    padding: 0 20px;
    font-size: 15px;
    border: none;
    outline: none;
    color: var(--sifoxen-black, #362048);
    background: #fff;
}
.search-results-page__input::placeholder {
    color: #aaa;
}
.search-results-page__btn {
    border-radius: 0 !important;
    height: 56px;
    padding: 0 28px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    white-space: nowrap;
}
.search-results-page__btn i {
    margin: 0;
}
.search-results-page__count {
    font-size: 15px;
    color: var(--sifoxen-text, #79767C);
    margin-bottom: 0;
}
.search-results-page__count strong {
    color: var(--sifoxen-base, #AE61BE);
    font-weight: 700;
}
.search-results-page__empty {
    text-align: center;
    padding: 60px 20px;
}
.search-results-page__empty-icon {
    font-size: 56px;
    color: #d8d8d8;
    display: block;
    margin-bottom: 20px;
}
.search-results-page__empty-text {
    font-size: 17px;
    color: var(--sifoxen-text, #79767C);
}

/* ===== Arama Sonuç Kartı ===== */
.search-result-card {
    border: 1px solid #ececec;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.25s, transform 0.25s;
}
.search-result-card:hover {
    box-shadow: 0 8px 32px rgba(174, 97, 190, 0.14);
    transform: translateY(-3px);
}
.search-result-card__image {
    overflow: hidden;
    max-height: 200px;
}
.search-result-card__image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}
.search-result-card:hover .search-result-card__image img {
    transform: scale(1.04);
}
.search-result-card__body {
    padding: 20px 22px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.search-result-card__title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
}
.search-result-card__title a {
    color: var(--sifoxen-black, #362048);
    text-decoration: none;
    transition: color 0.2s;
}
.search-result-card__title a:hover {
    color: var(--sifoxen-base, #AE61BE);
}
.search-result-card__text {
    font-size: 14px;
    color: var(--sifoxen-text, #79767C);
    line-height: 1.6;
    flex: 1;
    margin-bottom: 14px;
}
.search-result-card__link {
    font-size: 13px;
    font-weight: 600;
    color: var(--sifoxen-base, #AE61BE);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    transition: gap 0.2s;
}
.search-result-card__link:hover {
    gap: 10px;
}

/* RTL arama sayfası */
[dir="rtl"] .search-results-page__input {
    padding: 0 20px 0 0;
}
[dir="rtl"] .search-result-card__link i {
    transform: scaleX(-1);
}

/* ===== Search Popup Enhancement ===== */
.search-popup__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 16px;
}
.search-popup__title {
    color: var(--sifoxen-white, #fff);
    font-size: 32px;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.5px;
    line-height: 1.2;
}
@media (max-width: 767px) {
    .search-popup__title {
        font-size: 22px;
    }
}
.search-popup__close {
    background: none;
    border: 2px solid rgba(255, 255, 255, 0.35);
    color: var(--sifoxen-white, #fff);
    font-size: 15px;
    cursor: pointer;
    padding: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    opacity: 0.75;
    transition: opacity 0.2s, border-color 0.2s, background 0.2s;
    line-height: 1;
}
.search-popup__close:hover,
.search-popup__close:focus {
    opacity: 1;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.7);
    outline: none;
}
.search-popup__hint {
    margin: 12px 0 0;
    color: rgba(255, 255, 255, 0.55);
    font-size: 13px;
    line-height: 1.5;
    min-height: 0;
}
.search-popup__hint:empty {
    display: none;
}
/* RTL search popup adjustments */
[dir="rtl"] .search-popup__form input[type="text"] {
    padding-left: 0;
    padding-right: 30px;
}
[dir="rtl"] .search-popup__form .theme-btn {
    right: auto;
    left: -1px;
}

/* ===== Mobile nav logo: beyaz yap ===== */
.mobile-nav__content .logo-box img {
    filter: brightness(0) invert(1);
}

/* ===== topbar-one: remove bottom margin (causes gap above slider / page content) ===== */
.topbar-one {
    margin-bottom: 0 !important;
}

/* ===== Header height reduction ===== */
.main-header__inner {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    height: 90px !important;
    overflow: visible !important;
}
.main-header__logo img {
    max-height: 70px;
    width: auto;
    display: block;
}
@media (max-width: 1199px) {
    .main-header__inner {
        height: auto !important;
        padding-top: 8px !important;
        padding-bottom: 8px !important;
    }
    .main-header__logo img {
        max-height: 50px;
    }
}

/* ===== Homepage: remove gap between sticky header clone and slider ===== */
.main-slider-one {
    margin-top: 0 !important;
}

/* ===== Slider Height & Image Position Overrides ===== */

/* Reduce slider item vertical padding
   NOTE: min padding-bottom must exceed thumb carousel's bottom offset (171px at desktop)
   to prevent the thumb carousel from overlapping slide content */
.main-slider-one__item {
    padding-top: 80px !important;
    padding-bottom: 290px !important;
}

@media (max-width: 1699px) {
    /* thumb bottom becomes 190px at this breakpoint → need ≥ 304px */
    .main-slider-one__item {
        padding-bottom: 310px !important;
    }
}

@media (max-width: 1499px) {
    /* thumb bottom becomes 90px at this breakpoint → need ≥ 210px */
    .main-slider-one__item {
        padding-top: 70px !important;
        padding-bottom: 210px !important;
    }
}

@media (max-width: 1299px) {
    /* thumb is hidden (display:none) below 1299px → free to reduce padding */
    .main-slider-one__item {
        padding-bottom: 100px !important;
    }
}

@media (max-width: 1199px) {
    .main-slider-one__item {
        padding-top: 60px !important;
        padding-bottom: 60px !important;
    }
}

@media (max-width: 767px) {
    .main-slider-one__item {
        padding-top: 50px !important;
        padding-bottom: 50px !important;
    }
}

/* Bring slider image fully into the viewport (was right: -17px = off-screen) */
.main-slider-one__image-wrap {
    right: 20px !important;
}

@media (max-width: 1199px) {
    .main-slider-one__image-wrap {
        right: auto !important;
    }
}

/* ===== Slider Image Full-Scale Fix =====
   The default CSS uses mask-size:auto (= SVG intrinsic 900×780px) and
   img width:auto — so uploaded photos don't fill the blob shape.
   Fix: give the containers a proper aspect-ratio, scale the mask to cover,
   and make the <img> fill its container. */
.main-slider-one__image {
    width: 100%;
    aspect-ratio: 900 / 780;
    -webkit-mask-size: cover !important;
    mask-size: cover !important;
}

.main-slider-one__image__inner {
    -webkit-mask-size: cover !important;
    mask-size: cover !important;
}

.main-slider-one__image__inner img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    display: block !important;
}

/* ===== Slider Title Font Size ===== */
.main-slider-one__title {
    font-size: 65px !important;
}
@media (max-width: 1799px) { .main-slider-one__title { font-size: 58px !important; } }
@media (max-width: 1599px) { .main-slider-one__title { font-size: 52px !important; } }
@media (max-width: 1399px) { .main-slider-one__title { font-size: 48px !important; } }
@media (max-width: 767px)  { .main-slider-one__title { font-size: 40px !important; } }
@media (max-width: 575px)  { .main-slider-one__title { font-size: 34px !important; } }

/* ===== Slider: sabit yükseklik + dikey ortalama ===== */
.main-slider-one__item {
    min-height: 600px !important;
    display: flex !important;
    align-items: center !important;
}
.main-slider-one__item > .container {
    width: 100%;
}
.main-slider-one__item .row {
    align-items: center;
}

/* ===== Service card: description below image ===== */
.service-card-two__text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--sifoxen-text, #79767C);
    padding: 14px 20px 0;
    margin: 0;
}

/* ===== Slider Image: show on mobile ===== */
@media (max-width: 767px) {
    .main-slider-one__image-wrap {
        display: block !important;
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        right: auto !important;
        max-width: 100% !important;
        margin: 20px auto 0 !important;
    }
}

/* ===== Footer Subscribe Form ===== */
.main-footer__subscribe {
    position: relative;
    z-index: 2;
    max-width: 460px;
}
.main-footer__subscribe__form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.main-footer__subscribe__form input[type="email"] {
    flex: 1 1 180px;
    height: 52px;
    padding: 0 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    color: var(--sifoxen-text, #6e6e6e);
    background: #fff;
    outline: none;
}
.main-footer__subscribe__form input[type="email"]::placeholder {
    color: #aaa;
}
.main-footer__subscribe__form .theme-btn {
    white-space: nowrap;
    padding: 14px 28px;
    font-size: 14px;
}
@media (max-width: 575px) {
    .main-footer__top {
        padding-top: 24px !important;
        padding-bottom: 24px !important;
    }
    .main-footer__subscribe {
        width: 100%;
        max-width: 100%;
    }
    .main-footer__subscribe__form {
        flex-direction: column;
        align-items: stretch;
    }
    .main-footer__subscribe__form input[type="email"] {
        flex: 0 0 auto;
        width: 100%;
        max-width: 100%;
        height: 46px;
        padding: 0 14px;
        font-size: 14px;
    }
    .main-footer__subscribe__form .theme-btn {
        width: 100%;
        max-width: 100%;
    }
}
@media (max-width: 1199px) {
    .main-footer__logo {
        width: 100%;
        text-align: center;
    }
    .main-footer__subscribe {
        width: 100%;
        max-width: 100%;
    }
}

/* ===== Blog card date: yıl ===== */
.blog-card__date__year {
    padding: 2.75px 6px 4.75px;
    width: 100%;
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--sifoxen-white, #fff);
    background-color: var(--sifoxen-base, #AE61BE);
}

/* ===== Sizi Arayalım – Sidebar Form Çerçevesi ===== */
.service-sidebar__single:has(.service-sidebar__form) {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(174, 97, 190, 0.10);
    border: 1px solid rgba(174, 97, 190, 0.12);
    padding: 28px 24px 24px;
    margin-top: 30px;
    position: relative;
    overflow: hidden;
}
.service-sidebar__single:has(.service-sidebar__form)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--sifoxen-base, #AE61BE), var(--sifoxen-primary, #55D9D7));
    border-radius: 12px 12px 0 0;
}
.service-sidebar__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--sifoxen-base, #AE61BE);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(174, 97, 190, 0.12);
}
.service-sidebar__form__control {
    margin-bottom: 14px;
}
.service-sidebar__form__control input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1px solid #e8e0ee;
    border-radius: 8px;
    font-size: 14px;
    color: #444;
    background: #faf8fc;
    outline: none;
    transition: border-color 0.25s, box-shadow 0.25s;
}
.service-sidebar__form__control input:focus {
    border-color: var(--sifoxen-base, #AE61BE);
    box-shadow: 0 0 0 3px rgba(174, 97, 190, 0.12);
    background: #fff;
}
.service-sidebar__form__control input::placeholder {
    color: #b0a0bb;
}
.service-sidebar__form .theme-btn {
    width: 100%;
    margin-top: 6px;
}

/* ===== Sizi Arayalım – Yatay Bar Form Çerçevesi ===== */
.appointment-form-bar {
    background: linear-gradient(135deg, #f8f0fc 0%, #edfcfc 100%);
    border-top: 4px solid var(--sifoxen-base, #AE61BE);
    border-bottom: 1px solid rgba(174, 97, 190, 0.12);
    overflow: visible;
}
.appointment-form-bar__inner {
    padding: 24px 32px 24px;
    overflow: visible;
}
.appointment-form-bar__title {
    font-size: 20px;
    font-weight: 700;
    color: var(--sifoxen-base, #AE61BE);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.appointment-form-bar__title::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 26px;
    background: linear-gradient(180deg, var(--sifoxen-base, #AE61BE), var(--sifoxen-primary, #55D9D7));
    border-radius: 3px;
    flex-shrink: 0;
}
.appointment-form-bar__form .form-control {
    height: 50px;
    border: 1px solid #ddd0e8;
    border-radius: 8px;
    padding: 0 16px;
    font-size: 14px;
    color: #444;
    background: #fff;
    box-shadow: none;
    transition: border-color 0.25s, box-shadow 0.25s;
}
.appointment-form-bar__form .form-control:focus {
    border-color: var(--sifoxen-base, #AE61BE);
    box-shadow: 0 0 0 3px rgba(174, 97, 190, 0.12);
}
.appointment-form-bar__form .form-control::placeholder {
    color: #b0a0bb;
}
/* intlTelInput dropdown z-index fix */
.appointment-form-bar__form .apform-phone-col {
    position: static;
}
.appointment-form-bar__form .iti {
    width: 100%;
}
.appointment-form-bar__form .iti__dropdown-content,
.appointment-form-bar__form .iti--inline-dropdown .iti__dropdown-content {
    z-index: 9999 !important;
}
/* Send button full height match */
.appointment-form-bar__form .theme-btn {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Blog section title font override */
.blog-one .sec-title__title {
    font-size: 22px;
    font-weight: 500;
    line-height: 1.5;
}
@media (max-width: 767px) {
    .blog-one .sec-title__title {
        font-size: 18px;
    }
}
@media (max-width: 575px) {
    .blog-one .sec-title__title {
        font-size: 16px;
    }
}
/* ===== WhatsApp Fixed Button (bottom-left) ===== */
.whatsapp-fixed {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #25d366;
    color: #ffffff;
    font-size: 28px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    text-decoration: none;
}
.whatsapp-fixed:hover {
    background-color: #128c7e;
    color: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.3);
    text-decoration: none;
}
.whatsapp-fixed i {
    line-height: 1;
}
@media (max-width: 767px) {
    .whatsapp-fixed {
        bottom: 20px;
        left: 20px;
        width: 48px;
        height: 48px;
        font-size: 24px;
    }
}

/* ===== RTL: Main header nav, search & appointment button ===== */

/* Nav margin: LTR → margin-right (gap between nav right and search).
   RTL → nav is to the right of search, so gap must be on nav's LEFT. */
[dir="rtl"] .main-header__nav {
    margin-right: 0;
    margin-left: 99px;
}
@media (max-width: 1399px) {
    [dir="rtl"] .main-header__nav {
        margin-left: 70px;
    }
}

/* Appointment button: LTR → margin-left. RTL → btn is leftmost, gap on right. */
[dir="rtl"] .main-header__btn {
    margin-left: 0;
    margin-right: 53px;
}
@media (max-width: 1399px) {
    [dir="rtl"] .main-header__btn {
        margin-right: 40px;
    }
}

/* Menu item spacing: LTR li+li uses margin-left, RTL needs margin-right */
[dir="rtl"] .main-menu .main-menu__list > li + li {
    margin-left: 0;
    margin-right: 36px;
}

/* Search button mobile separator */
@media (max-width: 1199px) {
    [dir="rtl"] .main-header__search {
        margin-left: 0;
        margin-right: 50px;
    }
    [dir="rtl"] .main-header__search::before {
        left: auto;
        right: -25px;
    }
}
@media (max-width: 500px) {
    [dir="rtl"] .main-header__search {
        margin-right: 36px;
    }
    [dir="rtl"] .main-header__search::before {
        right: -18px;
    }
}

/* Dropdown submenus: LTR opens to right (left:-25px), RTL should open to left */
[dir="rtl"] .main-menu .main-menu__list li ul {
    left: auto;
    right: -25px;
}
/* Nested (3rd level) dropdowns */
[dir="rtl"] .main-menu .main-menu__list li ul li > ul {
    left: auto;
    right: calc(100% + 20px);
}

/* Mobile lang flag button: inline margin-right → flip to margin-left */
[dir="rtl"] button.lang-toggle-btn {
    margin-right: 0 !important;
    margin-left: 4px;
}

/* ===== RTL: Phone numbers always display LTR ===== */
/* Applies globally to every tel: link in any RTL page (AR, etc.) */
[dir="rtl"] a[href^="tel:"] {
    direction: ltr;
    unicode-bidi: embed;
    display: inline-block;
}

/* ===== RTL: Topbar icon & spacing fixes ===== */

/* Icon sağda, metin solda → margin'i sola taşı */
[dir="rtl"] .topbar-one__info__icon {
    margin-right: 0;
    margin-left: 10px;
}

/* Saat ikonu da aynı yapıda */
[dir="rtl"] .topbar-one__open__icon {
    margin-right: 0;
    margin-left: 10px;
}

/* li + li RTL'de sağda kalır → margin sağa */
[dir="rtl"] .topbar-one__info li + li {
    margin-left: 0;
    margin-right: 41px;
}

/* Sosyal medya ikonları arası boşluk */
[dir="rtl"] .topbar-one__social a + a {
    margin-left: 0;
    margin-right: 18.56px;
}

/* WhatsApp butonu RTL'de sağda değil solda kalmalı,
   veya simetrik tutmak için sağa taşı */
[dir="rtl"] .whatsapp-fixed {
    left: auto;
    right: 30px;
}
@media (max-width: 767px) {
    [dir="rtl"] .whatsapp-fixed {
        left: auto;
        right: 20px;
    }
}

/* RTL: Ana sayfa slider — tüm konumlandırma düzeltmeleri */

/* 1) Ana resim: sağdan SOL'a taşı */
[dir="rtl"] .main-slider-one__image-wrap {
    right: auto !important;
    left: -17px !important;
    transform: translateX(-100%);
}
[dir="rtl"] .main-slider-one .active .main-slider-one__image-wrap {
    transform: translateX(0px) !important;
}
[dir="rtl"] .main-slider-one__image__border {
    right: auto;
    left: -25px;
}
@media (max-width: 1799px) {
    [dir="rtl"] .main-slider-one__image__border { right: auto; left: -10px; }
}
@media (max-width: 1699px) {
    [dir="rtl"] .main-slider-one__image__border { left: auto; right: auto; }
}
@media (max-width: 1199px) {
    [dir="rtl"] .main-slider-one__image-wrap {
        left: 0 !important;
        right: auto !important;
        transform: none !important;
    }
}

/* 2) Owl Nav okları: soldan SAĞA taşı */
[dir="rtl"] .main-slider-one__carousel.owl-carousel .owl-nav {
    left: auto;
    right: 28px;
}
@media (max-width: 1599px) {
    [dir="rtl"] .main-slider-one__carousel.owl-carousel .owl-nav { left: auto; right: 5px; }
}
@media (max-width: 1399px) {
    [dir="rtl"] .main-slider-one__carousel.owl-carousel .owl-nav { left: auto; right: -7px; }
}
@media (max-width: 1299px) {
    [dir="rtl"] .main-slider-one__carousel.owl-carousel .owl-nav { left: 50%; right: auto; }
}

/* 3) Sayaç (counter): soldan SAĞA taşı */
[dir="rtl"] .main-slider-one__carousel .theme-owl__carousel__counter {
    left: auto;
    right: 318px;
}
@media (max-width: 1799px) {
    [dir="rtl"] .main-slider-one__carousel .theme-owl__carousel__counter { left: auto; right: 296px; }
}
@media (max-width: 1599px) {
    [dir="rtl"] .main-slider-one__carousel .theme-owl__carousel__counter { left: auto; right: 246px; }
}
@media (max-width: 1399px) {
    [dir="rtl"] .main-slider-one__carousel .theme-owl__carousel__counter { left: auto; right: 216px; }
}
@media (max-width: 1299px) {
    [dir="rtl"] .main-slider-one__carousel .theme-owl__carousel__counter { left: auto; right: 126px; }
}
@media (max-width: 767px) {
    [dir="rtl"] .main-slider-one__carousel .theme-owl__carousel__counter { left: auto; right: 93px; }
}
@media (max-width: 575px) {
    [dir="rtl"] .main-slider-one__carousel .theme-owl__carousel__counter { left: auto; right: 15px; }
}

/* 4) Alt mini resimler (thumb carousel): sağdan SOL'a taşı */
[dir="rtl"] .main-slider-one__thumb {
    right: auto;
    left: 40px;
}

/* 5) Resim organik maskesi: yatay yansıt (scaleX -1), fotoğrafı tekrar düzelt */
[dir="rtl"] .main-slider-one__image {
    transform: scaleX(-1);
}
[dir="rtl"] .main-slider-one__image__inner {
    right: auto;
    left: -33px;
    transform: scaleX(-1); /* ebeveyn -1 ile bu +1 = fotoğraf düz */
}

/* 6) Counter çizgisi: __total::before soldan SAĞA taşı */
[dir="rtl"] .main-slider-one__carousel .theme-owl__carousel__counter__total::before {
    left: auto;
    right: -96px;
}
@media (max-width: 767px) {
    [dir="rtl"] .main-slider-one__carousel .theme-owl__carousel__counter__total::before {
        left: auto;
        right: -60px;
    }
}

/* 7) Counter dikey çizgi (__current::before) soldan SAĞA taşı */
[dir="rtl"] .main-slider-one__carousel .theme-owl__carousel__counter__current::before {
    left: auto;
    right: -11px;
}
@media (max-width: 575px) {
    [dir="rtl"] .main-slider-one__carousel .theme-owl__carousel__counter__current::before {
        left: auto;
        right: -7.5px;
    }
}
