/* Header Section */
.header-section {
    background-image: url('../assets/backgrounds/governance-bg.png'); /* Replace with your image path */
    background-size: cover;
    background-position: center;
    height: 400px; /* Adjust the height as needed */
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--red); /* Text color set to var(--red) */
    text-align: center;
    margin-top:-10px;
   z-index:-3;
}

/* Centered Heading */
.header-content {
    display: flex;
    justify-content: center;
    align-items: center;
}
/* Overlay */
.header-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); 
    z-index: -1; /* Place the overlay behind the text */
}
/* Section Heading */
.section-heading {
    font-family: var(--font-main-heading); /* Font-family set to var(--font-main-heading) */
    font-size: 4rem; /* Adjust font size as needed */
    font-weight: bold;
    letter-spacing: 2px;
    margin: 0;
}


/* Max-width: 2560px */
@media (max-width: 2560px) {
    .header-section {
        height: 500px; /* Adjust height for large screens */
    }

    .section-heading {
        font-size: 7rem; /* Larger font for bigger screens */
    }
}

/* Max-width: 1024px */
@media (max-width: 1024px) {
    .header-section {
        height: 360px; /* Adjust height for tablets and smaller screens */
    }

    .section-heading {
        font-size: 4rem; /* Slightly smaller font for tablets */
    }
}

/* Max-width: 768px */
@media (max-width: 768px) {
    .header-section {
        height: 300px; /* Adjust height for smaller tablets */
    }

    .section-heading {
        font-size: 4rem; /* Smaller font for tablets */
    }
}

/* Min-width: 425px and max-width: 690px */
@media (min-width: 425px) and (max-width: 690px) {
    .header-section {
        height: 250px; /* Adjust height for smaller devices */
    }

    .section-heading {
        font-size: 2.3rem; /* Font size for small devices */
    }
}

/* Min-width: 315px and max-width: 430px */
@media (min-width: 315px) and (max-width: 430px) {
    .header-section {
        height: 200px; /* Adjust height for smaller screens */
    }

    .section-heading {
        font-size: 2.2rem; /* Font size for very small devices */
    }
}


/*-----------------------------------------------------------FLIP CARD SECTION---------------------------------------------------------*/
/* ---------------- General Section Styling ----------------- */
.flip-card-section {
  padding: 60px 40px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

/* Section Title */
.section-title {
  font-family: var(--font-heading);
  font-size: 5rem;
  color: var(--dark-grey);
  margin-bottom: 40px;
}

/* ---------------- Flip Card Container ----------------- */
.flip-card-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* Creates responsive grid */
  grid-template-rows: auto; /* Allows automatic height adjustment */
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  justify-content: center; /* Align items to center */
}

/* ---------------- Flip Card ----------------- */
.flip-card {
  background-color: transparent;
  width: 100%;
  max-width: 250px; /* Ensures consistent width */
  height: 360px;
  perspective: 1000px;
}

/* Inner Card */
.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

/* ---------------- Card Front ----------------- */
.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 15px;
  overflow: hidden;
}

.flip-card-front {
  background-color: #f0f0f0;
  color: black;
}

.flip-card-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-name {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 10px 0;
  font-family: var(--font-primary);
  text-align: center;
  border-radius: 5px;
}

.card-name .name {
  font-weight: bold;
  font-size: 0.9rem;
}

.card-name .position {
  font-size: 0.75rem;
  font-weight: 400;
  opacity: 0.8;
}

/* ---------------- Card Back ----------------- */
.flip-card-back {
  background: var(--purple);
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transform: rotateY(180deg);
  font-family: var(--font-primary);
  font-size: 12px;
  line-height: 1.6;
}

/* Profile View Button */
.profile-view {
  color: white;
  font-weight: bold;
  margin-top: 10px;
  text-decoration: none;
  transition: color 0.3s ease-in-out;
}

.profile-view:hover {
  color: var(--red);
}


/* ---------------- Responsive Breakpoints ----------------- */
/* Default Styles are Already Optimized for Large Screens */

