:root {
  --navy: #003866;
  --teal: #0ea5a4;
  --aqua: #48cae4;
  --content-color: #012a4a;
  --link-color: #0077b6;
  --link-hover: #0096c7;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: var(--content-color);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header */
/* Base header for all pages */
header.top-menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  height: 60px;
  width: 100%;
  z-index: 10;
  position: relative;
  background-color: #003866; /* fully opaque by default */
}

/* Only homepage (banner page) header */
body.index-page header.top-menu {
  background: linear-gradient(to right, #524c51, #8b6f5f, #544c4e);
}

header.top-menu .header-logo {
  display: flex;
  align-items: center;
  height: 100%;
}

.header-logo img {
  height: 50px;
  width: auto;
  max-width: 100%;
  display: block;
  flex-shrink: 0;
}

header.top-menu nav {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: flex-end;
}

header.top-menu nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
}

header.top-menu nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  padding: 0.5rem 1rem;
  white-space: nowrap;
}

header.top-menu nav ul li a:hover {
  background-color: var(--link-hover);
  border-radius: 4px;
}

@media (max-width: 600px) {
  header.top-menu {
    flex-wrap: wrap;
    height: auto;
    padding: 0.5rem 1rem;
  }
  header.top-menu nav {
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
  }
  header.top-menu nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }
}

/* Banner Section with parallax bg */
.banner {
  position: relative;
  margin-top: -60px;   /* overlap header */
  padding-top: 60px;   /* space for header */
  height: 80vh;
  overflow: hidden;
}

.banner .hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  background-image: url('../static/banner_sea.jpg');
  background-size: cover;
  background-position: center;
  will-change: transform;
  z-index: 1;
  transform: translateY(0);
}

.banner .hero {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.banner .hero .content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1rem;
}

.banner .content h1,
.banner .content p {
  color: #ffffff;
  text-shadow:
    2px 2px 4px rgba(0,0,0,0.7),   /* bottom-right shadow */
    -2px -2px 4px rgba(0,0,0,0.7), /* top-left shadow */
    2px -2px 4px rgba(0,0,0,0.7),  /* top-right shadow */
    -2px 2px 4px rgba(0,0,0,0.7);  /* bottom-left shadow */
}



.banner .hero h1 {
  font-size: clamp(1.6rem, 4vw, 3rem);
  margin-bottom: 0.5rem;
}

.banner .hero p {
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  margin-bottom: 0.5rem;
}

.banner .hero nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.banner .hero nav a {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  background-color: var(--link-color);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.banner .hero nav a:hover {
  background-color: var(--link-hover);
}






/* About Section */
.about {
  padding: 3rem 1rem 3rem;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.about h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

/* Footer */
.footer-menu {
  position: relative;
  background-color: var(--navy);
  color: #fff;
  text-align: center;
  padding: 1.3rem 0 0;
  flex-shrink: 0;
}

.footer-menu .waves {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 180px;
  pointer-events: none;
  z-index: 1;
}

.footer-menu nav,
.footer-menu p {
  position: relative;
  z-index: 2;
}

.footer-menu nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.footer-menu nav a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  padding: 0.4rem 0.8rem;
}

.footer-menu nav a:hover {
  background-color: var(--link-hover);
  border-radius: 4px;
}

.footer-menu p {
  margin: 0;
  font-size: 0.7rem;
  font-weight: normal;
  color: #fff;
}

.footer-menu p a {
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  text-decoration: none;
}

.footer-menu p a:hover {
  text-decoration: underline;
}

/* Certificate form page */
.certificate-form-page {
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: linear-gradient(180deg, rgba(6,42,78,0.05) 0%, rgba(8,88,122,0.02) 100%);
}

.certificate-form-section {
  background-color: #ffffff;
  padding: 2.5rem 3rem;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  max-width: 480px;
  width: 100%;
  text-align: center;
}

.certificate-form-section h1 {
  margin-bottom: 1rem;
  font-size: 1.8rem;
  color: var(--content-color);
}

.certificate-form-section p {
  margin-bottom: 2rem;
  font-size: 1rem;
  color: var(--content-color);
}

.certificate-form label {
  display: block;
  text-align: left;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: var(--content-color);
}

.certificate-form input {
  width: 100%;
  padding: 0.65rem 0.8rem;
  margin-bottom: 1.5rem;
  border: 1px solid #0077b6;
  border-radius: 6px;
  font-size: 1rem;
  outline: none;
  transition: 0.2s border-color;
}

.certificate-form input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 5px rgba(14,165,164,0.4);
}

