/* style/about.css */

/* Custom Colors from palette */
:root {
    --page-about-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --page-about-card-bg: #11271B;
    --page-about-background: #08160F;
    --page-about-text-main: #F2FFF6;
    --page-about-text-secondary: #A7D9B8;
    --page-about-border: #2E7A4E;
    --page-about-glow: #57E38D;
    --page-about-gold: #F2C14E;
    --page-about-divider: #1E3A2A;
    --page-about-deep-green: #0A4B2C;
}

.page-about {
    font-family: 'Arial', sans-serif;
    background-color: var(--page-about-background); /* Dark background from custom palette */
    color: var(--page-about-text-main); /* Light text for dark background */
    line-height: 1.6;
}

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

.page-about__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
    background-color: var(--page-about-deep-green);
}

.page-about__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit height to prevent image from being too tall */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px; /* Space between image and content */
}

.page-about__hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    min-width: 200px;
    min-height: 200px;
}

.page-about__hero-content {
    position: relative; /* Ensure content is above any potential background elements */
    z-index: 2;
    max-width: 900px;
    padding: 0 20px;
}

.page-about__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: var(--page-about-text-main);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-about__intro-text {
    font-size: 1.2rem;
    color: var(--page-about-text-secondary);
    margin-bottom: 30px;
}

.page-about__cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    min-width: 150px;
}

.page-about__btn-primary {
    background: var(--page-about-button-gradient);
    color: var(--page-about-text-main);
    border: none;
}

.page-about__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.page-about__btn-secondary {
    background-color: transparent;
    color: var(--page-about-text-main);
    border: 2px solid var(--page-about-border);
}

.page-about__btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.page-about__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--page-about-text-main);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
}

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

.page-about__section-description {
    font-size: 1.1rem;
    color: var(--page-about-text-secondary);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
}

.page-about__section-description--light {
    color: var(--page-about-text-secondary);
}

/* Mission Vision Section */
.page-about__mission-vision-section {
    padding: 80px 0;
    background-color: var(--page-about-background);
}

.page-about__grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-about__card {
    background-color: var(--page-about-card-bg);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--page-about-text-main);
    border: 1px solid var(--page-about-border);
}

.page-about__card-title {
    font-size: 1.8rem;
    color: var(--page-about-gold);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-about__card-text {
    font-size: 1rem;
    color: var(--page-about-text-secondary);
    flex-grow: 1;
    margin-bottom: 20px;
}

.page-about__card-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    min-width: 200px;
    min-height: 200px;
}

/* Why Choose Section */
.page-about__why-choose-section {
    padding: 80px 0;
    background-color: var(--page-about-deep-green);
}

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

.page-about__feature-item {
    padding: 25px;
    background-color: var(--page-about-card-bg);
    border-radius: 10px;
    text-align: center;
    border: 1px solid var(--page-about-border);
}

.page-about__feature-title {
    font-size: 1.5rem;
    color: var(--page-about-gold);
    margin-bottom: 10px;
    font-weight: 600;
}

.page-about__feature-text {
    font-size: 0.95rem;
    color: var(--page-about-text-secondary);
}

.page-about__main-feature-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    min-width: 200px;
    min-height: 200px;
}

/* History Section */
.page-about__history-section {
    padding: 80px 0;
    background-color: var(--page-about-background);
}

.page-about__timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto 50px auto;
    padding: 20px 0;
}

.page-about__timeline::before {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--page-about-divider);
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.page-about__timeline-item {
    margin-bottom: 40px;
    position: relative;
    width: 50%;
    padding: 20px 40px;
    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: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--page-about-gold);
    border: 3px solid var(--page-about-border);
    top: 28px;
    z-index: 1;
}

.page-about__timeline-item:nth-child(odd)::after {
    right: -8px;
    transform: translateX(50%);
}

.page-about__timeline-item:nth-child(even)::after {
    left: -8px;
    transform: translateX(-50%);
}

.page-about__timeline-title {
    font-size: 1.6rem;
    color: var(--page-about-gold);
    margin-bottom: 10px;
    font-weight: 600;
}

.page-about__timeline-text {
    font-size: 1rem;
    color: var(--page-about-text-secondary);
}

.page-about__history-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    min-width: 200px;
    min-height: 200px;
}

