/* ==========================================================================
   VM THOTTAM ASEEL GROUPS - SANGAM HISTORY & LITERATURE
   Strict modular rules: <= 300 lines
   Ancient Tamil Parchment card with historical tabs & quotes
   ========================================================================== */

.history-section-wrapper {
  margin-top: 1.0rem;
}

.history-parchment-card {
  background: var(--parchment-bg);
  color: var(--parchment-text);
  border: 2px solid var(--parchment-border);
  border-radius: var(--radius-lg);
  padding: clamp(1.2rem, 2.5vw, 2.0rem);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.45), inset 0 0 50px rgba(216, 194, 157, 0.45);
  position: relative;
  overflow: hidden;
}

.history-parchment-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #aa820a, #d4af37, #8b0000, #d4af37, #aa820a);
}

.history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.0rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px dashed var(--parchment-border);
}

.history-scroll-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(139, 0, 0, 0.12);
  border: 1px solid rgba(139, 0, 0, 0.3);
  color: #8b0000;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.25rem 0.8rem;
  border-radius: var(--radius-full);
}

.history-grid-pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 1.0rem;
}

.history-pillar-box {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(170, 130, 10, 0.28);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.pillar-img-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--parchment-border);
  margin-bottom: 0.85rem;
  background: #2a2015;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.pillar-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
  transition: transform 0.4s ease;
}

.history-pillar-box:hover .pillar-img-frame img {
  transform: scale(1.03);
}

.pillar-title {
  font-family: var(--font-tamil);
  font-size: 1.05rem;
  font-weight: 800;
  color: #631212;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.4rem;
}

.pillar-desc {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #382e21;
}

.history-verse-quote {
  background: rgba(139, 0, 0, 0.06);
  border-left: 4px solid #8b0000;
  padding: 0.65rem 0.9rem;
  margin: 0.6rem 0;
  font-style: italic;
  font-weight: 600;
  color: #4a1515;
  font-size: 0.86rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

@media (max-width: 860px) {
  .history-grid-pillars {
    grid-template-columns: 1fr;
    gap: 1.0rem;
  }
}
