.news-section {
  width: 100%;
  background: #ffffff;
  padding: 24px 0 32px;
  overflow: hidden;
}

.news-section .container,
.news-section .news-container {
  width: min(100% - 32px, 1320px);
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.news-top {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.news-heading {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-size: 36px;
  font-weight: 600;
  line-height: 1.2;
  color: #143d6b;
  letter-spacing: -0.4px;
}

.all-news-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-decoration: none;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  color: #143d6b;
  border-bottom: 2px solid #143d6b;
  padding-bottom: 5px;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
  white-space: nowrap;
}

.all-news-link:hover {
  opacity: 0.82;
  transform: translateY(-1px);
  text-decoration: none;
  color: #143d6b;
}

.all-news-arrow {
  font-size: 22px;
  font-weight: 500;
  line-height: 0.8;
  position: relative;
  top: -1px;
}

.news-slider-wrapper {
  width: 100%;
  max-width: 100%;
  position: relative;
  background: #ffffff;
}

.news-carousel-viewport {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  background: #ffffff;
  padding: 0;
}

.news-cards {
  width: 100%;
  display: flex;
  align-items: stretch;
  gap: 18px;
  background: #ffffff;
  transition: transform 0.55s ease;
  will-change: transform;
}

.news-card {
  flex: 0 0 calc((100% - 54px) / 4);
  width: calc((100% - 54px) / 4);
  max-width: calc((100% - 54px) / 4);
  height: 390px;
  min-height: 390px;
  background: #ffffff;
  border: 1px solid #e7edf3;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  position: relative;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.news-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: #e7edf3;
  z-index: 10;
  pointer-events: none;
}

.news-card:hover {
  transform: translateY(-3px);
  border-color: rgba(20, 61, 107, 0.18);
  box-shadow: 0 10px 26px rgba(20, 61, 107, 0.07);
}

.news-card-image-wrapper {
  width: 100%;
  height: 205px;
  min-height: 205px;
  flex: 0 0 205px;
  overflow: hidden;
  background: #dde5ee;
  border-radius: 8px 8px 0 0;
}

.news-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 8px 8px 0 0;
  transition: transform 0.35s ease;
}

.news-card:hover .news-card-image {
  transform: scale(1.025);
}

.news-card-image-empty {
  width: 100%;
  height: 205px;
  min-height: 205px;
  border-radius: 8px 8px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e8edf3 0%, #d9e2ec 100%);
}

.news-card-image-empty p {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #6b7785;
}

.news-card-body {
  width: 100%;
  flex: 1;
  min-height: 0;
  background: #ffffff;
  padding: 12px 13px 12px;
  display: flex;
  flex-direction: column;
  border-radius: 0 0 8px 8px;
}

.news-date {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 9px;
  flex-wrap: nowrap;
  min-width: 0;
}

.news-date-icon-img {
  width: 17px;
  height: 17px;
  object-fit: contain;
  flex: 0 0 17px;
}

.news-date-text {
  display: block;
  min-width: 0;
  font-family: "Montserrat", sans-serif;
  font-size: 8.8px;
  font-weight: 500;
  color: #143d6b;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-card-label {
  margin: 0 0 6px;
  font-family: "Montserrat", sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.28;
  color: #303030;
}

.news-card-title-text {
  margin: 0 0 10px;
  font-family: "Montserrat", sans-serif;
  font-size: 10.8px;
  font-weight: 400;
  line-height: 1.28;
  color: #575757;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-detail-btn {
  margin-top: auto;
  align-self: flex-start;
  min-width: 58px;
  min-height: 20px;
  padding: 2px 8px;
  border: 1px solid #143d6b;
  border-radius: 999px;
  background: #ffffff;
  color: #143d6b;
  font-family: "Montserrat", sans-serif;
  font-size: 7.4px;
  font-weight: 700;
  line-height: 14px;
  letter-spacing: 0.2px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease,
    border-color 0.25s ease;
}

.news-detail-btn span {
  font-size: 11px;
  line-height: 1;
  position: relative;
  top: -1px;
}

