/* style/about.css */

/* Base Styles for the About 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;
}

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

.page-about__section-title--white {
    color: #ffffff; /* White color for titles on dark backgrounds */
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
    padding-bottom: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: #0a0a0a; /* Ensure dark background for this section */
    color: #ffffff;
}

.page-about__hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

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

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

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

.page-about__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.page-about__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2; /* Subtle background image */
    display: block;
}

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text breaking */
    box-sizing: border-box; /* Include padding and border in element's total width and height */
    max-width: 100%; /* Ensure button doesn't exceed container */
}

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

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

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

.page-about__btn-secondary:hover {
    background-color: #ffffff;
    color: #017439;
}

.page-about__btn-primary--large,
.page-about__btn-secondary--large {
    padding: 18px 35px;
    font-size: 1.1em;
}

/* Introduction Section */
.page-about__introduction-section {
    padding: 80px 0;
    background-color: #ffffff; /* Light background */
    color: #333333; /* Dark text for light background */
}

.page-about__content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.page-about__text-block {
    font-size: 1.1em;
}

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

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

.page-about__image-content {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: block; /* Ensures no extra space below image */
}

/* Vision & Mission Section */
.page-about__vision-mission-section {
    padding: 80px 0;
    background-color: #017439; /* Brand dark green background */
    color: #ffffff;
}

.page-about__vision-mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.page-about__vision-mission-item {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark green */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.page-about__vision-mission-heading {
    font-size: 1.8em;
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-about__vision-mission-item p {
    margin-bottom: 20px;
}

.page-about__vision-mission-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

/* Core Values Section */
.page-about__core-values-section {
    padding: 80px 0;
    background-color: #ffffff;
    color: #333333;
}

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

.page-about__value-card {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.page-about__value-card:hover {
    transform: translateY(-5px);
}

.page-about__value-icon {
    width: 100%; /* Ensure image fills card width responsively */
    height: auto;
    max-height: 200px; /* Limit height to prevent overly large images */
    object-fit: contain; /* Ensure entire image is visible */
    margin-bottom: 20px;
    display: block; /* Remove extra space below image */
    margin-left: auto;
    margin-right: auto;
}

.page-about__value-title {
    font-size: 1.5em;
    color: #017439;
    margin-bottom: 15px;
    font-weight: bold;
}

/* Security & Fairness Section */
.page-about__security-fairness-section {
    padding: 80px 0;
    background-color: #0a0a0a; /* Dark background from body */
    color: #ffffff;
}

.page-about__content-grid--reverse {
    grid-template-columns: 1fr 1fr; /* Default order */
}

.page-about__text-block--white {
    color: #ffffff;
}

.page-about__video-section {
    margin-top: 60px;
    text-align: center;
}

.page-about__video-title {
    font-size: 2em;
    margin-bottom: 30px;
    color: #ffffff;
}

.page-about__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    width: 100%; /* Ensure container takes full width */
    box-sizing: border-box;
}

.page-about__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block; /* Remove extra space below video */
    cursor: pointer; /* Indicate video is clickable */
}

/* Team Section */
.page-about__team-section {
    padding: 80px 0;
    background-color: #ffffff;
    color: #333333;
}

.page-about__team-description,
.page-about__team-closing-statement {
    text-align: center;
    font-size: 1.1em;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-about__team-member-card {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.page-about__team-member-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px auto;
    border: 4px solid #017439;
    display: block;
}

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

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

.page-about__team-member-bio {
    font-size: 0.95em;
    color: #666666;
}

/* Achievements Section */
.page-about__achievements-section {
    padding: 80px 0;
    background-color: #017439; /* Brand dark green background */
    color: #ffffff;
}

.page-about__achievements-intro {
    text-align: center;
    font-size: 1.1em;
    margin-bottom: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-about__achievement-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.page-about__achievement-image {
    width: 100%; /* Responsive width */
    height: auto;
    max-height: 180px; /* Limit height */
    object-fit: contain;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

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

.page-about__achievement-description {
    font-size: 0.95em;
    color: #f0f0f0;
}

/* FAQ Section */
.page-about__faq-section {
    padding: 80px 0;
    background-color: #ffffff;
    color: #333333;
}

.page-about__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-about__faq-item {
    background-color: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    overflow: hidden; /* Important for max-height transition */
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background-color: #e8e8e8;
    color: #333333;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
}

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

.page-about__faq-question h3 {
    margin: 0;
    font-size: 1em; /* Adjust to fit parent font size */
    color: #333333;
}

.page-about__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

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

.page-about__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px; /* Initial padding for collapsed state */
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #f0f0f0;
}

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

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