/* =========================================================
   MRSGREN — Harvard PLL Design System
   Clean white background, crimson accents, professional
   sans-serif typography, course card grid, minimal design.
   Matches pll.harvard.edu layout and visual language.
   ========================================================= */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@300;400;500;600;700&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
  --pll-crimson: #A51C30;
  --pll-crimson-dark: #8C1826;
  --pll-crimson-light: #C73B4D;
  --pll-crimson-bg: rgba(165,28,48,0.06);
  --pll-ink: #1b1b1b;
  --pll-text: #1b1b1b;
  --pll-text-secondary: #4a4a4a;
  --pll-text-muted: #808285;
  --pll-bg: #ffffff;
  --pll-bg-light: #f7f7f7;
  --pll-bg-surface: #f2f2f2;
  --pll-border: #ddd;
  --pll-border-light: #e8e8e8;
  --pll-link: #A51C30;
  --pll-link-hover: #8C1826;
  --pll-footer-bg: #1e1e1e;
  --pll-footer-text: #b0b0b0;
  --pll-success: #2d8a4e;
  --pll-success-bg: #dafbe1;
  --pll-error: #cf222e;
  --pll-error-bg: #ffebe9;
  --pll-radius: 4px;
  --pll-max-w: 1200px;
  --pll-header-h: 64px;
  --pll-font: 'Source Sans 3', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* ---------- 1. Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--pll-font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--pll-text);
  background: var(--pll-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--pll-link);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--pll-link-hover);
  text-decoration: underline;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--pll-font);
  font-weight: 700;
  color: var(--pll-text);
  line-height: 1.3;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; margin-bottom: 1rem; }
h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }

p {
  margin-bottom: 1rem;
  color: var(--pll-text-secondary);
}

/* ---------- 2. Header ---------- */
.site-header {
  background: var(--pll-bg);
  padding: 0 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--pll-border);
}

.header-inner {
  max-width: var(--pll-max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--pll-header-h);
}

.logo {
  font-family: var(--pll-font);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--pll-crimson);
  text-decoration: none;
  letter-spacing: 0.5px;
}

.logo:hover {
  color: var(--pll-crimson-dark);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: var(--pll-text);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.25rem 0;
  position: relative;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--pll-crimson);
  text-decoration: none;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--pll-crimson);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--pll-text);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 767px) {
  .hamburger {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--pll-header-h);
    left: 0;
    right: 0;
    background: var(--pll-bg);
    flex-direction: column;
    padding: 1rem 1.5rem;
    gap: 0;
    border-top: 1px solid var(--pll-border);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--pll-border-light);
    width: 100%;
  }

  .nav-links a::after {
    display: none;
  }
}

/* ---------- 3. Breadcrumb ---------- */
.breadcrumb {
  max-width: var(--pll-max-w);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  font-size: 0.82rem;
  color: var(--pll-text-muted);
  border-bottom: 1px solid var(--pll-border-light);
}

