:root {
  --primary: #b61f24;
  --secondary: #ffca00;
  --background: #f5f7fb;
  --white: #ffffff;
  --text: #1f2937;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  background: var(--background);
  color: var(--text);
  line-height: 1.7;
}

/* PARTY HERO SECTION */
.party-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #8b1317 100%);
  padding: 60px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-bottom: 5px solid var(--secondary);
}

.party-hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  animation: fadeInDown 0.8s ease;
}

.party-logo {
  width: 140px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.party-logo:hover {
  transform: scale(1.05);
}

.party-title {
  color: var(--secondary);
  font-size: 2.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.4);
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 600px) {
  .party-title {
    font-size: 1.8rem;
  }
}

/* HERO */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  background: var(--background);
}

.hero-content {
  max-width: 1200px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 80px;
}

.candidate-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
  border: 10px solid var(--secondary);
  box-shadow: var(--shadow);
}

.candidate-details h1 {
  color: var(--primary);
  font-size: 3.5rem;
  margin-bottom: 10px;
}

.candidate-details h2 {
  color: var(--primary);
  margin-bottom: 10px;
  font-weight: 600;
}

.candidate-details h3 {
  color: var(--secondary);
  font-size: 2rem;
  margin-bottom: 20px;
}

.candidate-details h4 {
  color: var(--text);
  font-size: 2rem;
  margin-bottom: 20px;
}

.candidate-details p {
  max-width: 600px;
  margin-bottom: 25px;
  font-size: 1.05rem;
}

/* BUTTON */

.btn {
  display: inline-block;
  padding: 14px 28px;
  background: var(--primary);
  color: var(--white);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: 0.3s ease;
}

.btn:hover {
  background: var(--secondary);
  color: var(--primary);
  transform: translateY(-2px);
}

/* COMMON SECTIONS */

.section {
  padding: 90px 20px;
}

.container {
  max-width: 1100px;
  margin: auto;
}

.section h2 {
  text-align: center;
  color: var(--primary);
  margin-bottom: 30px;
  font-size: 2.2rem;
}

.section p {
  color: var(--text);
}

/* ALTERNATE SECTIONS */

.bg-light {
  background: #ffffff;
}

/* TIMELINE */

.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
}

.timeline-item {
  background: #ffffff;
  padding: 25px;
  border-radius: 15px;
  box-shadow: var(--shadow);
  border-top: 5px solid var(--secondary);
}

.timeline-item h4 {
  color: var(--primary);
  margin-bottom: 10px;
}

/* ACHIEVEMENTS */

.achievement-list {
  max-width: 700px;
  margin: auto;
  padding-left: 20px;
}

.achievement-list li {
  margin-bottom: 15px;
  color: var(--text);
}

/* GALLERY */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: 0.3s ease;
}

.gallery img:hover {
  transform: scale(1.03);
}

/* CONTACT */

.contact-section {
  background: var(--primary);
  color: white;
}

.contact-section h2 {
  color: var(--secondary);
}

.contact-section p {
  text-align: center;
  color: white;
}

/* FOOTER */

footer {
  background: var(--primary);
  color: white;
  text-align: center;
  padding: 25px;
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .candidate-image img {
    width: 280px;
    height: 280px;
  }

  .candidate-details h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 600px) {
  .candidate-details h1 {
    font-size: 2rem;
  }

  .section {
    padding: 70px 20px;
  }
}
