/* ---------- Global body background: shining puzzle edges ---------- */
body {
  margin: 0;
  padding-top: 0.5rem;  /* adds 16px space at the top */
  font-family: "Segoe UI", sans-serif;
  background: #d9e0f0; /* a very light grey-blue */
}

/* ---------- Main centered page ---------- */
.page-wrapper {
  max-width: 1200px;   /* adjust this to match your current site width */
  margin: 0 auto;
  background: #f5f7fa;
  box-shadow: 0 0 30px rgba(0,0,0,0.1);
}

/* ---------- Navigation menu ---------- */
.menu {
  background: #001872;
}
.menu ul {
  display: flex;
  justify-content: center;
  padding: 0.4rem 0;
  margin: 0;
  list-style: none;
}
.menu li {
  margin: 0 1.2rem;
}
.menu a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}

.menu a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  padding: 0.3rem 0.6rem;      /* small padding for hover area */
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
  display: inline-block;       /* needed for transform */
}

.menu a:hover {
  text-decoration: none;       /* remove default underline */
  color: #ECF9FF;              /* lighter yellowish highlight */
  background: #074da8; /* subtle background tint */
  transform: scale(1.08);      /* gentle zoom */
  border-radius: 0.3rem;       /* soft rounded background on hover */
}

.menu a.active {
  border: 2px solid #074da8; /* frame around the link */
  border-radius: 0.3rem;      /* soft rounded corners */
  font-weight: 700;           /* bold text */
  padding: 0.3rem 0.6rem;     /* maintain spacing */
  color: #fff;                /* text color */
  background: none;           /* remove any background */
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* ---------- Hero two-column layout ---------- */
.hero {
  display: grid;
  grid-template-columns: 1fr auto; /* left flexible, right auto for image */
  align-items: center;
  padding: 2rem 2rem;
  gap: 2rem;
}

.left h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  color: #001872;
}

.left h1 {
  margin-left: 1rem;
}

/* New style for h2 to match the h1 appearance */
.left h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #001872;
  margin-left: 0rem; 
}

/* New style for h3, between h2 and li */
.left h3 {
  font-size: 1.7rem;
  margin-bottom: 1rem;
  color: #001872;
  margin-left: 0rem;
}

.left ul {
  font-size: 1.4rem;  /* FONT FOR BULLET POINTS */
  margin-bottom: 1rem;
  padding-left: 1.2rem;
}

/* Extra spacing between hero list items */
.left ul li {
  margin-bottom: 0.5rem;   /* increase number for more space */
}

.cta {
  background: #001872;
  color: #fff;
  padding: 0.8rem 1.4rem;
  border-radius: 0.4rem;
  text-decoration: none;
  font-weight: 600;
  display: inline-block; /* ensures transform works */
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

/* Add focus states for accessibility */
.cta:focus,
.menu a:focus {
  outline: 2px solid #4A90E2;
  outline-offset: 2px;
}

.cta:hover {
  background: #074da8;
  transform: scale(1.08);                /* larger zoom for visibility */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25); /* stronger shadow */
}

.mindmap-bg {
  display: flex;
  justify-content: center;
  border-radius: 1rem;
  overflow: hidden;
  width: auto;       /* allow image to use real width */
}

.mindmap-image {
  width: 700px;       /* real width */
  max-width: 100%;    /* scales down on small screens */
  min-width: 300px; /* optional, prevents image from shrinking too much on very small screens */
  height: auto;
  display: block;
  transition: transform 0.25s ease;
}

.mindmap-placeholder {
  color: #fff;
  font-weight: bold;
  text-shadow: 0 0 10px rgba(0,0,0,0.8);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .mindmap-bg {
    min-height: 300px;
  }
}
/* Clickable image container */
.cta-image {
  position: relative;      /* needed for overlay */
  display: inline-block;
  border-radius: 1rem;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Zoom + shadow on hover */
.cta-image:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
}

.overlay-text {
  position: absolute;
  pointer-events: none;
  background: #f5f7fa;
  color: #001872;
  font-family: "Segoe UI", sans-serif;
  font-weight: 600;       /* force same weight as buttons */
  font-size: 0.8rem;
  padding: 0.2rem 0.4rem;
  border-radius: 0.3rem;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.15s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  z-index: 10;
}

