@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap");

.all-news-page {
  width: 100%;
  min-height: auto;
  background: #ffffff;
  font-family: "Montserrat", sans-serif;
}

.all-news-page,
.all-news-page * {
  font-family: "Montserrat", sans-serif;
  box-sizing: border-box;
}

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

/* =========================
   BREADCRUMB
   Regulation breadcrumb ilə eyni
========================= */

.all-news-breadcrumb-section {
  padding: 18px 0 13px !important;
}

.all-news-breadcrumb {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  color: #7f8994 !important;
  font-size: 10px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
}

.all-news-breadcrumb a {
  color: #7f8994 !important;
  text-decoration: none !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  transition: color 0.2s ease !important;
}

.all-news-breadcrumb a:hover {
  color: #173f67 !important;
  text-decoration: none !important;
}

.all-news-breadcrumb span {
  color: #9ca6af !important;
  font-size: 10px !important;
}

.all-news-breadcrumb strong {
  color: #173f67 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
}

.all-news-full-line {
  width: 100%;
  height: 1px;
  background: #dfe5eb;
}

/* =========================
   SECTION
========================= */

.all-news-section {
  padding: 23px 0 30px;
  margin-bottom: 0;
}

.all-news-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

/* =========================
   CARD
========================= */

.all-news-card {
  width: 100%;
  height: 390px;
  min-height: 390px;
  background: #ffffff;
  border: 1px solid #e7edf3;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.all-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);
}

/* =========================
   IMAGE
========================= */

.all-news-image-link {
  display: block;
  width: 100%;
  height: 205px;
  min-height: 205px;
  flex: 0 0 205px;
  overflow: hidden;
  background: #dde5ee;
  text-decoration: none;
  border-radius: 8px 8px 0 0;
}

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

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

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

.all-news-image-empty p {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: #6b7785;
}

/* =========================
   BODY
========================= */

.all-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;
}

/* =========================
   DATE
========================= */

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

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

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

/* =========================
   TEXT
========================= */

.all-news-card-title {
  margin: 0 0 10px;
  color: #575757;
  font-size: 10.8px;
  font-weight: 400;
  line-height: 1.28;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.all-news-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.all-news-card-title a:hover {
  color: #143d6b;
}

/* =========================
   BUTTON
========================= */

.all-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-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;
}

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

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

/* =========================
   EMPTY
========================= */

.all-news-empty {
  width: 100%;
  min-height: 180px;
  border: 1px solid #dfe6ed;
  border-radius: 8px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
}

.all-news-empty p {
  margin: 0;
  color: #173f67;
  font-size: 16px;
  font-weight: 700;
}

/* =========================
   PAGINATION
========================= */

