/* =====================================================
   Bhawani Phase 2 — Election Portal
   Purpose: Informational / Brochure
   Tone: Calm • Trustworthy • Civic • Premium
===================================================== */

/* ===== Reset & Base ===== */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: #f6f8fc;
  color: #111827;
  line-height: 1.6;
}

/* ===== Top Bar ===== */
.topbar {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  padding: 18px 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  font-weight: 800;
  font-size: 22px;
  color: #1d4ed8;
}

.brand-title {
  font-weight: 700;
}

.brand-subtitle {
  font-size: 13px;
  color: #6b7280;
}

/* ===== Layout ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 24px 64px;
}

.section {
  margin-bottom: 64px;
}

.section h2 {
  margin-bottom: 12px;
  font-size: 24px;
  letter-spacing: -0.01em;
}

.section p {
  max-width: 820px;
}

/* ===== Grid ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

/* ===== Candidate Card ===== */
.candidate-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.candidate-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.08);
}

/* ===== Candidate Image ===== */
.candidate-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 14px;
  background: #e5e7eb;
}

/* ===== Candidate Name ===== */
.candidate-card h4 {
  margin: 6px 0 4px;
  font-size: 18px;
  font-weight: 700;
}

/* ===== Text Utilities ===== */
.muted {
  color: #6b7280;
}

.small {
  font-size: 13px;
}

/* ===== Candidate Details ===== */
.candidate-details {
  margin-top: 10px;
  font-size: 14px;
}

.candidate-details h5 {
  margin: 12px 0 6px;
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
}

.candidate-details ul {
  padding-left: 18px;
  margin: 8px 0 12px;
}

.candidate-details li {
  margin-bottom: 6px;
}

/* ===== Voting Section ===== */
.voting-section {
  background: #ffffff;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 14px 36px rgba(0,0,0,0.08);
}

.voting-section iframe {
  margin-top: 24px;
  border-radius: 16px;
  border: none;
}

/* ===== Removed Elements ===== */
/* vote-btn intentionally kept minimal or unused */
/* No hover theatrics, no disabled states needed */

/* ===== Responsive Polish ===== */
@media (max-width: 768px) {
  .container {
    padding: 20px 16px 48px;
  }

  .section h2 {
    font-size: 22px;
  }

  .candidate-card {
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .brand-mark {
    font-size: 20px;
  }

  .candidate-card h4 {
    font-size: 17px;
  }
}
