/* style/about.css */
:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --text-color-dark: #333333;
    --text-color-light: #ffffff;
    --bg-color-light: #ffffff;
    --bg-color-dark: #017439;
    --register-btn-bg: #C30808;
    --login-btn-bg: #C30808;
    --register-login-font: #FFFF00;
}

.page-about {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color-dark);
    background-color: var(--bg-color-light);
}

.page-about__section {
    padding: 60px 0;
    text-align: center;
}

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

.page-about__main-title {
    font-size: 44px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-color-light);
}

.page-about__intro-text {
    font-size: 20px;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-color-light);
}

.page-about__section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--primary-color);
}

.page-about__section-title--white {
    color: var(--text-color-light);
}

.page-about__section-description {
    font-size: 18px;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-color-dark);
}

.page-about__section-description--white {
    color: var(--secondary-color);
}

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

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

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

/* 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: var(--header-offset, 120px);
    background: linear-gradient(135deg, var(--primary-color), #004d2a);
    overflow: hidden;
}

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

.page-about__hero-image {
    width: 100%;
    margin-bottom: 30px;
    max-width: 900px; /* Constrain hero image width */
}

.page-about__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

/* Dark background sections */
.page-about__dark-section {
    background: var(--bg-color-dark);
    color: var(--text-color-light);
}

.page-about__dark-section .page-about__section-description {
    color: var(--secondary-color);
}

/* Light background sections */
.page-about__light-bg {
    background: var(--bg-color-light);
    color: var(--text-color-dark);
}

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

.page-about__card {
    background: var(--secondary-color);
    color: var(--text-color-dark);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-about__card-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-about__card-title--white {
    color: var(--secondary-color);
}

.page-about__card-text--white {
    color: var(--secondary-color);
}

.page-about__card img {
    width: 100%;
    height: auto;
    max-width: 100%;
    border-radius: 8px;
    margin-top: 20px;
    object-fit: cover;
}

.page-about__card--dark {
    background: #004d2a;
    color: var(--text-color-light);
}

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

.page-about__feature-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, background 0.3s ease;
}

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

.page-about__feature-item img {
    width: 100%;
    height: auto;
    max-width: 250px;
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
}

.page-about__feature-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.page-about__feature-item p {
    color: rgba(255, 255, 255, 0.8);
}

/* Timeline */
.page-about__timeline {
    position: relative;
    max-width: 900px;
    margin: 60px auto;
    padding: 20px 0;
}

.page-about__timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.page-about__timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    box-sizing: border-box;
}

.page-about__timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.page-about__timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

.page-about__timeline-item::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -17px;
    background: var(--primary-color);
    border: 4px solid var(--secondary-color);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.page-about__timeline-item:nth-child(even)::after {
    left: -16px;
}

.page-about__timeline-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.page-about__timeline-year {
    font-size: 16px;
    font-weight: bold;
    color: #666;
    margin-bottom: 10px;
}

.page-about__timeline-item p {
    font-size: 16px;
    color: var(--text-color-dark);
}

/* Value List */
.page-about__value-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.page-about__value-item {
    background: var(--secondary-color);
    padding: 25px;
    border-left: 5px solid var(--primary-color);
    border-radius: 5px;
    text-align: left;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    font-size: 18px;
    color: var(--text-color-dark);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__value-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-about__value-item strong {
    color: var(--primary-color);
}

/* FAQ Section */
.page-about__faq-section {
    background-color: var(--bg-color-light);
}

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

.page-about__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.page-about__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 15px;
    opacity: 0;
    background: #f9f9f9;
    color: var(--text-color-dark);
}

.page-about__faq-item.active .page-about__faq-answer {
    max-height: 2000px !important;
    padding: 20px 15px !important;
    opacity: 1;
    background: #f9f9f9;
    border-radius: 0 0 5px 5px;
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #fff;
    border-bottom: 1px solid transparent; /* initially transparent */
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-about__faq-item.active .page-about__faq-question {
    border-color: #e0e0e0;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

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

.page-about__faq-question:active {
    background: #eeeeee;
}

.page-about__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none;
    color: var(--text-color-dark);
}

.page-about__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: var(--primary-color);
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.page-about__faq-item.active .page-about__faq-toggle {
    color: var(--primary-color);
    transform: rotate(180deg);
}

/* CTA Section */
.page-about__cta-section {
    background: linear-gradient(90deg, #004d2a, var(--primary-color));
    padding: 80px 0;
}

.page-about__cta-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.page-about__cta-container img {
    max-width: 600px;
    width: 100%;
    height: auto;
    margin-top: 40px;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    object-fit: cover;
}

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

    .page-about__section-title {
        font-size: 30px;
    }

    .page-about__timeline::after {
        left: 30px;
    }

    .page-about__timeline-item {
        width: 100%;
        padding-left: 60px;
        padding-right: 20px;
        text-align: left;
    }

    .page-about__timeline-item::after {
        left: 23px;
        right: auto;
    }

    .page-about__timeline-item:nth-child(even) {
        left: 0;
    }
}

@media (max-width: 768px) {
    .page-about__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-about__main-title {
        font-size: 32px;
    }

    .page-about__intro-text {
        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__section {
        padding: 40px 0;
    }

    .page-about__section-title {
        font-size: 26px;
        margin-bottom: 20px;
    }

    .page-about__section-description {
        font-size: 15px;
        margin-bottom: 30px;
    }

    .page-about__card-grid, .page-about__feature-grid, .page-about__value-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-about__card, .page-about__feature-item, .page-about__value-item {
        padding: 25px;
    }

    .page-about__card-title {
        font-size: 20px;
    }

    .page-about__feature-title {
        font-size: 18px;
    }

    .page-about__timeline::after {
        left: 15px;
    }

    .page-about__timeline-item {
        padding-left: 45px;
        padding-right: 15px;
    }

    .page-about__timeline-item::after {
        left: 8px;
    }

    .page-about__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    
    .page-about__faq-question h3 {
        font-size: 15px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    
    .page-about__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    
    .page-about__faq-answer {
        padding: 0 15px;
    }
    
    .page-about__faq-item.active .page-about__faq-answer {
        padding: 15px !important;
    }

    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__cta-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 480px) {
    .page-about__main-title {
        font-size: 28px;
    }

    .page-about__section-title {
        font-size: 22px;
    }

    .page-about__cta-button {
        font-size: 15px;
        padding: 10px 25px;
    }

    .page-about__card-title {
        font-size: 18px;
    }
}