/* -----------------------------------------------------
   1. Global Reset & Basic Setup
----------------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
}

@font-face {
  font-family: "Crimson";
  src: url(Crimson/OTF/Crimson-Roman.otf);
}

body {
  font-family: SadiSansLight, sans-serif;
  line-height: 1.6;
  color: #2d2d2d;
  background-color: #f4f5f6;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: "Crimson", serif;
}

/* -----------------------------------------------------
   2. SHARED COMPONENTS (Navbar, Footer, Buttons)
----------------------------------------------------- */

/* --- Navbar & Responsive Menu --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 90px;
  display: flex;
  align-items: center;
  background: transparent;
  z-index: 9999;
  padding: 0.5rem 2rem;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.navbar .container {
  max-width: none;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2rem;
  padding: 0 1rem;
}

.logo-img {
  height: 70px;
  object-fit: contain;
  display: inline-block;
  transition: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  margin-left: auto;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #ffffff;
  transition: 0.3s;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  margin-left: auto;
  gap: 2rem;
}

.nav-links li a {
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s;
}

/* Navbar color states for scrolling & transitions */
.navbar.transparent {
  background: #f6f5f1;
  box-shadow: none;
}

.navbar.scrolled {
  background: #a6192e;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.navbar.contact-transparent {
  background: transparent;
  box-shadow: none;
}

.navbar.contact-transparent .logo-img {
  content: url("images/alpfalogoblek.png");
}

/* --- Buttons --- */
.btn {
  background: #a6192e;
  color: #ffffff;
  padding: 0.7rem 1.5rem;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.3s;
}

.btn:hover {
  background: #000000;
}

.btn-on-img {
  background-color: #2c2c2c;
  color: #ffffff;
  padding: 0.5rem 1.5rem;
  font-size: 1rem;
  border-radius: 5px;
  text-decoration: none;
  transition: all 0.6s ease-in-out;
}

.btn-on-img:hover {
  background-color: #000000;
}

/* --- Footer --- */
footer {
  padding: 2rem;
  text-align: center;
  background: #a6192e;
  color: #ffffff;
}

/* -----------------------------------------------------
   3. HOMEPAGE-SPECIFIC STYLES
----------------------------------------------------- */

/* --- Home Page: Hero Section --- */
.home-page .hero {
  position: relative;
  height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  margin: 0;
  padding-top: 90px;
}

.home-page .background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 0.9;
}

.home-page .hero-content {
  max-width: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fade-in 2s ease-in;
}

.home-page .hero-title {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  color: #ffffff;
  white-space: nowrap;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.7);
}

.home-page .hero-subtitle {
  font-size: 1.5rem;
  color: #ffffff;
  margin-top: 0.5rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.home-page .hero-line {
  width: 80%;
  height: 3px;
  background-color: #ffffff;
  margin: 1rem auto;
  border: none;
}

/* --- Home Page: Our Mission Section --- */
.home-page .about {
  padding: 5rem 0.5rem;
  background: #f6f5f1;
  display: flex;
  justify-content: center;
  color: #ffffff;
}

.home-page .about-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
  width: 100%;
  max-width: 1400px;
  background: #f6f5f1;
  border-radius: 20px;
}

.home-page .about-img-wrapper {
  position: relative;
  width: 100%;
}

.home-page .about-img {
  max-width: 100%;
  border-radius: 0px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
  width: 100%;
  height: auto;
  object-fit: cover;
}

.home-page .img-overlay {
  position: absolute;
  bottom: 8rem;
  left: 3rem;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 0.5rem;
  transition: all 0.6s ease-in-out;
}

.home-page .img-title {
  color: #ffffff;
  font-size: 2rem;
  margin: 0;
  transition: all 0.6s ease-in-out;
}

.home-page .about-text {
  flex: 1;
  text-align: center;
  padding: 0.5rem 7rem;
}

.home-page .about-text h2 {
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
  color: #a6192e;
}

.home-page .about-text p {
  font-size: 1.2rem;
  line-height: 1.9;
  color: #000000;
  margin-bottom: 1.5rem;
}

.home-page .underline-title {
  position: relative;
  display: inline-block;
  padding-bottom: 8px;
  margin-bottom: 1rem;
}

.home-page .underline-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #000;
}

