/* RESET & GLOBAL */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f0f2f5;
  color: #1a202c;
}

.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main-content {
  flex: 1;
}

.footer {
  margin-top: auto;
  background: #2c5282;
  color: white;
  padding: 30px;
  text-align: center;
}

.social-links a {
  color: white;
  text-decoration: none;
  margin: 0 10px;
  font-weight: bold;
}

/* NAVBAR */
.navbar {
  background-color: #2c5282;
  color: white;
  padding: 15px 30px;
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
}

.menu-toggle {
  display: none;
  font-size: 1.8rem;
  background: none;
  color: white;
  border: none;
  cursor: pointer;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links li {
  display: inline;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
}

/* INTRO SECTION */
.intro {
  padding: 60px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.intro-text {
  flex: 1;
  min-width: 280px;
  max-width: 600px;
}

.intro-text h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #2c5282;
}

.intro-text p {
  font-size: 1.1rem;
  line-height: 1.7;
}

.learn-more {
  text-align: center;
  margin-top: 30px;
}

.learn-more button {
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: bold;
  background: #2c5282;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.intro-image {
  flex: 1;
  min-width: 280px;
  display: flex;
  justify-content: center;
  padding: 20px;
}

.intro-image img {
  max-width: 100%;
  height: auto;
  border: 4px solid #2c5282;
}

/* HIDDEN SECTION */
.reveal-section {
  display: none;
}

/* QUOTE SECTION */
.quote-section {
  padding: 50px 30px;
  background: #ffffff;
  border-top: 1px solid #ccc;
  animation: fadeIn 0.8s ease forwards;
}

.quote-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
}

.quote-box {
  flex: 1;
  min-width: 250px;
  max-width: 300px;
  background: #f7fafc;
  padding: 20px;
  border-left: 5px solid #2c5282;
}

.quote-box blockquote {
  font-style: italic;
  font-size: 1rem;
  margin-bottom: 10px;
}

.quote-box .author {
  text-align: right;
  font-weight: bold;
  font-size: 0.9rem;
  color: #4a5568;
}

/* STATS SECTION */
.stats-section {
  padding: 50px 30px;
  background: #e2e8f0;
  animation: fadeIn 0.8s ease forwards;
}

.stats-section h2 {
  text-align: center;
  margin-bottom: 30px;
}

.stats-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  text-align: center;
}

.stat-box {
  flex: 1;
  min-width: 200px;
  padding: 20px;
}

.stat-box h3 {
  font-size: 2rem;
  color: #2c5282;
}

/* WHAT IS SECTION */
.what-is-section {
  padding: 40px 30px;
  background: #fff;
  animation: fadeIn 0.8s ease forwards;
}

.what-is-section h2 {
  text-align: center;
  margin-bottom: 20px;
}

.what-is-section p {
  text-align: center;
  max-width: 700px;
  margin: auto;
  font-size: 1.1rem;
}

/* PETITION SECTION */
.petition-cta {
  background: #2c5282;
  color: white;
  text-align: center;
  padding: 60px 30px;
}

.petition-cta h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.petition-cta p {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.petition-button {
  background: white;
  color: #2c5282;
  padding: 12px 28px;
  font-weight: bold;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.3s;
}

.petition-button:hover {
  background: #e2e8f0;
}

/* PAGE CARDS */
.page-cards {
  padding: 60px 30px;
  background-color: #fff;
  text-align: center;
}

.page-cards h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  color: #2c5282;
}

.card-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}

.nav-card {
  background: #f9fafb;
  width: 300px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

.nav-card img {
  width: 100%;
  height: auto;
}

.card-content {
  padding: 20px;
  flex-grow: 1;
}

.card-content h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #2d3748;
}

.card-content p {
  font-size: 0.95rem;
  color: #4a5568;
}

.card-footer {
  background: #2c5282;
  color: white;
  text-align: center;
  padding: 12px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s;
}

.card-footer:hover {
  background: #1a365d;
}

/* PAGE SECTIONS */
.page-section {
  padding: 50px 30px;
  max-width: 800px;
  margin: auto;
}

.page-section h2 {
  color: #2c5282;
  margin-bottom: 15px;
}

.page-section p, .page-section li {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #2d3748;
}

.page-section ul, .page-section ol {
  padding-left: 20px;
  margin-top: 10px;
}

.page-section.highlight {
  background: #edf2f7;
  border-left: 5px solid #2c5282;
  padding: 50px 30px;
}

.page-header {
  text-align: center;
  padding: 60px 20px 30px;
  background: #edf2f7;
  color: #2c5282;
}

.page-header h2 {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.page-header p {
  font-size: 1.1rem;
  color: #4a5568;
}

/* GRID SECTIONS */
.grid-sections {
  background: #f7fafc;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  padding: 60px 30px;
  max-width: 1200px;
  margin: auto;
  border-top: 1px solid #e2e8f0;
}

.info-card {
  position: relative;
  background: #fff;
  padding: 30px 30px 20px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
  transition: transform 0.2s ease;
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}

.info-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 6px;
  width: 100%;
  background: #2c5282;
}

.info-card h3 {
  margin-bottom: 15px;
  color: #2c5282;
  font-size: 1.3rem;
}

.info-card p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #2d3748;
}

.info-card ul {
  margin-top: 10px;
  padding-left: 20px;
}

.info-card ul li {
  margin-bottom: 8px;
  color: #2d3748;
}

.info-card.wide {
  grid-column: span 2;
}

/* TABLE */
.district-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  font-size: 0.95rem;
}

.district-table th,
.district-table td {
  border: 1px solid #cbd5e0;
  padding: 12px;
  text-align: left;
}

.district-table th {
  background-color: #edf2f7;
  color: #2d3748;
}

/* ANIMATION */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* RESPONSIVE (MOBILE) */
@media (max-width: 768px) {
  .intro {
    flex-direction: column;
    text-align: center;
  }

  .intro-image {
    margin-top: 30px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #2c5282;
    padding: 1rem;
    margin-top: 1rem;
  }

  .nav-links li {
    text-align: center;
    padding: 0.5rem 0;
  }

  .nav-links.show {
    display: flex;
  }

  .card-container,
  .quote-container,
  .stats-container {
    flex-direction: column;
    align-items: center;
  }

  .info-card.wide {
    grid-column: span 1;
  }
  
  .grid-sections {
    grid-template-columns: 1fr !important;
  }
}
