:root {
  --primary: #27653d;
  --secondary: #0c6f99;
  --white: #ffffff;
  --gray: #f8f9fa; /* Already a light grey, useful for backgrounds */
  --accent: #30576e;
  --deep-blue: #073853;
  --hero-bg: linear-gradient(120deg, rgba(39,101,61,0.88) 0%, rgba(12,111,153,0.74) 100%);
  --section-green: #eaf6f0;
  --section-blue: #eaf3fa;

  /* Adding a new variable for dark text on light backgrounds for consistency */
  --dark-text: #222; /* Matches your body color */
}

body {
  font-family: 'Roboto', sans-serif;
  background: linear-gradient(135deg, #27653d 0%, #0c6f99 100%);
  background-size: 600% 600%;
  animation: gradientBG 15s ease infinite;
  color: #222; /* This is your default body text color */
  margin: 0;
}

@keyframes gradientBG {
  0%{background-position:0% 50%}
  50%{background-position:100% 50%}
  100%{background-position:0% 50%}
}

.container {
  max-width: 1140px;
  margin: auto;
  padding: 0 20px;
}

.header {
  /* --- UPDATED: Menu bar color change --- */
  background: var(--white); /* Changed from var(--primary) to white */
  /* Or use var(--gray); for a very light grey: background: var(--gray); */

  color: var(--dark-text); /* Header text color updated for contrast on light background */
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 15px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08); /* Kept a subtle shadow */
}

.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 48px;
  width: auto;
  display: block;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 0;
}

nav ul li a {
  /* --- UPDATED: Nav link color for light header --- */
  color: var(--deep-blue); /* Changed from #fff to a dark blue for contrast */
  text-decoration: none;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background-color 0.3s, color 0.3s; /* Added color transition */
}

nav ul li a:hover,
nav ul li a.active {
  background-color: var(--secondary); /* Retain secondary for hover background */
  color: var(--white); /* Ensure text turns white on hover background */
}

#nav-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  /* --- UPDATED: Nav toggle color for light header --- */
  color: var(--deep-blue); /* Changed from #fff to a dark blue for contrast */
  cursor: pointer;
}

/* Style for the new phone number section */
.header-phone {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
  /* --- UPDATED: Phone section color for light header --- */
  color: var(--deep-blue); /* Changed to a dark color for visibility */
  margin-left: 20px;
}

.header-phone .phone-icon {
  font-size: 1.5em;
  /* --- UPDATED: Phone icon color for light header --- */
  color: var(--secondary); /* Using secondary color for the icon to stand out */
}

.header-phone .phone-number {
  font-size: 1.1em;
  color: inherit; /* Inherits from .header-phone, which is now var(--deep-blue) */
  text-decoration: none;
  transition: color 0.3s ease;
}

.header-phone .phone-number:hover {
  color: var(--primary); /* Using primary color for hover effect */
}

/* You can remove or comment out the old theme toggle button styles if they exist */
.theme-btn {
  display: none; /* Hide the old button if you don't delete it from HTML */
}

/* Adjust header flex behavior if needed to accommodate the new element */
.header-flex {
  justify-content: space-between; /* Ensure logo, nav, and phone number are spaced out */
}

/* Media query for smaller screens if the number takes too much space */
@media (max-width: 768px) {
  .header-phone .phone-number {
    font-size: 1em;
  }
}

@media (max-width: 480px) {
  /* You might want to hide the number and only show the icon on very small screens,
     or stack it differently. For now, let's just make the text smaller. */
  .header-phone .phone-number {
    font-size: 0.9em;
  }
  /* Or if you want to hide the number completely on mobile: */
  /* .header-phone .phone-number { display: none; } */
  /* If hiding, you might want to increase the icon size: */
  /* .header-phone .phone-icon { font-size: 1.8em; } */
}


/* Hero Section - Ensure it takes full width and has a minimum height */
.hero {
  width: 100%;
  overflow: hidden; /* Important for background images */
  min-height: 80vh; /* Adjust as needed, makes it take 80% of viewport height */
  display: flex;
  align-items: center; /* Vertically center content */
  justify-content: center; /* Horizontally center content */
}

.hero-swiper {
  width: 100%;
  height: 100%; /* Make Swiper take full height of its parent (.hero) */
}

