/* style/about.css */

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

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

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

.page-about__section-title {
    font-size: 36px;
    color: #017439; /* Primary color for main titles */
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
}

.page-about__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #017439;
    border-radius: 2px;
}

.page-about__description {
    font-size: 18px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
    color: #555555;
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Ensures header offset */
    background: linear-gradient(135deg, #017439, #0f9d58); /* Gradient for hero section background */
    overflow: hidden; /* Prevent content overflow */
}

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

.page-about__hero-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-about__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    color: #ffffff; /* White text for dark background */
}

.page-about__main-title {
    font-size: 48px;
    margin-bottom: 20px;
    color: #FFFF00; /* Yellow for main title on dark background */
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.page-about__hero-content .page-about__description {
    color: #f0f0f0;
    margin-bottom: 40px;
}

.page-about__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: #C30808; /* Register/Login button color */
    color: #FFFF00; /* Register/Login font color */
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 30px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-about__cta-button:hover {
    background: #a00606; /* Slightly darker red on hover */
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Intro Section */
.page-about__intro-section .page-about__content-grid {
    display: flex;
    gap: 40px;
    align-items: center;
}

.page-about__intro-section .page-about__text-block {
    flex: 1;
}

.page-about__intro-section .page-about__image-block {
    flex: 1;
    text-align: center;
}

.page-about__intro-section .page-about__image-block img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Mission & Vision Section */
.page-about__mission-vision-section {
    background-color: #017439; /* Primary color background */
    color: #ffffff; /* White text for dark background */
}

.page-about__mission-vision-section .page-about__section-title {
    color: #FFFF00; /* Yellow title on dark background */
}

.page-about__mission-vision-section .page-about__section-title::after {
    background-color: #FFFF00;
}

.page-about__mission-vision-section .page-about__card {
    background: rgba(255, 255, 255, 0.1); /* Slightly transparent white for cards */
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background 0.3s ease;
}

.page-about__mission-vision-section .page-about__card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.page-about__mission-vision-section .page-about__card-title {
    font-size: 24px;
    color: #ffffff;
    margin-bottom: 15px;
}

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

/* Core Values Section */
.page-about__values-section {
    background-color: #f8f8f8; /* Light background */
}

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

.page-about__value-item {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 5px solid #017439;
}

.page-about__value-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-about__value-title {
    font-size: 22px;
    color: #017439;
    margin-bottom: 15px;
}

/* Products Overview Section */
.page-about__products-overview {
    background-color: #017439; /* Primary color background */
    color: #ffffff;
}

.page-about__products-overview .page-about__section-title {
    color: #FFFF00; /* Yellow title on dark background */
}

.page-about__products-overview .page-about__section-title::after {
    background-color: #FFFF00;
}

.page-about__products-overview .page-about__description {
    color: #f0f0f0;
}

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

.page-about__product-card {
    background: rgba(255, 255, 255, 0.1); /* Slightly transparent white for cards */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.page-about__product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-about__product-card img {
    width: 100%;
    height: 200px; /* Fixed height for product images */
    object-fit: cover;
    display: block;
}

.page-about__product-card .page-about__card-title {
    font-size: 20px;
    margin: 20px 15px 10px 15px;
    color: #FFFF00; /* Yellow for product card titles */
}

.page-about__product-card .page-about__card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-about__product-card .page-about__card-title a:hover {
    color: #ffffff;
}

.page-about__product-card p {
    font-size: 15px;
    color: #f0f0f0;
    padding: 0 15px 20px 15px;
}

/* Commitment Section */
.page-about__commitment-section {
    background-color: #ffffff; /* Light background */
}

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

.page-about__commitment-item {
    text-align: center;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fdfdfd;
}

.page-about__commitment-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-about__commitment-item img {
    max-width: 100%;
    height: 200px; /* Fixed height for commitment images */
    object-fit: contain; /* Use contain for icons/illustrations */
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-about__commitment-title {
    font-size: 24px;
    color: #017439;
    margin-bottom: 15px;
}

.page-about__commitment-item p {
    color: #555555;
    margin-bottom: 20px;
}

.page-about__link {
    color: #017439;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-about__link:hover {
    color: #0f9d58;
    text-decoration: underline;
}

.page-about__cta-buttons {
    text-align: center;
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    transition: all 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; /* Register button color */
    color: #FFFF00; /* Register font color */
    border: 2px solid #C30808;
}

.page-about__btn-primary:hover {
    background: #a00606;
    border-color: #a00606;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.page-about__btn-secondary:hover {
    background: #a00606; /* Darker red on hover */
    border-color: #a00606;
    color: #FFFF00; /* Maintain yellow text */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* FAQ Section */
.page-about__faq-section {
    background-color: #f0f0f0; /* Light background for FAQ */
}

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

.page-about__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 8px 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: 16px;
    font-weight: 600;
    line-height: 1.5;
    color: #333333;
    pointer-events: none; /* Prevents h3 from blocking click event */
}

.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; /* Prevents icon from blocking click event */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.page-about__faq-item.active .page-about__faq-toggle {
    color: #017439;
    transform: rotate(45deg); /* Rotate for minus sign 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;
    color: #555555;
    background: #f9f9f9;
}

.page-about__faq-item.active .page-about__faq-answer {
    max-height: 2000px !important; /* Sufficiently large for content */
    padding: 20px 15px !important;
    opacity: 1;
    border-radius: 0 0 5px 5px;
    border-left: 1px solid #e0e0e0;
    border-right: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

/* CTA Section */
.page-about__cta-section {
    background-color: #017439; /* Primary color background */
    color: #ffffff;
    text-align: center;
    padding: 80px 20px;
}

.page-about__cta-section .page-about__section-title {
    color: #FFFF00; /* Yellow title on dark background */
    margin-bottom: 20px;
}

.page-about__cta-section .page-about__section-title::after {
    background-color: #FFFF00;
}

.page-about__cta-section .page-about__description {
    color: #f0f0f0;
    margin-bottom: 40px;
}

.page-about__cta-section .page-about__cta-button {
    margin-top: 0; /* Override default margin-top */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__section-title {
        font-size: 32px;
    }
    .page-about__main-title {
        font-size: 42px;
    }
    .page-about__description {
        font-size: 16px;
    }
    .page-about__hero-image {
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .page-about__section {
        padding: 40px 0;
    }
    .page-about__section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    .page-about__main-title {
        font-size: 36px;
        margin-bottom: 15px;
    }
    .page-about__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-about__hero-image {
        border-radius: 4px;
        margin-bottom: 20px;
    }
    .page-about__cta-button {
        padding: 12px 30px;
        font-size: 16px;
        margin-top: 20px;
        max-width: 100% !important; /* Button responsiveness */
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important; /* Allow text wrapping */
        word-wrap: break-word !important;
    }

    .page-about__intro-section .page-about__content-grid {
        flex-direction: column;
        gap: 30px;
    }
    .page-about__mission-vision-section .page-about__grid,
    .page-about__values-list,
    .page-about__product-cards,
    .page-about__commitment-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-about__product-card img,
    .page-about__commitment-item img {
        
    }

    .page-about__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-about__btn-primary,
    .page-about__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Mobile FAQ specific styles */
    .page-about__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    .page-about__faq-question h3 {
        font-size: 15px;
        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;
    }

    /* All images in content area */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__text-block,
    .page-about__image-block,
    .page-about__value-item,
    .page-about__product-card,
    .page-about__commitment-item,
    .page-about__faq-item,
    .page-about__cta-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 480px) {
    .page-about__main-title {
        font-size: 30px;
    }
    .page-about__section-title {
        font-size: 24px;
    }
    .page-about__cta-button {
        font-size: 15px;
        padding: 10px 25px;
    }
}