/* Root Variables */
:root {
  --color-primary: #008080;
  --color-primary-light: #e8fdfd;
  --color-text: #222;
  --color-text-light: #444;
  --color-bg: #ffffff;
  --color-card-bg: #fff;
  --color-border: #ddd;
  --color-footer-bg: #f8f8f8;
  --color-cta-bg: #008080;
  --color-cta-text: #ffffff;
  --color-link-hover: #f1f1f1;
}

/* Header styles (untouched) */
#mainHeader {
  background-color: #ffffffd3;
  position: sticky;
  z-index: 100;
  top: 3px;
  margin-inline: 10px;
  border-radius: 18px;
  filter: drop-shadow(2px 3px rgba(224, 224, 224, 0.829));
  margin-bottom: 10px;
}

#headerContainer {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0.3rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-container {
  text-decoration: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.img-logo {
  width: 50px;
  cursor: pointer;
  display: block;
}

.logo {
  font-size: 1.9rem;
  color: var(--color-primary);
  font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
  margin: 0%;
} 

.logo span {
  color: var(--color-text-light);
  font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}

.main-nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.main-nav a {
  color: var(--color-text);
  text-decoration: none;
  font-size: 1rem;
  position: relative;
  transition: color var(--transition);
}

.main-nav a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  height: 2px;
  width: 0%;
  background-color: var(--color-text);
  transition: width 0.3s;
}

.main-nav a:hover::after {
  width: 100%;
}

.main-nav .cta {
  background-color: var(--color-primary);
  color: white;
  padding: 0.5rem 1.4rem;
  border-radius: 15px;
  font-weight: 500;
}

.main-nav .cta:hover {
  background-color: var(--color-primary-light);
  color: var(--color-primary);

}

.main-nav .cta::after {
  content: "";
  position: absolute;
  bottom: 0px;
  left: 0;
  height: 0px;
  width: 0%;
  background-color: var(--color-text);
}

.main-nav .logout-btn {
  color: var(--color-error);
  font-weight: 500;
}

/* ---------- Animated hamburger (desktop hidden, mobile shows) ---------- */
.menu-icon {
  display: none;              /* shown on mobile via media query */
  width: 38px;
  height: 28px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  z-index: 1200;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.menu-icon span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 8px;
  transition: transform 0.38s cubic-bezier(.22,.9,.2,1), opacity 0.25s ease;
  transform-origin: center;
}

/* hamburger -> X */
.menu-toggle:checked + .menu-icon span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.menu-toggle:checked + .menu-icon span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0.2);
}
.menu-toggle:checked + .menu-icon span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ensure default (reverse) transition when unchecked */
.menu-toggle + .menu-icon span {
  transform: none;
  opacity: 1;
}

/* Make the checkbox visually hidden but still accessible */
.menu-toggle {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Mobile Responsive (override and enhancements) ---------- */
@media (max-width: 768px) {



  /* show the hamburger on mobile */
  .menu-icon {
    display: flex;
    flex-direction: column;
  }

  /* Mobile nav overlay (animated) */
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #ffffff;
    max-width: 100vw;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 14px 12px;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0px 4px 4px var(--color-text-light);
    border-radius: 18px;
    margin-top: 8px;

    /* hidden by default but keep it accessible for transitions */
    display: flex;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition: max-height 400ms cubic-bezier(.22,.9,.2,1), opacity 280ms ease, transform 320ms cubic-bezier(.22,.9,.2,1);
  }

  /* When checkbox is checked -> show the nav */
  .menu-toggle:checked + .menu-icon + .main-nav {
    max-height: 420px; /* enough to contain links; adjust if you add more links */
    opacity: 1;
    transform: translateY(0);
  }

  /* Make nav links look like buttons on mobile */
  .main-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: calc(100% - 2rem); /* leaves a little padding */
    padding: 10px 14px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 1px 0 rgba(0,0,0,0.02);
    transition: transform 120ms ease, box-shadow 180ms ease, background 180ms ease;
    width: 60%;
  }

  /* default style for normal nav links */
  .main-nav a:not(.cta) {
    background: transparent;
    color: var(--color-text);
    border: 1px solid transparent;
  }

  /* cta button (keep primary look) */
  .main-nav a.cta {
    background: var(--color-cta-bg);
    color: var(--color-cta-text);
    width: 60%;
  }

  /* subtle hover/active affordance for mobile buttons */
  .main-nav a:active {
    transform: translateY(1px);
  }
  .main-nav a:hover,
  .main-nav a:focus {
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  }

  /* increase spacing for visual clarity on mobile */
  .main-nav a + a {
    margin-top: 6px;
  }
}



/* --------------------------- */
/* Footer styles - fully updated */
/* --------------------------- */

/* Footer styles */

.site-footer {
  background-color: var(--color-primary);
  color: #e0e7e7;
  /* light gray */
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  user-select: none;
  padding-top: 2.5rem;
  padding-bottom: 1rem;
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 3rem;
  padding: 0 1.5rem;
}

.footer-links,
.footer-contact {
  flex: 1 1 300px;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-links h3,
.footer-contact h3 {
  font-weight: 700;
  font-size: 1.3rem;
  color: #4ddbdb;
  /* bright teal */
  letter-spacing: 0.04em;
  margin-bottom: 0.6rem;
  text-transform: uppercase;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 2rem;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.footer-links ul li {
  margin: 0;
}

.footer-links ul li a {
  color: #c7dbdb;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.footer-links ul li a:hover,
.footer-links ul li a:focus {
  color: #004d4d;
  background-color: #4ddbdb;
  outline: none;
  text-decoration: none;
  box-shadow: 0 0 8px #4ddbdbaa;
}

.footer-contact p {
  margin: 0;
  font-size: 1rem;
  color: #c7dbdb;
}

.footer-contact a {
  color: #4ddbdb;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.footer-contact a:hover,
.footer-contact a:focus {
  color: #82f7f7;
  text-decoration: underline;
  outline: none;
}

.footer-social {
  margin-top: 1rem;
  display: flex;
  gap: 1.3rem;
}

.footer-social a {
  color: #c7dbdb;
  font-size: 1.7rem;
  transition: color 0.3s ease;
}

.footer-social a:hover,
.footer-social a:focus {
  color: #4ddbdb;
  outline: none;
  filter: drop-shadow(0 0 3px #4ddbdb);
  transform: scale(1.1);
}

.footer-bottom {
  padding: 0.1rem 1.5rem;
  text-align: center;
  font-size: 1rem;
  color: #a9c9c9;
  user-select: none;
}

/* Responsive footer */
@media (max-width: 1000px) {
  .footer-links ul {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Responsive footer */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    gap: 2rem;
    padding: 0 1rem;
  }

  .footer-links ul {
    justify-content: center;
  }

  .footer-links,
  .footer-contact {
    align-items: flex-start;
    max-height: fit-content;
  }
}