/* ==============================
   TEMEL DEĞİŞKENLER
============================== */
:root {
  --nav-bg: #005daa;   /* Navbar ve footer arka plan rengi */
  --btn-bg: #005daa;   /* Buton ana rengi ve hover renkleri */
}

/* ==============================
   GENEL STİLLER
============================== */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  padding-top: 120px; /* Navbar yüksekliği kadar boşluk */
}
.card-title{font-size: calc(1rem + .6vw);}
/* ==============================
   NAVBAR
============================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
  background-color: transparent;
}
.navbar.scrolled {
  background-color: var(--btn-bg); /* Scroll sonrası arka plan */
  box-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

/* Navbar link renkleri (HER ZAMAN MAVİ) */
.navbar .nav-link {
  color: var(--nav-bg);
  transition: color 0.3s ease;
}

/* ❌ beyazı KALDIRDIK, mavi yaptık */
.navbar.scrolled .nav-link {
  color: var(--nav-bg);
}

.navbar-brand img {
  transform: translateY(-4px);
}


.course-box {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  height: 280px; /* biraz küçülttük */
  cursor: pointer;
}

.course-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;   /* 🔑 kırpma yok */
}

.course-overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  min-height: 35%;
  padding: 15px 10px;
  color: #fff;

  display: flex;
  flex-direction: column;
  justify-content: center;   /* 🔑 dikey ortalama */
  align-items: center;       /* 🔑 yatay ortalama */
  text-align: center;
  transition: all .3s ease;
}

.course-overlay .arrow {
  width: 40px;
  height: 40px;
  background: #fff;
  color: #000;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  margin-bottom: 10px;   /* 🔑 yazıdan üstte */
}

.course-overlay h4 {
  font-size: 16px;
  line-height: 1.3;
  margin: 0;
}


.course-box:hover .course-overlay {
  min-height: 65%;
}


/* TOPBAR */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 40px;
  background: #fdfdfd;          /* 🔑 BEYAZ */
  z-index: 1100;
  display: flex;
  align-items: center;

  transition: transform 0.3s ease; /* 🔑 animasyon */
}

/* Topbar gizli hali */
.topbar.hide {
  transform: translateY(-100%);
}

/* TOPBAR İÇERİK RENKLERİ */
.topbar a,
.topbar i {
  color: var(--btn-bg);
}

/* NAVBAR */
.navbar {
  position: fixed;
  top: 40px;                /* 🔑 topbar yüksekliği */
  left: 0;
  width: 100%;
  z-index: 1090;
  transition: top 0.3s ease; /* 🔑 animasyon */
}

/* Topbar gizliyken navbar yukarı çıksın */
.navbar.top {
  top: 0;
}

/* SOSYAL MEDYA */
.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--btn-bg);
}

/* SAYFA İÇERİĞİ */
body {
  padding-top: 130px; /* 40 + navbar */
}


