/* CSS Variables for easy theme management */
:root {
  --primary-font: 'Inter', sans-serif;
  --dark-bg: #111827;
  --light-bg: #F9FAFB;
  --header-text: #F9FAFB;
  --body-text: #374151;
  --primary-accent: #3B82F6;
  --primary-accent-hover: #2563EB;
  --secondary-accent: #1D4ED8; /* Darker blue for leadership headings */
  --warning-accent: #EF4444;
  --border-color: #E5E7EB;
  --card-bg: #FFFFFF;
}

/* Basic Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--primary-font);
  background-color: var(--light-bg);
  color: var(--body-text);
  line-height: 1.7;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header & Footer */
.site-header, .site-footer {
  background-color: var(--dark-bg);
  color: var(--header-text);
  padding: 1.5rem 0;
}
.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo { display: flex; align-items: center; gap: 1rem; }
.logo img { width: 50px; height: auto; }
.logo h1 { font-size: 1.5rem; }
nav { display: flex; gap: 1.5rem; }
nav a { color: var(--header-text); text-decoration: none; font-weight: 700; }
.site-footer { text-align: center; font-size: 0.9rem; }
.site-footer p { margin-bottom: 0.5rem; }
.site-footer a { color: var(--primary-accent); }

/* Hero Section */
.hero {
  text-align: center;
  padding: 5rem 1rem;
  background-color: var(--card-bg);
}
.hero h2 {
  font-size: 3rem;
  font-weight: 900;
  color: var(--dark-bg);
  margin-bottom: 1rem;
}
.hero .subtitle {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto 2.5rem;
}
.hero-cta {
    font-size: 1.25rem;
    padding: 1.25rem 2.5rem;
}

/* Risks Section */
.risks-section { padding: 4rem 1rem; text-align: center; background-color: var(--card-bg); }
.risks-section h2 { font-size: 2.5rem; margin-bottom: 2rem; }
.risk-list { list-style: none; max-width: 700px; margin: 0 auto; text-align: left; }
.risk-list li {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
}
.risk-list .icon { font-size: 1.5rem; margin-right: 1rem; }

/* Timeline Section Styles */
.timeline-section {
    padding: 4rem 1rem;
}
.timeline-section h2, .join-movement-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.timeline-intro, .section-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
}
.timeline {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}
.timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background-color: var(--border-color);
    top: 0;
    bottom: 0;
    left: 20px;
}
.timeline-item {
    padding: 1rem 0 2rem 60px;
    position: relative;
}
.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--card-bg);
    border: 3px solid var(--primary-accent);
    border-radius: 50%;
    top: 18px;
    left: 11.5px;
    z-index: 1;
}
.timeline-content {
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}
.timeline-content h3 {
    font-size: 1.5rem;
    color: var(--dark-bg);
    margin-bottom: 0.5rem;
}
.timeline-content p {
    margin-bottom: 0.5rem;
}
.current-era .you-are-here {
    background-color: var(--warning-accent);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 1rem;
}
.current-era::after {
    background-color: var(--warning-accent);
    border-color: var(--warning-accent);
}

/* Quote Section */
.quote-section {
  background-color: var(--dark-bg);
  color: var(--header-text);
  padding: 4rem 1rem;
  text-align: center;
}
.quote-section figure { max-width: 700px; margin: 0 auto; }
.quote-section blockquote { font-size: 1.75rem; font-style: italic; line-height: 1.4; margin-bottom: 1rem; }
.quote-section figcaption { font-size: 1.1rem; font-weight: 700; }

/* Manifesto Section */
.manifesto-section { padding: 4rem 1rem; }
.manifesto-section h2 { text-align: center; font-size: 2.5rem; margin-bottom: 1rem; }
.manifesto-intro { text-align: center; max-width: 800px; margin: 0 auto 3rem; font-size: 1.1rem; }
.manifesto-section h3 { text-align: center; font-size: 1.75rem; margin-bottom: 2rem; }
.principles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

