/* style/about.css */

/* --- General Page Styles --- */
.page-about {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: #FFFFFF; /* Default body background */
}

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

.page-about__section-title {
    font-size: 36px;
    font-weight: bold;
    color: #017439; /* Primary color for titles */
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
}

.page-about__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #017439;
    border-radius: 2px;
}

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

.page-about__section-title--white::after {
    background-color: #FFFFFF;
}

.page-about__sub-title {
    font-size: 24px;
    font-weight: 600;
    color: #017439;
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-about__sub-title--white {
    color: #FFFFFF;
}

.page-about__content-block {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 60px;
}

.page-about__content-block--reversed {
    flex-direction: row-reverse;
}

.page-about__image-wrapper {
    flex: 1;
    min-width: 300px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-about__image-content {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-about__text-block {
    flex: 2;
}

.page-about__text-block p {
    margin-bottom: 15px;
    font-size: 16px;
    line-height: 1.7;
}

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

/* --- Hero Section --- */
.page-about__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px 100px; /* Adjusted padding-bottom for content */
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    background: linear-gradient(135deg, #017439, #005f2c); /* Darker green gradient */
    color: #FFFFFF;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.page-about__hero-content {
    max-width: 900px;
    margin: 0 auto;
    z-index: 2;
}

.page-about__main-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #FFFF00; /* Register/Login font color for main title */
}

.page-about__intro-text {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 40px;
    color: #f0f0f0;
}

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

.page-about__cta-buttons--center {
    margin-top: 60px;
}

.page-about__cta-button {
    display: inline-flex; /* Use inline-flex for better alignment */
    align-items: center;
    justify-content: center;
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    min-width: 200px; /* Ensure buttons are not too small */
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    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: #e02020;
    border-color: #e02020;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

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

.page-about__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #005f2c;
    border-color: #005f2c;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* --- Section Styling --- */
.page-about__history-section,
.page-about__mission-section,
.page-about__future-section,
.page-about__contact-section,
.page-about__benefits-section {
    padding: 80px 0;
}

.page-about__history-section {
    background-color: #FFFFFF;
}

.page-about__mission-section {
    background-color: #017439; /* Primary color as dark background */
    color: #FFFFFF;
}

.page-about__benefits-section {
    background-color: #f8f8f8;
}

.page-about__future-section {
    background-color: #017439;
    color: #FFFFFF;
}

.page-about__contact-section {
    background-color: #FFFFFF;
}

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

.page-about__benefit-card {
    background-color: #FFFFFF;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%; /* Ensure cards have equal height */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.page-about__benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-about__card-icon {
    width: 200px; /* Must be at least 200px */
    height: 200px; /* Must be at least 200px */
    margin-bottom: 20px;
    object-fit: contain; /* To make sure larger icons fit without cropping */
}

.page-about__card-title {
    font-size: 20px;
    font-weight: 700;
    color: #017439;
    margin-bottom: 10px;
}

.page-about__card-description {
    font-size: 15px;
    color: #555555;
    line-height: 1.6;
}

/* --- Contact Section --- */
.page-about__contact-intro {
    text-align: center;
    font-size: 18px;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-about__contact-info {
    background-color: #f0f8ff; /* Light blueish background for contact cards */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-about__contact-icon {
    width: 200px; /* Must be at least 200px */
    height: 200px; /* Must be at least 200px */
    margin-bottom: 20px;
    object-fit: contain; /* To make sure larger icons fit without cropping */
}

.page-about__contact-title {
    font-size: 22px;
    font-weight: 700;
    color: #017439;
    margin-bottom: 10px;
}

.page-about__contact-text {
    font-size: 16px;
    color: #555555;
    line-height: 1.5;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-about__main-title {
        font-size: 40px;
    }
    .page-about__section-title {
        font-size: 30px;
    }
    .page-about__sub-title {
        font-size: 22px;
    }
    .page-about__content-block {
        flex-direction: column;
        align-items: center;
    }
    .page-about__content-block--reversed {
        flex-direction: column; /* Also column for reversed on smaller screens */
    }
    .page-about__text-block {
        flex: none;
        width: 100%;
    }
    .page-about__image-wrapper {
        flex: none;
        width: 100%;
        max-width: 600px; /* Limit image width on tablet */
    }
}

@media (max-width: 768px) {
    .page-about {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-about__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
        padding-bottom: 60px;
    }
    .page-about__main-title {
        font-size: 32px;
        margin-bottom: 15px;
    }
    .page-about__intro-text {
        font-size: 16px;
        margin-bottom: 30px;
    }
    .page-about__section-title {
        font-size: 28px;
        margin-bottom: 40px;
    }
    .page-about__sub-title {
        font-size: 20px;
    }
    .page-about__cta-buttons {
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-about__cta-button {
        width: 100% !important; /* Full width for buttons on mobile */
        max-width: 100% !important;
        padding: 12px 25px;
        font-size: 16px;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }
    .page-about__container {
        padding: 0 15px;
    }
    .page-about__content-block {
        gap: 20px;
        margin-bottom: 40px;
    }
    .page-about__image-wrapper {
        width: 100%;
        max-width: 100%;
    }
    .page-about__image-content {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-about__benefits-grid,
    .page-about__contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-about__benefit-card,
    .page-about__contact-info {
        padding: 25px;
    }
    .page-about__card-icon,
    .page-about__contact-icon {
        width: 200px !important; /* Ensure min 200px */
        height: 200px !important; /* Ensure min 200px */
        object-fit: contain;
    }
    .page-about__text-block p {
        font-size: 15px;
    }
    /* Ensure all images in content area are >= 200px */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px; /* Enforce min width */
        min-height: 200px; /* Enforce min height */
    }
    .page-about__section,
    .page-about__card,
    .page-about__container,
    .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;
    }
}