.breadcrumb a {
  color: var(--pll-link);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span {
  margin: 0 0.4rem;
  color: var(--pll-text-muted);
}

/* ---------- 4. Hero Section (Homepage) ---------- */
.hero {
  background: var(--pll-crimson);
  padding: clamp(3rem, 6vw, 5rem) 1.5rem;
  text-align: center;
}

.hero-inner {
  max-width: 680px;
  margin: 0 auto;
}

.hero h1 {
  font-weight: 700;
  color: #fff;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  margin-bottom: 1rem;
}

.hero p {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
  margin-bottom: 1.75rem;
}

.hero .btn-primary {
  display: inline-block;
  background: #fff;
  color: var(--pll-crimson);
  padding: 0.75rem 2rem;
  border-radius: var(--pll-radius);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

.hero .btn-primary:hover {
  background: #f2f2f2;
  color: var(--pll-crimson-dark);
  text-decoration: none;
  transform: translateY(-1px);
}

/* ---------- 5. Page Layout (Sidebar + Content) ---------- */
.page-wrapper {
  max-width: var(--pll-max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nih-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2.5rem;
  padding-top: 2rem;
  padding-bottom: 4rem;
}

@media (max-width: 767px) {
  .nih-layout {
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: 0;
  }
}

/* ---------- 6. Sidebar ---------- */
.sidebar {
  position: sticky;
  top: calc(var(--pll-header-h) + 16px);
  align-self: start;
  background: var(--pll-bg);
  padding: 1.5rem 0;
}

.sidebar-nav a {
  display: block;
  padding: 0.5rem 1.25rem;
  font-size: 0.88rem;
  color: var(--pll-text-secondary);
  border-left: 3px solid transparent;
  text-decoration: none;
  transition: all 0.2s;
}

.sidebar-nav a:hover {
  color: var(--pll-crimson);
  background: var(--pll-crimson-bg);
  text-decoration: none;
}

.sidebar-nav a.active {
  color: var(--pll-crimson);
  font-weight: 600;
  border-left-color: var(--pll-crimson);
}

.sidebar-cta {
  margin: 1.5rem 1.25rem 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--pll-border);
}

.sidebar-cta .btn-cta {
  display: block;
  text-align: center;
  background: var(--pll-crimson);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: var(--pll-radius);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.2s;
}

.sidebar-cta .btn-cta:hover {
  background: var(--pll-crimson-dark);
  color: #fff;
  text-decoration: none;
}

.sidebar-section {
  padding: 1rem 1.25rem 0;
}

.sidebar-section p {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--pll-text-muted);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sidebar-section a {
  display: block;
  font-size: 0.88rem;
  color: var(--pll-link);
  padding: 0.25rem 0;
  text-decoration: none;
}

.sidebar-section a:hover {
  text-decoration: underline;
}

/* Mobile sidebar toggle */
.sidebar-toggle {
  display: none;
  width: 100%;
  background: var(--pll-bg-light);
  border: 1px solid var(--pll-border);
  padding: 0.75rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--pll-text);
  cursor: pointer;
  text-align: left;
  margin-top: 1rem;
  border-radius: var(--pll-radius);
}

.sidebar-toggle::after {
  content: '\25BC';
  float: right;
  font-size: 0.7rem;
  line-height: 1.5;
  transition: transform 0.3s;
}

.sidebar-toggle.open::after {
  transform: rotate(180deg);
}

@media (max-width: 767px) {
  .sidebar {
    position: static;
    background: none;
    padding: 0;
    display: none;
  }

  .sidebar.open {
    display: block;
    background: var(--pll-bg-light);
    border: 1px solid var(--pll-border);
    border-top: none;
    padding: 0.75rem 0;
    border-radius: 0 0 var(--pll-radius) var(--pll-radius);
  }

  .sidebar-toggle {
    display: block;
  }
}

/* ---------- 7. Content Area ---------- */
.content {
  min-width: 0;
  padding-bottom: 2rem;
}

.content section {
  margin-bottom: 3rem;
}

.content h1 {
  margin-bottom: 0.5rem;
  color: var(--pll-text);
}

.content h2 {
  margin-top: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--pll-crimson);
  margin-bottom: 1.25rem;
}

.subtitle {
  font-size: 1.1rem;
  color: var(--pll-text-muted);
  margin-bottom: 1.5rem;
}

/* ---------- 8. Product Cards ---------- */
.section-heading {
  max-width: var(--pll-max-w);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 0;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: var(--pll-max-w);
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

@media (max-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .cards-grid {
    grid-template-columns: 1fr;
    padding: 1.5rem 1.5rem 2rem;
  }
}

.card {
  background: var(--pll-bg);
  border: 1px solid var(--pll-border);
  border-radius: var(--pll-radius);
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.2s;
}

.card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.card-thumb {
  height: 160px;
  background: var(--pll-bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--pll-border-light);
  font-size: 2.5rem;
}

.card-body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.card-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--pll-crimson);
  margin-bottom: 0.5rem;
}

.card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--pll-text);
}

.card h3 a {
  color: var(--pll-text);
  text-decoration: none;
}

.card h3 a:hover {
  color: var(--pll-crimson);
  text-decoration: none;
}

.card p {
  font-size: 0.9rem;
  color: var(--pll-text-secondary);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.card .price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--pll-text);
  margin-bottom: 1rem;
}

.card .btn-link {
  display: inline-block;
  color: var(--pll-crimson);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s;
}

.card .btn-link:hover {
  color: var(--pll-crimson-dark);
  text-decoration: underline;
}

/* ---------- 9. Buttons ---------- */
.btn-primary {
  display: inline-block;
  background: var(--pll-crimson);
  color: #fff;
  padding: 0.75rem 2rem;
  border-radius: var(--pll-radius);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--pll-crimson-dark);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-link {
  color: var(--pll-crimson);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}

.btn-link:hover {
  color: var(--pll-crimson-dark);
  text-decoration: underline;
}

