/* ==========================================================================
   NIDWAN RESOURCES & PUBLICATION PAGE — src/resources.css
   Uses only colors from styles.css design tokens
   ========================================================================== */

/* ── Resources Hero Section ── */
.resources-hero-section {
  position: relative;
  width: 100%;
  /* Figma: width 1434px, height 396.41px, top 234px */
  /*max-width: 1434px;*/
  min-height: 396.41px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* Figma: background #7A007A */
  background: #7A007A;
  padding: 119px 16px 119.02px;
  box-sizing: border-box;
}

/* Figma: bg image opacity: 0.2 */
.resources-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0.2;
  z-index: 0;
}

/* No overlay needed — image opacity handles the blend */
.resources-hero-overlay {
  display: none;
}

/* Figma: content layout max-width 768px, gap 14.8px between title and desc */
.resources-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 768px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14.8px;
  padding: 0;
}

/* Figma: title 56px / 61.6px Bold, letter-spacing -1.12px, center, uppercase */
.resources-hero-title {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: 56px;
  line-height: 61.6px;
  letter-spacing: -1.12px;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  color: #FFFFFF;
  margin: 0;
  width: 781px;
  max-width: 100%;
}

/* Figma: description 18px / 27px Regular, opacity 0.9, max-width 672px, center aligned */
.resources-hero-desc {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 18px;
  line-height: 27px;
  letter-spacing: 0px;
  text-align: center;
  vertical-align: middle;
  color: #FFFFFF;
  opacity: 0.9;
  max-width: 672px;
  width: 100%;
  padding-bottom: 0.59px;
  margin: 0;
}

/* ── Page Body Wrapper ── */
.resources-page-body {
  width: 100%;
  background: #FFFFFF;
  padding: 72px 120px;
  box-sizing: border-box;
}

.resources-page-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 64px;
}

/* ══════════════════════════════════════════
   FEATURED ARTICLE SECTION
══════════════════════════════════════════ */
.resources-featured-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Figma: gap 40px between heading block and card */
  gap: 40px;
}

/* Figma: heading block width 734, height 58, gap 40px */
/* Heading: Arial Bold 40px / 48px, uppercase, color #4D004C */
.resources-section-title {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: 40px;
  line-height: 48px;
  letter-spacing: 0px;
  vertical-align: middle;
  text-transform: uppercase;
  white-space: nowrap;
  color: #4D004C;
  text-align: center;
  margin: 0;
  position: relative;
}

/* Figma: underline width 64px, height 4px, border-radius 100px, color #83387F */
.resources-section-title::after {
  content: '';
  display: block;
  width: 64px;
  height: 4px;
  background: #83387F;
  border-radius: 100px;
  margin: 10px auto 0;
}

/* Figma: card width 1109.75px, height 329px, gap 18.5px */
.resources-featured-card {
  display: flex;
  align-items: flex-start;
  gap: 18.5px;
  width: 100%;
  max-width: 1109.75px;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
}

/* Figma: image width 486px, height 329px, border-radius 11.67px */
.resources-featured-img-wrap {
  flex-shrink: 0;
  width: 486px;
  height: 329px;
  border-radius: 11.67px;
  overflow: hidden;
}

.resources-featured-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 11.67px;
}

/* Figma: right content flex column, gap ~21.59px */
.resources-featured-content {
  flex: 1;
  max-width: 633.77px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 21.59px;
  justify-content: flex-start;
}

/* Figma: date & author row width 183.34px, gap 12.34px */
.resources-featured-meta {
  display: flex;
  align-items: center;
  gap: 12.34px;
}

/* Figma: author/date items — Sora SemiBold 10.79px / 9.25px, color #131515, gap 7.71px */
.resources-meta-item {
  display: flex;
  align-items: center;
  gap: 7.71px;
  font-family: 'Sora', Arial, sans-serif;
  font-weight: 600;
  font-style: normal;
  font-size: 10.79px;
  line-height: 9.25px;
  letter-spacing: 0;
  color: #131515;
}

.resources-meta-item svg {
  color: #131515;
  flex-shrink: 0;
}

/* Figma: title Arial Bold 24px / 31.2px, width 633.77px, color #131515 */
.resources-featured-title {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: 24px;
  line-height: 31.2px;
  letter-spacing: 0px;
  vertical-align: middle;
  color: #131515;
  max-width: 633.77px;
  margin: 0;
}

/* Figma: description Arial Regular 20px / 30px, color #131515 */
.resources-featured-desc {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 20px;
  line-height: 30px;
  letter-spacing: 0px;
  color: #131515;
  margin: 0;
}

/* Figma: Read More — Arial Bold 16px / 23.4px, color #81007F, gap 8px, border-radius 8px */
.resources-read-more-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: 16px;
  line-height: 23.4px;
  letter-spacing: 0px;
  vertical-align: middle;
  color: #81007F;
  text-decoration: none;
  border-radius: 8px;
  margin-top: 4px;
}