/* Small Mobile Screens (315px - 430px) */
@media (min-width: 315px) and (max-width: 430px) {
  .flip-card-section {
    padding: 30px 20px;
  }

  .section-title {
    font-size: 3rem;
    margin-bottom: 20px;
  }

  .flip-card-container {
    grid-template-columns: 1fr; /* Stack cards in one column */
    gap: 15px;
  }

  .flip-card {
    max-width: 100%;
    height: 280px;
  }

  .card-name {
    font-size: 0.75rem;
  }

  .flip-card-back {
    font-size: 10px;
    padding: 15px;
  }
}

/* Larger Mobile & Small Tablets (425px - 690px) */
@media (min-width: 425px) and (max-width: 690px) {
  .flip-card-section {
    padding: 40px 25px;
  }

  .section-title {
    font-size: 3.5rem;
  }

  .flip-card-container {
    grid-template-columns: repeat(2, 1fr); /* Two cards per row */
    gap: 20px;
  }

  .flip-card {
    max-width: 220px;
    height: 300px;
  }

  .card-name {
    font-size: 0.85rem;
  }

  .flip-card-back {
    font-size: 11px;
    padding: 18px;
  }
}

/* Tablets (690px - 768px) */
@media (min-width: 690px) and (max-width: 768px) {
  .flip-card-section {
    padding: 50px 30px;
  }

  .section-title {
    font-size: 4rem;
  }

  .flip-card-container {
    grid-template-columns: repeat(3, 1fr); /* Three cards per row */
    gap: 25px;
  }

  .flip-card {
    max-width: 230px;
    height: 320px;
  }

  .card-name {
    font-size: 0.9rem;
  }

  .flip-card-back {
    font-size: 12px;
    padding: 20px;
  }
}


/*-----------------------------------------------CONTACT SECTION---------------------------------------------------*/
/* ---------------- Contact Section ----------------- */
.contact-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 30px;
  text-align: center;
  position: relative;
  font-family: var(--font-primary);
}

/* Red Line Above */
.contact-section::before {
  content: '';
  display: block;
  width: 90px;
  height: 4px;
  background-color: var(--red);
  margin: 0 auto 20px auto;
  border-radius: 50px;
}

/* Heading */
.contact-heading {
  font-family: var(--fnt-heading);
  font-size: 3rem;
  margin-bottom: 10px;
}

.contact-heading span {
  font-weight: bold;
}

.contact-heading .highlight {
  color: var(--purple);
}

/* Subtext */
.contact-subtext {
  font-size: 1rem;
  color: #555;
  margin-bottom: 40px;
}

/* ---------------- Form Styling ----------------- */
.contact-form {
  width: 100%;
}

.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 15px;
  border: 2px solid var(--purple);
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
  font-family: var(--font-primary);
}

textarea {
  resize: none;
}

.submit-btn {
  display: block;
  width: 100%;
  padding: 15px;
  background: var(--purple);
  color: white;
  font-size: 1rem;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.submit-btn:hover {
  background: darkviolet;
}

/* ---------------- Popup Modal ----------------- */
.thank-you-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s, opacity 0.4s ease;
  z-index: 1000;
}

.modal-content {
  background: white;
  padding: 30px 40px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  max-width: 400px;
  width: 90%;
  font-family: var(--font-primary);
}

.modal-content p {
  margin-bottom: 20px;
  font-size: 1rem;
  color: #333;
}

.close-btn {
  padding: 10px 20px;
  background: var(--purple);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.close-btn:hover {
  background: darkviolet;
}

/* Show Modal */
.thank-you-modal.show {
  visibility: visible;
  opacity: 1;
}

/* ---------------- Responsive Breakpoints ----------------- */
@media (max-width: 768px) {
  .contact-heading {
    font-size: 2.5rem;
  }

  .form-row {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .contact-heading {
    font-size: 2rem;
  }

  .contact-subtext {
    font-size: 0.9rem;
  }

  .submit-btn {
    font-size: 0.95rem;
  }
}