.swiper-slide {
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover; /* This is the key for covering the entire slide */
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff; /* Ensure text is visible on background images */
  text-align: center;
  padding: 20px; /* Add some padding */
}

.hero-slide-content {
  max-width: 800px; /* Limit content width for better readability */
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
  border-radius: 8px;
}

.hero-slide-content h1 {
  font-size: 2.5em; /* Adjust font size for desktop */
  margin-bottom: 15px;
}

.hero-slide-content p {
  font-size: 1.2em;
  margin-bottom: 30px;
}

/* Media Queries for Mobile Optimization */
@media (max-width: 768px) {
  .hero {
    min-height: 60vh; /* Reduce height for smaller screens */
  }

  .hero-slide-content h1 {
    font-size: 1.8em; /* Smaller font size for mobile */
  }

  .hero-slide-content p {
    font-size: 1em;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 50vh; /* Further reduce height for very small screens */
  }
  .hero-slide-content {
    padding: 15px;
  }
  .hero-slide-content h1 {
    font-size: 1.5em;
  }
  .hero-slide-content p {
    font-size: 0.9em;
  }
  .hero-slide-content .btn {
    padding: 10px 20px;
    font-size: 0.9em;
  }
}


/* Section backgrounds */
#about.section, #resources.section.bg-light {
  background: var(--section-blue);
}
#services.section, #contact.section.bg-light, #consultation.section {
  background: var(--white);
}
#programs.section, #blog.section {
  background: var(--white);
}

.section h2, .section h3 {
  color: var(--deep-blue);
  font-family: 'Montserrat', sans-serif;
  text-align: center;
}
.section h4 { text-align: center; }

a {
  color: var(--secondary);
  transition: color 0.2s;
}
a:hover {
  color: var(--primary);
}

.btn {
  background: var(--secondary);
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  padding: 14px 40px;
  border: none;
  border-radius: 30px;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 6px 15px rgba(12,111,153,0.16);
  transition: background 0.3s, color 0.3s;
  text-decoration: none;
  display: inline-block;
}
.btn-small {
  padding: 8px 20px;
  font-size: 0.9rem;
}
.btn:hover {
  background: var(--primary);
  color: var(--white);
}

.about-section {
  padding: 60px 20px;
}

.about-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.about-intro img.about-img {
  max-width: 500px; /* Adjust this value as desired */
  height: auto; /* Maintain aspect ratio */
  display: block; /* Ensures margin auto works for centering if needed */
  margin: 0 auto 20px auto; /* Center image and add bottom margin */
  border-radius: 8px; /* Optional: adds rounded corners */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Optional: subtle shadow */
}

.tile {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.1);
  padding: 30px;
  margin: 20px 0;
}

.vision-mission-container {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

.vision-mission-container .tile {
  flex: 1 1 300px;
}

.counters {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 40px 0;
}

.counter-tile {
  background: #f1f5f9;
  border-radius: 8px;
  padding: 20px 30px;
  text-align: center;
}

.counter-tile .counter {
  font-size: 2.5rem;
  font-weight: bold;
  color: #00539B;
}

.partner-scroll {
  overflow: hidden;
  white-space: nowrap;
  margin-top: 20px;
}

.partner-list {
  display: inline-flex;
  gap: 50px;
  animation: scroll-partners 30s linear infinite;
}

.partner-list li {
  text-align: center;
  min-width: 150px;
}

.partner-list img {
  width: 100px;
  height: auto;
  display: block;
  margin: 0 auto 10px;
}

.partner-list p {
  font-size: 0.9rem;
}

@keyframes scroll-partners {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}


.service-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}
.service-card {
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(7,56,83,0.07);
  padding: 25px;
  flex: 1 1 250px;
  max-width: 320px;
  min-width: 220px;
  margin-bottom: 20px;
  text-align: center;
}

.programs-section {
  background: var(--section-blue);
}

.programs-grid {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 30px;
}

.programs-col {
  flex: 1 1 220px;
  max-width: 320px;
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(7,56,83,0.07);
  padding: 40px 20px 30px 20px;
  text-align: center;
  transition: box-shadow 0.2s;
}