/* ---------- 10. Price Display ---------- */
.price-display {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--pll-text);
  margin-bottom: 1rem;
}

.price-display .original {
  text-decoration: line-through;
  color: var(--pll-text-muted);
  font-size: 1rem;
  font-weight: 400;
  margin-left: 0.5rem;
}

/* ---------- 11. Description List ---------- */
.desc-list dt {
  font-weight: 600;
  color: var(--pll-text);
  margin-bottom: 0.25rem;
}

.desc-list dd {
  color: var(--pll-text-secondary);
  margin-bottom: 1rem;
  font-size: 0.92rem;
}

/* ---------- 12. Module Content Blocks ---------- */
.module-block {
  border: 1px solid var(--pll-border);
  border-radius: var(--pll-radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
  background: var(--pll-bg);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.module-block:hover {
  border-color: var(--pll-crimson);
  box-shadow: 0 2px 8px rgba(165,28,48,0.08);
}

.module-block h3 {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.module-block p {
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

.module-block .btn-link {
  display: inline-block;
  color: var(--pll-crimson);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}

.module-block .btn-link:hover {
  color: var(--pll-crimson-dark);
  text-decoration: underline;
}

.module-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--pll-crimson);
  color: #fff;
  padding: 2px 8px;
  border-radius: 3px;
  margin-left: 0.5rem;
  vertical-align: middle;
}

/* ---------- 13. FAQ Accordion ---------- */
.faq-item {
  border: 1px solid var(--pll-border);
  border-radius: var(--pll-radius);
  margin-bottom: 0.5rem;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1rem 1.25rem;
  background: var(--pll-bg);
  border: none;
  cursor: pointer;
  font-family: var(--pll-font);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--pll-text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}

.faq-question:hover {
  background: var(--pll-bg-light);
}

.faq-question::after {
  content: '+';
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--pll-text-muted);
  flex-shrink: 0;
  margin-left: 1rem;
  transition: transform 0.3s;
}

.faq-item.open .faq-question::after {
  content: '\2212';
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer-inner {
  padding: 0 1.25rem 1rem;
  font-size: 0.92rem;
  color: var(--pll-text-secondary);
  line-height: 1.6;
}

/* ---------- 14. Quiz Styles ---------- */
.quiz-section {
  margin-bottom: 3rem;
}

.quiz-progress {
  font-size: 0.85rem;
  color: var(--pll-text-muted);
  margin-bottom: 1rem;
  font-weight: 500;
}

.quiz-question {
  display: none;
  border: 1px solid var(--pll-border);
  border-radius: var(--pll-radius);
  padding: 1.5rem;
  background: var(--pll-bg);
}

.quiz-question.active {
  display: block;
}

.quiz-question h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--pll-text);
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.quiz-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.75rem 1rem;
  border: 1px solid var(--pll-border);
  border-radius: var(--pll-radius);
  background: var(--pll-bg);
  cursor: pointer;
  font-family: var(--pll-font);
  font-size: 0.92rem;
  color: var(--pll-text);
  transition: border-color 0.2s, background 0.2s;
}

.quiz-option:hover:not(.correct):not(.incorrect):not(.disabled) {
  border-color: var(--pll-crimson);
  background: var(--pll-crimson-bg);
}

.quiz-option.correct {
  border-color: var(--pll-success);
  background: var(--pll-success-bg);
  color: #1a7f37;
}

.quiz-option.incorrect {
  border-color: var(--pll-error);
  background: var(--pll-error-bg);
  color: var(--pll-error);
}

.quiz-option.disabled {
  cursor: default;
  opacity: 0.7;
}

.quiz-explanation {
  display: none;
  background: var(--pll-bg-light);
  border: 1px solid var(--pll-border);
  border-radius: var(--pll-radius);
  padding: 1rem;
  margin-top: 1rem;
  font-size: 0.88rem;
  color: var(--pll-text-secondary);
  line-height: 1.6;
}

.quiz-explanation.show {
  display: block;
}

.quiz-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  gap: 0.75rem;
}

.quiz-nav button {
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--pll-border);
  border-radius: var(--pll-radius);
  background: var(--pll-bg);
  cursor: pointer;
  font-family: var(--pll-font);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--pll-text);
  transition: border-color 0.2s;
}

.quiz-nav button:hover {
  border-color: var(--pll-crimson);
}

.quiz-nav button:disabled {
  opacity: 0.4;
  cursor: default;
}

