/* Hero Section */
.hero-title {
  font-size: clamp(3rem, 6vw + 1rem, 5.5rem);
  color: var(--color-text);
  line-height: 1.1;
}

.hero-subtitle {
  font-size: clamp(1.25rem, 2vw + 1rem, 1.75rem);
  color: var(--color-text-light);
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.625;
}

/* Dashboard Section */
.bg-secondary-fade {
  background-color: rgba(229, 224, 216, 0.3);
}

.card {
  background-color: white;
  border: 1px solid var(--color-border);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.chart-container {
  position: relative;
  width: 100%;
  max-width: 600px;
  height: 300px;
  max-height: 400px;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 768px) {
  .chart-container {
    height: 350px;
  }
}

.insight-box {
  background-color: var(--color-bg);
  color: var(--color-text-light);
  font-size: 0.875rem;
  font-style: italic;
  padding: 0.75rem;
  margin-top: 1rem;
}
.relative{
  position: relative;
}
/* Timeline Styling */
.timeline-line {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background-color: var(--color-border);
  z-index: 0;
  top: 0;
}

.timeline-year { color: var(--color-accent); font-weight: 700; font-size: 1.25rem; }
.timeline-title { font-weight: 700; font-size: 1.125rem; margin-bottom: 0.25rem; }
.timeline-desc { font-size: 0.875rem; color: var(--color-text-light); line-height: 1.6; }

.timeline-node {
  width: 1rem;
  height: 1rem;
  background-color: #2D2A26;
  border-radius: 50%;
  border: 4px solid #F5F2EB;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  z-index: 10;
  transition: all 0.3s ease;
}
.timeline-node:hover {
  transform: scale(1.1);
  background-color: var(--color-accent);
}

/* Debate Section */
.bg-dark { background-color: var(--color-dark-bg); color: #F5F2EB; }
.text-light { color: #F5F2EB; }

.toggle-btn {
  padding: 0.5rem 1.5rem;
  border: 1px solid;
  transition: all 0.3s;
}
.toggle-btn.active {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: white;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
.toggle-btn.inactive {
  background-color: transparent;
  border-color: #6b7280;
  color: #d1d5db;
}
.toggle-btn.inactive:hover {
  border-color: white;
  color: white;
}

.debate-card {
  background-color: #3D3A36;
  padding: 1.5rem;
  border-radius: 0.25rem;
  border-left: 4px solid var(--color-accent);
  animation: fadeIn 0.5s ease-in-out;
}
.debate-card-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.75rem; color: white; }
.debate-card-text { color: #d1d5db; line-height: 1.625; }

.btn-debate {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.875rem;
  transition: all 0.3s;
}

.btn-primary {
  background-color: var(--color-accent);
  color: white;
}
.btn-primary:hover {
  background-color: #8c6a5d; /* Darker shade of accent */
}

.btn-disabled {
  background-color: #4b5563;
  color: #9ca3af;
  cursor: not-allowed;
  opacity: 0.5;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Utilities specific to homepage layout logic (e.g. timeline structure helper) */
.w-5-12 { width: 41.666667%; }
.w-2-12 { width: 16.666667%; }
.pr-8 { padding-right: 2rem; }
.pl-8 { padding-left: 2rem; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.flex-row-reverse { flex-direction: row-reverse; }

/* Mobile Timeline Overrides */
@media (max-width: 767px) {
  /* Move Vertical Line to Left */
  .timeline-line {
    left: 2rem; 
    transform: translateX(-50%);
  }
  
  /* Force all rows to be standard LTR, overriding JS logic */
  #timeline-container > div {
    flex-direction: row !important;
  }

  /* Text Container (Child 1): Move to Right */
  #timeline-container > div > div:nth-child(1) {
    order: 2;
    width: calc(100% - 4rem) !important;
    text-align: left !important;
    padding-left: 1rem !important;
    padding-right: 0 !important;
  }

  /* Node Container (Child 2): Move to Left */
  #timeline-container > div > div:nth-child(2) {
    order: 1;
    width: 4rem !important; /* Anchors the column width */
    /* justify-center is already applied in HTML */
  }

  /* Spacer (Child 3): Hide */
  #timeline-container > div > div:nth-child(3) {
    display: none !important;
  }
}
