/* 'INDEX' PAGE - PREMIUM DESIGN SYSTEM */
:root {
  --primary: #2a9d8f;
  --secondary: #e76f51;
  --accent: #e9c46a;
  --dark: #264653;
  --light: #f4f1de;
  --white: #ffffff;
  --gray: #6c757d;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* 1. HERO SLIDER - PREMIUM "POSTER" DESIGN */
.hero-slider {
  position: relative;
  height: 85vh;
  min-height: 550px;
  background: #111;
  /* Dark base for depth */
  overflow: hidden;
}

#heroCarousel,
.carousel-inner,
.carousel-item {
  height: 100%;
}

.carousel-item {
  position: relative;
}

/* Background blurred layer to fill the screen beautifully */
.hero-bg-blur {
  position: absolute;
  inset: -30px;
  /* Slight overflow to hide edges */
  background-size: cover;
  background-position: center;
  filter: blur(30px) brightness(0.4);
  /* Dark and blurred */
  z-index: 1;
}

/* Front container for the full poster */
.hero-img-container {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Centered poster */
  z-index: 2;
  padding: 30px 0;
}

.hero-img {
  height: auto;
  max-height: 90%;
  /* Keep it within view */
  width: auto !important;
  max-width: 90%;
  object-fit: contain;
  /* DO NOT CROP */
  border-radius: 12px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
  animation: zoomInSubtle 12s infinite alternate ease-in-out;
}

/* Sleek Lateral Info Box (Glassmorphism) */
.hero-overlay-content {
  position: absolute;
  left: 8%;
  top: 50%;
  transform: translateY(-50%);
  text-align: left;
  color: white;
  z-index: 10;
  max-width: 480px;
  background: rgba(255, 255, 255, 0.05);
  /* Very transparent */
  backdrop-filter: blur(20px);
  padding: 40px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4);
  animation: slideInLeftFade 1s both;
}

.hero-overlay-content h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.15;
  background: linear-gradient(135deg, #fff 50%, var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}

.hero-overlay-content p {
  font-size: 1.1rem;
  margin-bottom: 35px;
  font-weight: 300;
  opacity: 0.9;
  line-height: 1.6;
}

/* Modern Minimal Button Group */
.hero-overlay-content .btn {
  padding: 14px 35px;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Modern Indicators & Controls */
.carousel-indicators {
  bottom: 30px;
}

.carousel-indicators [data-bs-target] {
  width: 30px;
  height: 4px;
  /* Line style */
  border-radius: 2px;
}

@keyframes zoomInSubtle {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.04);
  }
}

@keyframes slideInLeftFade {
  from {
    opacity: 0;
    transform: translateY(-50%) translateX(-40px);
  }

  to {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
  .hero-slider {
    height: auto;
    background: #111;
  }

  #heroCarousel,
  .carousel-inner,
  .carousel-item {
    height: auto;
  }

  /* Arka plan blur'u mobilde gizle, resimler zaten tam görünecek */
  .hero-bg-blur {
    display: none;
  }

  /* Resimleri mobilde tam genişlikte göster */
  .hero-img-container {
    padding: 0;
  }

  .hero-img {
    width: 100% !important;
    max-width: 100%;
    max-height: none;
    height: auto;
    border-radius: 0;
    box-shadow: none;
    animation: none;
  }

  /* Overlay kartı mobilde gizle (sadece bilgisayarda görünsün) */
  .hero-overlay-content {
    display: none;
  }

  /* Carousel ok ve noktalar mobilde görünsün */
  .carousel-indicators {
    bottom: 10px;
  }
}

/* 2. STATS SECTION (Koleji Statüsü) */
.stats-section {
  padding: 80px 0;
  background: white;
  margin-top: -60px;
  position: relative;
  z-index: 20;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.stat-card {
  text-align: center;
  padding: 20px;
  transition: var(--transition);
}

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

.stat-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 15px;
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--dark);
  display: block;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 1rem;
  color: var(--gray);
  font-weight: 600;
  text-transform: uppercase;
}

/* 3. SERVICES (EĞİTİM MODELİMİZ) */
.services {
  padding: 100px 0;
  background: #fdfdfd;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.service-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-image {
  height: 220px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.service-card:hover .service-image img {
  transform: scale(1.1);
}

.service-card h3 {
  padding: 25px 25px 10px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
}

.service-card p {
  padding: 0 25px 25px;
  color: var(--gray);
  line-height: 1.6;
}

/* 4. HOME NEWS & ANNOUNCEMENTS PREVIEW */
.home-news-preview {
  padding: 100px 0;
  background-color: #fcfcfc;
}

.home-news-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: start;
}

.home-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.home-section-header h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--dark);
  margin: 0;
}

.home-section-header a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.9rem;
  padding: 8px 20px;
  border: 2px solid var(--primary);
  border-radius: 50px;
  transition: var(--transition);
}

.home-section-header a:hover {
  background: var(--primary);
  color: white;
}

/* Main News Cards */
.home-news-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.home-news-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
}

.home-news-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.home-news-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.home-news-card h3 {
  padding: 20px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.5;
  margin: 0;
  flex-grow: 1;
}

.home-news-card a {
  display: inline-block;
  padding: 0 20px 20px;
  color: var(--secondary);
  font-weight: 800;
  text-decoration: none;
  font-size: 0.9rem;
  text-transform: uppercase;
}

/* Aside Announcements */
.home-announcements {
  background: white;
  border-radius: 25px;
  padding: 30px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.announcement-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.announcement-item {
  display: flex;
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid #f0f0f0;
}

.announcement-item:last-child {
  border-bottom: none;
}

.ann-date {
  background: #f8f9fa;
  min-width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.announcement-item:hover .ann-date {
  background: var(--primary);
  color: white;
}

.ann-date strong {
  font-size: 1.25rem;
  line-height: 1;
  font-weight: 800;
}

.ann-date small {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
}

.ann-content {
  flex-grow: 1;
}

.ann-title {
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  cursor: pointer;
  transition: var(--transition);
}

.ann-title:hover {
  color: var(--primary);
}

.ann-detail {
  font-size: 0.9rem;
  color: var(--gray);
  margin-top: 5px;
  line-height: 1.4;
}

/* ANIMATIONS */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero-overlay-content h1 {
    font-size: 2.5rem;
  }

  .stats-grid {
    padding: 20px;
    margin-top: -30px;
  }

  /* Haberler & Duyurular bölümü mobilde alt alta */
  .home-news-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  /* Haber kartları mobilde alt alta (tek sütun) */
  .home-news-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Section header mobilde düzgün wrap */
  .home-section-header {
    flex-wrap: wrap;
    gap: 10px;
  }

  .home-section-header h2 {
    font-size: 1.5rem;
  }

  /* Eğitim Modeli kartları mobilde tek sütun */
  .services-grid {
    grid-template-columns: 1fr;
  }

  /* Home news preview padding azalt */
  .home-news-preview {
    padding: 60px 0;
  }
}