.quiz-score {
  display: none;
  text-align: center;
  padding: 2rem;
  border: 1px solid var(--pll-border);
  border-radius: var(--pll-radius);
  background: var(--pll-bg-light);
}

.quiz-score.show {
  display: block;
}

.quiz-score .score-value {
  font-family: var(--pll-font);
  font-weight: 700;
  font-size: 2.5rem;
  color: var(--pll-text);
  margin-bottom: 0.5rem;
}

.quiz-score p {
  color: var(--pll-text-secondary);
  margin-bottom: 1rem;
}

.quiz-score button {
  padding: 0.6rem 1.5rem;
  border: 1px solid var(--pll-crimson);
  border-radius: var(--pll-radius);
  background: var(--pll-crimson);
  color: #fff;
  cursor: pointer;
  font-family: var(--pll-font);
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.2s;
}

.quiz-score button:hover {
  background: var(--pll-crimson-dark);
  border-color: var(--pll-crimson-dark);
}

.study-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--pll-link);
  text-decoration: none;
}

.study-link:hover {
  text-decoration: underline;
}

/* ---------- 15. Checklist Styles ---------- */
.checklist-score {
  font-size: 1rem;
  font-weight: 600;
  color: var(--pll-text);
  margin-bottom: 1.5rem;
  padding: 0.75rem 1rem;
  background: var(--pll-bg-light);
  border: 1px solid var(--pll-border);
  border-radius: var(--pll-radius);
}

.checklist-item {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--pll-border);
  border-radius: var(--pll-radius);
  margin-bottom: 0.75rem;
  background: var(--pll-bg);
  transition: border-color 0.2s;
  cursor: pointer;
}

.checklist-item:hover {
  border-color: var(--pll-crimson);
}

.checklist-item.checked {
  background: #f6fef9;
  border-color: var(--pll-success);
}

.checklist-item input[type="checkbox"] {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: var(--pll-crimson);
}

.checklist-item .item-content {
  flex: 1;
}

.checklist-item .item-number {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--pll-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.2rem;
}

.checklist-item .item-title {
  font-weight: 600;
  color: var(--pll-text);
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}

.checklist-item .item-desc {
  font-size: 0.88rem;
  color: var(--pll-text-secondary);
  line-height: 1.6;
  margin-bottom: 0;
}

/* ---------- 16. Free Resources Link Section ---------- */
.free-links {
  max-width: var(--pll-max-w);
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  border-top: 1px solid var(--pll-border-light);
}

.free-links h2 {
  font-size: 1.15rem;
  margin-bottom: 1rem;
  border-bottom: none;
  padding-bottom: 0;
}

.free-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.free-links a {
  font-weight: 500;
  font-size: 0.95rem;
}

/* ---------- 17. Footer ---------- */
.site-footer {
  background: var(--pll-footer-bg);
  color: var(--pll-footer-text);
  text-align: center;
  padding: 2.5rem 1.5rem;
  font-size: 0.85rem;
}

.site-footer p {
  color: var(--pll-footer-text);
}

.site-footer a {
  color: var(--pll-footer-text);
  text-decoration: none;
  margin: 0 0.75rem;
  transition: color 0.2s;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: none;
}

.footer-links {
  margin-top: 0.5rem;
}

/* ---------- 18. Study Layout (for science/finance pages) ---------- */
.pll-study-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2.5rem;
  max-width: var(--pll-max-w);
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

@media (max-width: 767px) {
  .pll-study-layout {
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: 0;
  }
}

.pll-study-sidebar {
  position: sticky;
  top: calc(var(--pll-header-h) + 16px);
  align-self: start;
  padding: 1.5rem 0;
}

.pll-study-sidebar nav a {
  display: block;
  padding: 0.5rem 1.25rem;
  font-size: 0.88rem;
  color: var(--pll-text-secondary);
  border-left: 3px solid transparent;
  text-decoration: none;
  transition: all 0.2s;
}

.pll-study-sidebar nav a:hover {
  color: var(--pll-crimson);
  background: var(--pll-crimson-bg);
  text-decoration: none;
}

.pll-study-sidebar nav a.active {
  color: var(--pll-crimson);
  font-weight: 600;
  border-left-color: var(--pll-crimson);
}

.pll-study-main {
  min-width: 0;
}

/* Study hero */
.pll-study-hero {
  background: var(--pll-crimson);
  color: #fff;
  padding: clamp(2.5rem, 5vw, 4rem) 1.5rem;
}

.pll-study-hero .container {
  max-width: var(--pll-max-w);
  margin: 0 auto;
}

