/* =========================================================
   HOME PAGE - MODERN CORPORATE LAYOUT
   - Sections (slider / annunciation / martyr / quick)
   - Section heading (icon chip + link)
   - Cards (home-kart)
   - CTA buttons (home-btn)
   - Responsive
========================================================= */

/* ---------- Page wrapper ---------- */
.home-page {
  /* background:
        radial-gradient(1200px 600px at 0% 0%, rgba(139, 0, 0, .04), transparent 60%),
        radial-gradient(1000px 500px at 100% 20%, rgba(44, 62, 80, .04), transparent 60%),
        #f5f6f8;*/
  padding-bottom: 20px;
}

/* Bölümler arası nefes alanı (tek kaynak: simetrik) */
.home-section {
  padding: 14px 0;
}

.home-section--slider {
  padding-top: 8px;
  padding-bottom: 14px;
}

/* Bölüm bazlı zemin tonları (kart kontrastını artırır) */
.home-section--annunciation {
  background: transparent;
}

.home-section--martyr {
  background: linear-gradient(180deg, transparent 0, rgba(139, 0, 0, .035) 40%, transparent 100%);
}

.home-section--quick {
  background: linear-gradient(180deg, transparent 0, rgba(44, 62, 80, .04) 50%, transparent 100%);
  padding-bottom: 14px;
}

/* ---------- Ana kapsayıcı kart ---------- */
.home-container {
  /* Header (container-wrapper: max 2000px) ile uyumlu geniş içerik */
  max-width: 1800px;
  width: 100%;
  /* Bölümler arası boşluk artık .home-section üzerinden gelir */
  margin: 0 auto;
  padding: 24px 28px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 10px 30px rgba(0, 0, 0, .06);
  position: relative;
  overflow: hidden;
}

  /* Üst ince bordo aksan çizgisi */
  .home-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--msb-bordo) 0%, #c0303a 50%, var(--msb-bordo) 100%);
    opacity: .9;
  }

/* ---------- Section Head ---------- */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  margin-bottom: 4px;
  border-bottom: 1px dashed rgba(0, 0, 0, .08);
}

.section-head-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

/* İkon chip */
.section-icon {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--msb-bordo), #a30000);
  color: #fff;
  font-size: 1.1rem;
  box-shadow: 0 6px 14px rgba(139, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .25);
}

.section-title-wrap {
  min-width: 0;
}

.section-title {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 750;
  color: #1f2937;
  line-height: 1.15;
  letter-spacing: .2px;
}

.section-accent {
  width: 64px;
  height: 4px;
  background: linear-gradient(90deg, var(--msb-bordo), #c0303a);
  border-radius: 999px;
  margin-top: 8px;
}

/* Sağ üst link */
.section-link {
  color: var(--msb-bordo);
  font-weight: 650;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(139, 0, 0, .22);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  text-decoration: none;
  background: rgba(139, 0, 0, .04);
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

  .section-link:hover {
    background: var(--msb-bordo);
    color: #fff;
    text-decoration: none;
    border-color: var(--msb-bordo);
    transform: translateX(2px);
  }

  .section-link i {
    transition: transform .2s ease;
  }

  .section-link:hover i {
    transform: translateX(2px);
  }

/* ---------- Kart ---------- */
.home-kart {
  position: relative;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .06);
  border-radius: 14px;
  overflow: hidden;
  height: 100%;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .05);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  isolation: isolate;
}

  /* Sol kenarda bordo şerit */
  .home-kart::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--msb-bordo), #c0303a);
    z-index: 1;
  }

  /* Hover'da arka plana yumuşak parıltı */
  .home-kart::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(600px 200px at 50% -20%, rgba(139, 0, 0, .08), transparent 60%);
    opacity: 0;
    transition: opacity .3s ease;
    z-index: 0;
    pointer-events: none;
  }

  .home-kart:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 32px rgba(139, 0, 0, .15);
    border-color: rgba(139, 0, 0, .25);
  }

    .home-kart:hover::after {
      opacity: 1;
    }

  .home-kart:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(139, 0, 0, .25), 0 16px 32px rgba(139, 0, 0, .15);
  }

/* Kart içi düzen */
.home-kart-body {
  padding: 20px 20px 18px 22px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  position: relative;
  z-index: 1;
  height: 100%;
}

