/* ======================================
   TEMEL AYARLAR
   ====================================== */
:root {
  --primary: #194682;          /* lacivert arka plan rengi */
  --accent: #00b4d8;
  --light: #f8f9fa;
  --dark: #0a2540;
  --white: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

/* ======================================
   NAVBAR – SABİT, TEMİZ, MOBİL UYUMLU
   ====================================== */
.navbar.fixed-top {
  height: 80px !important;
  min-height: 80px !important;
  padding: 0 1rem !important;
  background-color: var(--primary) !important;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 1050;
}
/* Mobil navbar – logo ve hamburger aynı satırda, üst üste binmez */
@media (max-width: 991.98px) {
  .navbar.fixed-top {
    height: auto !important;
    min-height: 72px !important;
    overflow: visible !important;
    padding: 0.5rem 0.75rem !important;
  }

  .navbar .container-fluid {
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.5rem;
    position: relative;
    height: auto !important;
    min-height: 56px;
  }

  .navbar-brand {
    flex: 1 1 auto;
    min-width: 0;
    max-width: calc(100% - 52px) !important;
    width: auto !important;
    margin-bottom: 0 !important;
    margin-right: 0.25rem;
  }

  .navbar-brand img {
    height: 40px;
    width: auto;
    margin-right: 8px;
  }

  .brand-text {
    min-width: 0;
    flex: 1;
    max-width: 100%;
  }

  .brand-text span,
  .brand-text small {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    max-width: 100%;
  }

  .brand-text span {
    font-size: 1.05rem;
  }

  .brand-text small {
    font-size: 0.7rem;
  }

  .navbar-toggler.hamburger-custom {
    flex-shrink: 0;
    margin-left: 0 !important;
    margin-top: 0 !important;
    z-index: 1;
    background-color: #ffc107 !important;
    border: 1px solid #0a2540 !important;
    border-radius: 6px;
    padding: 0.45rem 0.65rem !important;
  }

  .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%230a2540' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.8' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    width: 1.5em;
    height: 1.5em;
  }

  .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1060;
    background-color: var(--primary);
    border-top: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    padding: 1rem 0;
    margin: 0;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
  }

  .navbar-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    padding: 0 1rem;
  }

  .navbar-nav .nav-link {
    font-size: 1.05rem;
    padding: 0.75rem 1rem !important;
    text-align: center;
  }

  .navbar-nav .nav-link-obs {
    display: block;
    margin-top: 0.25rem;
  }

  body {
    padding-top: 72px !important;
  }
}
.navbar .container-fluid {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo + Kurum adı + slogan – tek satırda kalır */
.navbar-brand {
  display: flex;
  align-items: center;
  max-width: 70%;
  height: 100%;
  padding: 0 !important;
  text-decoration: none;
}

.navbar-brand img {
  height: 48px;
  width: auto;
  margin-right: 12px;
  flex-shrink: 0;
}

.navbar-brand .brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.navbar-brand .brand-text span {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  white-space: nowrap;
}

.navbar-brand .brand-text small {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.9);
  line-height: 1.15;
  white-space: nowrap;
}

/* Hamburger menü – masaüstü */
.navbar-toggler {
  border: none !important;
  background: transparent !important;
  padding: 0.4rem 0.6rem !important;
  margin-left: auto;
}

.hamburger-custom {
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.hamburger-custom:hover {
  background-color: rgba(255, 193, 7, 0.85) !important;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
  width: 1.8em;
  height: 1.8em;
}

/* Menü linkleri – tek satırda kalır */
.navbar-nav {
  flex-direction: row;
  align-items: center;
  gap: 1.5rem;
}

.navbar-nav .nav-link {
  color: var(--white) !important;
  font-weight: 500;
  padding: 0.4rem 0.8rem !important;
  white-space: nowrap;
  transition: color 0.3s;
}

.navbar-nav .nav-link:hover {
  color: var(--accent) !important;
}

.navbar-nav .nav-link-obs {
  background-color: #ffc107;
  color: var(--dark) !important;
  border-radius: 6px;
  font-weight: 600 !important;
}

.navbar-nav .nav-link-obs:hover {
  background-color: #e0a800;
  color: var(--dark) !important;
}


/* Beyaz boşluk tamamen kapanır */
body {
  padding-top: 80px !important;
  margin-top: 0 !important;
}

/* Hero ve diğer section'lar navbar altına yapışır */
.hero,
#iletisim,
.py-5,
.container {
  margin-top: 0 !important;
  padding-top: 20px !important;  /* içerik içten ferahlasın */
}

/* Responsive harita (önceki ayarını koru) */
.google-maps {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.google-maps iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  border: 0;
}

@media (max-width: 576px) {
  .google-maps {
    padding-bottom: 75%;
  }
}

/* Diğer genel ayarlar (öncekilerden kalanları koru) */
.card-hover:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1) !important;
}