.pll-study-hero h1 {
  color: #fff;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.pll-study-hero p {
  color: rgba(255,255,255,0.85);
  max-width: 600px;
  margin-bottom: 0;
}

.pll-study-hero .badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border-radius: 99px;
  padding: 4px 14px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

/* Study section */
.pll-study-section {
  margin-bottom: 2.5rem;
}

.pll-study-section h2 {
  border-bottom: 2px solid var(--pll-crimson);
  padding-bottom: 0.5rem;
  margin-bottom: 1.25rem;
}

.pll-study-section h3 {
  color: var(--pll-text);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

/* Study objectives */
.pll-study-objectives {
  background: var(--pll-crimson-bg);
  border-left: 4px solid var(--pll-crimson);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--pll-radius) var(--pll-radius) 0;
  margin-bottom: 1.5rem;
}

.pll-study-objectives h4 {
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--pll-crimson);
  margin-bottom: 0.5rem;
}

.pll-study-objectives ul {
  list-style: disc;
  padding-left: 1.25rem;
}

.pll-study-objectives li {
  font-size: 0.9rem;
  color: var(--pll-text-secondary);
  margin-bottom: 0.35rem;
}

/* Study tip */
.pll-study-tip {
  background: #fef9e7;
  border-left: 4px solid #f0c000;
  padding: 1rem 1.25rem;
  border-radius: 0 var(--pll-radius) var(--pll-radius) 0;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

.pll-study-tip strong {
  color: var(--pll-text);
}

/* Study table */
.pll-study-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

.pll-study-table th {
  background: var(--pll-bg-surface);
  color: var(--pll-text);
  padding: 10px 14px;
  text-align: left;
  font-weight: 700;
  border: 1px solid var(--pll-border);
}

.pll-study-table td {
  padding: 10px 14px;
  border: 1px solid var(--pll-border);
  color: var(--pll-text-secondary);
}

.pll-study-table tr:nth-child(even) td {
  background: var(--pll-bg-light);
}

/* Inline bio-table compat */
.bio-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

.bio-table th {
  background: var(--pll-bg-surface);
  color: var(--pll-text);
  padding: 10px 14px;
  text-align: left;
  font-weight: 700;
  border: 1px solid var(--pll-border);
}

.bio-table td {
  padding: 10px 14px;
  border: 1px solid var(--pll-border);
  color: var(--pll-text-secondary);
}

.bio-table tr:nth-child(even) td {
  background: var(--pll-bg-light);
}

/* Knowledge check */
.pll-knowledge-check {
  background: var(--pll-bg-light);
  border: 1px solid var(--pll-border);
  border-radius: var(--pll-radius);
  padding: 1.5rem;
  margin: 2rem 0;
}

.pll-knowledge-check h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--pll-crimson);
  margin-bottom: 1rem;
}

.pll-kc-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.75rem 1rem;
  border: 1px solid var(--pll-border);
  border-radius: var(--pll-radius);
  background: var(--pll-bg);
  cursor: pointer;
  font-family: var(--pll-font);
  font-size: 0.9rem;
  color: var(--pll-text);
  margin-bottom: 0.5rem;
  transition: border-color 0.2s, background 0.2s;
}

.pll-kc-btn:hover {
  border-color: var(--pll-crimson);
  background: var(--pll-crimson-bg);
}

.pll-kc-btn.correct {
  border-color: var(--pll-success);
  background: var(--pll-success-bg);
  color: #1a7f37;
}

.pll-kc-btn.incorrect {
  border-color: var(--pll-error);
  background: var(--pll-error-bg);
  color: var(--pll-error);
}

/* Knowledge check old compat (from design-system pages) */
.knowledge-check {
  background: var(--pll-bg-light);
  border: 1px solid var(--pll-border);
  border-radius: var(--pll-radius);
  padding: 1.5rem;
  margin: 2rem 0;
}

.knowledge-check h4,
.knowledge-check .kc-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--pll-crimson);
  margin-bottom: 1rem;
}

.kc-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.75rem 1rem;
  border: 1px solid var(--pll-border);
  border-radius: var(--pll-radius);
  background: var(--pll-bg);
  cursor: pointer;
  font-family: var(--pll-font);
  font-size: 0.9rem;
  color: var(--pll-text);
  margin-bottom: 0.5rem;
  transition: border-color 0.2s, background 0.2s;
}

.kc-btn:hover {
  border-color: var(--pll-crimson);
  background: var(--pll-crimson-bg);
}

