.article-showcase {
  width: 100%;
  padding: 14px 16px 40px;
  background: #f2f2f2;
}

/* هدر سبز بالا */
.article-hero {
  position: relative;
  width: 100%;
  min-height: 330px;
  background: #02482c;
  border-radius: 0 0 0 100px;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 70px 20px 40px;
  margin-bottom: 42px;
}

.article-hero-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size:
    78px 78px,
    78px 78px;
  opacity: 0.45;
  pointer-events: none;
}

.article-search-box {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 640px;
}

.article-search-form {
  width: 100%;
  height: 46px;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.65);
  border-radius: 999px;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-bottom: 14px;
}

.search-icon-btn {
  width: 54px;
  height: 54px;
  border: none;
  background: white;
  color: #02482c;
  font-size: 18px;
  cursor: pointer;
  flex-shrink: 0;
  border-radius: 60%;
}

.article-search-form input {
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: #fff;
  font-size: 16px;
  padding: 0 10px;
}

.article-search-form input::placeholder {
  color: rgba(255, 255, 255, 0.78);
}

.article-tags {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: nowrap;
}

.article-tags a {
  min-width: 96px;
  height: 28px;
  padding: 0 14px;
  border-radius: 999px;
  background: #fff;
  color: #02482c;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s ease;
}

.article-tags a:hover {
  background: #e7efe9;
}

/* گرید پایین */
.article-grid {
  max-width: 1250px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  gap: 22px;
  direction: ltr;
}

.article-card,
.article-side-column {
  direction: rtl;
}

.article-side-column {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 22px;
}

.article-card {
  position: relative;
  overflow: hidden;
  background: #ddd;
  cursor: pointer;
}

.article-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.article-card-large {
  min-height: 560px;
}

.article-card-small {
  min-height: 269px;
}

.article-overlay {
  position: absolute;
  right: 0;
  left: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.2));
  color: #fff;
  padding: 18px 22px 16px;
}

.article-date {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
  opacity: 0.95;
}

.article-content h3 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.7;
}

.article-card-small .article-content h3 {
  font-size: 18px;
}

.article-content p {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
}

.article-card-small .article-content p {
  font-size: 14px;
  margin-bottom: 12px;
}

.article-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.article-author {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.article-author img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
}

