/* 12-subject-topic-archives.css | Drug Law India split CSS | generated from cleaned production CSS */
/* ==================================================
   Drug Law India - Subject + Topic Archive Page
   White Theme | Navy | Teal | Gold
   For:
   /subject/{subject-slug}/
   /lectures/{subject-slug}/
   /lectures/{subject-slug}/{topic-slug}/
================================================== */

/* Page width and GeneratePress alignment */
body.dli-subject-archive-page .site-content,
body.dli-subject-archive-page .content-area,
body.dli-subject-archive-page .site-main {
  width: 100%;
}

body.dli-subject-archive-page .site-main {
  max-width: 1120px;
  margin: 0 auto;
}

/* Hide normal GeneratePress archive headers where possible */
body.dli-subject-archive-page .page-header,
body.dli-subject-archive-page header.page-header,
body.dli-subject-archive-page h1.page-title,
body.tax-subject .page-header,
body.tax-subject header.page-header,
body.tax-subject h1.page-title,
body.tax-topic .page-header,
body.tax-topic header.page-header,
body.tax-topic h1.page-title,
body.post-type-archive-lecture .page-header,
body.post-type-archive-lecture header.page-header,
body.post-type-archive-lecture h1.page-title {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  max-height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

/* Main wrapper */
.dli-subject-page-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 20px 12px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #102033;
  background: #ffffff;
}

.dli-subject-page-wrap *,
.dli-subject-page-wrap *::before,
.dli-subject-page-wrap *::after {
  box-sizing: border-box;
}

/* Hero */
.dli-subject-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 34px;
  align-items: stretch;
  overflow: hidden;
  padding: 46px 42px;
  border-radius: 30px;
  background:
    radial-gradient(circle at top right, rgba(212, 175, 55, 0.22), transparent 36%),
    linear-gradient(135deg, #092340 0%, #0b3a4a 54%, #0f766e 125%);
  color: #ffffff;
  box-shadow: 0 18px 45px rgba(9, 35, 64, 0.16);
}

/* Slightly different hero shade for topic-filtered pages */
body.dli-topic-filter-archive-page .dli-subject-hero {
  background:
    radial-gradient(circle at top right, rgba(212, 175, 55, 0.22), transparent 36%),
    linear-gradient(135deg, #092340 0%, #123b5c 56%, #0f766e 125%);
}

.dli-subject-hero::before {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -130px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
}

.dli-subject-hero::after {
  content: "⚖";
  position: absolute;
  right: 38px;
  bottom: 24px;
  color: rgba(255, 255, 255, 0.06);
  font-family: Georgia, serif;
  font-size: 140px;
  line-height: 1;
  pointer-events: none;
}

.dli-subject-hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.dli-subject-kicker {
  display: inline-flex;
  align-items: center;
  width: auto;
  margin: 0 0 15px;
  padding: 7px 14px;
  border: 1px solid rgba(212, 175, 55, 0.55);
  border-radius: 999px;
  color: #f8e7a1;
  background: rgba(255, 255, 255, 0.07);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.09em;
  line-height: 1.2;
  text-transform: uppercase;
}

.dli-subject-hero h1 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.dli-subject-lead {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  line-height: 1.72;
}

/* Parent subject line shown only on topic archive pages */
.dli-subject-parent-line {
  margin: -4px 0 16px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}

.dli-subject-parent-line a {
  color: #f8e7a1;
  text-decoration: none;
  border-bottom: 1px solid rgba(248, 231, 161, 0.45);
}

.dli-subject-parent-line a:hover {
  color: #ffffff;
  border-bottom-color: #ffffff;
}

/* Description */
.dli-subject-description {
  max-width: 780px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.88);
  font-size: 15.5px;
  line-height: 1.72;
}

.dli-subject-description p {
  margin: 0 0 12px;
  color: inherit;
}

.dli-subject-description p:last-child {
  margin-bottom: 0;
}

/* Hero buttons */
.dli-subject-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.dli-subject-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.dli-subject-btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.dli-subject-btn-primary {
  background: #d4af37;
  color: #102033;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
}

.dli-subject-btn-primary:hover {
  background: #f0d36f;
  color: #102033;
}

