:root {
  --teal: #007B7F;
  --gold: #D4A14B;
  --green: #2E5339;
  --navy: #1F3A54;
  --white: #FFFFFF;
  --gray-bg: #F9F9F9;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: var(--gray-bg);
  color: var(--navy);
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--teal);
  padding: 10px 20px;
  position: relative;
}

.logo img {
  /* fluidly scale between 80px and 200px based on viewport width */
  width: clamp(80px, 10vw, 200px);
  height: auto;
}

.nav-links {
  list-style: none;
  display: flex;
}

.nav-links li {
  position: relative;
  margin: 0 15px;
}

.nav-links li a {
  color: var(--white);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.25s ease, text-decoration 0.25s ease;
}

.nav-links li a:hover {
  color: var(--gold);
  text-decoration: underline;
}

/* Hidden Dropdown Base */
.nav-links .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  list-style: none;
  padding: 8px 0;
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 100;
}

/* Reveal on hover or active */
.nav-links .dropdown:hover .dropdown-menu,
.nav-links .dropdown.active .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Dropdown items */
.nav-links .dropdown-menu li a {
  display: block;
  padding: 8px 16px;
  color: var(--navy);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-links .dropdown-menu li a:hover {
  background: var(--gray-bg);
  color: var(--teal);
}

/* Arrow styling & rotation */
.nav-links .dropdown > a .arrow {
  display: inline-block;
  margin-left: 4px;
  transition: transform 0.3s ease, color 0.3s ease;
  color: var(--white);
}

.nav-links .dropdown:hover > a .arrow,
.nav-links .dropdown.active > a .arrow {
  transform: rotate(180deg);
  color: var(--gold);
}

/* Hero Section */
.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 40px 20px;
  max-width: 1200px;
  margin: auto;
}

.hero-content {
  flex: 1 1 400px;
  padding: 20px;
}

.hero-content h1 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.hero-content p {
  margin-bottom: 20px;
  line-height: 1.5;
}

.btn {
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 5px;
  font-weight: bold;
}

.btn-primary {
  background-color: var(--teal);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--green);
}

.hero-image {
  flex: 1 1 400px;
  padding: 20px;
}

.hero-image img {
  width: 100%;
  border-radius: 8px;
}

/* Reforms Section */

.reforms {
  padding: 40px 20px;
  max-width: 1200px;
  margin: auto;
}

.reforms h2 {
  text-align: center;
  margin-bottom: 30px;
  color: var(--navy);
}

.reform-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.4s ease;
  cursor: pointer;
}

.reform-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.reform-text {
  flex: 1;
  padding-right: 20px;
}

.reform-text h3 {
  margin-bottom: 10px;
  color: var(--white);
  transition: color 0.25s ease;
}

.reform-text p {
  color: var(--white);
  line-height: 1.4;
  transition: color 0.25s ease;
}

.reform-card:hover .reform-text h3 {
  text-decoration: underline;
  color: #fefefe;
}

.reform-card:hover .reform-text p {
  color: #f0f0f0;
}

.reform-icon img {
  width: 80px;
  height: auto;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.reform-card:hover .reform-icon img {
  transform: scale(1.15) rotate(3deg);
  filter: brightness(1.15);
}

/* Gradient Backgrounds */
.reform-card.gold {
  background: linear-gradient(135deg, #D4A14B, #e6b867);
}

.reform-card.gold:hover {
  background: linear-gradient(135deg, #e6b867, #f2d08a);
}

.reform-card.green {
  background: linear-gradient(135deg, #2E5339, #3f6b4a);
}

.reform-card.green:hover {
  background: linear-gradient(135deg, #3f6b4a, #5a8c66);
}

.reform-card.teal {
  background: linear-gradient(135deg, #007B7F, #009ca1);
}

.reform-card.teal:hover {
  background: linear-gradient(135deg, #009ca1, #00bfc5);
}

/* Join Section */
.join {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  padding: 40px 20px;
  max-width: 1200px;
  margin: auto;
  gap: 40px;
}

.join-form {
  flex: 1 1 400px;
  background-color: var(--white);
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.join-form h2 {
  margin-bottom: 15px;
  color: var(--green);
}

.join-form label {
  display: block;
  margin-top: 10px;
  font-weight: bold;
}

.join-form input,
.join-form textarea {
  width: 100%;
  padding: 8px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.join-form button {
  margin-top: 15px;
}

.btn-secondary {
  background-color: var(--teal);
  color: var(--white);
  border: none;
  cursor: pointer;
}

.btn-secondary:hover {
  background-color: var(--green);
}

.join-image {
  flex: 1 1 400px;
  position: relative;
}

.join-image img {
  width: 100%;
  border-radius: 8px;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(31, 58, 84, 0.6);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  text-transform: uppercase;
  border-radius: 8px;
}

/* Responsive */
@media (max-width: 768px) {
  .hero, .join, .reforms, .reform-card {
    flex-direction: column;
    text-align: center;
  }

  .reform-text {
    padding-right: 0;
    margin-bottom: 15px;
  }

  .reform-icon img {
    margin-top: 10px;
  }
}