.article-author span {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.read-more-btn {
  min-width: 112px;
  height: 38px;
  padding: 0 16px;
  background: #02482c;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  transition: 0.2s ease;
}

.read-more-btn:hover {
  background: #036b40;
}

/* ریسپانسیو */
@media (max-width: 1100px) {
  .article-grid {
    grid-template-columns: 1fr;
  }

  .article-card-large {
    min-height: 480px;
  }

  .article-card-small {
    min-height: 300px;
  }
}

@media (max-width: 768px) {
  .article-showcase {
    padding: 12px 12px 28px;
  }

  .article-hero {
    min-height: 260px;
    border-radius: 0 0 0 60px;
    padding: 52px 14px 28px;
    margin-bottom: 24px;
  }

  .article-search-form {
    height: 42px;
  }

  .article-search-form input {
    font-size: 14px;
  }

  .article-tags a {
    min-width: auto;
    font-size: 13px;
    padding: 0 12px;
  }

  .article-card-large {
    min-height: 360px;
  }

  .article-card-small {
    min-height: 240px;
  }

  .article-overlay {
    padding: 14px;
  }

  .article-content h3 {
    font-size: 18px;
  }

  .article-card-small .article-content h3 {
    font-size: 16px;
  }

  .article-content p,
  .article-card-small .article-content p {
    font-size: 13px;
  }

  .article-author span {
    font-size: 12px;
  }

  .read-more-btn {
    min-width: 96px;
    height: 34px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .article-hero {
    min-height: 220px;
  }

  .article-grid {
    gap: 14px;
  }

  .article-side-column {
    gap: 14px;
  }

  .article-card-large {
    min-height: 300px;
  }

  .article-card-small {
    min-height: 210px;
  }

  .article-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
.magazine-categories {
  width: 100%;
  padding: 10px 20px 40px;
  background: #f2f2f2;
}

.magazine-group {
  max-width: 1240px;
  margin: 0 auto 56px;
}

.magazine-group-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 26px;
}

.magazine-group-header h2 {
  position: relative;
  margin: 0;
  padding-right: 14px;
  font-size: 26px;
  font-weight: 800;
  color: #2f2f2f;
  line-height: 1.6;
}

.magazine-group-header h2::before {
  content: "";
  position: absolute;
  right: 0;
  top: 4px;
  width: 4px;
  height: 40px;
  border-radius: 999px;
  background: #02482c;
}

.magazine-grid {
  display: grid;
  gap: 24px;
}

.magazine-grid.three-col {
  grid-template-columns: repeat(3, 1fr);
}

.magazine-grid.four-col {
  grid-template-columns: repeat(4, 1fr);
}

.mag-card {
  background: transparent;
  cursor: pointer;
}

.mag-card-image {
  width: 100%;
  aspect-ratio: 1 / 0.72;
  overflow: hidden;
  background: #ddd;
  margin-bottom: 14px;
}

.mag-card-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.mag-card-title {
  margin: 0 0 18px;
  font-size: 18px;
  font-weight: 700;
  color: #313131;
  line-height: 1.9;
  min-height: 70px;
}

.mag-card-meta {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.mag-date {
  color: #7b7b7b;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.mag-read-more {
  min-width: 98px;
  height: 34px;
  padding: 0 14px;
  border-radius: 2px;
  background: #02482c;
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  transition: 0.2s ease;
}

.mag-read-more:hover {
  background: #036b40;
}

.mag-card-author {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  color: #7a7a7a;
  font-size: 14px;
  font-weight: 600;
}

.mag-card-author img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
}

/* responsive */
@media (max-width: 1100px) {
  .magazine-grid.four-col {
    grid-template-columns: repeat(2, 1fr);
  }

  .magazine-grid.three-col {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .magazine-categories {
    padding: 10px 12px 28px;
  }

  .magazine-group {
    margin-bottom: 42px;
  }

  .magazine-group-header {
    margin-bottom: 18px;
  }

  .magazine-group-header h2 {
    font-size: 22px;
    padding-right: 12px;
  }

  .magazine-group-header h2::before {
    height: 32px;
  }

  .magazine-grid {
    gap: 18px;
  }

  .mag-card-title {
    font-size: 16px;
    min-height: auto;
    margin-bottom: 14px;
  }

  .mag-card-meta {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 576px) {
  .magazine-grid.four-col,
  .magazine-grid.three-col {
    grid-template-columns: 1fr;
  }

  .mag-card-image {
    aspect-ratio: 1 / 0.68;
  }

  .mag-read-more {
    min-width: 92px;
    font-size: 13px;
  }

  .mag-card-author,
  .mag-date {
    font-size: 13px;
  }
}
.featured-articles-section {
  width: 100%;
  padding: 24px 20px 40px;
  background: #f2f2f2;
}

.featured-articles-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(340px, 0.8fr);
  gap: 24px;
  align-items: start;
}

/* ستون چپ */
.featured-main {
  min-width: 0;
  cursor: pointer;
}

.featured-main-image {
  width: 100%;
  aspect-ratio: 1 / 0.62;
  overflow: hidden;
  background: #ddd;
  margin-bottom: 18px;
}

.featured-main-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.featured-main-content h2 {
  margin: 0 0 12px;
  font-size: 34px;
  font-weight: 800;
  color: #313131;
  line-height: 1.6;
}

.featured-main-content p {
  margin: 0 0 18px;
  font-size: 20px;
  font-weight: 500;
  color: #444;
  line-height: 1.8;
}

.featured-main-meta {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.featured-main-date {
  color: #6d6d6d;
  font-size: 17px;
  font-weight: 600;
}

.featured-main-author {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 10px;
  color: #7a7a7a;
  font-size: 18px;
  font-weight: 600;
}

.featured-main-author img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
}

/* ستون راست */
.featured-side {
  min-width: 0;
}

.featured-side-header {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 18px;
}

.featured-side-header h3 {
  position: relative;
  margin: 0;
  padding-right: 14px;
  font-size: 28px;
  font-weight: 800;
  color: #313131;
  line-height: 1.5;
}

.featured-side-header h3::before {
  content: "";
  position: absolute;
  right: 0;
  top: 2px;
  width: 4px;
  height: 42px;
  border-radius: 999px;
  background: #02482c;
}

.featured-side-scroll {
  max-height: 980px;
  overflow-y: auto;
  padding-left: 8px;
  scrollbar-width: thin;
  scrollbar-color: #bdbdbd transparent;
}

.featured-side-scroll::-webkit-scrollbar {
  width: 8px;
}

.featured-side-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.featured-side-scroll::-webkit-scrollbar-thumb {
  background: #bdbdbd;
  border-radius: 999px;
}

/* کارت‌های کوچک */
.featured-mini-card {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 14px;
  align-items: start;
  margin-bottom: 18px;
  cursor: pointer;
}

.featured-mini-image {
  width: 110px;
  height: 110px;
  overflow: hidden;
  background: #ddd;
  flex-shrink: 0;
}

.featured-mini-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.featured-mini-content h4 {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 700;
  color: #353535;
  line-height: 1.8;
}

.featured-mini-footer {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.featured-mini-footer span {
  color: #7d7d7d;
  font-size: 15px;
  font-weight: 600;
}

.featured-mini-footer a {
  min-width: 110px;
  height: 38px;
  padding: 0 16px;
  border-radius: 2px;
  background: #02482c;
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  transition: 0.2s ease;
}

.featured-mini-footer a:hover {
  background: #036b40;
}

/* responsive */
@media (max-width: 1200px) {
  .featured-main-content h2 {
    font-size: 28px;
  }

  .featured-main-content p {
    font-size: 18px;
  }

  .featured-side-header h3 {
    font-size: 24px;
  }

  .featured-mini-content h4 {
    font-size: 16px;
  }
}

@media (max-width: 992px) {
  .featured-articles-container {
    grid-template-columns: 1fr;
  }

  .featured-side-scroll {
    max-height: 520px;
  }
}

@media (max-width: 768px) {
  .featured-articles-section {
    padding: 18px 12px 28px;
  }

  .featured-main-image {
    margin-bottom: 14px;
  }

  .featured-main-content h2 {
    font-size: 24px;
  }

  .featured-main-content p {
    font-size: 16px;
    margin-bottom: 14px;
  }

  .featured-main-date,
  .featured-main-author {
    font-size: 14px;
  }

  .featured-side-header h3 {
    font-size: 22px;
    padding-right: 12px;
  }

  .featured-side-header h3::before {
    height: 34px;
  }

  .featured-mini-card {
    grid-template-columns: 90px 1fr;
    gap: 12px;
  }

  .featured-mini-image {
    width: 90px;
    height: 90px;
  }

  .featured-mini-content h4 {
    font-size: 15px;
    margin-bottom: 10px;
  }

  .featured-mini-footer span {
    font-size: 13px;
  }

  .featured-mini-footer a {
    min-width: 96px;
    height: 34px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .featured-main-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .featured-mini-card {
    grid-template-columns: 1fr;
  }

  .featured-mini-image {
    width: 100%;
    height: 180px;
  }

  .featured-mini-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
.featured-side-scroll.dragging {
  cursor: grabbing;
  user-select: none;
}
.featured-articles-container {
  direction: ltr;
}

.featured-main,
.featured-side {
  direction: rtl;
}
/* اصلاح بخش داینامیک مقالات ویژه */

.featured-layout {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(340px, 0.8fr);
  gap: 24px;
  align-items: start;
  direction: ltr;
}

.featured-main-card {
  direction: rtl;
  min-width: 0;
  cursor: pointer;
}

.featured-side-scroll {
  direction: rtl;
}

/* کارت بزرگ سمت چپ */

.featured-main-card .featured-main-image {
  width: 100%;
  height: 520px;
  overflow: hidden;
  background: #ddd;
  margin-bottom: 18px;
  border-radius: 6px;
}

.featured-main-card .featured-main-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 6px;
}

.featured-main-title {
  margin: 0 0 12px;
  font-size: 34px;
  font-weight: 800;
  color: #313131;
  line-height: 1.6;
}

.featured-main-subtitle {
  margin: 0 0 18px;
  font-size: 20px;
  font-weight: 500;
  color: #444;
  line-height: 1.8;
}

.featured-main-footer {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.featured-main-footer > span {
  color: #6d6d6d;
  font-size: 17px;
  font-weight: 600;
}

.featured-author {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 10px;
  color: #7a7a7a;
  font-size: 18px;
  font-weight: 600;
}

.featured-author img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
}

/* کارت‌های کوچک سمت راست */

.featured-layout .featured-mini-card {
  display: grid !important;
  grid-template-columns: 110px 1fr !important;
  gap: 14px;
  align-items: start;
  margin-bottom: 18px;
  cursor: pointer;
}

.featured-layout .featured-mini-image {
  width: 110px !important;
  height: 110px !important;
  overflow: hidden;
  background: #ddd;
  flex-shrink: 0;
  border-radius: 5px;
}

.featured-layout .featured-mini-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 5px;
}

.featured-layout .featured-mini-content h4 {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 700;
  color: #353535;
  line-height: 1.8;
}

.featured-layout .featured-mini-footer {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.featured-layout .featured-mini-footer span {
  color: #7d7d7d;
  font-size: 15px;
  font-weight: 600;
}

.featured-layout .featured-mini-footer a {
  min-width: 110px;
  height: 38px;
  padding: 0 16px;
  border-radius: 2px;
  background: #02482c;
  color: #fff !important;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
}

/* ریسپانسیو همین بخش */

@media (max-width: 992px) {
  .featured-layout {
    grid-template-columns: 1fr;
  }

  .featured-main-card .featured-main-image {
    height: 420px;
  }

  .featured-side-scroll {
    max-height: 520px;
  }
}

@media (max-width: 768px) {
  .featured-main-card .featured-main-image {
    height: 320px;
  }

  .featured-main-title {
    font-size: 24px;
  }

  .featured-main-subtitle {
    font-size: 16px;
  }

  .featured-main-footer > span,
  .featured-author {
    font-size: 14px;
  }

  .featured-layout .featured-mini-card {
    grid-template-columns: 90px 1fr !important;
    gap: 12px;
  }

  .featured-layout .featured-mini-image {
    width: 90px !important;
    height: 90px !important;
  }

  .featured-layout .featured-mini-content h4 {
    font-size: 15px;
    margin-bottom: 10px;
  }

  .featured-layout .featured-mini-footer span {
    font-size: 13px;
  }

  .featured-layout .featured-mini-footer a {
    min-width: 96px;
    height: 34px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .featured-main-card .featured-main-image {
    height: 260px;
  }

  .featured-main-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .featured-layout .featured-mini-card {
    grid-template-columns: 1fr !important;
  }

  .featured-layout .featured-mini-image {
    width: 100% !important;
    height: 180px !important;
  }

  .featured-layout .featured-mini-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
.article-grid {
  max-width: 1250px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  gap: 22px;
  direction: ltr;
  align-items: start;
}

.article-grid > .article-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.article-card-large {
  height: 722px;
  min-height: 0;
}

.article-side-column {
  display: grid;
  grid-template-rows: 359px 350px;
  gap: 22px;
  height: auto;
}

.article-side-column .article-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.article-card-small {
  height: 350px;
  min-height: 0;
}

.article-card {
  position: relative;
  overflow: hidden;
}

.article-card > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}
.article-search-box {
  position: relative;
}

.article-live-results {
  position: absolute;
  top: 58px;
  right: 0;
  left: 0;
  z-index: 50;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
  padding: 10px;
  display: none;
  max-height: 360px;
  overflow-y: auto;
  direction: rtl;
}

.article-live-results.is-active {
  display: block;
}

.article-live-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 12px;
  text-decoration: none;
  color: #222;
  transition: 0.2s ease;
}

.article-live-result-item:hover {
  background: #f1f5f2;
}

.article-live-result-item img {
  width: 58px;
  height: 58px;
  border-radius: 10px;
  object-fit: cover;
  background: #ddd;
  flex-shrink: 0;
}

.article-live-result-info {
  min-width: 0;
}

.article-live-result-title {
  font-size: 14px;
  font-weight: 800;
  color: #222;
  line-height: 1.7;
  margin-bottom: 4px;
}

.article-live-result-meta {
  font-size: 12px;
  color: #777;
}

.article-live-no-result {
  padding: 14px;
  font-size: 14px;
  color: #666;
  text-align: center;
}