/* style/about.css */

/* Custom Colors */
:root {
    --primary-color: #11A84E; /* Main */
    --secondary-color: #22C768; /* Aux */
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg: #11271B;
    --background-dark: #08160F;
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green: #0A4B2C;
}

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

/* Section styling */
.page-about__section {
    padding: 60px 0;
    position: relative;
    z-index: 1;
}

.page-about__section:nth-of-type(even) {
    background-color: var(--deep-green); /* Slightly different background for visual separation */
}

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

/* Hero Section */
.page-about__hero-section {
    display: flex;
    flex-direction: column; /* Image first, then content */
    align-items: center;
    justify-content: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--background-dark);
    position: relative;
    overflow: hidden;
    min-height: 600px; /* Ensure hero has a decent height */
}

.page-about__hero-image-wrapper {
    width: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-about__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 675px; /* Limit height while maintaining aspect ratio */
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

.page-about__hero-content {
    text-align: center;
    padding: 40px 20px;
    max-width: 900px;
    margin-top: -80px; /* Overlap slightly for visual effect, but not text on image */
    position: relative;
    z-index: 2;
    background-color: var(--card-bg); /* Darker background for content */
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

.page-about__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive H1 font size */
    color: var(--gold-color); /* Use gold for main title */
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
    letter-spacing: 1px;
}

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

/* Headings */
.page-about__heading {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--text-main);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.3;
    position: relative;
}

.page-about__heading::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--button-gradient);
    margin: 20px auto 0;
    border-radius: 2px;
}

.page-about__sub-heading {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--text-main);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.4;
}

/* Paragraphs */
.page-about__paragraph {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.7;
}

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

/* Images in content */
.page-about__image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    object-fit: cover;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

/* Grid layout for cards */
.page-about__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

/* Card styling */
.page-about__card {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-about__card .page-about__sub-heading {
    color: var(--gold-color);
    margin-bottom: 15px;
}

.page-about__card .page-about__paragraph {
    color: var(--text-secondary);
}

/* List styling */
.page-about__list {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.page-about__list-item {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
    line-height: 1.6;
}

.page-about__list-item::before {
    content: '✅'; /* Checkmark icon */
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-size: 1.2rem;
    top: 0;
}

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

/* Buttons */
.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.1rem;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box; /* Include padding in width calculation */
    max-width: 100%; /* Ensure button doesn't exceed container */
}

.page-about__btn-primary {
    background: var(--button-gradient);
    color: var(--text-main);
    border: none;
    box-shadow: 0 5px 15px rgba(42, 209, 111, 0.3);
}

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

.page-about__btn-secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    box-shadow: 0 5px 15px rgba(34, 199, 104, 0.1);
}

.page-about__btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--background-dark);
    box-shadow: 0 8px 20px rgba(34, 199, 104, 0.3);
}

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

.page-about__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-about__faq-item summary {
    list-style: none; /* Hide default marker */
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    color: var(--text-main);
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
}

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

.page-about__faq-item summary:hover {
    background-color: var(--deep-green);
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.page-about__faq-qtext {
    flex-grow: 1;
    margin-right: 15px;
    color: var(--text-main);
}

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

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

.page-about__faq-answer {
    padding: 0 25px 20px;
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .page-about {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-about__hero-section {
        min-height: auto;
        padding-bottom: 40px;
    }

    .page-about__hero-image {
        max-height: 400px;
    }

    .page-about__hero-content {
        padding: 30px 15px;
        margin-top: -60px;
        width: calc(100% - 30px); /* Adjust width for padding */
    }

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

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

    .page-about__heading {
        font-size: clamp(1.8rem, 7vw, 2.2rem);
        margin-bottom: 30px;
    }

    .page-about__sub-heading {
        font-size: clamp(1.3rem, 5vw, 1.6rem);
    }

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

    .page-about__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-about__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-about__card {
        padding: 25px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    /* Images responsiveness */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }
    
    .page-about__image-container, /* Example container if any */
    .page-about__image-wrapper { /* Example container if any */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Video responsiveness (if any video is added) */
    .page-about video,
    .page-about__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-about__video-section,
    .page-about__video-container,
    .page-about__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-about__video-section {
        padding-top: 10px !important; /* Small top padding */
    }

    /* Button responsiveness */
    .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: 15px; /* Add spacing between stacked buttons */
    }
    
    .page-about__hero-content .page-about__btn-primary {
        margin-bottom: 0; /* No extra margin for single hero button */
    }

    .page-about__cta-buttons,
    .page-about__button-group,
    .page-about__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
        display: flex;
        flex-direction: column; /* Stack buttons vertically */
    }
}