/* =======================
   GLOBAL STYLES
======================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  background: #f8f9fa;
  color: #333;
}

a {
  text-decoration: none;
  color: inherit;
}

/* =======================
   NAVIGATION ACTIVE LINK
======================= */
.nav-links a.active {
  border-bottom: 2px solid #c49b63; /* brown accent */
  padding-bottom: 3px;
  font-weight: bold;
  color: #c49b63;
}

/* =======================
   RED FLAGS (Trusted Community)
======================= */
.red-flags {
  background: #f9f9f9;
  padding: 50px 20px;
}

.red-flags h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 30px;
  color: #222;
}

.red-flags-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.flag-item {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.flag-item:hover {
  transform: translateY(-4px);
}

.flag-item .icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 10px;
  color: #c49b63; /* brand accent */
}

.flag-item p {
  font-size: 1rem;
  font-weight: 500;
  color: #333;
}

/* =======================
   Trusted Community Page
======================= */
.hero {
  background: #333;
  color: #fff;
  padding: 60px 20px;
  text-align: center;
}
.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}
.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
}

.community-values {
  background: #f9f9f9;
  padding: 50px 20px;
  text-align: center;
}
.community-values h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
.community-values ul {
  list-style: none;
  padding: 0;
  max-width: 600px;
  margin: 0 auto;
}
.community-values li {
  font-size: 1.1rem;
  margin: 10px 0;
}

.testimonials {
  padding: 50px 20px;
  background: #fff;
  text-align: center;
}
.testimonials h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
.testimonials blockquote {
  border-left: 4px solid #c49b63; /* accent colour */
  background: #fdfdfd;
  padding: 20px;
  margin: 20px auto;
  max-width: 600px;
  font-style: italic;
}
.testimonials cite {
  display: block;
  margin-top: 10px;
  font-weight: bold;
  color: #555;
}

.join-call {
  background: #c49b63; /* brown accent */
  color: #fff;
  text-align: center;
  padding: 60px 20px;
}
.join-call h2 {
  font-size: 2rem;
  margin-bottom: 15px;
}
.join-call p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}
.join-call .btn {
  display: inline-block;
  background: #222;
  color: #fff;
  padding: 12px 25px;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s ease;
}
.join-call .btn:hover {
  background: #000;
}

/* =======================
   HEADER & NAVBAR
======================= */
header {
  background: #222;
  padding: 15px 20px;
  position: relative;
  z-index: 10;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: auto;
  position: relative;
  z-index: 10;
}

.logo-img {
  height: 80px;
  width: auto;
  display: block;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  transition: all 0.3s ease-in-out;
}

.nav-links li a {
  color: #f2f2f2;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.nav-links li a:hover {
  color: #ffcc00;
}

.btn-login {
  background: #ffcc00;
  color: #222 !important;
  padding: 6px 14px;
  border-radius: 5px;
  font-weight: bold;
}

.hamburger {
  display: none;
  font-size: 28px;
  color: #f2f2f2;
  cursor: pointer;
}

/* =======================
   HERO SECTION (Homepage)
======================= */
.hero {
  background: url('../images/header-banner.png') no-repeat center center;
  background-size: cover;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}
.hero > div {
  position: relative;
  z-index: 2;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}
.hero h1 {
  font-size: 2.5rem;
  max-width: 800px;
  margin-bottom: 15px;
}
.hero p {
  font-size: 1.2rem;
  margin-bottom: 25px;
}
.cta-button {
  background: #ffcc00;
  color: #222;
  padding: 12px 24px;
  font-size: 1.1rem;
  border-radius: 5px;
  font-weight: bold;
  display: inline-block;
  transition: background 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  border: none;
  cursor: pointer;
}
.cta-button:hover {
  background: #e6b800;
  transform: translateY(-2px);
}

/* =======================
   FAQ PAGE STYLES
======================= */
.faq-page {
  background: #f0f4f8;
  padding: 40px 20px;
}
.faq-page h1 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 2.5rem;
  color: #2c3e50;
}
.faq-page p {
  max-width: 800px;
  margin: 0 auto 30px auto;
  text-align: center;
  font-size: 1.1rem;
  color: #555;
}
.faq-list {
  max-width: 900px;
  margin: auto;
}
.faq-list h2 {
  margin: 40px 0 20px;
  color: #8e44ad;
}
details {
  background: #fff;
  border-radius: 10px;
  margin-bottom: 15px;
  padding: 15px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
  transition: all 0.3s ease-in-out;
}
details:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  background: #fdfdfd;
}
details summary {
  font-weight: bold;
  cursor: pointer;
  color: #2980b9;
  font-size: 1.1rem;
}
details p {
  margin-top: 10px;
  font-size: 1rem;
  color: #333;
  line-height: 1.5;
}
/* FAQ links */
.faq-list a {
  color: #e67e22;
  font-weight: 600;
  text-decoration: underline;
  transition: color 0.3s ease;
}
.faq-list a:hover {
  color: #c0392b;
}

/* =======================
   CREDITS DISPLAY
======================= */
.credits-display {
  color: #ffcc00;
  font-weight: bold;
  padding: 6px 10px;
}