/* Renkler */
.bg-blue { background: #1e73be; }
.bg-orange { background: #f57c00; }
.bg-turquoise { background: #2bbbad; }
.bg-red { background: #e53935; }

/* Mobil */
@media (max-width: 768px) {
  .course-box {
    height: 240px;
  }
  .course-overlay h4 {
    font-size: 15px;
  }
}



/* Carousel ok ikonları */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: grayscale(100%) brightness(60%); /* 🔑 gri */
}

/* Hover’da biraz koyulaşsın */
.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
  filter: grayscale(100%) brightness(40%);
}


/* ==============================
   MOBİL NAVBAR
============================== */
@media (max-width: 991.98px) {
  /* Hamburger icon */
 

  /* Mobil menü açıldığında */
  .navbar-collapse.show {
    background-color: var(--nav-bg);
    padding: 1rem 0;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 999;
  }

  .navbar-collapse.show .nav-link {
    color: #fff;
    display: block;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
  }

  .navbar-collapse.show .nav-link:hover {
    color: #D5B368;
    background-color: rgba(255, 255, 255, 0.1);
  }
}

/* ==============================
   HERO & SLIDER
============================== */
.hero .carousel-item img {
  height: 600px;
  width: 100%;
  object-fit: cover;
}
.hero .carousel {
  background-color: #000;
}
.carousel-caption {
  background: rgba(0, 0, 0, 0.4);
  padding: 20px;
  border-radius: 10px;
  color: #fff;
}

/* ==============================
   KURS KARTLARI
============================== */
.course-card img {
  height: 200px;

}
.card-text {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.courses .card-text {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==============================
   BUTONLAR
============================== */
.btn-primary {
  background-color: var(--btn-bg);
  border-color: var(--btn-bg);
  color: #fff;
  transition: all 0.3s ease;
}
.btn-primary:hover {
  background-color: #005dcc;
  border-color: #005dcc;
}
.btn-outline-primary {
  color: var(--btn-bg);
  border-color: var(--btn-bg);
  transition: all 0.3s ease;
}
.btn-outline-primary:hover {
  background-color: var(--btn-bg);
  color: #fff;
  border-color: var(--btn-bg);
}
.alert.alert-warning {
  background-color: var(--nav-bg) !important;
}
/* ==============================
   FOOTER
============================== */
footer {
  background: var(--nav-bg) !important;
  color: #fff;
  padding: 20px 0;
  text-align: center;
}
.footer a:hover {
  color: var(--btn-bg);
  text-decoration: underline;
}
.footer i {
  font-size: 1.2rem;
  transition: transform 0.3s;
}
.footer i:hover {
  transform: scale(1.2);
  color: var(--btn-bg);
}
@media (min-width: 768px) {
  .footer .col-md-4:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.3);
    padding-right: 30px;
  }
  .footer .col-md-4:not(:first-child) {
    padding-left: 30px;
  }
}
@media (max-width: 767px) {
  .footer .col-md-4 {
    border-right: none;
    padding: 0;
    margin-bottom: 20px;
  }
}

/* ==============================
   EĞİTMEN SLIDER OKLARI
============================== */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-image: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.carousel-control-prev-icon::before {
  content: '\2039';
  font-size: 2rem;
  color: #fff;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.carousel-control-next-icon::before {
  content: '\203A';
  font-size: 2rem;
  color: #fff;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

/* ==============================
   ANİMASYONLU <hr>
============================== */
hr.animated-hr {
  border: 0;
  height: 3px;
  width: 100%;
  background: var(--btn-bg);
  margin: 20px auto;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}
hr.animated-hr::before {
  content: "";
  position: absolute;
  left: -100%;
  top: 0;
  height: 100%;
  width: 100%;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.6), transparent);
  animation: slide 2s infinite;
}
@keyframes slide {
  0% { left: -100%; }
  50% { left: 100%; }
  100% { left: 100%; }
}

/* ==============================
   ABOUT / CONTACT BANNER
============================== */
.contact-hero {
  position: relative;
  background-image: url('../img/banner-about.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}
.contact-hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  z-index: 1;
}
.contact-hero .container {
  position: relative;
  z-index: 2;
}

/* ==============================
   GİZLİLİK POLİTİKASI
============================== */
.policy-section {
  background-color: #f9f9f9;
  border-radius: 10px;
  padding: 40px;
  box-shadow: 0 0 15px rgba(0,0,0,0.05);
}
.policy-section h2, .policy-section h3 {
  color: var(--btn-bg) !important;
  margin-top: 30px;
}
.policy-section a {
  color: var(--btn-bg) !important;
  text-decoration: underline;
}

/* ==============================
   BREADCRUMB
============================== */
.breadcrumb-bg {
  background-color: var(--btn-bg) !important;
  color: white;
  padding: 20px 0;
  text-align: center;
}
/* WhatsApp Butonu */
#whatsapp-wrapper {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99999;
  font-family: Arial, sans-serif;
}

/* Yuvarlak buton */
#whatsapp-btn {
  background-color: var(--btn-bg);
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  color: white;
  font-size: 28px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  transition: background-color 0.3s ease, transform 0.2s ease;
}

#whatsapp-btn:hover {
  background-color: rgba(0, 93, 170, 0.8); /* var(--btn-bg) + transparans */
  transform: scale(1.1);
  transition: all 0.3s ease;
}

/* Chat kutusu (başlangıçta gizli) */
#whatsapp-chat {
  width: 320px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  overflow: hidden;
  position: absolute;
  bottom: 70px;
  right: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  user-select: none;
  cursor: default;
}

/* Chat kutusu açıkken */
#whatsapp-chat.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#chat-header {
  background-color:var(--btn-bg);
  color: white;
  padding: 15px 20px;
  font-weight: bold;
  font-size: 18px;
  align-items: center;
}

#chat-header button {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}

#chat-body {
  padding: 20px;
  font-size: 14px;
  color: #333;
  line-height: 1.4;
}

#chat-body p {
  margin-bottom: 15px;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  background-color: #ddd;
  color: white;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 30px;
  font-weight: bold;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

