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

.page-about {
    font-family: 'Arial', sans-serif;
    background-color: var(--background-color, #08160F); /* Fallback if shared.css not loaded */
    color: var(--text-main, #F2FFF6); /* Main text color */
    line-height: 1.6;
}

/* Base typography */
.page-about h1,
.page-about h2,
.page-about h3,
.page-about h4,
.page-about h5,
.page-about h6 {
    color: var(--text-main, #F2FFF6);
    margin-bottom: 1em;
    line-height: 1.2;
}

.page-about__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Using clamp for h1 font-size */
    font-weight: 700;
    text-align: center;
    color: var(--gold, #F2C14E); /* Gold for main title */
    margin-bottom: 20px;
}

.page-about__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 600;
    text-align: center;
    margin-top: 40px;
    margin-bottom: 30px;
    color: var(--text-main, #F2FFF6);
}

.page-about__description,
.page-about__text-block,
.page-about__section-description,
.page-about__text-secondary {
    color: var(--text-secondary, #A7D9B8); /* Secondary text color */
    text-align: center;
    margin-bottom: 20px;
}

.page-about__text-block {
    text-align: left;
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 20px 60px; /* Small top padding, more bottom padding */
    background-color: var(--deep-green, #0A4B2C); /* Use deep green for hero background */
    overflow: hidden;
}

.page-about__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    margin-bottom: 20px; /* Space between image and content */
}

.page-about__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 10px;
}

.page-about__hero-content {
    max-width: 900px;
    text-align: center;
    z-index: 1; /* Ensure content is above any background elements */
    padding: 0 15px;
}

/* Video Section */
.page-about__video-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding for video section */
    background-color: var(--background-color, #08160F);
}

.page-about__video-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
    text-align: center;
}

.page-about__video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    margin-top: 30px;
    margin-bottom: 30px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.page-about__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block; /* Ensures it behaves like a block element */
    cursor: pointer;
}

.page-about__video-link {
    display: block; /* Make the whole video area clickable */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2; /* Ensure link is above video controls if needed */
}

/* Content Sections */
.page-about__content-section {
    background-color: var(--background-color, #08160F);
    padding: 40px 0;
}

.page-about__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px; /* Horizontal padding for content */
    box-sizing: border-box;
}

.page-about__image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    /* No filter to change color */
}

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

/* Buttons */
.page-about__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-align: center;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow word breaking */
    box-sizing: border-box;
    max-width: 100%; /* Ensure button doesn't overflow */
}

.page-about__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: var(--text-main, #F2FFF6);
    border: 2px solid transparent;
    margin-top: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-about__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

.page-about__btn-secondary {
    background: var(--card-bg, #11271B);
    color: var(--gold, #F2C14E);
    border: 2px solid var(--border, #2E7A4E);
    margin-top: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-about__btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    background: var(--deep-green, #0A4B2C);
}

.page-about__video-cta {
    margin-top: 20px;
    margin-bottom: 20px;
}

.page-about__contact-cta {
    display: block; /* Ensure it takes full width in mobile */
    margin-left: auto;
    margin-right: auto;
}

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

.page-about__faq-item {
    background-color: var(--card-bg, #11271B);
    border: 1px solid var(--border, #2E7A4E);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-main, #F2FFF6);
    background-color: var(--deep-green, #0A4B2C);
    border-bottom: 1px solid var(--divider, #1E3A2A);
    list-style: none; /* For details/summary */
}

.page-about__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for Chrome/Safari */
}

.page-about__faq-question::marker {
    display: none; /* Hide default marker for Firefox */
}

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

.page-about__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
    color: var(--gold, #F2C14E);
}

.page-about__faq-answer {
    padding: 0 25px 15px;
    color: var(--text-secondary, #A7D9B8);
    font-size: 0.95rem;
    text-align: left;
    /* For details tag, we control padding directly */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__hero-content {
        padding: 0 30px;
    }
}

@media (max-width: 768px) {
    .page-about {
        font-size: 16px;
        line-height: 1.6;
    }

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

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

    /* Mobile image responsiveness */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-about__hero-image-wrapper,
    .page-about__video-container,
    .page-about__video-wrapper,
    .page-about__content-area,
    .page-about__faq-list,
    .page-about__cta-buttons,
    .page-about__button-group,
    .page-about__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }

    /* Mobile video responsiveness */
    .page-about video,
    .page-about__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-about__video-section {
        padding-top: 10px !important; /* Small top padding for video section */
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Mobile button responsiveness */
    .page-about__cta-button,
    .page-about__btn-primary,
    .page-about__btn-secondary,
    .page-about a[class*="button"],
    .page-about a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px; /* Add padding to button content itself */
        padding-right: 15px;
        margin-left: 0;
        margin-right: 0;
    }

    .page-about__hero-section,
    .page-about__video-section,
    .page-about__content-section {
        padding-left: 0;
        padding-right: 0;
    }

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

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

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