/* style/about.css */
/* body đã padding-top: var(--header-offset) */

.page-about {
    font-family: 'Arial', sans-serif;
    color: #333333; /* Default text color for light body background */
    line-height: 1.6;
    background-color: #f8f9fa; /* Ensure consistency with body background */
}

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

.page-about__container--center {
    text-align: center;
}

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

.page-about__section-title {
    font-size: clamp(1.8rem, 2.5vw, 2.8rem); /* Use clamp for H1/H2 */
    font-weight: 700;
    color: #11A84E; /* Brand primary color for titles */
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.2;
}

.page-about__sub-title {
    font-size: clamp(1.4rem, 2vw, 2.2rem);
    font-weight: 600;
    color: #22C768; /* Brand auxiliary color for subtitles */
    margin-top: 30px;
    margin-bottom: 20px;
}

.page-about__text {
    font-size: 1rem;
    margin-bottom: 15px;
    color: #333333;
}

.page-about__list {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
    color: #333333;
}

.page-about__list li {
    margin-bottom: 10px;
    font-size: 1rem;
}

.page-about__list--core-values {
    list-style: none;
    padding-left: 0;
}

.page-about__list--core-values li {
    position: relative;
    padding-left: 25px;
}

.page-about__list--core-values li::before {
    content: '✅'; /* Using an emoji as a bullet point */
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1em;
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, body handles header offset */
    margin-bottom: 20px;
    display: flex;
    flex-direction: column; /* Ensure image is above content */
    align-items: center;
}

.page-about__hero-image-wrapper {
    width: 100%;
    overflow: hidden;
    max-height: 600px; /* Limit hero image height */
}

.page-about__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.7); /* Slightly darken image for text contrast */
}

.page-about__hero-content {
    width: 100%;
    max-width: 100%;
    padding: 40px 20px;
    text-align: center;
    box-sizing: border-box;
    background: linear-gradient(180deg, rgba(17, 168, 78, 0.8), rgba(34, 199, 104, 0.8)); /* Overlay with brand colors */
    color: #F2FFF6; /* Main text color for dark backgrounds */
    margin-top: -100px; /* Overlap with image for visual effect */
    position: relative;
    z-index: 1;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.page-about__hero-content .page-about__main-title {
    color: #F2FFF6;
    margin-bottom: 20px;
}

.page-about__hero-content .page-about__description {
    color: #A7D9B8; /* Secondary text color for dark backgrounds */
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.page-about__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.page-about__btn-primary,
.page-about__btn-secondary,
.page-about__btn-link {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    text-align: center;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
}

.page-about__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-about__btn-secondary {
    background: #ffffff;
    color: #11A84E;
    border: 2px solid #11A84E;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-about__btn-secondary:hover {
    background: #f0f0f0;
    color: #0A4B2C;
    border-color: #0A4B2C;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-about__btn-link {
    color: #11A84E;
    border: 1px solid #11A84E;
    padding: 10px 20px;
    background-color: transparent;
    border-radius: 5px;
    font-weight: 600;
    margin-top: 10px;
}

.page-about__btn-link:hover {
    background-color: #11A84E;
    color: #ffffff;
}

.page-about__btn-link--small {
    font-size: 0.9rem;
    padding: 8px 15px;
}


/* Dark Background Sections */
.page-about__dark-section,
.page-about__dark-bg {
    background-color: #08160F; /* Background color from custom palette */
    color: #F2FFF6; /* Main text color for dark backgrounds */
}

.page-about__dark-section .page-about__section-title,
.page-about__dark-bg .page-about__section-title {
    color: #F2FFF6;
}

.page-about__dark-section .page-about__text,
.page-about__dark-bg .page-about__text {
    color: #A7D9B8; /* Secondary text color for dark backgrounds */
}

.page-about__dark-section .page-about__sub-title,
.page-about__dark-bg .page-about__sub-title {
    color: #57E38D; /* Glow color for sub-titles on dark background */
}

.page-about__dark-section .page-about__list,
.page-about__dark-bg .page-about__list {
    color: #A7D9B8;
}
.page-about__dark-section .page-about__list strong,
.page-about__dark-bg .page-about__list strong {
    color: #F2FFF6;
}

/* Card Styling */
.page-about__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-about__card {
    background-color: #11271B; /* Card BG from custom palette */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #F2FFF6; /* Text Main for dark card background */
    border: 1px solid #2E7A4E; /* Border color */
}

.page-about__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block; /* Ensure no extra space below image */
}

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

.page-about__card-text {
    font-size: 0.95rem;
    color: #A7D9B8; /* Text Secondary for card text */
}

/* Product Categories */
.page-about__product-category {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid #e0e0e0;
}

.page-about__category-title {
    font-size: clamp(1.2rem, 1.8vw, 2rem);
    font-weight: 700;
    color: #11A84E;
    margin-bottom: 15px;
}

/* Commitment Section */
.page-about__commitment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-about__commitment-item {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid #e0e0e0;
}

.page-about__commitment-item .page-about__item-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #11A84E;
    margin-bottom: 15px;
}

