/* style/about.css */

/* Base styles for the about page */
.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background: var(--background, #FFFFFF); /* Inherit body background */
}

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

/* Hero Section */
.page-about__hero-section {
    position: relative;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    padding-bottom: 60px;
    background: #017439; /* Main brand color for hero background */
    color: #ffffff; /* White text for dark background */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.page-about__hero-content {
    flex: 1;
    z-index: 1;
    padding-right: 20px;
    max-width: 60%;
}

.page-about__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
}

.page-about__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

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

.page-about__hero-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 40%;
}

.page-about__hero-image {
    max-width: 100%;\    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-about__btn-primary {
    background: #C30808; /* Custom color for register/login */
    color: #FFFF00; /* Custom font color */
    border: 2px solid #C30808;
}

.page-about__btn-primary:hover {
    background: #a30606;
    border-color: #a30606;
}

.page-about__btn-secondary {
    background: transparent;
    color: #FFFF00; /* Custom font color */
    border: 2px solid #FFFF00;
}

.page-about__btn-secondary:hover {
    background: #FFFF00;
    color: #C30808;
}

/* Section Titles */
.page-about__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    color: #017439; /* Main brand color for titles */
}

.page-about__dark-bg .page-about__section-title {
    color: #ffffff;
}

/* Story Section */
.page-about__story-section {
    padding: 80px 0;
    background: #ffffff;
}

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

.page-about__story-text {
    flex: 2;
}

.page-about__story-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-about__story-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-about__paragraph {
    margin-bottom: 15px;
    font-size: 1.1em;
}

/* Values Section */
.page-about__values-section {
    padding: 80px 0;
    background: #017439;
    color: #ffffff;
}

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

.page-about__value-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-about__value-title {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #ffffff;
}

.page-about__value-description {
    font-size: 1em;
    color: #f0f0f0;
}

/* Offer Section */
.page-about__offer-section {
    padding: 80px 0;
    background: #f8f8f8;
}

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

.page-about__offer-card {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.page-about__offer-card:hover {
    transform: translateY(-5px);
}

.page-about__offer-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-about__offer-card h3 {
    padding: 15px 20px 0;
}

.page-about__offer-card h3 a {
    color: #017439;
    text-decoration: none;
    font-size: 1.4em;
    font-weight: bold;
    display: block;
}

.page-about__offer-card h3 a:hover {
    text-decoration: underline;
}

.page-about__offer-description {
    padding: 0 20px 20px;
    font-size: 0.95em;
    color: #555555;
}

/* Security Section */
.page-about__security-section {
    padding: 80px 0;
    background: #017439;
    color: #ffffff;
}

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

.page-about__security-text {
    flex: 2;
}

.page-about__security-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-about__security-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-about__security-text .page-about__btn-secondary {
    margin-top: 20px;
    margin-right: 15px;
    color: #ffffff;
    border-color: #ffffff;
}

.page-about__security-text .page-about__btn-secondary:hover {
    background: #ffffff;
    color: #017439;
}

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

.page-about__cta-box {
    background: #f0f0f0;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-about__cta-title {
    font-size: 2.2em;
    margin-bottom: 20px;
    color: #017439;
}

.page-about__cta-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #555555;
}

/* FAQ Section */
.page-about__faq-section {
    padding: 80px 0;
    background: #f8f8f8;
}

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

.page-about__faq-item {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background: #ffffff;
    transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
    background-color: #f5f5f5;
}

.page-about__faq-title {
    font-size: 1.2em;
    margin: 0;
    color: #017439;
}

.page-about__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #017439;
    transition: transform 0.3s ease;
}

.page-about__faq-item.active .page-about__faq-toggle {
    transform: rotate(45deg); /* For '-' effect */
}

.page-about__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-about__faq-item.active .page-about__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px 20px;
}

.page-about__faq-answer .page-about__paragraph {
    margin-bottom: 0;
    color: #555555;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__hero-title {
        font-size: 2.8em;
    }
    .page-about__section-title {
        font-size: 2em;
    }
    .page-about__hero-content,
    .page-about__hero-image-wrapper {
        max-width: 100%;
    }
    .page-about__story-grid,
    .page-about__security-content {
        flex-direction: column;
        text-align: center;
    }
    .page-about__story-text,
    .page-about__security-text {
        order: 2; /* Put text below image on mobile */
    }
    .page-about__story-image-wrapper,
    .page-about__security-image-wrapper {
        order: 1;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .page-about {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-about__container {
        padding: 0 15px;
    }

    /* Hero section */
    .page-about__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
    }
    .page-about__hero-content {
        max-width: 100%;
        padding-right: 0;
    }
    .page-about__hero-image-wrapper {
        display: none; /* Hide hero image on small screens for better focus on text */
    }
    .page-about__hero-title {
        font-size: 2em;
        margin-bottom: 15px;
    }
    .page-about__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }
    .page-about__hero-cta-buttons {
        flex-direction: column;
        gap: 10px;
        margin-top: 20px;
    }
    .page-about__btn-primary,
.page-about__btn-secondary,
.page-about a[class*="button"],
.page-about a[class*="btn"] {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Sections */
    .page-about__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-about__story-section,
    .page-about__values-section,
    .page-about__offer-section,
    .page-about__security-section,
    .page-about__cta-section,
    .page-about__faq-section {
        padding: 40px 0;
    }

    /* Images responsiveness - MUST HAVE */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    .page-about__hero-image-wrapper,
    .page-about__story-image-wrapper,
    .page-about__security-image-wrapper,
    .page-about__offer-card,
    .page-about__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-about__offer-image {
        height: auto !important; /* Allow auto height for responsive images */
        min-height: 200px; /* Ensure minimum size */
    }

    /* Values Grid */
    .page-about__values-grid {
        grid-template-columns: 1fr;
    }

    /* Offer Grid */
    .page-about__offer-grid {
        grid-template-columns: 1fr;
    }

    /* CTA Section */
    .page-about__cta-box {
        padding: 30px 20px;
    }
    .page-about__cta-title {
        font-size: 1.8em;
    }
    .page-about__cta-description {
        font-size: 1em;
    }
    .page-about__cta-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    /* FAQ Section */
    .page-about__faq-list {
        max-width: 100%;
    }
    .page-about__faq-question {
        padding: 15px;
    }
    .page-about__faq-title {
        font-size: 1.1em;
    }
    .page-about__faq-answer {
        padding: 0 15px;
    }
    .page-about__faq-item.active .page-about__faq-answer {
        padding: 10px 15px;
    }
}