.certificate-form button {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: var(--teal);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.3s background-color;
}

.certificate-form button:hover {
  background-color: #009688;
}

.result-message {
  font-weight: bold;
  padding: 10px;
  border-radius: 5px;
  margin-top: 15px;
}

.result-message.valid {
  color: green;
  background-color: #e0ffe0;
}

.result-message.expired {
  color: orange;
  background-color: #fff4e0;
}

.result-message.notfound {
  color: red;
  background-color: #ffe0e0;
}

/* Flex layout */
main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

/* Responsive certificate page */
@media (max-width: 480px) {
  .certificate-form-section {
    padding: 1.5rem;
  }

  .certificate-form-section h1 {
    font-size: 1.5rem;
  }
}

/* Contact page */
.contact-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
  background-color: #f4f4f4;
}

.contact-info,
.contact-form {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 600px;
  padding: 2rem;
  margin-bottom: 2rem;

}

.contact-info h1,
.contact-form h2 {
  font-size: 1.8rem;
  color: #003366;
  margin-bottom: 1rem;
  text-align: center;
}

.contact-info p,
.contact-form label {
  font-size: 1rem;
  color: #333;
  margin-bottom: 0.5rem;
}

.contact-info a {
  color: #0066cc;
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

.contact-form button {
  width: 100%;
  padding: 0.75rem;
  background-color: #0066cc;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
}

.contact-form button:hover {
  background-color: #005bb5;
}


/* SHARED STYLES: CONTACT + FAQ BANNERS */
body.body-contact-page .contact-banner,
body.body-faq-page .faq-banner {
  position: relative;
  width: 100%;
  height: 80vh;
  margin-top: -60px;   /* pull banner up under header */
  padding-top: 60px;   /* keep content below header */
  overflow: hidden;
  z-index: 0;
}

body.body-contact-page .contact-hero-bg,
body.body-faq-page .faq-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transform: translateY(0);
}

/* separate images */
body.body-contact-page .contact-hero-bg {
  background-image: url("../static/coffee.jpg");
}

body.body-faq-page .faq-hero-bg {
  background-image: url("../static/faq.jpg"); /* <- use your faq image */
}

body.body-contact-page .contact-hero,
body.body-faq-page .faq-hero {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  color: #fff;
}

body.body-contact-page .contact-hero h1,
body.body-contact-page .contact-hero p,
body.body-faq-page .faq-hero h1,
body.body-faq-page .faq-hero p {
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
}

body.body-contact-page .contact-hero .content,
body.body-faq-page .faq-hero .content {
  padding-bottom: 50px;
}

/* Header always above banners */
body.body-contact-page header.top-menu,
body.body-faq-page header.top-menu {
  position: relative;
  z-index: 10;
}



/* Feedback form */
.feedback-form input,
.feedback-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--link-color);
  border-radius: 6px;
  font-size: 1rem;
  outline: none;
}

.feedback-form input:focus,
.feedback-form textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 5px rgba(14,165,164,0.4);
}

.feedback-form textarea {
  resize: vertical;
  min-height: 120px;
}

.feedback-form button {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: var(--teal);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
}

.feedback-form button:hover {
  background-color: #009688;
}

/* FAQ Page */
.faq-page {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  padding: 2rem;
  background-color: #f9f9f9;
  min-height: 80vh;
}

.faq-intro {
  text-align: center;
  margin-bottom: 2rem;
}

.faq-intro h1 {
  font-size: 2rem;
  color: #003366;
  margin-bottom: 0.5rem;
}

