/* ==========================================================================
   Kuruçay Group - Tema üzeri özel düzenlemeler
   Tema dosyalarına dokunulmadan yapılan minimal eklemeler.
   ========================================================================== */

/* Logo boyutlandırma (PNG logo tema header'ına uyumlu) */
.header .logo img,
.footer_bottom .logo img {
    max-height: 55px;
    width: auto;
}

@media (max-width: 991px) {
    .header .logo img {
        max-height: 42px;
    }
}

/* Ana menü düzeni: 5 öğe tek satırda kalsın, menü logo ile telefon arasında
   dengeli şekilde ortalansın, telefon sağ kenara sabitlensin.
   Sadece masaüstü menüsü (>=1200px) hedeflenir; mobil menü etkilenmez. */
@media (min-width: 1200px) {
    /* Yalnızca üst seviye menü öğeleri tek satırda kalsın (sarmayı önle) */
    .header .mainnav > ul.main_menu {
        white-space: nowrap;
    }

    /* Açılır alt menü temanın native dikey diziliminde kalsın */
    .header .mainnav ul.main_menu ul.sub-menu {
        white-space: normal;
    }

    .header .header_right_part {
        justify-content: flex-start;
    }

    /* Otomatik kenar boşlukları menüyü iki taraftan eşit boşlukla ortalar */
    .header .mainnav {
        margin-left: auto;
        margin-right: auto;
    }

    /* Telefon bloğu büyümesin; içeriği sağ kenarda sabit kalsın */
    .header .phone {
        flex: 0 0 auto;
    }
}

/* Anasayfa hero – masaüstü: tema yerleşimine dokunulmaz (padding 250/160 style.css).
   Yalnızca uzun çevirilerde satır taşmasını sınırla; slider kutusunu kilitleme. */
@media (min-width: 992px) {
    .main_wrapper > .theme_slider_1 .slider .slide_content .heading {
        font-size: clamp(42px, 4.2vw, 70px);
        line-height: 1.2;
        max-width: 720px;
    }

    .main_wrapper > .theme_slider_1 .slider .slide_content .desc {
        max-width: 620px;
        line-height: 1.45;
    }
}

