/* style/about.css */

/* Base styles for the About Us page */
.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
}

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

/* Hero Section */
.page-about__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px; /* Minimum height for hero */
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure content is below header */
    color: #ffffff; /* Text color for hero section */
}

.page-about__video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.page-about__video-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.page-about__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5); /* Darken video for text readability */
}

.page-about__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 40px 20px;
    background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent background for text */
    border-radius: 10px;
}

.page-about__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-about__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

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

/* General button styles */
.page-about__btn-primary,
.page-about__btn-secondary,
.page-about__btn-download,
.page-about__btn-register {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-align: center;
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    max-width: 100%; /* Ensure buttons don't overflow */
}

.page-about__btn-primary {
    background-color: #017439; /* Primary brand color */
    color: #ffffff;
    border: 2px solid #017439;
}

.page-about__btn-primary:hover {
    background-color: #005f2c;
    transform: translateY(-2px);
}

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

.page-about__btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Specific button colors for Register/Login */
.page-about__btn-download,
.page-about__btn-register {
    background-color: #C30808; /* Specific color for register/login */
    color: #CCCC00; /* Adjusted font color for WCAG AA contrast (4.5:1 with #C30808) */
    border: 2px solid #C30808;
}

.page-about__btn-download:hover,
.page-about__btn-register:hover {
    background-color: #a10707;
    transform: translateY(-2px);
}

/* Section styles */
.page-about__section {
    padding: 80px 0;
    text-align: center;
}

.page-about__dark-bg {
    background-color: #1a1a1a; /* Dark background from body */
    color: #ffffff;
}

.page-about__light-bg {
    background-color: #ffffff;
    color: #333333;
}

.page-about__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: inherit; /* Inherit color from section background */
}

.page-about__section-description {
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: inherit;
}

/* Mission & Vision Grid */
.page-about__mission-vision .page-about__grid-two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.page-about__card {
    background-color: #f8f8f8; /* Light background for cards in light section */
    color: #333333; /* Dark text for cards */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.page-about__card-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Min size for images */
    min-height: 200px; /* Min size for images */
}

.page-about__card-title {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #017439; /* Brand color for card titles */
}

.page-about__card-text {
    font-size: 1em;
    color: #555555;
}

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

.page-about__value-item {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark background */
    padding: 30px;
    border-radius: 10px;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-about__value-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #ffffff;
}

.page-about__value-text {
    font-size: 0.95em;
    color: #e0e0e0;
}

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

.page-about__feature-card {
    background-color: #f8f8f8;
    color: #333333;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.page-about__feature-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Min size for images */
    min-height: 200px; /* Min size for images */
}

.page-about__feature-title {
    font-size: 1.6em;
    margin-bottom: 15px;
    color: #017439;
}

.page-about__feature-text {
    font-size: 1em;
    color: #555555;
}

.page-about__cta-bottom {
    margin-top: 60px;
}

/* Social Responsibility */
.page-about__responsibility-list {
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 40px auto 0 auto;
    text-align: left;
}

.page-about__responsibility-list li {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 8px;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    color: #e0e0e0;
}

.page-about__responsibility-list li::before {
    content: "✅";
    margin-right: 10px;
    font-size: 1.2em;
}

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

.page-about__team-member {
    background-color: #f8f8f8;
    color: #333333;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.page-about__team-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 4px solid #017439;
    min-width: 200px; /* Min size for images */
    min-height: 200px; /* Min size for images */
}

.page-about__member-name {
    font-size: 1.8em;
    margin-bottom: 10px;
    color: #017439;
}

.page-about__member-role {
    font-size: 1em;
    color: #555555;
}

/* Contact CTA Section */
.page-about__contact-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.page-about__contact-text {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

.page-about__contact-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* FAQ Section */
.page-about__faq-list {
    max-width: 800px;
    margin: 40px auto 0 auto;
    text-align: left;
}

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

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    color: #017439; /* Brand color for questions */
    list-style: none; /* Hide default marker for details summary */
}

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

.page-about__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: #017439;
}

.page-about__faq-answer {
    padding: 0 20px 20px 20px;
    font-size: 1em;
    color: #555555;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__hero-title {
        font-size: 3em;
    }
    .page-about__section-title {
        font-size: 2em;
    }
    .page-about__mission-vision .page-about__grid-two-cols {
        grid-template-columns: 1fr;
    }
    .page-about__contact-flex {
        flex-direction: column;
        text-align: center;
    }
    .page-about__contact-text {
        text-align: center;
    }
    .page-about__contact-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .page-about {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-about__hero-section {
        min-height: 500px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure content is below header on mobile */
    }
    .page-about__hero-title {
        font-size: 2.2em;
    }
    .page-about__hero-description {
        font-size: 1em;
    }
    .page-about__section {
        padding: 60px 0;
    }
    .page-about__section-title {
        font-size: 1.8em;
    }
    .page-about__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-about__btn-primary,
    .page-about__btn-secondary,
    .page-about__btn-download,
    .page-about__btn-register {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-about__card,
    .page-about__feature-card,
    .page-about__value-item,
    .page-about__team-member,
    .page-about__faq-item {
        padding: 20px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    /* Mobile image responsiveness */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Mobile video responsiveness */
    .page-about video,
    .page-about__video {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    
    /* Video container mobile adaptation */
    .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__section,
    .page-about__card,
    .page-about__container,
    .page-about__hero-content,
    .page-about__cta-buttons,
    .page-about__button-group,
    .page-about__btn-container,
    .page-about__contact-flex,
    .page-about__contact-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden; /* Prevent horizontal scroll */
    }
    .page-about__contact-buttons {
        flex-direction: column;
        gap: 10px;
    }
    .page-about__team-image,
    .page-about__card-image,
    .page-about__feature-image {
        width: 100% !important; /* Make images responsive in mobile */
        height: auto !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }
}

/* Ensure all content area images are at least 200px */
.page-about img {
    min-width: 200px;
    min-height: 200px;
}
/* No CSS filter on images */
.page-about img {
    filter: none;
}