/* Duyuru / Haber / Etkinlik — Tumu liste sayfaları (KKU tema) */

.kku-list-section {
  --kku-red: #c9151b;
  --kku-darkred: #9e1b32;
  --kku-navy: #053170;
  --kku-paper: #f7f8fa;
  --kku-ink: #01172f;
  --kku-muted: #5c6b7a;

  position: relative;
  padding: 20px 0 40px;
  min-height: calc(100vh - 220px);
  background:
    radial-gradient(ellipse 48% 42% at 100% 0%, rgba(201, 21, 27, 0.06), transparent 55%),
    radial-gradient(ellipse 42% 38% at 0% 100%, rgba(5, 49, 112, 0.05), transparent 50%),
    var(--kku-paper);
}

.kku-list-section > .container {
  position: relative;
  z-index: 1;
}

.kku-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(1, 23, 47, 0.08);
}

.kku-list-header h2 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--kku-navy);
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.02em;
}

.kku-list-header h2 i {
  color: var(--kku-red);
}

.kku-list-search {
  width: 340px;
  max-width: 100%;
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 10px;
  border: 1px solid rgba(1, 23, 47, 0.1);
  padding: 3px;
  height: 40px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.kku-list-search:focus-within {
  border-color: var(--kku-navy);
  box-shadow: 0 0 0 3px rgba(5, 49, 112, 0.1);
}

.kku-list-search input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 0 12px;
  height: 34px;
  font-size: 0.95rem;
  color: var(--kku-ink);
  outline: 0;
  margin: 0;
}

.kku-list-search input::placeholder {
  color: var(--kku-muted);
  opacity: 0.85;
}

.kku-list-search button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: var(--kku-navy);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.kku-list-search button:hover {
  background: var(--kku-red);
}

.kku-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.kku-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(1, 23, 47, 0.06);
  box-shadow: 0 6px 22px rgba(1, 23, 47, 0.08);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.kku-list-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--kku-red), var(--kku-navy));
}

.kku-list-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(1, 23, 47, 0.14);
  border-color: rgba(201, 21, 27, 0.2);
}

.kku-list-item--media {
  align-items: flex-start;
}

.kku-list-media {
  width: 200px;
  height: 120px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #e8eef4;
  position: relative;
}

.kku-list-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.kku-list-item:hover .kku-list-media img {
  transform: scale(1.06);
}

.kku-list-info {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.kku-list-date {
  color: var(--kku-muted);
  font-size: 0.88rem;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.kku-list-date i {
  color: var(--kku-navy);
}

.kku-list-title {
  margin: 0;
  line-height: 1.4;
  font-size: 1.02rem;
  font-weight: 700;
}

.kku-list-title a {
  color: var(--kku-ink) !important;
  text-decoration: none !important;
  transition: color 0.2s ease;
}

.kku-list-title a:hover,
.kku-list-item:hover .kku-list-title a {
  color: var(--kku-red) !important;
}

.kku-list-action {
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.kku-list-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 10px;
  border: 1px solid var(--kku-navy);
  color: var(--kku-navy) !important;
  background: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.kku-list-btn:hover {
  background: var(--kku-navy);
  color: #fff !important;
  text-decoration: none !important;
  transform: translateX(2px);
}

.kku-list-pagination {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.kku-list-pagination .pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.kku-list-section .page-link {
  min-width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid rgba(1, 23, 47, 0.1);
  background: #fff;
  color: var(--kku-ink) !important;
  text-decoration: none !important;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.kku-list-section .page-link:hover {
  border-color: var(--kku-navy);
  color: var(--kku-navy) !important;
}

.kku-list-section .page-link.active {
  background: var(--kku-navy);
  border-color: var(--kku-navy);
  color: #fff !important;
}

.kku-list-pagination-info {
  color: var(--kku-muted);
  font-size: 0.88rem;
}

.kku-list-section + .breadcrumbSection,
.breadcrumbSection {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .kku-list-header {
    flex-direction: column;
    align-items: stretch;
  }

  .kku-list-search {
    width: 100%;
  }

  .kku-list-item,
  .kku-list-item--media {
    flex-direction: column;
    align-items: stretch;
  }

  .kku-list-media {
    width: 100%;
    height: 180px;
  }

  .kku-list-btn {
    width: 100%;
    justify-content: center;
  }
}
