/* style/about.css */

/* Base styles for the About Us page content */
.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Body background is dark #121212, so text is light */
    background-color: #121212; /* Ensure consistent background for main content area */
}

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

/* Hero Section */
.page-about__hero-section {
    position: relative;
    padding: 80px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #017439; /* Brand main color */
    color: #ffffff;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

.page-about__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #FFFF00; /* Use custom font color for emphasis */
}

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

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

.page-about__btn-primary,
.page-about__btn-secondary,
.page-about__btn-register,
.page-about__btn-login,
.page-about__btn-download {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    max-width: 100%; /* Ensure buttons don't overflow */
}

.page-about__btn-primary {
    background-color: #017439; /* Brand main color */
    color: #ffffff;
    border: 2px solid #017439;
}

.page-about__btn-primary:hover {
    background-color: #005a2e; /* Darker green on hover */
    border-color: #005a2e;
}

.page-about__btn-secondary {
    background-color: #ffffff;
    color: #017439; /* Brand main color */
    border: 2px solid #017439;
}

.page-about__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #005a2e; /* Darker green on hover */
    border-color: #005a2e;
}

.page-about__btn-register {
    background-color: #C30808; /* Custom red for register */
    color: #FFFF00; /* Custom yellow for font */
    border: 2px solid #C30808;
}

.page-about__btn-register:hover {
    background-color: #a00606;
    border-color: #a00606;
}

.page-about__btn-login {
    background-color: #C30808; /* Custom red for login */
    color: #FFFF00; /* Custom yellow for font */
    border: 2px solid #C30808;
}

.page-about__btn-login:hover {
    background-color: #a00606;
    border-color: #a00606;
}

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

.page-about__btn-download:hover {
    background-color: #005a2e;
    border-color: #005a2e;
}

.page-about__hero-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 40px auto 0 auto;
    border-radius: 10px;
    object-fit: cover;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

/* General Section Styles */
.page-about__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    color: #FFFF00; /* Custom yellow for titles */
}

.page-about__section-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

.page-about__introduction-section,
.page-about__why-choose-section,
.page-about__commitment-section,
.page-about__join-us-section,
.page-about__faq-section {
    padding: 60px 0;
    background-color: #1a1a1a; /* Slightly lighter dark background for sections */
    margin-bottom: 20px;
    border-radius: 10px;
}

.page-about__content-grid,
.page-about__feature-grid,
.page-about__commitment-grid,
.page-about__join-steps {
    display: grid;
    gap: 30px;
    margin-top: 30px;
}

.page-about__content-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.page-about__feature-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.page-about__commitment-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.page-about__join-steps {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    text-align: center;
}

.page-about__text-block h3,
.page-about__feature-card h3,
.page-about__commitment-card h3,
.page-about__step-card h4 {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #017439; /* Brand main color for sub-titles */
}

.page-about__text-block p,
.page-about__feature-card p,
.page-about__commitment-card p,
.page-about__step-card p {
    color: #f0f0f0;
    margin-bottom: 10px;
}

.page-about__feature-card ul {
    list-style: disc inside;
    color: #f0f0f0;
    padding-left: 20px;
}

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

.page-about__content-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 8px;
    object-fit: cover;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

.page-about__text-link {
    color: #FFFF00; /* Yellow for links */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-about__text-link:hover {
    text-decoration: underline;
    color: #fff;
}

.page-about__feature-card,
.page-about__commitment-card,
.page-about__step-card {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white for cards */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-about__download-app {
    text-align: center;
    margin-top: 60px;
    padding: 40px;
    background-color: #017439; /* Brand main color */
    border-radius: 10px;
    color: #ffffff;
}

.page-about__download-title {
    font-size: 2em;
    margin-bottom: 15px;
    color: #FFFF00;
}

.page-about__download-description {
    font-size: 1.1em;
    margin-bottom: 30px;
}

/* FAQ Section */
.page-about__faq-list {
    margin-top: 30px;
}

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

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

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

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

.page-about__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #FFFF00; /* Yellow for toggle icon */
    transition: transform 0.3s ease;
}

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

.page-about__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #f0f0f0;
}

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

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

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

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

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

    .page-about__hero-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        padding: 0 15px; /* Add padding for buttons in mobile */
    }

    .page-about__btn-primary,
    .page-about__btn-secondary,
    .page-about__btn-register,
    .page-about__btn-login,
    .page-about__btn-download {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
    }

    .page-about__introduction-section,
    .page-about__why-choose-section,
    .page-about__commitment-section,
    .page-about__join-us-section,
    .page-about__faq-section {
        padding: 40px 0;
    }

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

    .page-about__container {
        padding: 0 15px;
    }

    .page-about__content-grid,
    .page-about__feature-grid,
    .page-about__commitment-grid,
    .page-about__join-steps {
        grid-template-columns: 1fr;
    }

    /* Images responsive */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* All containers that hold images or content for mobile */
    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__text-block,
    .page-about__feature-card,
    .page-about__commitment-card,
    .page-about__step-card,
    .page-about__download-app,
    .page-about__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Specific adjustment for cards to avoid double padding if container already adds it */
    .page-about__feature-card,
    .page-about__commitment-card,
    .page-about__step-card {
        padding: 20px; /* Adjust card padding for mobile */
    }

    .page-about__faq-question,
    .page-about__faq-answer {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-about__faq-item.active .page-about__faq-answer {
        padding: 15px; /* Adjust active padding for mobile */
    }

    /* Video responsive (if any, though none explicitly in this content) */
    .page-about video,
    .page-about__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-about__video-section,
    .page-about__video-container,
    .page-about__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-about__video-section {
        padding-top: var(--header-offset, 120px) !important;
    }
}