/* Üst bar sosyal alan etiketleri */
.header .header_social__label--desktop {
    color: var(--second-color, #ffa903);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    margin-right: 4px;
}

/* --------------------------------------------------------------------------
   Dil değiştirici (Google Translate)
   -------------------------------------------------------------------------- */
.lang_switcher {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-right: 18px;
}

.lang_switcher .lang_btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    padding: 5px 8px;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.lang_switcher .lang_btn:hover {
    background: rgba(255, 169, 3, 0.25);
    border-color: var(--second-color, #ffa903);
    color: #fff;
}

.lang_switcher .lang_btn.active,
.lang_switcher .lang_btn[aria-pressed="true"] {
    background: var(--theme-color, #c79a3b);
    border-color: var(--theme-color, #c79a3b);
    color: #fff;
}

.lang_switcher.is-switching {
    opacity: 0.65;
    pointer-events: none;
}

.lang_switcher .lang_btn:disabled {
    cursor: wait;
    opacity: 0.85;
}

/* Google Translate – banner/iframe sayfayı aşağı kaydırmasın (dil değişiminde birikimli scroll) */
html.translated-ltr,
html.translated-rtl {
    margin-top: 0 !important;
    top: 0 !important;
}

/* position:static !important kaldırıldı – iOS'ta fixed header'ı bozuyordu */
body {
    top: 0 !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.skiptranslate {
    display: none !important;
    height: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
.goog-te-menu-frame,
#goog-gt-tt,
.goog-te-balloon-frame,
.skiptranslate iframe,
iframe.goog-te-banner-frame {
    display: none !important;
    height: 0 !important;
    visibility: hidden !important;
}

#google_translate_element {
    height: 0 !important;
    overflow: hidden !important;
}

/* --------------------------------------------------------------------------
   SweetAlert2 – iletişim formu (tema uyumu)
   -------------------------------------------------------------------------- */
.kurucay-swal {
    border: 1px solid rgba(255, 169, 3, 0.25);
    border-radius: 12px;
}

.kurucay-swal__title {
    font-weight: 700;
}

.kurucay-swal__confirm {
    font-weight: 600;
    border-radius: 6px;
    padding: 0.55rem 1.5rem;
}

/* Zengin metin içerik (proje / haber detay) */
.rich-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

.rich-content h2,
.rich-content h3,
.rich-content h4 {
    margin-top: 1.25em;
    margin-bottom: 0.5em;
}

.rich-content ul,
.rich-content ol {
    margin-bottom: 1em;
    padding-left: 1.5em;
}

.rich-content blockquote {
    border-left: 3px solid var(--second-color, #c79a3b);
    padding-left: 1em;
    opacity: 0.9;
}

/* --------------------------------------------------------------------------
   Proje kartları (liste + anasayfa Isotope)
   -------------------------------------------------------------------------- */
.project_iso .teambox,
.project_iso1 .teambox {
    display: block;
}

.project_iso .teambox .teambox_media,
.project_iso1 .teambox .teambox_media {
    position: relative;
    width: 100%;
    aspect-ratio: 370 / 442;
    overflow: hidden;
    background: linear-gradient(145deg, #0c1f3d 0%, #002a5c 48%, #1a3d72 100%);
}

.project_iso .teambox .teambox_media > img,
.project_iso1 .teambox .teambox_media > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.project_card_placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    background:
        radial-gradient(circle at 25% 80%, rgba(199, 154, 59, 0.14) 0%, transparent 50%),
        linear-gradient(145deg, #0c1f3d 0%, #002a5c 48%, #1a3d72 100%);
}

.project_card_placeholder::before {
    content: "";
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    pointer-events: none;
}

.project_iso .teambox_media,
.project_iso1 .teambox_media {
    position: relative;
}

.project_card_placeholder img {
    position: relative;
    z-index: 1;
    max-width: 58%;
    max-height: 42%;
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 0.9;
}

.project_card_placeholder.is-hidden {
    display: none !important;
}

/* Isotope öğeleri hizalı kalsın */
.project_iso .grid .element-item {
    margin-bottom: 30px;
}

/* Anasayfa: öne çıkan projeler — ortalanmış flex ızgara (Isotope değil) */
.home_featured_projects .section_header {
    margin-bottom: 48px;
}

.home_featured_projects .home-featured-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 24px;
    max-width: 1680px;
    margin-left: auto;
    margin-right: auto;
    padding-left: clamp(16px, 3vw, 48px);
    padding-right: clamp(16px, 3vw, 48px);
    padding-bottom: 12px;
}

.home_featured_projects .home-featured-grid .element-item {
    flex: 0 1 320px;
    width: 320px;
    max-width: 100%;
    margin-bottom: 0;
}

.project_iso1 .teambox {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}

.project_iso1 .teambox .teambox_media,
.project_iso1 .teambox .teambox_media > img {
    border-radius: 0;
}

.project_iso1 .teambox:hover {
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

/* Proje durum etiketi (anasayfa köşe şeridi) */
.home_featured_projects .teambox_media {
    overflow: hidden;
}

.project_status_badge {
    position: absolute;
    top: 18px;
    right: -34px;
    z-index: 3;
    width: 140px;
    padding: 7px 0;
    font-family: "Nunito Sans", sans-serif;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.04em;
    text-align: center;
    text-transform: uppercase;
    color: #fff;
    transform: rotate(45deg);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.28);
    pointer-events: none;
}

.project_status_badge--completed {
    background: linear-gradient(135deg, #c79a3b 0%, #a67c2e 100%);
}

.project_status_badge--ongoing {
    background: linear-gradient(135deg, #1a5fad 0%, #0c3d7a 100%);
}

@media (max-width: 1399px) {
    .home_featured_projects .home-featured-grid .element-item {
        flex: 0 1 280px;
        width: 280px;
    }
}

@media (max-width: 991px) {
    .home_featured_projects .home-featured-grid .element-item {
        flex: 0 1 calc(50% - 12px);
        width: calc(50% - 12px);
        max-width: 360px;
    }
}

@media (max-width: 575px) {
    .home_featured_projects .home-featured-grid {
        padding-left: 16px;
        padding-right: 16px;
    }

    .home_featured_projects .home-featured-grid .element-item {
        flex: 0 1 100%;
        width: 100%;
        max-width: 420px;
    }
}

@media (max-width: 991px) {
    .project_iso .teambox .teambox_media,
    .project_iso1 .teambox .teambox_media {
        aspect-ratio: 4 / 5;
    }
}

@media (max-width: 575px) {
    .project_iso .teambox .teambox_media,
    .project_iso1 .teambox .teambox_media {
        aspect-ratio: 1 / 1;
    }
}

/* --------------------------------------------------------------------------
   Haber kartları (anasayfa + /haberler) — eşit yükseklik, metin kısaltma
   -------------------------------------------------------------------------- */
.news_cards_grid > .row {
    align-items: stretch;
}

.news_cards_col {
    display: flex;
    margin-bottom: 30px;
}

.news_cards_grid .blog_post--compact {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    margin-bottom: 0;
}

.news_cards_grid .blog_post--compact .post_img {
    flex-shrink: 0;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.news_cards_grid .blog_post--compact .post_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news_cards_grid .blog_post--compact .post_content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 220px;
}

.news_cards_grid .blog_post--compact .post_header {
    flex-shrink: 0;
}

.news_cards_grid .blog_post--compact .post_title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    margin-bottom: 14px;
    line-height: 1.35;
}

.news_cards_grid .blog_post--compact .post_intro {
    flex: 1;
    margin-bottom: 12px;
}

.news_cards_grid .blog_post--compact .post_intro p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    margin-bottom: 0;
}

.news_cards_grid .blog_post--compact .post_footer {
    margin-top: auto;
    flex-shrink: 0;
}

/* Boş proje durumu */
.empty_state {
    text-align: center;
    padding: 60px 0;
    color: #888;
}

/* --------------------------------------------------------------------------
   Proje kataloğu (Flipbook gömme)
   -------------------------------------------------------------------------- */
.project_catalog {
    margin-top: 35px;
}

.project_catalog .catalog_title {
    margin-bottom: 18px;
}

.flipbook_wrap {
    position: relative;
    width: 100%;
    padding-top: 62%; /* 8:5 oranı - katalog yatay görünüm */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.flipbook_wrap .flipbook_frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 575px) {
    .flipbook_wrap {
        padding-top: 90%;
    }
}

/* --------------------------------------------------------------------------
   İletişim haritası (Leaflet + OpenStreetMap)
   -------------------------------------------------------------------------- */
.contact-map__canvas {
    width: 100%;
    height: 470px;
    z-index: 1;
    background: #e8eef4;
}

.contact-map__canvas.leaflet-container {
    font-family: inherit;
}

.contact-map__pin-wrap {
    background: transparent;
    border: 0;
}

.contact-map__pin {
    display: block;
    color: var(--second-color, #ffa903);
    font-size: 44px;
    line-height: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.contact-map__popup-wrap .leaflet-popup-content-wrapper {
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.contact-map__popup-wrap .leaflet-popup-content {
    margin: 12px 14px;
    line-height: 1.45;
}

.contact-map__popup-title {
    display: block;
    font-size: 15px;
    color: #1c1f26;
    margin-bottom: 6px;
}

.contact-map__popup-address {
    margin: 0;
    font-size: 13px;
    color: #4a5568;
}

.contact-map .leaflet-control-attribution {
    font-size: 10px;
    background: rgba(255, 255, 255, 0.88);
}

.contact-map .leaflet-control-attribution a {
    color: var(--second-color, #ffa903);
}

.contact-map .leaflet-control-scale-line {
    border-color: rgba(28, 31, 38, 0.35);
    background: rgba(255, 255, 255, 0.9);
    color: #1c1f26;
    font-size: 10px;
}

.contact-map__links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    padding: 0.75rem 0 0;
}

.contact-map__links a {
    color: var(--second-color, #ffa903);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

.contact-map__links a:hover {
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   İletişim bağlantıları (tel / mailto)
   -------------------------------------------------------------------------- */
a.contact-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

a.contact-link:hover {
    color: #10142e;
}

.header .header_info a.contact-link:hover,
.footer a.contact-link:hover,
.banner_phone a.contact-link:hover {
    color: #10142e;
}

.header .phone a.contact-link {
    display: inline-block;
}

.header .hide_icon > a {
    display: inline-flex;
    color: inherit;
    text-decoration: none;
}

/* İletişim kartları – ikon ve metin aynı satırda (uzun adres taşmasın) */
.keepintouch_3 .communication {
    flex-wrap: nowrap;
    align-items: flex-start;
}

.keepintouch_3 .communication .communication_icon {
    flex-shrink: 0;
}

.keepintouch_3 .communication .info_body {
    flex: 1 1 auto;
    min-width: 0;
}

.keepintouch_3 .communication .info_body h6 {
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* --------------------------------------------------------------------------
   Yukarı çık (scroll top)
   -------------------------------------------------------------------------- */
.scroll_top_btn {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1040;
    width: 50px;
    height: 50px;
    border: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #ffc233 0%, var(--second-color, #ffa903) 55%, #d98900 100%);
    color: #0a1f3d;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, box-shadow 0.25s ease;
    pointer-events: none;
}

.scroll_top_btn.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.scroll_top_btn:hover {
    color: #061428;
    box-shadow: 0 14px 32px rgba(255, 169, 3, 0.35);
}

.scroll_top_btn:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

@media (max-width: 575px) {
    .scroll_top_btn {
        right: 16px;
        bottom: 16px;
        width: 46px;
        height: 46px;
        font-size: 24px;
    }
}

/* ==========================================================================
   Responsive – header, hero (anasayfa) ve yatay taşma
   ========================================================================== */
html {
    overflow-x: hidden;
}

body.dark-theme,
.main_wrapper {
    overflow-x: hidden;
    max-width: 100%;
}

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

/* Tablet ve mobil: üst bar + orta bar */
@media (max-width: 991px) {
    .header .top_bar .container,
    .header .middle_bar .container,
    .theme_slider_1 .slider > .container,
    .main_wrapper > .service .container-fluid,
    .experience.section > .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .header .top_bar {
        overflow: hidden;
    }

    .header .top_bar .top_bar_inner {
        flex-wrap: nowrap;
        align-items: center;
        gap: 6px;
        padding: 8px 0;
    }

    .header .header_social {
        flex: 0 0 auto;
        gap: 8px;
    }

    .header .header_social__label--mobile {
        color: #fff;
        font-size: 12px;
        font-weight: 700;
        line-height: 1.2;
        letter-spacing: 0.02em;
        white-space: nowrap;
    }

    .header .header_social .top_social li {
        padding-right: 0;
    }

    .header .header_social .top_social li a {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 36px;
        min-height: 36px;
        font-size: 17px;
    }

    .header .header_info {
        margin-left: auto;
        flex: 1 1 auto;
        min-width: 0;
        flex-wrap: nowrap;
        justify-content: flex-end;
        gap: 2px;
    }

    .header .schedule {
        flex: 0 0 auto;
        padding: 0 4px;
    }

    .header .schedule .hide_icon span {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .lang_switcher {
        margin-right: 6px;
        gap: 5px;
        flex-shrink: 0;
    }

    .lang_switcher .lang_btn {
        padding: 7px 8px;
        font-size: 11px;
        min-width: 36px;
        min-height: 36px;
        border-radius: 4px;
    }

    .header .header_info .free_contact {
        margin-left: 4px;
        flex-shrink: 0;
    }

    .header .header_info .free_contact a {
        padding: 8px 10px;
        font-size: 11px;
        line-height: 1.2;
        white-space: nowrap;
    }

    .header .middle_bar_inner {
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }

    .header .middle_bar_inner .header_right_part {
        margin-top: 0;
        width: auto;
        flex: 0 0 auto;
        justify-content: flex-end;
    }

    .header .phone {
        display: none;
    }

    .header .ma5menu__toggle {
        margin-left: 8px;
    }

    /* Anasayfa hero – mobil: fixed header altında kalmaması için üst boşluk (tema 250px; dar ekranda orantılı) */
    .theme_slider_1 .slider > .container > .row > [class*="col-lg-5"] {
        display: none !important;
    }

    .main_wrapper > .theme_slider_1 .slider .slide_content {
        padding-top: 168px;
        padding-bottom: 72px;
        padding-left: 0;
        padding-right: 0;
    }

    .theme_slider_1 .slider .slide_content .heading {
        font-size: clamp(26px, 7vw, 34px);
        line-height: 1.2;
        margin: 14px 0;
        word-break: normal;
        overflow-wrap: break-word;
    }

    .theme_slider_1 .slider .slide_content .sub_heading {
        font-size: 13px;
        line-height: 1.35;
        letter-spacing: 0.06em;
    }

    .theme_slider_1 .slider .slide_content .sub_heading span {
        display: block;
        margin-left: 0;
        margin-top: 4px;
    }

    .theme_slider_1 .slider .slide_content .desc {
        font-size: 15px;
        line-height: 1.5;
        max-width: 100%;
    }

    .theme_slider_1 .slider .slider_button {
        margin-top: 24px;
    }

    .service .service_inner.service_inner2 {
        padding-left: 20px;
        padding-right: 20px;
    }

    .service .service_content {
        padding-right: 8px;
    }
}

@media (max-width: 767px) {
    .header .header_info .free_contact {
        display: none;
    }

    .main_wrapper > .theme_slider_1 .slider .slide_content {
        padding-top: 148px;
        padding-bottom: 64px;
    }

    .banner .banner_content .banner_text img {
        max-width: 72px;
        height: auto;
        margin: 0 auto 12px;
    }
}

/* Tema: 500px altında üst barı iki satıra böner – tek satırda tut */
@media (max-width: 575px) {
    .header .header_social {
        width: auto;
        justify-content: flex-start;
    }

    .header .header_info {
        width: auto;
        justify-content: flex-end;
    }

    .header .top_bar .top_bar_inner {
        padding: 6px 0;
    }

    .main_wrapper > .theme_slider_1 .slider .slide_content {
        padding-top: 142px;
        padding-bottom: 56px;
    }

    .theme_slider_1 .slider .slide_content .desc {
        font-size: 14px;
    }

    .home_featured_projects .section_header {
        margin-bottom: 32px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .funfacts .section_header {
        padding-left: 8px;
        padding-right: 8px;
    }
}

@media (max-width: 400px) {
    .lang_switcher .lang_btn {
        padding: 7px 9px;
        font-size: 11px;
        min-width: 36px;
        min-height: 34px;
    }

    .header .header_social__label--mobile {
        font-size: 11px;
    }

    .header .schedule .hide_icon span {
        width: 32px;
        height: 32px;
    }
}

/* Mobil menü – tema ile aynı (template-files/dark version) */
.slide_navi {
    display: none;
}

.ma5menu__footer .ma5menu__contact-list {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.ma5menu__footer .ma5menu__info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
    line-height: 1.45;
}

.ma5menu__footer .ma5menu__info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--heading-color, #1c1f26);
    color: var(--second-color, #ffa903);
    font-size: 18px;
}

.ma5menu__footer .ma5menu__info-label {
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.ma5menu__footer .ma5menu__info-text {
    font-size: 13px;
    color: #fff;
    max-width: 260px;
    word-break: break-word;
}

.ma5menu__footer .ma5menu__info-link {
    color: var(--second-color, #ffa903);
}

.ma5menu__footer .ma5menu__info-link:hover {
    color: #fff;
}

/* Koyu tema: ma5menu panel logosu */
.ma5menu__logo {
    background-image: url('../../images/logo-white.png');
    background-size: contain;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    max-width: 180px;
    max-height: 52px;
}

/* Masaüstü / Android emülasyon: eklenti perdesi (koyu ton) */
.ma5menu--active.ma5menu--left:before,
.ma5menu--active.ma5menu--right:before {
    background-color: rgba(15, 21, 48, 0.82) !important;
}

/* iOS: html::before perdesi menünün üstüne biner – devre dışı, JS scrim kullanılır */
html.kurucay-ios-menu.ma5menu--active:before,
html.kurucay-ios-menu.ma5menu--right:before,
html.kurucay-ios-menu.ma5menu--left:before {
    display: none !important;
    content: none !important;
    z-index: -1 !important;
    pointer-events: none !important;
}

html.kurucay-ios-menu .kurucay-menu-scrim {
    position: fixed;
    inset: 0;
    z-index: 9995;
    background: rgba(15, 21, 48, 0.82);
    -webkit-tap-highlight-color: transparent;
}

html.kurucay-ios-menu .kurucay-menu-scrim[hidden] {
    display: none !important;
}

@media (max-width: 991px) {
    /* Menü #js-ma5menu body'de; header stacking context'inden çıkar */
    html.kurucay-ios-menu #js-ma5menu .ma5menu__container {
        z-index: 10050 !important;
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }

    /* Menü açıkken üst bar + logo gizlenir (middle_bar menünün üstüne binmesin) */
    html.kurucay-ios-menu.ma5menu--active .header .top_bar,
    html.kurucay-ios-menu.ma5menu--active .header .middle_bar .logo {
        visibility: hidden;
        pointer-events: none;
    }

    html.kurucay-ios-menu.ma5menu--active .header .ma5menu__toggle {
        position: relative;
        z-index: 2;
    }

    /* iOS: body * { pointer-events:none } menü linklerini de kilitler */
    html.kurucay-ios-menu.ma5menu--active > body * {
        pointer-events: auto !important;
    }

    html.kurucay-ios-menu.ma5menu--active > body .main_wrapper,
    html.kurucay-ios-menu.ma5menu--active > body .main_wrapper *,
    html.kurucay-ios-menu.ma5menu--active > body .footer,
    html.kurucay-ios-menu.ma5menu--active > body .footer * {
        pointer-events: none !important;
    }

    html.kurucay-ios-menu.ma5menu--active > body .ma5menu__container,
    html.kurucay-ios-menu.ma5menu--active > body .ma5menu__container *,
    html.kurucay-ios-menu.ma5menu--active > body .header .ma5menu__toggle,
    html.kurucay-ios-menu.ma5menu--active > body .header .ma5menu__toggle * {
        pointer-events: auto !important;
        touch-action: manipulation;
    }

    html.kurucay-ios-menu.ma5menu--active .ma5menu__panel a,
    html.kurucay-ios-menu.ma5menu--active .ma5menu__panel .ma5menu__category {
        cursor: pointer;
    }
}

/* overflow sınıfı sabit header kaydırmasın */
html.ma5menu--overflow {
    overflow-x: hidden !important;
}

/* --------------------------------------------------------------------------
   Proje detay – galeri slider + lightbox (tam genişlik bant)
   -------------------------------------------------------------------------- */
.project_gallery_section {
    margin-top: 48px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.project_gallery {
    margin-bottom: 8px;
    text-align: left;
}

.project_gallery__title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--white-color, #fff);
}

.project_gallery_swiper {
    position: relative;
    padding: 0 44px 44px;
    overflow: hidden;
    width: 100%;
}

@media (min-width: 1200px) {
    .project_gallery_section {
        width: 100vw;
        max-width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        padding-left: clamp(16px, 3vw, 48px);
        padding-right: clamp(16px, 3vw, 48px);
        box-sizing: border-box;
    }

    .project_gallery_swiper {
        padding-left: 52px;
        padding-right: 52px;
    }

    .project_gallery__link {
        aspect-ratio: 16 / 9;
    }
}

.project_gallery_swiper .swiper-slide {
    height: auto;
}

.project_gallery__link {
    position: relative;
    display: block;
    border-radius: 6px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.25);
    aspect-ratio: 16 / 10;
}

.project_gallery__link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.project_gallery__link:hover img,
.project_gallery__link:focus-visible img {
    transform: scale(1.03);
}

.project_gallery__zoom {
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--second-color, #ffa903);
    color: var(--primary-color, #0a1f35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}

.project_gallery__link:hover .project_gallery__zoom,
.project_gallery__link:focus-visible .project_gallery__zoom {
    opacity: 1;
    transform: translateY(0);
}

.project_gallery__nav {
    color: var(--second-color, #ffa903);
}

.project_gallery__nav::after {
    font-size: 22px;
    font-weight: 700;
}

.project_gallery__pagination .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.45);
    opacity: 1;
}

.project_gallery__pagination .swiper-pagination-bullet-active {
    background: var(--second-color, #ffa903);
}

/* Lightbox */
.project_lightbox {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(6, 18, 38, 0.94);
    padding: 24px 72px;
}

.project_lightbox[hidden] {
    display: none !important;
}

body.project-lightbox-open {
    overflow: hidden;
}

.project_lightbox__inner {
    max-width: min(1200px, 100%);
    max-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project_lightbox__img {
    max-width: 100%;
    max-height: calc(100vh - 80px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.project_lightbox__close,
.project_lightbox__prev,
.project_lightbox__next {
    position: absolute;
    border: none;
    background: transparent;
    color: var(--white-color, #fff);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    padding: 12px;
    transition: color 0.2s ease;
}

.project_lightbox__close:hover,
.project_lightbox__prev:hover,
.project_lightbox__next:hover,
.project_lightbox__close:focus-visible,
.project_lightbox__prev:focus-visible,
.project_lightbox__next:focus-visible {
    color: var(--second-color, #ffa903);
}

.project_lightbox__close {
    top: 16px;
    right: 16px;
}

.project_lightbox__prev {
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
}

.project_lightbox__next {
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
}

.project_lightbox__counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    letter-spacing: 0.08em;
}

@media (max-width: 991px) {
    .project_gallery_section {
        margin-top: 36px;
        padding-top: 32px;
    }
}

@media (max-width: 767px) {
    .project_gallery_swiper {
        padding: 0 32px 36px;
    }

    .project_lightbox {
        padding: 16px 48px;
    }

    .project_lightbox__prev {
        left: 4px;
    }

    .project_lightbox__next {
        right: 4px;
    }
}
