:root {
  /* Modern Color Palette - Blue Theme */
  --primary-color: #1e40af;
  /* Strong Corporate Blue */
  --primary-light: #3b82f6;
  /* Brighter Blue for accents */
  --secondary-color: #1e3a8a;
  /* Darker Blue */
  --accent-color: #fbbf24;
  /* Warm Gold for highlights */

  /* Backgrounds */
  --background-color: #F0EEE9;
  /* Cloud Dancer - Warm Off-White */
  --card-bg: #ffffff;
  --header-bg: rgba(255, 255, 255, 0.95);

  /* Text */
  --text-main: #1e293b;
  /* Slate 800 */
  --text-light: #64748b;
  /* Slate 500 */
  --white: #ffffff;

  /* UI Elements */
  --card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --border-radius: 16px;

  /* Spacing */
  --container-width: 1200px;
  --section-padding: 5rem 1rem;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--background-color);
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1,
h2,
h3 {
  line-height: 1.2;
  font-weight: 800;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  text-align: center;
  color: var(--white);
  text-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--section-color, var(--primary-color));
  margin-bottom: 0.5rem;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header p {
  color: var(--text-light);
  font-size: 1.15rem;
  font-weight: 500;
}

/* Layout */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
header {
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary-color);
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--primary-light);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.9), rgba(37, 99, 235, 0.8)), url('https://images.unsplash.com/photo-1541872703-74c5963631df?q=80&w=2070&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 8rem 1rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-subtitle {
  font-size: 1.25rem;
  opacity: 0.95;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: var(--white);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.15);
}

/* Voting Info */
.voting-info {
  background: var(--white);
  padding: var(--section-padding);
  border-radius: var(--border-radius);
  margin: -3rem 1rem 4rem 1rem;
  position: relative;
  box-shadow: var(--card-shadow);
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
}

/* For full width voting info container wrapper */
section.voting-info-wrapper {
  padding: 0 1rem;
}

.voting-info h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.info-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  text-align: center;
}

.info-item {
  padding: 2rem;
  background: #f8fafc;
  border-radius: var(--border-radius);
  border: 1px solid #e2e8f0;
  transition: transform 0.2s;
}

.info-item:hover {
  transform: translateY(-5px);
  border-color: var(--primary-light);
}

.info-item h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

/* Candidate Section */
.candidates-section {
  padding: var(--section-padding);
}

.section-female {
  background: white;
  position: relative;
}

/* Curve separator or distinction for female section if needed, 
   but user asked for modern blue theme. 
   We will keep it clean but maybe change header color. */
.section-female h2 {
  color: #db2777;
  /* Pinkish red for distinction within blue theme */
  --section-color: #db2777;
}

.candidate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.candidate-card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(255, 255, 255, 0.5);
  display: flex;
  flex-direction: column;
  /* Vertical cards are more modern for profiles usually */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.candidate-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.candidate-img {
  width: 100%;
  height: 240px;
  background: #e2e8f0;
  position: relative;
  overflow: hidden;
}

.candidate-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.5s;
}

.candidate-card:hover .candidate-img img {
  transform: scale(1.05);
}

.candidate-number {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--primary-color);
  color: var(--white);
  font-weight: 800;
  font-size: 1.2rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.section-female .candidate-number {
  background: #db2777;
}

.candidate-info {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.candidate-info h3 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
  color: var(--text-main);
}

.birth-year {
  font-size: 0.9rem;
  color: var(--primary-light);
  font-weight: 600;
  margin-bottom: 1rem;
  display: inline-block;
  background: #eff6ff;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  align-self: flex-start;
}

.info-row {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  color: var(--text-main);
  display: flex;
  gap: 0.5rem;
}

.info-row strong {
  min-width: 40px;
  color: var(--text-light);
}

.pledge-box {
  margin-top: 1.5rem;
  padding: 1rem;
  background-color: #f8fafc;
  border-radius: 12px;
  font-size: 0.95rem;
  border-left: 4px solid var(--primary-color);
}

.section-female .pledge-box {
  border-left-color: #db2777;
}

.pledge-box strong {
  display: block;
  font-size: 0.85rem;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.section-female .pledge-box strong {
  color: #db2777;
}

/* Footer */
footer {
  background: #1e293b;
  color: white;
  padding: 4rem 1rem;
  text-align: center;
}

footer p {
  opacity: 0.7;
  margin-bottom: 0.5rem;
}

/* Mobile Optimization */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .logo {
    font-size: 1rem;
  }

  h1 {
    font-size: 2.2rem;
  }

  .voting-info {
    padding: 2rem 1rem;
    margin-top: -2rem;
  }

  .candidate-card {
    /* Keep vertical layout on mobile, relying on flex-direction: column from desktop styles */
  }

  /* If user prefers horizontal cards on mobile to save vertical space: */
  /*
  .candidate-card {
      flex-direction: row;
      align-items: center;
  }
  .candidate-img {
      width: 100px;
      height: 100%;
      min-height: 150px;
  }
  */
}