/* --- Home Page: Sponsors Section --- */
.home-page .sponsors {
  background: linear-gradient(to bottom, #a6192e, black);
  padding: 8rem 1rem;
  text-align: center;
  color: #ffffff;
  overflow: hidden;
}

.home-page .sponsors-container {
  position: relative;
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
  z-index: 1;
}

.home-page .sponsors h2 {
  font-size: 2.8rem;
  margin-bottom: 2rem;
  color: white;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  text-align: center;
}
.home-page .sponsor-logos {
  position: relative;
  height: 400px;
  width: 100%;
  margin-top: 2rem;
}
.home-page .floating-logo {
  position: absolute;
  width: 10vw;
  max-width: 500px;
  min-width: 100px;
  height: auto;
  opacity: 0.9;
  transition: transform 0.3s;
  z-index: 1;
}
.home-page .floating-logo:hover {
  transform: scale(1.1);
}
.home-page .logo1 {
  top: 10%;
  left: 20%;
}
.home-page .logo2 {
  top: 0;
  right: 25%;
}
.home-page .logo3 {
  bottom: 0;
  left: 15%;
}
.home-page .logo4 {
  bottom: 10%;
  right: 20%;
}

/* --- Home Page: Events Section --- */
.home-page .events {
  background-color: #f6f5f1;
  padding: 5rem 1rem;
  text-align: center;
  display: flex;
  justify-content: center;
  color: #ffffff;
}
.home-page .events-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* --- Home Page: Media Section --- */
.home-page .media-card {
  background: #a6192e;
  padding: 4rem 2rem;
  position: relative;
  border-top: 1px solid #e0e0e0;
}

.home-page .media-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  margin: 0 auto;
  max-width: 1200px;
  gap: 80px;
  padding: 2rem;
}

.home-page .media-logo-container {
  flex: 1;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.home-page .media-logo {
  height: 100px;
  object-fit: contain;
  display: inline-block;
}

.home-page .media-section h3 {
  font-size: 18px;
  margin-bottom: 12px;
  color: #ffffff;
}

.home-page .media-section ul {
  list-style: none;
  padding: 0;
}

.home-page .media-section li {
  margin-bottom: 8px;
}

.home-page .media-section a {
  color: #ffffff;
  text-decoration: none;
}

.home-page .media-section a:hover {
  text-decoration: underline;
}

/* -----------------------------------------------------
   4. JOIN US PAGE-SPECIFIC STYLES
----------------------------------------------------- */

/* --- Join Us Page: Hero Section --- */
.join-us-page-body .hero {
  position: relative;
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.join-us-page-body .hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: -1;
  opacity: 1;
}

.join-us-page-body .hero-content {
  position: relative;
  z-index: 1;
  color: #ffffff;
}

.join-us-page-body .hero-title {
  font-size: 3.5rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.join-us-page-body .hero-line {
  width: 80%;
  height: 3px;
  background-color: #ffffff;
  margin: 1rem auto;
  border: none;
}

/* --- Join Us Page: Membership Info Section --- */
.join-us-page-body .membership-info {
  padding: 6rem 2rem;
  background: #900b09;
  color: #ffffff;
}

.join-us-page-body .membership-info-container {
  display: flex;
  align-items: center;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.join-us-page-body .membership-img-wrapper {
  flex: 1;
}

.join-us-page-body .membership-img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.join-us-page-body .membership-text {
  flex: 1.5;
}

.join-us-page-body .membership-text h2 {
  font-size: 2.8rem;
  color: #ffffff;
  margin-bottom: 1.5rem;
  text-align: left;
}

.join-us-page-body .underline-title {
  position: relative;
  display: inline-block;
  padding-bottom: 8px;
  margin-bottom: 1rem;
}

.join-us-page-body .underline-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #ffffff;
}

.join-us-page-body .membership-text p {
  font-size: 1.1rem;
  line-height: 1.8;
}

/* --- Join Us Page: Benefits Section --- */
.join-us-page-body .benefits {
  padding: 6rem 2rem;
  background-color: #f4f5f6;
  text-align: center;
}

.join-us-page-body .benefits-container {
  max-width: 1200px;
  margin: 0 auto;
}

.join-us-page-body .benefits-title {
  font-size: 2.8rem;
  color: #900b09;
  margin-bottom: 4rem;
}

.join-us-page-body .benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
}

.join-us-page-body .benefit-card {
  background-color: #d9d9d9;
  border-radius: 15px;
  padding: 1.5rem;
  min-height: 428px;
  display: flex;
  flex-direction: column;
}

.join-us-page-body .card-content {
  text-align: left;
}

.join-us-page-body .benefit-card img {
  width: 100%;
  height: 136px;
  object-fit: cover;
  border-radius: 15px;
  margin-bottom: 1.5rem;
}

.join-us-page-body .benefit-card h3 {
  font-family: "Crimson", serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #000000;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.join-us-page-body .benefit-card p {
  font-family: SadiSansLight, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: #000000;
}

/* --- Join Us Page: FAQ Section --- */
.join-us-page-body .faq {
  padding: 6rem 2rem;
  background-color: #ffffff;
}

.join-us-page-body .faq-container {
  max-width: 900px;
  margin: 0 auto;
}

.join-us-page-body .faq-title {
  font-size: 2.8rem;
  color: #900b09;
  text-align: center;
  margin-bottom: 3rem;
}

.join-us-page-body .faq-item {
  border-bottom: 1px solid #e0e0e0;
}

.join-us-page-body .faq-question {
  width: 100%;
  background: none;
  border: none;
  outline: none;
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-align: left;
}

.join-us-page-body .faq-question span {
  font-family: "Crimson", serif;
  font-size: 1.4rem;
  color: #2d2d2d;
}

.join-us-page-body .faq-icon {
  width: 1.2em;
  height: 1.2em;
  position: relative;
  transition: transform 0.3s ease;
}

.join-us-page-body .faq-icon::before,
.join-us-page-body .faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 2px;
  background-color: #a6192e;
  transform: translate(-50%, -50%);
}