.program-icon {
  font-size: 3.5rem;
  color: var(--secondary);
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.programs-col h4 {
  margin-bottom: 18px;
  color: var(--deep-blue);
  text-align: center;
}

.programs-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.programs-col li {
  margin-bottom: 10px;
  font-size: 1.07rem;
  color: var(--primary);
  text-align: center;
}

@media (max-width: 900px) {
  .programs-grid {
    flex-direction: column;
    gap: 18px;
  }
}


.faq {
  margin-bottom: 40px;
}
.faq-item {
  margin-bottom: 15px;
}
.faq-question {
  background: var(--accent);
  color: var(--white);
  border: none;
  padding: 12px;
  width: 100%;
  text-align: left;
  cursor: pointer;
  border-radius: 4px;
  font-size: 1rem;
  transition: background 0.2s;
}
.faq-question:hover {
  background: var(--primary);
}
.faq-answer {
  display: none;
  background: var(--white);
  padding: 10px 15px;
  border-radius: 0 0 4px 4px;
  border-left: 3px solid var(--accent);
  margin-top: 2px;
}

.testimonials {
  margin-top: 30px;
}
.testimonials blockquote {
  background: var(--white);
  border-left: 5px solid var(--accent);
  margin: 10px 0;
  padding: 20px;
  border-radius: 6px;
  font-style: italic;
}
.testimonials span {
  font-weight: bold;
  color: var(--primary);
}

.blog-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}
.blog-card {
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(7,56,83,0.07);
  padding: 20px;
  max-width: 320px;
  min-width: 220px;
  text-align: center;
}
.blog-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 10px;
  border: 2px solid var(--accent);
}
.blog-card h4 {
  margin: 10px 0 8px;
  color: var(--primary);
  text-align: center;
}
.blog-card p {
  font-size: 0.97rem;
  color: #666;
  text-align: center;
}

/* ... (your existing CSS code) ... */

/* --- Blog Post Tiles (for blog.html) --- */
/* The container for all blog post tiles */
.blog-posts-grid {
    display: grid;
    /* This creates a responsive grid: 1 column on small screens, 2 on medium, 3 on large */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px; /* Space between the tiles */
    justify-content: center; /* Center items if they don't fill the row */
    margin-top: 40px; /* Space below the H2 */
}

/* Style for each individual blog post tile */
.blog-post-tile {
    background-color: var(--white); /* White background as requested */
    border-radius: 12px; /* Slightly more rounded corners for a softer look */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1); /* More prominent shadow for a "lifted" tile effect */
    padding: 35px; /* Generous padding inside the tile */
    text-align: left; /* Align text to left within the tile for readability */
    overflow: hidden; /* Ensures image corners are contained */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth hover effect */
}

.blog-post-tile:hover {
    transform: translateY(-8px); /* Lift effect on hover */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15); /* Enhanced shadow on hover */
}

.blog-post-tile img {
    width: 100%;
    height: 220px; /* Fixed height for consistent image size */
    object-fit: cover; /* Ensures images cover the area without distortion */
    border-radius: 8px; /* Rounded corners for images */
    margin-bottom: 25px; /* Space below the image */
    border: none; /* Remove border from images within these tiles */
}

.blog-post-tile h3 {
    color: var(--primary); /* Title color */
    font-size: 1.8em; /* Slightly larger title for the full article */
    margin-top: 0;
    margin-bottom: 10px;
    text-align: left; /* Align title to the left */
}

.blog-post-tile h4 {
    color: var(--deep-blue); /* Subheading color */
    font-size: 1.3em;
    margin-top: 25px;
    margin-bottom: 10px;
    text-align: left; /* Align subheadings to the left */
}

.blog-post-tile p {
    line-height: 1.7;
    margin-bottom: 15px;
    color: var(--dark-text); /* Ensure good readability */
    text-align: left; /* Align paragraphs to the left */
}

.blog-post-tile ul {
    list-style: disc; /* Use bullets for lists */
    margin-left: 25px; /* Indent list items */
    margin-bottom: 20px;
    color: var(--dark-text);
}

.blog-post-tile li {
    margin-bottom: 8px;
}

.blog-post-tile .post-meta {
    font-size: 0.9em;
    color: #777;
    margin-bottom: 20px; /* Space below meta info */
    text-align: left; /* Align meta to the left */
}

/* Specific styling for the 'Read More' button inside the full articles, if desired */
.blog-post-tile .btn {
    margin-top: 30px; /* Space above the button */
    display: inline-block; /* Ensure it respects text-align */
}

