/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header/Hero Section */
.hero-section {
  background: linear-gradient(135deg, #ce2029 0%, #a01a20 100%);
  color: white;
  padding: 60px 0;
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 40px;
  align-items: center;
  text-align: center;
}

.candidate-photo {
  text-align: center;
}

.photo {
  width: 100%;
  max-width: 250px;
  height: 300px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.photo:hover {
  transform: translateY(-5px);
}

.candidate-info h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.candidate-info h2 {
  font-size: 1.8rem;
  font-weight: 300;
  margin-bottom: 30px;
  color: #e8f4fd;
}

.blurb {
  font-size: 1.1rem;
  line-height: 1.8;
  background: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  max-width: 600px;
}

/* Statement Section */
.statement-section {
  padding: 80px 0;
  background: white;
}

.statement-section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: #2c3e50;
  position: relative;
}

.statement-section h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(135deg, #ce2029 0%, #a01a20 100%);
  border-radius: 2px;
}

.statement-content {
  max-width: 800px;
  margin: 0 auto;
}

.statement-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 30px;
  text-align: left;
}

.statement-text p {
  margin-bottom: 20px;
}

.statement-text p:last-child {
  margin-bottom: 0;
}

.statement-text ul {
  margin: 20px 0;
  padding-left: 20px;
}

.statement-text li {
  margin-bottom: 8px;
  color: #666;
}

.statement-text strong {
  color: #2c3e50;
  font-weight: 700;
}

.statement-text.truncated {
  max-height: 400px;
  overflow: hidden;
  position: relative;
}

.statement-text.truncated::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50px;
  background: linear-gradient(transparent, white);
}

.read-more-btn {
  background: linear-gradient(135deg, #ce2029 0%, #a01a20 100%);
  color: white;
  border: none;
  padding: 12px 25px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(206, 32, 41, 0.4);
  margin-top: 10px;
}

.read-more-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(206, 32, 41, 0.6);
}

/* Contact Section */
.contact-section {
  padding: 80px 0;
  background: #f8f9fa;
}

.contact-section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: #2c3e50;
  position: relative;
}

.contact-section h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(135deg, #ce2029 0%, #a01a20 100%);
  border-radius: 2px;
}

.contact-content {
  display: flex;
  justify-content: center;
  align-items: start;
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  max-width: 800px;
}

.contact-item h3 {
  font-size: 1.3rem;
  color: #2c3e50;
  margin-bottom: 10px;
}

.contact-item p {
  font-size: 1.1rem;
  color: #666;
  line-height: 1.6;
}

.contact-item {
  text-align: center;
  padding: 20px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Footer */
.footer {
  background: #2c3e50;
  color: white;
  padding: 40px 0;
}

.footer-content {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-info p {
  margin-bottom: 5px;
  color: #bdc3c7;
}

.social-links {
  display: flex;
  gap: 20px;
}

.social-link {
  color: #bdc3c7;
  text-decoration: none;
  transition: color 0.3s ease;
}

.social-link:hover {
  color: #ce2029;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }

  .hero-content {
    gap: 30px;
    text-align: center;
  }

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

  .candidate-info h2 {
    font-size: 1.4rem;
  }

  .blurb {
    font-size: 1.1rem;
    padding: 20px;
  }

  .statement-section h2,
  .contact-section h2 {
    font-size: 2rem;
  }

  .contact-content {
    justify-content: center;
  }

  .contact-info {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: 40px 0;
  }

  .candidate-info h1 {
    font-size: 2rem;
  }

  .candidate-info h2 {
    font-size: 1.2rem;
  }

  .blurb {
    font-size: 1rem;
    padding: 15px;
  }

  .statement-section,
  .contact-section {
    padding: 60px 0;
  }

  .statement-text.truncated {
    max-height: 500px;
  }

  .statement-section h2,
  .contact-section h2 {
    font-size: 1.8rem;
  }

  .statement-text {
    font-size: 1rem;
  }

  .statement-text p {
    margin-bottom: 15px;
  }

  .statement-text ul {
    margin: 15px 0;
    padding-left: 15px;
  }

  .statement-text li {
    margin-bottom: 6px;
  }

  .read-more-btn {
    padding: 14px 28px;
    font-size: 1rem;
    margin-top: 15px;
    width: 100%;
    max-width: 200px;
    margin-left: auto;
    margin-right: auto;
    display: block;
  }

  .photo {
    max-width: 200px;
    height: 250px;
  }
}

@media (max-width: 360px) {
  .statement-text.truncated {
    max-height: 600px;
  }

  .statement-text {
    font-size: 0.95rem;
  }

  .statement-text p {
    margin-bottom: 12px;
  }

  .statement-text ul {
    margin: 12px 0;
    padding-left: 12px;
  }

  .statement-text li {
    margin-bottom: 4px;
  }

  .read-more-btn {
    padding: 12px 24px;
    font-size: 0.95rem;
    margin-top: 12px;
    width: 100%;
    max-width: 180px;
    margin-left: auto;
    margin-right: auto;
    display: block;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: auto;
}

/* Loading animation for images */
.photo {
  opacity: 0;
  animation: fadeIn 0.8s ease-in-out forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Focus styles for accessibility */
button:focus,
input:focus,
textarea:focus {
  outline: 2px solid #ce2029;
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .hero-section {
    background: white;
    color: black;
  }

  .read-more-btn {
    display: none;
  }

  .statement-text.truncated {
    max-height: none;
    overflow: visible;
  }

  .statement-text.truncated::after {
    display: none;
  }
}
