/* style/about.css */

:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --register-color: #C30808;
    --login-color: #C30808;
    --text-on-dark-bg: #FFFFFF;
    --text-on-light-bg: #333333;
    --register-login-font-color: #FFFF00;
}

.page-about {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-on-light-bg); /* Default text color for light body background */
    background-color: var(--secondary-color); /* Body background is white */
}

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

.page-about__section {
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.page-about__section-title {
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.3;
}

.page-about__sub-title {
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-about__text-block {
    font-size: 16px;
    margin-bottom: 20px;
    color: var(--text-on-light-bg);
}

.page-about__keyword {
    font-weight: bold;
    color: var(--primary-color);
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, header offset handled by body */
    background-color: var(--primary-color);
    color: var(--text-on-dark-bg);
}

.page-about__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.page-about__hero-image {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

.page-about__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: cover;
}

.page-about__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 900px;
}

.page-about__main-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-on-dark-bg);
}

.page-about__hero-description {
    font-size: clamp(16px, 2.5vw, 20px);
    margin-bottom: 30px;
    color: var(--text-on-dark-bg);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__cta-button {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-about__btn-register {
    background: var(--register-color);
    color: var(--register-login-font-color);
    border: 2px solid var(--register-color);
}

.page-about__btn-register:hover {
    background: darken(var(--register-color), 10%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-about__btn-login {
    background: var(--login-color);
    color: var(--register-login-font-color);
    border: 2px solid var(--login-color);
}

.page-about__btn-login:hover {
    background: darken(var(--login-color), 10%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-about__btn-secondary {
    background: var(--secondary-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-about__btn-secondary:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Section Backgrounds */
.page-about__dark-bg {
    background-color: var(--primary-color);
    color: var(--text-on-dark-bg);
}

.page-about__dark-bg .page-about__section-title, 
.page-about__dark-bg .page-about__sub-title {
    color: var(--text-on-dark-bg);
}

.page-about__dark-bg .page-about__text-block, 
.page-about__dark-bg .page-about__keyword {
    color: var(--text-on-dark-bg);
}

.page-about__light-bg {
    background-color: var(--secondary-color);
    color: var(--text-on-light-bg);
}

.page-about__light-bg .page-about__section-title, 
.page-about__light-bg .page-about__sub-title {
    color: var(--primary-color);
}

.page-about__light-bg .page-about__text-block, 
.page-about__light-bg .page-about__keyword {
    color: var(--text-on-light-bg);
}

/* Grid Layout for image and content */
.page-about__grid-layout {
    display: flex;
    align-items: center;
    gap: 40px;
}

.page-about__grid-layout--reverse {
    flex-direction: row-reverse;
}

.page-about__content-column, .page-about__image-column {
    flex: 1;
}

.page-about__image-column img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

/* Core Values Section */
.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: var(--secondary-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    border: 1px solid #e0e0e0;
    color: var(--text-on-light-bg);
}

.page-about__value-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-about__value-card p {
    font-size: 15px;
    color: var(--text-on-light-bg);
}

/* Why Choose Section */
.page-about__feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-about__feature-list li {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px 25px;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: transform 0.3s ease, background-color 0.3s ease;
    color: var(--text-on-dark-bg);
}

.page-about__feature-list li:last-child {
    margin-bottom: 0;
}

.page-about__feature-list h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-on-dark-bg);
    margin-top: 0;
    margin-bottom: 10px;
}

.page-about__feature-list p {
    font-size: 15px;
    color: var(--text-on-dark-bg);
}

.page-about__feature-list li:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

/* Commitment Section */
.page-about__commitment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.page-about__commitment-item {
    background: var(--secondary-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: left;
    border: 1px solid #e0e0e0;
    color: var(--text-on-light-bg);
}

.page-about__commitment-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-about__commitment-item p {
    font-size: 15px;
    color: var(--text-on-light-bg);
}

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

.page-about__image-container img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Social Responsibility Section */
.page-about__content-wrapper {
    display: flex;
    gap: 40px;
    align-items: center;
}

.page-about__content-wrapper .page-about__text-block {
    flex: 1;
}

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

.page-about__image-block img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* FAQ Section */
details.page-about__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    background: #fff;
    color: var(--text-on-light-bg);
}

details.page-about__faq-item summary.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
}

details.page-about__faq-item summary.page-about__faq-question::-webkit-details-marker {
    display: none;
}

details.page-about__faq-item summary.page-about__faq-question:hover {
    background: #f5f5f5;
}

.page-about__faq-qtext {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: var(--primary-color);
}

.page-about__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: #666;
    flex-shrink: 0;
    margin-left: 15px;
    width: 28px;
    text-align: center;
}

details.page-about__faq-item .page-about__faq-answer {
    padding: 0 20px 20px;
    background: #f9f9f9;
    border-radius: 0 0 5px 5px;
}

.page-about__faq-answer p {
    margin-top: 10px;
    margin-bottom: 0;
    font-size: 15px;
    color: var(--text-on-light-bg);
}

/* Contact CTA Section */
.page-about__contact-cta-section {
    background-color: var(--primary-color);
    color: var(--text-on-dark-bg);
    text-align: center;
    padding: 80px 0;
}

.page-about__contact-cta-content {
    max-width: 800px;
}

.page-about__contact-cta-section .page-about__section-title {
    color: var(--text-on-dark-bg);
    margin-bottom: 25px;
}

.page-about__contact-cta-section .page-about__text-block {
    color: var(--text-on-dark-bg);
    font-size: 18px;
    margin-bottom: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__grid-layout {
        flex-direction: column;
        text-align: center;
    }
    .page-about__grid-layout--reverse {
        flex-direction: column;
    }
    .page-about__content-column, .page-about__image-column {
        flex: none;
        width: 100%;
    }
    .page-about__image-column {
        margin-bottom: 30px;
    }
    .page-about__content-wrapper {
        flex-direction: column;
    }
    .page-about__image-block {
        order: -1; /* Image appears above text on smaller screens */
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .page-about__section {
        padding: 40px 0;
    }
    .page-about__section-title {
        font-size: 24px;
        margin-bottom: 30px;
    }
    .page-about__hero-section {
        padding-top: 10px !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-about__hero-image img {
        border-radius: 4px;
    }
    .page-about__main-title {
        font-size: 28px;
    }
    .page-about__hero-description {
        font-size: 16px;
    }
    .page-about__cta-button {
        padding: 12px 30px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-left: auto;
        margin-right: auto;
    }
    .page-about__values-grid, .page-about__commitment-grid {
        grid-template-columns: 1fr;
    }
    .page-about__value-card, .page-about__commitment-item {
        padding: 20px;
    }
    .page-about__value-title, .page-about__commitment-title {
        font-size: 20px;
    }
    .page-about__feature-list li {
        padding: 15px 20px;
    }
    .page-about__feature-list h3 {
        font-size: 18px;
    }
    details.page-about__faq-item summary.page-about__faq-question { 
        padding: 15px; 
    }
    .page-about__faq-qtext { 
        font-size: 15px; 
    }
    .page-about__faq-answer {
        padding: 0 15px 15px;
    }
    .page-about__faq-answer p {
        font-size: 14px;
    }
    .page-about__contact-cta-section {
        padding: 60px 20px;
    }
    .page-about__contact-cta-section .page-about__text-block {
        font-size: 16px;
    }
    /* Mobile image responsiveness */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-about__container, .page-about__content-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 480px) {
    .page-about__section-title {
        font-size: 22px;
    }
    .page-about__main-title {
        font-size: 24px;
    }
    .page-about__hero-description {
        font-size: 15px;
    }
    .page-about__cta-button {
        font-size: 15px;
        padding: 10px 25px;
    }
}