/*--------------------------------------------------------------
# Homepage Specific Styles
--------------------------------------------------------------*/

/* Apply styles only to the homepage */
/* Ensure your body tag has the 'home' class or adjust selector */

/* --- Hero Section --- */
.home .hero-section {
  padding-top: 40px; /* Adjust padding if needed */
  padding-bottom: 40px;
  text-align: center;
}

.home .hero-content {
  max-width: 800px;
  margin: 0 auto 30px auto; /* Space below content */
}

.home .hero-section h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 24px;
  color: #333; /* Or your primary headline color */
}

.home .hero-subtitle {
  font-size: 20px;
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: #555; /* Or your subtitle color */
}

.home .hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 30px auto 0 auto;
  display: block;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}


/* --- Features Section --- */
.home .features-section {
  background-color: #f8f9fa; /* Light background for contrast */
  padding-top: 60px; /* Standard section padding */
  padding-bottom: 60px;
}

.home .features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  margin-top: 40px;
}

.home .feature-card {
  flex: 1;
  min-width: 300px;
  max-width: 350px;
  padding: 30px;
  border-radius: 8px;
  background-color: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.home .feature-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  transform: translateY(-5px);
}

.home .feature-card h3 {
  font-size: 22px;
  margin-bottom: 16px;
  font-weight: 600;
  text-align: center;
  color: #333;
}

.home .feature-card p {
  font-size: 16px;
  text-align: left;
  margin-bottom: 25px;
  flex-grow: 1;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  color: #555;
}

.home .feature-card .button-main {
    margin-top: auto; /* Push button to bottom */
    align-self: center; /* Center button horizontally */
}

.home .feature-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 20px;
  display: block;
}


/* --- Who We Serve Section --- */
.home .who-we-serve {
    padding-top: 60px;
    padding-bottom: 60px;
}

.home .stakeholders-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
}

.home .stakeholder-card {
  flex: 1 1 calc(25% - 20px); /* 4 columns */
  min-width: 250px;
  max-width: 300px;
  padding: 25px;
  border-radius: 8px;
  background-color: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border: 1px solid #e9ecef;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.home .stakeholder-card:hover {
  background-color: #f8f9fa;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  transform: translateY(-3px);
}

.home .stakeholder-card h3 {
  font-size: 20px;
  margin-bottom: 15px;
  font-weight: 600;
  text-align: center;
  color: #333;
}

.home .stakeholder-card p {
  font-size: 15px;
  text-align: left;
  margin-bottom: 0;
  flex-grow: 1;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  color: #555;
}

.home .stakeholder-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 20px;
  display: block;
}


/* --- How It Works Section --- */
.home .how-it-works {
    background-color: #f8f9fa;
    padding-top: 60px;
    padding-bottom: 60px;
}

.home .steps-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  margin-top: 40px;
  gap: 30px;
}

.home .step {
  flex: 1;
  min-width: 220px;
  max-width: 260px;
  text-align: center;
  padding: 20px 15px;
  display: flex;
  flex-direction: column;
}

.home .step-number {
  background-color: #0099ff; /* Or your brand color */
  color: white;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 20px;
  margin: 0 auto 25px;
}

.home .step h3 {
  font-size: 20px;
  margin-bottom: 15px;
  font-weight: 600;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
}

.home .step p {
  font-size: 16px;
  text-align: center;
  margin-bottom: 0;
  flex-grow: 1;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  color: #555;
}


/* --- Testimonials Section --- */
.home .testimonials {
  background-color: #ffffff;
  padding-top: 60px;
  padding-bottom: 60px;
}

.home .testimonials-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  max-width: 1200px;
  margin: 40px auto 0 auto;
  width: 100%;
}

.home .testimonial {
  flex: 1;
  min-width: 300px;
  max-width: 350px;
  padding: 30px;
  border-radius: 8px;
  background-color: #f8f9fa;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  text-align: center;
}

.home .testimonial-image {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  display: block;
  border: 3px solid #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.home .testimonial p { /* Quote */
  font-size: 16px;
  line-height: 1.6;
  font-style: italic;
  text-align: center;
  margin-bottom: 20px;
  flex-grow: 1;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  color: #555;
}

.home .testimonial-author {
  margin-top: auto;
  font-weight: 600;
  text-align: center;
  font-size: 16px;
  line-height: 1.3;
  color: #333;
}

.home .author-name {
  display: block;
  margin-bottom: 3px;
}

.home .author-title {
  display: block;
  font-weight: 400;
  font-size: 14px;
  color: #777;
}


