/* Genel yapı */
body {
  margin: 0;
  font-family: sans-serif;
  background-color: #f5f5f5;
}

/* Üst banner + WhatsApp kapsülü */
.banner {
  background-color: #f5f5f5;
  color: #1a2e66;
  padding: 10px 20px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap; /* küçük ekranda alt satıra geçebilsin */
}

/* Soldaki başlık + geri sayım */
.banner-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.banner h2 {
  margin: 0;
  font-size: 18px;
}

#countdown {
  font-weight: normal;
  font-size: 14px;
}

/* Üst banttaki WhatsApp kapsülü */
.banner-whatsapp {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background-color: #25D366;
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.banner-whatsapp:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
}

/* Yuvarlak ikon alanı */
.banner-whatsapp-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

/* Metinler */
.banner-whatsapp-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.banner-whatsapp-text-main {
  font-size: 0.95rem;
}

.banner-whatsapp-text-sub {
  font-size: 0.75rem;
  font-weight: 400;
  opacity: 0.9;
}

/* Tablet ve altı için banner düzeni */
@media (max-width: 768px) {
  .banner {
    justify-content: center;
    text-align: center;
  }

  .banner-left {
    justify-content: center;
  }

  .banner-whatsapp {
    margin: 6px auto 0 auto;
  }
}

/* --- Mobilde banner WhatsApp ikonu (sadece yuvarlak, sağda ve küçük) --- */
@media (max-width: 600px) {
  .banner {
    position: relative; /* içinde absolute konumlandırma yapabilmek için */
  }

  .banner-whatsapp {
    position: absolute;
    right: 16px;
    bottom: 8px;

    padding: 0;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    margin: 0;
    justify-content: center;
    gap: 0;
  }

  .banner-whatsapp-text {
    display: none;  /* "Hemen Mesaj Gönder" yazıları gizlensin */
  }

  .banner-whatsapp-icon {
    width: 28px;
    height: 28px;
    font-size: 20px;
    background: transparent; /* sadece ikon kalsın */
  }
}

/* Menü */
.menu {
  background-color: #ff6f3c;
  padding: 10px 20px;
}

/* Hamburger buton (mobil için) */
.menu-toggle {
  background-color: #ffa559;
  border: none;
  font-size: 24px;
  color: white;
  display: none;
  cursor: pointer;
  padding: 10px;
}

/* Menü öğeleri */
.menu-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 20px;
  justify-content: flex-start;
}

.menu-items li {
  position: relative;
}

.menu-items a {
  color: white;
  text-decoration: none;
  padding: 14px 20px;
  display: block;
  font-weight: bold;
}

.menu-items li:hover > a {
  background-color: #f57c00;
}

/* Alt menü */
.submenu {
  list-style: none;
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #ffa559;
  min-width: 160px;
  z-index: 1000;
  margin: 0;
  padding: 0;
}

.submenu li a {
  padding: 10px 20px;
  white-space: nowrap;
}

/* Hover ile alt menü */
.dropdown:hover .submenu {
  display: block;
}

/* Mobil görünüm */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .menu-items {
    flex-direction: column;
    display: none;
  }

  .menu-items.show {
    display: flex;
  }

  .submenu {
    position: static;
  }

  .dropdown:hover .submenu {
    display: none;
  }

  .dropdown:focus-within .submenu {
    display: block;
  }
}

/* Slider */
.slider {
  position: relative;
  width: 100%;
  max-height: 600px;
  overflow: hidden;
}

/* Görseller */
.slider img,
.slider video {
  width: 100%;
  height: auto;
  display: none;
  object-fit: cover;
}

.slider img.active,
.slider video.active {
  display: block;
  animation: fade 1s ease-in-out;
}

@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* WhatsApp Buton alanı (index altındaki düğme) */
.whatsapp-button-wrapper {
  text-align: center;
  margin-top: 20px;
}

/* Buton stili */
.whatsapp-button {
  display: inline-block;
  background-color: #1a2e66; /* lacivert */
  color: white;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease, transform 0.2s ease;
}

/* Hover efekti */
.whatsapp-button:hover {
  background-color: #0f1d47;
  transform: scale(1.03);
}

