/* style/about.css */

/* Custom properties for 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 */
.page-about {
    background-color: var(--color-background); /* Dark background from custom colors */
    color: var(--color-text-main); /* Light text for dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-bottom: 50px; /* Add some padding at the bottom */
}

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

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

.page-about__section-title {
    font-size: 2.8em;
    color: var(--color-gold); /* Gold for main titles */
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 0.05em;
}

.page-about__section-title--light {
    color: var(--color-text-main); /* Light text for titles on dark background */
}

.page-about__sub-title {
    font-size: 1.8em;
    color: var(--color-primary); /* Primary color for sub titles */
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-about__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: var(--color-text-main); /* Main text color */
}

.page-about__paragraph--light {
    color: var(--color-text-main); /* Explicitly light for certain dark backgrounds */
}

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

.page-about__list li {
    background: var(--color-card-bg); /* Card background for list items */
    margin-bottom: 10px;
    padding: 15px 20px;
    border-left: 5px solid var(--color-primary);
    border-radius: 8px;
    color: var(--color-text-main);
}

.page-about__list li strong {
    color: var(--color-gold);
}

.page-about__nested-list {
    list-style: disc;
    padding-left: 20px;
    margin-top: 10px;
    color: var(--color-text-secondary); /* Secondary text color for nested list */
}

.page-about__nested-list li {
    background: none;
    border-left: none;
    padding: 5px 0;
    margin-bottom: 5px;
    border-radius: 0;
    color: var(--color-text-secondary);
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Ensure image is above content block */
    align-items: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    overflow: hidden; /* Prevent content from spilling */
    background-color: var(--color-background);
}

.page-about__hero-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    margin-bottom: 30px; /* Space between image and content */
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-about__hero-content {
    max-width: 900px;
    text-align: center;
    padding: 0 20px;
    box-sizing: border-box;
    z-index: 1; /* Ensure content is above any background elements */
}

.page-about__main-title {
    font-size: clamp(2em, 4.5vw, 3.5em); /* Responsive H1 font size */
    color: var(--color-gold);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.05em;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.4); /* Glow effect */
}

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

.page-about__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%; /* Ensure container takes full width */
}

.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text breaking */
}

.page-about__btn-primary {
    background: var(--color-button-gradient);
    color: var(--color-text-main); /* Light text on primary button */
    border: none;
    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), 0 0 15px var(--color-glow);
}

.page-about__btn-secondary {
    background: transparent;
    color: var(--color-primary); /* Primary color text on secondary button */
    border: 2px solid var(--color-primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-about__btn-secondary:hover {
    background: var(--color-primary);
    color: var(--color-text-main);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 0 15px var(--color-glow);
}

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

.page-about__feature-card {
    background: var(--color-card-bg);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid var(--color-border);
}

.page-about__feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 18px var(--color-glow);
}

.page-about__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid var(--color-divider);
}

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

.page-about__card-text {
    font-size: 1em;
    color: var(--color-text-secondary);
    text-align: center;
}

/* Images in general content sections */
.page-about__image {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--color-border);
}

/* Dark background section for CTA */
.page-about__cta-bottom .page-about__container {
    background-color: var(--color-deep-green); /* Deep Green for this specific CTA */
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--color-primary);
}

/* FAQ Section */
.page-about__faq-section {
    padding-bottom: 80px;
}

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

.page-about__faq-item {
    background: var(--color-card-bg);
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid var(--color-border);
    overflow: hidden; /* For details tag */
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--color-gold);
    cursor: pointer;
    background: var(--color-deep-green); /* Darker background for question */
    border-bottom: 1px solid var(--color-divider);
    transition: background-color 0.3s ease;
}

.page-about__faq-item[open] > .page-about__faq-question {
    background-color: var(--color-primary); /* Change background when open */
    color: var(--color-text-main);
    border-bottom: 1px solid var(--color-deep-green);
}

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

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

.page-about__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    line-height: 1;
}

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

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

.page-about__faq-answer p {
    margin-bottom: 0; /* Remove extra margin for paragraphs inside answer */
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-about__section-title {
        font-size: 2.2em;
    }
    .page-about__sub-title {
        font-size: 1.6em;
    }
    .page-about__hero-content {
        padding: 0 15px;
    }
    .page-about__main-title {
        font-size: clamp(1.8em, 6vw, 3em);
    }
}

@media (max-width: 768px) {
    .page-about__section {
        padding: 40px 0;
    }
    .page-about__section-title {
        font-size: 1.8em;
    }
    .page-about__sub-title {
        font-size: 1.4em;
    }
    .page-about__paragraph {
        font-size: 1em;
    }
    .page-about__hero-image {
        margin-bottom: 20px;
    }
    .page-about__main-title {
        font-size: clamp(1.5em, 7vw, 2.5em);
    }
    .page-about__intro-text {
        font-size: 1em;
    }
    .page-about__cta-buttons {
        flex-direction: column;
        gap: 15px;
        align-items: center;
        padding: 0 15px; /* Add padding to button container */
    }
    .page-about__btn-primary,
    .page-about__btn-secondary {
        width: 100% !important; /* Force full width on mobile */
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }
    .page-about__features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-about__feature-card {
        padding: 20px;
    }
    .page-about__card-image {
        height: 180px;
    }
    .page-about__image {
        margin: 20px auto;
    }
    .page-about__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-about__faq-answer {
        font-size: 1em;
        padding: 15px 20px;
    }

    /* Images responsiveness */
    .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__features-grid,
    .page-about__faq-list,
    .page-about__cta-bottom .page-about__container {
        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; /* body already handles --header-offset */
    }
}