/* =======================
   FEATURES SECTION
======================= */
.features {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.feature {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}
.feature a {
  display: block;
  height: 100%;
  width: 100%;
}
.feature .icon {
  color: #ffcc00;
  margin-bottom: 15px;
  transition: color 0.3s ease, transform 0.3s ease;
}
.feature:hover .icon {
  color: #e6b800;
  transform: scale(1.2);
}
.feature h3 {
  margin-bottom: 10px;
  color: #222;
}
.feature:nth-of-type(1) { background-color: #d4edda; }
.feature:nth-of-type(2) { background-color: #fff3cd; }
.feature:nth-of-type(3) { background-color: #d1ecff; }

/* =======================
   TESTIMONIALS SECTION
======================= */
.testimonials {
  background: #ffcc00;
  padding: 40px 20px;
  text-align: center;
}
.testimonials h2 {
  color: #222;
  margin-bottom: 20px;
}
.testimonial {
  max-width: 600px;
  margin: auto;
  font-style: italic;
  color: #333;
}

/* =======================
   FOOTER
======================= */
.site-footer {
  background: #222;
  color: #f2f2f2;
  padding: 40px 20px 20px;
  margin-top: 40px;
}
.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 30px;
}
.footer-about,
.footer-links,
.footer-contact {
  flex: 1 1 250px;
}
.footer-logo {
  max-width: 150px;
  height: auto;
  display: block;
}
.footer-about p,
.footer-contact p {
  color: #bbb;
  margin: 5px 0;
  font-size: 0.9rem;
}
.footer-links h4,
.footer-contact h4 {
  margin-bottom: 10px;
  font-size: 1.1rem;
  color: #fff;
}
.footer-links ul {
  list-style: none;
  padding: 0;
}
.footer-links ul li {
  margin-bottom: 6px;
}
.footer-links ul li a {
  color: #bbb;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links ul li a:hover {
  color: #ffcc00;
}
.footer-social a {
  color: #bbb;
  margin-right: 12px;
  transition: color 0.2s;
}
.footer-social a:hover {
  color: #ffcc00;
}
.footer-bottom {
  text-align: center;
  margin-top: 20px;
  font-size: 0.85rem;
  color: #aaa;
  border-top: 1px solid #444;
  padding-top: 15px;
}

/* =======================
   MAIN CONTENT AREA
======================= */
main {
  min-height: calc(100vh - 140px);
  padding: 40px 20px;
}

/* =======================
   FORM STYLES
======================= */
form {
  max-width: 700px;
  margin: 40px auto;
  padding: 30px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
form h2 {
  margin-bottom: 15px;
  color: #222;
}
form p {
  margin-bottom: 20px;
  font-size: 0.95rem;
  color: #555;
}
form label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #333;
  font-size: 1rem;
}
form input[type="text"],
form input[type="email"],
form input[type="password"],
form input[type="date"],
form textarea,
form select {
  width: 100%;
  padding: 12px;
  margin-bottom: 20px;
  border: 2px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
form input:focus,
form textarea:focus,
form select:focus {
  outline: none;
  border-color: #ffcc00;
  box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.1);
}
form textarea {
  min-height: 100px;
  resize: vertical;
}
form input[type="checkbox"] {
  margin-right: 8px;
  transform: scale(1.2);
}
form button {
  background: #ffcc00;
  color: #222;
  padding: 15px 25px;
  font-size: 1.1rem;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}
form button:hover {
  background: #e6b800;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
.error-messages {
  background: #f8d7da;
  color: #721c24;
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 25px;
  border-left: 4px solid #dc3545;
}
.success-messages {
  background: #d4edda;
  color: #155724;
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 25px;
  border-left: 4px solid #28a745;
}

/* =======================
   FORM LAYOUT HELPERS
======================= */
.form-row {
  display: grid;
  gap: 20px;
  margin-bottom: 10px;
}
.form-row.two-cols {
  grid-template-columns: 1fr 1fr;
}
.form-row.three-cols {
  grid-template-columns: 1fr 1fr 1fr;
}
.form-helper {
  display: block;
  color: #666;
  font-size: 0.85rem;
  margin-top: -15px;
  margin-bottom: 20px;
}
.auth-footer {
  text-align: center;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}
.auth-footer a {
  color: #ffcc00;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s ease;
}
.auth-footer a:hover {
  color: #e6b800;
  text-decoration: underline;
}

/* =======================
   RESPONSIVE
======================= */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }
  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    background: #333;
    position: absolute;
    top: 60px;
    right: 20px;
    width: 220px;
    display: none;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 999;
  }
  .nav-links.show {
    display: flex;
  }
  .hero {
    height: 400px;
    padding: 10px;
  }
  .hero h1 {
    font-size: 1.8rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .cta-button {
    padding: 10px 20px;
    font-size: 1rem;
  }
  .features {
    grid-template-columns: 1fr;
    margin: 30px auto;
  }
  .testimonials {
    padding: 30px 15px;
  }
  main {
    padding: 20px 10px;
  }
  .form-section {
    padding: 20px;
    margin: 0 10px;
  }
  .form-section h1 {
    font-size: 1.8rem;
  }
  .form-row.two-cols,
  .form-row.three-cols {
    grid-template-columns: 1fr;
  }
  form {
    padding: 20px;
    margin: 20px auto;
  }
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-about,
  .footer-links,
  .footer-contact {
    flex: 1 1 100%;
    margin-bottom: 20px;
  }
  .footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .footer-social {
    margin-top: 10px;
  }
}