/* Instagram alanı */
.instagram-feed {
  margin-top: 40px;
  padding: 20px;
  background-color: #f5f5f5;
  text-align: center;
}

/* Footer */
.site-footer {
  background-color: #1a2e66; /* lacivert */
  color: white;
  padding: 40px 20px;
  text-align: center;
}

.site-footer h3 {
  margin-bottom: 10px;
  font-size: 20px;
  color: white;
}

.site-footer p {
  margin: 5px 0;
  font-size: 14px;
  color: #f5f5f5;
}

.footer-social {
  margin: 20px 0;
}

.footer-social a {
  color: white;
  font-size: 24px;
  margin: 0 12px;
  display: inline-block;
  transition: transform 0.3s ease, color 0.3s ease;
}

.footer-social a:hover {
  color: #ff6f3c; /* Turuncu hover rengi */
  transform: scale(1.2);
}

.footer-copy {
  font-size: 13px;
  margin-top: 20px;
  color: #ccc;
}

/* =========================
   ÖĞRETMENLERİMİZ SAYFASI
   ========================= */

.team-section {
  padding: 60px 20px;
  background-color: #f5f5f5;
}

.team-section .container {
  max-width: 1100px;
  margin: 0 auto;
}

.team-section h1 {
  font-size: 2rem;
  color: #1a2e66;
  text-align: center;
  margin-bottom: 10px;
}

.team-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  font-size: 1rem;
  color: #333;
}

/* Öğretmen kartlarının yerleşimi */
.teacher-cards-modern {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* Tek tek öğretmen kartı */
.teacher-card-modern {
  display: flex;
  background-color: #fef6f0; /* açık krem */
  border-radius: 16px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  align-items: flex-start;
}

.teacher-card-modern:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(255, 165, 89, 0.25);
}

/* Fotoğraf alanı – hem fotoğraflı hem placeholder için */
.teacher-photo {
  flex: 0 0 140px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  background-color: #e0e7ff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px;
}

.teacher-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Görsel yoksa: placeholder görünüm */
.teacher-photo.placeholder {
  border: 2px dashed #1a2e66;
}

.teacher-photo.placeholder span {
  font-size: 0.85rem;
  text-align: center;
  color: #1a2e66;
  padding: 0 8px;
}


/* Sadece Öner Atmaca fotoğrafı – baş kısmı yukarıdan görünsün */
.teacher-photo.teacher-oner img {
  object-position: center top;
}



/* Metin alanı */
.teacher-text {
  padding: 20px 25px;
  flex: 1;
}

.teacher-text h3 {
  margin-top: 0;
  color: #1a2e66; /* lacivert */
  font-size: 22px;
}

.teacher-text p {
  color: #333;
  font-size: 15px;
  line-height: 1.6;
}

.teacher-text p strong {
  color: #ff6f3c; /* turuncu vurgu */
}

/* Mobil uyum - öğretmen kartları */
@media (max-width: 768px) {
  .teacher-card-modern {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .teacher-photo {
    margin: 20px auto 0 auto;
  }

  .teacher-text {
    padding: 15px;
  }
}

/* İLETİŞİM SAYFASI */


/* Üst görsel */
.contact-hero {
  background: url('public/site_gorselleri/iletisim_banner.jpg') center/cover no-repeat;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}


.contact-hero h1 {
  color: white;
  font-size: 48px;
  font-weight: bold;
}

/* İki sütun */
.contact-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  background-color: #f5f5f5;
  padding: 50px 5%;
}

.contact-left,
.contact-right {
  flex: 1;
  min-width: 300px;
}

/* Instagram ve WhatsApp */
.btn-subscribe,
.btn-whatsapp {
  display: inline-block;
  margin-top: 10px;
  padding: 12px 20px;
  background-color: #1a2e66;
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
}

.btn-whatsapp {
  background-color: #25D366;
}

.btn-whatsapp i {
  margin-right: 8px;
}

.whatsapp-box {
  margin-top: 40px;
}

.contact-left p {
  text-align: center;
}

.btn-subscribe,
.btn-whatsapp {
  display: block;
  margin: 10px auto;
  text-align: center;
  width: 200px;
}

