/* Grow the main content section to fill space if needed */
.section {
    flex: 1;
    padding: 2rem;
}

/* Footer styling */
footer {
    background-color: #111;
    color: #aaa;
    text-align: center;
    padding: 1rem 0;
    font-size: 0.9rem;
}


* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
}

.container {
  width: 90%;
  max-width: 1000px;
  margin: auto;
  padding: 20px 0;
}

header {
  background: #004c99;
  color: #fff;
  padding: 20px 0;
  text-align: center;
}

header h1 {
  margin-bottom: 10px;
}

nav {
  margin-top: 10px;
}

nav a {
  color: white;
  margin: 0 10px;
  text-decoration: none;
  font-weight: bold;
}

.hero {
  background: #e6f0ff;
  text-align: center;
  padding: 60px 20px;
}

.hero h2 {
  font-size: 2rem;
  color: #004c99;
}

.btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 24px;
  background: #004c99;
  color: white;
  text-decoration: none;
  border-radius: 6px;
}

.section {
  padding: 40px 20px;
}

.bg-light {
  background: #fff;
}

ul {
  list-style-type: none;
  padding-left: 0;
}

ul li {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

form input, form textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

form button {
  padding: 12px;
  background: black;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
}

footer {
  background: #003366;
  color: white;
  text-align: center;
  padding: 20px 0;
  margin-top: 40px;
}

/* Responsive */
@media (max-width: 600px) {
  .hero h2 {
    font-size: 1.5rem;
  }

  nav a {
    display: block;
    margin: 8px 0;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}

.hero-grid {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.hero-text {
  flex: 1;
  min-width: 300px;
}

.hero-image {
  flex: 1;
  min-width: 300px;
}

.hero-image img {
  width: 80%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .hero-grid {
    flex-direction: column;
    text-align: center;
  }
}

/* NAVIGATION BAR */
.navbar {
  background: #004c99;
  color: white;
  position: sticky;
  top: 0;
  z-index: 999;
  padding: 10px 0;
}

.nav-container {
  max-width: 1100px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
}

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

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
}

.nav-links a:hover {
  text-decoration: underline;
}

/* Hamburger for mobile */
.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  cursor: pointer;
  width: 30px;
  height: 25px;
  flex-direction: column;
  justify-content: space-between;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  display: block;
  background: white;
  height: 3px;
  width: 100%;
  border-radius: 2px;
  position: relative;
}

.nav-toggle-label span::before,
.nav-toggle-label span::after {
  content: "";
  position: absolute;
}

.nav-toggle-label span::before {
  top: -8px;
}

.nav-toggle-label span::after {
  top: 8px;
}

/* Responsive behavior */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: #004c99;
    flex-direction: column;
    align-items: center;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
  }

  .nav-toggle:checked ~ .nav-links {
    max-height: 200px;
    padding-bottom: 10px;
  }

  .nav-toggle-label {
    display: flex;
  }
}


.welcome, .why-us, .how-it-works, .coverage, .cta-banner {
  padding: 60px 20px;
  text-align: center;
}

.cta-banner {
  background: #004c99;
  color: white;
  padding: 60px 20px;
}

.cta-banner h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.communities {
  list-style: none;
  padding: 0;
  columns: 2;
  margin-top: 20px;
}

.testimonials blockquote {
  font-style: italic;
  margin: 20px auto;
  max-width: 600px;
  border-left: 4px solid #004c99;
  padding-left: 10px;
  color: #444;
}

