* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-cyan: #17A2B8;
  --black: #000000;
  --white: #FFFFFF;
  --light-gray: #CCCCCC;
  --medium-gray: #888888;
  --text-white: rgba(255, 255, 255, 0.9);
}

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-white);
  background-color: var(--black);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

header {
  background-color: var(--black);
  padding: 0px 0;
  min-height: 100px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  height: 90px;
  margin-top: 10px;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

nav a {
  color: var(--white);
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s;
}

nav a:hover,
nav a.active {
  color: var(--primary-cyan);
}

.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--black);
  min-width: 160px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  z-index: 1;
  top: 100%;
  left: 0;
}

.dropdown-content a {
  display: block;
  padding: 12px 16px;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 24px;
  cursor: pointer;
}


.hero {
  
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 90vh;             /* use full viewport height instead of min-height */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: var(--black);
  overflow: hidden;
}
/* mobile: make hero shorter so content and header fit better */
@media (max-width: 768px) {
  .hero {
    height: 60vh;           /* shorter viewport height on mobile */
    min-height: 320px;      /* optional floor for very small screens */
  }

  .hero-content {
    position: static;       /* already present, keeps content flow on mobile */
    max-width: 100%;
    margin: 20px;
  }
}
.hero-img {
  display: block;
  width: 100%;
  height: auto;          /* scale proportionally */
  object-fit: cover;     /* cover for large screens where height is constrained */
  max-height: 70vh;      /* limit height on large screens */
}
@media (max-width: 768px) {
  .hero-img {
    max-height: 60vh;
  }
}

/* optional: ensure very tall screens don't overgrow */
@media (min-width: 1200px) {
  .hero-img {
    max-height: 80vh;
  }
}
.hero-content {
  position: absolute;
  right: 50px;
  bottom: 50px;
  background-color: var(--primary-cyan);
  padding: 30px;
  max-width: 400px;
  color: var(--white);
}

.hero-content h2 {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 20px;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--white);
  color: var(--black);
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  transition: opacity 0.3s;
  margin: 5px;
}

.btn:hover {
  opacity: 0.8;
}

.btn-primary {
  background-color: var(--primary-cyan);
  color: var(--white);
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0;
  margin: 50px 0;
}

.feature-card {
  background-color: var(--white);
  color: var(--black);
  padding: 40px 30px;
  text-align: center;
  border: 1px solid var(--black);
  transition: background-color 0.3s ease;
}
.feature-card {
  transition: background-color 0.3s ease; /* smooth transition */
}

.feature-card:hover {
  background-color: var(--primary-cyan); /* change to blue on hover */
  color: var(--white); /* optional: change text color for contrast */
}

.feature-card h3 {
  font-size: 18px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.feature-card p {
  font-size: 14px;
  line-height: 1.6;
}

.who-are-we {
  background-color: var(--black);
  padding: 60px 0;
}

.who-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.who-text h2 {
  font-size: 32px;
  margin-bottom: 30px;
}

.who-text ul {
  list-style: none;
}

.who-text li {
  margin-bottom: 15px;
  font-size: 16px;
}

.contact-form {
  background-color: var(--white);
  padding: 40px;
  color: var(--black);
}

.contact-form h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  background-color: var(--light-gray);
  border: none;
  font-size: 14px;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.submit-btn {
  text-align: center;
  margin-top: 20px;
}

.about-section {
  padding: 60px 0;
  text-align: center;
}

.about-section h2 {
  font-size: 32px;
  margin-bottom: 30px;
}

.about-section p {
  font-size: 16px;
  line-height: 1.8;
  max-width: 900px;
  margin: 0 auto 40px;
}

.objectives {
  background-color: var(--primary-cyan);
  padding: 40px;
  text-align: left;
  margin: 40px 0;
}

.objectives h3 {
  font-size: 24px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.objectives ul {
  list-style: disc;
  padding-left: 20px;
}

.objectives li {
  margin-bottom: 15px;
  font-size: 14px;
  line-height: 1.6;
}

.founding-members {
  background-color: var(--black);
  padding: 40px;
  text-align: center;
}

.founding-members h3 {
  font-size: 24px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.founding-members p {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 30px;
}

.members-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.member-card {
  background-color: var(--white);
  aspect-ratio: 1;
}

.board-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin: 40px 0;
}

.board-member {
  text-align: center;
}

.board-member-photo {
  width: 150px;
  height: 150px;
  background-color: var(--light-gray);
  border-radius: 50%;
  margin: 0 auto 15px;
}

.board-year-section {
  margin: 40px 0;
}

.board-year-section h3 {
  text-align: center;
  font-size: 20px;
  margin-bottom: 30px;
}

.membership-intro {
  padding: 60px 0;
}

.membership-intro h2 {
  font-size: 28px;
  margin-bottom: 20px;
}

.membership-intro ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 20px;
}

.membership-intro li {
  margin-bottom: 10px;
}

.membership-types {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 40px 0;
}

.membership-card {
  background-color: var(--white);
  color: var(--black);
  padding: 40px 30px;
  text-align: center;
  border: 1px solid var(--black);
  transition: background-color 0.3s ease; /* smooth transition */
}

.membership-card:hover {
  background-color: var(--primary-cyan); /* change to blue on hover */
  color: var(--white); /* optional: change text color for contrast */
}

.membership-card h3 {
  font-size: 20px;
  margin-bottom: 20px;
}

.membership-card p {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 15px;
}

.membership-card .price {
  font-size: 18px;
  font-weight: bold;
  margin-top: 20px;
}

.how-to-apply {
  padding: 60px 0;
  text-align: center;
}

.how-to-apply h2 {
  font-size: 28px;
  margin-bottom: 40px;
}

.application-steps {
  max-width: 600px;
  margin: 0 auto;
}

.step {
  background-color: var(--primary-cyan);
  padding: 30px;
  margin-bottom: 30px;
  position: relative;
}

.step::after {
  content: '↓';
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 24px;
  color: var(--white);
}

.step:last-child::after {
  display: none;
}

.benefits-section {
  background-color: var(--primary-cyan);
  padding: 60px 0;
  text-align: center;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.benefits-section h2 {
  font-size: 32px;
}

.note-box {
  background-color: var(--white);
  color: #C00;
  padding: 20px;
  margin: 40px 0;
  text-align: center;
  font-size: 14px;
}



/* modal styles */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.modal.open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(2px);
}

.modal-content {
  position: relative;
  width: 92%;
  max-width: 900px;
  max-height: 88vh;
  overflow: auto;
  background: var(--black);
  color: var(--text-white);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.6);
}

