/* Importing Google font - Oswald */
@import url("https://fonts.googleapis.com/css2?family=Oswald:wght@300;400;500;700&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Open Sans", sans-serif;
}

/* Body and HTML to support sticky footer */
html {
  height: 100%;
}

body {
  width: 100%;
  min-height: 100%;
  background-color: white;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* Main content wrapper to push footer down */
.content-wrapper {
  flex: 1;
}

header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 10;
  padding: 0 0.625rem;
  background-color: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.navbar {
  display: flex;
  padding: 0.625rem 0; /* Reduce padding size */
  align-items: center;
  max-width: 75rem;
  margin: 0 auto;
  justify-content: space-between;
}
.navbar .hamburger-btn {
  display: none;
  color: #36a13a;
  cursor: pointer;
  font-size: 24px;
}
.navbar .logo {
  gap: 0.625rem;
  display: flex;
  align-items: center;
  text-decoration: none;
}
.navbar .logo img {
  width: 1.875rem; /* Reduce logo size */
  border-radius: 50%;
}
.navbar .logo h2 {
  font-weight: 600;
  font-size: 19.2px; /* Reduce font size */
}
.navbar .links {
  display: flex;
  gap: 1.25rem; /* Reduce gap size */
  list-style: none;
  align-items: center;
}
.navbar .close-btn {
  position: absolute;
  right: 1.25rem;
  top: 1.25rem;
  display: none;
  color: #000000;
  cursor: pointer;
}
/*for navigating link to make them different color */
.navbar .links a {
  font-size: 16px; /* Adjust font size */
  font-weight: 500;
  text-decoration: none;
  transition: 0.1s ease;
}
.navbar .links .aboutus-link {
  color: #2e8b57;
  font-size: small;
  font-weight: bolder;
}
.navbar .links .contactus-link {
  color: #2e8b57;
  font-size: small;
  font-weight: bolder;
}
.navbar .links .facebook-link {
  color: #2e8b57;
  font-size: small;
  font-weight: bolder;
}
/*change color when hover */
.navbar .links a:hover {
  color: #d63b3b;
}
.navbar .login-btn {
  border: none;
  outline: none;
  background: #36a13a;
  color: #fff;
  font-size: 14.4px; /* Adjust font size */
  font-weight: 600;
  padding: 0.5rem 1rem; /* Adjust padding */
  border-radius: 0.1875rem;
  cursor: pointer;
  transition: 0.15s ease;
}
.navbar .login-btn:hover {
  background: #ec202a;
  color: white;
}

/* For hamburger menu overlay */
.blur-bg-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  z-index: 5;
  transition: 0.2s ease;
}
.blur-bg-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* Section Container */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Section Headings */
section h2 {
  font-size: 32px;
  font-weight: 700;
  color: #302f2f;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

section h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, #ec202a, #36a13a, #fcbf06);
}

/* Hero Banner */
.contact-hero {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../assets/images/placeholder-story.jpg');
  background-size: cover;
  background-position: center;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 60px;
  text-align: center;
  color: white;
}

.hero-content h1 {
  font-size: 48px;
  margin-bottom: 15px;
  font-weight: 700;
}

.hero-content p {
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto;
}

/* Contact Info Section */
.contact-info {
  background-color: #f9f9f9;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.contact-item {
  background: white;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.contact-item:hover {
  transform: translateY(-10px);
}

.contact-icon {
  font-size: 40px;
  color: #36a13a;
  margin-bottom: 15px;
}

.contact-icon span {
  font-size: 48px;
}

.contact-item h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #333;
}

.contact-item p {
  color: #666;
}

/* FAQ Section */
.faq-section {
  background-color: white;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 15px;
  border: 1px solid #eee;
  border-radius: 5px;
  overflow: hidden;
}

.faq-question {
  padding: 15px 20px;
  background-color: #f9f9f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background 0.3s ease;
}

.faq-question:hover {
  background-color: #f0f0f0;
}

.faq-question h3 {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.toggle-icon {
  font-size: 24px;
  color: #36a13a;
  transition: transform 0.3s ease;
}

.faq-item.active .toggle-icon {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  padding: 15px 20px;
  max-height: 200px;
}

/* Footer */
footer {
  width: 100%;
  padding: 20px 0;
  text-align: center;
  background-color: #f9f9f9;
  margin-top: auto; /* Push to bottom of flex container */
}

.footer img {
  width: 150px;
  max-width: 100%;
  height: 50px;
  display: block;
  margin: 0 auto;
}

/* Media Queries */
@media (max-width: 950px) {
  .navbar :is(.hamburger-btn, .close-btn) {
    display: block;
  }
  .navbar {
    padding: 0.625rem 0;
  }
  .navbar .logo img {
    display: none;
  }
  .navbar .logo h2 {
    font-size: 16px;
  }
  .navbar .links {
    position: fixed;
    top: 0;
    z-index: 10;
    left: -100%;
    display: block;
    height: 100vh;
    width: 100%;
    padding-top: 3.75rem;
    text-align: center;
    background: #fff;
    transition: 0.2s ease;
  }
  .navbar .links.show-menu {
    left: 0;
  }
  .navbar .links a {
    display: inline-flex;
    margin: 1.25rem 0;
    font-size: 19.2px;
  }
  .navbar .links a:hover {
    color: #6f6f6f;
  }
  .navbar .login-btn {
    font-size: 12.8px;
    padding: 0.4375rem 0.625rem;
  }
  
  .hero-content h1 {
    font-size: 36px;
  }
  
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .contact-hero {
    height: 250px;
    margin-top: 50px;
  }
  
  .hero-content h1 {
    font-size: 32px;
  }
  
  .hero-content p {
    font-size: 16px;
  }
  
  .section-container {
    padding: 30px 20px;
  }
  
  section h2 {
    font-size: 28px;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .contact-item {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .contact-hero {
    height: 200px;
    margin-top: 40px;
  }
  
  .hero-content h1 {
    font-size: 28px;
  }
  
  .hero-content p {
    font-size: 14px;
  }
  
  .section-container {
    padding: 25px 15px;
  }
  
  section h2 {
    font-size: 24px;
    margin-bottom: 30px;
  }
  
  .contact-item {
    padding: 20px;
  }
  
  footer {
    padding: 15px 0;
    display: block; /* Show footer on mobile */
  }
  
  .faq-question h3 {
    font-size: 16px;
  }
}