/* --- CTA Section --- */
.home .cta-section {
  background-color: #0099ff; /* Your brand blue */
  color: white;
  padding: 60px 5%; /* Vertical and horizontal padding */
  text-align: center;
  margin: 60px 0; /* Space above and below */
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.home .cta-content {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.home .cta-section h2 {
  color: white;
  font-size: 32px;
  margin-bottom: 15px; /* Space below headline */
}

.home .cta-section p {
  color: rgba(255, 255, 255, 0.9); /* Slightly transparent white */
  max-width: 600px;
  margin: 0 auto 30px auto; /* Center and space below */
}

.home .cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* CTA Button Style Override */
.home .cta-section .button-outline {
    color: white;
    border-color: white;
    /* Adjust padding/font-size if needed */
}
.home .cta-section .button-outline:hover {
    background-color: white;
    color: #0099ff; /* Brand blue text on hover */
}


/* --- Newsletter Section - UPDATED STYLES --- */
.home .newsletter {
  /* background-color: #ffffff; */ /* Original White */
  background-color: #f0f2f5; /* UPDATED: Light grey background */
  padding: 80px 5%; /* UPDATED: Increased padding */
  text-align: center;
  margin-top: 0; /* Adjust if CTA is not directly above */
  /* border-top: 1px solid #e0e0e0; */ /* Optional top border */
}

.home .newsletter-content {
  /* max-width: 600px; */ /* Original */
  max-width: 700px; /* UPDATED: Wider container */
  margin: 0 auto;
}

.home .newsletter h2 {
    color: #333; /* Ensure contrast */
    margin-bottom: 15px; /* Space below headline */
}
.home .newsletter p {
    color: #555; /* Ensure contrast */
    margin-bottom: 0; /* Remove default margin if needed */
    line-height: 1.6;
}

.home .newsletter-form {
  /* max-width: 600px; */ /* Original */
  max-width: 700px; /* UPDATED: Match container width */
  margin: 30px auto 0 auto; /* Space above form */
}

.home .form-row {
  display: flex;
  gap: 15px;
  margin-bottom: 10px; /* Space below inputs before messages */
  align-items: center; /* Vertically align inputs and button */
}

.home .form-row input[type="text"],
.home .form-row input[type="email"] {
  flex: 1; /* Allows inputs to grow and fill space */
  padding: 14px 18px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
  min-height: 50px; /* Standard height */
  box-sizing: border-box;
}

.home .form-row button[type="submit"] {
    flex-shrink: 0; /* Prevent button from shrinking */
    min-height: 50px; /* Match input height */
    /* Inherits .button-main styles */
}

/* Success/Error Message Styling */
.home #form-success,
.home #form-error {
    padding: 15px;
    border-radius: 6px;
    margin-top: 20px; /* Space above message */
    text-align: center;
    display: none; /* Hidden by default */
}

.home #form-success {
    color: #155724; /* Dark Green */
    background-color: #d4edda; /* Light Green */
    border: 1px solid #c3e6cb;
}
.home #form-error {
    color: #721c24; /* Dark Red */
    background-color: #f8d7da; /* Light Red */
    border: 1px solid #f5c6cb;
}


/* --- Homepage Responsive --- */

@media (max-width: 1024px) { /* Tablet */
  .home .stakeholder-card {
    flex-basis: calc(50% - 15px); /* 2 columns */
    min-width: calc(50% - 15px);
  }
  .home .step {
    min-width: calc(50% - 15px); /* 2 columns */
  }
}


@media (max-width: 768px) { /* Mobile */
  .home .hero-section h1 {
    font-size: 32px;
  }
  .home .hero-subtitle {
    font-size: 18px;
  }

  /* Stack grids on mobile */
  .home .features-grid,
  .home .stakeholders-grid,
  .home .steps-container,
  .home .testimonials-slider {
    flex-direction: column;
    align-items: center;
  }

  .home .feature-card,
  .home .stakeholder-card,
  .home .step,
  .home .testimonial {
    flex-basis: 100%;
    min-width: 90%;
    max-width: 400px;
    margin-bottom: 20px;
  }

  .home .cta-section {
    margin: 30px 0;
    padding-left: 15px; /* Reduce horizontal padding */
    padding-right: 15px;
  }

  /* Stack Newsletter form */
  .home .form-row {
    flex-direction: column;
    gap: 15px;
    align-items: stretch; /* Make inputs/button full width */
  }

  .home .newsletter-form {
    width: 100%;
    max-width: 100%; /* Allow form to fill container */
  }

  .home .form-row input,
  .home .form-row button {
    width: 100%; /* Full width */
    min-height: 50px;
  }

  .home .cta-buttons .button-outline {
    width: 100%;
    max-width: 300px;
    margin: 5px auto;
  }
}