.join-us-page-body .faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.join-us-page-body .faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.join-us-page-body .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.join-us-page-body .faq-answer p {
  padding: 0 0 1.5rem 0;
  line-height: 1.7;
}

.join-us-page-body .faq-item.active .faq-answer {
  max-height: 500px; /* Adjust if your answers are longer */
}

/* --- Join Us Page: Policy Section --- */
.join-us-page-body .policy {
  padding: 6rem 2rem;
  background-color: #f4f5f6; /* Light gray background to separate from FAQ */
}

.join-us-page-body .policy-container {
  max-width: 900px;
  margin: 0 auto;
  background-color: #ffffff; /* White card for the content */
  padding: 3rem;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.join-us-page-body .policy-title {
  font-size: 2.8rem;
  color: #900b09;
  text-align: center;
  margin-bottom: 2rem;
}

.join-us-page-body .policy-container h3 {
  font-family: "Crimson", serif;
  font-size: 1.6rem;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  color: #2d2d2d;
}

.join-us-page-body .policy-container p {
  font-size: 1rem;
  line-height: 1.8;
}

/* -----------------------------------------------------
   5. CONTACT US PAGE-SPECIFIC STYLES
----------------------------------------------------- */

/* --- Contact Page: Hero Section --- */
.contact-page-body .hero-background {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("images/contact-hero-bg.jpg"); /* Add a fallback image path */
  background-size: cover;
  background-position: center;
}

/* --- Contact Page: Form Section --- */
.contact-page-body .contact-form-section {
  padding: 6rem 2rem;
  background-color: #f4f5f6;
}

.contact-page-body .contact-container {
  max-width: 1100px;
  margin: 0 auto;
  background-color: #ffffff;
  padding: 3rem;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.contact-page-body .contact-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.contact-page-body .contact-header h2 {
  font-size: 2.8rem;
  color: #900b09;
  margin-bottom: 0.5rem;
}

.contact-page-body .contact-header p {
  font-size: 1.1rem;
  color: #555;
  max-width: 600px;
  margin: 0 auto;
}

.contact-page-body .contact-body {
  display: flex;
  align-items: flex-start;
  gap: 3rem;
}

.contact-page-body .contact-image {
  flex-basis: 355px;
  flex-shrink: 0;
}

.contact-page-body .contact-image img {
  width: 100%;
  height: 473px;
  object-fit: cover;
  border-radius: 8px;
}

.contact-page-body .form {
  flex: 1;
}

.contact-page-body .form-row {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.contact-page-body .form-group {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.contact-page-body .form-group label {
  font-family: "Crimson", serif;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #333;
}

.contact-page-body .form-group input,
.contact-page-body .form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: SadiSansLight, sans-serif;
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-page-body .form-group input:focus,
.contact-page-body .form-group textarea:focus {
  outline: none;
  border-color: #a6192e;
  box-shadow: 0 0 0 3px rgba(166, 25, 46, 0.2);
}

.contact-page-body .form-group textarea {
  resize: vertical;
  margin-bottom: 1.5rem;
}

.contact-page-body .form-submit-btn {
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
  font-family: "Crimson", serif;
  border: none;
  cursor: pointer;
}

/* -----------------------------------------------------
   6. EXECUTIVE BOARD PAGE-SPECIFIC STYLES
----------------------------------------------------- */

/* --- Board Page: Hero Section (FIXED) --- */
.board-page-body .hero {
  position: relative;
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.board-page-body .hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: -1;
}

.board-page-body .hero-content {
  position: relative;
  z-index: 1;
  color: #ffffff;
}

.board-page-body .board-hero .hero-title {
  font-size: 4rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* --- Board Page: Board Section --- */
.board-page-body .board-section {
  padding: 6rem 2rem;
  background-color: #ffffff;
}

.board-page-body .board-container {
  max-width: 1200px;
  margin: 0 auto;
}

.board-page-body .board-header {
  text-align: center;
  margin-bottom: 4rem;
}

.board-page-body .board-header h2 {
  font-size: 2.8rem;
  color: #900b09;
  margin-bottom: 0.5rem;
}

.board-page-body .board-header p {
  font-size: 1.1rem;
  color: #555;
  max-width: 700px;
  margin: 0 auto;
}

.board-page-body .board-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.board-page-body .member-card {
  background-color: #d9d9d9;
  border-radius: 15px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 1.5rem;
}

.board-page-body .member-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  margin-bottom: 1rem;
}

.board-page-body .member-info {
  padding: 0 1rem;
}

.board-page-body .member-name {
  font-family: "Inter", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #000;
  margin: 0;
}

.board-page-body .member-title {
  font-family: "Inter", sans-serif;
  font-size: 1.1rem;
  color: #000;
  line-height: 1.4;
}

/* -----------------------------------------------------
   7. RESPONSIVE & ANIMATIONS
----------------------------------------------------- */

/* --- Responsive Navbar Menu --- */
@media (max-width: 1199px) {
  .nav-links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 90px;
    right: 0;
    background-color: rgba(75, 0, 4, 0.9);
    width: 100%;
    padding: 1rem 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
  .nav-links.active {
    display: flex;
    opacity: 1;
    pointer-events: auto;
  }
  .hamburger {
    display: flex;
  }
}

/* Find this existing block in your CSS */
@media (max-width: 992px) {
  /* ... (your existing rules for other pages are here) ... */

  .home-page .about-container {
    flex-direction: column;
  }
  .join-us-page-body .membership-info-container {
    flex-direction: column;
    text-align: center;
  }
  .join-us-page-body .membership-text h2 {
    text-align: center;
  }
  .join-us-page-body .membership-text .underline-title::after {
    margin: 0 auto;
    left: 50%;
    transform: translateX(-50%);
  }
  .board-page-body .board-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* ========== ADD THESE NEW RULES BELOW ========== */

  .contact-page-body .contact-body {
    flex-direction: column; /* Stacks the image and form vertically */
  }

  .contact-page-body .contact-image {
    flex-basis: auto; /* Resets the fixed width */
    width: 100%; /* Makes the image container take the full width */
  }

  .contact-page-body .contact-image img {
    height: auto; /* Allows the image height to adjust proportionally */
    max-height: 400px; /* Prevents the image from being excessively tall on mobile */
  }
}

@media (max-width: 800px) {
  .home-page .img-title {
    font-size: 1.5rem;
  }
  .home-page .btn-on-img {
    font-size: 0.9rem;
    padding: 0.4rem 1rem;
  }
  .home-page .img-overlay {
    bottom: 2rem;
    left: 2rem;
  }
  .home-page .floating-logo {
    width: 8vw;
    min-width: 100px;
  }
  .join-us-page-body .benefits-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .home-page .hero-title {
    white-space: normal;
    font-size: 2.5rem;
  }
  .home-page .hero-subtitle {
    white-space: normal;
    font-size: 1.25rem;
  }
  .home-page .hero-line {
    width: 70%;
  }
  .join-us-page-body .hero-title,
  .join-us-page-body .faq-title,
  .join-us-page-body .policy-title {
    font-size: 2.5rem;
  }
  .join-us-page-body .membership-info h2,
  .join-us-page-body .benefits-title {
    font-size: 2.2rem;
  }
  .join-us-page-body .policy-container {
    padding: 2rem;
  }
  .contact-page-body .form-row {
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 0;
  }
  .contact-page-body .form-group {
    margin-bottom: 1.5rem;
  }
  .contact-page-body .contact-container {
    padding: 2rem;
  }
  .contact-page-body .contact-header h2 {
    font-size: 2.2rem;
  }
  .board-page-body .board-header h2 {
    font-size: 2.2rem;
  }
}

@media (max-width: 720px) {
  .navbar {
    padding: 0.5rem 1rem;
  }
  .logo-img {
    height: 70px;
  }
}

@media (max-width: 600px) {
  .board-page-body .board-grid {
    grid-template-columns: 1fr;
  }
  .board-page-body .board-hero .hero-title {
    font-size: 3rem;
  }
}

/* --- Animations --- */
@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
