@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@400;700;800&display=swap');

.gradient-bg {
  background: linear-gradient(45deg, #3b9861, #84ce6a);
  min-height: 200px;
}

/* Navigation styles */
.navbar .navbar-brand {
  font-size: 1.4rem !important;
  letter-spacing: 0.5px;
}

.navbar .nav-link {
  font-size: 1rem !important;
  padding: 0.5rem 1rem !important;
  font-weight: 500 !important;
}

.navbar-nav {
  font-size: 1rem !important;
}

/* Navigation active/link styles - make active links teal and dropdown active bg teal */
.navbar .nav-link.active,
.navbar .nav-link:active {
  color: #3b9861 !important; /* site teal */
}

/* Ensure hovered links remain clear (optional subtle effect) */
.navbar .nav-link:hover {
  color: #2f7d50 !important;
}

/* Dropdown active item should use teal background and white text */
.navbar .dropdown-menu .dropdown-item.active,
.navbar .dropdown-menu .dropdown-item:active {
  background-color: #3b9861 !important;
  color: #ffffff !important;
}

/* Dropdown hover styles */
.navbar .dropdown-menu .dropdown-item:hover {
  background-color: rgba(59,152,97,0.08);
  color: #3b9861 !important;
}

/* Special hover state for active dropdown items */
.navbar .dropdown-menu .dropdown-item.active:hover {
  background-color: #2f7d50 !important;
  color: #ffffff !important;
}

/* Site button colors — override Bootstrap success to use project teal */
.btn-success {
  background-color: #3b9861 !important; /* site teal */
  border-color: #3b9861 !important;
}
.btn-success:hover,
.btn-success:focus {
  background-color: #2f7d50 !important; /* slightly darker teal on hover */
  border-color: #2f7d50 !important;
  color: #ffffff !important;
}
.btn-outline-success {
  color: #3b9861 !important;
  border-color: #3b9861 !important;
}
.btn-outline-success:hover,
.btn-outline-success:focus {
  background-color: #3b9861 !important;
  color: #ffffff !important;
  border-color: #3b9861 !important;
}

/* Team bios styling */
.team-bios .team-heading {
  color: #3b9861;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.team-bios .card {
  border-radius: 8px;
  overflow: hidden;
}

.team-bios .member-photo {
  width: 170px;
  height: 170px;
  object-fit: cover;
  /* remove internal padding so image can align with card edge; padding lives on .image-col */
  padding: 0;
  display: block;
  /* round only the top-left corner to match the card */
  border-radius: 8px;
}

.team-bios .card-body {
  padding: 1.25rem;
}

.team-bios .member-name {
  color: #3b9861;
  font-weight: 700;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.team-bios .card-text {
  line-height: 1.6;
  color: #333;
  font-size: 0.98rem;
}

/* Ensure consistent vertical alignment for image column */
.team-bios .row.align-items-center {
  /* Keep image/text rows top-aligned so photos sit at the card's top-left */
  align-items: flex-start !important;
}

/* Make cards look lighter and consistent */
.team-bios .card.shadow {
  box-shadow: 0 6px 18px rgba(0,0,0,0.06) !important;
}

/* Team section background (teal-tinted) */
.team-section {
  background-color: rgba(59,152,97,0.06);
  padding: 3rem 0;
}

.team-section .team-bios {
  margin-top: 0;
  margin-bottom: 0;
}

/* Ensure cards remain white on the tinted background */
.team-section .card {
  background: #ffffff;
}

/* Footer Styles */
.site-footer {
  background-color: #f8f9fa;
  border-top: 1px solid rgba(59,152,97,0.1);
  padding: 3rem 0 1rem;
}

.site-footer .footer-logo {
  max-width: 140px;
  height: auto;
}

.site-footer .footer-brand {
  color: #3b9861;
  font-size: 1.5rem;
  font-weight: bold;
  text-transform: uppercase;
  text-decoration: none;
}

.site-footer .social-links a {
  color: #3b9861;
  text-decoration: none;
  transition: color 0.2s ease;
  padding: 0.5rem;
  margin: 0 0.25rem;
}

.site-footer .social-links a:hover {
  color: #2f7d50;
}

.site-footer .footer-links a {
  color: #495057;
  text-decoration: none;
  transition: color 0.2s ease;
  font-size: 0.9rem;
}

.site-footer .footer-links a:hover {
  color: #3b9861;
}

.site-footer .copyright {
  font-size: 0.85rem;
  color: #6c757d;
  padding-top: 1rem;
  margin-top: 1rem;
  border-top: 1px solid rgba(0,0,0,0.1);
}

.site-footer .copyright a {
  color: #3b9861;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer .copyright a:hover {
  color: #2f7d50;
  text-decoration: underline;
}

/* Mobile responsiveness for footer */
@media (max-width: 767.98px) {
  .site-footer {
    padding: 2rem 0 1rem;
    text-align: center;
  }
  
  .site-footer .social-links {
    margin: 1.5rem 0;
  }
  
  .site-footer .footer-links {
    margin-bottom: 1rem;
  }
  
  .site-footer .site-map {
    line-height: 2;
  }
  
  .site-footer .site-map .divider {
    display: none;
  }
}

/* Hero section adjustments: full-width, no border radius, responsive text */
.hero-section {
  position: relative; /* contain absolutely positioned content */
  width: 100%;
  border-radius: 0 !important;
  overflow: hidden;
  height: 90vh; /* 90% of viewport height */
  margin-top: 0 !important;
}

.hero-section.home-hero {
  height: 92vh;
  margin-bottom: 4rem;
}

.hero-section.home-hero .hero-content {
  max-width: 900px;
  padding: 0 2rem;
}

.hero-section.home-hero h1 {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-section.home-hero .hero-para {
  font-size: 1.25rem;
  line-height: 1.7;
  font-weight: 400;
  max-width: 800px;
}

@media (max-width: 768px) {
  .hero-section.home-hero {
    height: 92vh; /* Reduced height to minimize bottom space */
  }
  
  .hero-section.home-hero .hero-content {
    padding-top: 0;
    transform: translate(-50%, -52%); /* Adjusted to reduce bottom space */
  }
  
  .hero-section.home-hero h1 {
    font-size: 2.5rem;
    padding: 0 1rem;
    margin-bottom: 1rem;
  }
  
  .hero-section.home-hero .hero-para {
    font-size: 1.1rem;
    padding: 0 1.5rem;
    margin-bottom: 2rem;
  }
  
  .hero-section.home-hero .btn {
    display: block;
    width: 80%;
    max-width: 280px;
    margin: 0.75rem auto;
  }

  /* ensure mobile-specific selector is correct (fixed typo) */
  .hero-section.home-hero #bookconsultant {
    color: #3b9861;
  }
}
/* Hero-specific button behaviors (override global .btn-success / outline rules).
   1) #bookconsultant: white background + green text by default;
      on hover -> transparent with white text and white outline.
   2) #learnmore: transparent/white-outline + white text by default;
      on hover -> white background + green text.
*/
.hero-section.home-hero a#bookconsultant {
  background-color: #ffffff !important;
  color: #3b9861 !important; /* green text */
  border-color: transparent !important;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.hero-section.home-hero a#bookconsultant:hover,
.hero-section.home-hero a#bookconsultant:focus {
  background-color: transparent !important;
  color: #ffffff !important;
  border: 1px solid #ffffff !important; /* white outline */
  box-shadow: none !important;
}

.hero-section.home-hero a#learnmore {
  background-color: transparent !important;
  color: #ffffff !important;
  border: 1px solid #ffffff !important; /* white outline */
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.hero-section.home-hero a#learnmore:hover,
.hero-section.home-hero a#learnmore:focus {
  background-color: #ffffff !important;
  color: #3b9861 !important; /* green text */
  border-color: #ffffff !important;
  box-shadow: none !important;
}
.hero-section img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(59, 152, 97, 0.7); /* teal color with 70% opacity */
}
.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 100%;
  z-index: 2; /* ensure text sits above the image */
}
.hero-content .hero-para {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* Make hero and paragraph responsive on small screens */
@media (max-width: 576px) {
  .hero-section {
    height: 220px;
  }
  .hero-content .hero-para {
    padding: 0 1rem;
    font-size: 0.98rem;
    max-width: 100%;
  }
  .hero-content h1 {
    font-size: 1.8rem;
  }
}

@media (max-width: 767.98px) {
  .hero-section {
    height: 260px; /* shorter on mobile */
    /* make hero truly full-bleed even when body/container add padding */
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }
  .hero-content .hero-para {
    max-width: 95%;
    font-size: 0.95rem; /* scale down on mobile to avoid overflow */
    padding: 0 1rem;
  }
}

/* Image column alignment: left/top aligned on desktop, top-left on mobile */
.team-bios .image-col {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
  /* provide internal spacing so the image doesn't sit flush against the card edge */
  padding: 0.75rem;
}

/* Spacing between image and text on wider screens */
@media (min-width: 768px) {
  .team-bios .member-photo {
    margin-right: 1rem;
  }
}

/* On small screens, keep image left aligned and add bottom spacing */
@media (max-width: 767.98px) {
  .team-bios .member-photo {
    margin-right: 0;
    margin-bottom: 0.75rem;
    width: 150px; /* slightly smaller on mobile to avoid crowding */
    height: 150px;
  }
  .team-bios .image-col {
    justify-content: flex-start;
  }
}

/* Ensure hero is full-bleed on larger viewports too (handles nested container padding) */
.hero-section.full-bleed,
.hero-section {
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

/* Playful child-friendly font (Baloo 2) for hero and headings */
/* Applies only where headings are used to preserve body readability */
h1, h2, h3, .hero-content h1, .card-title, .team-bios .team-heading {
  font-family: 'Baloo 2', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Slight tuning: heavier weight for hero title for impact */
.hero-content h1 {
  font-weight: 800;
  letter-spacing: -0.02em;
}