/*
Blog List Page
- Hero2
- Blog List
*/

/* Hero2 */
.ko-hero2 {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  max-height: 625px;

  @media (width >=992px) {
    aspect-ratio: 5 / 2;
    padding-top: 50px;
  }
}

.ko-hero2__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.ko-hero2__img,
.ko-hero2__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ko-hero2__bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  /* Subtle overlay for text legibility */
  z-index: 2;
}

.ko-hero2__container {
  position: relative;
  z-index: 3;
  width: 100%;
}

.ko-hero2__content {
  color: var(--ko-white);
  max-width: 1000px;
  margin-inline: auto;
  font-size: clamp(16px, 1.375vw, 22px);
  font-weight: 200;
}

.ko-hero2__title {
  font-family: var(--ko-font-heading);
  font-size: clamp(2.3rem, 6.25vw, 5.75rem);
  font-weight: inherit;
  line-height: 1.2;
  text-wrap: balance;
  /* Modern CSS for balanced wrap */
}

/* =========================================
  Blog Kart
========================================= */
@media (hover: hover) {
  .ko-blog-kart a:hover {
    text-decoration: underline;
  }
}

.ko-blog-kart__image-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  margin-bottom: 30px;
  overflow: hidden;

  @media (width >=992px) {
    aspect-ratio: 16 / 9;
  }
}

.ko-blog-kart__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ko-blog-kart-info {
  text-align: left;
}

.ko-blog-kart-title {
  font-family: var(--ko-font-heading);
  font-size: 24px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.2;
  margin-bottom: 20px;
  font-weight: 300;
  color: var(--ko-blue);

  @media (width >=768px) {
    font-size: 22px;
  }
}

.ko-blog-kart-text {
  font-family: var(--ko-font-main);
  font-size: 16px;
  color: var(--ko-blue);
}


/* =========================================
- Blog List
========================================= */
.ko-blog-list {
  row-gap: 40px;

  @media (width <450px) {
    /* mobilde 2 kolon çok dar kalıyor */
    --ko-grid-columns: 1;
  }

  @media (width >=992px) {
    row-gap: 60px;
  }
}


/* =========================================
- Pagination
========================================= */
.ko-pagination-nav {
  margin-top: 30px;
}

.ko-pagination-nav .pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 0;
  list-style: none;
  margin: 0;
}

.ko-pagination-nav .page-item .page-link {
  display: block;
  border: 1px solid #111;
  /* Fallback if var not ready */
  border-color: var(--ko-blue);
  color: var(--ko-blue);
  padding: 8px 16px;
  background-color: transparent;
  transition: all 0.3s ease;
  font-family: var(--ko-font-main);
  text-decoration: none;
  line-height: 1;
}

.ko-pagination-nav .page-item.active .page-link {
  background-color: var(--ko-blue);
  color: var(--ko-white);
}

.ko-pagination-nav .page-item .page-link:hover {
  background-color: var(--ko-blue);
  color: var(--ko-white);
}

/* =========================================
- Responsive düzeltmeleri - 15 Nisan 2026
========================================= */
.ko-container:has(>.ko-blog-list) {
  /* padding mobilde çok büyük, azaltıldı */
  --ko-container-padding: 30px;

  @media (width >=768px) {
    --ko-container-padding: unset;
  }
}