/* ══════════════════════════════════════════
   RESOURCES LIBRARY GRID SECTION & TABS
══════════════════════════════════════════ */
.resources-grid-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Figma: section gap 40px */
  gap: 40px;
}

/* Figma: tabs row width 734px, height 48px, gap 16px */
.resources-tabs-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  max-width: 734px;
  width: 100%;
  height: 48px;
}

/* Figma: active tab — width 69px, height 48px, padding 12px 24px, border-radius 12px, bg #81007F */
/* Figma: active tab txt — Arial Bold 16px / 23.4px, center, color #FFFFFF */
.resources-tab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 12px 24px;
  border-radius: 12px;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: 14px;
  line-height: 23.4px;
  letter-spacing: 0px;
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
  border: none;
  transition: background 0.2s ease, color 0.2s ease;
  /* Figma non-active: bg #FFEFF8, txt #81007F */
  background: #FFEFF8;
  color: #81007F;
}

/* Figma: active tab — bg #81007F, txt Arial Bold 16px, color #FFFFFF */
.resources-tab-btn.active {
  background: #81007F;
  color: #FFFFFF;
  font-size: 16px;
}

/* Grid Layout: max-width 1110px, gap 30px, 3 columns */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  width: 100%;
  max-width: 1110px;
}

/* Figma: card width 350px, height 427px */
.resources-article-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 350px;
  min-height: 427px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #E2CCE0;
  background: #FFFFFF;
  box-shadow: 0 2px 12px rgba(80, 0, 79, 0.05);
  box-sizing: border-box;
}

/* Figma: card image width 350px, height 216px */
.resources-article-img-wrap {
  position: relative;
  width: 100%;
  height: 216px;
  overflow: hidden;
  flex-shrink: 0;
}

.resources-article-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Figma: badge — top 12px, left 12px, padding 8px 12px, border-radius 90px, bg #81007F */
/* Figma: badge txt — Arial Bold 12px / 14.4px, 8% letter-spacing, uppercase, color #FFEFF8 */
.resources-category-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  background: #81007F;
  color: #FFEFF8;
  border-radius: 90px;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: 12px;
  line-height: 14.4px;
  letter-spacing: 0.08em;
  vertical-align: middle;
  text-transform: uppercase;
  z-index: 2;
}

/* Figma: content body — top 232px, left 16px, gap 8px, width 318px */
.resources-article-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  box-sizing: border-box;
}

/* Figma: date — Arial Bold 12px / 14.4px, 8% letter-spacing, uppercase, color #84727F */
.resources-article-date {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: 12px;
  line-height: 14.4px;
  letter-spacing: 0.08em;
  vertical-align: middle;
  text-transform: uppercase;
  color: #84727F;
  margin: 0;
}

/* Figma: title — Arial Medium 500, 24px / 31.2px, color #1A0019, single line ellipsis */
.resources-article-title {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-style: normal;
  font-size: 24px;
  line-height: 31.2px;
  letter-spacing: 0px;
  vertical-align: middle;
  color: #1A0019;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

/* Figma: description — Arial Regular 18px / 27px, color #52424E */
.resources-article-excerpt {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 18px;
  line-height: 27px;
  letter-spacing: 0px;
  vertical-align: middle;
  color: #52424E;
  margin: 0;
}

/* Figma: footer block — width 317px, height 24px rows, space-between */
.resources-card-footer-block {
  width: 100%;
  max-width: 317px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
}

/* Figma: location — Arial Regular 16px / 24px, color #52424E, width 142px, height 24px */
.resources-article-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0px;
  vertical-align: middle;
  color: #52424E;
  margin: 0;
  padding: 0;
}

.resources-article-location svg {
  color: #81007F;
}

/* Figma: action row — width 317px, height 24px, justify-content space-between */
.resources-card-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 24px;
}

/* Figma: read more — width 82px, height 24px, gap 10px, border-radius 8px, color #81007F */
/* Figma: read more txt — Arial Bold 16px, center, color #81007F */
.resources-article-readmore {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0px;
  vertical-align: middle;
  color: #81007F;
  text-decoration: none;
  border-radius: 8px;
}

.resources-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #52424E;
  transition: color 0.2s ease;
}

.resources-download-btn:hover {
  color: #81007F;
}

/* ── Solid Purple Load More Button (Figma screenshot design) ── */
.resources-load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 24px;
  width: 100%;
}

.resources-load-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 36px;
  background: #81007F;
  color: #FFFFFF;
  border: none;
  border-radius: 12px;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 24px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(129, 0, 127, 0.25);
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.resources-load-more-btn:hover {
  background: #670066;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(129, 0, 127, 0.35);
}
  text-decoration: none;
}

.resources-load-more-btn:hover {
  background: #80007F;
  color: #FFFFFF;
}

/* ════════════════════════════════════════════
   RESPONSIVE — Resources Page
   Breakpoints: 1200 / 1100 / 900 / 768 / 520 / 400
════════════════════════════════════════════ */

