/* =========================================================
   🌐 GENEL SAYFA YAPISI
========================================================= */
body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  overflow: hidden;
  background: #f4f8ff;
  display: grid;
  grid-template-rows: 60px 1.5fr 0.5fr 60px;
  height: 100vh;
}

.kutu {
  background: white;
  border: 1px solid #dce6f9;
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.kutu h3 {
  margin-top: 10px;
  padding-bottom: 10px;
  color: #0077cc;
  font-size: 20px;
  border-bottom: 2px solid #0077cc;
  width: 100%;
  text-align: center;
}

/* =========================================================
   ☁️ ÜST BAR (HAVA DURUMU + SAAT)
========================================================= */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #0077cc;
  color: white;
  font-size: 22px;
  padding: 0 40px;
  height: 100%;
}

#havaDurumu {
  display: flex;
  align-items: center;
  gap: 8px;
}

#havaDurumu img {
  width: 35px;
  height: 35px;
}

/* =========================================================
   🧩 GRID YAPISI (ORTA ve ALT BLOKLAR)
========================================================= */
.middle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100%;
}

.bottom {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  height: 100%;
}

.bottom .kutu {
  height: 100%;
  max-height: 250px; /* ekle */
}


/* =========================================================
   🎞️ SLIDER GEÇİŞLERİ
========================================================= */
.slider {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.slider .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 2s ease-in-out;
}

.slider .slide.aktif {
  opacity: 1;
}

/* =========================================================
   🧾 SINAV TABLOSU
========================================================= */

.sinav-tablo-wrapper {
  overflow: hidden;
  width: 100%;
  height: 100%; /* sabit yüksekliğini koru */
  max-height:250px;
}
.sinav-tablo tbody {
  transition: transform 0.1s linear;
}

.sinav-tablo {
  width: 100%;
  border-collapse: collapse;
    max-height:250px;

}

.sinav-tablo td {
  background: #fff;
  padding: 8px;
  text-align: center;
  border-bottom: 1px solid #eee;
  font-size: 16px;
}

.sinav-tablo tr:nth-child(even) td {
  background: #f8faff;
}

/* =========================================================
   🧑‍🏫 NÖBETÇİ TABLOSU
========================================================= */
#nobet {
  position: relative;
  overflow: hidden;
}

#nobetSlider {
  height: 250px; /* kutu yüksekliği sabit kalır */
  overflow: hidden;
  position: relative;
}

#nobetSlider table {
  width: 100%;
  border-collapse: collapse;
}

#nobetSlider td {
  padding: 8px;
  font-size: 18px;
  text-align: left;
}

#nobetSlider img {
  vertical-align: middle;
  margin-right: 8px;
}

/* =========================================================
   🎂 DOĞUM GÜNÜ KARTI
========================================================= */
.dogum-card {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(150, 0, 255, 0.3);
}

.dogum-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.75);
  transition: transform 0.5s ease;
}

.dogum-card:hover .dogum-bg {
  transform: scale(1.05);
}

/* Alt bant (kutlama yazısı) */
.dogum-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(
    135deg,
    rgba(79, 0, 47, 0.85),
    rgba(229, 224, 218, 0.85)
  );
  backdrop-filter: blur(4px);
  border-top-left-radius: 25px;
  border-top-right-radius: 25px;
  color: #fff;
  text-align: center;
  animation: slideUp 0.8s ease;
}

.dogum-overlay .isim {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.dogum-overlay .sinif {
  font-size: 1.1rem;
  font-weight: 500;
  margin: 0;
  opacity: 0.9;
}

.dogum-overlay .dogum-slogan {
  font-size: 1rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.2);
  padding: 6px 16px;
  border-radius: 20px;
  display: inline-block;
  animation: pop 2s infinite ease-in-out;
}

/* Doğum günü animasyonları */
@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes pop {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

/* =========================================================
   📢 DUYURULAR
========================================================= */
.duyuru-bar {
  background: #004aad;
  color: white;
  font-size: 20px;
  display: flex;
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
}

.duyuru-icerik {
  animation: akiskan 100s linear infinite;
}

@keyframes akiskan {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* =========================================================
   🎯 LGS SAYACI (Orbitron Efekti)
========================================================= */
#lgsCountdown {
  font-family: "Orbitron", monospace;
  text-align: center;
  color: #00ffcc;
  font-size: 10px;
  line-height: 1.5;
  animation: glowPulse 2s infinite alternate;
}

.lgs-overlay {
  position: absolute;
  top: 8%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(#001020 40%, #002030 100%);
  color: #00ffcc;
  font-family: "Orbitron", monospace;
  border-radius: 20px;
  width: 250px;
  height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  animation: glow 2s infinite alternate;
}

@keyframes glow {
  0% {
    box-shadow: 0 0 10px #00ffcc;
  }
  100% {
    box-shadow: 0 0 25px #00ffcc, 0 0 50px #00ffcc;
  }
}

@keyframes glowPulse {
  from {
    text-shadow: 0 0 8px #00ffcc;
  }
  to {
    text-shadow: 0 0 18px #00ffee;
  }
}
/* === HABERLER (dogum-kutu ile aynı boyut) === */
#haber {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 80, 255, 0.25);
}

#haberSlider {
  position: relative;
  width: 100%;
  height: 100%;
}

.haber-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.haber-card.aktif {
  opacity: 1;
  z-index: 2;
}

/* Foto slider */
.foto-slider {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* 📸 Fotoğrafları tam sığdırma */
.haber-foto {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: contain; /* tam sığdırır, taşma olmaz */
  object-position: center; /* ortada hizalar */
  transform: translate(-50%, -50%);
  background-color: #000; /* arka plan siyah — orantısız fotolarda boşluklar siyah görünür */
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}
.haber-foto.aktif {
  opacity: 1;
}

/* Alt yazı overlay – doğum overlay'e benzer */
.haber-overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
  color: #fff;
  text-align: center;
  padding: 15px 10px;
  border-top-left-radius: 25px;
  border-top-right-radius: 25px;
  backdrop-filter: blur(3px);
  animation: slideUp 0.8s ease;
}

.haber-baslik {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.haber-icerik {
  font-size: 0.95rem;
  margin-top: 5px;
  opacity: 0.9;
}

/* === ANİMASYONLAR === */
@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