/* Responsibility Section */
.page-about__responsibility-section {
    padding: 80px 0;
    background-color: var(--page-about-deep-green);
}

.page-about__content-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.page-about__text-block {
    background-color: var(--page-about-card-bg);
    border-radius: 10px;
    padding: 30px;
    border: 1px solid var(--page-about-border);
    color: var(--page-about-text-main);
}

.page-about__sub-title {
    font-size: 1.7rem;
    color: var(--page-about-gold);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-about__paragraph {
    font-size: 1rem;
    color: var(--page-about-text-secondary);
}

.page-about__responsibility-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    min-width: 200px;
    min-height: 200px;
}

/* FAQ Section */
.page-about__faq-section {
    padding: 80px 0;
    background-color: var(--page-about-background);
}

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

.page-about__faq-item {
    background-color: var(--page-about-card-bg);
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--page-about-border);
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--page-about-text-main);
    background-color: var(--page-about-card-bg);
    user-select: none;
    position: relative;
    list-style: none;
}

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

.page-about__faq-qtext {
    flex-grow: 1;
    color: var(--page-about-gold);
}

.page-about__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    margin-left: 15px;
    color: var(--page-about-text-main);
    transition: transform 0.3s ease;
}

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

.page-about__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1rem;
    color: var(--page-about-text-secondary);
    line-height: 1.6;
}

/* Call to Action Section */
.page-about__cta-section {
    padding: 60px 0;
    text-align: center;
    background-color: var(--page-about-deep-green);
}

.page-about__btn-primary--large {
    font-size: 1.25rem;
    padding: 16px 40px;
    min-width: 200px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__hero-image-wrapper {
        max-height: 500px;
    }
    .page-about__hero-content {
        padding: 0 15px;
    }
    .page-about__timeline::before {
        left: 20px;
        transform: translateX(0);
    }
    .page-about__timeline-item {
        width: 100%;
        padding-left: 60px;
        padding-right: 20px;
        text-align: left;
    }
    .page-about__timeline-item:nth-child(odd),
    .page-about__timeline-item:nth-child(even) {
        left: 0;
    }
    .page-about__timeline-item:nth-child(odd)::after,
    .page-about__timeline-item:nth-child(even)::after {
        left: 12px;
        transform: translateX(0);
    }
}

@media (max-width: 768px) {
    /* Mobile specific image adaptation */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__hero-section,
    .page-about__mission-vision-section,
    .page-about__why-choose-section,
    .page-about__history-section,
    .page-about__responsibility-section,
    .page-about__faq-section,
    .page-about__cta-section,
    .page-about__hero-image-wrapper,
    .page-about__grid-layout,
    .page-about__features-grid,
    .page-about__content-wrapper,
    .page-about__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-about__hero-section {
        padding-top: 10px !important;
        padding-bottom: 40px !important;
    }

    .page-about__main-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
    }

    .page-about__intro-text {
        font-size: 1rem;
    }

    .page-about__cta-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .page-about__btn-primary,
    .page-about__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-about__section-title {
        font-size: clamp(1.8rem, 7vw, 2.2rem);
        margin-bottom: 30px;
    }

    .page-about__section-description {
        font-size: 0.95rem;
        margin-bottom: 40px;
    }

    .page-about__card-title {
        font-size: 1.5rem;
    }

    .page-about__feature-title {
        font-size: 1.3rem;
    }

    .page-about__sub-title {
        font-size: 1.4rem;
    }

    .page-about__timeline::before {
        left: 20px;
    }

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

    .page-about__faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }

    .page-about__faq-answer {
        padding: 0 20px 15px 20px;
    }

    .page-about__btn-primary--large {
        font-size: 1.1rem;
        padding: 14px 30px;
    }
}

@media (max-width: 480px) {
    .page-about__hero-section {
        padding-bottom: 30px !important;
    }
    .page-about__main-title {
        font-size: clamp(1.8rem, 9vw, 2.2rem);
    }
    .page-about__intro-text {
        font-size: 0.9rem;
    }
    .page-about__section-title {
        font-size: clamp(1.6rem, 8vw, 2rem);
    }
    .page-about__card-title {
        font-size: 1.3rem;
    }
    .page-about__feature-title {
        font-size: 1.2rem;
    }
    .page-about__sub-title {
        font-size: 1.3rem;
    }
    .page-about__timeline-title {
        font-size: 1.3rem;
    }
}