/* ============================================
   YAPI-YOL SEN - MODERN FRONTEND STILLERI
   ============================================ */

/* ---- GENEL SIFIRLAMA & TIPOGRAFI ---- */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  background: #f5f6fa;
  line-height: 1.6;
}

a { color: #0052c2; text-decoration: none; transition: color 0.2s; }
a:hover { color: #003d8f; text-decoration: none; }

/* ---- HEADER ---- */

/* Üst bilgi çubuğu */
.header-top-bar {
  background: #1a1a2e;
  color: #ccc;
  font-size: 11px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.header-top-bar span {
  font-size: 11px;
  color: #ccc;
}
.header-top-bar a {
  color: #8ab4f8;
  text-decoration: none;
}
.header-top-bar a:hover { color: #fff; }
.header-top-bar i {
  margin-right: 4px;
  font-size: 11px;
  color: #8ab4f8;
}
.top-sep {
  margin: 0 12px;
  color: #555;
}

/* Ana header satırı */
.header-main-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  min-height: 82px;
}

/* Logo alanı */
.header-logo-area a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none !important;
}
.header-logo-img {
  width: 60px;
  height: auto;
  flex-shrink: 0;
}
.header-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.logo-title {
  font-size: 18px;
  font-weight: 800;
  color: #3398cc;
  letter-spacing: 0.5px;
}
.logo-subtitle {
  font-size: 10px;
  font-weight: 600;
  color: #555;
  line-height: 1.3;
  margin-top: 1px;
}
.logo-sub2 {
  font-size: 10px;
  font-weight: 700;
  color: #333;
  margin-top: 1px;
}

/* Ana menü */
.header-menu-area {
  display: flex;
  align-items: center;
  gap: 8px;
}
.main-nav .nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2px;
}
.nav-menu > li {
  position: relative;
}
.nav-menu-link {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  color: #333 !important;
  text-decoration: none !important;
  border-radius: 6px;
  transition: all 0.2s;
  white-space: nowrap;
}
.nav-menu-link:hover {
  background: #e8f0fe;
  color: #0052c2 !important;
}

/* Yumuşak kaydırma (smooth-scroll.js yerine) */
html {
  scroll-behavior: smooth;
}

/* Dropdown menü - tüm çakışan stilleri override et */
.nav-menu > li > .sub-menu,
.nav-menu > li > .dropdown-menu.sub-menu {
  display: none !important;
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  background: #fff !important;
  min-width: 220px !important;
  border-radius: 8px !important;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12) !important;
  border: 1px solid #eee !important;
  padding: 6px 0 !important;
  z-index: 9999 !important;
  list-style: none !important;
  max-height: none !important;
  overflow: visible !important;
  opacity: 1 !important;
  float: none !important;
  transform: none !important;
  margin: 0 !important;
}
.nav-menu > li:hover > .sub-menu,
.nav-menu > li:hover > .dropdown-menu.sub-menu {
  display: block !important;
}

/* Dropdown menü parent elemanlarının taşmayı kesmesini engelle */
.header-body,
.header-main-row,
.header-menu-area,
.main-nav,
#mainNavWrap,
.nav-menu,
.nav-menu > li,
section.menu,
section.menu > .body,
#header,
#header .header-body {
  overflow: visible !important;
}
.sub-menu-link {
  display: block;
  padding: 9px 18px;
  font-size: 13px;
  color: #333 !important;
  text-decoration: none !important;
  transition: all 0.15s;
}
.sub-menu-link:hover {
  background: #f0f4ff;
  color: #0052c2 !important;
  padding-left: 22px;
}

/* Hamburger butonu - masaüstünde gizle */
.hamburger-btn {
  display: none;
  background: #0052c2;
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.2s;
}
.hamburger-btn:hover {
  background: #003d8f;
}

/* ---- SECTION BASLIKLARI ---- */
.section-title {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 3px solid #0052c2;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.section-title i {
  color: #0052c2;
  margin-right: 10px;
}
.section-title .see-all {
  font-size: 13px;
  font-weight: 600;
  color: #0052c2;
  background: #e8f0fe;
  padding: 5px 14px;
  border-radius: 20px;
  transition: all 0.2s;
}
.section-title .see-all:hover {
  background: #0052c2;
  color: #fff;
}

