/* ==========================================================================
   NIDWAN RESOURCE DETAIL PAGE — src/detail.css
   Uses brand design tokens from styles.css & Figma specs
   ========================================================================== */

/* ── Detail Hero Section ── */
.detail-hero-section {
  width: 100%;
  min-height: 488px;
  background: #EFDFE8;
  padding: 128px 0 80px 0;
  box-sizing: border-box;
}

/* Inner Layout Container: max-width 1129px, margin 0 auto, padding 0 24px to match body container alignment */
.detail-hero-container {
  max-width: 1129px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 31.3px;
  box-sizing: border-box;
}

/* Breadcrumb Small Title Row: gap 8px, wraps cleanly on mobile */
.detail-hero-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 6px;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 13px;
  line-height: 20px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #52424E;
}

.detail-hero-breadcrumb-link {
  color: #52424E;
  text-decoration: none;
  transition: color 0.2s ease;
}

.detail-hero-breadcrumb-link:hover {
  color: #4D004C;
}

.detail-hero-breadcrumb-active {
  color: #4D004C;
  font-weight: 700;
}

/* Main Title: max-width 1059px, 56px / 61.6px Black 900, letter-spacing -1.12px */
.detail-hero-title {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 900;
  font-size: 56px;
  line-height: 61.6px;
  letter-spacing: -1.12px;
  color: #1A0019;
  margin: 0;
  max-width: 1059px;
  width: 100%;
}

.detail-hero-title-highlight {
  color: #4D004C;
}

/* Description: Arial Regular 400, 18px / 27px, color #52424E, max-width 768px */
.detail-hero-desc {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 27px;
  letter-spacing: 0px;
  color: #52424E;
  margin: 0;
  max-width: 768px;
  width: 100%;
}

/* ══════════════════════════════════════════
   DETAIL CONTENT BODY SECTION
══════════════════════════════════════════ */
.detail-body-section {
  width: 100%;
  background: #FFFFFF;
  padding: 60px 0 80px;
  box-sizing: border-box;
}

.detail-body-container {
  max-width: 1129px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 48px;
  align-items: flex-start;
  box-sizing: border-box;
}

/* ── Left Main Column ── */
.detail-main-col {
  display: flex;
  flex-direction: column;
  gap: 36px;
  min-width: 0;
}

/* Publication Image Preview */
.detail-pub-img-wrap {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #E2CCE0;
  background: #F8F4F8;
  box-shadow: 0px 4px 20px rgba(77, 0, 76, 0.04);
}

.detail-pub-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Text + Layout block: gap 23.99px */
.detail-about-block {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

/* Heading: Arial Bold 700, 24px / 31.2px, #1A0019 */
.detail-section-heading {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 31.2px;
  letter-spacing: 0px;
  color: #1A0019;
  margin: 0;
}

/* Description: Arial Regular 400, 18px / 27px, #52424E */
.detail-body-text {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 18px;
  line-height: 27px;
  letter-spacing: 0px;
  color: #52424E;
  margin: 0;
}

/* ── Right Sidebar Column ── */
.detail-sidebar-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 32px;
  background: #F0EDED;
  border-radius: 8px;
  box-shadow: 0px 4px 20px 0px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 100px;
  width: 350px;
  box-sizing: border-box;
  align-self: flex-start;
}

/* Download PDF Button */
.detail-download-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 56px;
  padding: 16px 20px;
  background: #81007F;
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 15px;
  line-height: 22px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.detail-download-btn:hover {
  background: #5D005C;
  box-shadow: 0 4px 14px rgba(129, 0, 127, 0.25);
  transform: translateY(-1px);
}

/* Share & Print action row */
.detail-action-row {
  display: flex;
  gap: 16px;
  width: 100%;
}

.detail-action-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 8px;
  border: 1px solid #D6C0CF;
  border-radius: 8px;
  background: #FFFFFF;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1A0019;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
  box-sizing: border-box;
}

.detail-action-btn:hover {
  border-color: #81007F;
  color: #81007F;
}

.detail-action-btn svg {
  color: #81007F;
}

/* Metadata Block */
.detail-metadata-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.detail-metadata-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.detail-metadata-label {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: #52424E;
}

.detail-metadata-value {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 14px;
  line-height: 20px;
  color: #1A0019;
  text-align: right;
}

/* ══════════════════════════════════════════
   KEY HIGHLIGHTS 2x2 STAT CARDS GRID
══════════════════════════════════════════ */
.detail-highlights-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  row-gap: 24px;
  column-gap: 24px;
  width: 100%;
}

.detail-highlight-card {
  background: #EFDFE8;
  border: none;
  border-left: 4px solid #4D004C;
  border-radius: 8px;
  padding: 32px 32px 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-sizing: border-box;
  box-shadow: 0px 4px 20px 0px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.detail-highlight-card:hover {
  box-shadow: 0px 8px 24px 0px rgba(77, 0, 76, 0.1);
  transform: translateY(-2px);
}

.detail-highlight-icon {
  color: #81007F;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-highlight-title {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 17px;
  line-height: 22px;
  color: #1A0019;
  margin: 0;
  padding-top: 4px;
}

.detail-highlight-text {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: #52424E;
  margin: 0;
}

/* ══════════════════════════════════════════
   RESPONSIVE BREAKPOINTS (DESKTOP TO MOBILE)
══════════════════════════════════════════ */
@media (max-width: 1200px) {
  .detail-hero-container,
  .detail-body-container {
    padding: 0 40px;
  }
}

@media (max-width: 992px) {
  .detail-hero-section {
    padding: 80px 0 60px 0;
    min-height: auto;
  }
  .detail-hero-container,
  .detail-body-container {
    padding: 0 32px;
  }
  .detail-hero-container {
    gap: 20px;
  }
  .detail-hero-title {
    font-size: 42px;
    line-height: 48px;
  }
  .detail-body-section {
    padding: 48px 0 60px;
  }
  .detail-body-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .detail-sidebar-col {
    position: static;
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .detail-hero-section {
    padding: 50px 0 40px 0;
  }
  .detail-hero-container,
  .detail-body-container {
    padding: 0 20px;
  }
  .detail-hero-container {
    gap: 16px;
  }
  .detail-hero-title {
    font-size: 32px;
    line-height: 38px;
    letter-spacing: -0.5px;
  }
  .detail-hero-desc {
    font-size: 15px;
    line-height: 23px;
  }
  .detail-body-section {
    padding: 32px 0 50px;
  }
  .detail-highlights-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .detail-highlight-card {
    padding: 24px 20px 28px;
  }
  .detail-sidebar-col {
    padding: 24px 20px;
  }
  .detail-section-heading {
    font-size: 20px;
    line-height: 26px;
  }
  .detail-body-text {
    font-size: 16px;
    line-height: 24px;
  }
}
