/* style/about.css */

/* Custom Variables based on provided color scheme */
: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-color: #2E7A4E;
    --page-about-glow-color: #57E38D;
    --page-about-gold-color: #F2C14E;
    --page-about-divider-color: #1E3A2A;
    --page-about-deep-green: #0A4B2C;
}

/* Base styles for the about page content */
.page-about {
    background-color: var(--page-about-bg);
    color: var(--page-about-text-main); /* Default text color for dark background */
    font-family: 'Arial', sans-serif; /* Example font */
    line-height: 1.6;
}

/* Section styling */
.page-about__hero-section,
.page-about__introduction-section,
.page-about__highlights-section,
.page-about__commitment-section,
.page-about__join-us-section,
.page-about__faq-section,
.page-about__video-section {
    padding: 60px 20px;
    position: relative;
    overflow: hidden; /* Ensure content doesn't spill */
}

/* Specific top padding for hero and video sections, avoiding double header offset */
.page-about__hero-section {
    padding-top: 10px; /* Small top padding */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.page-about__video-section {
    padding-top: 10px; /* Small top padding */
    text-align: center;
}

.page-about__dark-section {
    background-color: var(--page-about-deep-green); /* Darker green background for contrast */
}

/* Container for content width */
.page-about__container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%; /* Ensure container always takes full width up to max-width */
    box-sizing: border-box;
}

/* Hero Section */
.page-about__hero-image {
    width: 100%;
    max-width: 1200px; /* Max width for the image */
    height: auto;
    display: block;
    margin-bottom: 30px;
    border-radius: 8px;
    object-fit: cover;
    min-height: 200px; /* Ensure minimum size */
}

.page-about__hero-content {
    max-width: 900px;
    margin: 0 auto;
}

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

.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;
}

/* Call to Action Buttons */
.page-about__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

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

.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    box-sizing: border-box; /* Ensure padding is included in width */
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow long words to break */
    text-align: center;
}

.page-about__btn-primary {
    background: var(--page-about-btn-gradient);
    color: var(--page-about-text-main);
    border: 2px solid transparent;
}

.page-about__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

.page-about__btn-secondary {
    background-color: transparent;
    color: var(--page-about-glow-color); /* Use glow color for secondary text */
    border: 2px solid var(--page-about-glow-color);
}

.page-about__btn-secondary:hover {
    background-color: var(--page-about-glow-color);
    color: var(--page-about-bg); /* Dark text on light hover */
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* General Section Titles */
.page-about__section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--page-about-gold-color); /* Gold color for main section titles */
    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: var(--page-about-glow-color);
    border-radius: 2px;
}

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

.page-about__description-text {
    font-size: 1.05rem;
    color: var(--page-about-text-secondary);
    text-align: center;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Content wrapper for image and text alignment */
.page-about__content-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
    margin-top: 40px;
}

.page-about__text-block {
    flex: 1;
    min-width: 300px;
}

.page-about__image-block {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-about__image-block img {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    min-height: 200px; /* Minimum image size */
}

/* List styles */
.page-about__value-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.page-about__value-item {
    background-color: var(--page-about-card-bg);
    padding: 15px 20px;
    margin-bottom: 10px;
    border-left: 5px solid var(--page-about-glow-color);
    border-radius: 4px;
    font-size: 1rem;
    color: var(--page-about-text-main);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

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

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

.page-about__feature-card,
.page-about__commitment-item,
.page-about__join-us-card {
    background-color: var(--page-about-card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    border: 1px solid var(--page-about-border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.page-about__feature-title,
.page-about__commitment-title,
.page-about__join-us-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--page-about-gold-color);
    margin-bottom: 15px;
}

.page-about__feature-card p,
.page-about__commitment-item p,
.page-about__join-us-card p {
    color: var(--page-about-text-secondary);
    font-size: 1rem;
    flex-grow: 1; /* Allow paragraph to take available space */
}

.page-about__feature-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    margin-top: 20px;
    border-radius: 8px;
    object-fit: cover;
    min-height: 200px; /* Minimum image size */
}

.page-about__link-text {
    color: var(--page-about-glow-color);
    text-decoration: none;
    font-weight: 500;
    margin-top: 15px;
    display: inline-block;
}

.page-about__link-text:hover {
    text-decoration: underline;
    color: var(--page-about-gold-color);
}

/* Video Section */
.page-about__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    margin-top: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    width: 100%; /* Desktop: ensure it takes full width of container */
    max-width: 100%; /* Desktop: ensure it takes full width of container */
    box-sizing: border-box;
}

.page-about__video-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block; /* Make the anchor fill the wrapper */
    cursor: pointer;
}

.page-about__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    max-width: 100%; /* Ensure video does not overflow */
}

/* FAQ Section */
.page-about__faq-list {
    margin-top: 40px;
}

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

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background-color: var(--page-about-deep-green); /* Slightly different background for question */
    color: var(--page-about-gold-color);
    font-size: 1.15rem;
    font-weight: 600;
    user-select: none;
    transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
    background-color: var(--page-about-border-color); /* Darken on hover */
}

.page-about__faq-item[open] .page-about__faq-question {
    background-color: var(--page-about-deep-green);
}

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

.page-about__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    width: 20px;
    text-align: center;
    color: var(--page-about-glow-color);
}

/* 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;
    background-color: var(--page-about-card-bg);
    color: var(--page-about-text-secondary);
    font-size: 1rem;
    border-top: 1px solid var(--page-about-divider-color);
}

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

/* Image styling for content area, ensuring minimum size */
.page-about img:not(.page-about__hero-image) {
    min-width: 200px;
    min-height: 200px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-about__hero-section,
    .page-about__introduction-section,
    .page-about__highlights-section,
    .page-about__commitment-section,
    .page-about__join-us-section,
    .page-about__faq-section,
    .page-about__video-section {
        padding: 40px 15px;
    }

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

    .page-about__description {
        font-size: 1rem;
    }

    .page-about__section-title {
        font-size: clamp(1.8rem, 5vw, 2.5rem);
    }

    .page-about__sub-title {
        font-size: clamp(1.3rem, 4vw, 1.8rem);
    }

    .page-about__features-grid,
    .page-about__commitment-grid,
    .page-about__join-us-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-about__hero-section,
    .page-about__introduction-section,
    .page-about__highlights-section,
    .page-about__commitment-section,
    .page-about__join-us-section,
    .page-about__faq-section,
    .page-about__video-section {
        padding: 30px 15px !important; /* Mobile padding */
    }

    .page-about__hero-section {
        padding-top: 10px !important; /* Ensure small top padding on mobile */
    }
    .page-about__video-section {
        padding-top: 10px !important; /* Ensure small top padding on mobile */
    }

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

    .page-about__hero-image,
    .page-about__image-block img,
    .page-about__feature-image,
    .page-about__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Video wrapper for mobile */
    .page-about__video-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        padding-left: 0 !important; /* Remove any accidental padding */
        padding-right: 0 !important; /* Remove any accidental padding */
    }

    /* Buttons responsive */
    .page-about__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-about__btn-primary,
    .page-about__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px !important;
        font-size: 1rem !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-about__content-wrapper {
        flex-direction: column;
        gap: 30px;
    }

    .page-about__text-block,
    .page-about__image-block {
        min-width: unset;
        width: 100%;
    }

    .page-about__faq-question {
        font-size: 1rem;
        padding: 15px;
    }

    .page-about__faq-answer {
        font-size: 0.95rem;
        padding: 15px;
    }
}