/* style/about.css */

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

/* Sections */
.page-about__section {
    padding: 60px 20px;
    text-align: center;
}

.page-about__dark-section {
    background-color: #017439; /* Brand primary color */
    color: #ffffff; /* White text for dark background */
}

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

.page-about__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px; /* Added padding for smaller screens */
    box-sizing: border-box;
}

.page-about__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #017439;
}

.page-about__section-title--light {
    color: #ffffff;
}

.page-about__section-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__section-description--light {
    color: #f0f0f0;
}

/* Hero Section */
.page-about__hero-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-color: #017439; /* Fallback background */
    color: #ffffff;
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
    padding-bottom: 60px;
    min-height: 500px;
}

.page-about__hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    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: 40px;
    color: #f0f0f0;
}

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

.page-about__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Subtle overlay for text readability */
}

/* 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: all 0.3s ease;
    cursor: pointer;
    font-size: 1.1em;
    text-align: center;
    box-sizing: border-box; /* Ensure padding doesn't increase width */
}

.page-about__btn-primary {
    background-color: #C30808; /* Custom color for Register/Login */
    color: #FFFF00; /* Custom font color for Register/Login */
    border: 2px solid #C30808;
    margin: 0 10px;
}

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

.page-about__btn-secondary {
    background-color: #ffffff;
    color: #017439;
    border: 2px solid #017439;
    margin: 0 10px;
}

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

.page-about__btn-video-cta {
    margin-top: 30px;
}

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

.page-about__grid--values {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

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

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

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

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

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

/* List Styles */
.page-about__list {
    list-style: none;
    padding: 0;
    max-width: 900px;
    margin: 30px auto;
    text-align: left;
}

.page-about__list li {
    background-color: #f9f9f9;
    margin-bottom: 15px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    font-size: 1.05em;
    line-height: 1.8;
    color: #333333;
}

.page-about__list--light li {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-about__list li strong {
    color: #017439;
}

.page-about__list--light li strong {
    color: #FFFF00; /* Yellow for highlights on dark background */
}

/* Value Items */
.page-about__value-item {
    text-align: center;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.page-about__value-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
}

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

.page-about__value-description {
    color: #555555;
}

/* Video Section */
.page-about__video-section {
    padding: 60px 20px;
    background-color: #017439; /* Dark background for video */
    color: #ffffff;
    position: relative;
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
}

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

.page-about__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
    display: block; /* Ensure it behaves as a block element */
}

/* FAQ Section */
.page-about__faq-section {
    background-color: #f5f5f5; /* Light background for FAQ */
    padding: 60px 20px;
    text-align: left;
}

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

.page-about__faq-item {
    background-color: #ffffff;
    margin-bottom: 15px;
    border-radius: 8px;
    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;
    font-size: 1.2em;
    font-weight: bold;
    color: #017439;
    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: normal;
    transition: transform 0.3s ease;
    color: #017439;
}

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

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