/* Remove or adjust old .blog-post styles if they conflict */
/* Example of removing the old .blog-post style for the individual full post */
/* You had this previously, it's now replaced by .blog-post-tile */
/*
.blog-post {
    padding: 40px 0;
    margin-bottom: 30px;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
*/ --- End of Blog Post Tiles styles --- */

form label {
  display: block;
  margin: 15px 0 5px;
}
form input, form select, form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #bbb;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
}
form input[type="file"] {
  padding: 5px 0;
}
form button {
  margin-top: 20px;
}

address {
  font-style: normal;
  line-height: 2;
  text-align: center;
}

footer {
  background: var(--primary);
  color: var(--white);
  text-align: center;
  padding: 20px 0;
  margin-top: 40px;
}

.modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5);}
.modal-content { background: #fff; margin: 10% auto; padding: 30px; border-radius: 8px; width: 90%; max-width: 400px; position: relative;}
.close { position: absolute; right: 18px; top: 10px; font-size: 28px; cursor: pointer;}

#scrollTopBtn {
  display: none; position: fixed; bottom: 40px; right: 40px;
  z-index: 999; background: var(--secondary); color: #fff; border: none;
  border-radius: 50%; width: 40px; height: 40px; font-size: 22px;
  cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
#scrollTopBtn:hover { background: var(--primary); }

.whatsapp-float {
  position: fixed; bottom: 30px; right: 30px; z-index: 1000;
}
.whatsapp-float img {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 2px solid var(--accent);
}

/* Correcting the .hero definition (removed the leading slash) */
.hero {
  width: 100vw;
  height: 100vh; /* Changed from 100% to 100vh for full viewport height */
  position: relative;
  overflow: hidden;
}

.hero .hero-swiper {
  width: 100%;
  height: 100%;
}

.hero .swiper-slide {
  background-size: cover;
  background-position: center;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slide-content {
  text-align: center;
  background: rgba(0, 0, 0, 0.5);
  padding: 40px 20px;
  border-radius: 12px;
  color: #fff;
  max-width: 90%;
  z-index: 10;
}

.hero-slide-content h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.hero-slide-content p {
  font-size: 1.2rem;
  margin-bottom: 25px;
}

.hero-slide-content .btn {
  background-color: #00539B; /* Changed to match previous button styles or specific need */
  color: #fff;
  padding: 12px 24px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
}


@media (max-width: 900px) {
  .about-section .about-flex {
    flex-direction: column;
    gap: 24px;
  }
  .service-grid, .programs-grid, .blog-grid, .counters {
    flex-direction: column;
    align-items: center;
  }
  .partner-list {
    /* flex-direction: column; -- Removed this as it breaks the horizontal scroll */
    gap: 10px;
  }
}
@media (max-width: 700px) {
  .container {
    padding: 0 10px;
  }
  .header-flex {
    flex-direction: column;
    align-items: flex-start;
  }
  .nav-menu { /* Assuming this class is used for your mobile navigation overlay */
    flex-direction: column;
    gap: 0;
    /* --- UPDATED: Mobile nav menu background for light header --- */
    background: var(--white); /* Changed from var(--primary) to white */
    position: absolute;
    top: 78px; /* Adjusted to be below the header which has 15px padding + 48px logo height + 15px padding = 78px approx */
    right: 0;
    left: 0;
    display: none;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1); /* Added shadow for mobile menu */
    padding-bottom: 15px; /* Add some padding at the bottom */
  }
  .nav-menu.active {
    display: flex;
  }
  /* --- Ensure links in mobile menu are dark on light background --- */
  .nav-menu.active a {
      color: var(--deep-blue);
      padding: 12px 20px; /* Give more clickable area in mobile */
      width: 100%; /* Make links take full width */
      text-align: left; /* Align text to left */
  }
  .nav-menu.active a:hover,
  .nav-menu.active a.active {
      background-color: var(--section-blue); /* Light hover background */
      color: var(--primary); /* Dark text on hover */
  }


  #nav-toggle {
    display: block;
    position: absolute;
    right: 20px;
    top: 15px;
    /* --- UPDATED: Nav toggle color for mobile --- */
    color: var(--deep-blue); /* Ensure it's visible on the light header */
  }
}