/* ==========================================================================
   assets/css/style.css - Rehberlik Sürücü Kursu / Tam Uyumlu Tema Mimarisi
   Optimize Edilmiş, Hızlı Yüklenen ve Kaydırma Çubuğu Sorunu Giderilmiş Tema
========================================================================== */

:root {
  --yellow: #FFD100;
  --dark: #1C1F26;
  --light: #F7F7F7;
  --accent: #00a2e8;
  --primary-red: #ed1c24;
  --max-width: 1200px;
  --radius: 12px;
  --shadow: 0 6px 18px rgba(0,0,0,0.08);
  --fw-semibold: 600;
}

/* Kapsamlı Box-Sizing ve Taşma Önleme */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  background: var(--light);
  color: var(--dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: 100%;
  overflow-x: hidden;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* ================= TOP BAR ================== */
.top-bar {
  background-color: var(--dark);
  color: #fff;
  font-size: 0.85rem;
  padding: 6px 0;
  border-bottom: 2px solid var(--primary-red);
}

.top-bar-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.top-contact-left a, 
.top-contact-right span {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s;
}

.top-contact-left a:hover {
  color: var(--accent);
}

.top-bar .separator {
  margin: 0 8px;
  color: #555;
}

.top-bar i {
  color: var(--accent);
  margin-right: 4px;
}

/* ================= HEADER ================== */
.site-header {
  background: #fff;
  color: var(--dark);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  width: 100%;
}

.header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
}

/* Metinsel Kurum Logosu Tasarımı */
.brand-text-logo, .logo {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text-logo .logo-main, .logo {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--accent);
}

.brand-text-logo .logo-sub {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--primary-red);
  text-transform: uppercase;
}

.logo span {
  color: var(--primary-red);
  margin-left: 0;
  font-size: 0.8rem;
}

/* ================= NAVIGATION ================== */
.main-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 14px;
  align-items: center;
  margin: 0;
  padding: 0;
}

.main-nav a {
  position: relative;
  font-weight: 600;
  color: var(--dark);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 6px;
  transition: color 0.3s ease, background 0.3s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.9rem;
}

.main-nav a i {
  color: var(--accent);
  font-size: 0.85rem;
}

.main-nav a:hover {
  color: var(--primary-red);
  background: rgba(0, 0, 0, 0.03);
}

.main-nav a:hover i {
  color: var(--primary-red);
}

/* Alt çizgi hover efekti */
.main-nav a::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 2px;
  width: 0%;
  height: 2px;
  background: var(--yellow);
  transition: width 0.3s ease-in-out;
  margin: 0 auto;
}

.main-nav a:hover::after {
  width: 80%;
}

/* Dropdown Menü Yapısı */
.main-nav .dropdown {
  position: relative;
}

.main-nav .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 220px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.3s ease;
  border-top: 3px solid var(--accent);
  list-style: none;
}

.main-nav .dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.main-nav .dropdown-menu li {
  width: 100%;
}

.main-nav .dropdown-menu a {
  padding: 8px 15px;
  font-size: 0.88rem;
  color: #333;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
}

.main-nav .dropdown-menu a::after {
  display: none;
}

.main-nav .dropdown-menu a:hover {
  background-color: var(--light);
  color: var(--primary-red);
}

/* İletişim Butonu Özel Vurgusu */
.nav-btn-iletisim {
  background: linear-gradient(135deg, var(--accent), #0077be);
  color: #fff !important;
  padding: 8px 16px !important;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 162, 232, 0.3);
}

.nav-btn-iletisim i {
  color: #fff !important;
}

.nav-btn-iletisim:hover {
  background: linear-gradient(135deg, var(--primary-red), #c9141b) !important;
  box-shadow: 0 3px 12px rgba(237, 28, 36, 0.35);
  color: #fff !important;
}

.nav-btn-iletisim::after {
  display: none !important;
}

/* Mobil Menü Butonu */
.mobile-menu-toggle {
  display: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--dark);
}

/* ================= HERO ================== */
.hero {
  padding: 40px 0 30px;
  background: #fff;
  border-bottom: 1px solid #eee;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 400px);
  gap: 24px;
  align-items: center;
}

.hero-left h1 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.lead {
  font-size: 1.05rem;
  color: #444;
  margin-bottom: 16px;
}

.hero-cta .btn {
  margin-right: 10px;
}

.hero-right img {
  width: 100%;
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: block;
}

/* ================= BUTTONS ================== */
.btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: var(--fw-semibold);
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--yellow);
  color: #000;
  border: 2px solid var(--yellow);
}

.btn-primary:hover {
  background: #ffdd3d;
  box-shadow: 0 0 12px rgba(255, 209, 0, 0.8);
  transform: translateY(-3px);
  color: #000;
}

.btn-outline, .btn-ghost {
  border: 2px solid var(--yellow);
  color: var(--dark);
  background: transparent;
  padding: 10px 18px;
  border-radius: 8px;
}

