/* style/about.css */

/* --- Base styles for .page-about section --- */
.page-about {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
    padding-bottom: 60px; /* Space above footer */
}

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

.page-about__section {
    padding: 60px 0;
    text-align: center;
}

.page-about__section:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for contrast */
}

.page-about__section-title {
    font-size: 36px;
    font-weight: bold;
    color: #FFD700; /* Gold for titles */
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-about__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #FFD700;
    border-radius: 2px;
}

.page-about__sub-title {
    font-size: 24px;
    font-weight: bold;
    color: #FFD700;
    margin-bottom: 20px;
}

.page-about p {
    margin-bottom: 15px;
    font-size: 17px;
    color: #f0f0f0;
}

.page-about__dark-bg {
  background-color: #1A1A1A; /* Auxiliary dark color */
  color: #ffffff;
}

/* --- Hero Section --- */
.page-about__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
    background: linear-gradient(135deg, #1A1A1A, #333333); /* Dark gradient background */
    overflow: hidden;
}

.page-about__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1; /* Ensure content is above any potential background elements */
}

.page-about__hero-image {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-about__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: cover;
}

.page-about__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-about__main-title {
    font-size: 48px;
    font-weight: 900;
    color: #FFD700;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-about__intro-text {
    font-size: 20px;
    color: #f0f0f0;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: #FFD700;
    color: #1A1A1A; /* Text on gold button should be dark */
    text-decoration: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.page-about__cta-button:hover {
    background: #E6C200;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
}

/* --- History and Mission Section --- */
.page-about__history-mission .page-about__content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    text-align: left;
    margin-bottom: 40px;
}

.page-about__value-list {
    list-style: none;
    padding: 0;
    text-align: left;
    margin-top: 30px;
}

.page-about__value-list li {
    background-color: rgba(255, 215, 0, 0.1);
    border-left: 5px solid #FFD700;
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 5px;
    font-size: 17px;
    color: #f0f0f0;
}

.page-about__value-list li strong {
    color: #FFD700;
}

/* --- Why Choose Section --- */
.page-about__why-choose {
    background-color: #1A1A1A; /* Dark background for this section */
    padding: 80px 0;
}

.page-about__why-choose .page-about__section-title {
    color: #FFD700;
}

.page-about__feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: left;
}

.page-about__feature-card {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly lighter card background */
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #ffffff; /* Light text on dark card */
}

.page-about__feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

.page-about__feature-card img {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-about__card-title {
    font-size: 22px;
    font-weight: bold;
    color: #FFD700;
    margin-bottom: 15px;
    text-align: center;
}

.page-about__feature-card p {
    font-size: 16px;
    color: #f0f0f0;
    text-align: center;
}

/* --- Our Commitments Section --- */
.page-about__our-commitments .page-about__section-title {
    color: #FFD700;
}

.page-about__commitments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: left;
}

.page-about__commitment-item {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: #ffffff;
}

.page-about__commitment-title {
    font-size: 22px;
    font-weight: bold;
    color: #FFD700;
    margin-bottom: 15px;
}

.page-about__commitment-item p {
    font-size: 16px;
    color: #f0f0f0;
}

/* --- Team Section --- */
.page-about__team-section {
    background-color: #1A1A1A;
    padding: 80px 0;
}

.page-about__team-section .page-about__section-title {
    color: #FFD700;
}

.page-about__team-section .page-about__content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    text-align: left;
}

.page-about__image-wrapper {
    text-align: center;
}

.page-about__image-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.page-about__btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background: #FFD700;
    color: #1A1A1A; /* Text on gold button should be dark */
    text-decoration: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
    border: none;
}

.page-about__btn-primary:hover {
    background: #E6C200;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
}

/* --- FAQ Section --- */
.page-about__faq {
    padding-bottom: 80px;
}

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

.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.08); /* Dark card background */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 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: #f0f0f0;
}