/* Horizontal Card Row Layout */
.card-row {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.card-horizontal {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px 30px;
  text-align: left;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
}

.card-horizontal:hover {
  transform: translateY(-3px);
}

.card-horizontal h3 {
  margin-bottom: 10px;
  color: #004c99;
}

/* Responsive stacking */
@media (min-width: 768px) {
  .card-row {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .card-horizontal {
    flex: 1 1 calc(48%);
  }
}

@media (min-width: 1024px) {
  .card-horizontal {
    flex: 1 1 calc(32%);
  }
}

.how-it-works {
  background: #f9f9f9;
}

.how-it-works p {
  font-size: 1.2rem;
}

.nav-btn {
  background: #ffcc00;
  color: #003366;
  padding: 8px 16px;
  border-radius: 5px;
  font-weight: bold;
  margin-left: 10px;
}

.nav-btn:hover {
  background: #e6b800;
  color: #001f4d;
}

.nav-phone {
  margin-left: 20px;
  font-weight: 500;
  color: #fff;
  font-size: 22px;
}

/* Stack phone and button on mobile */
@media (max-width: 768px) {
  .nav-links {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-phone {
    margin-left: 0;
    margin-top: 10px;
  }
}

/* Responsive stack on smaller screens */
@media (min-width: 768px) {
  .welcome-container {
    flex-direction: row;
    justify-content: space-between;
  }

  .welcome-text, .welcome-image {
    flex: 1;
  }
}

/* Reset & Base Styles */
body {
  font-family: 'Inter', sans-serif;
  color: #333;
  background-color: #fff;
  margin: 0;
  line-height: 1.6;
}

h1, h2, h3 {
  color: black;
  margin-top: 0;
  align: center;
}

a {
  color: #2a4d8f;
  text-decoration: none;
}

a:hover {
  color: #1f3a6f;
  text-decoration: underline;
}

/* Section Padding & Layout */
.section {
  padding: 60px 20px;
}

.bg-light {
  background: #f5f7fa;
}

/* Buttons */
.btn,
.nav-btn {
  display: inline-block;
  background: #ffcc00;
  color: #2a4d8f;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.3s ease;
}

.btn:hover,
.nav-btn:hover {
  background: #e6b800;
  color: #1f3a6f;
}

/* Phone Text */
.nav-phone {
  font-weight: 600;
  color: #fff;
}

/* Cards */
.card-horizontal {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 24px 28px;
  text-align: left;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-horizontal:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

/* Container & Utility */
.container {
  max-width: 1100px;
  margin: 0 auto;
}

/* Nav Background Update */
.navbar {
  background: #2a4d8f;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* Why Choose us section */
.why-us-cards {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
}

.why-card {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 30px 20px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  width: 100%;
  max-width: 300px;
  transition: transform 0.3s ease;
}

.why-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.why-card img {
  width: 180px;
  height: auto;
  margin-bottom: 20px;
}

.why-card h3 {
  margin-bottom: 10px;
  color: #2a4d8f;
}

.why-card p {
  font-size: 1.2rem;
  color: #444;
}

/* Service section*/

.service-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  margin-top: 40px;
}

.service-card {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 30px 20px;
  width: 100%;
  max-width: 300px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.service-card img {
  width: 90px;
  height: auto;
  margin-bottom: 15px;
}

.service-card h3 {
  color: #2a4d8f;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 1.2rem;
  color: #444;
}

/* Welcome section */
.welcome-background {
  position: relative;
  background-image: url('images/hero-aid-6.jpg');
  background-size: cover;
  background-position: center;
  padding: 160px 40px; /* Increased height and horizontal padding */
  color: white;
  text-align: left; /* Align to the left */
  display: flex;
  align-items: center;
}

.welcome-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.welcome-text {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.welcome-text h2 {
  font-size: 3rem;
  margin-bottom: 20px;
  color: white;
}

.welcome-text p {
  font-size: 1.3rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.btn-assessment {
  display: inline-block;
  padding: 12px 24px;
  background-color: #007bff;
  color: white;
  font-size: 1.1rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.btn-assessment:hover {
  background-color: #0056b3;
}

/* Service coverage section */
.section.service-area {
  position: relative;
  background-image: url('images/hero-aid-5.png');
  background-size: cover;
  background-position: center;
  padding: 120px 40px;
  color: white;
  text-align: center;
}

.service-area-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5); /* Darken for readability */
  z-index: 1;
}

.service-area-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.service-area-content h2 {
  font-size: 2.4rem;
  margin-bottom: 20px;
  color: white;
}

.service-area-content p {
  font-size: 1.2rem;
  line-height: 1.8;
}

/* contact us seciton */

.social-media-links {
  margin-top: 30px;
  text-align: center;
}

.social-media-links h3 {
  margin-bottom: 15px;
  font-size: 1.5rem;
  color: #0a1f33;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.social-icons a {
  transition: transform 0.3s ease;
}

.social-icons a:hover {
  transform: scale(1.1);
}

.social-icons img {
  width: 30px;
  height: 30px;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #111;
  padding: 10px 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-container {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: auto;
}

.navbar-logo img {
  height: 80px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  margin-left: auto;
}

.nav-links li a {
  color: white;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 14px;
}

.nav-links .btn {
  background-color: white;
  color: black;
  padding: 8px 14px;
  border-radius: 4px;
  font-weight: bold;
  margin-left: 10px;
}


/* Footer */
footer {
  background: black;
  color: #fff;
  text-align: center;
  padding: 40px 20px;
}

footer a {
  color: #ffcc00;
  text-decoration: underline;
}
