/* style/about.css */

/* --- Base Styles --- */
.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main, #F2FFF6); /* Default text color for the page */
    background-color: var(--bg-main, #08160F); /* Page background */
}

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

.page-about__section-title {
    font-size: 2.5em;
    color: var(--text-main, #F2FFF6);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
}

.page-about__section-description {
    font-size: 1.1em;
    color: var(--text-secondary, #A7D9B8);
    text-align: center;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__sub-title {
    font-size: 1.8em;
    color: var(--text-main, #F2FFF6);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-about__text-block p {
    color: var(--text-secondary, #A7D9B8);
    margin-bottom: 15px;
}

/* --- Buttons --- */
.page-about__btn-primary,
.page-about__btn-secondary,
.page-about__btn-link {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent; /* Default transparent border */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

.page-about__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom button color */
    color: #ffffff; /* White text for contrast */
    border-color: #2AD16F;
}

.page-about__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    box-shadow: 0 0 15px var(--glow, #57E38D);
}

.page-about__btn-secondary {
    background-color: transparent;
    color: var(--text-main, #F2FFF6);
    border-color: var(--border, #2E7A4E); /* Custom border color */
}

.page-about__btn-secondary:hover {
    background-color: var(--deep-green, #0A4B2C); /* Custom deep green for hover */
    color: #ffffff;
    border-color: var(--deep-green, #0A4B2C);
    box-shadow: 0 0 10px rgba(46, 122, 78, 0.5);
}

.page-about__btn-link {
    background-color: var(--deep-green, #0A4B2C);
    color: var(--text-main, #F2FFF6);
    padding: 8px 15px;
    font-size: 0.9em;
    border-color: var(--border, #2E7A4E);
}

.page-about__btn-link:hover {
    background-color: var(--primary-color, #11A84E);
    border-color: var(--primary-color, #11A84E);
}

.page-about__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%; /* Ensure container takes full width */
    max-width: 100%; /* Ensure container takes full width */
    box-sizing: border-box;
    overflow: hidden; /* Prevent overflow */
}

.page-about__cta-buttons--center {
    justify-content: center;
}

/* --- Sections --- */
.page-about__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, body handles header offset */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden; /* Ensure no image overflow */
}

.page-about__hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    margin-bottom: 30px; /* Space between image and text */
    max-width: 100%; /* Ensure image fits container */
    height: auto; /* Maintain aspect ratio */
}

.page-about__hero-content {
    max-width: 900px;
    padding: 0 20px 60px;
    position: relative; /* Ensure content is above any potential background */
    z-index: 2;
}

.page-about__main-title {
    font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size */
    color: var(--text-main, #F2FFF6);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-about__hero-description {
    font-size: 1.2em;
    color: var(--text-secondary, #A7D9B8);
    margin-bottom: 30px;
}

.page-about__mission-vision-section,
.page-about__products-section,
.page-about__csr-section {
    background-color: var(--card-bg, #11271B); /* Custom card background */
    padding: 80px 0;
}

.page-about__dark-section {
    background-color: var(--card-bg, #11271B);
    color: var(--text-main, #F2FFF6);
}

.page-about__mission-vision-section .page-about__content-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

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

.page-about__mission-vision-section .page-about__image-content {
    flex: 1;
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    min-width: 200px; /* Min size for images */
    min-height: 200px; /* Min size for images */
}

.page-about__values-section {
    padding: 80px 0;
}

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

.page-about__card {
    background-color: var(--card-bg, #11271B);
    border: 1px solid var(--border, #2E7A4E);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-main, #F2FFF6);
}

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

.page-about__card-image {
    width: 100%;
    max-width: 400px; /* Card images can be smaller, but still >200px */
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    min-width: 200px; /* Min size for images */
    min-height: 200px; /* Min size for images */
}

.page-about__card-title {
    font-size: 1.5em;
    color: var(--text-main, #F2FFF6);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-about__card-text {
    color: var(--text-secondary, #A7D9B8);
    font-size: 0.95em;
}

.page-about__product-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-about__product-card .page-about__card-title {
    margin-top: 0;
}

.page-about__product-card .page-about__btn-link {
    margin-top: auto; /* Push button to bottom */
}

.page-about__promotions-section {
    padding: 80px 0;
}

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

.page-about__promo-item {
    background-color: var(--card-bg, #11271B);
    border: 1px solid var(--divider, #1E3A2A);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    color: var(--text-main, #F2FFF6);
}

.page-about__promo-title {
    font-size: 1.3em;
    color: var(--text-main, #F2FFF6);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-about__promo-text {
    color: var(--text-secondary, #A7D9B8);
    font-size: 0.9em;
}

.page-about__csr-item {
    background-color: var(--card-bg, #11271B);
    border: 1px solid var(--divider, #1E3A2A);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    color: var(--text-main, #F2FFF6);
}

.page-about__contact-cta-section {
    padding: 80px 0;
    text-align: center;
    background-color: var(--bg-main, #08160F);
}

/* --- Image specific styles (to ensure min size and no filter) --- */
.page-about img {
    filter: none !important; /* Ensure no filter changes image color */
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-about__mission-vision-section .page-about__content-wrapper {
        flex-direction: column;
    }
    .page-about__mission-vision-section .page-about__image-content {
        max-width: 600px;
    }
}

@media (max-width: 768px) {
    .page-about__container {
        padding: 0 15px;
    }

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

    .page-about__section-description {
        font-size: 1em;
        margin-bottom: 40px;
    }

    .page-about__main-title {
        font-size: clamp(1.8em, 6vw, 2.5em);
    }

    .page-about__hero-description {
        font-size: 1em;
    }

    .page-about__hero-section {
        padding-top: 10px !important; /* body already handles --header-offset */
        padding-bottom: 40px;
    }

    .page-about__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-about__btn-primary,
    .page-about__btn-secondary,
    .page-about__btn-link {
        width: 100% !important;
        max-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 img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-about__card-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important; /* Ensure min size is maintained */
        min-height: 200px !important; /* Ensure min size is maintained */
    }

    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__values-grid,
    .page-about__product-grid,
    .page-about__promo-list,
    .page-about__csr-grid {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent content overflow */
    }

    .page-about__mission-vision-section .page-about__image-content {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* Content area images CSS dimensions lower limit */
    .page-about__content-area img,
    .page-about__values-section img,
    .page-about__products-section img,
    .page-about__csr-section img {
      min-width: 200px !important;
      min-height: 200px !important;
      width: auto !important; /* Allow width to adjust based on max-width */
      height: auto !important; /* Allow height to adjust based on max-width */
    }

    .page-about__card-title {
        font-size: 1.3em;
    }

    .page-about__promo-title {
        font-size: 1.1em;
    }
}