.kc-btn.correct {
  border-color: var(--pll-success);
  background: var(--pll-success-bg);
  color: #1a7f37;
}

.kc-btn.incorrect {
  border-color: var(--pll-error);
  background: var(--pll-error-bg);
  color: var(--pll-error);
}

.kc-feedback {
  display: none;
  padding: 0.75rem 1rem;
  margin-top: 0.5rem;
  border-radius: var(--pll-radius);
  font-size: 0.88rem;
  line-height: 1.6;
}

.kc-feedback.show {
  display: block;
}

.kc-feedback.correct {
  background: var(--pll-success-bg);
  border: 1px solid var(--pll-success);
  color: #1a7f37;
}

.kc-feedback.incorrect {
  background: var(--pll-error-bg);
  border: 1px solid var(--pll-error);
  color: var(--pll-error);
}

/* Study bridge / CTA between sections */
.pll-study-bridge {
  text-align: center;
  padding: 2rem 0;
  border-top: 1px solid var(--pll-border-light);
  margin-top: 2rem;
}

.pll-study-bridge p {
  font-size: 0.95rem;
  color: var(--pll-text-secondary);
  margin-bottom: 1rem;
}

/* ---------- 19. Legal/Article Pages ---------- */
.pll-legal-wrapper {
  max-width: 760px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.pll-legal-wrapper h1 {
  margin-bottom: 0.5rem;
}

.pll-legal-meta {
  color: var(--pll-text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.pll-legal-wrapper h2 {
  margin-top: 2rem;
  font-size: 1.25rem;
  border-bottom: none;
  padding-bottom: 0;
}

.pll-legal-wrapper p,
.pll-legal-wrapper li {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--pll-text-secondary);
}

.pll-legal-wrapper ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.pll-legal-wrapper ul li {
  margin-bottom: 0.35rem;
}

/* Article layout */
.pll-article-wrapper {
  max-width: 760px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.pll-article-wrapper h1 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.pll-article-meta {
  color: var(--pll-text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--pll-border-light);
}

.pll-article-wrapper h2 {
  margin-top: 2rem;
  font-size: 1.25rem;
  border-bottom: none;
  padding-bottom: 0;
}

.pll-article-wrapper p {
  font-size: 0.95rem;
  line-height: 1.7;
}

.pll-article-wrapper blockquote {
  border-left: 4px solid var(--pll-crimson);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--pll-bg-light);
  border-radius: 0 var(--pll-radius) var(--pll-radius) 0;
}

.pll-article-wrapper blockquote p {
  margin-bottom: 0;
  font-style: italic;
  color: var(--pll-text);
}

/* ---------- 20. Learn Objectives (compat) ---------- */
.learn-obj {
  background: var(--pll-crimson-bg);
  border-left: 4px solid var(--pll-crimson);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--pll-radius) var(--pll-radius) 0;
  margin-bottom: 1.5rem;
}

.learn-obj h4 {
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--pll-crimson);
  margin-bottom: 0.5rem;
}

.learn-obj ul {
  list-style: disc;
  padding-left: 1.25rem;
}

.learn-obj li {
  font-size: 0.9rem;
  color: var(--pll-text-secondary);
  margin-bottom: 0.35rem;
}

/* Study tip compat */
.study-tip {
  background: #fef9e7;
  border-left: 4px solid #f0c000;
  padding: 1rem 1.25rem;
  border-radius: 0 var(--pll-radius) var(--pll-radius) 0;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

.study-tip strong {
  color: var(--pll-text);
}

/* ---------- 21. Reveal animation (compat with ds-reveal) ---------- */
.pll-reveal,
.ds-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.pll-reveal.visible,
.ds-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 22. Utility ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.container {
  max-width: var(--pll-max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Hide gov-banner if it still exists in HTML */
.gov-banner {
  display: none;
}

/* ---------- 23. Responsive ---------- */
@media (max-width: 767px) {
  .btn-primary {
    display: block;
    width: 100%;
    text-align: center;
  }

  .content h1 {
    font-size: 1.5rem;
  }

  .content h2 {
    font-size: 1.25rem;
  }

  .pll-study-sidebar {
    position: static;
    padding: 0;
    display: none;
  }

  .pll-study-sidebar.open {
    display: block;
    background: var(--pll-bg-light);
    border: 1px solid var(--pll-border);
    padding: 0.75rem 0;
    border-radius: var(--pll-radius);
  }
}

/* Stat grid compat (crypto page) */
.crypto-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.crypto-stat {
  background: var(--pll-crimson-bg);
  border: 1px solid rgba(165,28,48,0.15);
  border-radius: var(--pll-radius);
  padding: 20px;
  text-align: center;
}

.crypto-stat__num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--pll-crimson);
  display: block;
}

.crypto-stat__label {
  font-size: 0.8rem;
  color: var(--pll-text-muted);
  margin-top: 4px;
}

/* ==========================================================
   24. Harvard PLL Homepage Layout
   Exact replica of pll.harvard.edu/subject/science
   ========================================================== */

/* --- PLL Header (dark navy bar) --- */
.pll-header {
  background: #1e1e3f;
  position: sticky;
  top: 0;
  z-index: 200;
  height: 72px;
}

.pll-header-inner {
  max-width: var(--pll-max-w);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
}

.pll-menu-btn,
.pll-search-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background 0.2s;
}

