/* ==========================================================================
   NEGAREH PLATFORM - SECTION 5 (مجله نگاره / Resource Center)
   Namespace: .negareh-section5
   Aesthetic: Modern Editorial, Clean, High Contrast, Notion/Linear/Stripe Inspired
   ========================================================================== */

.negareh-section5 {
  position: relative;
  background-color: #f8fafc;
  background-image: 
    radial-gradient(circle at 85% 15%, rgba(0, 107, 115, 0.035) 0%, transparent 40%),
    radial-gradient(circle at 15% 85%, rgba(60, 198, 200, 0.04) 0%, transparent 40%);
  padding-top: 100px;
  padding-bottom: 110px;
  color: #0f172a;
  font-family: 'IRANYekan', 'Vazirmatn', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  direction: rtl;
  text-align: right;
  overflow: hidden;
  border-top: 1px solid #eef2f6;
}

/* Background Subtle Ambience */
.negareh-section5__decor {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

.negareh-section5__decor--top-left {
  top: -80px;
  left: -80px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(60, 198, 200, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(60px);
}

.negareh-section5__decor--bottom-right {
  bottom: -60px;
  right: -60px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 107, 115, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(60px);
}

/* Container Constraint */
.negareh-section5__container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  position: relative;
  z-index: 2;
}

/* --------------------------------------------------------------------------
   HEADER (Eyebrow + Title + Description on Right, "View All" on Left)
   -------------------------------------------------------------------------- */
.negareh-section5__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.negareh-section5__header.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.negareh-section5__header-content {
  max-width: 680px;
}

/* Eyebrow Badge */
.negareh-section5__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: rgba(0, 107, 115, 0.06);
  border: 1px solid rgba(0, 107, 115, 0.12);
  color: #006B73;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: -0.2px;
}

.negareh-section5__eyebrow-icon {
  width: 14px;
  height: 14px;
  stroke: #006B73;
}

/* Main Title */
.negareh-section5__title {
  font-size: 34px;
  font-weight: 800;
  color: #0b1c2d;
  line-height: 1.35;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

/* Subtitle Description */
.negareh-section5__subtitle {
  font-size: 15.5px;
  line-height: 1.75;
  color: #475569;
  font-weight: 400;
  margin: 0;
}

/* Header "View All" Link Button */
.negareh-section5__all-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #006B73;
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.negareh-section5__all-link-arrow {
  width: 18px;
  height: 18px;
  transition: transform 0.22s ease;
}

.negareh-section5__all-link:hover {
  background: #006B73;
  border-color: #006B73;
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(0, 107, 115, 0.18);
  transform: translateY(-2px);
}

.negareh-section5__all-link:hover .negareh-section5__all-link-arrow {
  transform: translateX(-4px);
  stroke: #ffffff;
}

/* --------------------------------------------------------------------------
   EDITORIAL ARTICLES GRID (Asymmetric Magazine Layout)
   -------------------------------------------------------------------------- */
.negareh-section5__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: stretch;
}

/* Common Card Base & Animation */
.negareh-section5__featured-card,
.negareh-section5__side-card {
  opacity: 0;
  transform: translateY(24px);
  transition: 
    opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.negareh-section5__featured-card.is-visible,
.negareh-section5__side-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   FEATURED CARD (Right Side in RTL, Large & Prominent)
   -------------------------------------------------------------------------- */
.negareh-section5__featured-card {
  background: #ffffff;
  border: 1px solid #e8eef3;
  border-radius: 26px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 
    0 4px 24px -2px rgba(11, 28, 45, 0.04),
    0 2px 8px -1px rgba(11, 28, 45, 0.02);
  transition: 
    transform 0.28s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.28s ease;
  position: relative;
  text-decoration: none;
  color: inherit;
}

.negareh-section5__featured-card:hover {
  transform: translateY(-5px);
  border-color: rgba(60, 198, 200, 0.45);
  box-shadow: 
    0 20px 40px -10px rgba(0, 107, 115, 0.12),
    0 4px 16px -2px rgba(11, 28, 45, 0.04);
}

/* Featured Media Container (16:9) */
.negareh-section5__featured-media {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  overflow: hidden;
  background-color: #0b1c2d;
}

.negareh-section5__featured-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.negareh-section5__featured-card:hover .negareh-section5__featured-img {
  transform: scale(1.04);
}

/* Overlay gradient on featured image */
.negareh-section5__featured-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 28, 45, 0.05) 0%, rgba(11, 28, 45, 0.45) 100%);
  pointer-events: none;
}

/* Featured Tag Floating on Image */
.negareh-section5__featured-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 6px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  color: #006B73;
  font-size: 12.5px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  z-index: 2;
}

/* Featured Content Body */
.negareh-section5__featured-body {
  padding: 32px 30px 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.negareh-section5__featured-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.negareh-section5__category-tag {
  color: #006B73;
  font-size: 13px;
  font-weight: 700;
  background: #e6f7f8;
  padding: 4px 12px;
  border-radius: 8px;
}

.negareh-section5__read-time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #64748b;
  font-size: 13px;
  font-weight: 500;
}

