/* style/about.css */

/* Custom properties for colors from the prompt */
:root {
    --primary-color: #11A84E; /* Main color */
    --secondary-color: #22C768; /* Auxiliary color */
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
    --card-bg: #11271B; /* Card Background */
    --body-bg: #08160F; /* Background */
    --text-main: #F2FFF6; /* Text Main */
    --text-secondary: #A7D9B8; /* Text Secondary */
    --border-color: #2E7A4E; /* Border */
    --glow-color: #57E38D; /* Glow */
    --gold-color: #F2C14E; /* Gold */
    --divider-color: #1E3A2A; /* Divider */
    --deep-green: #0A4B2C; /* Deep Green */
}

/* Page-specific styles */
.page-about {
    background-color: var(--body-bg); /* Ensure main content area respects body background */
    color: var(--text-main); /* Default text color for the page */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-bottom: 60px; /* Add some padding to the bottom */
}

/* Fixed header spacing - handled by shared.css body padding-top */
/* First section padding-top should be small, not var(--header-offset) */
.page-about__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding as per requirement */
    background: var(--deep-green); /* Or a gradient related to brand colors */
    color: var(--text-main);
    text-align: center;
}

.page-about__hero-section .page-about__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1200px;
    width: 100%; /* Ensure width: 100% for desktop flex container */
    margin: 0 auto;
}

.page-about__hero-image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 0 20px rgba(87, 227, 141, 0.5); /* Glow effect */
}

.page-about__hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.page-about__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Using clamp for responsive H1 font-size */
    color: var(--gold-color); /* Gold color for main title */
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 0.05em;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.4);
}

.page-about__description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box; /* Ensure padding is included in width */
    max-width: 100%; /* For mobile responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-about__btn-primary {
    background: var(--button-gradient);
    color: var(--text-main);
    border: 2px solid transparent;
    box-shadow: 0 5px 15px rgba(42, 209, 111, 0.3);
}

.page-about__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(42, 209, 111, 0.5);
}

.page-about__btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 2px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(17, 168, 78, 0.2);
}

.page-about__btn-secondary:hover {
    background: var(--primary-color);
    color: var(--text-main);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(17, 168, 78, 0.4);
}

.page-about__section {
    padding: 60px 20px;
    text-align: center;
    color: var(--text-main); /* Default for sections */
}

.page-about__dark-section {
    background-color: var(--deep-green); /* Use deep green for dark sections */
    color: var(--text-main);
}

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

.page-about__section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--gold-color);
    margin-bottom: 40px;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(87, 227, 141, 0.3);
}

.page-about__content-grid {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
    text-align: left;
}

.page-about__content-grid--reverse {
    flex-direction: row-reverse;
}

.page-about__text-block {
    flex: 1;
    color: var(--text-secondary);
}

.page-about__text-block p {
    margin-bottom: 15px;
}

.page-about__text-block strong {
    color: var(--text-main);
}

.page-about__image-block {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-about__image-block img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    min-width: 200px; /* Minimum size for content images */
    min-height: 200px; /* Minimum size for content images */
}

.page-about__sub-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: bold;
}

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

.page-about__card {
    background-color: var(--card-bg); /* Card BG color */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-secondary);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 15px var(--glow-color);
}

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

.page-about__feature-list {
    list-style: none;
    padding: 0;
    text-align: left;
}

.page-about__feature-list li {
    margin-bottom: 25px;
    position: relative;
    padding-left: 35px;
    color: var(--text-secondary);
}

.page-about__feature-list li::before {
    content: '✅'; /* Vietnamese checkmark */
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.page-about__list-title {
    font-size: 1.3rem;
    color: var(--text-main);
    margin-bottom: 5px;
    font-weight: bold;
}

.page-about__contact-list {
    list-style: none;
    padding: 0;
    text-align: left;
    max-width: 700px;
    margin: 40px auto;
}

.page-about__contact-list li {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.page-about__contact-item-title {
    color: var(--text-main);
}

.page-about__link {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-about__link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* FAQ Section Specific Styles */
.page-about__faq-list {
    margin-top: 40px;
    text-align: left;
}

.page-about__faq-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-main);
    cursor: pointer;
    background-color: var(--card-bg);
    position: relative;
    list-style: none; /* Remove default marker for summary */
}

.page-about__faq-question::-webkit-details-marker {
    display: none;
}

.page-about__faq-qtext {
    flex-grow: 1;
    color: var(--text-main);
}

.page-about__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    margin-left: 15px;
    color: var(--primary-color);
}

.page-about__faq-answer {
    padding: 0 25px 20px;
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.page-about__faq-answer p {
    margin-bottom: 15px;
}

.page-about__faq-answer .page-about__btn-faq {
    margin-right: 10px;
    margin-top: 10px;
    padding: 10px 20px;
    font-size: 0.95rem;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-about__content-grid {
        flex-direction: column;
    }
    .page-about__content-grid--reverse {
        flex-direction: column;
    }
    .page-about__image-block {
        order: -1; /* Image first on smaller screens for reversed grid */
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .page-about__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* Ensure small top padding */
    }

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

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

    .page-about__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%; /* Ensure button container is full width */
        max-width: 100%;
        box-sizing: border-box;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-about__btn-primary,
    .page-about__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1rem;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-about__section {
        padding: 40px 15px;
    }

    .page-about__section-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        margin-bottom: 30px;
    }

    .page-about__sub-title {
        font-size: clamp(1.3rem, 5vw, 1.8rem);
    }

    .page-about__values-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-about__card {
        padding: 25px;
    }

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

    .page-about__feature-list li {
        padding-left: 30px;
        font-size: 0.95rem;
    }

    .page-about__list-title {
        font-size: 1.1rem;
    }

    .page-about__contact-list {
        margin: 30px auto;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-about__contact-list li {
        font-size: 1rem;
    }

    .page-about__faq-question {
        font-size: 1.1rem;
        padding: 18px 20px;
    }

    .page-about__faq-answer {
        font-size: 0.95rem;
        padding: 0 20px 18px;
    }

    /* Mobile image and video responsiveness */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: unset; /* Allow images to shrink on mobile */
        min-height: unset;
    }
    
    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__image-block,
    .page-about__text-block {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      /* No padding-left/right here, let the container handle it */
    }
    
    /* Re-apply padding to internal containers to prevent content touching edges */
    .page-about__hero-section .page-about__container,
    .page-about__section .page-about__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    /* Specific override for sections that wrap content */
    .page-about__section:not(.page-about__hero-section) {
        padding-left: 0 !important; /* Reset section padding if its container handles it */
        padding-right: 0 !important;
    }
}