.pll-menu-btn:hover,
.pll-search-btn:hover {
  background: rgba(255,255,255,0.1);
}

.pll-logo-link {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-decoration: none;
}

.pll-logo-text {
  font-family: var(--pll-font);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1.5px;
}

.pll-logo-link:hover {
  text-decoration: none;
}

.pll-logo-link:hover .pll-logo-text {
  color: rgba(255,255,255,0.85);
}

/* --- Nav Drawer --- */
.pll-nav-drawer {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: #1e1e3f;
  z-index: 190;
  overflow-y: auto;
}

.pll-nav-drawer.open {
  display: block;
}

.pll-nav-drawer-inner {
  max-width: var(--pll-max-w);
  margin: 0 auto;
  padding: 1rem 1.5rem 2rem;
}

.pll-nav-drawer-inner a {
  display: block;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 500;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  text-decoration: none;
  transition: color 0.2s;
}

.pll-nav-drawer-inner a:hover {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
}

/* --- Search Overlay --- */
.pll-search-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(30,30,63,0.97);
  z-index: 300;
  align-items: flex-start;
  justify-content: center;
  padding-top: 20vh;
}

.pll-search-overlay.open {
  display: flex;
}

.pll-search-overlay-inner {
  width: 90%;
  max-width: 600px;
  position: relative;
}

.pll-search-input {
  width: 100%;
  padding: 1.25rem 3rem 1.25rem 1.25rem;
  font-family: var(--pll-font);
  font-size: 1.2rem;
  border: none;
  border-radius: 4px;
  outline: none;
  background: #fff;
  color: var(--pll-text);
}

.pll-search-input::placeholder {
  color: var(--pll-text-muted);
}

.pll-search-close {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--pll-text-muted);
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}

.pll-search-close:hover {
  color: var(--pll-text);
}

/* --- Page Title Section --- */
.pll-page-title {
  background: #fff;
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid var(--pll-border-light);
}

.pll-page-title-inner {
  max-width: var(--pll-max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.pll-page-title h1 {
  font-size: 2.25rem;
  font-weight: 300;
  color: var(--pll-text);
  font-family: var(--pll-font);
}

/* --- Filter Bar --- */
.pll-filter-bar {
  background: #1e1e3f;
  border-bottom: none;
  padding: 1.5rem 0;
}

.pll-filter-bar-inner {
  max-width: var(--pll-max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  justify-content: center;
  align-items: center;
}

.pll-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.75rem 1.75rem;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-family: var(--pll-font);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  cursor: pointer;
  transition: color 0.2s;
}

.pll-filter-btn:hover {
  color: rgba(255,255,255,0.7);
}

.pll-filter-btn svg {
  flex-shrink: 0;
}

.pll-filter-divider {
  width: 1px;
  height: 20px;
  background: rgba(255,255,255,0.25);
}

/* --- Results Bar --- */
.pll-results-bar {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--pll-border-light);
}

.pll-results-bar-inner {
  max-width: var(--pll-max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.pll-results-count {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--pll-text);
}

.pll-active-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border: 1px solid var(--pll-border);
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--pll-text);
  background: #fff;
}

