* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin-top: 70px;
  overflow-x: hidden;
  font-family: "Segoe UI", sans-serif;
  background: #ffffff;
}

/* FILTER TABS */
.filter-bar {
  background: #fff;
}
.filter-bar-inner {
  max-width: 1120px;

  margin: 50px auto 0;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.hero h1 {
  font-family: Georgia, "Times New Roman", serif;
}
.tab-btn {
  min-height: 38px;
  padding: 0 18px;
  border: 1px solid #e3e9f3;
  border-radius: 5px;
  background: #fff;
  color: #062f68;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}
.tab-btn.active {
  background: #062f68;
  border-color: #062f68;
  color: #fff;
}
.tab-btn:hover:not(.active) {
  border-color: #062f68;
}
.tab-btn:focus-visible {
  outline: 2px solid #f1a633;
  outline-offset: 3px;
}
.tab-btn.dropdown {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}
.tab-btn.dropdown::after {
  content: "▾";
  font-size: 12px;
}

/* MAIN LAYOUT */
.main-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 30px 20px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 26px;
  align-items: stretch;
}

.articles-col {
  display: grid;
  gap: 22px;
}

/* ARTICLES */
.article-card {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e8ecf3;
  overflow: hidden;
}

.article-thumb {
  width: 260px;
  min-width: 260px;
  height: 170px;
  overflow: hidden;
  border-radius: 10px;
}

.article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-body {
  flex: 1;
}

.article-tag {
  color: #3b5cb8;
  font-size: 14px;
  font-weight: 600;
}

.article-title {
  margin-top: 8px;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 700;
  color: #15244a;
  line-height: 1.2;
}

.article-desc {
  margin-top: 12px;
  color: #5b6475;
  line-height: 1.7;
}

.no-results-message {
  display: none;
  min-height: 140px;
  margin-top: 10px;
  padding: 24px 20px;
  border: 1px solid #dde3ec;
  border-radius: 12px;
  background: #f8fbff;
  color: #4f5d78;
  font-size: 15px;
  line-height: 1.6;
  font-weight: 600;
  align-items: center;
  justify-content: center;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  color: #5b6475;
  font-size: 14px;
}

.read-more {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  text-decoration: none;
  color: #062f68;
  font-weight: 800;
}

.read-more:hover,
.read-more:focus-visible {
  color: #0d4e9c;
}

.read-more:focus-visible {
  outline: 2px solid #f1a633;
  outline-offset: 3px;
}
/* PAGINATION */
.pagination-wrap {
  padding: 18px 26px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.pg-btn {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  border: 1.5px solid #dde3ec;
  background: #fff;
  color: #1a2b4a;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  transition: all 0.15s;
  flex-shrink: 0;
}
.pg-btn.active {
  background: #1a2b4a;
  color: #fff;
  border-color: #1a2b4a;
}
.pg-btn:hover:not(.active) {
  border-color: #1a2b4a;
}
.pg-btn.dots {
  border: none;
  background: transparent;
  cursor: default;
  color: #7a8a9a;
  font-size: 18px;
}
.pg-next {
  width: auto;
  padding: 0 14px;
  gap: 4px;
}

/* SIDEBAR */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100%;
}
.s-box {
  background: #f4f7fd;
  border-radius: 8px;
  padding: 22px;
}
/* .cta-box {
  background: #fff;
  border-radius: 10px;
  padding: 26px 22px;
  box-shadow: 0 1px 6px rgba(26, 43, 74, 0.08);
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
} */
.s-title {
  font-family: "Merriweather", serif;
  font-size: 17px;
  font-weight: 700;
  color: #1a2b4a;
  margin-bottom: 16px;
}

/* Search */
.search-wrap {
  position: relative;
}
.search-wrap input {
  width: 100%;
  border: 1.5px solid #dde3ec;
  border-radius: 7px;
  padding: 10px 40px 10px 13px;
  font-size: 14px;
  color: #1a2b4a;
  outline: none;
  font-family: inherit;
  background: #f8f9fc;
}
.search-wrap input::placeholder {
  color: #a0aab8;
}
.search-wrap input:focus {
  border-color: #2a5bd7;
  background: #fff;
}
.search-suggestions {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  background: #ffffff;
  border: 1px solid #dde3ec;
  border-radius: 8px;
  box-shadow: 0 12px 24px rgba(16, 55, 103, 0.12);
  z-index: 2;
  max-height: 260px;
  overflow-y: auto;
  display: none;
}
.search-suggestions.active {
  display: block;
}
.search-suggestion-item {
  padding: 12px 14px;
  cursor: pointer;
  color: #1a2b4a;
  font-size: 14px;
}
.search-suggestion-item:hover,
.search-suggestion-item:focus {
  background: #eff4ff;
}
.search-suggestion-item strong {
  font-weight: 700;
}
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 47, 104, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 999;
}
.modal-overlay.active {
  display: flex;
}
.modal-window {
  position: relative;
  width: min(560px, 100%);
  background: #ffffff;
  border-radius: 16px;
  padding: 28px 26px;
  box-shadow: 0 20px 40px rgba(16, 55, 103, 0.16);
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: #f4f7fd;
  color: #062f68;
  font-size: 22px;
  cursor: pointer;
}
.modal-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}
.modal-category {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0f3b94;
}
.modal-title {
  margin: 0;
  font-size: 26px;
  line-height: 1.2;
  color: #15244a;
}
.modal-description {
  margin: 0;
  color: #4d5b77;
  line-height: 1.75;
  font-size: 15px;
}
@media (max-width: 640px) {
  .modal-window {
    padding: 22px 18px;
  }

  .modal-title {
    font-size: 22px;
  }
}
.s-icon {
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: #8898b0;
  font-size: 15px;
  cursor: pointer;
}
.cta-box {
  width: 100%;
  max-width: 430px;
  background: #f4f7fd;
  border-radius: 8px;
  padding: 40px 30px;
  text-align: center;
  margin: 0 auto;
}