.dli-subject-btn-light {
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.dli-subject-btn-light:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

/* Hero stats panel */
.dli-subject-hero-panel {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 14px;
  align-content: center;
}

.dli-subject-stat {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(8px);
}

.dli-subject-stat strong {
  display: block;
  margin-bottom: 4px;
  color: #ffffff;
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.dli-subject-stat span {
  display: block;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.35;
}

.dli-subject-stat-wide strong {
  font-size: 24px;
}

/* Section headings */
.dli-subject-section-head {
  margin: 42px 0 20px;
}

.dli-subject-section-head .dli-section-label {
  display: inline-flex;
  margin: 0 0 9px;
  padding: 5px 11px;
  border-radius: 999px;
  background: #eef8f7;
  color: #0f766e;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.07em;
  line-height: 1.2;
  text-transform: uppercase;
}

.dli-subject-section-head h2 {
  margin: 0 0 8px;
  color: #0b2545;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.dli-subject-section-head p {
  max-width: 720px;
  margin: 0;
  color: #526173;
  font-size: 16px;
  line-height: 1.65;
}

.dli-subject-lecture-head {
  margin-top: 44px;
}

/* Topic cards */
.dli-subject-topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.dli-subject-topic-card {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 118px;
  padding: 20px;
  border: 1px solid rgba(15, 35, 65, 0.09);
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfc 100%);
  box-shadow: 0 10px 28px rgba(9, 35, 64, 0.06);
  color: #102033;
  text-decoration: none;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.dli-subject-topic-card:hover {
  transform: translateY(-4px);
  border-color: rgba(15, 118, 110, 0.26);
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(9, 35, 64, 0.11);
  color: #102033;
  text-decoration: none;
}

.dli-subject-topic-icon {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  background: #eef8f7;
  color: #0f766e;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

.dli-subject-topic-content {
  min-width: 0;
}

.dli-subject-topic-content strong {
  display: block;
  margin-bottom: 5px;
  color: #0b2545;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
}

.dli-subject-topic-content small {
  display: block;
  color: #64748b;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.45;
}

.dli-subject-topic-arrow {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #f4f7f8;
  color: #0f766e;
  font-size: 17px;
  font-weight: 800;
  transition: transform 0.18s ease, background 0.18s ease;
}

.dli-subject-topic-card:hover .dli-subject-topic-arrow {
  transform: translateX(3px);
  background: #eef8f7;
}

/* Lecture archive cards below custom header */
body.dli-subject-archive-page article.lecture {
  margin-bottom: 18px;
}

body.dli-subject-archive-page article.lecture .inside-article {
  padding: 26px;
  border: 1px solid rgba(15, 35, 65, 0.08);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(9, 35, 64, 0.06);
}

body.dli-subject-archive-page article.lecture .entry-title {
  margin-bottom: 10px;
  color: #0b2545;
  font-size: 23px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

body.dli-subject-archive-page article.lecture .entry-title a {
  color: #0b2545;
  text-decoration: none;
}

body.dli-subject-archive-page article.lecture .entry-title a:hover {
  color: #0f766e;
}

body.dli-subject-archive-page article.lecture .entry-summary,
body.dli-subject-archive-page article.lecture .entry-content {
  color: #475569;
  font-size: 15.5px;
  line-height: 1.7;
}

body.dli-subject-archive-page article.lecture .entry-meta {
  color: #64748b;
  font-size: 13.5px;
}

/* Read more button */
body.dli-subject-archive-page .read-more,
body.dli-subject-archive-page .read-more-container a,
body.dli-subject-archive-page a.read-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  padding: 9px 15px;
  border-radius: 999px;
  background: #0f766e;
  color: #ffffff !important;
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
}

body.dli-subject-archive-page .read-more:hover,
body.dli-subject-archive-page .read-more-container a:hover,
body.dli-subject-archive-page a.read-more:hover {
  background: #0b2545;
  color: #ffffff !important;
  text-decoration: none;
}

/* Empty archive message */
body.dli-subject-archive-page .no-results .inside-article {
  padding: 28px;
  border: 1px solid rgba(15, 35, 65, 0.08);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(9, 35, 64, 0.06);
}

/* Pagination */
body.dli-subject-archive-page .paging-navigation,
body.dli-subject-archive-page .post-navigation {
  margin-top: 24px;
}

body.dli-subject-archive-page .nav-links a,
body.dli-subject-archive-page .page-numbers {
  border-radius: 999px;
}

/* Tablet */
@media (max-width: 980px) {
  .dli-subject-hero {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 42px 32px;
    border-radius: 28px;
  }

  .dli-subject-hero-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dli-subject-topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile */
@media (max-width: 680px) {
  .dli-subject-page-wrap {
    padding: 14px 12px 8px;
  }

  .dli-subject-hero {
    padding: 32px 22px;
    border-radius: 22px;
  }

  .dli-subject-hero::after {
    right: 18px;
    bottom: 12px;
    font-size: 90px;
  }

  .dli-subject-kicker {
    font-size: 11.5px;
    padding: 6px 11px;
  }

  .dli-subject-hero h1 {
    font-size: clamp(30px, 10vw, 42px);
  }

  .dli-subject-lead {
    font-size: 16px;
    line-height: 1.65;
  }

  .dli-subject-actions {
    gap: 10px;
  }

  .dli-subject-btn {
    width: 100%;
    min-height: 43px;
  }

  .dli-subject-hero-panel {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .dli-subject-stat {
    padding: 15px 16px;
  }

  .dli-subject-stat strong {
    font-size: 27px;
  }

  .dli-subject-section-head {
    margin: 32px 0 16px;
  }

  .dli-subject-section-head h2 {
    font-size: 25px;
  }

  .dli-subject-section-head p {
    font-size: 15.5px;
  }

  .dli-subject-topic-grid {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .dli-subject-topic-card {
    min-height: 104px;
    padding: 17px;
    border-radius: 20px;
    grid-template-columns: 42px minmax(0, 1fr) auto;
  }

  .dli-subject-topic-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    font-size: 22px;
  }

  .dli-subject-topic-content strong {
    font-size: 16px;
  }

  body.dli-subject-archive-page article.lecture .inside-article {
    padding: 22px;
    border-radius: 20px;
  }

  body.dli-subject-archive-page article.lecture .entry-title {
    font-size: 21px;
  }
}

/* Very small mobile */
@media (max-width: 420px) {
  .dli-subject-page-wrap {
    padding-left: 10px;
    padding-right: 10px;
  }

  .dli-subject-hero {
    padding: 28px 18px;
  }

  .dli-subject-topic-card {
    gap: 12px;
    padding: 16px;
  }

  .dli-subject-topic-arrow {
    display: none;
  }
}
