/* style/about.css */
.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: #121212; /* Inherit from body or explicitly set if needed */
}

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

/* Header offset for main content */
.page-about__hero-section {
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    text-align: center;
    padding-bottom: 60px;
    background-color: #121212; /* Match body background */
}

.page-about__hero-section .page-about__container {
    padding-top: 60px; /* Additional padding within hero section */
}

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

.page-about__description {
    font-size: 1.2em;
    color: #f0f0f0;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__hero-image-wrapper {
    margin-top: 40px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

/* General Section Styling */
.page-about__section {
    padding: 80px 0;
}

.page-about__dark-bg {
    background-color: #017439; /* Brand primary color for dark sections */
    color: #ffffff;
}

.page-about__light-bg {
    background-color: #ffffff;
    color: #333333; /* Dark text for light background */
}

.page-about__section-title {
    font-size: 2.5em;
    margin-bottom: 40px;
    text-align: center;
    color: #ffffff; /* Default for dark background */
}

.page-about__light-bg .page-about__section-title,
.page-about__light-bg .page-about__dark-text {
    color: #333333; /* For titles on light background */
}

.page-about__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: justify;
}

.page-about__image-content {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 40px auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.page-about__grid-item {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter on dark bg */
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-about__light-bg .page-about__grid-item {
    background-color: #f9f9f9;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.page-about__list {
    list-style: disc;
    margin-left: 25px;
    margin-bottom: 20px;
    font-size: 1.1em;
}

.page-about__list li {
    margin-bottom: 10px;
}

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

.page-about__card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark bg */
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s ease;
    color: #ffffff;
}

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

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

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

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

/* Team Section */
.page-about__team-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-about__team-card {
    background-color: #f9f9f9; /* Light background for team cards */
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    color: #333333;
}

.page-about__team-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid #017439;
}

.page-about__team-name {
    font-size: 1.6em;
    margin-bottom: 5px;
    color: #333333;
}

.page-about__team-role {
    font-size: 1.1em;
    color: #017439;
    margin-bottom: 15px;
}

.page-about__team-description {
    font-size: 0.95em;
    line-height: 1.5;
    color: #555555;
}

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

.page-about__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #ffffff;
}

.page-about__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    list-style: none; /* Hide default marker */
    color: #ffffff;
}

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

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

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

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

.page-about__faq-answer {
    padding: 0 20px 20px;
    font-size: 1.05em;
    line-height: 1.6;
    color: #f0f0f0;
}

/* CTA Section */
.page-about__cta-section {
    text-align: center;
    padding: 80px 0;
    background-color: #017439; /* Brand primary color */
}

.page-about__cta-content {
    max-width: 800px;
    margin: 0 auto;
}

/* 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, border-color 0.3s ease;
    margin: 10px;
    cursor: pointer;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

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

.page-about__btn-secondary {
    background-color: #ffffff;
    color: #017439;
    border: 2px solid #017439;
}

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

.page-about__btn-large {
    min-width: 200px;
}

/* Video Section */
.page-about__video-section {
    position: relative;
    padding-top: 60px; /* Adjust for general section padding */
    padding-bottom: 60px;
    text-align: center;
    background-color: #121212; /* Match body background */
}

.page-about__video-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-about__video-link {
    display: block;
    margin: 40px auto 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    line-height: 0; /* Remove extra space below video */
}

.page-about__video {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
    object-fit: cover;
}

.page-about__btn-video-cta {
    margin-top: 30px;
}

/* Copyright Section */
.page-about__copyright-section {
    background-color: #0d0d0d; /* Slightly darker than body for footer */
    padding: 20px 0;
    text-align: center;
    font-size: 0.9em;
    color: #aaaaaa;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__main-title {
        font-size: 2.5em;
    }
    .page-about__section-title {
        font-size: 2em;
    }
    .page-about__card-grid,
    .page-about__team-cards,
    .page-about__grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
}

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

    .page-about__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
        padding-bottom: 40px;
    }

    .page-about__main-title {
        font-size: 2em;
        margin-bottom: 15px;
    }

    .page-about__description {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .page-about__section {
        padding: 60px 0;
    }

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

    .page-about__text-block,
    .page-about__list,
    .page-about__card-text,
    .page-about__team-description,
    .page-about__faq-answer p {
        font-size: 0.95em;
        text-align: left; /* Adjust for better mobile readability */
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-about__container {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Images responsiveness */
    .page-about img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    .page-about__hero-image-wrapper,
    .page-about__image-content,
    .page-about__card-image,
    .page-about__team-image {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
    }
    /* All containers with images */
    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__grid-item,
    .page-about__team-card,
    .page-about__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }


    /* Video responsiveness */
    .page-about video,
    .page-about__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-about__video-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .page-about__video-container,
    .page-about__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        overflow: hidden !important;
    }
    .page-about__video-link {
        margin-left: auto;
        margin-right: auto;
    }


    /* Button responsiveness */
    .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;
        margin: 10px 0 !important; /* Stack buttons vertically */
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-about__cta-buttons,
    .page-about__button-group,
    .page-about__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
        display: flex;
        flex-direction: column; /* Stack buttons */
    }

    .page-about__card-grid,
    .page-about__team-cards,
    .page-about__grid {
        grid-template-columns: 1fr;
    }
    .page-about__faq-item summary {
        font-size: 1.1em;
        padding: 15px;
    }
    .page-about__faq-answer {
        padding: 0 15px 15px;
    }
}

@media (max-width: 480px) {
    .page-about__main-title {
        font-size: 1.8em;
    }
    .page-about__section-title {
        font-size: 1.6em;
    }
    .page-about__btn-primary,
    .page-about__btn-secondary {
        font-size: 1em;
        padding: 12px 20px;
    }
}