/* style/about.css */

/* General Page Styling */
.page-about {
    font-family: 'Arial', sans-serif;
    color: #F2FFF6; /* Text Main */
    background-color: #08160F; /* Background */
    line-height: 1.6;
}

/* Sections */
.page-about__section {
    padding: 60px 20px;
    position: relative;
    z-index: 1; /* Ensure content is above any potential background elements */
}

.page-about__hero-section {
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    color: #F2FFF6;
    background-color: #0A4B2C; /* Deep Green as a solid background */
    padding-top: 10px; /* Small top margin for first section, body handles header offset */
}

.page-about__hero-image {
    width: 100%;
    max-width: 1200px; /* Constrain image width */
    height: auto;
    object-fit: cover;
    display: block;
    margin-bottom: 20px; /* Space between image and content */
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    min-width: 200px;
    min-height: 200px;
}

.page-about__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 40px; /* Space after hero content */
}

.page-about__main-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #F2C14E; /* Gold */
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-about__hero-description {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Containers */
.page-about__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    gap: 40px;
    align-items: center;
}

.page-about__container--reverse {
    flex-direction: row-reverse;
}

/* Headings */
.page-about__heading {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #F2C14E; /* Gold */
    margin-bottom: 30px;
    text-align: center;
    line-height: 1.3;
}

.page-about__text {
    font-size: 1rem;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 20px;
}

/* Content Blocks */
.page-about__content-block {
    flex: 1;
    min-width: 0; /* Allow flex item to shrink */
}

/* Image Blocks */
.page-about__image-block {
    flex: 1;
    min-width: 0; /* Allow flex item to shrink */
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-about__image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    display: block;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

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

.page-about__card {
    background-color: #11271B; /* Card BG */
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 200px; /* Ensure cards have some height */
    color: #F2FFF6; /* Text Main */
}

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

.page-about__card-title {
    font-size: 1.3rem;
    color: #F2C14E; /* Gold */
    margin-bottom: 15px;
    font-weight: 600;
}

.page-about__card-text {
    font-size: 0.95rem;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 15px;
}

.page-about__link {
    color: #2AD16F; /* Brighter green for links */
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    margin-top: auto; /* Push link to bottom of card */
}

.page-about__link:hover {
    color: #57E38D; /* Glow */
    text-decoration: underline;
}

/* Product Grid (Specific for products section) */
.page-about__product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

/* Lists */
.page-about__list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.page-about__list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    color: #A7D9B8; /* Text Secondary */
}

.page-about__list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #2AD16F; /* Brighter green checkmark */
    font-weight: bold;
}

.page-about__list-strong {
    color: #F2FFF6; /* Text Main */
}

.page-about__list--inline {
    display: flex;
    flex-wrap: wrap;
    gap: 15px 30px;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-about__list--inline li {
    padding-left: 0;
    margin-bottom: 0;
    text-align: center;
    flex-basis: auto;
}

.page-about__list--inline li::before {
    content: none;
}

/* Buttons */
.page-about__cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
    justify-content: center;
}

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

.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-about__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
    color: #F2FFF6; /* Text Main */
    box-shadow: 0 4px 10px rgba(42, 209, 111, 0.4);
}

.page-about__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    box-shadow: 0 6px 15px rgba(42, 209, 111, 0.6);
    transform: translateY(-2px);
}

.page-about__btn-secondary {
    background-color: transparent;
    color: #2AD16F; /* Brighter green */
    border: 2px solid #2AD16F;
}

.page-about__btn-secondary:hover {
    background-color: #2AD16F;
    color: #08160F; /* Background */
    box-shadow: 0 4px 10px rgba(42, 209, 111, 0.4);
    transform: translateY(-2px);
}

/* FAQ Section */
.page-about__faq {
    background-color: #0A4B2C; /* Deep Green */
    padding-top: 60px;
    padding-bottom: 60px;
}

