/* ==========================================================================
   satsangs_essays.css — Dedicated Stylesheet for Satsangs & Essays Hub
   ========================================================================== */

/* Active Navbar Highlight */
.menuP { 
  color: #fbf9cd !important; 
}

/* 1. Intro Card with Google Content Search */
.essay-hub-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 20px 22px;
  margin-bottom: 24px;
  box-shadow: 0 4px 14px rgba(60, 40, 20, 0.04);
}

.essay-hub-intro {
  font-family: var(--font-serif);
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* Full-Text Google Content Search Form */
.essay-search-form {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.essay-search-input-wrap {
  position: relative;
  flex: 1;
}

.essay-search-input-wrap i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #8c8273;
  font-size: 0.95rem;
}

.essay-search-input {
  width: 100%;
  height: 44px;
  padding: 8px 14px 8px 40px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  border: 1px solid var(--border-warm);
  border-radius: 22px;
  background-color: var(--bg-paper);
  outline: none;
  transition: all 0.15s ease;
}

.essay-search-input:focus {
  border-color: var(--brand-maroon);
  background-color: #ffffff;
}

.essay-search-btn {
  background-color: var(--brand-maroon);
  color: #ffffff !important;
  border: none;
  border-radius: 22px;
  padding: 0 20px;
  font-family: var(--font-sans);
  font-size: 0.90rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease;
}

.essay-search-btn:hover {
  background-color: var(--brand-maroon-dark);
}

/* Legend Note */
.recent-legend-note {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* 2. Section Headers */
.essay-section-header {
  margin: 28px 0 14px 0;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--brand-maroon);
}

.essay-section-title {
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--text-main);
  margin: 0 !important;
  border-bottom: none !important;
  padding-bottom: 0 !important;
}

.essay-section-desc {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 4px 0 0 0;
}

/* 3. Article List Grid (2-Column Desktop, 1-Column Mobile) */
.essay-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 16px;
}

@media (min-width: 650px) {
  .essay-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
}

.essay-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-left: 3.5px solid var(--border-warm);
  border-radius: 8px;
  padding: 10px 14px;
  min-height: 48px;
  text-decoration: none !important;
  color: var(--text-main) !important;
  transition: all 0.15s ease;
}

.essay-card:hover {
  background-color: #fdfcf9;
  border-left-color: var(--brand-maroon);
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(60, 40, 20, 0.05);
}

.essay-card-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.essay-title {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
}

.essay-card:hover .essay-title {
  color: var(--brand-maroon);
}

/* Recently Added Highlight (Red Title + Pill) */
.essay-card.is-recent {
  border-left-color: var(--brand-maroon);
}

.essay-card.is-recent .essay-title {
  color: var(--brand-maroon);
}

.badge-new {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background-color: var(--brand-maroon-soft);
  color: var(--brand-maroon);
  padding: 2px 7px;
  border-radius: 10px;
  flex-shrink: 0;
}

.essay-chevron {
  color: #ccc;
  font-size: 0.72rem;
  margin-left: 6px;
  flex-shrink: 0;
}

.essay-card:hover .essay-chevron {
  color: var(--brand-maroon);
}

/* 4. Collapsible Archive Accordion */
.archive-accordion {
  background-color: var(--header-cream);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  margin-bottom: 28px;
  overflow: hidden;
}

.archive-toggle-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: transparent;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--brand-maroon);
  cursor: pointer;
  outline: none;
}

.archive-toggle-btn:hover {
  background-color: #f3ece0;
}

.archive-content-body {
  padding: 14px 16px;
  border-top: 1px dashed var(--border-color);
}

/* Rotates the archive arrow when open */
.archive-toggle-btn[aria-expanded="true"] .fa-chevron-down {
  transform: rotate(180deg);
}

html[lang="hi"] .essay-hub-intro,
html[lang="hi"] .essay-section-title,
html[lang="hi"] .essay-section-desc,
html[lang="hi"] .essay-title,
html[lang="hi"] .recent-legend-note {
}

.archive-toggle-btn .fa-chevron-down {
  transition: transform 0.25s ease;
}

.essay-chevron {
  color: #9e9382; /* Darker, more accessible on mobile */
  font-size: 0.78rem;
  margin-left: 6px;
  flex-shrink: 0;
}