/* --- Temel Ayarlar --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: "Segoe UI", system-ui, sans-serif;
  line-height: 1.7;
}

/* --- Konteyner --- */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 20px;
}

/* --- Header --- */
main > div:first-child {
  text-align: center;
  margin-bottom: 70px;
  padding: 50px;
  background-color: var(--bg-sec);
  border-radius: 25px;
  border-bottom: 6px solid var(--bg-accent);
}

main h1 {
  font-size: 3rem;
  color: var(--text-sec);
  letter-spacing: 1px;
  margin-bottom: 10px;
}

main p:first-of-type {
  font-size: 1.2rem;
  font-style: italic;
  opacity: 0.8;
}

/* --- Haber Kartı (Yatay Düzen) --- */
.news-item {
  display: flex;
  background-color: var(--bg-sec);
  border-radius: 25px;
  margin-bottom: 50px;
  overflow: hidden; /* Resmin köşelerinin taşmasını engeller */
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 122, 122, 0.08);
  transition: transform 0.3s ease;
}

.news-item:hover {
  transform: translateY(-5px);
}

/* --- Görsel Alanı (Sol) --- */
.news-item img {
  width: 400px; /* Sabit genişlik */
  min-width: 400px;
  height: auto;
  min-height: 100%;
  object-fit: cover;
  border-radius: 22px;
}

/* --- Metin Alanı (Sağ) --- */
.news-item-content {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.date {
  align-self: flex-start;
  background-color: var(--bg-accent);
  color: var(--text-light);
  padding: 5px 15px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.news-item h2 {
  font-size: 1.8rem;
  color: var(--text-sec);
  margin-bottom: 20px;
  line-height: 1.3;
}

.news-item p {
  font-size: 1.1rem;
  margin-bottom: 15px;
  text-align: justify;
}

.news-item p:last-child {
  margin-bottom: 0;
}

/* --- Responsive (Mobil) --- */
@media (max-width: 900px) {
  .news-item {
    flex-direction: column;
  }

  .news-item img {
    width: 100%;
    min-width: 100%;
    height: 250px;
  }

  .news-item-content {
    padding: 30px;
  }

  main h1 {
    font-size: 2.2rem;
  }
}
