/*-------------------------
    Articles Section Styles
    Ported from 2025 design
-------------------------*/

/* Article listing & detail pages use Urbanist font */
.articles-page {
  font-family: "Urbanist", "Poppins", sans-serif;
}

.articles-page h1,
.articles-page h2,
.articles-page h3,
.articles-page h4,
.articles-page h5,
.articles-page h6 {
  font-family: "Urbanist", "Poppins", sans-serif;
}

/* Hero section override for articles */
.articles-page .hero-section {
  position: relative;
  padding: 140px 0 64px;
  overflow: hidden;
  background: #fff;
}

.articles-page .hero-section img.bg-gradient-img {
  position: absolute;
  top: -140px;
  z-index: -1;
  left: 140px;
}

.articles-page .hero-section.no-banner {
  padding: 100px 0 30px;
}

.articles-page .hero-section h1 {
  font-size: 52px;
  font-weight: 600;
  color: #000;
  margin-bottom: 12px;
}

.articles-page .hero-section h1 span {
  font-weight: 900;
}

.articles-page .hero-section p {
  font-weight: 500;
  font-size: 20px;
}

/* Search bar */
.articles-page .search-wrap {
  position: relative;
  max-width: 100%;
  margin: auto;
}

.articles-page .search-icon {
  position: absolute;
  top: 50%;
  left: 18px;
  transform: translateY(-50%);
  color: #adb5bd;
}

.articles-page .search-input {
  padding: 12px 16px 12px 52px;
  border-radius: 8px;
  border: 1px solid #e2e3e4;
  background-color: #fff;
  font-size: 1rem;
  box-shadow: 0 0px 6px 0px rgba(0, 0, 0, 0.03);
}

.articles-page .search-input::placeholder {
  color: #88898a;
  font-weight: 400;
}

.articles-page .search-input:focus {
  box-shadow: 0 0 0 0.15rem rgba(236, 106, 46, 0.15);
  border-color: #ec6a2e;
}

/* Articles section */
.articles-page .articles {
  padding: 60px 0;
  background-color: #f8f9fa;
}

.articles-page .articles .section-title {
  font-weight: 800;
  margin-bottom: 28px;
}

/* Filter action */
.articles-page .filter-action {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
}

.articles-page .filter-action select {
  border-radius: 8px;
  border: 1px solid #e2e3e4;
  padding: 8px 10px;
}

/* Article card */
.articles-page .article-box {
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  margin-bottom: 24px;
  background-color: #fff;
  box-shadow: 0 0 6px 0 rgba(0, 0, 0, 0.03);
}

.articles-page .article-box.detail {
  border: 1px solid #e2e3e4;
  border-radius: 16px;
  box-shadow: none;
  color: #333;
}

.articles-page .article-box .a-body {
  padding: 20px;
}

.articles-page .article-box .a-body p {
  color: #333;
}

.articles-page .article-box .a-body .date {
  font-size: 16px;
  color: #686969;
  font-weight: 400;
  gap: 4px;
}

.articles-page .article-box .a-body .author {
  font-size: 16px;
  font-weight: 500;
  gap: 4px;
}

.articles-page .article-box .a-body .author img {
  border-radius: 100%;
  width: 24px;
  height: 24px;
}

.articles-page .article-box .a-body .title h3 {
  font-size: 22px;
  color: #000;
  font-weight: 700;
  margin-bottom: 10px;
}

.articles-page .article-box .a-footer {
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid #eef1f5;
}

.articles-page .article-box .a-footer .links {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  flex-grow: 1;
}

.articles-page .article-box .a-footer > span {
  white-space: nowrap;
}

.articles-page .article-box .a-footer a {
  background-color: #fbefea;
  border-radius: 5px;
  padding: 3px 10px;
  font-weight: 400;
  font-size: 14px;
  text-decoration: underline;
}

/* Article detail */
.articles-page .article-box.detail .a-body .title h1 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 8px;
}

.articles-page .article-box.detail .a-body h6 {
  font-size: 20px;
  font-weight: 700;
  margin-top: 24px;
  margin-bottom: 12px;
}

.articles-page .article-box ul,
.articles-page .article-box li {
  list-style-type: inherit;
}

.articles-page .article-box ul {
  padding-left: inherit;
}

/* Related articles */
.articles-page .related-articles a {
  border: 1px solid #e2e3e4;
  border-radius: 16px;
  padding: 20px;
  display: block;
  height: calc(100% - 16px);
  margin-bottom: 16px;
  text-decoration: none;
}

