/* style/about.css */

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

.page-about {
    background-color: var(--page-about-bg);
    color: var(--page-about-text-main); /* Ensure main text is light on dark background */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    padding-bottom: 50px; /* Add some padding at the bottom */
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 40px;
    overflow: hidden; /* Ensure no overflow */
}

.page-about__hero-image {
    width: 100%;
    height: auto;
    display: block;
    max-width: 100%;
    object-fit: cover;
    margin-bottom: 30px; /* Space between image and content */
    border-radius: 8px;
}

.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 potential background elements */
}

.page-about__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size */
    font-weight: 700;
    color: var(--page-about-gold); /* Use gold for main title */
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5); /* Subtle glow */
}

.page-about__description {
    font-size: 1.15rem;
    color: var(--page-about-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: 20px;
    justify-content: center;
}

.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    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 long words to break */
}

.page-about__btn-primary {
    background: var(--page-about-btn-gradient);
    color: #ffffff;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-about__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

.page-about__btn-secondary {
    background-color: transparent;
    color: var(--page-about-glow); /* Lighter green for secondary */
    border: 2px solid var(--page-about-glow);
    box-shadow: 0 2px 10px rgba(87, 227, 141, 0.2);
}

.page-about__btn-secondary:hover {
    background-color: var(--page-about-glow);
    color: var(--page-about-bg); /* Dark text on light background */
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(87, 227, 141, 0.4);
}

/* General Section Styling */
.page-about__section {
    padding: 60px 0;
    border-bottom: 1px solid var(--page-about-divider);
}

.page-about__section:last-of-type {
    border-bottom: none;
}

.page-about__container {
    width: 100%; /* Ensure full width before max-width */
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-about__section-title {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    color: var(--page-about-gold);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(242, 193, 78, 0.3);
}

.page-about__sub-title {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    color: var(--page-about-glow);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

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

.page-about__text strong {
    color: var(--page-about-text-main);
}

.page-about__image {
    width: 100%;
    height: auto;
    display: block;
    max-width: 100%;
    border-radius: 8px;
    margin: 30px auto;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    object-fit: cover;
}

/* List Styling */
.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(--page-about-text-secondary);
}

.page-about__list-item::before {
    content: '✅'; /* Checkmark icon */
    position: absolute;
    left: 0;
    color: var(--page-about-glow);
    font-size: 1.2em;
    line-height: 1.6;
}

.page-about__list-item strong {
    color: var(--page-about-text-main);
}

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

.page-about__faq-list {
    width: 100%; /* Ensure full width before max-width */
    max-width: 900px;
    margin: 0 auto;
}

.page-about__faq-item {
    background-color: var(--page-about-deep-green); /* Slightly lighter green for FAQ item */
    border: 1px solid var(--page-about-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

.page-about__faq-item[open] .page-about__faq-question {
    border-bottom: 1px solid var(--page-about-border); /* Keep border when open */
}

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

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

.page-about__faq-item[open] .page-about__faq-toggle {
    transform: rotate(45deg); /* Rotate '+' to 'x' or similar */
}

.page-about__faq-answer {
    padding: 0 25px 20px;
    font-size: 1rem;
    color: var(--page-about-text-secondary);
    background-color: var(--page-about-card-bg); /* Lighter background for answer content */
}

.page-about__faq-answer p:last-child {
    margin-bottom: 0;
}

.page-about__faq-answer .page-about__btn-primary,
.page-about__faq-answer .page-about__btn-secondary {
    margin-top: 15px;
    margin-bottom: 10px;
}

/* Details/Summary specific styling to remove default marker */
.page-about__faq-item summary {
    list-style: none; /* For Firefox */
}

.page-about__faq-item summary::-webkit-details-marker {
    display: none; /* For Chrome/Safari */
}


/* Responsive Styles */
@media (max-width: 1024px) {
    .page-about__hero-section {
        padding-bottom: 30px;
    }
    .page-about__main-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }
    .page-about__description {
        font-size: 1rem;
    }
    .page-about__section-title {
        font-size: clamp(1.6rem, 4vw, 2.5rem);
    }
    .page-about__sub-title {
        font-size: clamp(1.2rem, 3vw, 1.8rem);
    }
    .page-about__section {
        padding: 40px 0;
    }
    .page-about__faq-section {
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    .page-about {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-about__hero-section {
        padding-top: 10px !important; /* body already handles offset */
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
    }
    .page-about__hero-image {
        margin-bottom: 20px;
    }
    .page-about__hero-content {
        padding: 0 15px;
    }
    .page-about__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }
    .page-about__description {
        font-size: 0.95rem;
    }
    .page-about__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
    }
    .page-about__btn-primary,
    .page-about__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 0.95rem;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-about__section,
    .page-about__container,
    .page-about__faq-section,
    .page-about__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        overflow: hidden !important; /* Ensure no horizontal scroll */
    }

    .page-about__section-title {
        font-size: clamp(1.4rem, 5vw, 2rem);
        margin-bottom: 30px;
    }
    .page-about__sub-title {
        font-size: clamp(1.1rem, 4vw, 1.6rem);
    }
    .page-about__text {
        font-size: 0.95rem;
    }
    .page-about__image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* FAQ specific mobile adjustments */
    .page-about__faq-question {
        padding: 15px 20px;
        font-size: 1rem;
    }
    .page-about__faq-answer {
        padding: 0 20px 15px;
    }
}

@media (max-width: 480px) {
    .page-about__main-title {
        font-size: clamp(1.6rem, 7vw, 2.2rem);
    }
    .page-about__section-title {
        font-size: clamp(1.2rem, 6vw, 1.8rem);
    }
    .page-about__sub-title {
        font-size: clamp(1rem, 5vw, 1.4rem);
    }
}