/* ── 1200px: shrink page container padding ── */
@media (max-width: 1200px) {
  .resources-page-body {
    padding: 72px 60px;
  }

  .resources-page-container {
    max-width: 100%;
  }

  /* Featured card: shrink image a bit */
  .resources-featured-img-wrap {
    width: 380px;
    height: 280px;
  }

  /* Grid: still 3 cols but allow natural width */
  .resources-article-card {
    max-width: 100%;
  }
}

/* ── 1100px: switch grid to 2 columns ── */
@media (max-width: 1100px) {
  .resources-page-body {
    padding: 60px 40px;
  }

  /* Grid becomes 2-column */
  .resources-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 740px;
  }

  /* Featured: shrink image further */
  .resources-featured-img-wrap {
    width: 300px;
    height: 260px;
  }

  /* Tabs: allow wrap */
  .resources-tabs-container {
    height: auto;
    flex-wrap: wrap;
  }

  /* Section title: allow wrap if needed */
  .resources-section-title {
    white-space: normal;
    font-size: 34px;
    line-height: 42px;
  }
}

/* ── 900px: stack featured card vertically ── */
@media (max-width: 900px) {
  /* Featured card stacks vertically */
  .resources-featured-card {
    flex-direction: column;
    align-items: stretch;
  }

  .resources-featured-img-wrap {
    width: 100%;
    height: 280px;
    border-radius: 11.67px;
  }

  .resources-featured-content {
    max-width: 100%;
    padding: 0;
  }

  /* Hero title scale */
  .resources-hero-title {
    font-size: 40px;
    line-height: 50px;
    white-space: normal;
  }

  /* Section title */
  .resources-section-title {
    font-size: 30px;
    line-height: 38px;
  }
}

/* ── 768px: single column grid, scale fonts ── */
@media (max-width: 768px) {
  .resources-page-body {
    padding: 48px 24px;
  }

  .resources-page-container {
    gap: 48px;
  }

  /* Hero */
  .resources-hero-section {
    padding: 80px 24px;
    min-height: auto;
  }

  .resources-hero-title {
    font-size: 32px;
    line-height: 40px;
    white-space: normal;
  }

  .resources-hero-desc {
    font-size: 16px;
    line-height: 24px;
  }

  /* Featured */
  .resources-featured-card {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }

  .resources-featured-img-wrap {
    width: 100%;
    height: 240px;
  }

  .resources-featured-content {
    max-width: 100%;
    gap: 16px;
  }

  .resources-featured-title {
    font-size: 20px;
    line-height: 27px;
    max-width: 100%;
  }

  .resources-featured-desc {
    font-size: 16px;
    line-height: 24px;
  }

  /* Section headings */
  .resources-section-title {
    font-size: 28px;
    line-height: 36px;
    white-space: normal;
  }

  /* Tabs: wrap freely, smaller text */
  .resources-tabs-container {
    gap: 10px;
    height: auto;
  }

  .resources-tab-btn {
    font-size: 13px;
    padding: 10px 18px;
    height: auto;
  }

  .resources-tab-btn.active {
    font-size: 13px;
  }

  /* Grid: single column */
  .resources-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    gap: 20px;
  }

  .resources-article-card {
    max-width: 100%;
  }
}

/* ── 520px: mobile, compact everything ── */
@media (max-width: 520px) {
  .resources-page-body {
    padding: 36px 16px;
  }

  .resources-page-container {
    gap: 36px;
  }

  .resources-hero-section {
    padding: 60px 16px;
  }

  .resources-hero-title {
    font-size: 26px;
    line-height: 33px;
  }

  .resources-hero-desc {
    font-size: 14px;
    line-height: 21px;
  }

  .resources-featured-img-wrap {
    height: 200px;
  }

  .resources-featured-title {
    font-size: 18px;
    line-height: 24px;
  }

  .resources-featured-desc {
    font-size: 14px;
    line-height: 21px;
  }

  .resources-section-title {
    font-size: 24px;
    line-height: 32px;
  }

  .resources-section-title::after {
    width: 48px;
  }

  .resources-tabs-container {
    gap: 8px;
  }

  .resources-tab-btn {
    font-size: 12px;
    padding: 8px 14px;
    border-radius: 10px;
  }

  .resources-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
    gap: 16px;
  }

  .resources-article-img-wrap {
    height: 180px;
  }

  .resources-article-title {
    font-size: 18px;
    line-height: 24px;
  }

  .resources-article-excerpt {
    font-size: 14px;
    line-height: 21px;
  }

  .resources-load-more-btn {
    padding: 12px 28px;
    font-size: 14px;
  }
}

/* ── 400px: very small phones ── */
@media (max-width: 400px) {
  .resources-hero-title {
    font-size: 22px;
    line-height: 29px;
  }

  .resources-section-title {
    font-size: 20px;
    line-height: 28px;
  }

  .resources-tab-btn {
    font-size: 11px;
    padding: 7px 12px;
  }
}

