/* style/about.css */

/* Custom properties for colors */
:root {
    --primary-color: #1A202C; /* Dark blue/charcoal */
    --secondary-color: #FFD700; /* Gold */
    --text-color-light: #f9f9f9;
    --text-color-dark: #333333;
    --background-light: #f4f4f4; /* From shared.css body background */
    --border-color: #e0e0e0;
    --button-hover-dark: #0f1218;
    --button-hover-gold: #e6c200;
}

/* Base styles for the about page content */
.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color-dark); /* Ensure text is dark on light body background */
    background-color: var(--background-light); /* Inherited from body, but explicitly set for safety */
}

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

.page-about__section {
    padding: 60px 0;
    margin-bottom: 20px; /* Consistent spacing between sections */
}

.page-about__light-bg {
    background-color: var(--background-light);
    color: var(--text-color-dark);
}

.page-about__dark-bg {
    background-color: var(--primary-color);
    color: var(--text-color-light);
}

.page-about__section-title {
    font-size: 36px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
}

.page-about__section-title--light {
    color: var(--text-color-light);
}

.page-about__sub-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.page-about__dark-bg .page-about__sub-title {
    color: var(--secondary-color);
}

/* 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); /* Fixed header offset */
    background: linear-gradient(135deg, var(--primary-color) 0%, #3a475a 100%); /* Gradient background for hero */
    color: var(--text-color-light);
    min-height: 500px; /* Ensure hero section has a minimum height */
}

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

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

.page-about__main-title {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--secondary-color); /* Gold color for main title */
}

.page-about__intro-description {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--secondary-color); /* Gold button */
    color: var(--primary-color); /* Dark text on gold button */
    text-decoration: none;
    border-radius: 8px;
    font-size: 20px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
}

.page-about__cta-button:hover {
    background: var(--button-hover-gold);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-about__cta-button--secondary {
    background: var(--primary-color);
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.page-about__cta-button--secondary:hover {
    background: var(--button-hover-dark);
    color: var(--secondary-color);
    border-color: var(--button-hover-gold);
}


/* Mission & Vision Section */
.page-about__content-grid {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
}

.page-about__content-grid--reverse {
    flex-direction: row-reverse;
}

.page-about__text-block {
    flex: 1;
}

.page-about__text-block p {
    margin-bottom: 15px;
    font-size: 16px;
}

.page-about__image-block {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-about__image-block img {
    width: 100%;
    height: auto;
    max-width: 600px; /* Constrain max width for images in content grid */
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

/* Values Section */
.page-about__values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-about__value-card {
    background-color: rgba(255, 255, 255, 0.1); /* Light transparent background on dark section */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.page-about__value-card .page-about__card-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--secondary-color); /* Gold color for titles on dark background */
}

.page-about__value-card p {
    font-size: 16px;
    color: var(--text-color-light);
}

/* Commitment Section */
.page-about__commitment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.page-about__commitment-item {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-about__commitment-item img {
    width: 200px; /* Example size, adjust as needed */
    height: 200px;
    margin-bottom: 20px;
    object-fit: contain;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
    display: block; /* Ensure block for proper centering */
    margin-left: auto;
    margin-right: auto;
}

.page-about__commitment-item .page-about__card-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.page-about__commitment-item p {
    font-size: 16px;
    color: var(--text-color-dark);
}

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

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

.page-about__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    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: #f5f5f5;
    border-color: #d0d0d0;
}

.page-about__faq-question:active {
    background: #eeeeee;
}

.page-about__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--primary-color);
    pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-about__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: var(--primary-color);
    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;
}

.page-about__faq-item.active .page-about__faq-toggle {
    color: var(--secondary-color);
    transform: rotate(180deg); /* Rotate for minus sign visual */
}

.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;
    background: #f9f9f9;
    color: var(--text-color-dark);
}

.page-about__faq-item.active .page-about__faq-answer {
    max-height: 2000px !important; /* Ensure it expands sufficiently */
    padding: 20px 25px !important;
    opacity: 1;
    border-radius: 0 0 8px 8px;
    border: 1px solid var(--border-color);
    border-top: none;
}

.page-about__faq-answer p {
    margin: 0;
    font-size: 16px;
}

/* Contact CTA Section */
.page-about__contact-cta {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #3a475a 100%);
    color: var(--text-color-light);
}

.page-about__contact-flex {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.page-about__contact-cta .page-about__section-title {
    color: var(--text-color-light);
    margin-bottom: 0;
}

.page-about__contact-text {
    font-size: 18px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-about__main-title {
        font-size: 42px;
    }
    .page-about__section-title {
        font-size: 32px;
    }
    .page-about__intro-description {
        font-size: 17px;
    }
    .page-about__content-grid,
    .page-about__content-grid--reverse {
        flex-direction: column;
        gap: 30px;
    }
    .page-about__image-block img {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    /* Fixed header offset for mobile */
    .page-about__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
        min-height: 400px;
    }

    .page-about__main-title {
        font-size: 32px;
        margin-bottom: 15px;
    }
    .page-about__intro-description {
        font-size: 15px;
        margin-bottom: 20px;
    }
    .page-about__cta-button {
        padding: 12px 30px;
        font-size: 16px;
        margin-top: 15px;
    }

    .page-about__section {
        padding: 40px 0;
    }
    .page-about__section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    .page-about__sub-title {
        font-size: 20px;
    }

    /* Images responsiveness for mobile */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important; /* Ensure min size */
        min-height: 200px !important; /* Ensure min size */
    }
    
    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__value-card,
    .page-about__commitment-item,
    .page-about__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-about__container {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Buttons responsiveness for mobile */
    .page-about__cta-button,
    .page-about__btn-primary,
    .page-about__btn-secondary,
    .page-about a[class*="button"],
    .page-about a[class*="btn"] {
      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;
    }
    
    .page-about__cta-buttons,
    .page-about__button-group,
    .page-about__btn-container {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      flex-wrap: wrap !important;
      gap: 10px;
    }
    .page-about__contact-flex {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* FAQ for mobile */
    .page-about__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    
    .page-about__faq-question h3 {
        font-size: 16px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    
    .page-about__faq-toggle {
        margin-left: 10px;
        width: 28px;
        height: 28px;
        font-size: 24px;
    }
    
    .page-about__faq-answer {
        padding: 0 15px;
    }
    
    .page-about__faq-item.active .page-about__faq-answer {
        padding: 15px !important;
    }
}

@media (max-width: 480px) {
    .page-about__main-title {
        font-size: 28px;
    }
    .page-about__section-title {
        font-size: 24px;
    }
    .page-about__intro-description {
        font-size: 14px;
    }
    .page-about__value-card,
    .page-about__commitment-item {
        padding: 20px;
    }
    .page-about__value-card .page-about__card-title,
    .page-about__commitment-item .page-about__card-title {
        font-size: 20px;
    }
    .page-about__commitment-item img {
        width: 200px;
        height: 200px;
        min-width: 200px; /* Still ensure min size */
        min-height: 200px; /* Still ensure min size */
    }
}