/* ======================================
       HEADER + GRID KONFİGÜRASYONU (DESKTOP)
       ====================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}
.container-headar {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 70px;

  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  position: relative;
}

/* Soldaki logolar */
.logos {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.logos img {
  display: block;
  height: 35px;
}

.logo-safe img {
  margin-left: 60px;
  height: 40px; /* biraz daha büyük olabilir */
}

/* Ortadaki menu */
.nav-desktop {
  grid-column: 2;
  justify-self: center;

  display: flex;
  align-items: center;
}

.menu-list {
  list-style: none;
  display: flex;
}
.menu-list li + li {
  margin-left: 3rem;
}
.menu-list a {
  text-decoration: none;
  font-size: 16px;
  color: #2d3748;
  transition: color 0.2s;
}
.menu-list a:hover {
  color: #1a202c;
}

/* Sağdaki dil bayrakları */
.flags {
  grid-column: 3;
  justify-self: end;

  display: flex;
  align-items: center;
}

.flags a {
  display: flex;
  flex-direction: row;
}
.flags a span {
  margin-left: 1rem;
  text-decoration: none;
  color: #2d3748;
  font-size: 13px;
  display: inline;
  font-weight: 600;
}
.flags img {
  width: 25px;
  margin-left: 0.75rem;
  cursor: pointer;
  object-fit: contain;
}

/* Hamburger (desktop’ta gizli) */
.hamburger {
  display: none;
  border: none;
  background: none;
  cursor: pointer;
  z-index: 1100;
}
.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background: #2d3748;
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* Mobile overlay menu (aynı kalacak) */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 1050;
  display: flex;
  flex-direction: column;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-header {
  height: 70px;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-header img {
  height: 35px; /* Logo boyutunu ayarla */
  display: block;
}
.close-btn {
  font-size: 2rem;
  border: none;
  background: none;
  cursor: pointer;
  color: #2d3748;
}
.mobile-list {
  list-style: none;
  padding: 2rem;
}
.mobile-list li + li {
  margin-top: 1.5rem;
}
.mobile-list a {
  text-decoration: none;
  font-size: 20px;
  color: #2d3748;
  display: block;
}

/* ======================================
       MOBİL (≤768px) OVERRIDE
       ====================================== */
@media (max-width: 1024px) {
  /* Grid’i devre dışı bırak, flex’e geç */
  .container-headar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
  }

  /* İlk div’i flatten et ki içindekiler doğrudan flex-child olsun */
  .container-headar > .logos {
    display: contents;
  }

  /* Desktop nav + bayrakları gizle */
  .nav-desktop,
  .flags {
    display: none;
  }

  /* Logo’lar ve hamburgerın sırasını belirle */
  .logo {
    order: 0;
  }
  .logo-sivas {
    order: 1;
    display: block;
    margin-left: 1rem;
  }
  .logo-safe {
    order: 2;
    display: block;
    height: 40px; /* biraz daha büyük olabilir */
    margin-left: 150px;
  }
  .hamburger {
    order: 3;
    display: block;
  }
}

footer {
  background-color: #ffffff;
  padding: 2rem 1rem;
  text-align: center;
  font-family: "Segoe UI", sans-serif;
  color: #4a5568;
  margin-top: 50px;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 1.5rem;
}

.footer-links a {
  text-decoration: none;
  color: #4a5568;
  font-weight: 500;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #1a202c;
}

.footer-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
}

.footer-logo img {
  max-height: 40px;
}

.footer-divider {
  border: none;
  border-top: 1px solid #e2e8f0;
  margin: 1.5rem 0;
}

.footer-bottom p {
  font-size: 14px;
  color: #718096;
}

.footer-bottom a {
  color: #4a5568;
  text-decoration: underline;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.gallery-grid img {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
}

@media (max-width: 768px) {
  .footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem 2rem;
    justify-items: center;
    text-align: center;
  }

  .footer-links a {
    font-size: 15px;
  }

  .footer-logo img {
    max-width: 220px;
    height: auto;
  }

  .footer-bottom p {
    text-align: center !important;
    font-size: 13px;
  }

  footer {
    padding: 2rem 1rem 3rem 1rem;
  }
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background: #fff;
  margin: 5% 10% auto;
  padding: 20px;
  width: 80%;
  max-width: 80%;
  border-radius: 8px;
  position: relative;
  max-height: 80vh; /* Ekranın %80'i kadar yükseklik */
  overflow-y: auto; /* İçeriği kaydırılabilir yapar */
}

.close {
  position: absolute;
  right: 20px;
  top: 10px;
  font-size: 24px;
  cursor: pointer;
}

header.surdurulebilirlik-header {
  background: #f2f1ed;
  color: black;
  padding: 1rem;
  text-align: center;
  position: relative;
  z-index: 2;
}
header.surdurulebilirlik-header .logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1rem;
}
header.surdurulebilirlik-header img.logo {
  max-height: 100px;
}
header.surdurulebilirlik-header h1 {
  margin: 0.5rem 0;
  font-size: 2rem;
}
.surdurulebilirlik-breadcrumb {
  color: black;
  font-size: 0.9rem;
}
.surdurulebilirlik-content {
  max-width: 900px;
  margin: 2rem auto;
  padding: 1rem;
  position: relative;
  z-index: 1;
  text-align: center;
}
.surdurulebilirlik-content img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 2rem auto;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1;
}
@media (max-width: 768px) {
  header.surdurulebilirlik-header h1 {
    font-size: 1.5rem;
  }
  .surdurulebilirlik-content {
    padding: 0.5rem;
  }
}
