/* style/about.css */

/* Custom Colors */
:root {
    --color-primary: #11A84E;
    --color-secondary: #22C768;
    --color-button-gradient-start: #2AD16F;
    --color-button-gradient-end: #13994A;
    --color-card-bg: #11271B;
    --color-background: #08160F;
    --color-text-main: #F2FFF6;
    --color-text-secondary: #A7D9B8;
    --color-border: #2E7A4E;
    --color-glow: #57E38D;
    --color-gold: #F2C14E;
    --color-divider: #1E3A2A;
    --color-deep-green: #0A4B2C;
}

.page-about {
    font-family: Arial, sans-serif;
    color: var(--color-text-main); /* Default text color for the page, based on dark body background */
    background-color: var(--color-background); /* Ensure consistent background */
    line-height: 1.6;
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    box-sizing: border-box;
    overflow: hidden; /* Ensure content doesn't overflow */
}

.page-about__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    margin-bottom: 30px; /* Space between image and content */
}

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

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

.page-about__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size */
    color: var(--color-gold);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

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

.page-about__cta-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    width: 100%; /* Ensure container takes full width for responsive buttons */
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons are responsive */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow text to break words */
    text-align: center;
}

.page-about__btn-primary {
    background: var(--color-button-gradient-start); /* Fallback for gradient */
    background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
    color: var(--color-text-main);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-about__btn-secondary {
    background: transparent;
    color: var(--color-gold);
    border: 2px solid var(--color-gold);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

/* General Section Styling */
.page-about__section {
    padding: 80px 20px;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.page-about__dark-section {
    background-color: var(--color-deep-green);
    color: var(--color-text-main);
}

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

.page-about__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    color: var(--color-gold);
    text-align: center;
    margin-bottom: 50px;
    font-weight: 700;
    line-height: 1.3;
    position: relative;
}

.page-about__section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-button-gradient-start), var(--color-gold));
    margin: 20px auto 0;
    border-radius: 2px;
}

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

.page-about__card {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--color-text-main); /* Ensure text is light on dark card background */
}

.page-about__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-about__card-title {
    font-size: 1.5rem;
    color: var(--color-gold);
    margin-bottom: 15px;
    font-weight: 600;
    line-height: 1.4;
}

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

/* Why Choose Us Section */
.page-about__why-choose-us .page-about__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.page-about__feature-item {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    color: var(--color-text-main);
}

.page-about__feature-item:hover {
    transform: translateY(-5px);
}

.page-about__feature-image {
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block; /* Ensure image is block level */
    min-width: 200px; /* Min size enforcement */
    min-height: 200px; /* Min size enforcement */
}

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

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

/* Development Journey Section */
.page-about__development-journey p {
    font-size: 1.05rem;
    color: var(--color-text-secondary);
    margin-bottom: 25px;
    text-align: justify;
}

.page-about__development-image {
    width: 100%;
    height: auto;
    max-width: 900px;
    display: block;
    margin: 40px auto 0;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    min-width: 200px; /* Min size enforcement */
    min-height: 200px; /* Min size enforcement */
}

/* Join Us Section */
.page-about__join-us {
    background-color: var(--color-deep-green);
    text-align: center;
}

.page-about__join-us .page-about__section-title {
    color: var(--color-gold);
}

.page-about__join-text {
    font-size: 1.15rem;
    color: var(--color-text-main);
    max-width: 800px;
    margin: 0 auto 40px;
}

.page-about__cta-buttons--centered {
    margin-top: 40px;
}

/* FAQ Section */
.page-about__faq-list {
    margin-top: 40px;
}

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

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-gold);
    cursor: pointer;
    background-color: var(--color-deep-green);
    transition: background-color 0.3s ease;
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none;   /* Safari */
    -khtml-user-select: none;    /* Konqueror HTML */
    -moz-user-select: none;      /* Old versions of Firefox */
    -ms-user-select: none;       /* Internet Explorer/Edge */
    user-select: none;           /* Non-prefixed version, currently supported by Chrome, Edge, Opera and Firefox */
}

.page-about__faq-question:hover {
    background-color: var(--color-deep-green);
    opacity: 0.9;
}

.page-about__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    color: var(--color-gold);
    transition: transform 0.3s ease;
}

.page-about__faq-item[open] .page-about__faq-toggle {
    transform: rotate(45deg); /* Plus sign rotates to form an X or minus */
}

.page-about__faq-item summary {
    list-style: none; /* Remove default marker */
}
.page-about__faq-item summary::-webkit-details-marker {
    display: none; /* Remove default marker for Webkit browsers */
}

.page-about__faq-answer {
    padding: 20px 25px;
    font-size: 1rem;
    color: var(--color-text-secondary);
    background-color: var(--color-card-bg);
    border-top: 1px solid var(--color-divider);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__hero-section {
        padding: 40px 15px;
        padding-top: 10px;
    }
    .page-about__main-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }
    .page-about__intro-text {
        font-size: 1rem;
    }
    .page-about__section {
        padding: 60px 15px;
    }
    .page-about__section-title {
        font-size: clamp(1.6rem, 4vw, 2.5rem);
        margin-bottom: 40px;
    }
}

@media (max-width: 768px) {
    /* General mobile padding */
    .page-about__container,
    .page-about__hero-section,
    .page-about__section,
    .page-about__cta-buttons {
        padding-left: 15px !important;
        padding-right: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Images responsiveness */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Ensure min size is kept on mobile */
        min-height: 200px !important;
    }

    /* Buttons responsiveness */
    .page-about__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 10px !important;
    }
    .page-about__btn-primary,
    .page-about__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px !important;
        font-size: 0.95rem !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Hero section adjustments */
    .page-about__hero-section {
        padding-top: 10px !important; /* Keep small top padding */
        padding-bottom: 40px !important;
    }
    .page-about__hero-image-wrapper {
        margin-bottom: 20px !important;
    }

    /* Card and Feature Item adjustments */
    .page-about__card,
    .page-about__feature-item {
        padding: 25px !important;
    }
    .page-about__card-title,
    .page-about__feature-title {
        font-size: 1.3rem !important;
    }
    .page-about__card p,
    .page-about__feature-item p {
        font-size: 0.9rem !important;
    }

    /* FAQ adjustments */
    .page-about__faq-question {
        font-size: 1rem !important;
        padding: 15px 20px !important;
    }
    .page-about__faq-answer {
        font-size: 0.9rem !important;
        padding: 15px 20px !important;
    }

    /* Join us section */
    .page-about__join-text {
        font-size: 1rem !important;
    }
}

@media (max-width: 480px) {
    .page-about__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }
    .page-about__section-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }
}

/* Ensure no filter on images */
.page-about img {
    filter: none;
}