/*
Theme Name: Shennext Health
Theme URI: https://www.shennext.com
Author: Shennext
Author URI: https://www.shennext.com
Description: Shennext tarafından geliştirilen sağlık projeleri için özel temadır.
Version: 3.0.0
Text Domain: shennext-health
*/

/* ==============================
   RESET / BASE
============================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #111;
  background: #fff;
}

img {
  max-width: 100%;
  display: block;
}

/* ==============================
   TOP BAR
============================== */

.top-bar {
  background: #9ca3af;
  color: #fff;
  font-size: 13px;
}

.top-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-left span {
  margin-right: 16px;
  white-space: nowrap;
}

/* Sağ taraf: arama + giriş + dil */
.top-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.top-right a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

/* SEARCH – TOP BAR İÇİN */
.header-search {
  display: flex;
  align-items: center;
  background: #f3f4f6;
  border-radius: 999px;
  overflow: hidden;
}

.header-search input {
  border: 0;
  background: transparent;
  padding: 6px 12px;
  font-size: 13px;
  outline: none;
  width: 160px;
}

.header-search button {
  border: 0;
  background: transparent;
  padding: 6px 12px;
  cursor: pointer;
}


/* ==============================
   HEADER
============================== */

.site-header {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 10000;
}

/* LOGO + MENU TEK SATIR */
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 220px 1fr;
  align-items: center;
  gap: 16px;
  position: relative;
}

/* LOGO */
.header-logo img {
  max-height: 48px;
  object-fit: contain;
}


/* ==============================
   NAV (DESKTOP) - REVİZE EDİLDİ
============================== */

.header-nav ul {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    gap: 28px;
    margin: 0;
    padding: 0;
}

/* Ana menü öğelerini konumlandır (alt menü buna göre hizalanacak) */
.header-nav > ul > li {
    position: relative;
    padding: 10px 0;
}

.header-nav a {
    font-weight: 600;
    font-size: 15px;
    color: #111;
    text-decoration: none;
    position: relative;
    transition: 0.2s ease;
    white-space: nowrap; /* Menülerin kırılmasını önler */
}

/* Alt Menü (Sub-menu) Paneli */
.header-nav > ul > li > .sub-menu {
    display: none;      /* Varsayılan olarak gizle */
    position: absolute;
    top: 100%;          /* Ana linkin tam altı */
    left: 0;
    background: #ffffff;
    min-width: 200px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 10px 0;
    flex-direction: column; /* Yan yana değil, alt alta dizilim */
    gap: 0;             /* Alt menüde gap olmasın */
    z-index: 1000;
}

/* Üzerine gelince alt menüyü göster */
.header-nav > ul > li:hover > .sub-menu {
    display: flex;
}

/* Alt menü linkleri */
.header-nav .sub-menu li {
    width: 100%;
}

.header-nav .sub-menu a {
    padding: 10px 20px;
    display: block;
    font-size: 14px;
    font-weight: 500;
}

.header-nav .sub-menu a::after {
    display: none; /* Alt menüde mavi çizgi efektini iptal et */
}

.header-nav .sub-menu a:hover {
    background: #f1f5f9;
    color: #1d4ed8;
}

/* Ana menü alt çizgi efekti (Sadece üst seviye menüler için) */
.header-nav > ul > li > a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0%;
    height: 2px;
    background: #1d4ed8;
    transition: 0.2s ease;
}

.header-nav > ul > li:hover > a {
    color: #1d4ed8;
}

.header-nav > ul > li:hover > a::after {
    width: 100%;
}




/* ==============================
   TOGGLE
============================== */

.snx-toggle {
  display: none;
  font-size: 22px;
  background: #1d4ed8;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

/* ==============================
   HERO
============================== */

.hero {
  position: relative;
  min-height: 75vh;
  width: 100%;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center right;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0,0,0,0.7) 0%,
    rgba(0,0,0,0.5) 45%,
    rgba(0,0,0,0.2) 75%,
    rgba(0,0,0,0) 100%
  );
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 1400px;
  margin: 0 auto;
  padding: 120px 20px;
  color: #fff;
}

.hero-content h1 {
  font-size: 48px;
  max-width: 520px;
  margin: 0 0 16px;
}

.hero-content p {
  font-size: 17px;
  max-width: 520px;
  margin: 0 0 28px;
}

