/* style/about.css */

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

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

.page-about__section-title {
    font-size: 2.5em;
    color: #26A9E0;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-about__text-block {
    margin-bottom: 20px;
    font-size: 1.1em;
    line-height: 1.8;
    color: #333333;
}

.page-about__content-image {
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    max-width: 100%;
    height: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Adjusted for desktop */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
    background-color: #26A9E0; /* Fallback background */
}

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

.page-about__hero-content {
    position: relative;
    z-index: 2;
    color: #FFFFFF;
    max-width: 800px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4); /* Overlay for readability */
    border-radius: 10px;
}

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

.page-about__hero-description {
    font-size: 1.4em;
    margin-bottom: 30px;
    line-height: 1.5;
}

.page-about__hero-cta {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-sizing: border-box; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-about__btn-primary {
    background-color: #EA7C07; /* Login color for primary CTA */
    color: #FFFFFF;
    border: 2px solid #EA7C07;
}

.page-about__btn-primary:hover {
    background-color: #e06c00;
    border-color: #e06c00;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-about__btn-secondary {
    background-color: transparent;
    color: #FFFFFF; /* White for hero section */
    border: 2px solid #FFFFFF;
}

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

.page-about__cta-group {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Sections with different backgrounds */
.page-about__light-bg {
    background-color: #FFFFFF;
    color: #333333;
    padding: 60px 0;
}

.page-about__dark-bg {
    background-color: #26A9E0;
    color: #FFFFFF;
    padding: 60px 0;
}

.page-about__dark-bg .page-about__section-title {
    color: #FFFFFF;
}

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

.page-about__card {
    background-color: #FFFFFF;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #333333; /* Dark text for light card background */
}

.page-about__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

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

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

/* Why Choose Us Section */
.page-about__feature-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(45%, 1fr)); /* Two columns for desktop */
    gap: 30px;
}

.page-about__feature-item {
    background-color: #F8F8F8;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    color: #333333;
}

.page-about__feature-title {
    font-size: 1.4em;
    color: #26A9E0;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-about__feature-description {
    font-size: 1em;
    line-height: 1.6;
    color: #555555;
}

/* Video Section */
.page-about__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    width: 100%; /* Ensure it takes full width of its container */
    box-sizing: border-box;
}

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

/* Responsibility Section */
.page-about__responsibility-items {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
    justify-content: center;
}

.page-about__responsibility-item {
    flex: 1;
    min-width: 300px;
    background-color: #FFFFFF;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    color: #333333;
}

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

.page-about__item-description a {
    color: #26A9E0;
    text-decoration: none;
    font-weight: bold;
}

.page-about__item-description a:hover {
    text-decoration: underline;
}

/* FAQ Section */
.page-about__faq-list {
    margin-top: 40px;
}

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

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

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

.page-about__faq-title {
    font-size: 1.2em;
    color: #26A9E0;
    margin: 0;
    flex-grow: 1;
}

.page-about__faq-toggle {
    font-size: 1.8em;
    color: #26A9E0;
    margin-left: 15px;
    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;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #F8F8F8;
    color: #555555;
}

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

.page-about__faq-text {
    margin: 0;
    font-size: 1em;
    line-height: 1.6;
}

.page-about__faq-text a {
    color: #26A9E0;
    text-decoration: none;
    font-weight: bold;
}

.page-about__faq-text a:hover {
    text-decoration: underline;
}

/* Contact Section */
.page-about__contact-info {
    margin-top: 30px;
    text-align: center;
}

.page-about__contact-item {
    font-size: 1.2em;
    margin-bottom: 10px;
    color: #333333;
}

.page-about__contact-item a {
    color: #26A9E0;
    text-decoration: none;
    font-weight: bold;
}

.page-about__contact-item a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__hero-title {
        font-size: 2.8em;
    }
    .page-about__hero-description {
        font-size: 1.2em;
    }
    .page-about__section-title {
        font-size: 2em;
    }
    .page-about__commitment-cards {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    .page-about__feature-list {
        grid-template-columns: 1fr; /* Single column for smaller tablets */
    }
}

@media (max-width: 768px) {
    .page-about__hero-section {
        height: 500px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }
    .page-about__hero-content {
        padding: 15px;
    }
    .page-about__hero-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }
    .page-about__hero-description {
        font-size: 1.1em;
        margin-bottom: 25px;
    }
    .page-about__hero-cta {
        flex-direction: column;
        gap: 15px;
    }
    .page-about__btn-primary,
    .page-about__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px !important;
        font-size: 1em !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin: 0 auto; /* Center buttons */
    }
    .page-about__cta-group {
        flex-direction: column;
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-about__container {
        padding: 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__text-block {
        font-size: 1em;
    }
    .page-about__commitment-cards {
        grid-template-columns: 1fr;
    }
    .page-about__card {
        padding: 25px;
    }
    .page-about__card-title {
        font-size: 1.3em;
    }
    .page-about__feature-list {
        gap: 20px;
    }
    .page-about__feature-title {
        font-size: 1.2em;
    }
    .page-about__responsibility-items {
        flex-direction: column;
        gap: 20px;
    }
    .page-about__responsibility-item {
        min-width: unset;
        width: 100%;
    }
    .page-about__item-title {
        font-size: 1.3em;
    }
    .page-about__faq-question {
        padding: 15px 20px;
    }
    .page-about__faq-title {
        font-size: 1.1em;
    }
    .page-about__faq-answer {
        padding: 0 20px;
    }
    .page-about__faq-item.active .page-about__faq-answer {
        padding: 10px 20px;
    }
    .page-about__content-image,
    .page-about__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    .page-about__video-wrapper {
        margin: 30px auto;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px; /* Add padding to prevent overflow */
        padding-right: 15px; /* Add padding to prevent overflow */
        overflow: hidden !important;
    }
    .page-about__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
}

@media (max-width: 480px) {
    .page-about__hero-section {
        height: 400px;
    }
    .page-about__hero-title {
        font-size: 1.8em;
    }
    .page-about__hero-description {
        font-size: 1em;
    }
    .page-about__section-title {
        font-size: 1.6em;
    }
    .page-about__btn-primary,
    .page-about__btn-secondary {
        font-size: 0.9em !important;
        padding: 10px 15px !important;
    }
}

/* Ensure images do not use filters */
.page-about img {
    filter: none;
}