/* style/about.css */

/* Base styles for the About page */
.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Light text for dark body background */
  background-color: #000000; /* Assuming body background is black from shared.css */
}

.page-about__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-about__section {
  padding: 80px 0;
  text-align: center;
  position: relative;
  /* Fixed navigation bar spacing for the first content section */
  padding-top: 10px; 
  margin-top: 0; 
}

.page-about__section:first-of-type {
  padding-top: 10px; /* Ensure first section is not hidden by fixed header */
}

.page-about__dark-bg {
  background-color: #0d0d0d;
  color: #ffffff;
}

.page-about__light-bg {
  background-color: #f9f9f9;
  color: #333333;
}

.page-about__heading {
  font-size: 3em;
  color: #FFD700; /* Gold brand color */
  margin-bottom: 20px;
  font-weight: 700;
}

.page-about__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Hero Section */
.page-about__hero-section {
    background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 100%);
    padding: 100px 0 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding-top: 10px; /* Fixed navigation bar spacing */
}

.page-about__hero-content {
    max-width: 600px;
    text-align: left;
}

.page-about__hero-title {
    font-size: 3.8em;
    color: #FFD700; /* Gold brand color */
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-about__hero-description {
    font-size: 1.2em;
    color: #f0f0f0;
    margin-bottom: 30px;
}

.page-about__hero-btn {
    display: inline-block;
    background-color: #FFD700;
    color: #000000;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: 2px solid #FFD700;
}

.page-about__hero-btn:hover {
    background-color: #e6c200;
    transform: translateY(-3px);
}

.page-about__hero-image-wrapper {
    flex-shrink: 0;
    width: 500px;
    height: 350px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-about__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Mission and Vision Section */
.page-about__section--mission-vision .page-about__container {
    display: flex;
    align-items: center;
    gap: 40px;
    text-align: left;
}

.page-about__section--mission-vision .page-about__content-block {
    flex: 1;
}

.page-about__section--mission-vision .page-about__image-block {
    flex: 1;
    min-width: 400px; /* Ensure image block has a minimum width */
}

.page-about__section--mission-vision .page-about__heading {
    text-align: left;
    font-size: 2.5em;
}

.page-about__section--mission-vision .page-about__paragraph {
    text-align: left;
    max-width: none;
}

/* Why Choose Section */
.page-about__section--why-choose {
    background-color: #1a1a1a; /* Darker background */
    color: #ffffff;
    padding: 80px 0;
}

.page-about__section--why-choose .page-about__heading {
    color: #FFD700;
    margin-bottom: 40px;
}

.page-about__section--why-choose .page-about__paragraph {
    color: #f0f0f0;
    margin-bottom: 50px;
}

.page-about__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-about__feature-card {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for dark background */
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    padding: 30px;
    text-align: left;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.page-about__feature-title {
    font-size: 1.8em;
    color: #FFD700;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-about__feature-description {
    font-size: 1em;
    color: #e0e0e0;
}

.page-about__cta-wrapper {
    margin-top: 60px;
}

.page-about__btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.page-about__btn-primary {
    background-color: #FFD700;
    color: #000000;
    border: 2px solid #FFD700;
}

.page-about__btn-primary:hover {
    background-color: #e6c200;
    transform: translateY(-3px);
    border-color: #e6c200;
}

/* Commitment Section */
.page-about__section--commitment {
    background-color: #000000;
    color: #f0f0f0;
    padding: 80px 0;
}

.page-about__section--commitment .page-about__heading {
    color: #FFD700;
    margin-bottom: 40px;
}

.page-about__section--commitment .page-about__paragraph {
    color: #e0e0e0;
    margin-bottom: 50px;
}

.page-about__commitment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-about__commitment-item {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__commitment-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.page-about__commitment-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    object-fit: contain;
}

.page-about__commitment-title {
    font-size: 1.6em;
    color: #FFD700;
    margin-bottom: 10px;
    font-weight: 600;
}

.page-about__commitment-description {
    font-size: 0.95em;
    color: #c0c0c0;
}

/* Team Section */
.page-about__section--team {
    background-color: #1a1a1a;
    color: #f0f0f0;
    padding: 80px 0;
}

.page-about__section--team .page-about__heading {
    color: #FFD700;
    margin-bottom: 40px;
}

.page-about__section--team .page-about__paragraph {
    color: #e0e0e0;
    margin-bottom: 50px;
}

.page-about__team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-about__team-member {
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.page-about__team-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 4px solid #FFD700;
}

.page-about__member-name {
    font-size: 1.8em;
    color: #FFD700;
    margin-bottom: 10px;
    font-weight: 600;
}

.page-about__member-role {
    font-size: 1em;
    color: #e0e0e0;
}

/* FAQ Section */
.page-about__section--faq {
  background-color: #000000; /* Dark background */
  color: #f0f0f0; /* Light text */
  padding: 80px 0;
}

.page-about__section--faq .page-about__heading {
  color: #FFD700;
  margin-bottom: 40px;
}

.page-about__section--faq .page-about__paragraph {
  color: #e0e0e0;
  margin-bottom: 50px;
}

.page-about__faq-list {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

/* FAQ container style */
.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for dark background */
  border: 1px solid rgba(255, 215, 0, 0.2);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* FAQ default state - answer hidden */
.page-about__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  color: #c0c0c0;
  font-size: 0.95em;
}

/* FAQ expanded state - 🚨 Use !important and sufficiently large max-height */
.page-about__faq-item.active .page-about__faq-answer {
  max-height: 2000px !important; /* 🚨 Use !important to ensure priority, value large enough for content */
  padding: 20px 25px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.05); /* Slightly lighter background for answer */
  border-top: 1px solid rgba(255, 215, 0, 0.1);
  border-radius: 0 0 8px 8px;
}

/* Question style */
.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-about__faq-question:hover {
  background: rgba(255, 255, 255, 0.15);
}

.page-about__faq-question:active {
  background: rgba(255, 255, 255, 0.2);
}

/* Question title style */
.page-about__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.2em;
  font-weight: 600;
  line-height: 1.5;
  color: #FFD700;
  pointer-events: none; /* Prevent h3 from blocking click events */
}

/* Toggle icon */
.page-about__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click events */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-about__faq-item.active .page-about__faq-toggle {
  color: #ffffff;
  transform: rotate(45deg); /* Rotate for 'x' effect */
}

/* Contact Section */
.page-about__section--contact {
    background-color: #0d0d0d;
    color: #f0f0f0;
    padding: 80px 0;
}

.page-about__section--contact .page-about__heading {
    color: #FFD700;
    margin-bottom: 40px;
}

.page-about__section--contact .page-about__paragraph {
    color: #e0e0e0;
    margin-bottom: 50px;
}

.page-about__contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.page-about__contact-item {
    font-size: 1.1em;
    color: #e0e0e0;
}

.page-about__contact-item strong {
    color: #FFD700;
}

.page-about__contact-link {
    color: #FFD700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-about__contact-link:hover {
    color: #ffd700;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__hero-section {
        flex-direction: column;
        text-align: center;
        padding: 80px 20px 40px;
        gap: 30px;
    }

    .page-about__hero-content {
        text-align: center;
        max-width: 100%;
    }

    .page-about__hero-title {
        font-size: 3em;
    }

    .page-about__hero-image-wrapper {
        width: 80%;
        height: auto;
    }
    
    .page-about__section--mission-vision .page-about__container {
        flex-direction: column;
        text-align: center;
    }

    .page-about__section--mission-vision .page-about__heading {
        text-align: center;
    }

    .page-about__section--mission-vision .page-about__paragraph {
        text-align: center;
    }

    .page-about__section--mission-vision .page-about__image-block {
        min-width: unset;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .page-about__section {
        padding: 60px 0;
    }

    .page-about__heading {
        font-size: 2.5em;
    }

    .page-about__paragraph {
        font-size: 1em;
    }

    .page-about__hero-section {
        padding: 60px 15px 30px;
    }

    .page-about__hero-title {
        font-size: 2.5em;
    }

    .page-about__hero-description {
        font-size: 1em;
    }

    .page-about__hero-btn {
        padding: 12px 25px;
        font-size: 1em;
    }

    .page-about__hero-image-wrapper {
        width: 90%;
        height: 250px;
    }

    .page-about__features-grid,
    .page-about__commitment-grid,
    .page-about__team-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-about__feature-title,
    .page-about__commitment-title,
    .page-about__member-name {
        font-size: 1.5em;
    }

    .page-about__faq-question {
      padding: 15px 20px;
    }
    
    .page-about__faq-question h3 {
      font-size: 1em;
    }
    
    .page-about__faq-toggle {
      font-size: 24px;
      width: 28px;
      height: 28px;
    }
    
    .page-about__faq-item.active .page-about__faq-answer {
      padding: 15px 20px !important;
    }
    
    .page-about__faq-answer {
      padding: 0 20px;
    }

    /* Mobile image adaptation */
    .page-about img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
    }
    
    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__hero-section,
    .page-about__hero-image-wrapper {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
    }

    .page-about__section:first-of-type {
      padding-top: 10px; /* Ensure first section is not hidden by fixed header */
    }
}