.btn-whatsapp i {
  margin-right: 10px;
  font-size: 20px;
  color: #1e73be; /* kurumsal mavi */
}

.btn-whatsapp:hover {
  background-color: #128c2e;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('admin/img/referans/cambridge.png') no-repeat center bottom;
  background-size: cover;
  opacity: 0.15;
  z-index: -10;
  pointer-events: none;
}

/* Referanslar bölümü cam efekti */
.references-section {
  background-color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  position: relative;
  z-index: 1;
  padding: 60px 20px;
  border-radius: 10px;
}
/* ==============================
   KURS KARTLARI - CANLI ANIMASYON
============================== */

/* Temel kart stilleri (mevcut kodunu geliştir) */
.course-card {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  border: none;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.course-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(213,179,104,0.1), transparent);
  transition: left 0.6s;
  z-index: 1;
}

.course-card:hover::before {
  left: 100%;
}

/* RESİM HOVER EFEKTİ */
.course-card img {
  transition: all 0.4s ease;
  transform: scale(1);
}

.course-card:hover img {
  transform: scale(0.9);
}

/* KART HOVER - ANA HAREKET */
.course-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 25px 50px rgba(213, 179, 104, 0.25);
}

.course-card:hover .card-title::after {
  width: 100%;
}
/* METİN FADE-IN */
.course-card .card-text {
  transition: all 0.3s ease;
  opacity: 0.9;
}
.course-card:hover .card-text {
  opacity: 1;
  transform: translateY(-2px);
}
.course-card .card-text {
  display: -webkit-box !important;
  -webkit-line-clamp: 5 !important;  /* ← 3 SATIR! */
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  transition: all 0.3s ease;
  opacity: 0.9;
  margin-bottom: 15px;  /* ← Alt boşluk */
}

.course-card:hover .card-text {
  opacity: 1;
  transform: translateY(-2px);
}
.course-card .card-title {
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  padding-bottom: 8px;
  margin-bottom: 8px !important;  /* ← BOŞLUK AZALTILDI */
}

.course-card .card-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--btn-bg), #b89c56);
  border-radius: 2px;
  transition: width 0.4s ease;
  box-shadow: 0 2px 8px rgba(213, 179, 104, 0.4);
}
/* BUTON PULS EFEKTİ */
.course-card .btn-outline-primary {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}
.course-card .btn-outline-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.course-card .btn-outline-primary:hover::before {
  left: 100%;
}

.course-card .btn-outline-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(213, 179, 104, 0.3);
}

/* SAYFA YÜKLENİRKEN GİRİŞ ANIMASYONU */
.course-card {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s ease forwards;
}

.course-card:nth-child(1) { animation-delay: 0.1s; }
.course-card:nth-child(2) { animation-delay: 0.2s; }
.course-card:nth-child(3) { animation-delay: 0.3s; }
.course-card:nth-child(4) { animation-delay: 0.4s; }
.course-card:nth-child(5) { animation-delay: 0.5s; }
.course-card:nth-child(6) { animation-delay: 0.6s; }
.course-card:nth-child(7) { animation-delay: 0.7s; }
.course-card:nth-child(8) { animation-delay: 0.8s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* MOBİL UYUMLU */
@media (max-width: 768px) {
  .course-card:hover {
    transform: translateY(-8px) scale(0.8);
    box-shadow: 0 15px 30px rgba(213, 179, 104, 0.2);
  }
}
/* ==============================
   KURS DETAY RESMİ - MOBİL SABİT
============================== */
.kursdetayresmi {
  transition: all 0.4s ease !important;
  transform: scale(1);
  display: block !important;
  margin: 0 auto !important;
}

.kursdetayresmi:hover {
  transform: scale(1.08) !important;
  box-shadow: 0 15px 30px rgba(213, 179, 104, 0.3) !important;
  z-index: 10;
}

/* MOBİL - SABİT + ORTADA */
@media (max-width: 768px) {
  .kursdetayresmi {
    margin: 0 auto !important;
    display: block !important;
    max-width: 100% !important;
    transform: scale(1) !important;  /* ← SABİT KAL! */
    transition: none !important;     /* ← ANIMASYON YOK! */
  }
  
  .kursdetayresmi:hover {
    transform: scale(1) !important;  /* ← HAREKETSİZ! */
    box-shadow: 4px 6px 10px rgba(0,0,0,0.5) !important;  /* ← ORJİNAL GÖLGE */
  }
  .mb-3{margin-top: 10px;}
  .btn {width:100%;}
}
/* ==============================
   DROPDOWN SCROLL DÜZENİ
============================== */
.dropdown-menu {
  max-height: 400px;          /* Menü maksimum yüksekliği */
  overflow-y: auto;            /* Taşarsa dikey scroll çıksın */
  overflow-x: hidden;          /* Yatay kaydırma olmasın */
}

/* Scroll çubuğu tasarımı (isteğe bağlı - modern görünüm) */
.dropdown-menu::-webkit-scrollbar {
  width: 6px;
}

.dropdown-menu::-webkit-scrollbar-thumb {
  background-color: var(--btn-bg); /* Altın tonlu */
  border-radius: 10px;
}

.dropdown-menu::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.05);
}

