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

/* Header offset for main content if shared.css doesn't handle body padding */
.page-about__hero-section {
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

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

.page-about__section-title {
    font-size: 2.5em;
    color: #017439; /* Brand color for titles */
    text-align: center;
    margin-bottom: 40px;
    padding-top: 40px;
}

.page-about__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
}

/* Hero Section */
.page-about__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, #017439, #005a2e); /* Gradient using brand color */
    color: #FFFFFF;
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
}

.page-about__hero-content {
    max-width: 800px;
    z-index: 1;
    margin-bottom: 40px;
}

.page-about__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-about__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
}

.page-about__hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box; /* Ensure padding is included in width */
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-about__btn-primary {
    background-color: #C30808; /* Custom color for register/login */
    color: #FFFF00; /* Custom font color for register/login */
    border: 2px solid #C30808;
}

.page-about__btn-primary:hover {
    background-color: #e02a2a;
    border-color: #e02a2a;
}

.page-about__btn-secondary {
    background-color: #FFFFFF;
    color: #017439; /* Brand color */
    border: 2px solid #FFFFFF;
}

.page-about__btn-secondary:hover {
    background-color: #f0f0f0;
    border-color: #f0f0f0;
}

.page-about__hero-image-wrapper {
    margin-top: 40px;
    max-width: 100%;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-about__hero-image {
    display: block;
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

/* Advantages Section */
.page-about__advantages-section {
    padding: 80px 20px;
    background-color: #017439; /* Dark background */
    color: #FFFFFF; /* Light text for dark background */
}

.page-about__advantages-section .page-about__section-title {
    color: #FFFFFF; /* Ensure title is white on dark background */
}

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

.page-about__advantage-card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #FFFFFF;
}

.page-about__advantage-card:hover {
    transform: translateY(-10px);
}

.page-about__card-image {
    width: 100%; /* Occupy full width of card */
    max-width: 300px; /* Max width for image within card */
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
}

.page-about__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #FFFF00; /* Yellow for highlight on dark background */
}

.page-about__card-text {
    font-size: 1em;
    flex-grow: 1; /* Allow text to take available space */
}

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

/* Milestones Section */
.page-about__milestones-section {
    padding: 80px 20px;
    background-color: #FFFFFF;
    color: #333333;
}

.page-about__video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    margin: 40px auto;
    max-width: 800px; /* Max width for video */
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-about__video-link {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.page-about__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.page-about__video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    transition: background-color 0.3s ease;
}

.page-about__video-link:hover .page-about__video-overlay {
    background-color: rgba(0, 0, 0, 0.5);
}

.page-about__video-play-icon {
    font-size: 3em;
    color: #FFFFFF;
    border: 2px solid #FFFFFF;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.4);
}

.page-about__milestones-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-about__milestone-item {
    background-color: #f9f9f9;
    border-left: 5px solid #017439;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-about__milestone-title {
    color: #017439;
    font-size: 1.3em;
    margin-bottom: 10px;
}

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

/* Team Section */
.page-about__team-section {
    padding: 80px 20px;
    background-color: #017439;
    color: #FFFFFF;
}

.page-about__team-section .page-about__section-title {
    color: #FFFFFF;
}

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

.page-about__team-member-card {
    background-color: rgba(255, 255, 255, 0.1); 
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #FFFFFF;
}

.page-about__team-member-image {
    width: 200px; /* Min size 200x200 */
    height: 200px; /* Min size 200x200 */
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 4px solid #FFFF00; /* Highlight with custom yellow */
}

.page-about__team-member-name {
    font-size: 1.6em;
    margin-bottom: 5px;
    color: #FFFF00;
}

.page-about__team-member-role {
    font-size: 1.1em;
    color: #f0f0f0;
    margin-bottom: 15px;
}

.page-about__team-member-description {
    font-size: 0.95em;
}

/* Commitment Section */
.page-about__commitment-section {
    padding: 80px 20px;
    background-color: #FFFFFF;
    color: #333333;
}

.page-about__content-image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Future Section */
.page-about__future-section {
    padding: 80px 20px;
    background-color: #017439;
    color: #FFFFFF;
}

.page-about__future-section .page-about__section-title {
    color: #FFFFFF;
}

/* FAQ Section */
.page-about__faq-section {
    padding: 80px 20px;
    background-color: #f5f5f5; /* Light grey background */
    color: #333333;
}

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

.page-about__faq-item {
    background-color: #FFFFFF;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #FFFFFF;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
    background-color: #f0f0f0;
}

.page-about__faq-question h3 {
    margin: 0;
    font-size: 1.2em;
    color: #017439;
}

.page-about__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #017439;
    transition: transform 0.3s ease;
}

.page-about__faq-item.active .page-about__faq-toggle {
    transform: rotate(45deg);
}

.page-about__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px; /* Initial padding */
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-about__faq-item.active .page-about__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px 25px 20px; /* Padding when active */
}

.page-about__faq-answer p {
    margin: 0;
    font-size: 1em;
    color: #555555;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .page-about__hero-title {
        font-size: 3em;
    }
    .page-about__hero-description {
        font-size: 1.2em;
    }
    .page-about__section-title {
        font-size: 2em;
    }
}

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

    .page-about__hero-section {
        flex-direction: column;
        padding: 40px 15px;
    }

    .page-about__hero-title {
        font-size: 2.2em;
    }

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

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

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

    .page-about__container,
    .page-about__advantages-section,
    .page-about__milestones-section,
    .page-about__team-section,
    .page-about__commitment-section,
    .page-about__future-section,
    .page-about__faq-section {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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

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

    .page-about__advantage-card,
    .page-about__team-member-card {
        padding: 20px;
    }

    /* Images responsiveness */
    .page-about img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* 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,
    .page-about__video-container,
    .page-about__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    /* Fixed header offset for video section on mobile */
    .page-about__video-wrapper { /* Apply to the wrapper that holds the video */
        padding-top: var(--header-offset, 120px) !important; /* Ensure video is not hidden by header */
    }
}