.btn-outline:hover, .btn-ghost:hover {
  background: var(--yellow);
  color: #000;
  box-shadow: 0 0 10px rgba(255, 209, 0, 0.8);
  transform: translateY(-2px);
}

/* ================= SECTIONS ================== */
.section {
  padding: 50px 0;
}

.bg-light {
  background: #fbfbfb;
}

.section h2 {
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 8px;
}

.section-sub {
  color: #666;
  text-align: center;
  margin-bottom: 30px;
}

/* ================= CARD & PACKAGE GRID ================== */
.cards,
.package-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.card,
.package {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  width: calc(25% - 20px);
  min-width: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover,
.package:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

.card img,
.package img {
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: 10px;
  object-fit: cover;
  transition: transform 0.3s;
}

.card img:hover {
  transform: scale(1.04);
}

/* ================= WHY SECTION ================== */
.why-grid {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 380px);
  gap: 24px;
  align-items: start;
}

.why-list {
  list-style: disc;
  margin-left: 18px;
  color: #333;
  line-height: 1.6;
}

.why-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 18px;
}

.badge {
  background: linear-gradient(135deg, #FFD100, #f7c331);
  color: #16213e;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.badge:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.25);
}

/* ================= VIDEO SECTION ================== */
.video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.player-box {
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.player-frame iframe {
  width: 100%;
  height: 420px;
  display: block;
  border: 0;
}

/* ================= FOOTER ================== */
.site-footer {
  background: #0E1731;
  color: #fff;
  padding: 50px 0 25px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: #aaa;
  font-size: 0.9rem;
  padding-top: 18px;
}

.footer-bottom a {
  color: var(--yellow);
  text-decoration: none;
}

/* ================= BANNER ================== */
.page-banner {
  position: relative;
  width: 100%;
  background: #000;
  overflow: hidden;
  max-height: 460px;
}

.banner-media {
  width: 100%;
  max-height: 460px;
  object-fit: contain;
  background: #000;
}

.banner-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 5%;
  background: rgba(0,0,0,0.25);
}

.banner-text {
  max-width: 600px;
  color: #fff;
}

.banner-text h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--yellow);
}

.banner-text p {
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
}

.banner-text .btn {
  background: var(--yellow);
  color: var(--dark);
  padding: 10px 20px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: var(--fw-semibold);
}

.banner-text .btn:hover {
  background: #ffe56b;
}

/* === SABİT WHATSAPP BUTONU (PULSE EFEKTLİ) === */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: block;
  z-index: 9999;
  transition: transform 0.25s ease;
}

.whatsapp-float img {
  display: block;
  width: 170px;
  height: auto;
  border-radius: 0;
  box-shadow: none;
  transition: transform 0.25s ease;
}

.whatsapp-float:hover img {
  transform: scale(1.05);
}

.whatsapp-float::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  background: rgba(37, 211, 102, 0.4);
  transform: translate(-50%, -50%) scale(1);
  border-radius: 50%;
  opacity: 0.6;
  z-index: -1;
  animation: pulseRing 2s infinite ease-in-out;
}

@keyframes pulseRing {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.6;
  }
  70% {
    transform: translate(-50%, -50%) scale(1.8);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

/* === HİZMETLERDE DETAYLI BİLGİ BUTONU STİLİ === */
.cards .link {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 16px;
  border: 1.8px solid var(--yellow);
  border-radius: 8px;
  color: var(--dark);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  background: transparent;
}

.cards .link:hover {
  background: var(--yellow);
  color: #0E1731;
  box-shadow: 0 4px 12px rgba(255,209,0,0.3);
  transform: translateY(-2px);
}

/* === AJANS MENÜSÜ ÖZEL STİLİ === */
.ajans-menu {
  position: relative;
  font-weight: 600 !important;
  color: var(--accent) !important;
  border-bottom: 2px solid var(--yellow) !important;
}

.ajans-menu:hover {
  color: var(--dark) !important;
  border-bottom-color: var(--yellow) !important;
}

.new-badge {
  position: absolute;
  top: -8px;
  right: -10px;
  background: var(--yellow);
  color: #000;
  font-size: 9px;
  padding: 2px 5px;
  border-radius: 4px;
  font-weight: bold;
  letter-spacing: .2px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.25);
}

/* ================= RESPONSIVE UYUMLULUK ================== */
@media (max-width: 992px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .top-bar-flex {
    flex-direction: column;
    text-align: center;
  }
  .hero-grid,
  .why-grid {
    grid-template-columns: 1fr;
  }
  .card,
  .package {
    width: calc(50% - 10px);
  }
  .video-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .whatsapp-float img {
    width: 90px;
  }
}

@media (max-width: 600px) {
  .card,
  .package {
    width: 100%;
  }
  .hero-left h1 {
    font-size: 1.4rem;
  }
  .player-frame iframe {
    height: 300px;
  }
  .page-banner { 
    max-height: 320px; 
  }
  .banner-text h1 { 
    font-size: 1.4rem; 
  }
  .banner-text p { 
    font-size: 0.95rem; 
  }
}