/* style/about.css */

:root {
    --primary-color: #0A1931;
    --secondary-color: #FFD700;
    --text-dark: #333333;
    --text-light: #ffffff;
    --background-light: #f8f9fa;
    --border-color: #e0e0e0;
}

.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark); /* Default text color for light body background */
    background-color: #ffffff;
}

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

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

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

.page-about__heading--white {
    color: var(--text-light);
}

.page-about__sub-heading {
    font-size: 18px;
    text-align: center;
    color: #666;
    margin-bottom: 40px;
}

.page-about__sub-heading--white {
    color: #cccccc;
}

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

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

/* 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);
    background-color: var(--primary-color);
    color: var(--text-light);
    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: 2;
}

.page-about__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

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

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

.page-about__hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--text-light);
    line-height: 1.2;
}

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

.page-about__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--secondary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 30px;
    transition: all 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-about__cta-button:hover {
    background: #e6c200;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.page-about__cta-button--gold:hover {
    background: #e6c200;
}

/* Story & Mission Section */
.page-about__story-mission .page-about__content-wrapper {
    display: flex;
    gap: 40px;
    align-items: center;
}

.page-about__story-mission .page-about__text-block {
    flex: 2;
    font-size: 17px;
}

.page-about__story-mission .page-about__image-block {
    flex: 1;
    min-width: 300px;
}

.page-about__story-mission .page-about__image-block img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

/* History & Milestones Section */
.page-about__milestones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-about__milestone-item {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    border: 1px solid var(--border-color);
}

.page-about__milestone-year {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-about__milestone-item p {
    font-size: 16px;
    color: #555;
}

.page-about__image-block--full {
    width: 100%;
    text-align: center;
}

.page-about__image-block--full img {
    width: 100%;
    height: auto;
    max-width: 1000px;
    border-radius: 8px;
    object-fit: cover;
    margin: 0 auto;
    display: block;
}

/* Our Commitment Section */
.page-about__commitment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-about__commitment-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-about__commitment-title {
    font-size: 24px;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

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

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

.page-about__feature-item {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-about__feature-item img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
}

.page-about__feature-item h3 {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-about__feature-item p {
    font-size: 16px;
    color: #555;
}

/* FAQ Area */
.page-about__faq-list {
    margin-top: 40px;
}

.page-about__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.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;
    padding: 0 15px;
    opacity: 0;
    background: var(--background-light);
}

.page-about__faq-item.active .page-about__faq-answer {
    max-height: 2000px !important;
    padding: 20px 15px !important;
    opacity: 1;
    border-radius: 0 0 5px 5px;
}

.page-about__faq-answer p {
    color: var(--text-dark);
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-about__faq-item.active .page-about__faq-question {
    border-bottom: none;
    border-radius: 5px 5px 0 0;
}

.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;
    pointer-events: none;
    color: var(--primary-color);
}

.page-about__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: #666;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

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

/* Future Vision Section */
.page-about__future-vision .page-about__content-wrapper {
    display: flex;
    gap: 40px;
    align-items: center;
}

.page-about__future-vision .page-about__content-wrapper--reverse {
    flex-direction: row-reverse;
}

.page-about__future-vision .page-about__text-block {
    flex: 1;
    font-size: 17px;
}

.page-about__future-vision .page-about__text-block--white p {
    color: #f0f0f0;
    margin-bottom: 20px;
}

.page-about__future-vision .page-about__image-block {
    flex: 1;
    min-width: 300px;
}

.page-about__future-vision .page-about__image-block img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-about__hero-content h1 {
        font-size: 38px;
    }
    .page-about__hero-description {
        font-size: 18px;
    }
    .page-about__heading {
        font-size: 30px;
    }
    .page-about__sub-heading {
        font-size: 16px;
    }
    .page-about__story-mission .page-about__content-wrapper,
    .page-about__future-vision .page-about__content-wrapper {
        flex-direction: column;
    }
    .page-about__story-mission .page-about__image-block,
    .page-about__future-vision .page-about__image-block {
        width: 100%;
        order: -1; /* Image on top for smaller screens */
    }
    .page-about__commitment-grid, .page-about__features-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-about__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-about__hero-content h1 {
        font-size: 30px;
    }
    .page-about__hero-description {
        font-size: 16px;
    }
    .page-about__cta-button {
        padding: 12px 30px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-left: auto;
        margin-right: auto;
        display: block;
    }
    .page-about__section {
        padding: 40px 0;
    }
    .page-about__container {
        padding: 0 15px;
    }
    .page-about__heading {
        font-size: 24px;
        margin-bottom: 15px;
    }
    .page-about__sub-heading {
        font-size: 15px;
        margin-bottom: 25px;
    }
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-about__story-mission .page-about__text-block,
    .page-about__future-vision .page-about__text-block {
        font-size: 15px;
    }
    .page-about__milestone-item,
    .page-about__commitment-item,
    .page-about__feature-item {
        padding: 20px;
    }
    .page-about__milestone-year,
    .page-about__commitment-title,
    .page-about__feature-item h3 {
        font-size: 20px;
    }
    .page-about__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    .page-about__faq-question h3 {
        font-size: 15px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    .page-about__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    .page-about__faq-answer {
        padding: 0 15px;
    }
    .page-about__faq-item.active .page-about__faq-answer {
        padding: 15px !important;
    }
    .page-about__cta-button {
        width: 100%;
        display: block;
        margin-left: 0;
        margin-right: 0;
    }
    .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;
    }
}