:root {
  --blue: #1CA3DB;
  --green: #21A44E;
  --navy: #001835;
  --gray: #838385;
  --font-stack: Calibri, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  font-family: var(--font-stack);
  font-size: 20px;
  color: var(--navy);
  background-color: #fff;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

a {
	color: var(--blue);
	text-decoration: none;
}

a:hover {
	color: var(--green);
	text-decoration: underline;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 150px;
  padding: 0 20px;
  background-color: var(--gray);
  box-sizing: border-box;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-box {
  width: 150px;
  display: flex;
  align-items: center;
}

.title-box {
  flex: 1;
  text-align: center;
  font-size: 36px;
  font-weight: bold;
  color: var(--navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  /* no margin-left here */
}

.logo-box img {
  height: 150px;
  width: auto;
}

/* 👇 Balance the layout */
.menu-box {
  width: 150px; /* Same as logo image height */
  display: flex;
  justify-content: flex-end;
  align-items: center;
  font-size: 38px;
  color: var(--navy);
  cursor: pointer;
}

main section {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
  text-align: justify;
}

footer {
  padding: 20px;
  background-color: var(--gray);
}

.cta-button {
  padding: 12px 24px;
  font-size: 18px;
  border: 2px solid var(--navy);
  background-color: var(--blue);
  color: white;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s;
  margin: 20px auto;
  display: inline-block;
  text-decoration: none;
  text-align: center;
}

.cta-button:hover {
  background-color: var(--green);
}

.cta-buttons {
  text-align: center;
  margin-top: 20px;
}

.page-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  z-index: -1;
  opacity: var(--bg-opacity, 0.3); /* customizable per page */
}

footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px; /* adjust if needed */
  background-color: var(--gray);
  color: var(--navy);
  text-align: center;
  padding-top: 20px;
  font-size: 14px;
  z-index: 10;
}

main {
  padding-top: 160px;  /* room for fixed header */
  padding-bottom: 80px; /* room for fixed footer */
  position: relative;
  z-index: 1;
}

.menu-overlay {
  position: absolute;
  top: 20px;
  right: 20px;
  background: white;
  border: 2px solid var(--navy);
  border-radius: 12px;
  padding: 20px;
  z-index: 1000;
  display: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.menu-overlay ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-overlay li {
  margin: 12px 0;
  font-size: 18px;
}

.menu-overlay li a {
  display: block;
  padding: 10px 15px;
  color: var(--navy);
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.2s;
}

.menu-overlay li a:hover {
  background-color: rgba(0, 24, 53, 0.1);
}

/* =========================
   Mobile & Tablet Tweaks
   ========================= */

/* Tablets and small laptops */
@media (max-width: 1024px) {
  .title-box {
    font-size: 28px;
  }
  main section {
    margin: 30px auto;
  }
}

/* Phones (portrait & small landscape) */
@media (max-width: 768px) {
  .title-box { display: none; } /* hide header title on mobile */
  body { font-size: 16px; }     /* slightly smaller body text */

@media (max-width: 768px) {
  header {
    height: 100px;
    padding: 0 12px;
  }

  .logo-box { width: 100px; }
  .logo-box img { height: 100px; }

  .menu-box {
    width: 100px;
    font-size: 32px;
  }

  .title-box {
    font-size: 22px;
    white-space: normal;     /* allow wrapping */
    line-height: 1.2;
    padding: 0 8px;
  }

  main {
    padding-top: 110px;      /* header + a bit of spacing */
    padding-bottom: 110px;    /* extra buffer so CTA clears footer */
  }

  main section {
    max-width: 100%;
    margin: 20px 10px;
    padding: 0 6px;
    text-align: left;        /* better readability on phones */
  }

  body { font-size: 18px; }

  .menu-overlay {
    top: calc(100% + 8px);   /* drop just below header */
    right: 10px;
    width: 85vw;
    padding: 14px;
  }

  .menu-overlay li { font-size: 16px; }

  .cta-button {
    display: block;
    width: 100%;
    box-sizing: border-box;
    font-size: 14px; /* smaller text like styles.css */
    padding: 10px 14px; /* reduced padding for mobile */
  }

  .page-background {
    background-attachment: scroll; /* smoother on mobile */
  }

  footer {
    height: 54px;
    padding-top: 16px;
    font-size: 13px;
  }
}

/* Small phones (<=480px) */
@media (max-width: 480px) {
  .title-box { display: none; } /* hide header title on small phones */
  body { font-size: 15px; }     /* slightly smaller text for small phones */

@media (max-width: 480px) {
  header {
    height: 80px;
  }

  .logo-box { width: 80px; }
  .logo-box img { height: 80px; }

  .menu-box {
    width: 80px;
    font-size: 28px;
  }

  .title-box {
    font-size: 18px;
    padding: 0 6px;
  }

  main {
    padding-top: 90px;      /* match shorter header */
    padding-bottom: 104px;
  }

  .menu-overlay {
    right: 8px;
    width: 88vw;
  }
}