.faq-intro p {
  font-size: 1rem;
  color: #666;
}

.faq-list {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  width: 100%;
  max-width: 800px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  margin-bottom: 1rem;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 1rem;
  background-color: #003366;
  color: #fff;
  text-align: left;
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question:hover {
  background-color: #00509e;
}

.faq-answer {
  display: none;
  padding: 1rem;
  background-color: #f4f4f4;
}

.faq-answer p {
  margin: 0;
  padding: 0.5rem 0;
  line-height: 1.6;
  font-size: 1rem;
  color: #333;
}

.faq-answer ul {
  margin: 0.5rem 0 0.5rem 1.2rem;
  padding: 0;
}

.faq-answer li {
  margin-bottom: 0.3rem;
}

.faq-footer {
  text-align: center;
  margin-top: 2rem;
}

.faq-footer p {
  font-size: 1rem;
  color: #666;
}

.faq-footer a {
  color: #003366;
  text-decoration: none;
}

.faq-footer a:hover {
  text-decoration: underline;
}

.faq-question::after {
  content: '\25BC';
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.faq-question.active::after {
  transform: rotate(180deg);
}



/* Basic layout for registration page */
  /* Isolated styles for registration page */
    .register-page {
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 2rem;
      min-height: 80vh;
      background-color: #f9f9f9;
    }

    .register-form-container {
      background-color: #fff;
      padding: 2.5rem 3rem;
      border-radius: 12px;
      box-shadow: 0 8px 25px rgba(0,0,0,0.1);
      max-width: 480px;
      width: 100%;
    }

    .register-form-container h1 {
      font-size: 1.8rem;
      margin-bottom: 0.5rem;
      color: var(--content-color, #012a4a);
      text-align: center;
    }

    .register-form-container p.description {
      font-size: 0.95rem;
      color: #333;
      margin-bottom: 1.5rem;
      line-height: 1.5;
    }

    .register-form label {
      display: block;
      font-weight: 600;
      margin-bottom: 0.3rem;
      color: var(--content-color, #012a4a);
    }

    .register-form input,
    .register-form select {
      width: 100%;
      padding: 0.65rem 0.8rem;
      margin-bottom: 1.5rem;
      border: 1px solid #0077b6;
      border-radius: 6px;
      font-size: 1rem;
      outline: none;
      transition: 0.2s border-color, 0.2s box-shadow;
    }

    .register-form input:focus,
    .register-form select:focus {
      border-color: var(--teal, #0ea5a4);
      box-shadow: 0 0 5px rgba(14,165,164,0.4);
    }

    .register-form button {
      width: 100%;
      padding: 0.75rem 1rem;
      background-color: var(--teal, #0ea5a4);
      color: #fff;
      border: none;
      border-radius: 8px;
      font-weight: 600;
      font-size: 1rem;
      cursor: pointer;
      transition: 0.3s background-color;
    }

    .register-form button:hover {
      background-color: #009688;
    }

    .form-section {
      margin-bottom: 1.5rem;
    }


    .form-section h2 {
      font-size: 1.2rem;
      margin-bottom: 0.8rem;
      color: var(--content-color, #012a4a);
    }

    .register-footer-links {
      text-align: center;
      margin-top: 1rem;
      font-size: 0.9rem;
    }

    .register-footer-links a {
      color: #0077b6;
      text-decoration: none;
      margin: 0 0.5rem;
    }

    .register-footer-links a:hover {
      text-decoration: underline;
    }

/* reCAPTCHA styling */
.g-recaptcha {
   margin: 0 0 1rem 0;        /* top=0, right=0, bottom=1rem, left=0 */
  display: flex;              /* use flex for alignment */
  justify-content: center;    /* center it horizontally */
  transform: scale(0.95);     /* slightly smaller */
  transform-origin: center;   /* keep scaling centered */
}

@media (max-width: 400px) {
  .g-recaptcha {
    transform: scale(0.85);   /* shrink more on small screens */
  }
}