/* Form alanı */
.contact-right form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-right input,
.contact-right textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #f5f5f5;
  color: #222;
}

.btn-submit {
  padding: 14px 24px;
  background-color: #1a2e66;
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  width: 50%;
  max-width: 300px;
  align-self: center;
}

.btn-submit:hover {
  opacity: 0.9;
}

/* === Form Gönderildi Modalı === */

.success-overlay {
  display: none;                 /* JS ile açılacak */
  position: fixed;
  inset: 0;                      /* top/right/bottom/left:0 */
  background: rgba(0, 0, 0, 0.35);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.success-modal {
  background: #ffffff;           /* worksheet kartları gibi beyaz zemin */
  border-radius: 16px;
  max-width: 420px;
  width: 100%;
  padding: 24px 22px 20px 22px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12); /* worksheet kartına benzer gölge */
  position: relative;
  border-top: 6px solid #ff6f3c; /* turuncu vurgu (download-btn rengi) */
}

.success-modal h2 {
  margin: 0 0 10px 0;
  font-size: 1.3rem;
  color: #1a2e66;               /* lacivert başlık - sitedeki genel renk */
}

.success-modal p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.6;
  color: #333;
}

/* Kapatma butonu (X) */
.success-close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: transparent;
  border: none;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #999;
}

.success-close:hover {
  color: #555;
}

/* Mobil uyum - zaten width:100; padding ile güzel görünüyor ama
   küçük ekranlarda yazı boyutunu biraz küçültelim */
@media (max-width: 600px) {
  .success-modal {
    max-width: 360px;
    padding: 20px 18px 18px 18px;
  }

  .success-modal h2 {
    font-size: 1.15rem;
  }

  .success-modal p {
    font-size: 0.9rem;
  }
}



/* EĞİTİMLERİMİZ SAYFASI: eğitim kutuları */
.course-container {
  max-width: 900px;
  margin: 50px auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.course-card {
  background-color: #f5f5f5;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.course-card:hover {
  transform: translateY(-5px);
}

.course-header {
  color: #fff;
  padding: 15px 25px;
  font-size: 1.3rem;
  font-weight: 600;
}

.group-course {
  background-color: #ffb84c;
}

.lgs-course {
  background-color: #ffb84c;
}

.course-body {
  padding: 25px;
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
}

/* HAKKIMDA SAYFASI */
.about-container {
  max-width: 1000px;
  margin: 50px auto;
  padding: 0 20px;
}

.about-card {
  display: flex;
  align-items: center;
  background-color: #f5f5f5;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  gap: 30px;
  flex-wrap: wrap;
}

.about-image img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #ff6f3c;
}

.about-text {
  flex: 1;
}

.about-text h2 {
  margin-bottom: 15px;
  color: #1a2e66;
  font-size: 1.8rem;
}

.about-text p {
  font-size: 1rem;
  line-height: 1.7;
  color: #333;
}

/* KİTAPLARIM SAYFASI */
.books-section {
  padding: 60px 20px;
  background-color: #f5f5f5;
}

.books-section .container {
  max-width: 1100px;
  margin: 0 auto;
}

.books-section h1 {
  font-size: 2rem;
  color: #1a2e66;
  text-align: center;
  margin-bottom: 10px;
}

.books-intro {
  max-width: 800px;
  margin: 0 auto 40px auto;
  text-align: center;
  font-size: 1rem;
  color: #333;
}

/* Grid yapısı */
.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

/* Kitap kartı */
.book-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Kapak alanı */
.book-image {
  background-color: #e0e7ff;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.book-image img {
  max-width: 100%;
  border-radius: 8px;
}

/* Kart içeriği */
.book-content {
  padding: 16px 18px 20px 18px;
}

.book-content h2 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: #1a2e66;
}

.book-content p {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 12px;
}

/* Etiketler */
.book-tags {
  margin-bottom: 14px;
}

.book-tags span {
  display: inline-block;
  background-color: #ff6f3c;
  color: #fff;
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 999px;
  margin-right: 6px;
  margin-bottom: 4px;
}

/* Butonlar */
.book-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.book-actions .btn-primary {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  text-decoration: none;
  text-align: center;
  background-color: #ff6f3c;
  color: #fff;
}

