/* ============================================================
   HABERLER SAYFASI CSS
   Header ve footer stilleri header-footer.css'ten gelir
   ============================================================ */

body {
  margin: 0;
  padding: 0;
}

/* ============================================================
   SECTION 1: HERO
   Sol mavi panel + Sağ banner görseli
   ============================================================ */
.news-hero {
  display: flex;
  flex-direction: row;
  width: 100%;
  margin-top: 93px; /* header yüksekliği */
  height: 339px;
  overflow: hidden;
}

/* Sol panel */
.news-hero__left {
  flex: 0 0 36%;
  background: #004175;
  display: flex;
  align-items: center;
  padding: 0 5%;
}

.news-hero__title {
  font-family: "Outfit", sans-serif;
  font-size: clamp(32px, 3.5vw, 56px);
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  line-height: 1.2;
  letter-spacing: -1px;
}

/* Sağ panel - banner görseli */
.news-hero__right {
  flex: 1;
  background-color: #f8f9fa; /* Yedek arka plan rengi */
  position: relative;
  overflow: hidden;
}

/* Gradients overlay (Resmin üstünde kalması için ::after kullanıldı) */
.news-hero__right::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.85) 0%,
      rgba(255, 255, 255, 0) 50%
    ),
    linear-gradient(0deg, rgba(0, 65, 117, 0.15), rgba(0, 65, 117, 0.15));
  pointer-events: none;
  z-index: 2;
}

.news-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
  position: relative;
}

@media (max-width: 768px) {
  .news-hero {
    flex-direction: column;
    height: auto;
    margin-top: 70px;
  }
  .news-hero__left {
    flex: none;
    padding: 40px 28px;
    height: 160px;
  }
  .news-hero__right {
    display: none;
  }
}

/* ============================================================
   SECTION 2: HABERLER GRID
   ============================================================ */
.news-section {
  background: #ffffff;
  padding: 80px 0 100px 0;
}

.news-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 3 kolonlu 2 satır grid */
.news-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 28px;
  margin-bottom: 60px;
}

/* Haber Kartı */
.news-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%; /* Kartın grid içersinde tam boy olması için */
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
              max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              margin 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}


.news-card__img-link {
  display: block;
  overflow: hidden;
}

.news-card__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.news-card__img-link:hover .news-card__img {
  transform: scale(1.04);
}

.news-card__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1; /* İçeriğin kartın boyunu doldurması için */
}

.news-card__title {
  font-family: "Plus Jakarta Sans", "Outfit", sans-serif !important;
  font-weight: 700;
  font-size: 18px;
  color: #121212;
  margin: 0;
  line-height: 1.4;
  /* Yazı sınırı: 2 satır */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card__text {
  font-family: "Plus Jakarta Sans", "Outfit", sans-serif !important;
  font-weight: 400;
  font-size: 14px;
  color: rgba(18, 18, 18, 0.6) !important; /* Rengi tekrar soft hale getiriyoruz */
  margin: 0;
  line-height: 1.6;
  /* Yazı sınırı: 4 satır */
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
   PAGINATION — MAVİ TEMA
   ============================================================ */
.nimbus-pagination {
  width: 100%;
  padding-top: 60px;
  display: flex;
  justify-content: center;
}

.nimbus-pagination__inner {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nimbus-pagination__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  color: #004175;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  border: none;
  background: transparent;
}

.nimbus-pagination__arrow:hover:not(.disabled) {
  background: #e8f0f7;
  color: #004175;
}

.nimbus-pagination__arrow.disabled {
  color: #bcc8d4;
  pointer-events: none;
  cursor: default;
}

.nimbus-pagination__page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 4px;
  border-radius: 6px;
  font-family: "Outfit", sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #4a5568;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  background: transparent;
}

.nimbus-pagination__page:hover:not(.active) {
  background: #e8f0f7;
  color: #004175;
}

.nimbus-pagination__page.active {
  background: #004175;
  color: #ffffff;
  font-weight: 600;
  pointer-events: none;
}

.nimbus-pagination__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  font-family: "Outfit", sans-serif;
  font-size: 15px;
  color: #4a5568;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .news-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .news-section {
    padding: 60px 0 80px 0;
  }
  .news-inner {
    padding: 0 20px;
  }
}
