/* Reset & Basics */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  html {
    scroll-padding-top: 100px; /* Adjust based on your navbar height */
    scroll-behavior: smooth;
}

  body {
    font-family: 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
  }

  /* Navbar */
  .navbar {
    background-color: #D6CDC5;
    color: #212020;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
  }

  .logo {
    font-size: 1.5rem;
    font-weight: bold;
  }

  .logo.brand {
    display: flex;
    align-items: left; /* Aligns span vertically with image */
    justify-content: center;
    gap: 400px;
    /* padding: 0px 100px; */
  }
  
  .logo.brand img {
    height: 80px; /* Your chosen logo height */
    width: auto;
  }

  .logo.brand span {
    font-size: 1.5rem;
    font-weight: bold;
    color: rgb(37, 36, 36);
    line-height: 1.2;
    display: flex;
  align-items: center; /* vertical center */
  }

  .nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
  }

  .nav-links a {
    color: #303132;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
  }

  .nav-links a:hover {
    color: #4a72bc;
  }
  html {
    scroll-padding-top: 160px; /* navbar + tab-bar height */
  }
  
  .tab-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    background-color: #22489e;
    padding: 0.5rem;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    position: sticky;
    top: 100px; /* Below navbar height */
    z-index: 11;
    margin-top: 0; /* Ensures no extra gap */
  }
  
  
  .tab-bar a {
    padding: 0.6rem 1rem;
    margin: 0.2rem 0.5rem;
    text-decoration: none;
    font-weight: 600;
    color: #d6cdc5;
    border-radius: 5px;
    transition: background-color 0.3s ease;
  }
  
  .tab-bar a:hover {
    background-color: #bdcdea;
    color: #22489E;
  }


  /* Hero */
  .hero {
    background: url('https://images.unsplash.com/photo-1504384308090-c894fdcc538d') center/cover no-repeat;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    padding: 2rem;
    position: relative;
  }

  .hero::after {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 0;
  }

  .hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
  }

  .hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
  }

  .hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
  }

  .cta-button {
    padding: 0.75rem 2rem;
    background-color: #22489E;
    color: #fff;
    border: none;
    border-radius: 25px;
    text-decoration: none;
    font-size: 1rem;
    transition: background-color 0.3s ease;
  }

  .cta-button:hover {
    background-color: #BDCDEA;
  }

  /* Overview Section */
  .overview {
    background-color: #fefefe;
    padding: 4rem 2rem;
    text-align: center;
  }

  /* testing for h3  */
  .card h3 {
    font-size: clamp(1rem, 1.5vw + 0.3rem, 1.25rem);
  }
  
  .card p,
  .overview p,
  .highlighted-programs p,
  .why-us li {
    font-size: clamp(0.95rem, 1vw + 0.3rem, 1.1rem);
    line-height: 1.5;
  }
  
  /* all H2 */

.overview h2,
.services h2,
.highlighted-programs h2,
.why-us h2,
.consult-form h2 {
  font-size: clamp(1.2rem, 2.5vw + 0.5rem, 2rem);
  line-height: 1.3;
  margin-bottom: 1.5rem;
  text-wrap: balance;
}

  /* .overview h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
  } */

  .overview p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: #555;
  }

  /* Services Section */
  .services {
    padding: 4rem 2rem;
    background-color: #fff;
    text-align: center;
  }

  /* .services h2 {
    margin-bottom: 2rem;
    font-size: 2rem;
  } */

  .cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
  }

  .card {
    background-color: #f0f0f0;
    padding: 2rem;
    border-radius: 15px;
    width: 300px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
  }

  .card:hover {
    transform: translateY(-5px);
  }

  /* Highlighted Programs */
  .highlighted-programs {
    padding: 4rem 2rem;
    background-color: #eaf4f9;
    text-align: center;
  }

  /* .highlighted-programs h2 {
    margin-bottom: 2rem;
  } */

  .program-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
  }

  .program {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    width: 300px;
  }

  /* Why Us */
  .why-us {
    background-color: #e6f2ff;
    padding: 4rem 2rem;
    text-align: center;
  }

  /* .why-us h2 {
    margin-bottom: 1.5rem;
  } */

  .why-us ul {
    list-style: none;
    font-size: 1.2rem;
    padding: 0;
  }

  .why-us li {
    margin: 1rem 0;
  }

  /* Consultation Form */
  .consult-form {
    padding: 4rem 2rem;
    text-align: center;
    background-color: #fff;
  }

  /* .consult-form h2 {
    margin-bottom: 1.5rem;
  } */

  form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  input, textarea {
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
  }

  button {
    background-color: #003366;
    color: white;
    padding: 0.75rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
  }

  button:hover {
    background-color: #005599;
  }

  /* Footer */
  .footer {
    text-align: center;
    padding: 2rem;
    background-color: #003366;
    color: white;
  }
  .footer {
  text-align: center;
  padding: 40px 20px;
  background-color:#003366; /* or whatever background you use */
  font-family: sans-serif;
}

