/* style/about.css */

/* Base styles for the About Us page */
.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: var(--background-color, #ffffff); /* Ensure default is white if variable not set */
}

/* Header offset for fixed header */
.page-about__hero-section {
    padding-top: var(--header-offset, 120px); /* Apply header offset to the first section */
}

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

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

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

/* Hero Section */
.page-about__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-align: center;
    overflow: hidden;
    padding-bottom: 80px; /* Add some padding at the bottom */
}

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

.page-about__hero-container {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 40px 20px;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
    border-radius: 10px;
}

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

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

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

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

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

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

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

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

/* Mission & Vision Section */
.page-about__mission-vision {
    padding: 60px 0;
    background-color: #f8f8f8; /* Light background for contrast */
}

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

.page-about__card {
    background-color: #ffffff;
    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-title {
    font-size: 1.8em;
    color: #017439;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-about__card-text {
    font-size: 1.1em;
    color: #555555;
    margin-bottom: 20px;
}

.page-about__card-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 15px;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
    object-fit: cover;
}

/* Why Choose Section */
.page-about__why-choose {
    padding: 80px 0;
    background-color: #017439; /* Dark brand color background */
    color: #ffffff;
}

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

.page-about__feature-item {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark background */
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    color: #ffffff;
}

.page-about__feature-title {
    font-size: 1.6em;
    color: #FFFF00; /* Yellow for highlight */
    margin-bottom: 15px;
    font-weight: bold;
}

.page-about__feature-text {
    font-size: 1.1em;
    color: #f0f0f0;
}

/* History and Responsibility Sections */
.page-about__history,
.page-about__responsibility {
    padding: 60px 0;
}

.page-about__history {
    background-color: #ffffff;
    color: #333333;
}

.page-about__responsibility {
    background-color: #017439;
    color: #ffffff;
}

.page-about__image-full-width {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
    object-fit: cover;
}

.page-about__text-block {
    font-size: 1.1em;
    color: #555555;
    margin-bottom: 20px;
    text-align: justify;
}

.page-about__text-block--white {
    color: #f0f0f0;
}

/* Final CTA Section */
.page-about__cta-final {
    padding: 80px 0;
    background-color: #017439; /* Dark brand color background */
    text-align: center;
    color: #ffffff;
}

.page-about__cta-final .page-about__section-title {
    margin-bottom: 30px;
}

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

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

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

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    background-color: #f0f0f0;
    color: #017439; /* Brand color for questions */
    list-style: none; /* Remove default marker for details summary */
}

/* Hide default marker for details */
.page-about__faq-item summary::-webkit-details-marker {
    display: none;
}
.page-about__faq-item summary {
    list-style: none;
}

.page-about__faq-qtext {
    flex-grow: 1;
}

.page-about__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-about__faq-item[open] .page-about__faq-toggle {
    transform: rotate(45deg); /* Rotate '+' to 'x' or similar */
}

.page-about__faq-answer {
    padding: 0 20px 20px 20px;
    font-size: 1.1em;
    color: #555555;
    /* For details tag, browser handles visibility */
}

.page-about__faq-answer p {
    margin-bottom: 10px;
}

.page-about__faq-answer a {
    color: #017439;
    text-decoration: underline;
}

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

@media (max-width: 768px) {
    /* General mobile padding */
    .page-about__container {
        padding: 15px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Hero Section */
    .page-about__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
        padding-bottom: 40px;
    }
    .page-about__hero-title {
        font-size: 2em;
    }
    .page-about__hero-description {
        font-size: 1em;
    }
    .page-about__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    /* Buttons responsive */
    .page-about__btn-primary,
    .page-about__btn-secondary,
    .page-about a[class*="button"],
    .page-about a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-about__hero-buttons,
    .page-about__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }
    .page-about__cta-buttons {
        display: flex;
        flex-direction: column; /* Ensure vertical stacking for CTAs */
    }

    /* Image responsiveness */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important; /* Ensure content images are 100% width */
        height: auto !important;
        display: block !important;
    }
    .page-about__section,
    .page-about__card,
    .page-about__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }

    /* Ensure no video exists, but if it did, these would apply */
    .page-about video,
    .page-about__video {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    .page-about__video-section,
    .page-about__video-container,
    .page-about__video-wrapper {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      overflow: hidden !important;
    }
    .page-about__video-section {
      padding-top: var(--header-offset, 120px) !important;
    }


    .page-about__section-title {
        font-size: 1.8em;
    }
    .page-about__card-title {
        font-size: 1.5em;
    }
    .page-about__feature-title {
        font-size: 1.3em;
    }
    .page-about__faq-question {
        font-size: 1.1em;
        padding: 15px;
    }
    .page-about__faq-answer {
        padding: 0 15px 15px 15px;
    }
}