.news-detail-btn:hover {
  background: #143d6b;
  color: #ffffff;
  border-color: #143d6b;
  transform: translateY(-1px);
  text-decoration: none;
}

.news-state-wrapper {
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
}

.news-message {
  margin: 0;
  padding: 26px 0;
  text-align: center;
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #4f5d6b;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1399px) {
  .news-heading {
    font-size: 34px;
  }

  .news-card {
    height: 375px;
    min-height: 375px;
  }

  .news-card-image-wrapper,
  .news-card-image-empty {
    height: 195px;
    min-height: 195px;
    flex-basis: 195px;
  }
}

/* 1199px-dən aşağı: 2 element və ölçülər kiçilməyə başlayır */
@media (max-width: 1199px) {
  .news-section {
    padding: 28px 0 34px;
  }

  .news-section .container,
  .news-section .news-container {
    padding-left: 18px;
    padding-right: 18px;
  }

  .news-top {
    margin-bottom: 22px;
  }

  .news-heading {
    font-size: 31px;
  }

  .all-news-link {
    font-size: 13.5px;
  }

  .news-cards {
    gap: 16px;
  }

  .news-card {
    flex: 0 0 calc((100% - 16px) / 2);
    width: calc((100% - 16px) / 2);
    max-width: calc((100% - 16px) / 2);
    height: 385px;
    min-height: 385px;
    border-radius: 8px;
  }

  .news-card-image-wrapper,
  .news-card-image-empty {
    height: 205px;
    min-height: 205px;
    flex-basis: 205px;
    border-radius: 8px 8px 0 0;
  }

  .news-card-image {
    border-radius: 8px 8px 0 0;
  }

  .news-card-body {
    padding: 12px 14px 12px;
    border-radius: 0 0 8px 8px;
  }

  .news-date {
    gap: 6px;
    margin-bottom: 8px;
  }

  .news-date-icon-img {
    width: 17px;
    height: 17px;
    flex-basis: 17px;
  }

  .news-date-text {
    font-size: 9.3px;
  }

  .news-card-label {
    font-size: 12.4px;
    margin-bottom: 5px;
  }

  .news-card-title-text {
    font-size: 10.8px;
    line-height: 1.25;
    margin-bottom: 9px;
  }

  .news-detail-btn {
    min-width: 59px;
    min-height: 20px;
    padding: 2px 8px;
    font-size: 7.4px;
  }
}

/* 1050px-dən aşağı: 2 element daha kompakt */
@media (max-width: 1050px) {
  .news-section {
    padding: 26px 0 32px;
  }

  .news-heading {
    font-size: 28px;
  }

  .news-top {
    margin-bottom: 20px;
  }

  .news-cards {
    gap: 14px;
  }

  .news-card {
    flex-basis: calc((100% - 14px) / 2);
    width: calc((100% - 14px) / 2);
    max-width: calc((100% - 14px) / 2);
    height: 355px;
    min-height: 355px;
  }

  .news-card-image-wrapper,
  .news-card-image-empty {
    height: 180px;
    min-height: 180px;
    flex-basis: 180px;
  }

  .news-card-body {
    padding: 11px 12px 11px;
  }

  .news-date {
    margin-bottom: 7px;
  }

  .news-date-icon-img {
    width: 16px;
    height: 16px;
    flex-basis: 16px;
  }

  .news-date-text {
    font-size: 8.7px;
  }

  .news-card-label {
    font-size: 11.8px;
  }

  .news-card-title-text {
    font-size: 10.2px;
    line-height: 1.23;
    -webkit-line-clamp: 3;
  }

  .news-detail-btn {
    min-width: 56px;
    min-height: 19px;
    font-size: 7px;
  }
}

