/* === GENEL RENK PALETİ === */
:root {
  --bg: #f4f7f6;
  --surface: #ffffff;
  --surface2: #f8fafc;
  --text: #1a1a1a;
  --muted: #64748b;
  --line: #e2e8f0;
  --brand: #7b1818; /* Bordo */
  --brand-hover: #5c1212;
  --navBg: #111111; /* Antrasit */
  --navBgDark: #050505;
  --shadow: 0 15px 35px rgba(0,0,0,0.08);
  --radius: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', system-ui, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; overflow-x: hidden; }
a { text-decoration: none; color: inherit; transition: 0.3s ease; }
.container { width: min(1250px, 95%); margin-inline: auto; position: relative; }

/* === INTRO (Karşılama Ekranı) === */
.gbs-intro-wrapper { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: linear-gradient(135deg, #111111 0%, #7b1818 100%); z-index: 999999; display: flex; align-items: center; justify-content: center; transition: 0.8s ease; }
.gbs-intro-wrapper.gizle { opacity: 0; visibility: hidden; }
.intro-content { text-align: center; color: #fff; animation: asagidanGel 1.2s; }
.intro-logo { width: 150px; height: 150px; object-fit: cover; border-radius: 50%; margin-bottom: 25px; animation: kalpAtisi 2.5s infinite; box-shadow: 0 10px 25px rgba(0,0,0,0.5); }
.intro-title { font-size: 36px; font-weight: 900; text-transform: uppercase; margin-bottom: 15px; }
.intro-text { font-size: 18px; color: #e2e8f0; margin-bottom: 40px; }
.intro-btn { background: #fff; color: var(--brand); border: none; padding: 15px 40px; border-radius: 50px; font-weight: 900; cursor: pointer; transition: 0.4s; }
.intro-btn:hover { transform: scale(1.05); box-shadow: 0 10px 20px rgba(0,0,0,0.3); }
@keyframes asagidanGel { 0% { opacity: 0; transform: translateY(40px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes kalpAtisi { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }

/* === TOPBAR === */
.topbar { background: var(--navBgDark); color: #fff; padding: 8px 0; font-size: 12px; font-weight: 700; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; }
.topbar-left, .topbar-right { display: flex; gap: 15px; align-items: center; }
.topchip { display: flex; align-items: center; gap: 5px; border: 1px solid rgba(255,255,255,0.2); padding: 4px 12px; border-radius: 20px; transition: 0.3s; }
.topchip:hover { background: var(--brand); border-color: var(--brand); }
.social-icons a { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,0.3); border-radius: 50%; }
.social-icons a:hover { background: var(--brand); }

/* === HEADER VE LOGO (Masaüstü) === */
.header { background: var(--navBg); position: sticky; top: 0; z-index: 1000; box-shadow: 0 4px 20px rgba(0,0,0,0.15); height: 80px; display: flex; align-items: center; border-bottom: 3px solid var(--brand); }
.header__inner { display: flex; justify-content: space-between; align-items: center; width: 100%; position: relative; }
.nav-group { display: flex; gap: 5px; align-items: center; }
.nav-group a, .dropbtn { color: #fff; font-weight: 800; font-size: 14px; padding: 10px 15px; text-transform: uppercase; border-radius: 8px; cursor: pointer; display: flex; align-items: center; gap: 4px; }
.nav-group a:hover, .dropdown:hover .dropbtn { background: rgba(255,255,255,0.1); color: var(--brand); }

/* 🚀 KANKA LOGO ZOOM FİXİ 🚀 
   Logonun içindeki beyaz çemberi yok etmek için resmi %32 yakınlaştırıp dışarı taşırıyoruz! */
.center-logo-wrap { 
    position: absolute; left: 50%; top: -5px; transform: translateX(-50%); 
    background: transparent; border-radius: 50%; width: 160px; height: 160px; 
    display: flex; align-items: center; justify-content: center; 
    box-shadow: 0 10px 25px rgba(123, 24, 24, 0.4); z-index: 1001; 
    border: 5px solid var(--navBg); 
    overflow: hidden; padding: 0; 
}
.center-logo-wrap img { 
    width: 100%; height: 100%; object-fit: cover; border-radius: 50%; 
    display: block; transform: scale(1.32) !important; /* İşte o sihirli dokunuş */
}

/* Masaüstü Alt Menüler */
.dropdown { position: relative; }
.dropdown-content { display: none; position: absolute; background: #fff; min-width: 220px; box-shadow: var(--shadow); border-radius: 8px; top: 100%; left: 0; padding: 10px 0; border-top: 4px solid var(--brand); }
.dropdown:hover .dropdown-content { display: block; animation: fadeIn 0.2s ease; }
.dropdown-content a { color: var(--text) !important; padding: 12px 20px !important; display: block !important; border-bottom: 1px solid var(--line); font-size: 13px !important; }
.dropdown-content a:hover { background: var(--surface2) !important; color: var(--brand) !important; padding-left: 25px !important; }
@keyframes fadeIn { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }

/* Mobil Menü Konteyneri Başlangıçta Gizli */
.mobile-menu-container { display: none; width: 100%; }
.mobile-nav { display: none; }

/* === SAYFA BAŞLIKLARI (Kurumsal vb. İç Sayfalar İçin) === */
.page-banner { padding: 160px 0 60px 0 !important; background: linear-gradient(135deg, var(--brand) 0%, #3a0b0b 100%) !important; text-align: center; border-bottom: 4px solid var(--navBg); box-shadow: inset 0 -10px 20px rgba(0,0,0,0.2); margin-bottom: 40px; }
.page-banner h1, .page-banner h2 { color: #ffffff !important; font-size: 42px; font-weight: 900; text-transform: uppercase; margin: 0; text-shadow: 0 5px 15px rgba(0,0,0,0.5); }

/* === İÇ SAYFALAR KÜRESEL KORUMA === */
.content-card {
  background: #fff; padding: 50px; border-radius: 16px; box-shadow: var(--shadow);
  border: 1px solid var(--line); margin-bottom: 60px; color: var(--text);
  overflow-wrap: break-word !important; word-wrap: break-word !important; max-width: 100% !important; overflow: hidden;
}

/* 📸 SİBER FOTOĞRAF KORUMASI 📸 */
/* Önce sayfaya eklenen her resmin taşmasını engelleyelim */
.content-card img {
  max-width: 100% !important;
  height: auto !important;
  box-sizing: border-box !important;
  border-radius: 12px;
}

/* Sonra sadece Yönetim Kurulu veya ortalanmış Başkan/Avukat fotoğraflarını "Sıkı Yönetim" altına alalım */
.content-card div[style*="text-align: center"] img,
.content-card table img {
  width: 100% !important;
  max-width: 220px !important; /* BAŞKANIN FOTOĞRAFI 220 PİKSELİ GEÇEMEZ */
  height: auto !important;
  aspect-ratio: 1/1 !important; /* Kusursuz tam kare formülü */
  object-fit: cover !important; /* Esnetmeden içini doldurur */
  border-radius: 50% !important; /* Yusyuvarlak yapar */
  margin: 0 auto 15px auto !important;
  display: inline-block !important;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1) !important;
  border: 4px solid var(--brand) !important; /* Etrafına çok şık bir bordo sendika çerçevesi atar */
}

/* İnatçı Tablolar İçin Çözüm */
.content-card table {
  width: 100% !important;
  max-width: 100% !important;
  border-collapse: collapse;
  margin-bottom: 20px;
  table-layout: auto !important;
}

/* === HERO BANNER === */
.hero-banner { width: 100%; height: 600px; position: relative; overflow: hidden; display: flex; align-items: center; }
.hero-video { position: absolute; top: 50%; left: 50%; min-width: 100%; min-height: 100%; width: auto; height: auto; transform: translateX(-50%) translateY(-50%); z-index: 0; object-fit: cover; }
.hero-banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to right, rgba(17, 17, 17, 0.95) 0%, rgba(17, 17, 17, 0.7) 50%, rgba(17, 17, 17, 0.3) 100%); z-index: 1; }
.hero-content { position: relative; z-index: 2; padding-left: 50px; }
.hero-title { font-size: 56px; font-weight: 900; color: #ffffff; line-height: 1.1; margin-bottom: 20px; text-shadow: 0 5px 15px rgba(0,0,0,0.5); }
.hero-subtitle { font-size: 18px; color: rgba(255, 255, 255, 0.9); margin-bottom: 35px; }
.hero-btn { background: var(--brand); color: #fff; padding: 16px 35px; border-radius: 12px; font-weight: bold; border: 2px solid var(--brand); display: inline-block; }
.hero-btn:hover { background: transparent; color: #fff; }

/* === HIZLI LİNKLER === */
.quicklinks-wrapper { position: relative; margin-top: -50px; z-index: 10; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ql-card { background: #fff; border-radius: var(--radius); padding: 25px 20px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 15px; box-shadow: 0 15px 30px rgba(0,0,0,0.1); border-bottom: 4px solid transparent; transition: 0.3s; }
.ql-card:hover { transform: translateY(-5px); border-bottom-color: var(--brand); }
.ql-icon { font-size: 30px; color: var(--brand); background: var(--surface2); width: 65px; height: 65px; display: grid; place-items: center; border-radius: 50%; transition: 0.3s; }
.ql-card:hover .ql-icon { background: var(--brand); color: #fff; }

/* === HABER PORTALI === */
.portal-grid { display: grid; grid-template-columns: 1.8fr 1fr; gap: 20px; align-items: stretch; }
.main-slider { position: relative; height: 500px; border-radius: var(--radius); overflow: hidden; background: #0f172a; box-shadow: var(--shadow); }
.ms-track { display: flex; height: 100%; transition: transform 0.5s ease; width: 100%; }
.ms-item { flex: 0 0 100%; height: 100%; position: relative; display: block; }
.ms-item img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
.ms-caption { position: absolute; bottom: 0; left: 0; right: 0; padding: 60px 40px 50px; background: linear-gradient(transparent, rgba(0,0,0,0.95)); color: #fff; }
.ms-nums { position: absolute; bottom: 0; left: 0; display: flex; background: rgba(0,0,0,0.8); z-index: 10; border-top-right-radius: 12px; overflow-x: auto; }
.ms-num { padding: 12px 20px; color: #fff; font-weight: 900; cursor: pointer; border-right: 1px solid rgba(255,255,255,0.1); transition: 0.3s; }
.ms-num.active { background: var(--brand); }

.side-grid { display: grid; grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(3, 1fr); gap: 15px; height: 500px; }
.side-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); position: relative; display: block; width: 100%; height: 100%; }
.side-card img { width: 100%; height: 100%; object-fit: cover; transition: 0.4s; }
.side-card:hover img { transform: scale(1.1); }
.side-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 15px; background: linear-gradient(transparent, rgba(0,0,0,0.95)); color: #fff; font-size: 12px; font-weight: 800; line-height: 1.3; }

/* === BAŞKANIN MESAJI BÖLÜMÜ === */
.president-section { display: grid; grid-template-columns: 1fr 1fr; background: var(--navBg); border-radius: 20px; overflow: hidden; margin: 60px 0; border-bottom: 5px solid var(--brand); box-shadow: var(--shadow); }
.pres-text { padding: 50px; color: #fff; display: flex; flex-direction: column; justify-content: center; }
.pres-text h2 { font-size: 32px; font-weight: 900; margin-bottom: 15px; color: var(--brand); }
.pres-message-p { font-size: 16px; line-height: 1.8; opacity: 0.9; margin-bottom: 25px; white-space: normal; word-wrap: break-word; overflow-wrap: break-word; }

/* === AKAN BAĞLI KURUMLAR (MARQUEE) === */
.partners-section { background: #fff; padding: 40px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.marquee-wrap { display: flex; width: 200%; animation: scroll 30s linear infinite; }
.marquee-inner { display: flex; justify-content: space-around; width: 100%; }
.partner-box { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 15px 30px; margin: 0 15px; display: flex; align-items: center; justify-content: center; gap: 15px; box-shadow: 0 5px 15px rgba(0,0,0,0.03); flex-shrink: 0; min-width: 250px; }
.partner-box i { font-size: 32px; flex-shrink: 0; }
.partner-box strong { font-size: 16px; color: var(--navBg); white-space: nowrap; }
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* === FOOTER === */
.footer { background: var(--navBg); color: #fff; padding: 70px 0 30px; position: relative; margin-top: 80px; border-top: 5px solid var(--brand); }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1.5fr; gap: 40px; }
.footer h4 { color: var(--brand); font-size: 20px; font-weight: 800; margin-bottom: 20px; border-bottom: 2px solid rgba(255,255,255,0.1); padding-bottom: 10px; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: rgba(255,255,255,0.7); font-size: 15px; transition: 0.3s; }
.footer-links a:hover { color: #fff; padding-left: 8px; }

/* KANKA SİBER LOGO FİX: Footer için de zoom uyguladık */
.footer-logo-box { 
    background: transparent; border-radius: 50%; padding: 0; width: 180px; height: 180px; 
    display: flex; align-items: center; justify-content: center; position: absolute; 
    top: -90px; right: 0; box-shadow: var(--shadow); border: 4px solid var(--brand); overflow: hidden;
}
.footer-logo-box img { 
    width: 100%; height: 100%; object-fit: cover; border-radius: 50%; 
    display: block; transform: scale(1.32) !important; 
}

.footer-contact { margin-top: 100px; text-align: right; }
.footer-contact div { font-size: 22px; font-weight: 900; margin-bottom: 5px; color: #fff; }

/* ========================================================
   MOBİL TASARIM VE KÜRESEL KORUMALAR (Responsive)
   ======================================================== */
@media (max-width: 1024px) {
    .container { width: 92%; }
    
    .desktop-nav { display: none !important; }
    .header { height: auto; padding: 20px 0; display: flex; flex-direction: column; }
    .header__inner { flex-direction: column; align-items: center; justify-content: center; gap: 20px; }
    
    /* Mobil logoyu da zoomlu şekilde oturttuk */
    .center-logo-wrap { position: relative; top: 0; left: 0; transform: none; width: 130px; height: 130px; margin: 0 auto; box-shadow: 0 5px 15px rgba(0,0,0,0.3); border: 4px solid var(--brand); overflow: hidden; padding: 0; background: transparent; }
    .center-logo-wrap img { transform: scale(1.32) !important; }

    .mobile-menu-container { display: flex; flex-direction: column; width: 100%; align-items: center; margin-top: 10px; }
    .mobil-menu-btn { display: flex; align-items: center; justify-content: center; gap: 10px; background: var(--brand); color: #fff; border: none; padding: 14px 20px; border-radius: 8px; font-size: 16px; font-weight: 900; cursor: pointer; width: 100%; max-width: 400px; box-shadow: 0 5px 15px rgba(123, 24, 24, 0.4); }
    
    .mobile-nav { display: none; flex-direction: column; width: 100%; max-width: 400px; background: #1a1a1a; padding: 10px; border-radius: 12px; margin-top: 10px; }
    .mobile-nav.aktif { display: flex; animation: fadeIn 0.3s ease; }
    
    .mobile-nav a, .mobile-nav .dropbtn { color: #fff; padding: 15px; border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 15px; display: block; width: 100%; text-align: left; background: transparent; border: none; font-weight: bold; }
    
    .mobile-nav .dropdown { width: 100%; display: flex; flex-direction: column; }
    .mobile-nav .dropdown-content { position: static; width: 100%; display: none; background: #0a0a0a; border-top: none; padding-left: 15px; margin-top: 0; box-shadow: none; }
    
    .mobile-nav .dropdown:active .dropdown-content, 
    .mobile-nav .dropdown:hover .dropdown-content,
    .mobile-nav .dropdown:focus-within .dropdown-content { display: block; }
    
    .mobile-nav .dropdown-content a { color: #cbd5e1 !important; font-size: 14px !important; border-bottom: 1px solid rgba(255,255,255,0.05); }
    .mobile-nav .dropdown-content a:hover { color: var(--brand) !important; background: transparent !important; }
    
    .page-banner { padding: 60px 0 40px 0 !important; }
    .page-banner h1 { font-size: 26px !important; }
    .content-card { padding: 20px !important; }
    
    /* KANKA İŞTE BURASI ÇOK ÖNEMLİ: Yönetim Kurulunu mobilde alt alta dizip sağa kaymayı engeller */
    .content-card table, .content-card tbody, .content-card tr, .content-card td {
        display: block !important;
        width: 100% !important;
    }
    .content-card td {
        margin-bottom: 30px !important;
        text-align: center !important;
        border-bottom: 1px dashed #eee;
        padding-bottom: 20px;
    }
    .content-card td:last-child {
        border-bottom: none;
    }

    .president-section { grid-template-columns: 1fr; border-radius: 12px; margin: 40px 0; }
    .pres-text { padding: 30px 20px; text-align: center; }
    .pres-img { min-height: 300px; }
    .pres-text .btn { align-self: center !important; }

    .hero-video { display: none !important; }
    .hero-banner { height: auto; min-height: 450px; background: url('assets/placeholder.jpg') center/cover no-repeat; }
    
    .hero-content { padding: 40px 20px; text-align: center; width: 100%; display: flex; flex-direction: column; align-items: center; }
    .hero-title { font-size: 32px; }
    .quicklinks-wrapper { grid-template-columns: repeat(2, 1fr); margin-top: 30px; position: static; }
    .portal-grid { grid-template-columns: 1fr; }
    .side-grid { height: auto; grid-template-rows: auto; }
    .side-card { height: 180px; }
    
    .footer { padding-top: 40px; margin-top: 40px; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 30px; }
    .footer-logo-box { position: relative; top: 0; right: 0; margin: 0 auto 20px auto; width: 140px; height: 140px; }
    .footer-contact { margin-top: 10px; text-align: center; }
}

@media (max-width: 576px) {
    .topbar__inner { flex-direction: column; gap: 10px; }
    .quicklinks-wrapper { grid-template-columns: 1fr; } 
    .side-grid { grid-template-columns: 1fr; } 
    .content-card { padding: 15px !important; font-size: 15px !important; }
}
/* === SAYFA İÇERİĞİ MOBİL KORUMA === */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

main, .section, .content-card {
  max-width: 100%;
}

.content-card {
  overflow: visible !important;
}

.content-card * {
  max-width: 100%;
}

.content-card table[style],
.content-card tr[style],
.content-card td[style],
.content-card div[style],
.content-card p[style] {
  max-width: 100% !important;
}

.content-card table {
  height: auto !important;
}

.content-card iframe {
  max-width: 100% !important;
}

.content-card img {
  display: inline-block;
}

@media (max-width: 1024px) {
  .content-card table {
    display: block !important;
    width: 100% !important;
    height: auto !important;
  }

  .content-card tbody,
  .content-card tr {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    height: auto !important;
  }

  .content-card td {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    padding: 16px 8px !important;
    margin-bottom: 18px !important;
  }

  .content-card img,
  .content-card table img,
  .content-card div[style*="text-align: center"] img {
    width: min(220px, 100%) !important;
    max-width: 100% !important;
    height: auto !important;
  }
}

/* === GLOBAL POPUP === */
body.popup-open {
  overflow: hidden;
}

.site-popup {
  position: fixed;
  inset: 0;
  z-index: 999998;
  display: none;
}

.site-popup.aktif {
  display: block;
}

.site-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(3px);
}

.site-popup__dialog {
  position: relative;
  width: min(92vw, 720px);
  max-height: min(88vh, 900px);
  overflow-y: auto;
  margin: 5vh auto;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 30px 70px rgba(0,0,0,0.35);
  border: 4px solid var(--brand);
}

.site-popup__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(17,17,17,0.9);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  z-index: 2;
}

.site-popup__media {
  background: #f8fafc;
}

.site-popup__media img {
  width: 100%;
  display: block;
  max-height: 360px;
  object-fit: cover;
}

.site-popup__body {
  padding: 28px;
}

.site-popup__title {
  margin: 0 0 12px;
  color: var(--brand);
  font-size: 30px;
  line-height: 1.15;
  font-weight: 900;
}

.site-popup__text {
  color: #334155;
  font-size: 16px;
  line-height: 1.8;
}

.site-popup__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.site-popup__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  padding: 14px 22px;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  border: 2px solid var(--brand);
}

.site-popup__btn--ghost {
  background: #fff;
  color: var(--brand);
}

@media (max-width: 768px) {
  .site-popup__dialog {
    width: calc(100vw - 24px);
    margin: 12px auto;
    max-height: calc(100vh - 24px);
    border-radius: 18px;
  }

  .site-popup__body {
    padding: 22px 16px 18px;
  }

  .site-popup__title {
    font-size: 24px;
    padding-right: 36px;
  }

  .site-popup__text {
    font-size: 15px;
  }

  .site-popup__actions {
    flex-direction: column;
  }

  .site-popup__btn {
    width: 100%;
  }
}
