/* style/about.css */

/* Base styles for the About Us page */
.page-about {
    color: #ffffff; /* Light text for dark body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #0d0d0d; /* Ensure consistency with body background */
}

/* Header offset to prevent content being hidden by fixed header */
.page-about__hero-section {
    position: relative;
    width: 100%;
    height: 100vh; /* Full viewport height for hero */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

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

.page-about__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5));
    z-index: 2;
}

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

.page-about__main-title {
    font-size: 3.5em;
    color: #FFD700; /* Gold brand color */
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

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

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

.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;
    box-sizing: border-box; /* Ensure padding doesn't affect total width */
    max-width: 100%; /* For responsive buttons */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-about__btn-primary {
    background-color: #FFD700; /* Gold brand color */
    color: #1E90FF; /* Dark blue text for contrast */
    border: 2px solid #FFD700;
}

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

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

.page-about__btn-secondary:hover {
    background-color: #FFD700;
    color: #1E90FF; /* Dark blue text for contrast */
}

/* General section styling */
.page-about__section {
    padding: 80px 0;
    background-color: #1a1a1a; /* Slightly lighter dark background for sections */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-about__section:nth-child(even) {
    background-color: #0d0d0d; /* Darker background for alternating sections */
}

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

.page-about__heading {
    font-size: 2.8em;
    color: #FFD700; /* Gold brand color */
    text-align: center;
    margin-bottom: 40px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-about__sub-heading {
    font-size: 1.8em;
    color: #FFD700; /* Gold brand color */
    margin-top: 40px;
    margin-bottom: 20px;
    text-align: left;
}

.page-about__text {
    font-size: 1.1em;
    color: #f0f0f0;
    margin-bottom: 20px;
    text-align: justify;
}

.page-about__image-block {
    text-align: center;
    margin: 40px 0;
}

.page-about__image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: block; /* Ensure it behaves as a block element */
    margin: 0 auto;
}

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

.page-about__list-item {
    font-size: 1.1em;
    color: #f0f0f0;
    margin-bottom: 10px;
    position: relative;
    padding-left: 30px;
}

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

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

.page-about__feature-card {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white for card background */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-about__feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-about__card-title {
    font-size: 1.5em;
    color: #FFD700; /* Gold brand color */
    margin-bottom: 15px;
}

.page-about__card-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    min-height: 200px; /* Enforce min image size */
    width: 100%; /* Occupy full card width */
}

.page-about__card-text {
    font-size: 1em;
    color: #e0e0e0;
    text-align: justify;
}

/* 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;
    border-radius: 10px;
    margin: 40px auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    width: 100%;
    box-sizing: border-box;
}

.page-about__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    cursor: pointer; /* Indicate clickable */
}

.page-about__video-caption {
    text-align: center;
    font-size: 0.9em;
    color: #cccccc;
    margin-top: 10px;
}

/* FAQ Section */
.page-about__faq {
    padding-bottom: 80px;
}

.page-about__faq-list {
    margin-top: 40px;
}

.page-about__faq-item {
    background-color: rgba(255, 255, 255, 0.05); /* Card-like background for FAQ item */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #1E90FF; /* Dark blue for question header */
    color: #ffffff;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

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

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

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

.page-about__faq-item.active .page-about__faq-toggle {
    transform: rotate(45deg); /* Rotate for 'x' effect */
}

.page-about__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: rgba(255, 255, 255, 0.03); /* Lighter background for answer */
    color: #e0e0e0;
}

/* Crucial: Ensure FAQ answer expands fully */
.page-about__faq-item.active .page-about__faq-answer {
    max-height: 1000px !important; /* Sufficiently large value */
    padding: 20px 25px;
}

.page-about__faq-answer p {
    margin: 0;
    font-size: 1em;
    color: #e0e0e0;
    text-align: justify;
}

/* Call to action at bottom */
.page-about__cta-bottom {
    text-align: center;
    background-color: #1E90FF; /* Dark blue background */
    padding: 60px 0;
}

.page-about__cta-content {
    max-width: 800px;
}

.page-about__cta-bottom .page-about__heading {
    color: #FFD700; /* Gold text */
    margin-bottom: 20px;
}

.page-about__cta-bottom .page-about__text {
    color: #ffffff;
    margin-bottom: 40px;
    font-size: 1.2em;
}

.page-about__cta-bottom .page-about__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-about__cta-bottom .page-about__btn-primary {
    background-color: #FFD700;
    color: #1E90FF;
    border-color: #FFD700;
}

.page-about__cta-bottom .page-about__btn-primary:hover {
    background-color: #e6c200;
    border-color: #e6c200;
}

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

.page-about__cta-bottom .page-about__btn-secondary:hover {
    background-color: #ffffff;
    color: #1E90FF;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-about__main-title {
        font-size: 2.8em;
    }
    .page-about__heading {
        font-size: 2.2em;
    }
    .page-about__sub-heading {
        font-size: 1.5em;
    }
}

@media (max-width: 768px) {
    .page-about__hero-section {
        height: auto;
        min-height: 60vh;
        padding: 40px 0;
        padding-top: var(--header-offset, 120px) !important; /* Apply header offset for mobile */
    }
    .page-about__main-title {
        font-size: 2em;
    }
    .page-about__hero-description {
        font-size: 1em;
    }
    .page-about__hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    .page-about__btn-primary,
    .page-about__btn-secondary {
        width: 80%; /* Make buttons full width on mobile */
        max-width: 100% !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-about__section {
        padding: 40px 0;
    }
    .page-about__container {
        padding: 0 15px; /* Add padding to prevent content touching edges */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-about__heading {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-about__sub-heading {
        font-size: 1.3em;
    }
    .page-about__text,
    .page-about__list-item,
    .page-about__card-text {
        font-size: 0.95em;
    }
    .page-about__features-grid {
        grid-template-columns: 1fr; /* Stack cards on mobile */
    }
    .page-about__card-image {
        min-height: 200px; /* Enforce min image size */
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .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__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-about__faq-question {
        padding: 15px 20px;
    }
    .page-about__faq-title {
        font-size: 1.1em;
    }
    .page-about__faq-answer {
        padding: 15px 20px;
    }
    .page-about__cta-buttons {
        flex-direction: column;
        gap: 10px;
    }
    .page-about__cta-bottom .page-about__heading {
        font-size: 1.8em;
    }
    .page-about__cta-bottom .page-about__text {
        font-size: 1em;
    }
    /* Ensure all containers with images/videos are handled */
    .page-about__section,
    .page-about__card,
    .page-about__image-block,
    .page-about__video-section,
    .page-about__video-container,
    .page-about__video-wrapper,
    .page-about__cta-buttons,
    .page-about__button-group,
    .page-about__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* Padding for content inside sections if not handled by .page-about__container */
        padding-left: 15px;
        padding-right: 15px;
    }
    /* Override for specific sections to prevent double padding if .page-about__container has it */
    .page-about__section {
        padding-left: 0;
        padding-right: 0;
    }
}

@media (max-width: 480px) {
    .page-about__main-title {
        font-size: 1.8em;
    }
    .page-about__heading {
        font-size: 1.5em;
    }
    .page-about__hero-buttons {
        gap: 10px;
    }
    .page-about__btn-primary,
    .page-about__btn-secondary {
        width: 90%;
    }
}