/* style/about.css */

/* Base styles for the about page */
.page-about {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: #121212; /* Inherited from body, but explicitly set for clarity */
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
    text-align: center;
    background-color: #1a1a1a; /* Slightly lighter dark background for hero */
    overflow: hidden; /* Prevent image overflow */
}

.page-about__hero-content {
    max-width: 900px;
    z-index: 1;
    margin-bottom: 40px;
}

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

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

.page-about__hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-about__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.page-about__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2; /* Subtle background image */
}

/* General Section Styles */
.page-about__section {
    padding: 60px 20px;
    margin-bottom: 20px;
}

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

.page-about__light-bg {
    background-color: #ffffff;
    color: #333333; /* Dark text for light background */
}

.page-about__dark-text {
    color: #333333; /* For elements within light-bg sections */
}

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

.page-about__light-bg .page-about__section-title {
    color: #26A9E0; /* Ensure brand color on light background */
}

.page-about__subsection-title {
    font-size: 1.8em;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #26A9E0; /* Brand color for sub-titles */
}

.page-about__light-bg .page-about__subsection-title {
    color: #26A9E0;
}

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

.page-about__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #f0f0f0;
}

.page-about__light-bg .page-about__text-block {
    color: #555555; /* Darker text for light background */
}

/* Grid Layouts */
.page-about__grid-two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
}

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

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

.page-about__image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: block; /* Ensure no extra space below image */
}

.page-about__center-image {
    margin-top: 40px;
}

/* Feature Cards */
.page-about__feature-card {
    background-color: rgba(255, 255, 255, 0.95); /* Light background for card on light section */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    color: #333333; /* Dark text for light card */
}

.page-about__feature-card:hover {
    transform: translateY(-5px);
}

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

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

.page-about__feature-list {
    list-style: disc;
    margin-left: 20px;
    margin-top: 15px;
    color: #555555;
}

.page-about__feature-list li {
    margin-bottom: 8px;
}

.page-about__feature-list a {
    color: #26A9E0;
    text-decoration: none;
}

.page-about__feature-list a:hover {
    text-decoration: underline;
}

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box; /* Crucial for responsive buttons */
    max-width: 100%; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-about__btn-primary {
    background-color: #26A9E0; /* Primary brand color */
    color: #ffffff;
    border: 2px solid #26A9E0;
}

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

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

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

.page-about__btn-large {
    padding: 18px 35px;
    font-size: 1.2em;
}

/* CTA Final Section */
.page-about__cta-final {
    padding: 80px 20px;
    background-color: #ffffff;
    color: #333333;
}

.page-about__cta-final .page-about__section-title {
    color: #26A9E0;
}

.page-about__cta-final .page-about__text-block {
    color: #555555;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
}

.page-about__text-center {
    text-align: center;
}

/* FAQ Section */
.page-about__faq-section {
    background-color: #1a1a1a;
    color: #ffffff;
}

.page-about__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

.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: #ffffff;
    background-color: rgba(255, 255, 255, 0.08);
    transition: background-color 0.3s ease;
}

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

.page-about__faq-title {
    margin: 0;
    color: #ffffff;
    font-size: 1.2em;
}

.page-about__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    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-out, padding 0.3s ease-out;
    background-color: rgba(255, 255, 255, 0.03);
}

.page-about__faq-item.active .page-about__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 20px 25px;
}

.page-about__faq-answer .page-about__text-block {
    margin-bottom: 0;
    color: #f0f0f0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__hero-title {
        font-size: 2.8em;
    }

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

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

    .page-about__grid-two-columns.page-about__reverse-on-mobile {
        flex-direction: column-reverse; /* For reversing content-image order on mobile */
        display: flex; /* Override grid for column-reverse */
    }
}

@media (max-width: 768px) {
    .page-about__hero-section {
        padding: 60px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
    }

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

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

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

    .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__hero-buttons,
    .page-about__cta-final .page-about__hero-buttons {
        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__section {
        padding: 40px 15px;
    }

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

    .page-about__subsection-title {
        font-size: 1.5em;
    }

    .page-about__text-block {
        font-size: 1em;
    }

    /* Images responsiveness */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__hero-image-wrapper,
    .page-about__image-block {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Ensure no overflow */
    }

    .page-about__hero-image-wrapper {
        position: relative; /* Adjust hero image wrapper for mobile */
        height: 200px; /* Give it a fixed height or aspect ratio */
        margin-bottom: 20px;
    }
    .page-about__hero-image {
        position: static; /* Reset absolute positioning */
        height: 100%;
    }

    .page-about__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }

    .page-about__faq-answer {
        padding: 0 20px;
    }

    .page-about__faq-item.active .page-about__faq-answer {
        padding: 15px 20px;
    }
}