/* style/about.css */

/* Custom Colors */
: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;
    color: var(--page-about-text-main); /* Default text color for the whole page */
    background-color: var(--page-about-background); /* Default background for the whole page */
}

.page-about__dark-bg {
    background-color: var(--page-about-background);
    color: var(--page-about-text-main);
}

.page-about__light-bg {
    background-color: #ffffff;
    color: #333333;
}

.page-about__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 20px 60px;
    text-align: center;
    overflow: hidden;
    background-color: var(--page-about-background);
}

.page-about__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

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

.page-about__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin-top: 40px;
    padding: 0 20px;
}

.page-about__main-title {
    font-size: clamp(2em, 4vw, 3.5em);
    font-weight: bold;
    color: var(--page-about-text-main);
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-about__description {
    font-size: 1.1em;
    color: var(--page-about-text-secondary);
    margin-bottom: 30px;
    line-height: 1.6;
}

.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    margin: 10px;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-about__btn-primary {
    background: var(--page-about-button-gradient);
    color: var(--page-about-text-main);
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-about__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

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

.page-about__btn-secondary:hover {
    background: var(--page-about-gold);
    color: var(--page-about-background);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.page-about__section-title {
    font-size: clamp(1.8em, 3vw, 2.8em);
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    color: inherit;
}

.page-about__text-block {
    font-size: 1em;
    line-height: 1.7;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 30px;
    color: inherit;
}

.page-about__mission-vision,
.page-about__why-choose-us,
.page-about__faq-section,
.page-about__cta-bottom {
    padding: 80px 0;
}

.page-about__history,
.page-about__social-responsibility {
    padding: 80px 0;
    background-color: var(--page-about-background);
    color: var(--page-about-text-main);
}

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

.page-about__card {
    background-color: var(--page-about-card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: left;
    color: var(--page-about-text-main);
    border: 1px solid var(--page-about-border);
}

.page-about__card-title {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--page-about-gold);
    margin-bottom: 15px;
}

.page-about__value-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-about__value-list li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
    color: var(--page-about-text-secondary);
}

.page-about__value-list li::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: var(--page-about-glow);
}

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

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

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

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

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

.page-about__timeline-item::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    right: -8px;
    background-color: var(--page-about-deep-green);
    border: 3px solid var(--page-about-glow);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

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

.page-about__timeline-year {
    font-size: 1.3em;
    font-weight: bold;
    color: var(--page-about-gold);
    margin-bottom: 5px;
}

.page-about__timeline-item p {
    font-size: 0.95em;
    color: var(--page-about-text-secondary);
    line-height: 1.6;
}

.page-about__image-centered {
    display: block;
    margin: 40px auto;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

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

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

.page-about__feature-icon {
    width: 100%; /* Ensure image fills card width */
    max-width: 250px; /* But not too big */
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-about__feature-title {
    font-size: 1.4em;
    font-weight: bold;
    color: var(--page-about-gold);
    margin-bottom: 15px;
}

.page-about__feature-card p {
    font-size: 0.95em;
    color: var(--page-about-text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-about__feature-card .page-about__btn-secondary {
    margin-top: auto; /* Push buttons to the bottom */
    width: fit-content;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
    margin-left: auto;
    margin-right: auto;
}

.page-about__feature-card a.page-about__btn-secondary {
    margin: 5px;
}

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

.page-about__responsibility-item {
    background-color: var(--page-about-card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: left;
    color: var(--page-about-text-main);
    border: 1px solid var(--page-about-border);
}

.page-about__responsibility-title {
    font-size: 1.4em;
    font-weight: bold;
    color: var(--page-about-gold);
    margin-bottom: 15px;
}

.page-about__responsibility-item p {
    font-size: 0.95em;
    color: var(--page-about-text-secondary);
    line-height: 1.6;
}

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

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

.page-about__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15em;
    font-weight: bold;
    cursor: pointer;
    color: var(--page-about-gold);
    background-color: var(--page-about-deep-green);
    border-bottom: 1px solid var(--page-about-divider);
    list-style: none;
}

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

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.page-about__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

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

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

.page-about__cta-bottom {
    text-align: center;
    background-color: var(--page-about-background);
    color: var(--page-about-text-main);
}

.page-about__cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-about__timeline::before {
        left: 20px;
    }

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

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

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

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

    .page-about__timeline-item:nth-child(odd)::after {
        left: 12px;
        right: auto;
    }
}

@media (max-width: 768px) {
    .page-about {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-about__hero-section {
        padding: 10px 15px 40px;
    }

    .page-about__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
    }

    .page-about__description {
        font-size: 1em;
    }

    .page-about__btn-primary,
    .page-about__btn-secondary {
        font-size: 1em;
        padding: 12px 25px;
        margin: 5px auto;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    
    .page-about__cta-buttons {
        flex-direction: column;
        gap: 10px;
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-about__container {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-about__section-title {
        font-size: clamp(1.5em, 6vw, 2em);
        margin-bottom: 30px;
    }

    .page-about__text-block {
        font-size: 0.95em;
        margin-bottom: 20px;
    }

    .page-about__mission-vision,
    .page-about__why-choose-us,
    .page-about__faq-section,
    .page-about__history,
    .page-about__social-responsibility,
    .page-about__cta-bottom {
        padding: 40px 0;
    }

    .page-about__content-grid,
    .page-about__feature-grid,
    .page-about__responsibility-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    .page-about__timeline-item {
        padding-left: 50px;
    }

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

    .page-about__timeline-item::after {
        left: 12px;
    }
    
    /* Mobile image responsiveness */
    .page-about img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-about__hero-image-wrapper,
    .page-about__image-centered {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-about__feature-icon {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-about__faq-item summary {
        font-size: 1em;
        padding: 15px 20px;
    }

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