/* ---- SECTION WRAPPER ---- */
.site-section {
  padding: 35px 0;
  background: #fff;
  margin-bottom: 8px;
  border-bottom: 1px solid #eee;
}
.site-section:nth-child(even) {
  background: #fafbfc;
}

/* ---- HABER KARTLARI ---- */
.news-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #f0f0f0;
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}
.news-card .card-img {
  height: 180px;
  overflow: hidden;
  position: relative;
}
.news-card .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.news-card:hover .card-img img {
  transform: scale(1.05);
}
.news-card .card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #0052c2;
  color: #fff;
  padding: 4px 12px;
  font-size: 11px;
  border-radius: 20px;
  font-weight: 600;
}
.news-card .card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.news-card .card-date {
  font-size: 12px;
  color: #999;
  margin-bottom: 8px;
}
.news-card .card-date i {
  color: #0052c2;
  margin-right: 5px;
}
.news-card h6 {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.4;
  margin-bottom: 10px;
}
.news-card .card-excerpt {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
  flex: 1;
  margin-bottom: 12px;
}
.news-card .btn-read {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #0052c2, #0070e0);
  color: #fff;
  padding: 9px 20px;
  font-size: 13px;
  border-radius: 8px;
  text-decoration: none;
  width: fit-content;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-top: auto;
  letter-spacing: 0.3px;
}
.news-card .btn-read i {
  font-size: 11px;
  transition: transform 0.3s ease;
}
.news-card .btn-read:hover {
  background: linear-gradient(135deg, #003d8f, #0052c2);
  color: #fff;
  transform: translateX(2px);
  box-shadow: 0 4px 12px rgba(0, 82, 194, 0.3);
}
.news-card .btn-read:hover i {
  transform: translateX(3px);
}

/* ---- KADIN HABER BADGE ---- */
.news-card .card-badge.purple { background: #7c3aed; }
.news-card .btn-read.purple { background: #7c3aed; }
.news-card .btn-read.purple:hover { background: #5b21b6; }

/* ---- OWL CAROUSEL ESIT YUKSEKLIK ---- */
.owl-carousel .owl-stage {
  display: flex !important;
}
.owl-carousel .owl-item {
  display: flex;
  flex: 1;
}
.owl-carousel .owl-item .items {
  display: flex;
  flex: 1;
  width: 100%;
}
.owl-carousel .owl-item .items .news-card {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.owl-carousel .owl-item .items .news-card .card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.owl-carousel .owl-item .items .news-card .card-body .btn-read {
  margin-top: auto;
}

/* ---- SIDEBAR KARTLARI ---- */
.sidebar-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border: 1px solid #f0f0f0;
  margin-bottom: 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Satırdaki tüm kartları eşit yükseklikte tut */
.row > [class*="col"] {
  display: flex;
  flex-direction: column;
}
.row > [class*="col"] > .sidebar-card {
  flex: 1;
}
.sidebar-card .sidebar-title {
  font-size: 17px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e8f0fe;
  display: flex;
  align-items: center;
}
.sidebar-card .sidebar-title i {
  color: #0052c2;
  margin-right: 8px;
  font-size: 16px;
}

/* ---- FORM / INDIRME LISTESI ---- */
.download-list .download-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 13px;
  font-weight: 500;
  color: #333;
}
.download-list .download-item:last-child { border-bottom: none; }
.download-list .btn-download {
  background: #0052c2;
  color: #fff;
  padding: 4px 12px;
  font-size: 11px;
  border-radius: 5px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s;
}
.download-list .btn-download:hover { background: #003d8f; color: #fff; }

/* ---- MEDIA LIST (Yazar, Genel Merkez, Hukuki vb.) ---- */
.media-list-item {
  display: flex;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}
.media-list-item:last-child { border-bottom: none; }
.media-list-item img {
  width: 65px;
  height: 65px;
  object-fit: cover;
  border-radius: 10px;
  margin-right: 12px;
  flex-shrink: 0;
}
.media-list-item .media-content h6 {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 4px;
  line-height: 1.3;
}
.media-list-item .media-content p {
  font-size: 12px;
  color: #888;
  margin-bottom: 0;
  line-height: 1.4;
}
.media-list-item .media-content .item-date {
  font-size: 11px;
  color: #aaa;
}

/* ---- GALERI & VIDEO BOLUMLERI ---- */
.gallery-section,
.video-section {
  padding: 40px 0;
  background: #fff;
}

.gallery-info-card,
.video-info-card {
  background: #f5f6fa;
  border-radius: 15px;
  padding: 25px 20px;
  text-align: center;
  border: 1px solid #e8e8e8;
  transition: transform 0.3s;
}
.gallery-info-card:hover,
.video-info-card:hover {
  transform: translateY(-4px);
}
.gallery-info-card .btn:hover,
.video-info-card .btn:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.gallery-section .gallery-item:hover .gallery-img { transform: scale(1.08); }
.gallery-section .gallery-item:hover .gallery-overlay { opacity: 1 !important; }
.video-item { transition: transform 0.3s; }
.video-item:hover { transform: translateY(-5px); }

/* ---- BLOG KARTLARI ---- */
.blog-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border: 1px solid #f0f0f0;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}
.blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.blog-card .blog-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-card h6 { font-size: 15px; font-weight: 700; color: #1a1a2e; margin-bottom: 8px; }
.blog-card p { font-size: 13px; color: #666; flex: 1; margin-bottom: 12px; }
.blog-card .btn-read {
  display: inline-block;
  background: #0052c2;
  color: #fff;
  padding: 7px 18px;
  font-size: 12px;
  border-radius: 6px;
  text-decoration: none;
  width: fit-content;
  font-weight: 600;
  transition: background 0.2s;
}
.blog-card .btn-read:hover { background: #003d8f; color: #fff; }

/* ---- ILETISIM FORMU ---- */
.contact-section {
  background: #fff;
  padding: 40px 0;
}
.contact-section .form-label {
  font-weight: 600;
  color: #1a1a2e;
  font-size: 13px;
}
.contact-section .form-control {
  border-radius: 8px;
  border: 1px solid #ddd;
  padding: 10px 14px;
  font-size: 14px;
  transition: border-color 0.2s;
}
.contact-section .form-control:focus {
  border-color: #0052c2;
  box-shadow: 0 0 0 3px rgba(0,82,194,0.1);
}
.contact-section .btn-submit {
  background: #0052c2;
  color: #fff;
  padding: 10px 30px;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}
.contact-section .btn-submit:hover { background: #003d8f; }

/* ---- KURUM LOGOLARI ---- */
.partner-logos {
  background: #fff;
  padding: 30px 0;
  border-top: 1px solid #eee;
}
.partner-logos img {
  width: 70px;
  height: 50px;
  object-fit: contain;
  border-radius: 6px;
  border: 1px solid #eee;
  padding: 4px;
  transition: transform 0.2s;
}
.partner-logos img:hover { transform: scale(1.1); }
.partner-logos .partner-label {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a2e;
  border-right: 2px solid #0052c2;
  padding-right: 15px;
  margin-right: 15px;
}

/* ---- FOOTER ---- */
.site-footer {
  background: #1a1a2e;
  color: #ccc;
  padding: 30px 0 15px;
}
.site-footer hr { border-color: rgba(255,255,255,0.1); }
.site-footer .copyright { font-size: 13px; color: #999; }
.site-footer .soc-item a { color: #999; transition: color 0.2s; }
.site-footer .soc-item a:hover { color: #fff; }

/* ---- RESPONSIVE ---- */

/* === GENEL MOBIL KURALLAR === */
img { max-width: 100%; height: auto; }
iframe { max-width: 100%; }
table { max-width: 100%; overflow-x: auto; display: block; }

/* Container ortalama - Bootstrap varsayılanlarını koru */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
}

/* === TABLET (max 992px) === */
@media (max-width: 992px) {
  /* Yeni header responsive */
  .header-top-bar { display: none; }
  .header-main-row { flex-wrap: wrap; padding: 6px 0; }
  .header-logo-img { width: 38px !important; }
  .logo-title { font-size: 13px; }
  .logo-subtitle { font-size: 7px; }
  .logo-sub2 { font-size: 7px; }
  
  /* Hamburger göster, menü gizle */
  .hamburger-btn { display: block !important; }
  .main-nav { display: none; }
  .main-nav.show {
    display: block !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    z-index: 9999;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-radius: 0 0 12px 12px;
    padding: 8px 0;
  }
  .main-nav.show .nav-menu {
    flex-direction: column;
    width: 100%;
    gap: 0;
  }
  .main-nav.show .nav-menu > li {
    width: 100%;
    border-bottom: 1px solid #f0f0f0;
  }
  .main-nav.show .nav-menu-link {
    padding: 12px 20px;
    border-radius: 0;
    font-size: 14px;
  }
  .main-nav.show .sub-menu {
    position: static !important;
    box-shadow: none !important;
    border: none !important;
    background: #f8f9fa;
    border-radius: 0;
    min-width: auto;
  }
  .main-nav.show .sub-menu-link {
    padding: 10px 35px;
    font-size: 13px;
  }
  
  /* Kutu sabit genişlikleri kaldır */
  .kutu, .kutum {
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* === MOBİL (max 768px) === */
@media (max-width: 768px) {
  body { font-size: 14px; }
  
  /* Header */
  .header-top-bar { display: none; }
  .header-main-row { padding: 4px 0; min-height: auto; }
  .header-logo-img { width: 32px !important; }
  .logo-title { font-size: 11px; }
  .logo-subtitle { font-size: 6px; }
  .logo-sub2 { font-size: 6px; }

  /* Section başlıkları */
  .section-title { font-size: 16px; flex-wrap: wrap; gap: 8px; }
  .section-title .see-all { font-size: 11px; padding: 4px 10px; }

  /* Haber kartları */
  .news-card .card-img { height: 150px; }
  .news-card .card-body { padding: 12px; }
  .news-card h6 { font-size: 13px; }
  .news-card .card-excerpt { font-size: 12px; }
  .news-card .btn-read { padding: 7px 14px; font-size: 12px; }

  /* Blog kartları */
  .blog-card img { height: 160px; }
  .blog-card .blog-body { padding: 12px; }

  /* Sidebar kartları */
  .sidebar-card {
    margin-bottom: 15px;
    height: auto !important;
  }
  .sidebar-title { font-size: 15px; flex-wrap: wrap; gap: 5px; }

  /* Media list */
  .media-list-item img { width: 50px; height: 50px; }
  .media-list-item .media-content h6 { font-size: 13px; }

  /* Download list */
  .download-list .download-item {
    flex-wrap: wrap;
    gap: 8px;
  }
  .download-list .download-item span { flex: 1; min-width: 0; word-break: break-word; }

  /* Partner logolar */
  .partner-logos .partner-label {
    border-right: none;
    border-bottom: 2px solid #0052c2;
    padding-bottom: 10px;
    margin-bottom: 10px;
    padding-right: 0;
    margin-right: 0;
    display: block;
    text-align: center;
  }
  .partner-logos img { width: 55px; height: 40px; }

  /* İletişim formu */
  .contact-section .btn-submit { width: 100%; }

  /* Galeri & Video bölümleri */
  .gallery-info-card, .video-info-card { margin-bottom: 20px; }
  #gallery-prev, #gallery-next,
  #video-prev, #video-next { display: none !important; }

  /* Tablo taşması engelle - body düzeyinde hallediliyor (html overflow-x:hidden) */
  
  /* Google Maps iframe */
  .google-map iframe { width: 100% !important; height: 300px !important; }
  
  /* Sabit genişlikli kartlar */
  .kutu, .kutum {
    width: 100% !important;
    max-width: 100% !important;
  }
  
  /* card-group mobilde düzelt */
  .card-group {
    flex-direction: column !important;
  }
  .card-group .card {
    margin-bottom: 15px;
  }
  
  /* Sabit yükseklikli kartları düzelt */
  .card[style*="height:380px"],
  .card[style*="height: 380px"] {
    height: auto !important;
  }
  
  /* Sabit genişlikli resimleri düzelt */
  img[style*="width:450px"],
  img[style*="width: 450px"] {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
  }
  
  /* Yan menü mobilde sonra gelsin */
  .row > .col-md-3:has(.list-group) { order: 2; }
  .row > .col-md-9 { order: 1; }
  
  /* Footer */
  .site-footer .row { text-align: center; }
  .site-footer .d-flex { justify-content: center !important; margin-top: 10px; }
  
  /* Duyuru section */
  .duyuru-section { margin-top: 15px; }
  .duyuru-item { padding: 10px; }
  .duyuru-item .duyuru-title { font-size: 13px; }
}

/* === KÜÇÜK MOBİL (max 480px) === */
@media (max-width: 480px) {
  /* Header daha da küçült */
  .header-logo-img { width: 28px !important; }
  .logo-title { font-size: 10px; }
  .logo-subtitle { display: none; }
  .logo-sub2 { display: none; }
  
  /* Kartlar */
  .news-card .card-img { height: 130px; }
  .blog-card img { height: 140px; }
  
  /* Section padding */
  .site-section { padding: 20px 0; }
  
  /* Galeri resimleri */
  .gallery-item img { height: 120px !important; }
  
  /* Video iframe */
  .video-item iframe { height: 140px !important; }
  
  /* Form alanları */
  .form-control { font-size: 16px !important; /* iOS zoom engelle */ }
  
  /* Partner logolar */
  .partner-logos img { width: 45px; height: 35px; }
  
  /* Download butonları */
  .download-list .btn-download { width: 100%; text-align: center; margin-top: 5px; }
  
  /* Carousel caption */
  .carousel-caption { padding: 10px !important; }
  .carousel-caption p { font-size: 11px !important; }
}

/* ---- AFİŞ CAROUSEL EŞİT YÜKSEKLIK ---- */
.sidebar-card .carousel {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.sidebar-card .carousel .carousel-inner {
  flex: 1;
}
.sidebar-card .carousel .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

/* ---- CAROUSEL INDICATORS ---- */
.carousel-indicators li {
  background-color: rgba(0,82,194,0.4);
}
.carousel-indicators .active {
  background-color: #0052c2;
}
.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(0,0,0,0.3);
  border-radius: 50%;
  padding: 15px;
  background-size: 50%;
}

/* ---- OWL CAROUSEL OVERRIDES ---- */
.owl-carousel .owl-nav.disabled { display: none !important; }
.owl-dots { text-align: center; margin-top: 10px; }
.owl-dot span {
  width: 10px; height: 10px;
  display: inline-block;
  background: #ddd;
  border-radius: 50%;
  margin: 0 4px;
  transition: background 0.2s;
}
.owl-dot.active span { background: #0052c2; }

/* ---- SMOOTH SCROLL & TRANSITIONS ---- */
html { scroll-behavior: smooth; }
img { max-width: 100%; height: auto; }
* { box-sizing: border-box; }

/* ---- SIDEBAR TITLE SEE-ALL INSIDE ---- */
.sidebar-title .see-all {
  font-size: 11px;
  font-weight: 600;
  color: #0052c2;
  background: #e8f0fe;
  padding: 3px 10px;
  border-radius: 15px;
  transition: all 0.2s;
  text-decoration: none;
}
.sidebar-title .see-all:hover {
  background: #0052c2;
  color: #fff;
}

/* ---- BTN-DOWNLOAD EXTRA ---- */
.btn-download {
  display: inline-block;
  background: #0052c2;
  color: #fff !important;
  padding: 3px 10px;
  font-size: 11px;
  border-radius: 5px;
  text-decoration: none !important;
  transition: background 0.2s;
}
.btn-download:hover {
  background: #003d8f;
}
.btn-download i { margin-right: 4px; }

/* ---- CONTACT FORM LABEL ---- */
.contact-section .form-label {
  font-weight: 600;
  color: #1a1a2e;
  font-size: 13px;
  margin-bottom: 5px;
  display: block;
}


/* ---- SMOOTH SCROLL ---- */
html { scroll-behavior: smooth; }