/* Menüde aktif sayfa vurgusu */
.menu a.active {
  border-bottom: 2px solid #ff6f3c;
}
  
@media (max-width: 600px) {
  .books-section {
    padding: 40px 16px;
  }

  .book-content {
    padding: 14px 14px 18px 14px;
  }
}

/* ONLINE İÇERİKLER SAYFASI */
.linktree-section {
  padding: 60px 20px;
  text-align: center;
}

.linktree-section h1 {
  font-size: 2rem;
  color: #1a2e66;
  margin-bottom: 12px;
}

.linktree-text {
  font-size: 1rem;
  margin-bottom: 26px;
  color: #333;
}

.linktree-box {
  margin-top: 20px;
}

.btn-linktree {
  display: inline-block;
  padding: 12px 22px;
  background-color: #1a2e66;
  color: #fff;
  border-radius: 12px;
  font-size: 1rem;
  text-decoration: none;
  font-weight: 600;
}

.btn-linktree:hover {
  opacity: 0.85;
}

/* --- Slider Mobil Uyumu --- */
@media (max-width: 768px) {
  .slider {
    max-height: 320px;      /* mobilde çok yer kaplamasın */
  }

  .slider img,
  .slider video {
    height: 100%;
    width: 100%;
    object-fit: cover;      /* güzel kırpılmış görünüm */
  }
}

/* --- İletişim Sayfası Üst Görsel Mobil Uyumu --- */
@media (max-width: 768px) {
  .contact-hero {
    height: 220px;                 /* biraz daha alçak */
    background-size: contain;      /* kelimenin tamamını göster */
    background-position: center;   /* ortala */
    background-color: #ffb84c;     /* görselin arka plan rengiyle uyumlu */
  }
}

/* Tests-Worksheets Bölümü */
.worksheets-section {
  padding: 50px 20px;
  background-color: #f5f5f5;
}

.worksheets-section h1 {
  text-align: center;
  color: #1a2e66;
}

.worksheets-intro {
  max-width: 700px;
  margin: 10px auto 40px auto;
  text-align: center;
  color: #444;
}

.worksheet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: auto;
}

.worksheet-card {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: 0.2s;
}

.worksheet-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.worksheet-card h3 {
  color: #1a2e66;
  font-size: 18px;
}

.download-btn {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 18px;
  background-color: #ff6f3c;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
}

.download-btn:hover {
  background-color: #e55a1c;
}



/* Kart */
.worksheet-card{
  position: relative;
  overflow: hidden; /* köşe etiketi taşmasın */
}

/* Başlık, etikete yer açsın */
.worksheet-card h3{
  margin-top: 12px;
}

/* ===========================
   NEW Etiketi (Köşe Şeridi)
   - Başlığı kapatmaz
   - Mobil uyumlu
   =========================== */

/* Kart */
.worksheet-card{
  position: relative;
  overflow: hidden;
}

/* Başlık, etikete yer açsın */
.worksheet-card h3{
  margin-top: 12px;
}

/* NEW etiketi: köşe şeridi */
.worksheet-card.is-new::before{
  content: "NEW";
  position: absolute;
  top: 12px;
  left: -42px;
  width: 140px;
  text-align: center;
  padding: 10px 0;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 1px;
  color: #fff;
  background: #d83a34;
  transform: rotate(-45deg);
  box-shadow: 0 8px 16px rgba(0,0,0,.18);
  z-index: 3;
  animation: newPulse 1.4s ease-in-out infinite;
}

/* Çok hafif canlılık */
@keyframes newPulse{
  0%,100%{ filter: brightness(1); }
  50%{ filter: brightness(1.12); }
}


/* Mobilde şerit biraz küçülsün */
@media (max-width: 600px){
  .worksheet-card.is-new::before{
    top: 12px;
    left: -48px;
    width: 140px;
    font-size: 13px;
    padding: 9px 0;
  }
  .worksheet-card h3{
    padding-top: 20px;
  }
}

/* NEW etiketi olan kartlarda başlığa boşluk aç */
.worksheet-card.is-new h3{
  padding-left: 70px;
  padding-top: 6px;
}
