* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
i {
  display: flex;
  justify-content: center;
  align-items: center;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.navbar-nav .nav-link.active {
  color: #ffd700 !important; /* طلایی برای آیتم فعال */
}

.navbar-nav .nav-link {
  transition: all 0.2s ease;
}

.navbar-nav .nav-link:hover {
  color: #ccebc5 !important; /* سبز روشن روی hover */
}

main {
  flex: 1; /* پر کردن فضای وسط */
}

/* خط افقی */
.box-outline {
  position: relative;
  padding: 0;
  display: flex;
  justify-content: flex-start; /* در RTL: باکس سمت راست */
}

.box-outline::after {
  content: "";
  position: absolute;
  bottom: -2px;
  right: 44px; /* فاصله دقیق از باکس */
  left: 0; /* خط تا انتهای چپ بره */
  height: 2px;
  background: #1f2328;
  z-index: -2;
}

/* خود باکس */
.box {
  position: relative;
  margin-bottom: -2px;
  padding: 0.65rem 1.3rem;
  background: #1f2328;
  clip-path: polygon(
    0 14px,
    0 100%,
    calc(100% - 14px) 100%,
    100% calc(100% - 14px),
    100% 0,
    14px 0
  );
}

/* مرز داخلی */
.box::before {
  content: "";
  position: absolute;
  inset: 2px;
  background: #1f2328;
  clip-path: inherit;
  z-index: -1;
}

/* پس‌زمینه */
.box::after {
  content: "";
  position: absolute;
  inset: 2px;
  background: #fff;
  clip-path: inherit;
  z-index: -1;
}

.box h3 {
  font-weight: 700;
}

@media (max-width: 576px) {
  .box {
    padding: 0.5rem 1rem;
    clip-path: polygon(
      0 10px,
      0 100%,
      calc(100% - 10px) 100%,
      100% calc(100% - 10px),
      100% 0,
      10px 0
    );
  }

  .box h3 {
    font-size: 1.05rem;
  }
}

.articles-header .header-box {
  max-width: 700px;
  padding: 2rem 1rem;
  position: relative;
}

.articles-header h1 {
  font-size: 2.2rem;
  color: #2f6151;
  position: relative;
}

.articles-header .text-muted {
  font-size: 1.05rem;
  line-height: 1.8;
}

.articles-header .header-line {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #004d25, #11823b);
  border-radius: 2px;
  margin-top: 1rem;
}

.article-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.article-img {
  position: relative;
  overflow: hidden;
}

.article-img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.article-card:hover .article-img img {
  transform: scale(1.05);
}

.article-img .overlay {
  position: absolute;
  inset: 0;
  background: rgba(17, 130, 59, 0.35); /* سبز نیمه‌شفاف */
  opacity: 0;
  transition: opacity 0.4s ease;
}

.article-card:hover .overlay {
  opacity: 1;
}

.article-body {
  padding: 1rem 1.25rem;
}

.article-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #2f6151;
}

.article-text {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
}

.article-footer {
  padding: 0.75rem 1.25rem;
  border-top: 1px solid #eee;
  text-align: left;
}

.read-more {
  font-size: 0.95rem;
  color: #11823b;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.read-more:hover {
  color: #004d25;
}

.pagination-nav {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
}

.pagination-nav .page-number,
.pagination-nav .page-link {
  display: inline-block;
  padding: 0.6rem 1.1rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  color: #2f6151;
  background: #f5f5f5;
  transition: all 0.2s ease;
}

.pagination-nav .page-number:hover,
.pagination-nav .page-link:hover {
  background: #2f6151;
  color: #fff;
}

.pagination-nav .active {
  background: linear-gradient(90deg, #004d25, #11823b);
  color: #fff;
}
/* Hover effect */
.footer-link:hover {
  color: #adb5bd !important; /* خاکستری روشن در هاور */
  transition: color 0.2s ease-in-out;
}