.hero {
  opacity: 0;
  transform: scale(0.98); /* slightly smaller */
  animation: fadeInHero 0.8s forwards ease-out;
}

@keyframes fadeInHero {
  to {
    opacity: 1;
    transform: scale(1);  /* back to normal size */
  }
}

.button-group {
  display: flex;
  flex-wrap: wrap; /* allows wrapping on small screens */
  gap: 2rem;       /* space between buttons */
  margin-top: 2.5rem;
}

.button-tooltip {
  position: absolute;
  pointer-events: none;      /* clicks go to the button */
  background: #f5f7fa;       /* same as overlay */
  color: #001872;            /* dark blue text */
  font-size: 0.8rem;
  padding: 0.2rem 0.4rem;
  border-radius: 0.3rem;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.15s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15); /* subtle shadow */
  z-index: 10;
}

/* Bottom buttons container */
.bottom-buttons {
  display: flex;
  justify-content: center;  /* centers the buttons horizontally */
  gap: 2rem;               /* space between buttons */
  padding: 3rem 0;          /* space above and below the buttons */
}

/* Individual buttons */
.bottom-btn img {
  width: 294px;
  height: 118px;
  object-fit: cover;       /* ensures the image fills the button without distortion */
  display: block;
  border-radius: 0.5rem;   /* optional: slightly rounded corners */
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Hover effect */
.bottom-btn:hover img {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0,0,0,0.25);
}

/* Responsive adjustments */
@media (max-width: 950px) {
  .bottom-buttons {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
}
.bottom-buttons {
  display: flex;
  justify-content: center;  /* centers buttons horizontally */
  gap: 2rem;               /* space between buttons */
  padding: 3rem 0;         /* space above and below buttons */
  /* background: #f5f7fa; */ /* remove this */
}

.bottom-btn img {
  width: 294px;
  height: 118px;
  object-fit: cover;
  display: block;
  border-radius: 0.5rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  
  /* subtle shadow */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.bottom-btn:hover img {
  transform: scale(1.05);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

.bottom-disclaimer {
  text-align: center;           /* center the text */
  font-size: 1rem;              /* set to 1rem */
  color: #555;                  /* subtle dark grey */
  margin: 0rem 0 2rem 0;        /* less space above, a bit below */
  font-family: "Segoe UI", sans-serif;
}

.bottom-disclaimer a {
  color: #001872;               /* match page link color */
  text-decoration: underline;   /* standard hyperlink look */
  font-weight: 600;             /* slightly bolder for emphasis */
}

.bottom-disclaimer a:hover {
  color: #1a3080;               /* darker on hover */
}

.footer-line {
  width: 1200px;                 /* line length */
  max-width: 100%;               /* responsive on smaller screens */
  height: 2px;                    /* thin line */
  background-color: #ccc;         /* grey color */
  margin: 1rem auto 1rem auto;   /* center horizontally, spacing above and below */
  box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* subtle shadow */
}

.bottom-copyright {
  text-align: center;
  font-size: 1rem;               /* same as disclaimer */
  color: #555;
  font-family: "Segoe UI", sans-serif;
  margin-bottom: 2rem;           /* space before page bottom */
}

/* Shared style for bottom buttons (both <a> and <form>) */
.bottom-buttons a.bottom-btn,
.bottom-buttons form {
  width: 294px;
  height: 118px;
  display: inline-block;
  border-radius: 0.5rem;       /* match your current style */
  overflow: hidden;            /* ensures shadows stay clipped */
  vertical-align: top;         /* aligns with other buttons */
  text-decoration: none;       /* only applies to <a> */
}

/* Images inside both types of buttons */
.bottom-buttons a.bottom-btn img,
.bottom-buttons form input[type="image"] {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25); /* base shadow */
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Hover effect for all buttons */
.bottom-buttons a.bottom-btn:hover img,
.bottom-buttons form input[type="image"]:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 24px rgba(0,0,0,0.25);
}

/* New class for smaller right-aligned mind map image */
.mindmap-right-small {
  width: 350px;          /* smaller size */
  max-width: 100%;       /* responsive on small screens */
  display: block;
  margin-left: auto;     /* push to the right */
  margin-right: 0;
  border-radius: 1rem;
  transition: transform 0.25s ease;
}

.mindmap-right-small:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 16px rgba(0,0,0,0.25);
}