/* 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, sufficiently large value */
  padding: 20px 25px !important;
  opacity: 1;
  background: rgba(255, 215, 0, 0.05); /* Lighter background for answer */
  border-radius: 0 0 8px 8px;
  color: #f0f0f0;
}

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

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

.page-about__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #FFD700; /* Gold for question text */
  pointer-events: none; /* Prevent h3 from blocking click event */
}

/* 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 event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background-color: rgba(255, 215, 0, 0.15);
  border-radius: 50%;
}

.page-about__faq-item.active .page-about__faq-toggle {
  color: #1A1A1A; /* Darker color when active */
  background-color: #FFD700;
  transform: rotate(45deg); /* Rotate to form 'X' or similar */
}

/* --- CTA Bottom Section --- */
.page-about__cta-bottom {
    background-color: #1A1A1A;
    padding: 80px 0;
}

.page-about__cta-bottom .page-about__container {
    padding: 40px 20px;
    border-radius: 15px;
    background: linear-gradient(45deg, #FFD700, #E6C200); /* Gold gradient background */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    color: #1A1A1A; /* Dark text on gold background */
}

.page-about__cta-bottom .page-about__section-title {
    color: #1A1A1A; /* Dark title on gold background */
    margin-bottom: 20px;
}

.page-about__cta-bottom .page-about__section-title::after {
    background-color: #1A1A1A;
}

.page-about__cta-bottom .page-about__intro-text {
    color: #333333; /* Dark text on gold background */
    font-size: 18px;
    margin-bottom: 40px;
}

.page-about__button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.page-about__btn-secondary {
    display: inline-block;
    padding: 15px 40px;
    background: transparent;
    color: #1A1A1A; /* Dark text for secondary button */
    text-decoration: none;
    border: 2px solid #1A1A1A;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.page-about__btn-secondary:hover {
    background: #1A1A1A;
    color: #FFD700;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-about__main-title {
        font-size: 40px;
    }
    .page-about__section-title {
        font-size: 32px;
    }
    .page-about__hero-image img {
        height: auto;
    }
}

@media (max-width: 768px) {
    .page-about {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-about__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header spacing */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-about__hero-image {
        margin-bottom: 20px;
        border-radius: 8px;
    }

    .page-about__main-title {
        font-size: 32px;
        margin-bottom: 15px;
    }

    .page-about__intro-text {
        font-size: 17px;
        margin-bottom: 20px;
    }

    .page-about__cta-button {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
        margin-left: auto;
        margin-right: auto;
    }

    .page-about__section {
        padding: 40px 0;
    }

    .page-about__section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .page-about__history-mission .page-about__content-grid,
    .page-about__team-section .page-about__content-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .page-about__value-list {
        text-align: center;
    }

    .page-about__value-list li {
        padding: 12px 15px;
        font-size: 16px;
    }

    .page-about__feature-card img {
        
    }

    .page-about__card-title {
        font-size: 20px;
    }

    .page-about__commitment-title {
        font-size: 20px;
    }

    .page-about__button-group {
        flex-direction: column;
        gap: 15px;
    }

    .page-about__btn-primary,
    .page-about__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Images responsiveness for mobile */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__text-block,
    .page-about__image-wrapper,
    .page-about__faq-list,
    .page-about__button-group {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-about__faq-item {
        margin-left: 0;
        margin-right: 0;
    }
    .page-about__faq-question {
        padding: 15px 20px;
    }
    .page-about__faq-question h3 {
        font-size: 16px;
    }
    .page-about__faq-toggle {
        font-size: 24px;
        width: 28px;
        height: 28px;
    }
    .page-about__faq-item.active .page-about__faq-answer {
        padding: 15px 20px !important;
    }
}

@media (max-width: 480px) {
    .page-about__main-title {
        font-size: 28px;
    }
    .page-about__section-title {
        font-size: 24px;
    }
    .page-about__cta-button {
        font-size: 15px;
        padding: 10px 25px;
    }
}