/* style/about.css */

/* Base styles for the About page */
.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Allow body background to show through */
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Adjust height as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.page-about__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.page-about__hero-content {
    text-align: center;
    color: #ffffff;
    z-index: 1;
    max-width: 900px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
    border-radius: 10px;
}

.page-about__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #FFFF00; /* Use yellow for title as per brand colors */
}

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

.page-about__hero-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* General Section Styling */
.page-about__section {
    padding: 60px 20px;
    background-color: #ffffff; /* White background for content sections */
    color: #333333; /* Dark text for white background */
    border-bottom: 1px solid #eee;
}

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

.page-about__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.page-about__heading {
    font-size: 2.5em;
    color: #017439; /* Primary brand color for headings */
    text-align: center;
    margin-bottom: 40px;
}

.page-about__sub-heading {
    font-size: 1.8em;
    color: #017439;
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-about__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    line-height: 1.7;
}

.page-about__highlight {
    font-weight: bold;
    color: #017439;
}

.page-about__list {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
}

.page-about__list-item {
    margin-bottom: 10px;
    font-size: 1.1em;
}

/* Grid Layouts */
.page-about__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.page-about__grid-item {
    margin-top: 30px;
}

/* Card Styling */
.page-about__card {
    background-color: #f8f8f8;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #333333;
}

.page-about__card-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
}

.page-about__card-title {
    font-size: 1.5em;
    color: #017439;
    margin-bottom: 15px;
}

.page-about__card-title a {
    color: #017439;
    text-decoration: none;
}

.page-about__card-title a:hover {
    text-decoration: underline;
}

.page-about__card-text {
    font-size: 1em;
    line-height: 1.6;
}

/* Feature Grid for "Why Choose Us" section */
.page-about__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.page-about__feature-item {
    background-color: #f8f8f8;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: left;
    color: #333333;
}

.page-about__feature-title {
    font-size: 1.6em;
    color: #017439;
    margin-bottom: 15px;
}

.page-about__feature-text {
    font-size: 1.05em;
    line-height: 1.6;
}

/* Contact Info Section */
.page-about__contact-info {
    text-align: center;
    margin-top: 30px;
}

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

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-size: 1em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-about__btn-primary {
    background-color: #C30808; /* Red for primary action (Register/Login) */
    color: #FFFF00; /* Yellow text for primary button */
    border: 2px solid #C30808;
}

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

.page-about__btn-secondary {
    background-color: #017439; /* Brand green for secondary actions */
    color: #ffffff;
    border: 2px solid #017439;
}

.page-about__btn-secondary:hover {
    background-color: #005f2f;
    border-color: #005f2f;
}

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

.page-about__faq-item {
    background-color: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #333333;
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
}

.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.8em;
    font-weight: bold;
    transition: transform 0.3s ease;
    color: #017439;
}

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

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

/* Responsive Design */
@media (max-width: 992px) {
    .page-about__hero-title {
        font-size: 2.8em;
    }

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

    .page-about__heading {
        font-size: 2em;
    }

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

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

@media (max-width: 768px) {
    .page-about__hero-section {
        height: 500px;
        padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
    }

    .page-about__hero-title {
        font-size: 2.2em;
    }

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

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

    .page-about__btn-primary,
    .page-about__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px 15px !important; /* Adjust padding for mobile */
        font-size: 0.95em !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

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

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

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

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

    .page-about__paragraph,
    .page-about__list-item,
    .page-about__card-text,
    .page-about__feature-text,
    .page-about__contact-text {
        font-size: 1em;
    }

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

    /* Ensure content containers also adapt */
    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__hero-section,
    .page-about__hero-content,
    .page-about__cta-buttons,
    .page-about__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    /* Padding for inner elements to prevent content touching edges */
    .page-about__container,
    .page-about__hero-content,
    .page-about__faq-item {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    .page-about__faq-question,
    .page-about__faq-answer {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

@media (max-width: 480px) {
    .page-about__hero-section {
        height: 400px;
    }
    .page-about__hero-title {
        font-size: 1.8em;
    }
    .page-about__hero-description {
        font-size: 0.9em;
    }
    .page-about__heading {
        font-size: 1.5em;
    }
    .page-about__sub-heading {
        font-size: 1.2em;
    }
    .page-about__card-title {
        font-size: 1.1em;
    }
    .page-about__faq-title {
        font-size: 1em;
    }
}