/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  /* JS will update padding-top dynamically */
  padding-top: 110px;
  /* fallback if JS is disabled */
  transition: padding-top 0.2s ease-in-out;
}

/* Sticky Header */
.header-wrapper {
  background-color: #4CAF50;
  color: white;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

.header-left h1 {
  font-size: 24px;
}

.hamburger {
  display: none;
  font-size: 28px;
  cursor: pointer;
  background: none;
  border: none;
  color: white;
}

/* Nav */
.nav-buttons {
  display: flex;
  justify-content: center;
  background-color: #45a049;
  transition: all 0.3s ease-in-out;
}

.nav-buttons a {
  color: white;
  padding: 14px 20px;
  text-decoration: none;
  display: block;
  font-size: 16px;
}

.nav-buttons a:hover {
  background-color: #3e8e41;
}

/* Mobile Navigation overlay */
@media screen and (max-width: 768px) {
  .header-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: transparent;
  }

  .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background-color: #4CAF50;
    z-index: 1002;
  }

  .hamburger {
    display: block;
    font-size: 26px;
    cursor: pointer;
    background: none;
    border: none;
    color: white;
    z-index: 1003;
  }

  .nav-buttons {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    background-color: #45a049;
    z-index: 1001;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    pointer-events: auto;
  }

  .nav-buttons.active {
    display: flex;
  }

  .nav-buttons a {
    padding: 14px 18px;
    display: block;
    width: 100%;
    text-align: center;
    color: white;
    text-decoration: none;
    font-size: 16px;
  }

  .nav-buttons a:hover {
    background-color: #3e8e41;
  }

  body {
    transition: padding-top 0.15s ease-in-out;
  }
}

/* Prevent slides or main content overlapping header/nav */
main,
.slideshow-container {
  z-index: 0;
  position: relative;
}


/* Auth Container */
.auth-container {
  max-width: 450px;
  margin: 40px auto;
  padding: 30px 25px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.auth-container h2 {
  text-align: center;
  margin-bottom: 25px;
  font-size: 24px;
}

.auth-container form label {
  display: block;
  margin-top: 15px;
  font-weight: 600;
  font-size: 15px;
}

.auth-container input,
.auth-container select {
  width: 100%;
  padding: 12px 14px;
  margin-top: 6px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
  transition: border 0.3s ease;
  appearance: none;
}

.auth-container input:focus,
.auth-container select:focus {
  border-color: #4CAF50;
  outline: none;
}

/* Password Input Styling */
.password-container {
  position: relative;
}

.password-container input {
  padding-right: 40px;
}

.toggle-icon {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  cursor: pointer;
  color: #666;
  font-size: 18px;
  height: 100%;
  display: flex;
  align-items: center;
}

/* Button Styling */
.auth-container button,
.auth-container input[type="submit"] {
  width: 100%;
  margin-top: 25px;
  padding: 14px;
  background-color: #4CAF50;
  color: white;
  border: none;
  font-size: 16px;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.auth-container button:hover,
.auth-container input[type="submit"]:hover {
  background-color: #45a049;
}

/* Messages */
.message {
  margin-top: 15px;
  font-size: 14px;
  padding: 10px;
  border-radius: 5px;
}

.message.success {
  background-color: #e6f9e6;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}

.message.error {
  background-color: #fdecea;
  color: #c62828;
  border: 1px solid #f44336;
}

/* Responsive Forms */
@media screen and (max-width: 480px) {
  .auth-container {
    padding: 20px 15px;
    margin: 20px;
  }

  .auth-container h2 {
    font-size: 20px;
  }

  .auth-container form label {
    font-size: 14px;
  }

  .auth-container input,
  .auth-container select {
    font-size: 15px;
  }

  .toggle-icon {
    font-size: 16px;
  }
}

/* About Us Page */
.about-container {
  max-width: 800px;
  margin: 40px auto;
  padding: 30px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.about-container h2 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 26px;
  color: #333;
}

.about-container p {
  font-size: 16px;
  line-height: 1.6;
  margin: 15px 0;
  color: #444;
}

.about-section {
  margin-top: 25px;
}

.about-section h3 {
  color: #4CAF50;
  margin-bottom: 10px;
  font-size: 20px;
}

.about-section ul {
  margin-left: 20px;
  list-style: disc;
  color: #333;
}

.contact-box {
  background: #f9f9f9;
  border-left: 4px solid #4CAF50;
  padding: 15px;
  border-radius: 8px;
}

.contact-box a {
  color: #4CAF50;
  text-decoration: none;
}

.contact-box a:hover {
  text-decoration: underline;
}

/* Footer */
.footer {
  margin-top: 40px;
  padding: 15px;
  text-align: center;
  background: #4CAF50;
  color: #fff;
  font-size: 14px;
}