/* Accordion Card Styles (for Manifesto and Leadership) */
.principle-card, .department-card {
  background-color: var(--card-bg);
  padding: 0;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  transition: border-color 0.2s;
}
.principle-card[open], .department-card[open] {
    border-color: var(--primary-accent);
}
.principle-card summary, .department-card summary {
  list-style: none;
  cursor: pointer;
  padding: 2rem;
}
.principle-card summary::-webkit-details-marker, .department-card summary::-webkit-details-marker {
  display: none;
}
.summary-content h4 { font-size: 1.2rem; color: var(--primary-accent); margin-bottom: 0.5rem; }
.summary-content p { margin: 0; }
.details-content {
  padding: 0 2rem 2rem 2rem;
  border-top: 1px solid var(--border-color);
  margin-top: -1rem;
}
.details-content ul {
    padding-left: 1.5rem;
    margin-top: 1rem;
}
.details-content p {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Leadership Section Styles */
.leadership-section {
    margin-bottom: 4rem;
}
.leadership-section h3 {
    text-align: center;
    font-size: 1.75rem;
    margin-bottom: 1rem;
}
.leadership-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2rem;
}
.leadership-board-wrapper {
    margin-bottom: 2rem;
}
.leadership-board {
    background-color: var(--dark-bg);
    color: var(--header-text);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    text-align: center;
}
.leadership-board h4 {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1rem;
}
.department-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}
.department-card summary {
    padding: 1.5rem;
}
.department-card .details-content {
    padding: 0 1.5rem 1.5rem 1.5rem;
    margin-top: -0.75rem;
}
.department-card h5 {
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--secondary-accent);
}
.department-card p {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Precedent Section */
.precedent-cards {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0;
}
.precedent-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    color: var(--body-text);
    transition: transform 0.2s ease-out, border-color 0.2s ease-out;
}
.precedent-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-accent);
}
.precedent-conclusion { text-align: center; font-size: 1.1rem; font-weight: 700; }

/* Join the Movement Section Styles */
.join-movement-section {
    padding: 4rem 1rem;
    background-color: var(--dark-bg);
    color: var(--header-text);
}
.join-movement-section h2 {
    color: white;
}
.join-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
.join-column:first-child {
    grid-column: span 1;
}
.join-column:last-child {
    grid-column: span 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.join-card {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
}
.join-card h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.join-card p {
    flex-grow: 1;
    margin-bottom: 1.5rem;
}
.join-card.primary-action {
    background-color: var(--card-bg);
    color: var(--body-text);
}
.join-card.primary-action h3 {
    color: var(--dark-bg);
}
.cta-button {
  background: var(--primary-accent);
  color: white;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  transition: background-color 0.2s;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}
.cta-button:hover { background-color: var(--primary-accent-hover); }
.cta-button.secondary {
    background-color: transparent;
    border: 2px solid var(--primary-accent);
    color: var(--primary-accent);
}
.cta-button.secondary:hover {
    background-color: var(--primary-accent);
    color: white;
}
.social-share {
    display: flex;
    gap: 1rem;
}
.social-button {
    flex-grow: 1;
    text-align: center;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    color: var(--header-text);
    transition: background-color 0.2s;
}
.social-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    align-items: center;
    justify-content: center;
}
.modal-content {
    position: relative;
    background-color: #fefefe;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 540px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.close-button {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 25px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}
.close-button:hover,
.close-button:focus {
    color: black;
}

/* Responsive Design */
@media (max-width: 768px) {
  .site-header .container { flex-direction: column; gap: 1rem; }
  .hero h2 { font-size: 2.5rem; }
  .precedent-cards { flex-direction: column; align-items: center; }
  .timeline::after { left: 10px; }
  .timeline-item { padding-left: 45px; }
  .timeline-item::after { left: 1.5px; }
  .join-grid { grid-template-columns: 1fr; } /* Stack columns on mobile */
}