.footer-credit {
  margin-top: 30px; /* pushes it down from the line above */
  font-size: 0.9em;
  color: #666;
}

.footer-credit a {
  color: #6190c2;
  text-decoration: none;
}

.footer-credit a:hover {
  text-decoration: underline;
}


  .menu-toggle {
    display: none;
  }

  /* Responsive Styles */
  @media (max-width: 768px) {
    .nav-links {
      flex-direction: column;
      align-items: center;
      background: #D6CDC5;
      position: absolute;
      top: 100%;
      left: 0;
      width: 100%;
      display: none;
      padding: 1rem 0;
      z-index: 9;
      transition: all 0.3s ease-in-out;
    }

    .nav-links.show {
      display: flex;
    }

    .navbar {
      flex-direction: row;
      justify-content: space-between;
      align-items: center;
      padding: 1rem;
      gap: 0.5rem;
    }

    .menu-toggle {
      display: block;
      align-self: flex-end;
      font-size: 2rem;
      color: #212020;
      margin-top: 0;
      margin-left: auto;
      cursor: pointer;
    }

    .hero h1 {
      font-size: 1.5rem;
    }

    .hero p {
      font-size: 1rem;
    }

    .cta-button {
      padding: 0.5rem 1.5rem;
    }

    .cards {
      flex-direction: column;
      align-items: center;
    }

    .card {
      width: 90%;
    }

    .logo.brand {
      flex-direction: row;
      align-items: center;
      gap: 8px;
    }

    .logo.brand img {
      height: 50px;
    }

    .logo.brand span {
      font-size: 1.2rem;
      
      display: flex;
  align-items: center; /* vertical center */
    }
  }
  /* Fluid animation */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Enhance Hero for fluidity */
.hero {
  height: 100vh;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  position: relative;
  padding: 2rem;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.8s ease-out;
}

/* Cards improvement */
.cards .card {
  transition: all 0.4s ease;
  background-color: #fefefe;
  border: 1px solid #ddd;
}

.cards .card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

/* Form fluid layout */
.consult-form form {
  transition: all 0.3s ease;
  background: #fafafa;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

/* Section spacing */
section {
  padding: 4rem 1.5rem;
}

/* Program block spacing */
.highlighted-programs .cards {
  gap: 2rem;
  margin-top: 2rem;
}

/* Smooth transitions for inputs */
input, textarea {
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus, textarea:focus {
  border-color: #22489E;
  box-shadow: 0 0 4px rgba(34, 72, 158, 0.3);
  outline: none;
}
.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.program-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.3s ease;
}

.program-card:hover {
  transform: translateY(-5px);
}

.program-card img {
  width: 40px;
  height: auto;
  margin-bottom: 1rem;
}

.program-card h3 {
  margin-bottom: 0.5rem;
  color: #22489E;
}

.program-card p {
  font-size: 0.95rem;
  color: #444;
}


  @media (max-width: 600px) {
    form {
      width: 90%;
    }
  }

  @media (max-width: 768px) {
    .tab-bar {
      flex-wrap: nowrap;
      overflow-x: auto;
      justify-content: flex-start;
      gap: 0.5rem;
      padding: 0.5rem 1rem;
    }
  
    .tab-bar a {
      flex: 0 0 auto;
      font-size: 0.9rem;
      padding: 0.5rem 1rem;
      white-space: nowrap;
    }
  }
  
