/* ═══════════════════════════════════════════
   Haberler – ASAŞ (News page)
═══════════════════════════════════════════ */

@import url('breadcrumb.css');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: #000000;
  background: #fff;
  margin: 0;
  padding: 0;
}

:root { --asas-gutter: 48px; }
@media (max-width: 1199.98px) { :root { --asas-gutter: 32px; } }
@media (max-width: 991.98px) { :root { --asas-gutter: 24px; } }
@media (max-width: 767.98px) { :root { --asas-gutter: 16px; } }

/* Main content – Figma: 3×443 + 2×40 ≈ 1409px içerik + gutter */
.news-main {
  width: 100%;
  max-width: 1510px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 var(--asas-gutter, 48px);
  padding-top: 130px;
  padding-bottom: 80px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
}
@media (max-width: 767.98px) {
  .news-main { padding-top: 48px; padding-bottom: 48px; }
}

/* Figma: kart 443×711, kartlar arası 40px, iç gap 16px */
.news-row {
  display: grid;
  grid-template-columns: repeat(3, 443px);
  gap: 40px;
  width: 100%;
  align-items: stretch;
  justify-content: center;
}

.news-card {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  gap: 16px;
  width: 443px;
  max-width: 100%;
  min-width: 0;
  min-height: 711px;
  border-bottom: 1px solid #E0E7ED;
}

.news-card-head {
  width: 100%;
  height: 413px;
  position: relative;
  overflow: hidden;
  background: #f0f0f0;
}
.news-card-head img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Date badge: red, over image bottom-left */
.news-date {
  position: absolute;
  left: 24px;
  bottom: 24px;
  padding: 8px 16px 5px 16px;
  background: #D1000F;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #FFFFFF;
  z-index: 2;
}

.news-card-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px 24px 20px 0;
  gap: 16px;
  width: 100%;
  flex: 1;
  min-height: 0;
}

.news-card-title {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 30px;
  color: #000000;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 60px; /* 2 satır × 30px */
}
.news-card-date {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 22px;
  color: #828282;
  margin: 0;
  text-transform: uppercase;
}
.news-card-desc {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 28px;
  color: #6C6D70;
  margin: 0;
  flex: 1;
  min-height: 0;
}
.news-card-footer {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 15px;
  margin-top: auto;
}
.news-card-btn {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 17px;
  color: #000000;
  text-decoration: none;
  padding: 16px 0;
  text-transform: uppercase;
}
.news-card-btn:hover { text-decoration: underline; }
.news-card-btn svg { flex-shrink: 0; }
.news-share {
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #828282;
  transition: color 0.2s ease;
}
.news-share:hover {
  color: #D1000F;
}
.news-share .news-share-icon { width: 24px; height: 24px; flex-shrink: 0; display: block; }

/* Pagination */
.news-pagination {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0 0;
  gap: 20px;
  width: 100%;
  border-top: 1px solid #EAECF0;
  flex-wrap: wrap;
}
.news-pagination-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2px;
}
.news-pagination a,
.news-pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  color: #667085;
  text-decoration: none;
  border-radius: 8px;
}
.news-pagination a:hover { background: #f5f5f5; }
.news-pagination .active {
  background: rgba(209, 0, 15, 0.2);
  color: #D1000F;
}
.news-pagination .arrow {
  width: 20px;
  height: 20px;
  color: #667085;
}

/* Bottom CTA — Figma 1920×550; .container (max 1320px) içinden viewport’a tam genişlik (full-bleed) */
.background-media-text.news-cta {
  position: relative;
  width: 100vw;
  min-height: 550px;
  box-sizing: border-box;
  margin-left: calc(50% - 50vw);
  background-color: #e8e8e8;
  background-image: url(/img/asaskompozit/colors-and-surface-options-banner-image.png);
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

/* Figma: Img.png export → wwwroot/img/asaskompozit/cta-discover-color-banner.jpg yükleyip üstteki url ile değiştirilebilir */

/* div.animation-cropper — 375px, left 60px, dikey ortalı */
.background-media-text .animation-cropper {
  position: absolute;
  left: 60px;
  top: 50%;
  transform: translateY(-50%);
  width: 375px;
  max-width: calc(100% - 120px);
  z-index: 1;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  padding: 0;
  box-sizing: border-box;
}

/* div.background-media-text__text */
.background-media-text__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 74px 60px 60px;
  gap: 45px;
  width: 100%;
  max-width: 375px;
  box-sizing: border-box;
  background: #ffffff;
}

.background-media-text__text h2 {
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: 32px;
  line-height: 39px;
  display: flex;
  align-items: center;
  text-transform: capitalize;
  color: #1b1d1e;
  margin: 0;
  max-width: 236px;
}

/* Primary button — 255×49, border #2F2F2F */
.news-cta-btn {
  box-sizing: border-box;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 16px 21px 16px 24px;
  gap: 10px;
  width: 255px;
  max-width: 100%;
  min-height: 49px;
  border: 1px solid #2f2f2f;
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: 14px;
  line-height: 17px;
  color: #2f2f2f;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.news-cta-btn__label {
  flex: 1 1 auto;
  min-width: 0;
}

.news-cta-btn__arrow {
  flex-shrink: 0;
}

.news-cta-btn:hover {
  background: #2f2f2f;
  color: #fff;
}

.news-cta-btn:hover .news-cta-btn__arrow path {
  stroke: #ffffff;
}

@media (max-width: 1199.98px) {
  .news-row {
    grid-template-columns: repeat(2, minmax(0, 443px));
    gap: 40px;
    justify-content: center;
  }
}
@media (max-width: 991.98px) {
  .news-row { gap: 32px; }
  .background-media-text.news-cta { min-height: 480px; }
  .background-media-text .animation-cropper {
    left: 32px;
    max-width: calc(100% - 64px);
  }
  .background-media-text__text {
    padding: 48px 40px;
    gap: 32px;
    max-width: 100%;
  }
}
@media (max-width: 767.98px) {
  .news-row {
    grid-template-columns: 1fr;
    gap: 32px;
    justify-content: stretch;
  }
  .news-card {
    width: 100%;
    min-height: 0;
  }
  .background-media-text.news-cta {
    width: 100%;
    margin-left: 0;
    min-height: 420px;
  }
  .background-media-text .animation-cropper {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    width: 100%;
    max-width: none;
    padding: 24px 16px;
  }
  .background-media-text__text {
    padding: 40px 24px;
    gap: 24px;
    max-width: none;
  }
  .background-media-text__text h2 {
    font-size: 24px;
    line-height: 1.3;
    max-width: none;
  }
  .news-cta-btn {
    width: 100%;
    padding: 14px 18px;
    font-size: 13px;
    white-space: normal;
  }
  .news-date { left: 16px; bottom: 16px; }
}