.modal-close {
  position: absolute;
  right: 12px;
  top: 8px;
  background: transparent;
  border: none;
  color: var(--text-white);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

/* modal body content */
.modal-body img.event-full-img {
  width: 100%;
  height: auto;
  display: block;
  margin: 12px 0;
  object-fit: cover;
}

/* responsive */
@media (max-width: 600px) {
  .event-thumb { height: 140px; }
  .modal-content { padding: 14px; width: 96%; }
  .modal-close { font-size: 26px; right: 8px; top: 6px; }
}
.contact-page {
  padding: 60px 0;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.contact-info {
  text-align: center;
  padding: 40px;
}

.contact-info h2 {
  font-size: 24px;
  margin-bottom: 30px;
}

.contact-info p {
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.8;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
}

.social-icon {
  width: 40px;
  height: 40px;
  background-color: var(--white);
  border-radius: 50%;
  display: inline-block;
}

.privacy-content,
.terms-content {
  padding: 60px 0;
  max-width: 900px;
  margin: 0 auto;
}

.privacy-content h1,
.terms-content h1 {
  font-size: 32px;
  text-align: center;
  margin-bottom: 40px;
}

.privacy-content h2,
.terms-content h2 {
  font-size: 20px;
  margin-top: 30px;
  margin-bottom: 15px;
}

.privacy-content p,
.terms-content p {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 15px;
}

.privacy-content ul,
.terms-content ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 15px;
}

.privacy-content li,
.terms-content li {
  margin-bottom: 10px;
  font-size: 14px;
}

footer {
  background-color: var(--black);
  padding: 40px 0 20px;
  border-top: 1px solid var(--medium-gray);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 50px;
  align-items: start; /* align items to top so a second-row social area sits below links */
  margin-bottom: 30px;
  grid-auto-rows: auto; /* allow extra row for .footer-social */
}

.footer-logo img {
  height: 100px;
}

.footer-info {
  text-align: center;
}

.footer-info p {
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.6;
}

.footer-links {
  text-align: right;
}

.footer-links a {
  display: block;
  color: var(--white);
  text-decoration: none;
  margin-bottom: 10px;
  font-size: 14px;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--primary-cyan);
}

.footer-links > .footer-social {
  position: absolute;
  left: 0;
  top: 100%;
  margin-top: 10px;
  width: 100%;
  justify-content: flex-start;
}


@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }

  nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background-color: var(--black);
    padding: 20px;
    gap: 15px;
  }

  nav ul.active {
    display: flex;
  }

  .hero-content {
    position: static;
    max-width: 100%;
    margin: 20px;
  }

  .who-content,
  .contact-layout,
  .footer-content {
    grid-template-columns: 1fr;
  }

  .features,
  .membership-types,
  .events-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }

  .members-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .board-grid {
    grid-template-columns: 1fr;
  }

  .footer-links {
    text-align: center;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .footer-social {
    grid-column: 1 / -1;
    grid-row: auto;
    justify-content: center;
    margin-top: 20px;
  }
}
