/* style/about.css */

/* Base styles for the page-about content */
.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for the page, assuming dark body background */
    background-color: var(--black-color); /* From shared.css, assuming dark */
}

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

/* Hero Section */
.page-about__hero-section {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    min-height: 600px;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    padding-bottom: 60px;
    background-color: #26A9E0; /* Brand color */
    color: #ffffff;
    overflow: hidden;
}

.page-about__hero-content {
    flex: 1;
    min-width: 300px;
    padding-right: 40px;
    z-index: 1;
}

.page-about__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
}

.page-about__hero-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    max-width: 600px;
    color: #ffffff;
}

.page-about__hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.page-about__hero-image-wrapper {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
    z-index: 0;
}

.page-about__hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* General Sections */
.page-about__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    color: #26A9E0; /* Brand color for titles */
}

.page-about__section-title--white {
    color: #ffffff;
}

.page-about__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
    color: #ffffff; /* Default for dark background */
}

.page-about__text-block--white {
    color: #ffffff;
}

/* Intro Section */
.page-about__intro-section {
    padding: 80px 0;
    background-color: #26A9E0; /* Brand primary color */
    color: #ffffff;
}

/* Values Section */
.page-about__values-section {
    padding: 80px 0;
    background-color: #f8f9fa; /* Light background for contrast */
    color: #333333;
}

.page-about__values-section .page-about__section-title {
    color: #26A9E0;
}

.page-about__values-section .page-about__text-block {
    color: #333333;
}

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

.page-about__value-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    color: #333333;
}

.page-about__value-card:hover {
    transform: translateY(-10px);
}

.page-about__value-icon {
    width: 200px; /* Minimum size requirement */
    height: 200px; /* Minimum size requirement */
    margin-bottom: 20px;
    object-fit: contain;
    max-width: 100%; /* Ensure responsiveness */
    margin-left: auto;
    margin-right: auto;
}

.page-about__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #26A9E0;
}

.page-about__card-text {
    font-size: 1em;
    color: #555555;
}

/* Video Section */
.page-about__video-section {
    padding: 80px 0;
    background-color: #0d0d0d; /* Dark background */
    color: #ffffff;
    text-align: center;
}

.page-about__video-wrapper {
    position: relative;
    max-width: 800px;
    margin: 40px auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-about__video {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
}

.page-about__video-cta {
    margin-top: 40px;
}

/* FAQ Section */
.page-about__faq-section {
    padding: 80px 0;
    background-color: #f8f9fa; /* Light background */
    color: #333333;
}

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

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

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: #26A9E0;
    background-color: #f0f8ff; /* Light blue background for question */
    border-bottom: 1px solid #e0e0e0;
}

.page-about__faq-question:hover {
    background-color: #e6f2ff;
}

.page-about__faq-title {
    margin: 0;
    flex-grow: 1;
    color: #26A9E0;
}

.page-about__faq-toggle {
    font-size: 1.5em;
    font-weight: normal;
    transition: transform 0.3s ease;
    color: #26A9E0;
}

.page-about__faq-item.active .page-about__faq-toggle {
    transform: rotate(45deg);
}

.page-about__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #555555;
    background-color: #ffffff;
}

.page-about__faq-item.active .page-about__faq-answer {
    max-height: 1000px !important; /* Important for override */
    padding: 20px 25px;
}

.page-about__faq-text {
    margin: 0;
    color: #555555;
    font-size: 1em;
}

/* CTA Section */
.page-about__cta-section {
    padding: 80px 0;
    background-color: #26A9E0; /* Brand primary color */
    color: #ffffff;
    text-align: center;
}

.page-about__cta-content {
    max-width: 800px;
    margin: 0 auto;
}

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box; /* Include padding and border in element's total width and height */
}

.page-about__btn-primary {
    background-color: #EA7C07; /* Login color for primary action */
    color: #ffffff;
    border: 2px solid #EA7C07;
}

.page-about__btn-primary:hover {
    background-color: #d16b06;
    border-color: #d16b06;
}

.page-about__btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.page-about__btn-secondary:hover {
    background-color: #ffffff;
    color: #26A9E0;
}

.page-about__btn-center {
    margin-top: 20px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .page-about__hero-section {
        flex-direction: column;
        text-align: center;
        padding-top: var(--header-offset, 120px);
        padding-bottom: 40px;
    }

    .page-about__hero-content {
        padding-right: 0;
        margin-bottom: 40px;
    }

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

    .page-about__hero-description {
        max-width: 100%;
    }

    .page-about__hero-buttons {
        justify-content: center;
    }

    .page-about__values-grid {
        grid-template-columns: 1fr;
    }

    .page-about__section-title {
        font-size: 2em;
    }
}

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

    .page-about__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile offset */
        padding-left: 15px;
        padding-right: 15px;
    }

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

    .page-about__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

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

    /* Images responsiveness */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-about__hero-image-wrapper,
    .page-about__container,
    .page-about__value-card,
    .page-about__video-section,
    .page-about__video-wrapper,
    .page-about__cta-section,
    .page-about__faq-section,
    .page-about__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    /* Videos responsiveness */
    .page-about video,
    .page-about__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-about__video-section {
        padding-top: var(--header-offset, 120px) !important;
    }
    
    .page-about__value-icon {
        width: 200px !important; /* Must maintain min 200px */
        height: 200px !important;
        margin-left: auto;
        margin-right: auto;
    }
    .page-about__value-card {
      padding: 20px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    .page-about__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }
    .page-about__faq-item.active .page-about__faq-answer {
        padding: 15px 20px;
    }
    .page-about__faq-answer {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .page-about__hero-title {
        font-size: 1.8em;
    }
    .page-about__section-title {
        font-size: 1.8em;
    }
}