.pll-filter-remove {
  background: none;
  border: none;
  font-size: 1rem;
  color: var(--pll-text-muted);
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.pll-filter-remove:hover {
  color: var(--pll-text);
}

.pll-clear-filters {
  color: var(--pll-crimson);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}

.pll-clear-filters:hover {
  text-decoration: underline;
}

/* --- Course Cards Grid (PLL style) --- */
.pll-courses {
  max-width: var(--pll-max-w);
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

.pll-courses-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.pll-courses-grid--landing {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {
  .pll-courses-grid--landing {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .pll-courses-grid {
    grid-template-columns: 1fr;
  }
  .pll-courses-grid--landing {
    grid-template-columns: 1fr;
  }
}

.pll-card {
  display: block;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 0;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.3s, border-color 0.3s;
}

.pll-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.12);
  border-color: #ccc;
  text-decoration: none;
  color: inherit;
}

.pll-card-img {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.pll-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pll-card-emoji {
  font-size: 4rem;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

.pll-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.pll-card-category {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--pll-text-secondary);
  margin-bottom: 0.5rem;
}

.pll-card-category svg {
  color: var(--pll-text-muted);
}

.pll-card-modality {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--pll-text-secondary);
  margin-bottom: 0.75rem;
}

.pll-card-modality svg {
  color: var(--pll-text-muted);
}

.pll-card-title {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--pll-crimson);
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.pll-card:hover .pll-card-title {
  text-decoration: underline;
}

.pll-card-desc {
  font-size: 0.92rem;
  color: var(--pll-text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.pll-card-meta {
  list-style: disc;
  padding-left: 1.25rem;
  margin: 0;
}

.pll-card-meta li {
  font-size: 0.88rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2px;
  color: var(--pll-text-secondary);
  margin-bottom: 0.2rem;
}

.pll-card-meta li:first-child {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--pll-text);
}

/* --- Pagination --- */
.pll-pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 0 3rem;
}

.pll-page-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--pll-border);
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--pll-text);
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s;
}

.pll-page-num.active {
  border-color: var(--pll-crimson);
  color: var(--pll-crimson);
}

.pll-page-num:hover {
  border-color: var(--pll-crimson);
}

/* --- Newsletter Section --- */
.pll-newsletter {
  background: var(--pll-crimson);
  padding: 3.5rem 1.5rem;
  text-align: center;
}

.pll-newsletter-inner {
  max-width: 500px;
  margin: 0 auto;
}

.pll-newsletter h2 {
  color: #fff;
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.pll-newsletter p {
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.pll-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

.pll-newsletter-input {
  width: 100%;
  padding: 1rem 1.25rem;
  font-family: var(--pll-font);
  font-size: 1rem;
  border: none;
  border-radius: 4px;
  outline: none;
  background: #fff;
  color: var(--pll-text);
}

.pll-newsletter-input::placeholder {
  color: var(--pll-text-muted);
}

.pll-newsletter-btn {
  padding: 0.75rem 2.5rem;
  background: #1e1e3f;
  color: #fff;
  font-family: var(--pll-font);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}

.pll-newsletter-btn:hover {
  background: #15152e;
}

/* --- PLL Footer --- */
.pll-footer {
  background: #1e1e1e;
  padding: 2.5rem 1.5rem 2rem;
}

.pll-footer-inner {
  max-width: var(--pll-max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.pll-footer-left {
  display: flex;
  align-items: center;
}

.pll-footer-donate-btn {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  border: 2px solid #fff;
  color: #fff;
  font-family: var(--pll-font);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.pll-footer-donate-btn:hover {
  background: #fff;
  color: #1e1e1e;
  text-decoration: none;
}

.pll-footer-right {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pll-footer-right a {
  color: #b0b0b0;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.2s;
}

.pll-footer-right a:hover {
  color: #fff;
  text-decoration: none;
}

.pll-footer-bottom {
  max-width: var(--pll-max-w);
  margin: 0 auto;
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.pll-footer-brand {
  font-family: var(--pll-font);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
}

.pll-footer-tagline {
  font-size: 0.8rem;
  color: #808080;
}

/* --- PLL Homepage Responsive --- */
@media (max-width: 600px) {
  .pll-page-title h1 {
    font-size: 1.5rem;
  }

  .pll-filter-bar-inner {
    flex-wrap: wrap;
    gap: 0;
    justify-content: center;
  }

  .pll-filter-btn {
    padding: 0.6rem 1rem;
    font-size: 0.75rem;
  }

  .pll-filter-divider {
    display: none;
  }

  .pll-results-count {
    font-size: 1.15rem;
  }

  .pll-card-img {
    height: 160px;
  }

  .pll-card-title {
    font-size: 1.1rem;
  }

  .pll-newsletter h2 {
    font-size: 1.35rem;
  }

  .pll-footer-inner {
    flex-direction: column;
  }
}
