/* ============================================================
   DUYURULAR.CSS - Duyurular Bölümü
   ------------------------------------------------------------
   Bu dosya, duyuru kartlarının stillerini, hover efektlerini,
   içerik toggle'ını ve scrollbar tasarımını içerir.
   ============================================================ */

/* ============================================================
   1. KART GENEL STİLİ
   ============================================================ */
.duyuru_card {
  position: relative;
  width: 350px;
  height: 450px;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
  margin: 15px;
  cursor: pointer;
}

/* ============================================================
   2. KART ÇERÇEVESİ (PARLAMA EFEKTİ)
   ============================================================ */
.duyuru_card::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid white;
  border-radius: inherit;
  opacity: 0;
  transition: 0.4s ease-in-out;
  z-index: 2;
}

.duyuru_card:hover::after {
  opacity: 1;
  inset: 15px;
}

/* ============================================================
   3. GÖRSEL KUTUSU
   ============================================================ */
.image-box {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  overflow: hidden;
}

.image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 90%;
  border-radius: inherit;
  transition: 0.5s ease-in-out;
}

/* ============================================================
   4. KART İÇERİK ALANI
   ============================================================ */
.content {
  width: 80%;
  max-height: 300px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  z-index: 3;
  opacity: 0;
  transition: 0.4s ease-in-out;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #FFD700 rgba(0, 0, 0, 0.3);
}

/* ============================================================
   5. SCROLLBAR TASARIMI (WEBKIT)
   ============================================================ */
.content::-webkit-scrollbar {
  width: 6px;
}

.content::-webkit-scrollbar-thumb {
  background-color: #FFD700;
  border-radius: 3px;
}

.content::-webkit-scrollbar-track {
  background-color: rgba(0, 0, 0, 0.1);
}

/* ============================================================
   6. BAŞLIK STİLİ
   ============================================================ */
.content h2 {
  font-size: 28px;
  font-weight: 700;
  color: #FFD700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  margin-bottom: 15px;
}

/* ============================================================
   7. METİN (ÖZET VE İÇERİK)
   ============================================================ */
.content p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* ============================================================
   8. HOVER EFEKTLERİ
   ============================================================ */
.duyuru_card:hover img {
  filter: grayscale(1) brightness(0.4);
  transform: scale(1.1);
}

.duyuru_card:hover .content {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.05);
}

/* ============================================================
   9. KARTLARI TAŞIYAN KONTEYNER
   ============================================================ */
.container {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ============================================================
   10. "DEVAMINI OKU / OKUDUM" BUTONU
   ============================================================ */
.devamini-oku {
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  background: #FFD700;
  color: black;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.devamini-oku::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 100%;
  top: 0;
  left: 0;
  background: rgba(255, 255, 255, 0.3);
  transition: width 0.3s;
}

.devamini-oku:hover::after {
  width: 100%;
}