/* style/about.css */

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

/* Base styles for the About Us page */
.page-about {
    font-family: 'Arial', sans-serif;
    background-color: var(--color-background-dark); /* Use custom background color */
    color: var(--color-text-main); /* Default text color for the page */
    line-height: 1.6;
    padding-bottom: 60px; /* Ensure space above footer */
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    padding: 10px 20px 60px; /* Small top padding, larger bottom padding */
    text-align: center;
    overflow: hidden; /* Ensure content doesn't spill */
    background-color: var(--color-deep-green); /* A darker green for the hero background */
}

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

.page-about__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    object-fit: cover;
    max-height: 600px; /* Limit height for aesthetic */
}

.page-about__hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

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

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

.page-about__hero-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
    text-align: center;
}

.page-about__btn-primary {
    background: var(--color-button-gradient-start); /* Fallback for gradient */
    background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
    color: var(--color-text-main);
    border: 2px solid var(--color-button-gradient-start);
    box-shadow: 0 5px 15px rgba(17, 168, 78, 0.4);
}

.page-about__btn-primary:hover {
    background: linear-gradient(180deg, var(--color-button-gradient-end) 0%, var(--color-button-gradient-start) 100%);
    box-shadow: 0 8px 20px rgba(17, 168, 78, 0.6);
    transform: translateY(-2px);
}

.page-about__btn-secondary {
    background-color: var(--color-text-main); /* Light background for contrast */
    color: var(--color-deep-green); /* Dark text for light background */
    border: 2px solid var(--color-deep-green);
}

.page-about__btn-secondary:hover {
    background-color: var(--color-deep-green); /* Dark background on hover */
    color: var(--color-text-main); /* Light text on hover */
    box-shadow: 0 5px 15px rgba(34, 199, 104, 0.3);
    transform: translateY(-2px);
}

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

/* Section Titles */
.page-about__section-title {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 40px;
    padding-top: 60px;
    text-shadow: 0 0 5px rgba(34, 199, 104, 0.2);
}

/* Our Story Section */
.page-about__our-story-section {
    padding: 60px 0;
    background-color: var(--color-background-dark);
}

.page-about__story-content {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.page-about__story-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    display: block;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    min-width: 200px; /* Min image size */
    min-height: 200px; /* Min image size */
}

.page-about__text-block p {
    font-size: 1.1em;
    color: var(--color-text-secondary);
    margin-bottom: 20px;
}

/* Why Choose Us Section */
.page-about__why-choose-us-section {
    padding: 60px 0;
    background-color: var(--color-card-bg); /* Use card background for contrast */
}

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

.page-about__feature-card {
    background-color: var(--color-deep-green);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--color-border);
}

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

.page-about__feature-icon {
    width: 100%;
    max-width: 150px; /* Will be overridden by min-width 200px rule from global */
    height: auto;
    display: block;
    margin: 0 auto 20px;
    min-width: 200px; /* Min image size */
    min-height: 200px; /* Min image size */
}

.page-about__feature-title {
    font-size: 1.5em;
    color: var(--color-gold);
    margin-bottom: 15px;
}

.page-about__feature-description {
    color: var(--color-text-secondary);
}

/* Values Section */
.page-about__values-section {
    padding: 60px 0;
    background-color: var(--color-background-dark);
}

.page-about__values-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-about__value-item {
    background-color: var(--color-card-bg);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--color-border);
}

.page-about__value-title {
    font-size: 1.4em;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.page-about__value-description {
    color: var(--color-text-secondary);
}

/* Responsibility Section */
.page-about__responsibility-section {
    padding: 60px 0;
    background-color: var(--color-deep-green);
    text-align: center;
}

.page-about__responsibility-text {
    font-size: 1.1em;
    color: var(--color-text-secondary);
    max-width: 900px;
    margin: 0 auto 40px;
}

.page-about__responsibility-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* CTA Section */
.page-about__cta-section {
    padding: 80px 0;
    background-color: var(--color-card-bg);
    text-align: center;
}

.page-about__cta-description {
    font-size: 1.2em;
    color: var(--color-text-secondary);
    max-width: 800px;
    margin: 0 auto 40px;
}

/* Global image rules for content area */
.page-about img {
    max-width: 100%;
    height: auto;
    display: block;
    box-sizing: border-box;
}

/* Responsive adjustments */
@media (min-width: 769px) {
    .page-about__story-content {
        flex-wrap: nowrap;
    }
    .page-about__story-image {
        flex-shrink: 0;
    }
}

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

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

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

    .page-about__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

    .page-about__btn-primary,
    .page-about__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 15px;
        font-size: 1em;
        margin: 0 auto; /* Center buttons if flex-direction column */
    }

    .page-about__container {
        padding: 0 15px;
    }

    .page-about__section-title {
        font-size: 2em;
        padding-top: 40px;
        margin-bottom: 30px;
    }

    .page-about__story-content {
        flex-direction: column;
        gap: 30px;
    }

    .page-about__story-image {
        max-width: 100%;
    }

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

    .page-about__feature-card,
    .page-about__value-item {
        padding: 25px;
    }

    .page-about__feature-icon {
        max-width: 120px; /* Will be overridden by min-width 200px rule from global */
        min-width: 200px !important;
        min-height: 200px !important;
        margin-bottom: 15px;
    }

    .page-about p,
    .page-about li {
        font-size: 15px;
        line-height: 1.5;
    }

    /* All images, videos, buttons and their containers must be responsive */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__hero-image-wrapper,
    .page-about__story-content,
    .page-about__features-grid,
    .page-about__values-list,
    .page-about__responsibility-cta,
    .page-about__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
}

/* Content area images CSS dimensions lower bound check */
.page-about__story-image,
.page-about__feature-icon {
    min-width: 200px;
    min-height: 200px;
}