/* style/about.css */
:root {
    --primary-color: #2F6BFF;
    --secondary-color: #6FA3FF;
    --button-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    --card-bg: #FFFFFF;
    --background-light: #F4F7FB;
    --text-main: #1F2D3D;
    --text-dark: #000000;
    --border-color: #D6E2FF;
    --glow-color: #A5C4FF;
}

.page-about {
    font-family: Arial, sans-serif;
    color: var(--text-main);
    background-color: var(--background-light); /* Default light background */
}

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

.page-about__article-wrap {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    line-height: 1.7;
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
    padding-top: 10px; /* Small top padding, not var(--header-offset) */
}

.page-about__hero-image-wrapper {
    width: 100%;
    height: 500px;
    overflow: hidden;
    position: relative;
}

.page-about__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-about__hero-content-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.7));
    color: #ffffff;
}

.page-about__main-title {
    font-size: 3.2em;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #ffffff;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

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

.page-about__btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    transition: all 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-about__btn--primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: 2px solid transparent;
}

.page-about__btn--primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.page-about__btn--secondary {
    background: #ffffff;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-about__btn--secondary:hover {
    background: var(--primary-color);
    color: #ffffff;
}

.page-about__btn--small {
    padding: 10px 20px;
    font-size: 0.95em;
    border-radius: 6px;
    margin-top: 15px;
}

/* General Section Styling */
.page-about__section {
    padding: 60px 0;
    margin-bottom: 20px;
    background-color: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-about__dark-section {
    background-color: var(--primary-color);
    color: #ffffff;
}

.page-about__dark-section .page-about__section-title,
.page-about__dark-section .page-about__subsection-title,
.page-about__dark-section .page-about__list li {
    color: #ffffff;
}

.page-about__section-title {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--text-main);
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.3;
}

.page-about__subsection-title {
    font-size: 1.8em;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 35px;
    margin-bottom: 15px;
}

.page-about p {
    font-size: 1.1em;
    margin-bottom: 15px;
    color: var(--text-main);
}

.page-about__dark-section p {
    color: #f0f0f0;
}

.page-about__list {
    list-style: disc;
    margin-left: 25px;
    margin-bottom: 20px;
    font-size: 1.1em;
    color: var(--text-main);
}

.page-about__dark-section .page-about__list {
    color: #f0f0f0;
}

.page-about__list li {
    margin-bottom: 8px;
}

.page-about__image-figure {
    margin: 30px auto;
    text-align: center;
    max-width: 680px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.page-about__content-image {
    max-width: 100%;
    height: auto;
    display: block;
}

.page-about__image-caption {
    font-size: 0.9em;
    color: #666666;
    padding: 10px 0;
    background-color: #f9f9f9;
}

.page-about__dark-section .page-about__image-caption {
    background-color: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
}

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

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

.page-about__faq-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.page-about__faq-question {
    font-size: 1.2em;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    margin-bottom: 10px;
}

.page-about__faq-answer {
    font-size: 1.05em;
    color: var(--text-main);
    line-height: 1.6;
    margin-bottom: 0;
}

.page-about__cta-buttons--bottom {
    margin-top: 40px;
}

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

    .page-about__description {
        font-size: 1.1em;
    }

    .page-about__section-title {
        font-size: 2em;
    }

    .page-about__subsection-title {
        font-size: 1.6em;
    }
}

@media (max-width: 768px) {
    /* 1. Top Section Title + Dual CTA */
    .page-about__hero-section {
        padding-top: 10px !important; /* Ensure small top padding */
        margin-bottom: 30px;
    }

    .page-about__hero-image-wrapper {
        height: 300px;
    }

    .page-about__main-title {
        font-size: 2em !important;
        margin-bottom: 15px;
        padding: 0 10px;
    }

    .page-about__description {
        font-size: 1em !important;
        margin-bottom: 20px;
        padding: 0 10px;
    }

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

    .page-about__btn,
    .page-about__btn--primary,
    .page-about__btn--secondary,
    .page-about a[class*="button"],
    .page-about a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* 2. Single Column Long Text Container */
    .page-about__section {
        padding: 40px 0;
        margin-bottom: 15px;
    }

    .page-about__container,
    .page-about__article-wrap,
    .page-about__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .page-about__section-title {
        font-size: 1.8em !important;
        margin-bottom: 30px;
    }

    .page-about__subsection-title {
        font-size: 1.4em !important;
        margin-top: 25px;
        margin-bottom: 10px;
    }

    .page-about p,
    .page-about__list li,
    .page-about__faq-answer {
        font-size: 1em !important;
        line-height: 1.5;
    }

    /* 3. Generic Images and Figures */
    .page-about img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-about__image-figure {
        margin: 20px auto;
        max-width: 100%;
        box-shadow: none;
    }

    .page-about__image-caption {
        font-size: 0.85em;
        padding: 8px 15px;
    }

    /* 4. Buttons and Button Containers */
    .page-about__cta-buttons--bottom {
        margin-top: 30px;
        flex-direction: column;
        gap: 10px;
    }

    /* Ensure small buttons are also responsive */
    .page-about__btn--small {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 10px 15px !important;
        margin-top: 10px;
    }

    /* 5. FAQ Block (as h3/p) - no specific tutorial or FAQ accordion JS */
    .page-about__faq-section {
        padding-bottom: 40px;
    }

    .page-about__faq-question {
        font-size: 1.1em !important;
        margin-bottom: 8px;
    }
}