.page-about__faq-list {
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__faq-item {
    background-color: #11271B; /* Card BG */
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    color: #F2FFF6;
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #F2C14E; /* Gold */
    cursor: pointer;
    background-color: #11271B; /* Card BG */
    border-bottom: 1px solid #1E3A2A; /* Divider */
    user-select: none;
    list-style: none; /* For details/summary */
    -webkit-details-marker: none; /* For details/summary */
    transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
    background-color: #1E3A2A; /* Slightly darker on hover */
}

.page-about__faq-item[open] .page-about__faq-question {
    border-bottom: 1px solid #2E7A4E; /* Border */
}

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

.page-about__faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2AD16F; /* Brighter green */
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-about__faq-item[open] .page-about__faq-toggle {
    transform: rotate(45deg); /* Change + to X or - */
}

.page-about__faq-answer {
    padding: 15px 25px 20px;
    font-size: 0.95rem;
    color: #A7D9B8; /* Text Secondary */
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-about__container {
        flex-direction: column;
        text-align: center;
    }

    .page-about__container--reverse {
        flex-direction: column; /* Keep column for reverse on mobile */
    }

    .page-about__image-block {
        order: -1; /* Move image above text on smaller screens */
        margin-bottom: 30px;
    }

    .page-about__main-title {
        font-size: clamp(2rem, 6vw, 3rem);
    }

    .page-about__heading {
        font-size: clamp(1.6rem, 5vw, 2.2rem);
    }

    .page-about__hero-content {
        padding: 40px 20px;
    }
}

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

    .page-about__hero-content {
        padding: 20px 15px;
    }

    .page-about__cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .page-about__btn-primary,
    .page-about__btn-secondary {
        max-width: 100% !important;
        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__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }

    /* Images responsiveness */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-about__hero-section,
    .page-about__container,
    .page-about__card-group,
    .page-about__product-grid,
    .page-about__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Ensure no overflow */
    }

    /* Video responsiveness (if any, though not explicitly in HTML for now) */
    .page-about video,
    .page-about__video {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    .page-about__video-section,
    .page-about__video-container,
    .page-about__video-wrapper {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      overflow: hidden !important;
    }
    .page-about__video-section {
        padding-top: 10px !important; /* body handles --header-offset */
    }
}

@media (max-width: 480px) {
    .page-about__main-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }

    .page-about__heading {
        font-size: clamp(1.4rem, 6vw, 2rem);
    }

    .page-about__card-group,
    .page-about__product-grid {
        grid-template-columns: 1fr; /* Single column for cards */
    }

    .page-about__faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }

    .page-about__faq-answer {
        padding: 10px 20px 15px;
    }
}

/* Ensure content area images are never too small */
.page-about__content-block img,
.page-about__image {
    min-width: 200px;
    min-height: 200px;
}

/* Color Contrast Enforcement (as per instructions) */
/* Assuming body background is dark (#08160F), so text should be light */
.page-about {
  color: #F2FFF6; /* Text Main */
}

.page-about p,
.page-about li {
  color: #A7D9B8; /* Text Secondary */
}

.page-about__card {
  background: #11271B; /* Card BG */
  color: #F2FFF6; /* Text Main */
}

.page-about__dark-section {
  background: #0A4B2C; /* Deep Green */
  color: #F2FFF6; /* Text Main */
}

.page-about__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6;
}

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

.page-about__btn-secondary:hover {
  background-color: #2AD16F;
  color: #08160F; /* Background */
}

/* Specific for FAQ background */
.page-about__faq {
    background-color: #0A4B2C; /* Deep Green */
}
.page-about__faq-item {
    background-color: #11271B; /* Card BG */
}
.page-about__faq-question {
    color: #F2C14E; /* Gold */
    background-color: #11271B; /* Card BG */
}
.page-about__faq-toggle {
    color: #2AD16F; /* Brighter green */
}
.page-about__faq-answer {
    color: #A7D9B8; /* Text Secondary */
}

/* Ensure no filter property is used */
.page-about img {
    filter: none;
}