/* Özel CSS Düzenlemeleri */
.hero-banner .main-img img {
  -webkit-mask-image: none !important;
  mask-image: none !important;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  object-fit: cover;
}

.page-header {
  padding: 180px 0 60px !important;
}

/* Outline Buton Stilleri */
.button--outline {
  color: var(--color-primary);
  background-color: transparent;
  border: 2px solid var(--color-primary);
  border-radius: var(--style-border-radius-buttons-primary);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
}

.button--outline:hover,
.button--outline:focus {
  color: #fff;
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(28, 37, 57, 0.2);
}

.button--outline .fas {
  font-size: 0.85em;
  margin-left: 4px;
  transition: transform 0.3s ease;
}

.button--outline:hover .fas {
  transform: translateX(3px);
}

/* Navbar'daki Kolay Başvuru Butonu */
.header-menu .kolay-basvuru-btn {
  margin-top: 0;
  margin-bottom: 0;
  margin-right: 15px;
  font-weight: 600;
}

/* Mobil Görünüm İçin */
@media (max-width: 991px) {
  .header-menu .kolay-basvuru-btn {
    margin: 15px 0;
    width: 100%;
    justify-content: center;
  }
}

/* ========================================
   KAPSAMLI MOBİL RESPONSIVE DÜZELTMELER
   ======================================== */

/* Genel Taşma Önleme */
html,
body {
  overflow-x: hidden;
  max-width: 100%;
}