.footer {
  background: var(--primary);
  color: white;
}
/* Mobil'de galeri fotoğrafları tam genişlikte tek sütun olsun */
@media (max-width: 576px) {
  .gallery-grid .col-md-4,
  .gallery-grid .col-sm-6 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }

  .gallery-img {
    height: auto !important;        /* sabit yükseklik kaldır, doğal oran koru */
    width: 100% !important;
    object-fit: cover;
  }

  .gallery-item {
    margin-bottom: 1.5rem !important; /* fotoğraflar arası boşluk */
  }

  .card-body {
    padding: 1rem !important;
  }
}

/* Genel iyileştirme – taşma önleme */
.gallery-grid .row {
  margin-right: 0 !important;
  margin-left: 0 !important;
}

.gallery-grid .col-6, .gallery-grid .col-md-4 {
  padding-right: 0.75rem !important;
  padding-left: 0.75rem !important;
}

/* WhatsApp sabit buton */
.whatsapp-float {
  position: fixed !important;
  bottom: 90px;
  right: 24px;
  left: auto !important;
  top: auto !important;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25d366;
  color: #fff !important;
  padding: 14px 18px;
  border-radius: 50px;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
  margin: 0;
}

.whatsapp-float:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.55);
  color: #fff !important;
}

.whatsapp-float i {
  font-size: 1.6rem;
}

@media (max-width: 576px) {
  .whatsapp-label {
    display: none;
  }
  .whatsapp-float {
    padding: 14px;
    border-radius: 50%;
  }
}

/* KVKK banner */
.kvkk-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1190;
  background: rgba(10, 37, 64, 0.95);
  color: #fff;
  padding: 1rem 0;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.2);
}

.kvkk-banner a {
  color: #ffc107;
}

/* Hero mobil */
@media (max-width: 768px) {
  .hero-fixed-bg {
    background-attachment: scroll !important;
  }

  .hero .btn-lg {
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Tıklanabilir kurs kartları */
.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.card-link:hover {
  color: inherit;
}

/* Duyurular */
.duyuru-card {
  border-left: 4px solid var(--accent);
  transition: transform 0.2s;
}

.duyuru-card:hover {
  transform: translateY(-4px);
}

.duyuru-badge {
  font-size: 0.75rem;
}

/* Veli yorumları */
.testimonial-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  height: 100%;
}

.testimonial-card .quote-icon {
  color: var(--accent);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

/* OBS özellikleri */
.obs-feature {
  text-align: center;
  padding: 1.25rem;
}

.obs-feature i {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

/* Başarı sayfası */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.success-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  border-top: 4px solid var(--primary);
}

.success-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.success-card.premium {
  border-top-color: #ffc107;
  background: linear-gradient(180deg, #fffdf5 0%, #fff 100%);
}

.success-card .icon {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.success-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.success-card .university {
  font-size: 0.9rem;
  color: #555;
}

.success-card .category-badge {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: #e8f4fc;
  color: var(--primary);
}

.basari-filters {
  position: relative;
  z-index: 10;
}

.basari-filters .btn {
  pointer-events: auto;
  cursor: pointer;
}

.basari-filters .btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.basari-search {
  max-width: 400px;
  margin: 0 auto 2rem;
}

/* KPSS form */
.kpss-form label {
  font-weight: 600;
  margin-top: 1rem;
}
