:root {
    --primary-color: #11A84E; /* Main color */
    --secondary-color: #22C768; /* Auxiliary color */
    --card-bg: #11271B; /* Card Background */
    --background-color: #08160F; /* Overall Background */
    --text-main: #F2FFF6; /* Main text color */
    --text-secondary: #A7D9B8; /* Secondary text color */
    --border-color: #2E7A4E; /* Border color */
    --glow-color: #57E38D; /* Glow effect color */
    --gold-color: #F2C14E; /* Gold accent color */
    --divider-color: #1E3A2A; /* Divider color */
    --deep-green: #0A4B2C; /* Deep Green */
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
}

.page-about {
    background-color: var(--background-color);
    color: var(--text-main); /* Default text color for the page */
    font-family: 'Arial', sans-serif; /* Example font */
    line-height: 1.6;
    padding-bottom: 40px; /* Add some padding at the bottom */
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 20px 60px; /* Small top padding, larger bottom padding */
    overflow: hidden; /* Ensure content doesn't overflow */
}

.page-about__hero-image-wrapper {
    width: 100%;
    max-height: 500px; /* Limit height for hero image */
    overflow: hidden;
    position: relative;
    z-index: 1;
}

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

.page-about__hero-content {
    position: relative; /* Ensure content is above image */
    z-index: 2;
    max-width: 900px;
    margin-top: 40px; /* Space between image and text */
    padding: 0 20px;
}

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

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

/* Buttons */
.page-about__btn-primary {
    display: inline-block;
    background: var(--button-gradient);
    color: var(--text-main);
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

.page-about__btn-primary--large {
    padding: 18px 40px;
    font-size: 1.3em;
}

.page-about__btn-secondary {
    display: inline-block;
    background-color: var(--deep-green);
    color: var(--text-main);
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-about__btn-secondary:hover {
    background-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

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

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

.page-about__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px; /* Inner padding for containers */
}

.page-about__section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-about__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--gold-color);
    border-radius: 2px;
}

.page-about__sub-title {
    font-size: 1.8em;
    color: var(--secondary-color);
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-about p {
    margin-bottom: 15px;
    color: var(--text-main);
}

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

.page-about ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 15px;
}

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

.page-about ul li::before {
    content: '✅'; /* Checkmark icon */
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 1em;
    line-height: 1.6;
}

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

.page-about__image-and-text {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
}

.page-about__image-and-text--reverse {
    flex-direction: row-reverse;
}

.page-about__section-image {
    width: 100%;
    height: auto;
    max-width: 50%; /* Default for image-and-text layout */
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    display: block;
    object-fit: cover;
}

.page-about__section-image--full-width {
    max-width: 100%;
    margin-bottom: 40px;
}

.page-about__section-image--centered {
    margin-left: auto;
    margin-right: auto;
    margin-top: 40px;
}

.page-about__text-block {
    flex: 1;
    color: var(--text-main);
}

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

.page-about__feature-item {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.page-about__feature-item h3 {
    color: var(--gold-color);
    margin-top: 0;
    font-size: 1.5em;
}

.page-about__cta-bottom {
    text-align: center;
    margin-top: 60px;
}

/* FAQ Section */
.page-about__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-about__faq-item {
    background-color: var(--card-bg);
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background-color: var(--deep-green);
    color: var(--text-main);
    font-weight: bold;
    cursor: pointer;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
    user-select: none; /* Prevent text selection on click */
}

.page-about__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for Chrome */
}

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

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

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

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

.page-about__faq-item[open] .page-about__faq-toggle {
    content: '−'; /* Change to minus sign when open */
}

.page-about__faq-answer {
    padding: 15px 25px 20px;
    background-color: var(--card-bg);
    color: var(--text-secondary);
    font-size: 0.95em;
}

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

.page-about__inline-link {
    color: var(--gold-color);
    text-decoration: none;
}

.page-about__inline-link:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__hero-content {
        margin-top: 30px;
    }

    .page-about__section-title {
        font-size: 2em;
    }

    .page-about__sub-title {
        font-size: 1.6em;
    }

    .page-about__image-and-text {
        flex-direction: column;
        text-align: center;
    }

    .page-about__image-and-text--reverse {
        flex-direction: column; /* Keep column for reverse on smaller screens */
    }

    .page-about__section-image {
        max-width: 80%;
    }
}

@media (max-width: 768px) {
    .page-about__hero-section {
        padding: 10px 15px 40px;
    }

    .page-about__hero-content {
        margin-top: 20px;
    }

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

    .page-about__hero-description {
        font-size: 1em;
    }

    .page-about__btn-primary,
    .page-about__btn-secondary,
    .page-about a[class*="button"],
    .page-about a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
        margin-bottom: 10px; /* Add margin between stacked buttons */
    }

    .page-about__cta-bottom {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .page-about__section {
        padding: 40px 15px;
    }

    .page-about__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-about__sub-title {
        font-size: 1.4em;
    }

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

    .page-about__section-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-about__image-and-text {
        gap: 20px;
    }

    .page-about__feature-item {
        padding: 20px;
    }

    /* FAQ */
    .page-about__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }

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

    /* Container padding for mobile */
    .page-about__container {
        padding: 0 10px;
    }
}