/* style/about.css */

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

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

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

.page-about__section-title {
    font-size: 2.5em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-main);
    line-height: 1.2;
}

.page-about__section-title--dark {
    color: #333333; /* For sections with light background */
}

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

.page-about__description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-secondary);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__description--dark {
    color: #333333; /* For sections with light background */
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    background-color: var(--background-color-dark);
}

.page-about__hero-image-wrapper {
    width: 100%;
    max-width: 1920px; /* Ensure image doesn't stretch beyond common monitor width */
    overflow: hidden;
    margin-bottom: 20px;
}

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

.page-about__hero-content {
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-about__main-title {
    font-weight: bold;
    color: var(--gold-color);
    margin-bottom: 20px;
    line-height: 1.2;
    /* Using clamp for responsive font size without fixed large values */
    font-size: clamp(2.2em, 5vw, 3.5em); 
}

.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-about__btn-primary {
    background: var(--button-gradient);
    color: var(--text-main);
    border: none;
    margin: 10px;
}

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

.page-about__btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    margin: 10px;
}

.page-about__btn-secondary:hover {
    background: var(--primary-color);
    color: var(--text-main);
}

/* Story Section */
.page-about__story-section {
    padding: 80px 0;
    background-color: var(--card-bg); /* Using card-bg for a dark section */
    color: var(--text-main);
}

.page-about__content-grid {
    display: flex;
    gap: 40px;
    align-items: center;
}

.page-about__content-grid--reverse {
    flex-direction: row-reverse;
}

.page-about__text-block {
    flex: 1;
}

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

.page-about__image-block {
    flex: 1;
    min-width: 200px; /* Ensure images are not too small */
}

.page-about__image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

/* Why Choose Us Section */
.page-about__why-choose-us {
    padding: 80px 0;
    background-color: #ffffff; /* Light background for this section */
    color: #333333; /* Dark text for light background */
}

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

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

.page-about__feature-card--light-bg {
    background-color: #f8f8f8; /* Lighter background for cards in light section */
    color: #333333;
    border: 1px solid #e0e0e0;
}

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

.page-about__card-title {
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--gold-color);
}

.page-about__card-title--dark {
    color: var(--primary-color); /* For titles on light card background */
}

.page-about__card-text--dark {
    color: #555555; /* Darker text for light card background */
}

/* Security Section */
.page-about__security-section {
    padding: 80px 0;
    background-color: var(--background-color-dark);
    color: var(--text-main);
}

/* Vision Section */
.page-about__vision-section {
    padding: 80px 0;
    background-color: var(--card-bg);
    color: var(--text-main);
}

.page-about__text-block--center {
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA Section */
.page-about__cta-section {
    padding: 60px 0;
    background-color: #ffffff; /* Light background */
    text-align: center;
}

.page-about__cta-container {
    max-width: 800px;
}

.page-about__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* FAQ Section */
.page-about__faq-section {
    padding: 80px 0;
    background-color: var(--background-color-dark);
    color: var(--text-main);
}

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

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

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--text-main);
    cursor: pointer;
    background-color: var(--deep-green);
    border-bottom: 1px solid var(--divider-color);
    list-style: none;
}

.page-about__faq-question::-webkit-details-marker {
    display: none;
}

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

.page-about__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-about__faq-item[open] .page-about__faq-toggle {
    transform: rotate(45deg);
}

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

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

/* Responsive Styles */
@media (max-width: 992px) {
    .page-about__content-grid {
        flex-direction: column;
    }

    .page-about__content-grid--reverse {
        flex-direction: column;
    }

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

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

@media (max-width: 768px) {
    .page-about__hero-section,
    .page-about__story-section,
    .page-about__why-choose-us,
    .page-about__security-section,
    .page-about__vision-section,
    .page-about__cta-section,
    .page-about__faq-section {
        padding-left: 15px;
        padding-right: 15px;
    }

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

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

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

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

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

    .page-about__features-grid {
        grid-template-columns: 1fr;
    }

    .page-about__btn-primary,
    .page-about__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
    }

    .page-about__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-about__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }

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

    /* Mobile image responsiveness */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-about__hero-image-wrapper,
    .page-about__image-block,
    .page-about__content-grid,
    .page-about__features-grid,
    .page-about__feature-card,
    .page-about__cta-container,
    .page-about__cta-buttons,
    .page-about__faq-list,
    .page-about__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Ensure no overflow */
    }

    .page-about__text-block p {
      font-size: 0.95em;
    }
}

@media (max-width: 480px) {
    .page-about__section-title {
        font-size: 1.5em;
    }

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

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