/* ========== TABLET (max 991px) ========== */
@media (max-width: 991px) {

  /* Header Düzeltmeleri */
  .header-2 {
    --top: 15px;
  }

  .header-grid {
    padding: 10px 15px;
  }

  .header-logo {
    max-width: 150px;
  }

  /* Hero Banner Düzeltmeleri */
  .hero-banner {
    min-height: auto;
    padding-top: 120px !important;
    padding-bottom: 60px;
  }

  .hero-banner.with-floating-header {
    padding-top: 130px !important;
  }

  .hero-banner .grid {
    gap: 30px;
  }

  .hero-banner .content .heading {
    font-size: 36px;
    line-height: 1.2;
  }

  .hero-banner .content .text {
    font-size: 16px;
  }

  .hero-banner .buttons {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  /* Thumb Slider Mobil Düzeltmeleri */
  .thumb-slider {
    padding-left: 5%;
    padding-right: 5%;
    margin-top: -8%;
  }

  .thumb-img {
    width: 120px !important;
    height: 100px !important;
  }

  /* Footer Düzeltmeleri */
  .footer-custom-row {
    grid-template-columns: 1fr !important;
    gap: 30px;
  }

  .footer-widget {
    text-align: center;
  }

  .footer-widget-brand {
    text-align: center;
  }

  .footer-logo {
    margin: 0 auto 20px;
  }

  .social-icons {
    justify-content: center;
  }

  .footer-menu {
    text-align: center;
  }

  .footer-bottom-row {
    text-align: center;
  }

  .footer-copyright {
    text-align: center;
  }

  /* İçerik Sayfaları Düzeltmeleri */
  .content-wrapper {
    padding: 40px 25px;
    margin: 0 15px;
  }

  .page-header {
    padding: 140px 0 50px !important;
  }

  .page-title {
    font-size: 2.2rem;
  }

  .page-content {
    padding: 60px 0;
  }
}

/* ========== MOBİL (max 767px) ========== */
@media (max-width: 767px) {

  /* Header Düzeltmeleri */
  .header-2 {
    --top: 10px;
  }

  .header-grid {
    padding: 8px 12px;
  }

  .header-logo {
    max-width: 120px;
  }

  /* Hero Banner Düzeltmeleri */
  .hero-banner {
    padding-top: 100px !important;
    padding-bottom: 40px;
  }

  .hero-banner.with-floating-header {
    padding-top: 110px !important;
  }

  .hero-banner .container-fluid {
    padding-left: 15px;
    padding-right: 15px;
  }

  .hero-banner .content .heading {
    font-size: 28px;
    line-height: 1.25;
  }

  .hero-banner .content .text {
    font-size: 14px;
    line-height: 1.6;
  }

  .hero-banner .button {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
  }

  .hero-banner .button--outline {
    width: 100%;
    justify-content: center;
  }

  /* Banner Slider Düzeltmeleri */
  .banner-slider {
    margin-top: 30px;
  }

  .thumb-slider {
    padding-left: 3%;
    padding-right: 3%;
    margin-top: -10%;
  }

  .thumb-img {
    width: 80px !important;
    height: 70px !important;
  }

  .thumb-img img {
    border-radius: 6px;
  }

  .hero-banner .swiper-button-prev,
  .hero-banner .swiper-button-next {
    display: none;
  }

  /* Footer Düzeltmeleri */
  .footer-top {
    padding: 40px 0;
  }

  .footer-bottom {
    padding: 20px 0;
  }

  .footer-widget-brand .text {
    font-size: 14px;
  }

  .footer-menu li {
    margin-bottom: 12px;
  }

  .footer-menu .link {
    font-size: 14px;
  }

  /* İçerik Sayfaları Düzeltmeleri */
  .page-header {
    padding: 110px 0 40px !important;
  }

  .page-title {
    font-size: 1.75rem;
  }

  .content-wrapper {
    padding: 25px 15px;
    margin: 0 10px;
    border-radius: 8px;
  }

  .page-content {
    padding: 40px 0;
  }

  .page-content-text h2 {
    font-size: 1.5rem;
  }

  .page-content-text h3 {
    font-size: 1.25rem;
  }

  /* Genel Yazı Boyutu Optimizasyonları */
  .text-80,
  .text-90 {
    font-size: 32px;
  }

  .text-50 {
    font-size: 28px;
  }

  .text-36 {
    font-size: 24px;
  }

  .text-32,
  .text-30 {
    font-size: 22px;
  }

  .text-28 {
    font-size: 20px;
  }

  .text-24 {
    font-size: 18px;
  }

  /* Buton Düzeltmeleri */
  .button {
    font-size: 14px;
    padding: 8px 15px;
  }

  .button .svg-wrapper {
    min-width: 30px;
    height: 30px;
  }

  /* Çerez Bildirimi Mobil */
  .cookie-consent .cookie-content {
    padding: 10px;
  }

  .cookie-text {
    min-width: auto;
    margin-bottom: 12px;
  }

  .cookie-text p {
    font-size: 12px;
  }

  .cookie-button {
    padding: 6px 15px;
    font-size: 13px;
  }
}

/* ========== KÜÇÜK MOBİL (max 480px) ========== */
@media (max-width: 480px) {

  /* Header */
  .header-logo {
    max-width: 100px;
  }

  .header-2 {
    --top: 8px;
  }

  /* Hero Banner */
  .hero-banner {
    padding-top: 90px !important;
    padding-bottom: 30px;
  }

  .hero-banner.with-floating-header {
    padding-top: 100px !important;
  }

  .hero-banner .content .heading {
    font-size: 24px;
  }

  .hero-banner .content .text {
    font-size: 13px;
  }

  /* Thumb Slider Gizle */
  .thumb-slider {
    display: none;
  }

  /* İçerik Sayfaları */
  .page-header {
    padding: 100px 0 30px !important;
  }

  .page-title {
    font-size: 1.5rem;
  }

  .content-wrapper {
    padding: 20px 12px;
    margin: 0 5px;
  }

  /* Footer */
  .footer-logo {
    max-width: 140px;
  }

  .social-icons {
    gap: 6px;
  }

  .social-link {
    width: 38px;
    height: 38px;
  }

  /* Tablo Overflow Düzeltmesi */
  .page-content-text table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  /* Yazı Boyutları */
  .text-80,
  .text-90 {
    font-size: 26px;
  }

  .text-50 {
    font-size: 22px;
  }
}

/* ========== MOBİL MENÜ STİLLERİ ========== */
/* Mobil menü stilleri gimer.css dosyasında tanımlanmıştır */
/* Çakışmayı önlemek için bu bölüm boşaltılmıştır */

/* ========== YATAY SCROLL ÖNLEME ========== */
img,
video,
iframe,
embed,
object {
  max-width: 100%;
  height: auto;
}

table {
  max-width: 100%;
  overflow-x: auto;
  display: block;
}

pre,
code {
  max-width: 100%;
  overflow-x: auto;
  word-wrap: break-word;
}

/* İçerik alanlarındaki taşmaları önle */
.page-content-text,
.content-wrapper {
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
}

/* ========================================
   DESKTOP MENÜ DÜZELTMESİ (>= 1024px)
   style.css 991px breakpoint'i ile Tailwind
   lg (1024px) arasındaki uyumsuzluğu giderir
   ======================================== */
@media (min-width: 1024px) {

  /* Menüyü drawer modundan çıkar, normal position'a al */
  .header-nav {
    position: relative !important;
    transform: translateX(0) !important;
    background: transparent !important;
    width: auto !important;
    height: auto !important;
    overflow-y: visible !important;
    z-index: auto !important;
    top: auto !important;
    right: auto !important;
  }

  /* Hamburger ikonunu masaüstünde tamamen gizle */
  .menu-open {
    display: none !important;
  }

  /* Ana menüyü yatay göster */
  .header-menu {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
  }

  .header-menu>* {
    width: auto !important;
  }

  /* Mobil menü başlığını (logo + kapat butonu) masaüstünde gizle */
  .header-nav-headings {
    display: none !important;
  }

  /* Masaüstü slogan alanını gizle (mobil versiyonu) */
  .header-nav .lg\:hidden.w-full {
    display: none !important;
  }

  /* Submenu masaüstü konumlandırması */
  .menu-absolute {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
  }

  .header-grandmenu {
    left: 100%;
    top: 0;
    z-index: 1001;
  }

  .header-submenu {
    width: max-content;
    border-radius: var(--submenu-radius, 8px);
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    max-height: none;
    overflow: visible;
  }

  .nav-item:hover > .menu-absolute,
  .nav-item:focus-within > .menu-absolute {
    opacity: 1;
    visibility: visible;
  }

  /* Nav item overflow görünür */
  .nav-item {
    position: relative;
    overflow: visible;
  }

  /* Ana menü link padding */
  .menu-link-main {
    padding: 28px 15px;
  }

  /* Kolay Başvuru butonu */
  .header-menu .kolay-basvuru-btn {
    margin: 0 10px 0 0;
  }
}

/* 992px - 1023px arası (style.css artık drawer modundan çıkardı ama Tailwind lg henüz devreye girmedi) */
@media (min-width: 992px) and (max-width: 1023px) {
  .header-nav {
    position: relative !important;
    transform: translateX(0) !important;
    background: transparent !important;
    width: auto !important;
    height: auto !important;
    overflow-y: hidden !important;
    z-index: auto !important;
    top: auto !important;
    right: auto !important;
  }

  .menu-open {
    display: none !important;
  }

  .header-menu {
    display: flex !important;
  }

  .header-menu>* {
    width: auto !important;
  }

  .header-nav-headings {
    display: none !important;
  }
}