/* HABERLER — expressive title + news cards */

.haberler-section {
  position: relative;
  padding: 72px 0 64px;
  background:
    radial-gradient(ellipse 70% 50% at 50% -10%, rgba(0, 180, 220, 0.1) 0%, transparent 55%),
    linear-gradient(180deg, #f4fafc 0%, #ffffff 42%, #f7fbfd 100%);
  overflow: hidden;
}

.haberler-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(5, 44, 63, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(5, 44, 63, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  opacity: 0.7;
}

.haberler-section .container {
  position: relative;
  z-index: 1;
}

/* Title */
.haberler-title {
  position: relative;
  padding-bottom: 42px;
  margin-bottom: 8px;
}

.haberler-title__eyebrow {
  display: block;
  margin-bottom: 8px;
  font-family: "Poppins", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #2a8fad;
  opacity: 0.85;
}

.haberler-title h2 {
  position: relative;
  display: inline-block;
  margin: 0;
  padding: 0 8px;
  font-family: "Raleway", "Poppins", sans-serif;
  font-size: clamp(2.1rem, 4vw, 3.15rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.15;
  text-transform: uppercase;
  background: linear-gradient(120deg, #052c3f 0%, #0a6a8a 45%, #00b4d8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.haberler-title h2 a {
  color: inherit;
  text-decoration: none;
  background: inherit;
  -webkit-background-clip: text;
  background-clip: text;
  transition: filter 0.25s ease;
}

.haberler-title h2 a:hover {
  filter: brightness(1.15);
}

.haberler-title__line {
  display: block;
  width: 88px;
  height: 3px;
  margin: 18px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #00c2e0, transparent);
  box-shadow: 0 0 16px rgba(0, 194, 224, 0.55);
  position: relative;
}

.haberler-title__line::before,
.haberler-title__line::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00c2e0;
  box-shadow: 0 0 10px rgba(0, 194, 224, 0.7);
  transform: translateY(-50%);
}

.haberler-title__line::before {
  left: -2px;
}

.haberler-title__line::after {
  right: -2px;
}

/* Hide duplicate eyebrow text visually on very small screens if cramped — keep for design */
@media (max-width: 480px) {
  .haberler-title__eyebrow {
    letter-spacing: 0.18em;
  }
}

/* Cards */
.haberler-grid {
  align-items: stretch;
}

.haber-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow:
    0 10px 28px rgba(5, 44, 63, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.8) inset;
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease;
  animation: haber-card-in 0.7s ease both;
  animation-delay: var(--haber-delay, 0ms);
}

@keyframes haber-card-in {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.haber-card:hover {
  transform: translateY(-10px);
  box-shadow:
    0 22px 44px rgba(5, 44, 63, 0.16),
    0 0 0 1px rgba(0, 180, 210, 0.18);
}

.haber-card__media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #0a2030;
}

.haber-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.haber-card:hover .haber-card__media img {
  transform: scale(1.06);
}

.haber-card__shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 35%,
    rgba(255, 255, 255, 0.18) 48%,
    transparent 62%
  );
  transform: translateX(-120%);
  transition: transform 0.7s ease;
}

.haber-card:hover .haber-card__shine {
  transform: translateX(120%);
}

.haber-card__media::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(2, 18, 28, 0.45));
  pointer-events: none;
}

.haber-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
  padding: 18px 18px 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbfd 100%);
}

.haber-card__date {
  display: inline-flex;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #0a6a8a;
  background: rgba(0, 180, 210, 0.1);
  border: 1px solid rgba(0, 180, 210, 0.18);
}

.haber-card__title {
  margin: 0;
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
}

.haber-card__title a {
  color: #052c3f;
  text-decoration: none;
  transition: color 0.2s ease;
}

.haber-card__title a:hover {
  color: #0a6a8a;
}

.haber-card__more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-top: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #0a6a8a;
  text-decoration: none;
  transition: gap 0.2s ease, color 0.2s ease;
}

.haber-card__more i {
  font-size: 14px;
  transition: transform 0.2s ease;
}

.haber-card__more:hover {
  color: #052c3f;
  gap: 10px;
}

.haber-card__more:hover i {
  transform: translateX(3px);
}

@media (max-width: 991px) {
  .haberler-section {
    padding: 56px 0 48px;
  }

  .haber-card__media {
    aspect-ratio: 3 / 4;
  }
}

/* DUYURULAR — same card system, slightly warmer accent */
.duyurular-section {
  background:
    radial-gradient(ellipse 70% 50% at 50% -10%, rgba(0, 150, 180, 0.12) 0%, transparent 55%),
    linear-gradient(180deg, #ffffff 0%, #f3f9fb 48%, #eef7fa 100%);
}

.duyurular-section .haberler-title h2 {
  background: linear-gradient(120deg, #052c3f 0%, #0d7a7a 48%, #12b5a0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.duyurular-section .haberler-title h2 a {
  background: inherit;
  -webkit-background-clip: text;
  background-clip: text;
}

.duyurular-section .haberler-title__line {
  background: linear-gradient(90deg, transparent, #12b5a0, transparent);
  box-shadow: 0 0 16px rgba(18, 181, 160, 0.5);
}

.duyurular-section .haberler-title__line::before,
.duyurular-section .haberler-title__line::after {
  background: #12b5a0;
  box-shadow: 0 0 10px rgba(18, 181, 160, 0.7);
}

.duyurular-section .haber-card__date {
  color: #0d7a7a;
  background: rgba(18, 181, 160, 0.1);
  border-color: rgba(18, 181, 160, 0.2);
}

.duyurular-section .haber-card__more {
  color: #0d7a7a;
}

.duyurular-section .haber-card:hover {
  box-shadow:
    0 22px 44px rgba(5, 44, 63, 0.16),
    0 0 0 1px rgba(18, 181, 160, 0.2);
}

.duyurular-section .haber-card__media {
  aspect-ratio: 4 / 3.2;
}

@media (max-width: 991px) {
  .duyurular-section .haber-card__media {
    aspect-ratio: 4 / 3;
  }
}

@media (prefers-reduced-motion: reduce) {
  .haber-card,
  .haber-card__media img,
  .haber-card__shine {
    animation: none;
    transition: none;
  }
}