.home-kart-main {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.home-tarih {
  background: linear-gradient(135deg, var(--msb-bordo), #a30000);
  color: #fff;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  white-space: nowrap;
  align-self: flex-start;
  box-shadow: 0 4px 10px rgba(139, 0, 0, .18);
}

.home-baslik-text {
  color: #1f2937;
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 1.05rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .2s ease;
  /* 2 satırlık alanı her kartta rezerve et (kısa başlıklarda da boşluk korunur) */
  min-height: calc(1.3em * 2);
}

.home-kart:hover .home-baslik-text {
  color: var(--msb-bordo);
}

.home-ozet {
  color: #6c757d;
  margin: 0 0 14px;
  font-size: .92rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  /* 3 satırlık alanı her kartta rezerve et */
  min-height: calc(1.55em * 3);
}

/* Kart altı CTA */
.home-kart-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--msb-bordo);
  font-weight: 600;
  font-size: .85rem;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed rgba(0, 0, 0, .08);
  transition: gap .2s ease, color .2s ease;
}

  .home-kart-more i {
    font-size: .75rem;
    transition: transform .25s ease;
  }

.home-kart:hover .home-kart-more {
  gap: 10px;
  color: #a30000;
}

  .home-kart:hover .home-kart-more i {
    transform: translateX(4px);
  }

/* ---------- Tümünü Gör butonu ---------- */
.home-btn {
  background: linear-gradient(135deg, var(--msb-bordo), #a30000);
  color: #fff;
  border: none;
  padding: 12px 30px;
  border-radius: 999px;
  font-weight: 600;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(139, 0, 0, .25);
  position: relative;
  overflow: hidden;
}

  .home-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .25) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform .6s ease;
  }

  .home-btn:hover {
    background: linear-gradient(135deg, #a30000, var(--msb-bordo));
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(139, 0, 0, .35);
  }

    .home-btn:hover::after {
      transform: translateX(100%);
    }

  .home-btn i {
    transition: transform .2s ease;
  }

  .home-btn:hover i {
    transform: translateX(4px);
  }

/* ---------- Quick (Hızlı Erişim) ---------- */
.quick-container {
  background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
}

.quick-row {
  --bs-gutter-y: 1rem;
}

/* ---------- Boş durum ---------- */
.home-container .alert-light {
  background: linear-gradient(180deg, #fafbfc, #f3f5f7);
  border-color: rgba(0, 0, 0, .08);
  color: #6c757d;
  border-radius: 12px;
  padding: 18px 20px;
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 1199px) {
  .home-container {
    max-width: 100%;
    margin: 0 16px;
    width: auto;
  }
}

@media (max-width: 992px) {
  .home-section {
    padding: 12px 0;
  }

  .home-container {
    padding: 20px 22px;
    margin: 0 14px;
    width: auto;
  }

  .section-title {
    font-size: 1.35rem;
  }

  .section-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .home-section {
    padding: 10px 0;
  }

  .home-section--slider {
    padding-top: 6px;
    padding-bottom: 10px;
  }

  .home-section--quick {
    padding-bottom: 10px;
  }

  .home-container {
    padding: 18px;
    margin: 0 12px;
    width: auto;
    border-radius: 14px;
  }

  .home-baslik-text {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .home-page {
    padding-bottom: 14px;
  }

  .home-section {
    padding: 8px 0;
  }

  .home-section--slider {
    padding-top: 4px;
    padding-bottom: 8px;
  }

  .home-section--quick {
    padding-bottom: 8px;
  }

  .home-container {
    padding: 14px;
    margin: 0 10px;
    width: auto;
    border-radius: 12px;
  }

  .section-head {
    flex-wrap: wrap;
    gap: 10px;
    padding-bottom: 12px;
  }

  .section-head-left {
    gap: 10px;
  }

  .section-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    font-size: .95rem;
  }

  .section-title {
    font-size: 1.15rem;
  }

  .section-accent {
    width: 48px;
    height: 3px;
  }

  .section-link {
    padding: 6px 12px;
    font-size: .82rem;
  }

  .home-kart-body {
    padding: 16px 16px 14px 18px;
    gap: 10px;
  }

  .home-tarih {
    font-size: .76rem;
    padding: 4px 12px;
  }

  .home-baslik-text {
    font-size: .98rem;
    /* Mobilde de 2 satırlık alanı koru */
    min-height: calc(1.3em * 2);
  }

  .home-ozet {
    font-size: .88rem;
    -webkit-line-clamp: 2;
    /* Mobilde özet 2 satıra düşüyor */
    min-height: calc(1.55em * 2);
  }

  .home-kart-more {
    font-size: .8rem;
  }

  .home-btn {
    padding: 11px 24px;
    font-size: .92rem;
  }
}

/* Alt CTA butonu wrapper'ı (.text-center.mt-4) için boşluk azaltma */
.home-container > .text-center.mt-4 {
  margin-top: 16px !important;
}