.articles-page .related-articles a p {
  margin-bottom: 0;
  color: #333;
}

.articles-page .related-articles a h6 {
  font-size: 22px;
  font-weight: 700;
  color: #ec6a2e;
  margin-bottom: 10px;
}

/* CTA in articles */
.articles-page .articles .cta {
  background: linear-gradient(90deg, #fdf0ea 0%, #ec6a2e 100%);
  border-radius: 16px;
  padding: 30px;
}

.articles-page .articles .cta h2 {
  font-weight: 800;
  color: #333;
}

.articles-page .articles .cta p {
  color: #000;
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 0;
}

.articles-page .articles .cta a.btn {
  background-color: #000;
  color: #fff;
  border-radius: 10px;
  padding: 12px 16px;
  font-weight: 600;
}

/* Sidebar boxes */
.articles-page .r-box {
  background-color: #f8f9fa;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 24px;
}

.articles-page .r-box h6 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #000;
}

.articles-page .r-box.da-txt {
  background-color: #f6f9fc;
}

.articles-page .r-box.trunc-txt {
  background-color: #fbf5f2;
}

.articles-page .r-box.noc-txt {
  background-color: #f2f3f7;
}

.articles-page .r-box.da-txt h6,
.articles-page .r-box.da-txt p,
.articles-page .r-box.da-txt a {
  color: #004792;
}

.articles-page .r-box.trunc-txt h6,
.articles-page .r-box.trunc-txt p,
.articles-page .r-box.trunc-txt a {
  color: #d26228;
}

.articles-page .r-box.noc-txt h6,
.articles-page .r-box.noc-txt p,
.articles-page .r-box.noc-txt a {
  color: #333952;
}

.articles-page .r-box .btn-link {
  text-decoration: none;
  font-size: 16px;
  position: relative;
  font-weight: 500;
}

.articles-page .r-box .btn-link::after {
  content: "";
  height: 1px;
  width: 100%;
  position: absolute;
  left: 0;
  bottom: -4px;
}

.articles-page .r-box.da-txt .btn-link::after {
  background-color: #004792;
}

.articles-page .r-box.trunc-txt .btn-link::after {
  background-color: #d26228;
}

.articles-page .r-box.noc-txt .btn-link::after {
  background-color: #333952;
}

.articles-page .r-box .a-links li span {
  display: block;
  font-weight: 500;
}

.articles-page .r-box .a-links li {
  margin-bottom: 16px;
  font-size: 16px;
}

.articles-page .r-box .a-links.only li:not(:last-child) {
  margin-bottom: 4px;
}

.articles-page .r-box .a-links li:last-child {
  margin-bottom: 0;
}

/* Back button */
.articles-page .back-btn {
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
}

/* Code terminal blocks */
.articles-page .cmd-terminal {
  background: linear-gradient(to bottom, #ffffff 0%, #fbf5f2 100%);
  font-family: "Source Code Pro", monospace;
  color: #333;
  padding: 8px 10px;
  border: solid #ec6a2e;
  border-width: 5px 2px 2px 2px;
  white-space: normal;
  word-wrap: break-word;
}

/* Pagination */
.articles-page .pagination .page-link {
  border: 0;
  background-color: transparent;
  margin: 0 5px;
  border-radius: 100%;
  height: 32px;
  width: 32px;
  line-height: normal;
  color: #686969;
  display: flex;
  align-items: center;
  justify-content: center;
}

.articles-page .pagination .active > .page-link,
.articles-page .pagination .page-link.active {
  background-color: #000;
  color: #fff;
  font-weight: 600;
}

.articles-page .pagination .page-item:not(:last-child) .page-link:hover {
  background-color: #333;
  color: #fff;
}

/* Responsive */
@media (min-width: 1200px) {
  .articles-page .search-wrap {
    max-width: 39%;
  }
}

@media (max-width: 767.98px) {
  .articles-page .article-box .a-body {
    padding: 16px;
  }
  .articles-page .filter-action {
    flex-direction: column;
  }
  .articles-page .hero-section h1 {
    font-size: 42px;
  }
}

@media (max-width: 575.98px) {
  .articles-page .hero-section {
    padding: 100px 0 32px;
  }
  .articles-page .hero-section h1 {
    font-size: 32px;
  }
  .articles-page .articles .cta a {
    width: 100%;
  }
}