/* 991px-dən aşağı: 2 element daha çox kiçilsin */
@media (max-width: 991px) {
  .news-section {
    padding: 24px 0 30px;
  }

  .news-section .container,
  .news-section .news-container {
    width: min(100% - 24px, 1320px);
    padding-left: 10px;
    padding-right: 10px;
  }

  .news-heading {
    font-size: 26px;
  }

  .all-news-link {
    font-size: 12.4px;
  }

  .news-cards {
    gap: 12px;
  }

  .news-card {
    flex-basis: calc((100% - 12px) / 2);
    width: calc((100% - 12px) / 2);
    max-width: calc((100% - 12px) / 2);
    height: 330px;
    min-height: 330px;
    border-radius: 7px;
  }

  .news-card-image-wrapper,
  .news-card-image-empty {
    height: 160px;
    min-height: 160px;
    flex-basis: 160px;
    border-radius: 7px 7px 0 0;
  }

  .news-card-image {
    border-radius: 7px 7px 0 0;
  }

  .news-card-body {
    padding: 10px 11px 10px;
    border-radius: 0 0 7px 7px;
  }

  .news-date {
    gap: 5px;
    margin-bottom: 7px;
  }

  .news-date-icon-img {
    width: 15px;
    height: 15px;
    flex-basis: 15px;
  }

  .news-date-text {
    font-size: 8.2px;
  }

  .news-card-label {
    font-size: 11.3px;
    margin-bottom: 5px;
  }

  .news-card-title-text {
    font-size: 9.8px;
    line-height: 1.22;
    margin-bottom: 8px;
  }

  .news-detail-btn {
    min-width: 54px;
    min-height: 18px;
    padding: 1px 7px;
    font-size: 6.8px;
  }

  .news-detail-btn span {
    font-size: 10px;
  }
}

/* 880px-dən aşağı: 2 element çox kompakt */
@media (max-width: 880px) {
  .news-heading {
    font-size: 24px;
  }

  .news-cards {
    gap: 10px;
  }

  .news-card {
    flex-basis: calc((100% - 10px) / 2);
    width: calc((100% - 10px) / 2);
    max-width: calc((100% - 10px) / 2);
    height: 305px;
    min-height: 305px;
    border-radius: 6px;
  }

  .news-card-image-wrapper,
  .news-card-image-empty {
    height: 145px;
    min-height: 145px;
    flex-basis: 145px;
    border-radius: 6px 6px 0 0;
  }

  .news-card-image {
    border-radius: 6px 6px 0 0;
  }

  .news-card-body {
    padding: 9px 10px 9px;
    border-radius: 0 0 6px 6px;
  }

  .news-date {
    margin-bottom: 6px;
  }

  .news-date-icon-img {
    width: 14px;
    height: 14px;
    flex-basis: 14px;
  }

  .news-date-text {
    font-size: 7.8px;
  }

  .news-card-label {
    font-size: 10.8px;
    margin-bottom: 4px;
  }

  .news-card-title-text {
    font-size: 9.3px;
    line-height: 1.2;
    margin-bottom: 7px;
  }

  .news-detail-btn {
    min-width: 52px;
    min-height: 18px;
    padding: 1px 7px;
    font-size: 6.6px;
  }
}

/* 800px-dən aşağı: 2 element ən kompakt vəziyyət */
@media (max-width: 800px) {
  .news-section {
    padding: 22px 0 28px;
  }

  .news-heading {
    font-size: 23px;
  }

  .all-news-link {
    font-size: 11.8px;
  }

  .news-cards {
    gap: 9px;
  }

  .news-card {
    flex-basis: calc((100% - 9px) / 2);
    width: calc((100% - 9px) / 2);
    max-width: calc((100% - 9px) / 2);
    height: 285px;
    min-height: 285px;
  }

  .news-card-image-wrapper,
  .news-card-image-empty {
    height: 130px;
    min-height: 130px;
    flex-basis: 130px;
  }

  .news-card-body {
    padding: 8px 9px 8px;
  }

  .news-date-icon-img {
    width: 13px;
    height: 13px;
    flex-basis: 13px;
  }

  .news-date-text {
    font-size: 7.4px;
  }

  .news-card-label {
    font-size: 10.4px;
  }

  .news-card-title-text {
    font-size: 8.9px;
    line-height: 1.18;
    margin-bottom: 6px;
  }

  .news-detail-btn {
    min-width: 50px;
    min-height: 17px;
    font-size: 6.3px;
  }
}

