/* style/about.css */

/* Base styles for the About page content */
.page-about {
    font-family: 'Arial', sans-serif;
    color: #ffffff; /* Light text for dark body background */
    line-height: 1.6;
    background-color: transparent; /* Body background is handled by shared.css */
    padding-top: var(--header-offset, 120px); /* Fixed header offset for desktop */
}

.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: #1A1A1A; /* Auxiliary dark background */
}

.page-about__section-title {
    font-size: 2.8em;
    color: #FFD700; /* Gold for titles */
    margin-bottom: 20px;
    font-weight: bold;
    text-transform: uppercase;
}

.page-about__section-description {
    font-size: 1.1em;
    color: #f0f0f0;
    max-width: 800px;
    margin: 0 auto 40px;
}

/* Hero Section */
.page-about__hero-section {
    background-color: #121212; /* Dark background for hero */
    padding: 80px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
    min-height: 600px;
}

.page-about__hero-section .page-about__container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.page-about__hero-content {
    flex: 1;
    min-width: 300px;
    max-width: 55%;
}

.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: #f0f0f0;
    margin-bottom: 30px;
}

.page-about__hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.page-about__hero-image {
    flex: 1;
    min-width: 300px;
    max-width: 40%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-about__hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    display: block; /* Ensure it behaves as a block element for max-width */
}

/* General Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

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

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

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

/* Content Grid for introduction and team culture sections */
.page-about__content-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
}

.page-about__content-grid:nth-child(even) {
    flex-direction: row-reverse; /* Alternate image/text layout */
}

.page-about__text-block {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

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

.page-about__image-block {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

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

.page-about__feature-card {
    background-color: #1A1A1A;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
    color: #f0f0f0;
}

.page-about__feature-card:hover {
    transform: translateY(-10px);
}

.page-about__feature-card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 20px;
    display: block; /* For max-width */
}

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

/* Responsibility Section */
.page-about__responsibility .page-about__content-wrapper {
    max-width: 900px;
    margin: 40px auto 0;
    text-align: left;
}

/* FAQ Section */
.page-about__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

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

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

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

.page-about__faq-question h3 {
    margin: 0;
    color: #FFD700; /* Ensure title color is gold */
}

.page-about__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #FFD700;
    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;
    color: #f0f0f0;
}

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

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

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

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


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

@media (max-width: 768px) {
    .page-about {
        font-size: 16px;
        line-height: 1.6;
        padding-top: 0; /* Handled by hero section on mobile */
    }
    .page-about__container {
        padding: 0 15px;
    }

    /* Hero section adjustments */
    .page-about__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Fixed header offset for mobile */
        padding-bottom: 60px;
    }
    .page-about__hero-section .page-about__container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    .page-about__hero-content,
    .page-about__hero-image {
        max-width: 100%;
    }
    .page-about__hero-title {
        font-size: 2.5em;
        line-height: 1.3;
    }
    .page-about__hero-description {
        font-size: 1em;
    }
    .page-about__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-about__btn-primary,
    .page-about__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
    }

    /* Content grid adjustments */
    .page-about__content-grid {
        flex-direction: column;
        gap: 30px;
    }
    .page-about__content-grid:nth-child(even) {
        flex-direction: column; /* Reset order for mobile */
    }
    .page-about__text-block,
    .page-about__image-block {
        text-align: center;
        width: 100%;
    }

    /* Features grid adjustments */
    .page-about__features-grid {
        grid-template-columns: 1fr;
    }

    /* FAQ adjustments */
    .page-about__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-about__faq-answer {
        padding: 0 20px;
    }
    .page-about__faq-item.active .page-about__faq-answer {
        padding: 10px 20px;
    }

    /* CTA buttons adjustments */
    .page-about__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
}

/* Global image responsiveness (for all images within page-about) */
.page-about img {
    max-width: 100%;
    height: auto;
    display: block; /* Ensures max-width works correctly */
}

/* Mobile image and container adaptation */
@media (max-width: 768px) {
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__hero-section,
    .page-about__introduction,
    .page-about__features,
    .page-about__responsibility,
    .page-about__team-culture,
    .page-about__faq,
    .page-about__cta {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Ensure no overflow */
    }
    
    /* Specific padding for sections that might have it removed by container padding */
    .page-about__hero-section,
    .page-about__section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    /* Re-add padding to the container inside sections */
    .page-about__section .page-about__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* Buttons within sections */
    .page-about__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important; /* Allow buttons to wrap */
        gap: 10px; /* Space between wrapped buttons */
    }
    .page-about__cta-buttons .page-about__btn-primary,
    .page-about__cta-buttons .page-about__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* Ensure content area images also adhere to minimum size */
.page-about__text-block img,
.page-about__image-block img,
.page-about__feature-card img {
  min-width: 200px;
  min-height: 200px;
}