/* style/about.css */

/* Variables and Base Styles */
:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #ffffff;
    --button-register: #C30808;
    --button-login: #C30808;
    --button-text-highlight: #FFFF00;
    --border-color: #e0e0e0;
    --bg-light: #f9f9f9;
}

.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark); /* Default text color for light body background */
    background-color: var(--secondary-color); /* Assuming body is light */
}

/* Section Styling */
.page-about__section {
    padding: 60px 0;
    text-align: center;
}

.page-about__section--introduction,
.page-about__section--products,
.page-about__section--vision-mission,
.page-about__section--faq,
.page-about__section--contact-cta {
    background-color: var(--secondary-color); /* Light background */
    color: var(--text-dark);
}

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

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

.page-about__section-title {
    font-size: 38px;
    font-weight: bold;
    margin-bottom: 40px;
    color: var(--primary-color);
    text-align: center;
}

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

.page-about__sub-title {
    font-size: 24px;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--primary-color);
    text-align: left;
}

.page-about__dark-section .page-about__sub-title {
    color: var(--text-light);
}

.page-about__content-area {
    text-align: left;
    max-width: 900px;
    margin: 0 auto;
}

.page-about__content-area p {
    margin-bottom: 15px;
    font-size: 17px;
}

.page-about__content-area img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    background-color: var(--primary-color);
    overflow: hidden;
}

.page-about__hero-image {
    width: 100%;
    height: 600px; /* Fixed height for desktop */
    overflow: hidden;
    position: relative;
}

.page-about__hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover for desktop */
    display: block;
}

.page-about__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 40px auto 0;
    text-align: center;
    color: var(--text-light);
}

.page-about__main-title {
    font-size: clamp(32px, 5vw, 48px); /* Use clamp for H1 */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-light);
}

.page-about__description {
    font-size: 18px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

.page-about__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box; /* Ensure padding is included in width */
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow long words to break */
}

.page-about__btn-primary {
    background-color: var(--button-register); /* Custom color for Register/Login */
    color: var(--button-text-highlight);
    border: 2px solid var(--button-register);
}

.page-about__btn-primary:hover {
    background-color: #a40707;
    border-color: #a40707;
    transform: translateY(-2px);
}

.page-about__btn-secondary {
    background-color: transparent;
    color: var(--button-text-highlight);
    border: 2px solid var(--button-text-highlight);
}

.page-about__btn-secondary:hover {
    background-color: var(--button-text-highlight);
    color: var(--button-register);
    transform: translateY(-2px);
}

/* Products Grid Section */
.page-about__products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns for desktop */
    gap: 30px;
    margin-top: 40px;
    max-width: 1000px; /* Constrain grid width */
    margin-left: auto;
    margin-right: auto;
}

.page-about__product-card {
    background-color: var(--secondary-color);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-dark); /* Ensure text is dark on light card background */
}

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

.page-about__product-card img {
    width: 100%;
    height: 200px; /* Fixed height for card images */
    object-fit: cover;
    display: block;
    border-bottom: 1px solid var(--border-color);
}

.page-about__product-card .page-about__card-title {
    font-size: 20px;
    font-weight: 700;
    margin: 20px 20px 10px;
    line-height: 1.3;
}

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

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

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

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

details.page-about__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    background: var(--secondary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
details.page-about__faq-item summary.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
    color: var(--text-dark);
}
details.page-about__faq-item summary.page-about__faq-question::-webkit-details-marker {
    display: none;
}
details.page-about__faq-item summary.page-about__faq-question:hover {
    background: var(--bg-light);
}
.page-about__faq-qtext {
    flex: 1;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: var(--primary-color);
}
.page-about__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    flex-shrink: 0;
    margin-left: 15px;
    width: 28px;
    text-align: center;
}
details.page-about__faq-item .page-about__faq-answer {
    padding: 0 20px 20px;
    background: var(--bg-light);
    border-radius: 0 0 8px 8px;
    text-align: left;
    color: var(--text-dark);
}
.page-about__faq-answer p {
    margin-bottom: 0;
    font-size: 16px;
}
.page-about__faq-answer a {
    color: var(--primary-color);
    text-decoration: none;
}
.page-about__faq-answer a:hover {
    text-decoration: underline;
}

/* Contact CTA Section */
.page-about__section--contact-cta {
    background-color: var(--bg-light);
    padding: 80px 0;
}
.page-about__cta-block {
    max-width: 800px;
    margin: 0 auto;
}
.page-about__cta-block .page-about__section-title {
    color: var(--primary-color);
    margin-bottom: 20px;
}
.page-about__cta-block .page-about__description {
    color: var(--text-dark);
    margin-bottom: 40px;
    font-size: 18px;
}


/* Responsive Styles */
@media (max-width: 1024px) {
    .page-about__section-title {
        font-size: 34px;
    }
    .page-about__sub-title {
        font-size: 22px;
    }
    .page-about__hero-image {
        height: 500px;
    }
    .page-about__products-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns for tablet */
        gap: 25px;
    }
    .page-about__product-card img {
        
    }
}

@media (max-width: 768px) {
    /* General containers and images */
    .page-about__container,
    .page-about__content-area,
    .page-about__products-grid,
    .page-about__faq-list,
    .page-about__cta-block {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
        object-fit: contain !important; /* Ensure images fit without cropping */
    }

    /* HERO Section */
    .page-about__hero-section {
        padding-top: 10px; /* Small top padding, body handles header offset */
        padding-bottom: 40px;
    }
    .page-about__hero-image {
        height: auto; /* Auto height for mobile */
        aspect-ratio: unset !important; /* Remove fixed aspect ratio */
    }
    .page-about__hero-image img {
        object-fit: contain !important; /* Contain for mobile hero */
    }
    .page-about__main-title {
        font-size: clamp(28px, 8vw, 36px);
        margin-top: 20px;
    }
    .page-about__description {
        font-size: 16px;
    }
    .page-about__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        margin-top: 20px;
    }
    .page-about__btn-primary,
    .page-about__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 16px;
    }

    /* Section Titles */
    .page-about__section {
        padding: 40px 0;
    }
    .page-about__section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    .page-about__sub-title {
        font-size: 20px;
    }
    .page-about__content-area p {
        font-size: 16px;
    }

    /* Products Grid Section */
    .page-about__products-grid {
        grid-template-columns: 1fr; /* Single column for mobile */
        gap: 20px;
        overflow-x: hidden; /* Prevent horizontal scroll */
    }
    .page-about__product-card img {
         /* Smaller height for mobile card images */
    }
    .page-about__product-card .page-about__card-title {
        font-size: 18px;
    }
    .page-about__product-card p {
        font-size: 14px;
    }

    /* FAQ Section */
    details.page-about__faq-item summary.page-about__faq-question {
        padding: 15px;
    }
    .page-about__faq-qtext {
        font-size: 16px;
    }
    .page-about__faq-toggle {
        font-size: 20px;
        width: 24px;
        height: 24px;
    }
    details.page-about__faq-item .page-about__faq-answer {
        padding: 0 15px 15px;
    }
    .page-about__faq-answer p {
        font-size: 15px;
    }

    /* Contact CTA Section */
    .page-about__section--contact-cta {
        padding: 50px 0;
    }
    .page-about__cta-block .page-about__section-title {
        font-size: 26px;
    }
    .page-about__cta-block .page-about__description {
        font-size: 16px;
    }
}