/* style/about.css */

/* Custom Colors */
:root {
    --color-primary: #11A84E;
    --color-secondary: #22C768;
    --color-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --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;
}

/* Base styles for the page content, ensuring contrast with body background which is --color-background (#08160F - dark) */
.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--color-text-main); /* Light text for dark background */
    background-color: var(--color-background); /* Dark background */
}

/* Ensure all links have appropriate color and hover states */
.page-about a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-about a:hover {
    color: var(--color-gold);
}

/* Section styling */
.page-about__section {
    padding: 60px 20px;
    margin-bottom: 20px;
}

.page-about__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px; /* Added padding for smaller screens */
    box-sizing: border-box;
}

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

.page-about__hero-image-wrapper {
    width: 100%;
    max-height: 500px; /* Limit height of the image wrapper */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.page-about__hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    filter: brightness(0.7); /* Subtle darkening for text readability, no color change */
}

.page-about__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 20px;
    color: var(--color-text-main); /* Ensure white text on dark background */
}

.page-about__hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size for H1 */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--color-gold); /* Gold color for H1 */
}

.page-about__hero-description {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--color-text-main);
}

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

.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    max-width: 100%; /* Ensure button adapts to width */
    box-sizing: border-box;
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-about__btn-primary {
    background: var(--color-button-gradient);
    color: #ffffff; /* White text on primary button */
    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);
}

.page-about__btn-secondary {
    background: transparent;
    color: var(--color-secondary); /* Green text on secondary button */
    border: 2px solid var(--color-secondary);
}

.page-about__btn-secondary:hover {
    background: rgba(var(--color-secondary-rgb), 0.1);
    color: var(--color-gold);
    border-color: var(--color-gold);
}

/* General Section Titles */
.page-about__section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
    color: var(--color-gold); /* Gold color for section titles */
}

.page-about__sub-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 20px;
    color: var(--color-secondary); /* Secondary color for sub-titles */
}

.page-about__text-block {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--color-text-main);
}

.page-about__list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.page-about__list-item {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
    color: var(--color-text-secondary);
}

.page-about__list-item::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: var(--color-gold);
}

/* Image and Text Grid */
.page-about__image-text-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

.page-about__image-text-grid .page-about__image-wrapper {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.page-about__image-text-grid .page-about__text-content {
    flex: 2;
    min-width: 300px;
}

.page-about__image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    display: block; /* Ensure it behaves as a block element */
}

/* Features Grid */
.page-about__advantages-section {
    background-color: var(--color-card-bg); /* Darker background for advantages section */
}

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

.page-about__feature-card {
    background: var(--color-background); /* Card background for contrast */
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--color-text-main); /* Light text on dark card background */
}

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

.page-about__feature-card .page-about__card-title {
    font-size: 1.5rem;
    color: var(--color-gold); /* Gold color for card titles */
    margin-bottom: 15px;
}

.page-about__feature-card .page-about__card-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px auto;
    display: block;
}

.page-about__feature-card .page-about__card-description {
    font-size: 1rem;
    color: var(--color-text-secondary);
    margin-bottom: 20px;
}

.page-about__btn-link {
    display: inline-block;
    color: var(--color-secondary);
    font-weight: bold;
    margin-top: 10px;
    text-decoration: underline;
}

.page-about__btn-link:hover {
    color: var(--color-gold);
}

/* Commitment Section */
.page-about__commitment-section {
    background-color: var(--color-background);
}

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

.page-about__commitment-item {
    background: var(--color-card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    color: var(--color-text-main);
}

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

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

.page-about__cta-buttons--center {
    margin-top: 30px;
    margin-bottom: 40px;
}

.page-about__download-app {
    margin-top: 50px;
    padding: 30px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
}

.page-about__download-app .page-about__sub-title {
    color: var(--color-gold);
}

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

.page-about__faq-list {
    margin-top: 40px;
}

.page-about__faq-item {
    background: var(--color-card-bg);
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: var(--color-text-main);
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--color-secondary);
    background: var(--color-deep-green);
    border-bottom: 1px solid var(--color-divider);
}

.page-about__faq-question:hover {
    background: var(--color-primary);
    color: var(--color-text-main);
}

.page-about__faq-item[open] .page-about__faq-question {
    background: var(--color-primary);
    color: var(--color-text-main);
}

.page-about__faq-qtext {
    flex-grow: 1;
}

.page-about__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-about__faq-item[open] .page-about__faq-toggle {
    transform: rotate(45deg); /* Change + to X on open */
}

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

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

/* Responsive Design */
@media (max-width: 992px) {
    .page-about__section-title {
        font-size: 2rem;
    }
    .page-about__sub-title {
        font-size: 1.5rem;
    }
    .page-about__hero-title {
        font-size: clamp(2rem, 6vw, 3rem);
    }
    .page-about__hero-description {
        font-size: 1rem;
    }
    .page-about__image-text-grid {
        flex-direction: column;
        gap: 20px;
    }
    .page-about__image-text-grid .page-about__image-wrapper {
        order: -1; /* Image first on mobile */
    }
    .page-about__commitment-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-about__section {
        padding: 40px 0;
    }
    .page-about__container {
        padding: 0 15px;
    }
    .page-about__hero-section {
        padding: 10px 0 40px 0;
    }
    .page-about__hero-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }
    .page-about__hero-description {
        font-size: 0.95rem;
    }
    .page-about__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-about__btn-primary,
    .page-about__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px 20px !important;
        font-size: 0.9rem !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Mobile image responsive 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__image-wrapper,
    .page-about__text-content,
    .page-about__features-grid,
    .page-about__commitment-grid,
    .page-about__faq-list,
    .page-about__faq-item,
    .page-about__download-app {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        overflow: hidden !important;
    }
    
    .page-about__hero-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }
    
    .page-about__faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }
    .page-about__faq-answer {
        padding: 15px 20px;
    }
    .page-about__feature-card {
        padding: 20px;
    }
    .page-about__commitment-item {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .page-about__section-title {
        font-size: 1.8rem;
    }
    .page-about__sub-title {
        font-size: 1.3rem;
    }
    .page-about__hero-title {
        font-size: clamp(1.5rem, 8vw, 2.2rem);
    }
    .page-about__hero-description {
        font-size: 0.9rem;
    }
}