.cta-icon-wrap {
  width: 90px;
  height: 90px;
  margin: 0 auto 25px;
  background: #eaf0fb;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-icon-wrap svg {
  width: 42px;
  height: 42px;
  stroke: #17367a;
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cta-title {
  font-size: 18px;
  font-weight: 700;
  color: #17367a;
  margin-bottom: 8px;
  font-family: Georgia, serif;
}

.cta-desc {
  font-size: 14px;
  line-height: 1.8;
  color: #4d5b77;
  max-width: 520px;

  margin: 0 auto 35px;
}

.cta-btn {
  background: #0f3b94;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 18px 34px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 290px;
}

.cta-btn:hover {
  background: #0a2d72;
  transform: translateY(-2px);
}

/* Categories */
.cat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #edf0f5;
  font-size: 14.5px;
  color: #1a2b4a;
  cursor: pointer;
}
.cat-row:last-child {
  border-bottom: none;
}
.cat-row:hover {
  color: #2a5bd7;
}
.cat-badge {
  background: #f4f7fd;
  color: #2a5bd7;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  font-weight: 700;
  flex-shrink: 0;
}
.cta-banner {
  max-width: 1400px;
  margin: 10px auto 30px;
  background: #f5f7fc;
  border: 1px solid #edf1f7;
  border-radius: 8px;

  padding: 34px 40px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.cta-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.cta-icon {
  width: 64px;
  height: 64px;
  min-width: 64px;

  border-radius: 50%;
  background: #edf3ff;

  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-icon svg {
  width: 34px;
  height: 34px;
  color: #17367a;
}

.cta-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: #17367a;
  margin-bottom: 8px;
  font-family: Georgia, serif;
}

.cta-content p {
  font-size: 14px;
  line-height: 1.8;
  color: #4d5b77;
  max-width: 520px;
}

.cta-btn {
  background: #0f3b94;
  color: #fff;
  text-decoration: none;

  height: 54px;
  min-width: 250px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;

  border-radius: 4px;
  font-size: 15px;
  font-weight: 600;

  transition: 0.3s;
}

.cta-btn:hover {
  background: #082f7a;
}

.cta-btn span {
  font-size: 18px;
}
/* ── RESPONSIVE ── */

/* Tablet: 768px - 1024px */
@media (max-width: 1024px) {
  .main-wrap {
    grid-template-columns: 1fr 260px;
    gap: 20px;
  }
  .thumb-ph {
    width: 150px;
    min-width: 150px;
    height: 155px;
  }
  .article-title {
    font-size: 16px;
  }
  .article-body {
    padding: 16px 18px;
  }
  .nl-form input {
    width: 180px;
  }
}

/* Small Tablet: below 900px — stack sidebar below */
@media (max-width: 900px) {
  .main-wrap {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .sidebar {
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .s-box {
    flex: 1 1 260px;
  }
  .cta-box {
    flex: 1 1 260px;
    flex-grow: 0;
  }
}

/* Mobile: below 640px */
@media (max-width: 640px) {
  .filter-bar-inner {
    gap: 7px;
    padding: 12px 14px;
  }
  .tab-btn {
    padding: 7px 13px;
    font-size: 13px;
  }
  .tab-btn.dropdown {
    margin-left: 0;
  }

  .main-wrap {
    padding: 16px 12px;
    gap: 16px;
  }

  /* Stack article card vertically on mobile */
  .article-card {
    flex-direction: column;
  }
  .thumb-ph {
    width: 100%;
    min-width: unset;
    height: 180px;
  }
  .article-body {
    padding: 16px;
  }
  .article-title {
    font-size: 16px;
  }
  .article-desc {
    margin-bottom: 12px;
    font-size: 13.5px;
  }
  .article-meta {
    gap: 8px;
    font-size: 12.5px;
  }
  .read-more {
    margin-left: 0;
    margin-top: 8px;
    width: 100%;
    justify-content: flex-end;
  }

  .pagination-wrap {
    padding: 14px 16px;
    justify-content: center;
  }

  /* Sidebar stacks fully */
  .sidebar {
    flex-direction: column;
    gap: 14px;
  }
  .s-box,
  .cta-box {
    flex: unset;
    width: 100%;
  }
  .cta-box {
    flex-grow: 0;
  }

  /* Newsletter stacks */
  .newsletter-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 20px 14px;
  }
  .nl-form {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
  .nl-form input {
    width: 100%;
  }
  .nl-form button {
    width: 100%;
  }
}

/* Very small mobile: below 400px */
@media (max-width: 400px) {
  .filter-bar-inner {
    gap: 5px;
  }
  .tab-btn {
    padding: 6px 10px;
    font-size: 12px;
  }
  .article-title {
    font-size: 15px;
  }
  .pg-btn {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }
}

/* ==================================
   1400px
================================== */

@media (max-width: 1400px) {
  .main-wrap,
  .cta-banner {
    padding-left: 25px;
    padding-right: 25px;
  }
}

/* ==================================
   1200px LAPTOP
================================== */

@media (max-width: 1200px) {
  .main-wrap {
    grid-template-columns: 1fr 280px;
  }

  .article-thumb {
    width: 220px;
    min-width: 220px;
  }

  .article-title {
    font-size: 20px;
  }
}

/* ==================================
   992px TABLET
================================== */

@media (max-width: 992px) {
  .main-wrap {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .cta-box {
    max-width: 100%;
  }

  .article-card {
    align-items: stretch;
  }

  .cta-banner {
    flex-direction: column;
    text-align: center;
  }

  .cta-left {
    flex-direction: column;
  }
}

/* ==================================
   768px MOBILE
================================== */

@media (max-width: 768px) {
  .filter-bar-inner {
    justify-content: center;
    padding: 15px;
  }

  .tab-btn {
    width: 100%;
    min-height: 38px;
    padding: 0 10px;
    white-space: normal;
    text-align: center;
  }

  .tab-btn.dropdown {
    margin-left: 0;
  }

  .article-card {
    flex-direction: column;
    padding: 15px;
  }

  .article-thumb {
    width: 100%;
    min-width: 100%;
    height: 220px;
  }

  .article-body {
    width: 100%;
  }

  .article-title {
    font-size: 20px;
  }

  .article-meta {
    flex-wrap: wrap;
    gap: 10px;
  }

  .read-more {
    margin-left: 0;
    width: 100%;
    justify-content: flex-end;
  }

  .sidebar {
    grid-template-columns: 1fr;
  }

  .cta-banner {
    padding: 30px 20px;
  }

  .cta-btn {
    width: 100%;
    min-width: unset;
  }
}

/* ==================================
   576px SMALL MOBILE
================================== */

@media (max-width: 576px) {
  .filter-bar-inner {
    gap: 8px;
  }

  .tab-btn {
    font-size: 13px;
    padding: 8px 12px;
  }

  .article-thumb {
    height: 190px;
  }

  .article-title {
    font-size: 18px;
  }

  .article-desc {
    font-size: 14px;
  }

  .article-meta {
    font-size: 13px;
  }

  .pagination-wrap {
    justify-content: center;
  }

  .pg-next {
    width: auto;
  }

  .cta-title {
    font-size: 16px;
  }

  .cta-desc {
    font-size: 13px;
  }
}

/* ==================================
   375px EXTRA SMALL
================================== */

@media (max-width: 375px) {
  .main-wrap {
    padding: 15px 10px;
  }

  .article-thumb {
    height: 170px;
  }

  .article-title {
    font-size: 16px;
  }

  .article-desc {
    font-size: 13px;
  }

  .pg-btn {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }

  .cta-banner {
    padding: 25px 15px;
  }

  .cta-content h3 {
    font-size: 16px;
  }

  .cta-content p {
    font-size: 13px;
  }
}
