/* style/about.css */

/* Root variables for colors */
:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #FFFFFF;
    --btn-register-bg: #C30808;
    --btn-register-text: #FFFF00;
}

/* Function to darken color for hover effect (simulated) */
/* This is a placeholder for a real SASS/LESS function or JS utility */
/* For pure CSS, we can manually define a slightly darker shade */
/* Example: darken(#C30808, 10%) could be #a20606 */
/* Example: darken(#017439, 10%) could be #005a2e */

.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark); /* Default text color for light backgrounds */
    background-color: var(--secondary-color); /* Matches body background from shared.css */
    padding-bottom: 60px; /* Add some padding at the bottom */
}

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

/* Section Styling */
.page-about__hero-section,
.page-about__introduction-section,
.page-about__history-section,
.page-about__commitment-section,
.page-about__services-section,
.page-about__team-section,
.page-about__support-section,
.page-about__faq-section,
.page-about__cta-section {
    padding: 60px 0;
    text-align: center;
}

.page-about__light-bg {
    background-color: var(--secondary-color);
    color: var(--text-dark);
}

.page-about__dark-bg {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-about__dark-bg .page-about__section-title,
.page-about__dark-bg h3 {
    color: var(--text-light);
}

.page-about__dark-bg p {
    color: rgba(255, 255, 255, 0.9);
}

.page-about__dark-bg a {
    color: var(--btn-register-text); /* Lighter color for links in dark sections */
}

.page-about__dark-bg a:hover {
    color: var(--secondary-color);
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--header-offset, 120px); /* Desktop padding */
    padding-bottom: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #3a9b6b 100%); /* Gradient background */
    color: var(--text-light);
}

.page-about__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-about__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

.page-about__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-about__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 0 20px;
}

.page-about__main-heading {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: var(--text-light);
    line-height: 1.2;
    font-weight: bold;
}

.page-about__intro-text {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.9);
}

.page-about__cta-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping for multiple buttons */
}

/* Buttons */
.page-about__btn-register,
.page-about__btn-login,
.page-about__btn-contact,
.page-about__btn-support,
.page-about__btn-secondary {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    max-width: 100%; /* Ensure buttons don't overflow */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-about__btn-register,
.page-about__btn-login {
    background: var(--btn-register-bg);
    color: var(--btn-register-text);
    border: 2px solid var(--btn-register-text);
}

.page-about__btn-register:hover,
.page-about__btn-login:hover {
    background: #a20606; /* Manually darkened version of #C30808 */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-about__btn-contact,
.page-about__btn-support {
    background: var(--primary-color);
    color: var(--text-light);
    border: 2px solid var(--primary-color);
}

.page-about__btn-contact:hover,
.page-about__btn-support:hover {
    background: #005a2e; /* Manually darkened version of #017439 */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

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

.page-about__btn-secondary:hover {
    background: #e0f2e8; /* Lightened version of primary for hover */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* General Content Styling */
.page-about__section-title {
    font-size: 2.5em;
    margin-bottom: 40px;
    color: var(--primary-color);
    font-weight: bold;
}

.page-about p {
    margin-bottom: 1em;
    font-size: 1.05em;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__content-image {
    width: 100%;
    height: auto;
    max-width: 900px;
    margin: 40px auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

.page-about__service-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: left;
}

.page-about__service-list li {
    background: rgba(255, 255, 255, 0.1); /* Slightly transparent background for dark section */
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__service-list li:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-about__service-list h3 {
    font-size: 1.5em;
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--text-light);
}

.page-about__service-list h3 a {
    color: var(--text-light);
    text-decoration: none;
}

.page-about__service-list h3 a:hover {
    text-decoration: underline;
}

.page-about__service-list p {
    font-size: 1em;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
}

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

.page-about__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

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

.page-about__faq-question:active {
    background: #eeeeee;
}

.page-about__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 1.1em;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none;
    color: var(--text-dark);
}

.page-about__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: #666;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.page-about__faq-item.active .page-about__faq-toggle {
    color: var(--primary-color);
    transform: rotate(45deg); /* Rotate for 'x' effect */
}

.page-about__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 15px;
    opacity: 0;
}

.page-about__faq-item.active .page-about__faq-answer {
    max-height: 2000px !important; /* Sufficiently large */
    padding: 20px 15px !important;
    opacity: 1;
    background: #f9f9f9;
    border-radius: 0 0 5px 5px;
    border: 1px solid #e0e0e0;
    border-top: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__main-heading {
        font-size: 2.8em;
    }
    .page-about__section-title {
        font-size: 2em;
    }
    .page-about p {
        font-size: 1em;
    }
}

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

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

    .page-about__hero-image img {
        border-radius: 4px;
    }

    .page-about__main-heading {
        font-size: 2em;
        margin-bottom: 15px;
    }
    .page-about__intro-text {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-about__cta-group {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        padding: 0 15px;
        box-sizing: border-box;
    }

    .page-about__btn-register,
    .page-about__btn-login,
    .page-about__btn-contact,
    .page-about__btn-support,
    .page-about__btn-secondary,
    .page-about a[class*="button"],
    .page-about a[class*="btn"] {
        padding: 12px 20px;
        font-size: 1em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    
    .page-about__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

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

    .page-about__content-image {
        margin: 30px auto;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-about__service-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-about__service-list li {
        padding: 20px;
    }
    .page-about__service-list h3 {
        font-size: 1.3em;
    }

    .page-about__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    
    .page-about__faq-question h3 {
        font-size: 1em;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    
    .page-about__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    
    .page-about__faq-answer {
        padding: 0 15px;
    }
    
    .page-about__faq-item.active .page-about__faq-answer {
        padding: 15px !important;
    }

    /* Ensure all images within page-about are responsive */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    /* Ensure all containers with images are responsive */
    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__hero-container,
    .page-about__hero-content,
    .page-about__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}