/* style/about.css */

/* Base styles for the about page */
.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light body background */
    background-color: #f0f2f5; /* Body background from shared.css */
}

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

/* Hero Section */
.page-about__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Adjust as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #FFFFFF;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
    box-sizing: border-box;
}

.page-about__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.page-about__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: 2;
}

.page-about__hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 20px;
}

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

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

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

.page-about__btn-primary,
.page-about__btn-secondary {
    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, border-color 0.3s ease;
    max-width: 100%; /* For mobile responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-about__btn-primary {
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

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

.page-about__btn-secondary {
    background-color: transparent;
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #FFFF00;
}

.page-about__btn-secondary:hover {
    background-color: #FFFF00;
    color: #C30808;
}

/* Section titles and texts */
.page-about__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    color: #017439; /* Brand color for titles */
    font-weight: bold;
}

.page-about__subsection-title {
    font-size: 1.8em;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #017439; /* Brand color for subtitles */
    font-weight: bold;
}

.page-about__section-text,
.page-about__text-block {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #333333;
}

/* Intro Section */
.page-about__intro-section {
    padding: 60px 0;
    background-color: #FFFFFF; /* Light background for contrast */
}

.page-about__image-block {
    text-align: center;
    margin: 40px 0;
}

.page-about__content-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Why Choose Us Section */
.page-about__why-choose-us {
    padding: 80px 0;
    background-color: #017439; /* Dark brand color background */
    color: #FFFFFF;
}

.page-about__why-choose-us .page-about__section-title {
    color: #FFFFFF; /* White title on dark background */
}

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

.page-about__feature-card {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark background */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    box-sizing: border-box;
}

.page-about__feature-icon {
    width: 250px; /* Example size, min 200x200 */
    height: 167px; /* Maintain aspect ratio for 600x400 */
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-about__feature-card .page-about__card-title {
    font-size: 1.5em;
    color: #FFFFFF;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-about__feature-card .page-about__card-text {
    font-size: 1em;
    color: #f0f0f0;
    flex-grow: 1;
}

/* Commitment Section */
.page-about__commitment-section {
    padding: 60px 0;
    background-color: #FFFFFF;
}

.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-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-left: 5px solid #017439; /* Brand accent */
}

/* Community Section */
.page-about__community-section {
    padding: 80px 0;
    background-color: #017439; /* Dark brand color background */
    color: #FFFFFF;
    text-align: center;
}

.page-about__community-section .page-about__section-title {
    color: #FFFFFF;
}

.page-about__community-section .page-about__section-text {
    color: #f0f0f0;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

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

/* FAQ Section */
.page-about__faq-section {
    padding: 60px 0;
    background-color: #FFFFFF;
}

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

.page-about__faq-item {
    background-color: #f9f9f9;
    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: 20px;
    font-size: 1.2em;
    font-weight: bold;
    color: #017439; /* Brand color for questions */
    cursor: pointer;
    background-color: #e8f5e9; /* Lighter brand color shade */
    border-bottom: 1px solid #dcdcdc;
    user-select: none;
}

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

.page-about__faq-toggle {
    font-size: 1.5em;
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.page-about__faq-item[open] .page-about__faq-toggle {
    transform: rotate(45deg); /* Rotate plus to cross */
}

.page-about__faq-answer {
    padding: 0 20px 20px 20px;
    font-size: 1em;
    line-height: 1.7;
    color: #333333;
}