/* style/about.css */

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

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

.page-about h1,
.page-about h2,
.page-about h3,
.page-about h4 {
    color: var(--fcb8-text-main);
    margin-bottom: 1em;
    line-height: 1.2;
}

.page-about h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Using clamp for H1 font size */
    font-weight: 700;
    letter-spacing: -0.05em;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-about h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 600;
    text-align: center;
    margin-bottom: 1.5em;
    color: var(--fcb8-gold); /* Using gold for section headings for emphasis */
}

.page-about h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
}

.page-about p {
    margin-bottom: 1em;
    color: var(--fcb8-text-secondary);
}

.page-about a {
    color: var(--fcb8-secondary-color);
    text-decoration: none;
}

.page-about a:hover {
    text-decoration: underline;
    color: var(--fcb8-glow);
}

/* Image and Video Responsive Styles (Global for page-about) */
.page-about img,
.page-about video {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px; /* Slight border-radius for aesthetics */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    background-color: var(--fcb8-deep-green);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden; /* Ensure content doesn't overflow */
}

.page-about__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    margin-bottom: 30px;
}

.page-about__hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    max-height: 600px; /* Limit hero image height */
}

.page-about__hero-content {
    max-width: 900px;
    padding: 0 20px;
    z-index: 1;
}

.page-about__tagline {
    font-size: 1.15rem;
    margin-bottom: 30px;
    color: var(--fcb8-text-secondary);
}

/* CTA Buttons */
.page-about__cta-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
    width: 100%; /* Ensure container takes full width for flex-wrap */
    max-width: 600px; /* Limit max width for button group */
    margin-left: auto;
    margin-right: auto;
}

.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
    text-align: center;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Ensure text breaks word if necessary */
    box-sizing: border-box; /* Include padding in width calculation */
    max-width: 100%; /* Ensure buttons don't overflow */
}

.page-about__btn-primary {
    background: var(--fcb8-button-gradient);
    color: #ffffff; /* Button text always white for primary */
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

.page-about__btn-secondary {
    background: transparent;
    color: var(--fcb8-gold); /* Secondary button text gold */
    border: 2px solid var(--fcb8-gold);
}

.page-about__btn-secondary:hover {
    background: var(--fcb8-gold);
    color: var(--fcb8-background); /* Text turns dark on hover */
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* General Section Styles */
.page-about__section {
    padding: 80px 0;
    border-bottom: 1px solid var(--fcb8-divider);
}

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

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

.page-about__container--grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.page-about__container--grid-reverse {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.page-about__container--grid-reverse .page-about__image-block {
    order: 2;
}
.page-about__container--grid-reverse .page-about__content-block {
    order: 1;
}

.page-about__content-block {
    padding: 20px 0;
}

.page-about__image-block {
    text-align: center;
}

.page-about__image {
    width: 100%;
    height: auto;
}

/* Card Grid */
.page-about__card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.page-about__card {
    background-color: var(--fcb8-card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--fcb8-border);
    color: var(--fcb8-text-main);
}

.page-about__card-title {
    color: var(--fcb8-gold);
    margin-bottom: 15px;
    text-align: center;
}

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

/* Value List */
.page-about__value-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-about__value-item {
    background-color: var(--fcb8-card-bg);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid var(--fcb8-border);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    color: var(--fcb8-text-main);
}

.page-about__value-title {
    color: var(--fcb8-secondary-color);
    margin-bottom: 10px;
}

.page-about__value-description {
    font-size: 0.95rem;
    color: var(--fcb8-text-secondary);
}

/* Lists */
.page-about__list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.5em;
}

.page-about__list-item {
    position: relative;
    padding-left: 25px;
    margin-bottom: 0.8em;
    color: var(--fcb8-text-secondary);
}

.page-about__list-item::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--fcb8-gold);
    font-weight: bold;
}

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

/* Dark Section (Conclusion) */
.page-about__dark-section {
    background-color: var(--fcb8-deep-green);
    color: var(--fcb8-text-main);
    padding: 60px 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.page-about__heading--light {
    color: var(--fcb8-gold);
}

.page-about__paragraph--light {
    color: var(--fcb8-text-secondary);
    font-size: 1.1rem;
}

/* Full width image wrapper */
.page-about__image-wrapper--full-width {
    width: 100%;
    max-width: 100%;
    margin-top: 40px;
    text-align: center;
    box-sizing: border-box;
    padding: 0 20px; /* Add padding for mobile responsiveness */
}
.page-about__image-wrapper--full-width .page-about__image {
    width: 100%;
    max-width: 1200px; /* Max width for large images */
    margin: 0 auto;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__container--grid,
    .page-about__container--grid-reverse {
        grid-template-columns: 1fr;
    }
    .page-about__container--grid-reverse .page-about__image-block {
        order: 1; /* Image comes first on smaller screens */
    }
    .page-about__container--grid-reverse .page-about__content-block {
        order: 2;
    }
    .page-about__card-grid {
        grid-template-columns: 1fr;
    }
}

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

    .page-about__main-title {
        font-size: 2rem;
    }

    .page-about__heading {
        font-size: 1.8rem;
    }

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

    .page-about__cta-buttons {
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 15px;
        padding: 0 15px; /* Add padding to button container */
    }

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

    /* Mobile image and video force responsive */
    .page-about img,
    .page-about video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__image-wrapper,
    .page-about__content-block,
    .page-about__image-block {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    .page-about__hero-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }

    .page-about__dark-section {
        padding: 40px 20px;
    }
}

/* Ensure no filter on images */
.page-about img {
    filter: none;
}