body {
  margin: 0;
  background-color: #ffffff;
  overflow-x: hidden;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.top-banner {
  background-color: #FAF9F6; /* off-white */
  padding: 0.6rem 1.25rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.08);
  background-image: url('grandparents_reading_to_children.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;

}

.top-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.75); /* gentle fade */
  backdrop-filter: blur(1px);
  z-index: 0;
}


.banner-content {
  position: relative;
  z-index: 2;
}


.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Logo */
.tm-badge {
  width: 90px;   /* larger to fill banner */
  height: auto;
}

.tagline {
  font-size: 1rem;
  font-weight: bold;
  color: #4B6252;
  margin-top: 0.2rem;
  white-space: nowrap;
}

/* Menu container */
.menu-container {
  position: absolute;
  top: 50%;
  right: 2rem;
  transform: translateY(-50%);
  z-index: 3;
}

/* Hamburger button */
.hamburger {
  font-size: 1.6rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #4B6252;
  position: relative;
  z-index: 3;
}

/* Dropdown menu */
.menu {
  display: none;
  position: absolute;
  right: 0;
  top: 2.5rem;
  background-color: #FAF9F6;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  min-width: 180px;
  padding: 0.5rem 0;
  z-index: 4;
}

/* Menu links */
.menu a {
  display: block;
  padding: 0.75rem 1.2rem;
  text-decoration: none;
  color: #4B6252;
  font-size: 0.95rem;
  font-weight: 500;
}

.menu a:hover {
  background-color: #EFECE6;
}

.top-menu {
  display: flex;
  gap: 32px;
  padding: 20px 0;
  font-size: 20px;
  justify-content: center;
}

.menu-link {
  text-decoration: none;
  color: #333;
  transition: color 0.2s ease;
}

.menu-link:hover {
  color: #007bff; /* blue on hover */
}

.menu-link.active {
  color: #007bff; /* blue when selected */
  font-weight: bold;
}

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
  }

  .modal-content {
    background: white;
    margin: 10% auto;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    font-family: sans-serif;
  }

  .close {
    float: right;
    font-size: 1.5rem;
    cursor: pointer;
  }

  #org-login-form input {
    width: 100%;
    padding: 0.6rem;
    margin-bottom: 1rem;
    border-radius: 6px;
    border: 1px solid #ccc;
  }

  #org-login-form button {
    width: 100%;
    padding: 0.8rem;
    background: #333;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
  }

.split-section {
  max-width: 1100px;
  margin: 4rem auto;
  display: flex;
  flex-direction: column;
}

.split-row {
  display: flex;
  gap: 3rem;
  align-items: stretch;
  margin-bottom: 4rem;
}

.split-image {
  flex: 1;
  display: flex;
}

.split-image img {
  width: 100%;
  height: auto;  /* natural height */
  object-fit: cover;
  border-radius: 20px;
  max-height: 550px;
}

.split-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.split-content p {
  font-size: 1.25rem;
  line-height: 1.7;
  color: #444;
  margin-bottom: 1.2rem;
}

.split-content .card {
  background: #4B6252;
  padding: 1.8rem 2rem;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  text-align: left;
  max-width: 100%;
}

.split-content .card p {
  font-size: 1.2rem;
  line-height: 1.6;
  margin: 0.5rem 0;
  color: #ffffff;
}

.info-section {
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  background-color: #fafafa; /* soft off-white */
  padding: 1.5rem 1rem;
}

.info-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 3rem;
  justify-content: left;
}

.info-block {
  max-width: 420px;
  text-align: left;
}

.info-block strong {
  display: block;
  margin-bottom: 0.5rem;
  color: #4B6252;
  font-size: 1.05rem;
}

.info-block p {
  margin: 0;
  font-size: 0.95rem;
  color: #555;
}

.testimonial-banner {
  width: 100%;
  overflow: hidden;
  background: #FAF9F6; /* soft warm page background */
  border-top: 2px solid #FFC107; /* optional accent line */
  padding: 1rem 0;
}

.testimonial-track {
  display: flex;
  width: max-content;
  animation: scroll-left 30s linear infinite;
  gap: 3rem; /* space between items */
}

.testimonial-item {
  flex: 0 0 auto; /* prevent shrinking */
  font-family: 'Patrick Hand', cursive; /* handwriting style */
  font-size: 1.1rem;
  color: #444;
  white-space: nowrap;
}

.back-to-top {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: #4B6252;
  text-decoration: none;
  opacity: 0.75;
}

.back-to-top:hover {
  opacity: 1;
  text-decoration: underline;
}

/* smooth infinite scroll keyframes */
@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%); /* adjust based on how many items */
  }
}

/* Media query for mobile screens */
@media (max-width: 768px) {
  .split-row {
    flex-direction: column;  /* stack vertically */
    gap: 1.5rem;             /* smaller gap for mobile */
  }

  .split-content {
    width: 100%;             /* full width for cards */
  }

  .split-image {
    width: 100%;             /* full width for images */
  }

  .tagline {
    font-size: 0.7rem;       /* adjust tagline for mobile */
  }

  .tm-badge {
    width: 60px;             /* smaller logo on mobile */
  }

  .info-inner {
    flex-direction: column;
    gap: 1.25rem;
  }
}