.page-about__commitment-item .page-about__item-text {
    font-size: 0.95rem;
    color: #333333;
}

/* FAQ Section */
.page-about__faq-section {
    background-color: #08160F; /* Dark background */
    color: #F2FFF6; /* Light text */
}

.page-about__faq-section .page-about__section-title {
    color: #F2FFF6;
}

.page-about__faq-list {
    margin-top: 40px;
}

.page-about__faq-item {
    background-color: #11271B; /* Card BG for FAQ items */
    border: 1px solid #2E7A4E; /* Border color */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #F2FFF6;
}

.page-about__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    color: #F2C14E; /* Gold for FAQ question */
    outline: none;
    list-style: none; /* Hide default marker */
}

.page-about__faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

.page-about__faq-item summary:hover {
    background-color: rgba(46, 122, 78, 0.2); /* Slightly lighter hover on dark bg */
}

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

.page-about__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
    color: #57E38D; /* Glow color for toggle */
}

.page-about__faq-answer {
    padding: 0 20px 20px;
    font-size: 1rem;
    color: #A7D9B8; /* Secondary text color */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.page-about__faq-item[open] .page-about__faq-answer {
    max-height: 1000px; /* Arbitrary large value for smooth transition */
    transition: max-height 0.5s ease-in;
}

/* CTA Final Section */
.page-about__cta-final {
    text-align: center;
    padding: 80px 0;
    background-color: #0A4B2C; /* Deep Green for strong CTA */
}

.page-about__cta-final .page-about__section-title {
    color: #F2FFF6;
    margin-bottom: 25px;
}

.page-about__cta-final .page-about__text {
    color: #A7D9B8;
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
}

.page-about__btn-primary--large {
    padding: 16px 40px;
    font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__hero-content {
        margin-top: -80px;
    }
    .page-about__card-image {
        height: 180px;
    }
}

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

    .page-about__section-title {
        margin-bottom: 30px;
    }

    .page-about__hero-content {
        margin-top: -60px;
        padding: 30px 15px;
    }

    .page-about__hero-content .page-about__main-title {
        font-size: clamp(1.5rem, 6vw, 2.2rem);
    }

    .page-about__hero-content .page-about__description {
        font-size: 1rem;
    }

    .page-about__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-about__btn-primary,
    .page-about__btn-secondary,
    .page-about__btn-link {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-about__card {
        padding: 25px;
    }

    .page-about__card-image {
        height: 160px;
    }

    .page-about__grid,
    .page-about__commitment-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-about__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Images and videos responsive */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-about video,
    .page-about__video {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    
    .page-about__hero-image-wrapper,
    .page-about__video-section,
    .page-about__video-container,
    .page-about__video-wrapper {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      overflow: hidden !important;
      padding-left: 15px;
      padding-right: 15px;
    }

    .page-about__faq-item summary {
        font-size: 1rem;
        padding: 15px;
    }
    .page-about__faq-answer {
        padding: 0 15px 15px;
    }
    .page-about__faq-toggle {
        font-size: 1.2rem;
    }
    
    .page-about__hero-section {
        padding-top: 10px !important; /* body already handles header-offset */
    }
}

@media (max-width: 480px) {
    .page-about__hero-content {
        margin-top: -40px;
    }
    .page-about__hero-content .page-about__main-title {
        font-size: clamp(1.3rem, 7vw, 1.8rem);
    }
    .page-about__hero-content .page-about__description {
        font-size: 0.9rem;
    }
    .page-about__card-image {
        height: 140px;
    }
    .page-about__card-title {
        font-size: 1.1rem;
    }
}