#main-content {
  background-color: #ffffff;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  padding: 2rem;
  margin-bottom: 2rem;
  margin-top: 2rem;
}

.hero-banner {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  border-radius: 12px;
  padding: 3rem 2rem;
  margin-bottom: 2rem;
}

.hero-banner .btn {
  background: white;
  font-weight: 600;
}

.hero-banner .btn:hover {
  background: #f8f9fa;
}

.action-card {
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  border-radius: 12px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.action-card .card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.5rem;
}

.action-card .card-text {
  flex: 1;
  margin-bottom: 1rem;
}

.action-card .btn {
  margin-top: auto; /* pushes button to bottom */
  align-self: center;
}

.action-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.feature-icon {
  color: #007bff;
  margin-bottom: 1rem;
  display: block;
  width: 100%;
  text-align: center;
}

.news-item {
  border-left: 4px solid #007bff;
  padding-left: 1rem;
  margin-bottom: 1rem;
}

/* Ensure statistics cards (green cards) have equal heights */
.stat-card {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Make sure stat card content is properly spaced */
.stat-card i {
  margin-bottom: 0.75rem;
}

.stat-card h3 {
  margin-bottom: 0.5rem;
}

.stat-card p {
  margin-bottom: 0;
  flex: 1;
  display: flex;
  align-items: center;
}

/* Ensure equal heights for statistics row */
.stat-card-container {
  height: 100%;
}

.section-title {
  color: #333;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #007bff;
  padding-bottom: 0.5rem;
}

/* Ensure upcoming elections cards also have equal heights */
.upcoming-elections-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.upcoming-elections-card .card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.upcoming-elections-card .card-text {
  flex: 1;
  margin-bottom: 1rem;
}

.upcoming-elections-card .btn {
  margin-top: auto;
  align-self: flex-start;
}