.all-news-pagination-wrapper {
  width: 100%;
  margin-top: 38px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.all-news-pagination {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.all-news-pagination-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  background: transparent;
  border: none;
  box-shadow: none;
}

.all-news-pagination-item {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.all-news-pagination-link,
.all-news-pagination-current,
.all-news-pagination-dots,
.all-news-pagination-disabled {
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  outline: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #3f3f3f;
  font-family: "Montserrat", sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.all-news-pagination-link {
  cursor: pointer;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.all-news-pagination-link:hover {
  color: #173f67;
  text-decoration: none;
  transform: translateY(-1px);
}

.all-news-pagination-current {
  color: #173f67;
  font-weight: 700;
  cursor: default;
}

.all-news-pagination-dots {
  color: #3f3f3f;
  font-weight: 400;
}

.all-news-pagination-text {
  font-size: 18px;
  font-weight: 400;
}

.all-news-pagination-disabled {
  color: #9aa5af;
  cursor: default;
  pointer-events: none;
}

/* Footerlə artıq məsafəni sıfırlamaq üçün */
.all-news-page + footer,
.all-news-page ~ footer {
  margin-top: 0;
}

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

@media (max-width: 1399px) {
  .all-news-card {
    height: 375px;
    min-height: 375px;
  }

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

@media (max-width: 1199px) {
  .all-news-page .container {
    padding-left: 18px;
    padding-right: 18px;
  }

  .all-news-section {
    padding: 24px 0 30px;
  }

  .all-news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .all-news-card {
    height: 420px;
    min-height: 420px;
    border-radius: 8px;
  }

  .all-news-image-link,
  .all-news-image-empty {
    height: 230px;
    min-height: 230px;
    flex-basis: 230px;
    border-radius: 8px 8px 0 0;
  }

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

  .all-news-card-body {
    padding: 13px 15px 13px;
    border-radius: 0 0 8px 8px;
  }

  .all-news-date-icon {
    width: 19px;
    height: 19px;
    flex-basis: 19px;
  }

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

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

  .all-news-detail-btn {
    min-width: 64px;
    min-height: 22px;
    font-size: 8px;
  }
}

@media (max-width: 991px) {
  .all-news-page .container {
    width: min(100% - 24px, 1320px);
    padding-left: 12px;
    padding-right: 12px;
  }

  .all-news-breadcrumb-section {
    padding: 18px 0 13px !important;
  }

  .all-news-card {
    height: 395px;
    min-height: 395px;
  }

  .all-news-image-link,
  .all-news-image-empty {
    height: 210px;
    min-height: 210px;
    flex-basis: 210px;
  }

  .all-news-date {
    margin-bottom: 10px;
  }

  .all-news-card-title {
    -webkit-line-clamp: 4;
    margin-bottom: 12px;
  }

  .all-news-pagination-list {
    gap: 12px;
  }

  .all-news-pagination-link,
  .all-news-pagination-current,
  .all-news-pagination-dots,
  .all-news-pagination-disabled,
  .all-news-pagination-text {
    font-size: 17px;
  }
}

@media (max-width: 767px) {
  .all-news-page .container {
    width: min(100% - 20px, 1320px);
    padding-left: 8px;
    padding-right: 8px;
  }

  .all-news-breadcrumb-section {
    padding: 18px 0 13px !important;
  }

  .all-news-breadcrumb {
    font-size: 10px !important;
  }

  .all-news-breadcrumb a,
  .all-news-breadcrumb strong {
    font-size: 13px !important;
  }

  .all-news-section {
    padding: 22px 0 26px;
  }

  .all-news-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .all-news-card {
    width: 100%;
    max-width: 100%;
    height: 370px;
    min-height: 370px;
    border-radius: 7px;
  }

  .all-news-image-link,
  .all-news-image-empty {
    height: 190px;
    min-height: 190px;
    flex-basis: 190px;
    border-radius: 7px 7px 0 0;
  }

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

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

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

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

  .all-news-card-title {
    font-size: 11.6px;
    line-height: 1.3;
  }

  .all-news-pagination-wrapper {
    margin-top: 34px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 8px;
  }

  .all-news-pagination {
    min-width: max-content;
  }

  .all-news-pagination-list {
    gap: 11px;
    min-width: max-content;
  }

  .all-news-pagination-link,
  .all-news-pagination-current,
  .all-news-pagination-dots,
  .all-news-pagination-disabled,
  .all-news-pagination-text {
    font-size: 16px;
  }
}

@media (max-width: 575px) {
  .all-news-page .container {
    width: min(100% - 18px, 1320px);
    padding-left: 6px;
    padding-right: 6px;
  }

  .all-news-breadcrumb-section {
    padding: 18px 0 13px !important;
  }

  .all-news-grid {
    gap: 16px;
  }

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

  .all-news-image-link,
  .all-news-image-empty {
    height: 170px;
    min-height: 170px;
    flex-basis: 170px;
    border-radius: 7px 7px 0 0;
  }

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

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

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

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

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

  .all-news-card-title {
    font-size: 11.3px;
    line-height: 1.28;
    margin-bottom: 11px;
  }

  .all-news-detail-btn {
    min-width: 60px;
    min-height: 21px;
    font-size: 7.6px;
  }

  .all-news-pagination-list {
    gap: 10px;
  }

  .all-news-pagination-link,
  .all-news-pagination-current,
  .all-news-pagination-dots,
  .all-news-pagination-disabled,
  .all-news-pagination-text {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .all-news-section {
    padding: 20px 0 24px;
  }

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

  .all-news-image-link,
  .all-news-image-empty {
    height: 155px;
    min-height: 155px;
    flex-basis: 155px;
    border-radius: 6px 6px 0 0;
  }

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

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

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

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

  .all-news-date span {
    font-size: 8.6px;
  }

  .all-news-card-title {
    font-size: 10.8px;
    line-height: 1.26;
    -webkit-line-clamp: 4;
  }
}

@media (max-width: 420px) {
  .all-news-page .container {
    width: min(100% - 14px, 1320px);
    padding-left: 4px;
    padding-right: 4px;
  }

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

  .all-news-image-link,
  .all-news-image-empty {
    height: 140px;
    min-height: 140px;
    flex-basis: 140px;
  }

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

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

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

  .all-news-card-title {
    font-size: 10.5px;
    line-height: 1.24;
  }

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

  .all-news-pagination-list {
    gap: 8px;
  }

  .all-news-pagination-link,
  .all-news-pagination-current,
  .all-news-pagination-dots,
  .all-news-pagination-disabled,
  .all-news-pagination-text {
    font-size: 14px;
  }
}

@media (max-width: 360px) {
  .all-news-section {
    padding: 18px 0 22px;
  }

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

  .all-news-image-link,
  .all-news-image-empty {
    height: 128px;
    min-height: 128px;
    flex-basis: 128px;
    border-radius: 5px 5px 0 0;
  }

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

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

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

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

  .all-news-card-title {
    font-size: 10px;
    line-height: 1.22;
    margin-bottom: 9px;
  }

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