.hero-btn {
  display: inline-block;
  background: linear-gradient(90deg, #2563eb, #1d4ed8);
  color: #fff;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.2s ease;
  box-shadow: 0 10px 30px rgba(37,99,235,0.4);
}

.hero-btn:hover {
  background: linear-gradient(90deg, #1d4ed8, #1e40af);
  transform: translateY(-2px);
}

.hero-bg picture,
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

/* ==============================
    MODERN MOBILE MEGA MENU
   ============================== */

@media (max-width: 900px) {

    /* 1. Header ve Logo Düzeni */
    .top-bar { display: none !important; }

    .header-inner {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 10px 16px !important;
    }

    .header-logo img {
        max-height: 40px !important;
    }

    /* 2. Sağdan Kayan Modern Panel */
    .header-nav {
        display: block !important;
        position: fixed !important;
        top: 0 !important;
        right: -100%; /* Başlangıçta gizli */
        width: 85%;
        height: 100vh;
        background: #ffffff;
        z-index: 10001;
        transition: 0.4s cubic-bezier(0.9, 0, 0.1, 1);
        box-shadow: -15px 0 35px rgba(0,0,0,0.2);
        padding: 80px 25px 40px;
        overflow-y: auto;
    }

    .header-nav.active {
        right: 0 !important; /* Panel açılır */
    }

    /* 3. Menü Linkleri ve Hiyerarşi */
    .header-nav ul {
        flex-direction: column !important;
        gap: 0 !important;
        padding: 0 !important;
    }

    .header-nav ul li {
        width: 100%;
        border-bottom: 1px solid #f1f5f9;
    }

    .header-nav a {
        display: block !important;
        padding: 16px 0 !important;
        font-size: 17px !important;
        font-weight: 700 !important;
        color: #111 !important;
        text-align: left !important;
        background: transparent !important;
    }

    .header-nav .menu-item-has-children > a {
        padding-right: 44px !important;
    }

    .header-nav .menu-item-has-children > a::before {
        content: "";
        position: absolute;
        top: 50%;
        right: 16px;
        width: 8px;
        height: 8px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: translateY(-70%) rotate(45deg);
        transition: transform 0.2s ease;
        pointer-events: none;
    }

    .header-nav .menu-item-has-children.open > a::before {
        transform: translateY(-30%) rotate(-135deg);
    }

    /* 4. Alt Menü (Sub-menu) Şıklaştırma */
    .header-nav > ul > li > .sub-menu {
        display: none;
        position: static;
        top: auto;
        left: auto;
        min-width: 0;
        width: 100%;
        background: #f8fafc;
        padding: 5px 0 10px 15px;
        margin-bottom: 10px;
        border-radius: 12px;
        box-shadow: none;
    }

    .header-nav > ul > li:hover > .sub-menu {
        display: none;
    }

    .header-nav > ul > li.menu-item-has-children.open > .sub-menu {
        display: block;
    }

    .header-nav > ul > li.menu-item-has-children.open:hover > .sub-menu {
        display: block;
    }

    .header-nav .sub-menu li {
        border-bottom: none;
    }

    .header-nav .sub-menu a {
        font-size: 15px;
        font-weight: 500;
        color: #4b5563;
        padding: 8px 0;
    }

    /* 5. Ekstra: Mobilde Kaybolan Araçlar İçin Kart Yapısı */
    /* Bu kısımlar PHP'den eklenirse görünür */
    .header-nav::after {
        content: "Bize Ulaşın";
        display: block;
        margin-top: 30px;
        font-size: 12px;
        text-transform: uppercase;
        color: #94a3b8;
        font-weight: 800;
        letter-spacing: 1px;
    }

    /* 6. Toggle Butonu Sabitleme */
    .snx-toggle {
        display: flex !important;
        z-index: 10002;
        border-radius: 12px !important;
    }

    /* 7. Hero Bölümü Mobil Revize */
    .hero-content {
        padding: 50px 20px !important;
        text-align: center !important;
    }

    .hero-content h1 {
        font-size: 30px !important;
        line-height: 3.2 !important;
        max-width: 100% !important;
    }

    .hero-content p {
        font-size: 15px !important;
        max-width: 100% !important;
        margin-bottom: 25px !important;
    }
}
/* =========================
   ABOUT SECTION
========================= */

.about-section {
  padding: 80px 20px;
  background: #ffffff;
}

.about-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.about-image img {
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.about-content h2 {
  font-size: 32px;
  margin-bottom: 16px;
}

.about-content p {
  font-size: 16px;
  color: #444;
  margin-bottom: 14px;
  line-height: 1.7;
}

.about-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 12px 28px;
  background: #2563eb;
  color: #ffffff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  transition: 0.3s ease;
}

.about-btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
  background: #1d4ed8;
}



@media (max-width: 900px) {
  .about-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* =========================
   BRANCHES
========================= */

.branches-section {
  padding: 80px 20px;
  background: linear-gradient(90deg, #3b82f6, #ef4444);
  text-align: center;
  color: #fff;
}

.branches-section h2 {
  font-size: 32px;
  margin-bottom: 10px;
}

.branches-sub {
  max-width: 600px;
  margin: 0 auto 40px;
  font-size: 15px;
}

.branches-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.branch-card {
  background: #fff;
  color: #111;
  border-radius: 20px;
  padding: 16px;
  text-align: left;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.branch-card img {
  border-radius: 14px;
  margin-bottom: 12px;
}

.branch-card h3 {
  margin-bottom: 8px;
}

.branch-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
}

.branch-btn.green { background: #16a34a; }
.branch-btn.blue { background: #2563eb; }

/* =========================
   TREATMENTS
========================= */

.treatments-section {
  padding: 20px 20px;
  background: #f8fafc;
  text-align: center;
}

.treatments-section h2 {
  font-size: 32px;
  margin-bottom: 10px;
}

.treatments-sub {
  max-width: 600px;
  margin: 0 auto 40px;
  color: #555;
  font-size: 15px;
}

.treatments-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.treatment-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: row;
}

.treatment-card img {
  width: 40%;
  object-fit: cover;
}

.treatment-content {
  padding: 20px;
  text-align: left;
}

.treatment-content h3 {
  margin-bottom: 10px;
}

.treatment-content p {
  font-size: 14px;
  color: #444;
  margin-bottom: 14px;
}

.treatment-btn {
  display: inline-block;
  padding: 8px 16px;
  background: #2563eb;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.25s ease;
}

.treatment-btn:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
}

@media (max-width: 900px) {
  .treatment-card {
    flex-direction: column;
  }

  .treatment-card img {
    width: 100%;
    height: 200px;
  }
}
/* =========================
   BLOG
========================= */

.blog-section {
  padding: 20px 20px;
  background: #ffffff;
  text-align: center;
}

.blog-section h2 {
  font-size: 32px;
  margin-bottom: 10px;
}

.blog-sub {
  max-width: 600px;
  margin: 0 auto 40px;
  color: #555;
  font-size: 15px;
}

/* GRID */
.blog-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

/* CARD */
.blog-card {
  background: #f1f5f9;
  border-radius: 20px;
  padding: 20px;
  text-align: left;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* THUMBNAIL */
.blog-thumb {
  height: 160px;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 14px;
}

.blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* DATE */
.blog-date {
  font-size: 12px;
  color: #666;
  margin-bottom: 6px;
}

/* TITLE – TEK SATIR */
.blog-card h3 {
  font-size: 16px;
  margin: 6px 0 8px;
  line-height: 1.3;

  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* EXCERPT – MAX 3 SATIR */
.blog-card p {
  font-size: 14px;
  color: #444;
  line-height: 1.5;
  margin-bottom: 14px;

  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* BUTTON */
.blog-btn {
  margin-top: auto;
  display: inline-block;
  padding: 8px 16px;
  background: #2563eb;
  color: #fff;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease;
}

.blog-btn:hover {
  background: #1d4ed8;
}

/* ALL POSTS BUTTON */
.blog-all-btn {
  display: inline-block;
  margin-top: 40px;
  padding: 12px 28px;
  background: #2563eb;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s ease;
}

.blog-all-btn:hover {
  background: #1d4ed8;
}

/* Sadece Şube sayfasında blog 3'lü olsun */
.single-sube .blog-grid {
  grid-template-columns: repeat(3, 1fr);
}


/* =========================
   CONTACT CTA (Overlay Banner)
========================= */

.contact-cta{
  padding: 30px 20px;
  background: #fff; /* dış arka plan sade */
}

.cta-inner{
  max-width: 1200px;
  margin: 0 auto;
}

/* Banner kutu */
.cta-banner{
  position: relative;
  min-height: 220px;
  border-radius: 14px;
  overflow: hidden;
  background-image: url("/wp-content/themes/shennext-health/assets/img/iletisim-cta.jpg");
  background-size: cover;
  background-position: center right;
}

/* okunabilirlik için hafif mavi overlay */
.cta-banner::before{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(90deg, rgba(14,165,233,0.85) 0%, rgba(37,99,235,0.35) 65%, rgba(37,99,235,0.05) 100%);
}

/* Yazı katmanı */
.cta-overlay{
  position: relative;
  z-index: 2;
  padding: 40px;
  max-width: 620px; /* yazı solda kalsın */
  color: #fff;
}

.cta-overlay h2{
  font-size: 32px;
  margin: 0 0 10px;
}

.cta-overlay p{
  margin: 0 0 18px;
  line-height: 1.6;
  opacity: 0.95;
}

/* Buton: beyaz zemin + mavi yazı */
.cta-btn{
  display: inline-block;
  padding: 12px 26px;
  background: linear-gradient(90deg, #2563eb, #1d4ed8);
  color: #fff;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  transition: 0.2s ease;
}

.cta-btn:hover{
  transform: translateY(-2px);
}

/* Mobil */
@media (max-width: 768px){
  .cta-overlay{
    padding: 28px;
    max-width: 100%;
  }
  .cta-banner{
    min-height: 240px;
    background-position: right center;
  }
}


/* Genel Footer Ayarları */
.idm-footer {
    background-color: #8e9196; /* Görseldeki ana gri tonu */
    color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding-bottom: 40px;
}

.idm-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    padding: 0 20px;
}

/* E-Bülten Alanı */
.footer-newsletter {
    background-color: #8e9196;
    padding: 30px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-newsletter .container {
    justify-content: space-between;
    align-items: center;
}

.newsletter-text h3 {
    margin: 0;
    font-size: 24px;
    font-weight: bold;
}

.newsletter-text p {
    margin: 5px 0 0;
    font-size: 14px;
    opacity: 0.9;
}

.newsletter-form {
    position: relative;
    width: 400px;
}

.newsletter-form input {
    width: 100%;
    padding: 12px 100px 12px 20px;
    border-radius: 25px;
    border: none;
    background: #f0f0f0;
}

.newsletter-form button {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    padding: 0 25px;
    border-radius: 25px;
    border: none;
    background: linear-gradient(to right, #3d4999, #e31e24); /* Görseldeki gradyan buton */
    color: white;
    cursor: pointer;
    font-weight: bold;
}

/* Ana Link Alanı */
.footer-main {
    padding-top: 40px;
}

.footer-col {
    flex: 1;
    min-width: 200px;
    margin-bottom: 20px;
}

.footer-col h4 {
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: bold;
    text-transform: uppercase;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    opacity: 0.8;
}

.footer-col ul li a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Hakkında ve Sosyal Medya */
.footer-col.about p {
    font-size: 13px;
    line-height: 1.6;
    margin: 15px 0;
    padding-right: 20px;
}

.social-icons a {
    color: white;
    background: #3d4999;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 8px;
    font-size: 14px;
    transition: 0.3s;
}

.social-icons a:nth-child(1) { background: #cd201f; } /* YT */
.social-icons a:nth-child(4) { background: #3b5998; } /* FB */

/* İletişim Bilgileri */
.contact-info p {
    font-size: 13px;
    margin-bottom: 15px;
    opacity: 0.9;
}

/* Mobil Uyumluluk */
@media (max-width: 768px) {
    .footer-newsletter .container, .footer-main .container {
        flex-direction: column;
        text-align: center;
    }
    .newsletter-form { width: 100%; margin-top: 20px; }
    .footer-col { width: 100%; margin-top: 20px; }
}

/* Sosyal Medya İkonları - Geçişli Renk ve Temizlik */
.social-icons a {
    /* Geçişli Renk (Lacivertten Kırmızıya) */
    background: #fff !important;
    
    /* Boyut ve Şekil Ayarları */
    width: 35px;
    height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 8px;
    color: #8e9196 !important;
    font-size: 16px;
    
    /* Çizgileri ve Varsayılan Stil Ayarlarını Kaldırma */
    text-decoration: none !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    transition: transform 0.3s ease;
}

/* Üzerine gelince hafif büyüme efekti (opsiyonel) */
.social-icons a:hover {
    transform: scale(1.1);
    color: #8e9196 !important;
}

/* İkonun içindeki çizgileri de garantiye alalım */
.social-icons a i {
    text-decoration: none !important;
    border: none !important;
}

/* ==========================
   ŞUBELER GRID
========================== */
.subeler-section {
  padding: 80px 20px;
  background: linear-gradient(90deg, #3b82f6, #ef4444);
  color: white;
  text-align: center;
}

.subeler-grid {
  max-width: 1200px;
  margin: 40px auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.sube-card {
  background: white;
  color: #111;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  padding-bottom: 20px;
}

.sube-card h3 {
  margin: 16px;
}

.sube-card p {
  margin: 0 16px 16px;
  font-size: 14px;
}

.sube-buttons {
  display: flex;
  justify-content: space-around;
}

.btn-primary {
  background: #1d4ed8;
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
}

.btn-secondary {
  background: #10b981;
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
}

/* ==========================
   ŞUBE SAYFASI – ANA İÇERİK (Hakkında)
========================== */
.sube-main-content {
  display: grid;

  /* görsel biraz büyüdü */
  grid-template-columns: 1.1fr 1.4fr;

  gap: 40px;

  /* 🔥 BURASI KRİTİK (flex-start → center) */
  align-items: center;
}

@media (max-width: 900px) {
  .sube-main-content {
    grid-template-columns: 1fr;
  }
}

/* ==========================
   ŞUBE ÜST BAŞLIK + AÇIKLAMA
========================== */
.sube-header {
  text-align: center;
  margin: 40px auto 30px;
  padding: 0 20px;
}

.sube-header h1,
.sube-header h2 {
  font-size: 32px;
  margin-bottom: 12px;
  color: #111;
}

.sube-header p {
  max-width: 700px;
  margin: 0 auto 30px;
  font-size: 15px;
  line-height: 1.6;
  color: #555;
}

/* ==========================
   ŞUBE SEKME SİSTEMİ
========================== */
.sube-tabs {
  max-width: 1000px;
  margin: 60px auto;
  padding: 0 20px;
}

.tab-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
}

.tab-btn {
  background: #8e9196;
  border: none;
  padding: 10px 20px;
  color: white;
  border-radius: 12px; /* kurumsal oval */
  cursor: pointer;
  opacity: 0.6;
}

.tab-btn.active {
  opacity: 1;
  background: #6f7276; /* aynı rengin 1 ton koyusu */
}


.tab-content {
  display: none;
  background: #f9fafb;
  padding: 30px;
  border-radius: 14px;
}

.tab-content.active {
  display: block;
}

/* Hover */
.tab-btn:hover {
  opacity: 0.85;
}

/* ======================
   DOKTOR GRID
====================== */
.doktor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.doktor-card {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.doktor-card img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 12px;
}

.doktor-card h3 {
  margin: 10px 0 6px;
  font-size: 16px;
}

.doktor-desc {
  font-size: 13px;
  color: #555;
}

.doktor-unvan {
  display:block;
  margin-top:6px;
  font-size:14px;
  color:#6b7280;
}

/* ==========================
   ŞUBE GALERİ – FINAL CLEAN
   (Gutenberg core/gallery uyumlu)
========================== */

.sube-gallery-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

/* Gutenberg wrapper'ı grid'e engel olmasın */
.sube-gallery-grid .wp-block-gallery,
.sube-gallery-grid ul.wp-block-gallery{
  display: contents;
}

/* Grid item olabilecek tüm olasılıklar: li / figure / wp-block-image */
.sube-gallery-grid li,
.sube-gallery-grid .blocks-gallery-item,
.sube-gallery-grid figure,
.sube-gallery-grid .wp-block-image{
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
}

/* Kart davranışı */
.sube-gallery-grid li,
.sube-gallery-grid .blocks-gallery-item,
.sube-gallery-grid figure{
  overflow: hidden;
  border-radius:10px;
}

/* Link varsa hücreyi doldursun */
.sube-gallery-grid a{
  display: block;
  width: 100%;
  height: 100%;
}

/* Görsel: hücreyi TAM doldur (thumbnail kalmasın) */
.sube-gallery-grid img{
  display: block;
  width: 100% !important;
  height: 320px !important;   /* 👈 büyüttüm */
  object-fit: cover;
  transition: transform .3s ease;
}

/* Hover */
/* SADECE ÜZERİNE GELİNEN RESİM BÜYÜR */
.sube-gallery-grid img:hover{
  transform: scale(1.05);
  z-index: 2;
}

/* ==========================
   RESPONSIVE
========================== */

@media (max-width: 992px){
  .sube-gallery-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sube-gallery-grid img{
    height: 280px !important;
  }
}

@media (max-width: 576px){
  .sube-gallery-grid{
    grid-template-columns: 1fr;
  }
  .sube-gallery-grid img{
    height: 240px !important;
  }
}


/* ==============================
   ŞUBELER SLIDER SYSTEM
============================== */

.sube-section {
  padding: 80px 0;
  background: linear-gradient(90deg, #2b2d84, #c62828);
}

.sube-title {
  text-align: center;
  color: #fff;
  margin-bottom: 40px;
}

.sube-title h2 {
  font-size: 36px;
  margin-bottom: 10px;
}

.sube-title p {
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.9;
}

/* KAYAN ALAN */
.sube-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 20px 20px;
}

.sube-track::-webkit-scrollbar {
  height: 8px;
}

.sube-track::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.4);
  border-radius: 10px;
}

/* KART */
.sube-card {
  min-width: calc(25% - 20px);
  max-width: calc(25% - 20px);
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  scroll-snap-align: start;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
}

@media (max-width: 900px) {
  .sube-card {
    min-width: 85%;
    max-width: 85%;
  }
}

/* RESİM */
.sube-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* İÇERİK */
.sube-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sube-content h3 {
  margin: 0;
  font-size: 18px;
}

/* BİLGİ */
.sube-meta {
  font-size: 13px;
  color: #444;
  line-height: 1.4;
}

/* BUTON GRUP */
.sube-buttons {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

/* YEŞİL BUTON */
.btn-green {
  flex: 1;
  background: #22c55e;
  color: #fff;
  padding: 10px;
  border-radius: 8px;
  font-size: 13px;
  text-align: center;
  text-decoration: none;
  transition: 0.2s ease;
}

.btn-green:hover {
  background: #16a34a;
}

/* GRADIENT BUTON */
.btn-gradient {
  flex: 1;
  background: #2563eb;
  color: #fff;
  padding: 10px;
  border-radius: 8px;
  font-size: 13px;
  text-align: center;
  text-decoration: none;
  transition: 0.2s ease;
}

.btn-gradient:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

.sube-meta {
  font-size: 13px;
  color: #444;
  line-height: 1.6;
}

.sube-meta p {
  margin: 4px 0;
}

.sube-meta strong {
  color: #111;
}


/* ======================
   IDM ŞUBE HERO
====================== */
.sube-hero {
  position: relative;
  height: 360px;
  overflow: hidden;
}

.sube-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sube-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 60px;
  color: #fff;
}

.sube-hero-info {
  margin-top: 10px;
  font-size: 14px;
  opacity: 0.9;
}

.sube-hero-info span {
  display: inline-block;
  margin-right: 15px;
}

/* Mobil */
@media (max-width: 768px) {
  .sube-hero {
    height: auto;
  }
  .sube-hero-overlay {
    padding: 30px;
  }
}



/* ==========================
   ŞUBE HARİTA ALANI
========================== */
.sube-map-section {
  padding: 30px 20px 30px;
  background: #f6f7f9;
}

.sube-map-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.sube-map-bg {
  width: 100%;
  display: block;
  position: relative;
  z-index: 1;
}

/* PINLER */
.sube-map-pin {
  position: absolute;
  display: block;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  line-height: 0;
  z-index: 5;
  transition: transform .2s ease;
}

.sube-map-pin:hover {
  transform: scale(1.05);
}

.sube-map-pin img {
  display: block;
  max-width: 200px;
}

/* KONUM AYARLARI */
.pin-beylikduzu   { bottom: 60%; left: 25%; }
.pin-esenyurt     { bottom: 40%; left: 25%; }
.pin-buyukcekmece { bottom: 60%; left: 45%; }
.pin-avcilar      { bottom: 40%; left: 45%; }
.pin-fatih        { bottom: 60%; left: 65%; }
.pin-firuzkoy     { bottom: 40%; left: 65%; }

@media (max-width: 768px) {
  .sube-map-pin img {
    max-width: 160px;
  }
}

/* =========================
   BLOG SINGLE
========================= */

.blog-single-hero {
  background: #f1f5f9;
}

.blog-single-thumb img {
  width: 50%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  margin: 0 auto;
}

.blog-single-content {
  padding: 80px 20px;
  background: #ffffff;
}

.blog-single-inner {
  max-width: 820px;
  margin: 0 auto;
}

.blog-meta {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 10px;
}

.blog-single-title {
  font-size: 36px;
  line-height: 1.3;
  margin-bottom: 30px;
  color: #0f172a;
}

.blog-single-text {
  font-size: 16px;
  line-height: 1.8;
  color: #334155;
}

.blog-single-text p {
  margin-bottom: 18px;
}

.blog-single-text img {
  max-width: 100%;
  border-radius: 12px;
  margin: 20px 0;
}

/* Mobil */
@media (max-width: 768px) {
  .blog-single-title {
    font-size: 28px;
  }

  .blog-single-content {
    padding: 60px 16px;
  }
}

/* =========================
   KURUMSAL SAYFA ŞABLONU
========================= */

/* Ana sarmal */
.snx-page-content {
  padding: 20px 20px 50px;
}

/* İç container */
.snx-page-inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* Gutenberg kolon boşlukları */
.snx-page-inner .wp-block-columns {
  gap: 40px;
}

/* İçerik görselleri */
.snx-page-inner .wp-block-image img {
  border-radius: 20px;
  object-fit: cover;
}

/* =========================
   KURUMSAL – BAŞLIK
========================= */

.page-kurumsal .snx-page-header {
  max-width: 1200px;
  margin: 0 auto 30px;
  padding: 0 20px;
}

.page-kurumsal .snx-page-header .entry-title {
  font-size: 32px;
  margin: 0;
}

/* =========================
   KURUMSAL – ÖNE ÇIKAN GÖRSEL
========================= */

.page-kurumsal .snx-featured-image {
  max-width: 1200px;
  margin: 0 auto 30px;
  padding: 0 20px;
}

.page-kurumsal .snx-featured-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 20px;
}

/* =========================
   MOBİL
========================= */

@media (max-width: 768px) {

  .snx-page-inner {
    padding: 0 10px;
  }

  .snx-page-inner .wp-block-columns {
    gap: 24px;
  }

  .page-kurumsal .snx-featured-image img {
    height: 300px;
  }
}

/* =========================
   ŞUBELER ARŞİV SAYFASI
========================= */

.subeler-archive {
  padding: 20px 20px;
  background: #f9fafb;
}

.archive-header {
  text-align: center;
  margin-bottom: 20px;
}

.archive-header h1 {
  font-size: 36px;
  margin-bottom: 10px;
}

.archive-header p {
  color: #555;
}

/* GRID */
.subeler-archive-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* CARD */
.sube-archive-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
}

.sube-archive-image img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.sube-archive-content {
  padding: 20px;
}

.sube-archive-content h3 {
  margin-bottom: 14px;
  font-size: 20px;
}

.sube-archive-content p {
  font-size: 14px;
  margin-bottom: 8px;
  line-height: 1.5;
}

/* BUTONLAR */
.sube-archive-buttons {
  display: flex;
  gap: 12px;
  margin-top: 15px;
}

.btn-green {
  flex: 1;
  background: #22c55e;
  color: #fff;
  padding: 10px;
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
}

.btn-blue {
  flex: 1;
  background: #2563eb;
  color: #fff;
  padding: 10px;
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .subeler-archive-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .subeler-archive-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================
   EKİBİMİZ SAYFASI
========================= */

.ekibimiz-page {
  padding: 60px 20px;
}

.ekip-hero-inner {
  max-width: 1200px;
  margin: 0 auto 80px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}

.ekip-ust-baslik {
  font-size: 13px;
  font-weight: 700;
  color: #2563eb;
  letter-spacing: 1px;
}

.ekip-left h1 {
  font-size: 36px;
  margin: 10px 0 20px;
}

.ekip-left p {
  color: #555;
  line-height: 1.7;
  margin-bottom: 16px;
}

.ekip-right img {
  width: 100%;
  border-radius: 20px;
  object-fit: cover;
}

/* Şube başlık */
.ekip-sube-baslik {
  text-align: center;
  margin: 60px 0 30px;
  font-size: 28px;
}

/* Doktor grid */
.ekip-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.ekip-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  text-align: center;
}

.ekip-img img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.ekip-info {
  padding: 16px;
}

.ekip-info h3 {
  margin-bottom: 6px;
  font-size: 16px;
}

.ekip-info span {
  font-size: 13px;
  color: #666;
}

/* Responsive */
@media(max-width:1024px){
  .ekip-grid{
    grid-template-columns: repeat(2,1fr);
  }
}

@media(max-width:768px){
  .ekip-hero-inner{
    grid-template-columns:1fr;
  }

  .ekip-grid{
    grid-template-columns:1fr;
  }
}

/* =========================
   İLETİŞİM – PREMIUM
========================= */

.iletisim-wrapper {
  padding: 30px 20px;
  background: #f8fafc;
}

.iletisim-wrapper .container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-title {
  text-align: center;
  font-size: 40px;
  margin-bottom: 50px;
}

/* BLOK */
.sube-iletisim-blok {
  display: flex;
  gap: 70px;
  align-items: center;
  background: #fff;
  padding: 50px;
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.08);
  margin-bottom: 80px;
  transition: 0.4s ease;
}

.sube-iletisim-blok:hover {
  transform: translateY(-6px);
}

/* SOL */
.sube-iletisim-sol {
  width: 45%;
}

.sube-iletisim-sol h2 {
  font-size: 26px;
  margin-bottom: 30px;
}

.sube-iletisim-sol p {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 18px;
}

.sube-iletisim-sol i {
  font-size: 18px;
  color: #2563eb;
  margin-top: 3px;
}

/* SAĞ HARİTA */
.sube-iletisim-sag {
  width: 55%;
  position: relative;
}

.sube-iletisim-sag iframe {
  width: 100%;
  height: 400px;
  border-radius: 18px;
  transition: 0.4s ease;
  filter: grayscale(30%);
}

.map-effect:hover iframe {
  transform: scale(1.03);
  filter: grayscale(0%);
}

/* FADE ANİMASYON */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.fade-up.active {
  opacity: 1;
  transform: translateY(0);
}

/* MOBİL */
@media (max-width: 992px) {

  .sube-iletisim-blok {
    flex-direction: column;
    padding: 35px;
  }

  .sube-iletisim-sol,
  .sube-iletisim-sag {
    width: 100%;
  }

  .sube-iletisim-sag iframe {
    height: 300px;
  }
}

/* FORM TASARIM */
.contact-form-section {
  padding: 10px 20px 60px 20px;
  background: #f8fafc;
}

.contact-form-container {
  max-width: 1200px;
  margin: 0 auto;
}

.contact-form-header {
  text-align: center;
  margin-bottom: 20px;
}

.contact-form-header h2 {
  font-size: 32px;
  margin-bottom: 12px;
}

.contact-form-header p {
  max-width: 700px;
  color: #555;
  line-height: 1.6;
  margin: 0 auto;
}

.contact-form-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.contact-form-image img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

@media (max-width: 900px) {
  .contact-form-content {
    grid-template-columns: 1fr;
  }
}

/* =====================================
   DEFAULT PAGE CONTAINER SYSTEM
   (WordPress varsayılan sayfalar için)
===================================== */

/* Sayfa üst-alt ve yan boşlukları */
.page-content-section {
  padding: 60px 20px; /* Üst-alt 60px, sağ-sol 20px boşluk */
}

/* İçeriği 1200px genişliğe sabitle ve ortala */
.page-container {
  max-width: 1200px; /* Maksimum içerik genişliği */
  margin: 0 auto;    /* Yatayda ortalama */
}

/* Sayfa başlığı düzeni */
.entry-title {
  font-size: 36px;     /* Başlık boyutu */
  margin-bottom: 30px; /* Başlık ile içerik arası boşluk */
}

/* =========================
   SUBE MAP MOBILE FIX
========================= */

@media (max-width:768px){

  .sube-map-wrapper{
    position:relative;
  }

  .sube-map-bg{
    width:100%;
    height:auto;
  }

  .sube-map-pin img{
    max-width:150px;
  }

  /* pin konumlarını biraz ayarla */
  .pin-beylikduzu   { bottom:75%; left:10%; }
  .pin-esenyurt     { bottom:45%; left:10%; }
  .pin-buyukcekmece { bottom:15%; left:10%; }
  .pin-avcilar      { bottom:75%; left:55%; }
  .pin-fatih        { bottom:45%; left:55%; }
  .pin-firuzkoy     { bottom:15%; left:55%; }

}

/* =========================
   KURUMSAL SAYFA SABLONUNU DUZELTMEK ICIN GEREKLI BOSLUKLARI AYARLIYOR
========================= */


.page-template-page-kurumsal .wp-block-column h1 {
  margin: 0 0 20px 0;
}

/* =========================
   HERO FIX – 901px / 1500px ARASI
   Eski yapıyı bozmadan sadece sorunlu aralığı düzeltir
========================= */

@media (min-width: 901px) and (max-width: 1500px) {

  .hero-content {
    max-width: 1200px;
    padding-left: 80px;
    padding-right: 80px;
    z-index: 5;
  }

  .hero-content h1,
  .hero-content p {
    max-width: 480px;
  }

  .swiper-button-prev {
    left: 20px;
  }

  .swiper-button-next {
    right: 20px;
  }
}

/* 1300px altına yaklaşınca içerik biraz daha sıkı toplansın */
@media (min-width: 901px) and (max-width: 1300px) {

  .hero-content {
    max-width: 1000px;
    padding-left: 60px;
    padding-right: 60px;
  }

  .hero-content h1 {
    font-size: 42px;
    max-width: 440px;
    line-height: 1.1 !important;
  }

  .hero-content p {
    max-width: 440px;
  }
}




