/* ═══════════════════════════════════════════════════════════════
   Chaliha History — Magazine-Style Article Page
   ═══════════════════════════════════════════════════════════════ */

/* PAGE WRAPPER — Constrained width for content (hero stays full width) */
.history-page {
  max-width: 1200px;
  margin: 0 auto;
}

/* PAGE HERO — Full width, teal gradient, Assamese pattern overlay */
.history-hero {
  position: relative;
  background: linear-gradient(135deg, #0D6E6E 0%, #1a5f4a 40%, #0D3B1A 100%);
  color: #fff;
  padding: 5rem 1.5rem;
  text-align: center;
  overflow: hidden;
}

.history-hero-pattern {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M50 50c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10-10-4.477-10-10zm0-50c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10-10-4.477-10-10zM10 50c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10-10-4.477-10-10zm0-50C10 4.477 14.477 0 20 0s10 4.477 10 10-4.477 10-10 10S10 14.477 10 10z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.8;
}

.history-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.history-title {
  font-family: 'Noto Serif Bengali', Georgia, serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
  line-height: 1.3;
}

.history-subtitle {
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 1.15rem;
  opacity: 0.95;
  margin: 0;
  letter-spacing: 0.05em;
}

/* TWO COLUMN LAYOUT — 70% content + 30% sidebar */
.history-layout {
  display: grid;
  grid-template-columns: 7fr 3fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
  align-items: start;
}

/* LEFT CONTENT COLUMN — 70% equivalent, max 720px for readability */
.history-content {
  max-width: 720px;
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 1.125rem; /* 18px */
  line-height: 1.9;
  color: #2D2D2D;
}

/* BUG 5: History page text readability — larger, clearer typography */
.history-content p {
  font-size: 1.05rem;
  line-height: 1.9;
  margin-bottom: 1.5rem;
  color: #2D2D2D;
}

.history-content h2 {
  font-size: 1.8rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: #0D3B1A;
  font-family: 'Noto Serif Bengali', serif;
}

/* SECTION STYLES */
.history-section {
  margin-bottom: 2.5rem;
  position: relative;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--gold, #C9A84C);
  color: var(--brown-dark, #1A0F07);
  font-family: 'Noto Serif Bengali', Georgia, serif;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.section-heading {
  font-family: 'Noto Serif Bengali', Georgia, serif;
  font-size: 1.75rem; /* 28px */
  font-weight: 700;
  color: #0D3B1A;
  margin: 0 0 1rem;
  line-height: 1.3;
}

/* DROP CAP */
.drop-cap {
  margin: 0 0 1.5rem;
}

.drop-cap::first-letter {
  float: left;
  font-family: 'Noto Serif Bengali', Georgia, serif;
  font-size: 4rem;
  line-height: 1;
  padding-right: 0.5rem;
  padding-top: 0.15rem;
  color: #0D3B1A;
}

.history-section p {
  margin: 0 0 1.5rem;
}

.history-section p:last-of-type { margin-bottom: 0; }

/* PULL QUOTE */
.pull-quote {
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--gold, #C9A84C);
  background: rgba(201, 168, 76, 0.08);
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.7;
  color: #2D2D2D;
}

/* HIGHLIGHT BOXES */
.highlight-box {
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  border-radius: 8px;
  border: 1px solid;
}

.highlight-box strong {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.highlight-box p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
}

.highlight-gold {
  background: linear-gradient(135deg, #FFFDF5 0%, #F5EDD5 100%);
  border-color: rgba(201, 168, 76, 0.5);
}

.highlight-gold strong { color: #6b5a2a; }

.highlight-green {
  background: linear-gradient(135deg, #F0F9F4 0%, #E8F5EC 100%);
  border-color: rgba(13, 59, 26, 0.3);
}

.highlight-green strong { color: #0D3B1A; }

.highlight-cream {
  background: #FDFAF4;
  border-color: rgba(44, 26, 14, 0.2);
}

.highlight-cream strong { color: #2C1A0E; }

/* SECTION DIVIDER — decorative gold with leaf center */
.section-divider {
  border: none;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--gold, #C9A84C) 45%, var(--gold, #C9A84C) 55%, transparent 100%);
  margin: 2.5rem 0;
  position: relative;
}

.section-divider::after {
  content: '🌿';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: var(--cream, #FDFAF4);
  padding: 0 0.5rem;
  font-size: 1rem;
}

/* PROFILE GRID — Notable Persons */
.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.profile-card {
  padding: 1.5rem;
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(13, 59, 26, 0.15);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  text-align: center;
  transition: box-shadow 0.2s, transform 0.2s;
}

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

.profile-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0D6E6E 0%, #0D3B1A 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-family: 'Noto Serif Bengali', Georgia, serif;
  font-weight: 700;
  font-size: 1.1rem;
}

.profile-card h3 {
  font-family: 'Noto Serif Bengali', Georgia, serif;
  font-size: 1.1rem;
  color: #0D3B1A;
  margin: 0 0 0.25rem;
}

.profile-dates {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted, #5A6B52);
  margin-bottom: 0.75rem;
}

.profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.profile-badges .badge {
  padding: 0.2rem 0.5rem;
  background: rgba(201, 168, 76, 0.2);
  color: #6b5a2a;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.profile-card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  text-align: left;
}

.section-note {
  margin-top: 1rem !important;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-muted, #5A6B52);
}

/* EXTRA & SUMMARY SECTIONS */
.history-extra .section-heading,
.history-summary .section-heading {
  font-size: 1.4rem;
}

.source-note {
  margin-top: 1rem !important;
  padding: 1rem;
  background: rgba(95, 99, 104, 0.08);
  border-radius: 8px;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-muted, #5A6B52);
}

/* RIGHT STICKY SIDEBAR */
.history-sidebar {
  position: sticky;
  top: 100px;
  min-width: 260px;
}

.sidebar-box {
  padding: 1.5rem;
  border-radius: 10px;
  margin-bottom: 1.5rem;
  border: 2px solid var(--gold, #C9A84C);
  background: #fff;
}

.sidebar-box h3 {
  font-family: 'Noto Serif Bengali', Georgia, serif;
  font-size: 1.1rem;
  color: #0D3B1A;
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(201, 168, 76, 0.4);
}

/* TOC NAV — scroll spy active = gold */
.toc-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toc-link {
  display: block;
  padding: 0.5rem 0;
  font-size: 0.95rem;
  color: var(--text-dark, #1A2412);
  text-decoration: none;
  border-left: 3px solid transparent;
  padding-left: 0.75rem;
  transition: all 0.2s;
}

.toc-link:hover {
  color: #0D3B1A;
}

.toc-link.active {
  color: var(--gold, #C9A84C);
  border-left-color: var(--gold, #C9A84C);
  font-weight: 600;
}

/* KEY FACTS BOX */
.key-facts ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.key-facts li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  font-size: 0.95rem;
  color: var(--text-dark, #1A2412);
}

.fact-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .history-layout {
    grid-template-columns: 1fr;
  }
  .history-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    min-width: 0;
  }
}

@media (max-width: 768px) {
  .history-hero {
    padding: 3rem 1rem;
  }
  .history-title {
    font-size: 1.5rem;
  }
  .history-content {
    font-size: 1rem;
  }
  .section-heading {
    font-size: 1.4rem;
  }
  .drop-cap::first-letter {
    font-size: 3rem;
  }
  .profile-grid {
    grid-template-columns: 1fr;
  }
  .history-sidebar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .history-layout {
    padding: 1.5rem 1rem 3rem;
  }
  .pull-quote {
    font-size: 1.05rem;
  }
}
