/* style/about.css */

/* --- Base Styles --- */
.page-about {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Assuming shared.css sets body background to #1A202C */
}

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

.page-about__section {
    padding: 60px 0;
    text-align: center;
}

.page-about__section:nth-of-type(odd) {
    background-color: #1A202C; /* Dark section */
    color: #ffffff;
}

.page-about__section:nth-of-type(even) {
    background-color: #f8f9fa; /* Light section */
    color: #333333;
}

.page-about__dark-section {
    background-color: #1A202C;
    color: #ffffff;
}

.page-about__heading {
    font-size: 2.5em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #FFD700; /* Accent color for headings */
}

.page-about__heading--white {
    color: #ffffff;
}

.page-about__sub-heading {
    font-size: 1.8em;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: bold;
    color: #FFD700; /* Accent color for sub-headings */
}

.page-about__paragraph {
    font-size: 1.1em;
    margin-bottom: 15px;
    color: inherit; /* Inherit from parent section */
}

.page-about__paragraph--white {
    color: #ffffff;
}

.page-about__list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.page-about__list-item {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    color: inherit;
}

.page-about__list-item::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #FFD700;
    font-weight: bold;
}

.page-about__link {
    color: #FFD700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-about__link:hover {
    color: #e0b800;
}

/* --- Buttons --- */
.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    margin: 10px;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-about__btn-primary {
    background-color: #FFD700;
    color: #1A202C;
    border: 2px solid #FFD700;
}

.page-about__btn-primary:hover {
    background-color: #e0b800;
    border-color: #e0b800;
    color: #1A202C;
}

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

.page-about__btn-secondary:hover {
    background-color: #FFD700;
    color: #1A202C;
}

.page-about__cta-center {
    margin-top: 40px;
}

/* --- Hero Section --- */
.page-about__hero-section {
    position: relative;
    width: 100%;
    height: 70vh; /* Adjust as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Apply header offset here */
}

.page-about__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    filter: brightness(0.6); /* Darken image for text readability */
}

.page-about__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay */
    z-index: -1;
}

.page-about__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 20px;
}

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

.page-about__hero-description {
    font-size: 1.3em;
    color: #ffffff;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__hero-cta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- Image Text Block --- */
.page-about__image-text-block {
    display: flex;
    align-items: center;
    gap: 40px;
    margin: 40px 0;
    text-align: left;
}

.page-about__image-text-block--reverse {
    flex-direction: row-reverse;
}

.page-about__image-left,
.page-about__image-right {
    flex: 1;
    min-width: 300px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: block; /* Ensure it behaves as a block element for max-width */
    height: auto; /* Maintain aspect ratio */
}

.page-about__text-content {
    flex: 1;
    min-width: 300px;
    color: #333333; /* For light sections */
}

.page-about__introduction .page-about__text-content {
    color: #333333; /* Override for this section */
}

.page-about__technology-security .page-about__text-content {
    color: #333333; /* Override for this section */
}

.page-about__social-responsibility .page-about__text-content {
    color: #333333; /* Override for this section */
}


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

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

/* --- Cards --- */
.page-about__card {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
    color: #333333;
}

.page-about__card-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: #1A202C;
}

.page-about__card-title a {
    color: #1A202C;
    text-decoration: none;
}

.page-about__card-title a:hover {
    color: #FFD700;
}

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

.page-about__card--team {
    background-color: #333a4a; /* Darker card for dark section */
    color: #ffffff;
    padding: 20px;
}

.page-about__card--team .page-about__card-title,
.page-about__card--team .page-about__card-description {
    color: #ffffff;
}

.page-about__card--team .page-about__card-title a {
    color: #FFD700;
}

.page-about__card--team .page-about__card-title a:hover {
    color: #e0b800;
}

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

.page-about__feature-card {
    background-color: #333a4a;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    color: #ffffff;
}

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

.page-about__feature-description {
    font-size: 1em;
    color: #f0f0f0;
}

/* --- FAQ Section --- */
.page-about__faq {
    text-align: left;
}

.page-about__faq-list {
    margin-top: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

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

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

.page-about__faq-title {
    font-size: 1.2em;
    margin: 0;
    color: #1A202C;
}

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

.page-about__faq-item.active .page-about__faq-toggle {
    transform: rotate(45deg); /* Change + to X or - */
    color: #1A202C;
}

.page-about__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    text-align: left;
    color: #555555;
}

.page-about__faq-item.active .page-about__faq-answer {
    max-height: 1000px !important; /* Ensure enough height for content */
    padding: 15px 25px;
}

.page-about__faq-answer .page-about__paragraph {
    margin-bottom: 0;
    color: #555555;
}

/* --- Final CTA Section --- */
.page-about__cta-final {
    padding: 80px 0;
    background-color: #1A202C; /* Dark background */
    color: #ffffff;
}

.page-about__cta-final .page-about__heading {
    color: #FFD700;
}

.page-about__cta-final .page-about__paragraph {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 30px;
    color: #ffffff;
}

.page-about__cta-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

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

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

    .page-about__heading {
        font-size: 2em;
    }

    .page-about__sub-heading {
        font-size: 1.5em;
    }

    .page-about__image-text-block {
        flex-direction: column;
        text-align: center;
    }

    .page-about__image-text-block--reverse {
        flex-direction: column; /* Keep consistent on smaller screens */
    }

    .page-about__image-left,
    .page-about__image-right {
        max-width: 100%;
        margin-bottom: 20px;
    }

    .page-about__text-content {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .page-about__hero-section {
        height: 60vh;
        padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
    }

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

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

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

    .page-about__container {
        padding: 0 15px; /* Add padding for mobile content */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .page-about__heading {
        font-size: 1.8em;
    }

    .page-about__sub-heading {
        font-size: 1.3em;
    }

    .page-about__paragraph {
        font-size: 1em;
    }

    .page-about__grid-3-cols,
    .page-about__grid-2-cols {
        grid-template-columns: 1fr;
    }

    .page-about__card,
    .page-about__feature-card {
        padding: 20px;
    }

    /* --- Mobile Image Responsiveness --- */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Ensure image containers are also responsive */
    .page-about__image-text-block,
    .page-about__card-image-container, /* if any */
    .page-about__card--team {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* --- Mobile Video Responsiveness --- */
    .page-about video,
    .page-about__video { /* Assuming if there was a video, it would have this class */
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    
    .page-about__video-section, /* If there was a 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;
    }

    /* --- Mobile Button Responsiveness --- */
    .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;
        margin: 10px 0 !important; /* Stack buttons vertically */
    }
    
    .page-about__hero-cta,
    .page-about__cta-buttons {
        flex-direction: column;
        align-items: center;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px;
        overflow: hidden !important;
    }

    /* FAQ specific mobile adjustments */
    .page-about__faq-question {
        padding: 15px 20px;
    }
    .page-about__faq-answer {
        padding: 0 20px;
    }
    .page-about__faq-item.active .page-about__faq-answer {
        padding: 15px 20px;
    }
}

/* Ensure content area images are never smaller than 200px display size */
.page-about__section img {
    min-width: 200px;
    min-height: 200px;
}
/* Override card image height for mobile if needed to prevent squishing small images, but keep min-size */
@media (max-width: 768px) {
    .page-about__card-image {
        height: auto !important; /* Let height adjust to maintain aspect ratio */
        min-height: 200px !important; /* But still ensure minimum size */
    }
}