/* style/about.css */
/* Base styles for the About Us page, ensuring content visibility on a dark body background */
.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #FFF6D6; /* Text Main - ensures contrast on dark body background */
    background-color: #0A0A0A; /* Background - consistent with body */
}

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

/* Hero Section */
.page-about__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px 40px; /* Adjusted padding-top to account for shared header offset */
    background-color: #0A0A0A; /* Background color for the section */
    color: #FFF6D6;
    overflow: hidden; /* Ensure content doesn't spill */
}

.page-about__hero-image-wrapper {
    width: 100%;
    max-width: 100%; /* Ensure it takes full width of its container */
    margin-bottom: 30px; /* Space between image and content */
    display: flex;
    justify-content: center;
}

.page-about__hero-image {
    width: 100%; /* Display width for the image */
    max-width: 1200px; /* Max width to contain the image */
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.page-about__hero-content {
    max-width: 800px;
    margin: 0 auto;
    z-index: 1; /* Ensure text is above any potential background elements */
}

.page-about__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size for H1 */
    font-weight: bold;
    color: #F2C14E; /* Main color */
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.page-about__description {
    font-size: 1.15rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: #FFF6D6;
}

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

/* General Section Styling */
.page-about__section {
    padding: 60px 0;
    margin-bottom: 0; /* Sections should not have external margin, use padding */
}

.page-about__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: #F2C14E; /* Main color */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-about__text-block {
    font-size: 1.05rem;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #FFF6D6; /* Text Main */
}

.page-about__image {
    display: block;
    width: 100%;
    max-width: 900px;
    height: auto;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    object-fit: cover;
}

/* Specific Section Backgrounds */
.page-about__dark-bg {
    background-color: #0A0A0A; /* Background */
    color: #FFF6D6; /* Text Main */
}

.page-about__light-bg {
    background-color: #111111; /* Card BG */
    color: #FFF6D6; /* Text Main */
}

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

.page-about__value-card {
    background-color: #111111; /* Card BG */
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid #3A2A12; /* Border */
    color: #FFF6D6; /* Text Main */
}

.page-about__card-title {
    font-size: 1.5rem;
    color: #FFD36B; /* Glow */
    margin-bottom: 15px;
}

.page-about__card-text {
    font-size: 1rem;
    color: #FFF6D6;
}

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary,
.page-about__btn-link {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Ensure long words break */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    max-width: 100%; /* Ensure button does not overflow container */
}

.page-about__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
    color: #111111; /* Dark text for contrast on bright button */
    border: none;
    box-shadow: 0 4px 10px rgba(242, 193, 78, 0.4);
}

.page-about__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(242, 193, 78, 0.6);
}

.page-about__btn-secondary {
    background-color: transparent;
    color: #F2C14E; /* Main color */
    border: 2px solid #F2C14E; /* Main color border */
}

.page-about__btn-secondary:hover {
    background-color: #F2C14E; /* Main color */
    color: #111111; /* Dark text for contrast */
    transform: translateY(-2px);
}

.page-about__btn-link {
    display: block; /* Make link a block for better click area in FAQ */
    margin-top: 15px;
    background-color: #FFD36B; /* Glow color for link button */
    color: #111111;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 0.95rem;
    text-decoration: none;
    width: fit-content; /* Adjust width to content */
    margin-left: auto;
    margin-right: auto;
}

.page-about__btn-link:hover {
    background-color: #F2C14E;
}


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

.page-about__faq-item {
    background-color: #111111; /* Card BG */
    border: 1px solid #3A2A12; /* Border */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #FFF6D6; /* Text Main */
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #111111; /* Card BG */
    font-size: 1.15rem;
    font-weight: bold;
    color: #F2C14E; /* Main color for questions */
    transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
    background-color: rgba(242, 193, 78, 0.1); /* Subtle hover effect */
}

.page-about__faq-question h3 {
    margin: 0;
    color: inherit; /* Inherit color from parent */
    flex-grow: 1;
}

.page-about__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 20px;
    transition: transform 0.3s ease;
    color: #FFD36B; /* Glow color for toggle */
}

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

.page-about__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    font-size: 1rem;
    color: #FFF6D6; /* Text Main */
}

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

.page-about__faq-answer p {
    margin-bottom: 10px;
    color: #FFF6D6; /* Text Main */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__hero-section {
        padding: 60px 20px 30px;
    }
    .page-about__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }
    .page-about__description {
        font-size: 1.05rem;
    }
    .page-about__section {
        padding: 40px 0;
    }
    .page-about__section-title {
        font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    }
    .page-about__text-block {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .page-about {
        font-size: 16px;
        line-height: 1.6;
    }

    /* Fixed header spacing for first content section */
    .page-about__hero-section {
        padding-top: 10px !important; /* Small top padding, body handles --header-offset */
        padding-bottom: 20px;
    }

    .page-about__hero-content {
        padding: 0 15px;
    }

    .page-about__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }
    .page-about__description {
        font-size: 0.95rem;
    }

    .page-about__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }

    .page-about__btn-primary,
    .page-about__btn-secondary,
    .page-about__btn-link {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-about__section,
    .page-about__faq-section {
        padding: 30px 0;
    }
    .page-about__container {
        padding: 0 15px; /* Add horizontal padding to container */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-about__image,
    .page-about__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
        /* No extra padding here as container already handles it */
    }

    .page-about__values-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-about__faq-question {
        padding: 15px 20px;
        font-size: 1rem;
    }
    .page-about__faq-answer {
        padding: 0 20px;
    }
    .page-about__faq-item.active .page-about__faq-answer {
        padding: 10px 20px 20px;
    }
}

/* Color Contrast Safeguards */
/* Ensure text on light-bg cards is dark for sufficient contrast */
.page-about__value-card.page-about__light-bg .page-about__card-title,
.page-about__value-card.page-about__light-bg .page-about__card-text {
    color: #FFF6D6; /* On #111111 background, #FFF6D6 is good. */
}

/* Ensure button text has good contrast */
.page-about__btn-primary {
    color: #111111; /* Dark text on gradient button */
}
.page-about__btn-secondary {
    color: #F2C14E; /* Main color on transparent, will change to #111111 on hover */
}
.page-about__btn-secondary:hover {
    color: #111111; /* Dark text on main color background */
}
.page-about__btn-link {
    color: #111111; /* Dark text on glow button */
}