/* 767px-dən aşağı: 1 element */
@media (max-width: 767px) {
  .news-section {
    padding: 24px 0 30px;
  }

  .news-section .container,
  .news-section .news-container {
    width: min(100% - 20px, 1320px);
    padding-left: 8px;
    padding-right: 8px;
  }

  .news-top {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
  }

  .news-heading {
    font-size: 25px;
  }

  .all-news-link {
    font-size: 12.5px;
    gap: 6px;
    padding-bottom: 4px;
  }

  .all-news-arrow {
    font-size: 18px;
  }

  .news-cards {
    gap: 16px;
  }

  .news-card {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    height: 350px;
    min-height: 350px;
    border-radius: 7px;
  }

  .news-card-image-wrapper,
  .news-card-image-empty {
    height: 175px;
    min-height: 175px;
    flex-basis: 175px;
    border-radius: 7px 7px 0 0;
  }

  .news-card-image {
    border-radius: 7px 7px 0 0;
  }

  .news-card-body {
    padding: 11px 13px 11px;
    border-radius: 0 0 7px 7px;
  }

  .news-date-icon-img {
    width: 16px;
    height: 16px;
    flex-basis: 16px;
  }

  .news-date-text {
    font-size: 9px;
  }

  .news-card-label {
    font-size: 12.5px;
  }

  .news-card-title-text {
    font-size: 11px;
    line-height: 1.27;
  }

  .news-detail-btn {
    min-width: 58px;
    min-height: 20px;
    font-size: 7.3px;
  }
}

/* 575px-dən aşağı: 1 element kiçilsin */
@media (max-width: 575px) {
  .news-section {
    padding: 23px 0 29px;
  }

  .news-section .container,
  .news-section .news-container {
    width: min(100% - 18px, 1320px);
    padding-left: 6px;
    padding-right: 6px;
  }

  .news-top {
    margin-bottom: 16px;
  }

  .news-heading {
    font-size: 22px;
  }

  .all-news-link {
    font-size: 11.8px;
  }

  .news-card {
    height: 320px;
    min-height: 320px;
    border-radius: 7px;
  }

  .news-card-image-wrapper,
  .news-card-image-empty {
    height: 155px;
    min-height: 155px;
    flex-basis: 155px;
    border-radius: 7px 7px 0 0;
  }

  .news-card-image {
    border-radius: 7px 7px 0 0;
  }

  .news-card-body {
    padding: 10px 12px 10px;
    border-radius: 0 0 7px 7px;
  }

  .news-date {
    gap: 6px;
    margin-bottom: 8px;
  }

  .news-date-icon-img {
    width: 15px;
    height: 15px;
    flex-basis: 15px;
  }

  .news-date-text {
    font-size: 8.5px;
  }

  .news-card-label {
    font-size: 12px;
    margin-bottom: 5px;
  }

  .news-card-title-text {
    font-size: 10.5px;
    line-height: 1.24;
    margin-bottom: 9px;
  }

  .news-detail-btn {
    min-width: 56px;
    min-height: 19px;
    font-size: 7px;
  }
}

/* 480px-dən aşağı */
@media (max-width: 480px) {
  .news-section {
    padding: 22px 0 28px;
  }

  .news-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
    margin-bottom: 14px;
  }

  .news-heading {
    font-size: 21px;
  }

  .all-news-link {
    font-size: 11.5px;
  }

  .news-card {
    height: 300px;
    min-height: 300px;
    border-radius: 6px;
  }

  .news-card-image-wrapper,
  .news-card-image-empty {
    height: 140px;
    min-height: 140px;
    flex-basis: 140px;
    border-radius: 6px 6px 0 0;
  }

  .news-card-image {
    border-radius: 6px 6px 0 0;
  }

  .news-card-body {
    padding: 10px 11px 10px;
    border-radius: 0 0 6px 6px;
  }

  .news-date {
    margin-bottom: 7px;
  }

  .news-date-icon-img {
    width: 14px;
    height: 14px;
    flex-basis: 14px;
  }

  .news-date-text {
    font-size: 8px;
  }

  .news-card-label {
    font-size: 11.5px;
  }

  .news-card-title-text {
    font-size: 10px;
    line-height: 1.22;
    -webkit-line-clamp: 3;
  }
}