/* Mobilde menü tam ekran açılacağı için scroll sınırlaması olmasın */
@media (max-width: 991px) {
  .dropdown-menu {
    max-height: none;
    overflow: visible;
  }
}
/* ==============================
   DROPDOWN MENÜ RENK DÜZENİ
============================== */
.navbar .dropdown-menu {
  background-color: var(--nav-bg); /* Menü arka planı lacivert */
  border: none;
  border-radius: 0 0 10px 10px;
  padding: 0.5rem 0;
}

.navbar .dropdown-menu .dropdown-item {
  color: #fff; /* Yazı rengi beyaz */
  transition: all 0.2s ease-in-out;
  padding: 10px 20px;
}

.navbar .dropdown-menu .dropdown-item:hover,
.navbar .dropdown-menu .dropdown-item:focus {
  background-color: var(--btn-bg); /* Hoverda altın tonlu */
  color: #fff;
}

/* Mobilde de okunabilirliği koru */
@media (max-width: 991px) {
  .navbar .dropdown-menu {
    background-color: var(--nav-bg);
  }
  .navbar .dropdown-menu .dropdown-item {
    color: #fff;
  }
}
/* Dropdown menü arka plan ve yazı renk düzeltmesi */
/* ==============================
   NAVBAR DROPDOWN VE AKTİF RENK DÜZELTMESİ
============================== */

/* Dropdown menü arka plan ve yazı rengi */
.navbar .dropdown-menu {
  background-color: var(--nav-bg) !important; /* Koyu arka plan */
  border: none !important;
}

/* Dropdown içindeki linkler */
.navbar .dropdown-menu .dropdown-item {
  color: #fff !important; /* Beyaz yazı */
  transition: all 0.3s ease;
}

/* Hover efekti */
.navbar .dropdown-menu .dropdown-item:hover,
.navbar .dropdown-menu .dropdown-item:focus {
  background-color: var(--btn-bg) !important; /* Altın tonlu hover */
  color: #fff !important;
}

/* “Kurslar” gibi aktif menü elemanları */
.navbar .nav-link.active {
  color: var(--btn-bg) !important; /* Altın renk aktif */
  font-weight: 600;
}

/* Scroll sonrası aktif menü görünürlüğü */
.navbar.scrolled .nav-link.active {
  color: #fff !important;
}

/* Navbar beyaz zemin aldıysa yazıların görünür kalması için */
.navbar.bg-white .nav-link {
  color: var(--nav-bg) !important;
}
.navbar.bg-white .nav-link:hover {
  color: var(--btn-bg) !important;
}
.dot {
  display:inline-block;
  width:10px;
  height:10px;
  border-radius:50%;
  margin-right:6px;
}

.blue { background:#007bff; }
.orange { background:#fd7e14; }
.purple { background:#6f42c1; }
.yellow { background:#ffc107; }
.green { background:#28a745; }
.pink { background:#e83e8c; }

.navbar-light .nav-link {
  font-weight: 500;
}

.dropdown-menu {
  border-radius: 0;
}

/* dil seçim*/
.language-switch img {
  cursor: pointer;
  border-radius: 20%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.language-switch img:hover {
  transform: scale(1.1);
  box-shadow: 0 0 5px rgba(0,0,0,0.4);
}
@media (max-width: 768px) {
  .hero .carousel-item img {
    height: 280px;          /* Mobil için ideal */
    object-position: center;
  }

  .carousel-caption {
    padding: 10px;
    font-size: 14px;
  }
}

/* Küçük telefonlar */
@media (max-width: 480px) {
  .hero .carousel-item img {
    height: 220px;
  }

  .carousel-caption {
    font-size: 13px;
  }
}