.negareh-section5__read-time-icon {
  width: 14px;
  height: 14px;
  stroke: #94a3b8;
}

.negareh-section5__featured-title {
  font-size: 22px;
  font-weight: 800;
  color: #0b1c2d;
  line-height: 1.45;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
  transition: color 0.2s ease;
}

.negareh-section5__featured-card:hover .negareh-section5__featured-title {
  color: #006B73;
}

.negareh-section5__featured-excerpt {
  font-size: 14.5px;
  line-height: 1.75;
  color: #64748b;
  font-weight: 400;
  margin: 0 0 24px 0;
}

/* Featured Footer Action */
.negareh-section5__featured-footer {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.negareh-section5__read-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #006B73;
  font-size: 14px;
  font-weight: 700;
  transition: gap 0.2s ease;
}

.negareh-section5__read-more-icon {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.negareh-section5__featured-card:hover .negareh-section5__read-more-icon {
  transform: translateX(-4px);
}

/* --------------------------------------------------------------------------
   SIDE ARTICLES LIST (Left Side in RTL, Stack of 3 Sleek Cards)
   -------------------------------------------------------------------------- */
.negareh-section5__side-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: space-between;
}

.negareh-section5__side-card {
  background: #ffffff;
  border: 1px solid #e8eef3;
  border-radius: 20px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 18px;
  box-shadow: 
    0 2px 12px -1px rgba(11, 28, 45, 0.03),
    0 1px 4px rgba(11, 28, 45, 0.02);
  transition: 
    transform 0.24s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.24s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.24s ease;
  text-decoration: none;
  color: inherit;
  position: relative;
}

.negareh-section5__side-card:hover {
  transform: translateX(-4px);
  border-color: rgba(60, 198, 200, 0.45);
  box-shadow: 
    0 12px 26px -6px rgba(0, 107, 115, 0.08),
    0 2px 8px -1px rgba(11, 28, 45, 0.03);
}

/* Side Card Thumbnail */
.negareh-section5__side-thumb-wrapper {
  width: 120px;
  height: 100px;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  background-color: #f1f5f9;
}

.negareh-section5__side-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.negareh-section5__side-card:hover .negareh-section5__side-thumb {
  transform: scale(1.08);
}

/* Side Card Info */
.negareh-section5__side-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.negareh-section5__side-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.negareh-section5__side-category {
  font-size: 12px;
  font-weight: 700;
  color: #006B73;
}

.negareh-section5__side-title {
  font-size: 15.5px;
  font-weight: 700;
  color: #0b1c2d;
  line-height: 1.5;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.negareh-section5__side-card:hover .negareh-section5__side-title {
  color: #006B73;
}

.negareh-section5__side-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.negareh-section5__side-arrow {
  width: 16px;
  height: 16px;
  stroke: #94a3b8;
  transition: transform 0.2s ease, stroke 0.2s ease;
}

.negareh-section5__side-card:hover .negareh-section5__side-arrow {
  transform: translateX(-3px);
  stroke: #006B73;
}

/* --------------------------------------------------------------------------
   RESPONSIVE ADAPTATIONS
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .negareh-section5__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .negareh-section5__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 36px;
  }

  .negareh-section5__side-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .negareh-section5__side-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
  }

  .negareh-section5__side-thumb-wrapper {
    width: 100%;
    height: 140px;
  }
}

@media (max-width: 768px) {
  .negareh-section5 {
    padding-top: 68px;
    padding-bottom: 76px;
  }

  .negareh-section5__title {
    font-size: 26px;
  }

  .negareh-section5__subtitle {
    font-size: 14px;
  }

  .negareh-section5__all-link {
    width: 100%;
    justify-content: center;
  }

  .negareh-section5__featured-card {
    border-radius: 20px;
  }

  .negareh-section5__featured-body {
    padding: 22px 18px 20px;
  }

  .negareh-section5__featured-title {
    font-size: 18px;
  }

  .negareh-section5__featured-excerpt {
    font-size: 13.5px;
    margin-bottom: 18px;
  }

  .negareh-section5__side-list {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .negareh-section5__side-card {
    flex-direction: row;
    align-items: center;
    border-radius: 18px;
    padding: 14px;
  }

  .negareh-section5__side-thumb-wrapper {
    width: 90px;
    height: 85px;
  }

  .negareh-section5__side-title {
    font-size: 14px;
  }
}

/* --------------------------------------------------------------------------
   ACCESSIBILITY: PREFERS REDUCED MOTION
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .negareh-section5__header,
  .negareh-section5__featured-card,
  .negareh-section5__side-card {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .negareh-section5__featured-card:hover,
  .negareh-section5__side-card:hover {
    transform: none !important;
  }

  .negareh-section5__featured-img,
  .negareh-section5__side-thumb {
    transition: none !important;
    transform: none !important;
  }
}