/* 420px-dən aşağı */
@media (max-width: 420px) {
  .news-section .container,
  .news-section .news-container {
    width: min(100% - 14px, 1320px);
    padding-left: 4px;
    padding-right: 4px;
  }

  .news-heading {
    font-size: 19px;
  }

  .all-news-link {
    font-size: 10.8px;
    border-bottom-width: 1px;
  }

  .news-card {
    height: 280px;
    min-height: 280px;
    border-radius: 6px;
  }

  .news-card-image-wrapper,
  .news-card-image-empty {
    height: 125px;
    min-height: 125px;
    flex-basis: 125px;
    border-radius: 6px 6px 0 0;
  }

  .news-card-image {
    border-radius: 6px 6px 0 0;
  }

  .news-card-body {
    padding: 9px 10px 9px;
    border-radius: 0 0 6px 6px;
  }

  .news-date {
    margin-bottom: 6px;
  }

  .news-date-icon-img {
    width: 13px;
    height: 13px;
    flex-basis: 13px;
  }

  .news-date-text {
    font-size: 7.8px;
  }

  .news-card-label {
    font-size: 11px;
  }

  .news-card-title-text {
    font-size: 9.5px;
    line-height: 1.2;
  }

  .news-detail-btn {
    min-width: 54px;
    min-height: 18px;
    padding: 1px 7px;
    font-size: 6.8px;
  }
}

/* 360px-dən aşağı */
@media (max-width: 360px) {
  .news-section {
    padding: 20px 0 26px;
  }

  .news-heading {
    font-size: 18px;
  }

  .all-news-link {
    font-size: 10px;
  }

  .news-card {
    height: 265px;
    min-height: 265px;
    border-radius: 5px;
  }

  .news-card-image-wrapper,
  .news-card-image-empty {
    height: 115px;
    min-height: 115px;
    flex-basis: 115px;
    border-radius: 5px 5px 0 0;
  }

  .news-card-image {
    border-radius: 5px 5px 0 0;
  }

  .news-card-body {
    padding: 8px 9px 8px;
    border-radius: 0 0 5px 5px;
  }

  .news-date-icon-img {
    width: 13px;
    height: 13px;
    flex-basis: 13px;
  }

  .news-date-text {
    font-size: 7.3px;
  }

  .news-card-label {
    font-size: 10.5px;
  }

  .news-card-title-text {
    font-size: 9px;
    line-height: 1.18;
    margin-bottom: 7px;
  }

  .news-detail-btn {
    min-width: 50px;
    min-height: 17px;
    font-size: 6.4px;
  }
}

/* 320px-dən aşağı */
@media (max-width: 320px) {
  .news-heading {
    font-size: 17px;
  }

  .all-news-link {
    font-size: 9.5px;
  }

  .news-card {
    height: 250px;
    min-height: 250px;
  }

  .news-card-image-wrapper,
  .news-card-image-empty {
    height: 105px;
    min-height: 105px;
    flex-basis: 105px;
  }

  .news-card-body {
    padding: 8px;
  }

  .news-date {
    gap: 4px;
    margin-bottom: 5px;
  }

  .news-date-icon-img {
    width: 12px;
    height: 12px;
    flex-basis: 12px;
  }

  .news-date-text {
    font-size: 6.9px;
  }

  .news-card-label {
    font-size: 10px;
    margin-bottom: 4px;
  }

  .news-card-title-text {
    font-size: 8.6px;
    line-height: 1.16;
    margin-bottom: 6px;
  }

  .news-detail-btn {
    min-width: 48px;
    min-height: 16px;
    font-size: 6.1px;
  }
}
