/* --- GENEL KONTEYNER --- */
.politikalar-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
  animation: fadeIn 0.8s ease-in-out;
}

/* --- MASTER WRAPPER (Izgara Kapsayıcısı) --- */
.politikalar-content-wrapper {
  /* Arka plan ve dekoratif ayarlar */
  background: linear-gradient(145deg, #0f3d2e 0%, #002b20 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 40px;
  padding: 40px;
  position: relative;
  overflow: hidden;

  /* IZGARA SİSTEMİ BURADA BAŞLIYOR */
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

/* Dekoratif Arka Plan İkonu */
.politikalar-content-wrapper::before {
  content: "\f3ed";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  top: -20px;
  right: -20px;
  font-size: 8rem;
  color: rgba(74, 222, 128, 0.03);
  transform: rotate(-15deg);
  pointer-events: none;
  z-index: 0;
}

/* --- BAŞLIK (KRİTİK DÜZELTME) --- */
.politikalar-title {
  /* BU SATIR ÇOK ÖNEMLİ: Başlığın tüm satırı kaplamasını sağlar */
  grid-column: 1 / -1;

  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 20px; /* Kartlarla arasındaki boşluk */
  background: linear-gradient(to right, #ffffff, #4ade80);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 15px;
  border-left: 5px solid #009d6c;
  padding-left: 15px;
  z-index: 1; /* Dekoratif ikonun üstünde kalsın */
}

.politikalar-title i {
  color: #4ade80;
  -webkit-text-fill-color: initial;
}

/* --- KÜÇÜK POLİTİKA KARTI --- */
.politikalar-cards {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: all 0.4s ease;
  height: 100%;
  position: relative;
  z-index: 1;
}

.politikalar-cards:hover {
  transform: translateY(-8px);
  border-color: rgba(74, 222, 128, 0.5);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

/* --- GÖRSEL ALANI --- */
.politika-img-container {
  width: 100%;
  height: 80px;
  border-radius: 12px;
  margin-bottom: 15px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  transition: 0.3s;
}

.politikalar-cards:hover .politika-img-container {
  border-color: rgba(74, 222, 128, 0.3);
  background: rgba(74, 222, 128, 0.02);
}

.politika-img {
  max-width: 60px;
  max-height: 100%;
  object-fit: contain;
  opacity: 0.8;
  transition: 0.3s;
}

.politikalar-cards:hover .politika-img {
  opacity: 1;
  transform: scale(1.1);
}

/* --- İÇERİK --- */
.politika-title-container .politika-title {
  font-size: 1.15rem;
  color: #fff;
  font-weight: 700;
  margin-bottom: 12px;
  display: block;
}

.politika-body-container {
  flex-grow: 1;
}

.politika-sub-title {
  color: #009d6c;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 5px;
  display: block;
}

.politika-content {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- BUTON --- */
.politika-footer-container {
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.politika-channel-btn {
  background: #f1f2f2;
  color: #231f20;
  text-align: center;
  padding: 10px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}

.politika-channel-btn:hover {
  background: #4ade80;
  color: #000;
  box-shadow: 0 5px 15px rgba(74, 222, 128, 0.3);
}

/* --- BOŞ DURUM --- */
.empty-politika-state {
  grid-column: 1 / -1; /* Boş durum mesajı da tüm satırı kaplamalı */
  text-align: center;
  padding: 40px;
}

.empty-img {
  width: 100px;
  opacity: 0.4;
  margin-bottom: 15px;
}

.empty-content {
  color: rgba(255, 255, 255, 0.5);
}

/* --- ANİMASYON --- */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- MOBİL --- */
@media (max-width: 992px) {
  .politikalar-content-wrapper {
    padding: 30px;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }

  .politikalar-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .politikalar-content-wrapper {
    padding: 25px;
    border-radius: 30px;
    gap: 25px;
  }

  .politikalar-title {
    font-size: 1.8rem;
    margin-bottom: 10px;
  }
}

@media (max-width: 576px) {
  .politikalar-content-wrapper {
    padding: 20px 15px;
    border-radius: 20px;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .politikalar-title {
    font-size: 1.6rem;
  }

  .politikalar-cards {
    flex-direction: column; /* Stack elements vertically */
    padding: 15px;
  }

  .politika-img-container {
    height: 70px;
    width: 100%;
    margin-right: 0;
    margin-bottom: 10px;
  }

  .politika-body-container {
    flex-grow: 1;
    margin-bottom: 15px;
  }

  .politika-title-container .politika-title {
    font-size: 1.05rem;
    margin-bottom: 5px;
  }

  .politika-content {
    -webkit-line-clamp: 5; /* Restore original line clamp or adjust as needed */
  }

  .politika-footer-container {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%; /* Ensure footer takes full width */
  }

  .politika-channel-btn {
    width: 100%; /* Make button full width */
    font-size: 0.75rem; /* Slightly smaller font for button */
    padding: 8px; /* Adjust button padding */
  }
}

@media (max-width: 400px) {
  .politika-title-container .politika-title {
    font-size: 0.95rem;
  }
  .politika-sub-title {
    font-size: 0.7rem;
  }
  .politika-content {
    font-size: 0.8rem;
  }
}
