/* ==========================================================================
   NEGAREH PLATFORM - SECTION 4 (چرا نگاره؟ / مسیر موفقیت فقط یک دوره نیست)
   Namespace: .negareh-section4
   Aesthetic: Light Luxury, High Contrast, Minimal, Clean & Educational
   ========================================================================== */

.negareh-section4 {
  position: relative;
  background-color: #ffffff;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(60, 198, 200, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(0, 107, 115, 0.04) 0%, transparent 45%),
    linear-gradient(180deg, #f8fafc 0%, #ffffff 50%, #f8fafc 100%);
  padding-top: 96px;
  padding-bottom: 104px;
  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 rgba(0, 107, 115, 0.08);
}

/* Subtle Geometric Decorative Background Elements */
.negareh-section4__decor {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

.negareh-section4__decor--top-right {
  top: -60px;
  right: -60px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(60, 198, 200, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(50px);
}

.negareh-section4__decor--bottom-left {
  bottom: -60px;
  left: -60px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(0, 107, 115, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(60px);
}

.negareh-section4__decor-dots {
  position: absolute;
  top: 40px;
  left: 5%;
  width: 80px;
  height: 80px;
  background-image: radial-gradient(#006B73 1px, transparent 1px);
  background-size: 14px 14px;
  opacity: 0.15;
}

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

/* --------------------------------------------------------------------------
   HEADER (Centered, Clean Typography)
   -------------------------------------------------------------------------- */
.negareh-section4__header {
  text-align: center;
  margin-bottom: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  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-section4__header.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

.negareh-section4__eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3CC6C8;
  box-shadow: 0 0 8px #3CC6C8;
  display: inline-block;
}

/* Section Title */
.negareh-section4__title {
  font-size: 36px;
  font-weight: 800;
  color: #0b1c2d;
  line-height: 1.35;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}

/* Section Subtitle */
.negareh-section4__subtitle {
  font-size: 16.5px;
  line-height: 1.75;
  color: #475569;
  font-weight: 400;
  max-width: 680px;
}

/* --------------------------------------------------------------------------
   CARDS GRID (4 Columns Desktop -> 2 Columns Tablet -> 1 Column Mobile)
   -------------------------------------------------------------------------- */
.negareh-section4__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  width: 100%;
}

/* Individual Feature Card */
.negareh-section4__card {
  background: #ffffff;
  border: 1px solid #e8eef3;
  border-radius: 24px;
  padding: 36px 26px 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: right;
  box-shadow: 
    0 4px 20px -2px rgba(11, 28, 45, 0.03),
    0 2px 6px -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,
    opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(28px);
}

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

/* Stagger Delay for Cards */
.negareh-section4__card:nth-child(1) { transition-delay: 0.1s; }
.negareh-section4__card:nth-child(2) { transition-delay: 0.2s; }
.negareh-section4__card:nth-child(3) { transition-delay: 0.3s; }
.negareh-section4__card:nth-child(4) { transition-delay: 0.4s; }

/* Subtle Card Top Gradient Accent Line on Hover */
.negareh-section4__card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3.5px;
  background: linear-gradient(90deg, #3CC6C8 0%, #006B73 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

/* Hover States */
.negareh-section4__card:hover {
  transform: translateY(-6px);
  border-color: rgba(60, 198, 200, 0.4);
  box-shadow: 
    0 20px 35px -8px rgba(0, 107, 115, 0.09),
    0 4px 12px -2px rgba(11, 28, 45, 0.03);
}

.negareh-section4__card:hover::before {
  opacity: 1;
}

/* --------------------------------------------------------------------------
   ICON WRAPPER & VISUAL EMBELLISHMENTS
   -------------------------------------------------------------------------- */
.negareh-section4__icon-wrapper {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  flex-shrink: 0;
}

.negareh-section4__card:hover .negareh-section4__icon-wrapper {
  transform: scale(1.06);
}

/* Card 1: آموزش هدفمند (Teal / Cyan) */
.negareh-section4__card--education .negareh-section4__icon-wrapper {
  background-color: #e6f7f8;
  color: #006B73;
  border: 1px solid #c2ecee;
}
.negareh-section4__card--education:hover .negareh-section4__icon-wrapper {
  background-color: #d1f2f4;
  box-shadow: 0 8px 20px rgba(0, 107, 115, 0.15);
}

/* Card 2: منابع مطالعاتی (Amber / Orange) */
.negareh-section4__card--resources .negareh-section4__icon-wrapper {
  background-color: #fff7ed;
  color: #c25e00;
  border: 1px solid #ffedd5;
}
.negareh-section4__card--resources:hover .negareh-section4__icon-wrapper {
  background-color: #ffedd5;
  box-shadow: 0 8px 20px rgba(254, 162, 75, 0.2);
}

/* Card 3: پشتیبانی و همراهی (Lime / Green / Cyan) */
.negareh-section4__card--support .negareh-section4__icon-wrapper {
  background-color: #f0fdf4;
  color: #15803d;
  border: 1px solid #dcfce7;
}
.negareh-section4__card--support:hover .negareh-section4__icon-wrapper {
  background-color: #dcfce7;
  box-shadow: 0 8px 20px rgba(144, 209, 5, 0.2);
}

/* Card 4: مسیر مشخص (Gold / Indigo / Cyan) */
.negareh-section4__card--roadmap .negareh-section4__icon-wrapper {
  background-color: #fefce8;
  color: #a16207;
  border: 1px solid #fef9c3;
}
.negareh-section4__card--roadmap:hover .negareh-section4__icon-wrapper {
  background-color: #fef9c3;
  box-shadow: 0 8px 20px rgba(255, 204, 0, 0.25);
}

/* Icon SVG Inside Wrapper */
.negareh-section4__icon {
  width: 32px;
  height: 32px;
  display: block;
}

/* --------------------------------------------------------------------------
   CARD TYPOGRAPHY
   -------------------------------------------------------------------------- */
.negareh-section4__card-title {
  font-size: 20px;
  font-weight: 700;
  color: #0b1c2d;
  line-height: 1.35;
  margin-bottom: 12px;
  letter-spacing: -0.2px;
  transition: color 0.2s ease;
}

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

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

/* Subtle corner watermark for card 4 */
.negareh-section4__card-watermark {
  position: absolute;
  bottom: -20px;
  left: -20px;
  width: 80px;
  height: 80px;
  opacity: 0.03;
  pointer-events: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.negareh-section4__card:hover .negareh-section4__card-watermark {
  transform: scale(1.15) rotate(10deg);
  opacity: 0.06;
}

/* --------------------------------------------------------------------------
   RESPONSIVE ADAPTATIONS
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .negareh-section4__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .negareh-section4__title {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  .negareh-section4 {
    padding-top: 64px;
    padding-bottom: 72px;
  }

  .negareh-section4__header {
    margin-bottom: 36px;
  }

  .negareh-section4__title {
    font-size: 25px;
  }

  .negareh-section4__subtitle {
    font-size: 14.5px;
  }

  .negareh-section4__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .negareh-section4__card {
    padding: 28px 22px 24px;
    border-radius: 20px;
  }

  .negareh-section4__icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 15px;
    margin-bottom: 18px;
  }

  .negareh-section4__icon {
    width: 28px;
    height: 28px;
  }

  .negareh-section4__card-title {
    font-size: 18px;
    margin-bottom: 8px;
  }

  .negareh-section4__card-desc {
    font-size: 13.5px;
  }
}

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

  .negareh-section4__card:hover {
    transform: none !important;
  }

  .negareh-section4__icon-wrapper {
    transition: none !important;
  }
}
