/* style/about.css */

:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #ffffff;
    --bg-dark: #26A9E0;
    --login-color: #EA7C07;
    --border-color: #e0e0e0;
}

.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

.page-about__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 40px;
    background-color: var(--bg-dark);
    color: var(--text-light);
    text-align: center;
}

.page-about__hero-image-wrap {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.page-about__hero-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 675px;
}

.page-about__hero-content {
    padding: 30px 20px;
    max-width: 900px;
    background-color: var(--bg-light);
    color: var(--text-dark);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-top: -80px; /* Overlap slightly for visual effect */
    position: relative;
    z-index: 1;
}

.page-about__main-title {
    font-size: clamp(2em, 4vw, 2.8em);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--primary-color);
}

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

.page-about__hero-cta-buttons,
.page-about__final-cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-about__btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: 2px solid var(--primary-color);
}

.page-about__btn-primary:hover {
    background-color: darken(var(--primary-color), 10%);
    border-color: darken(var(--primary-color), 10%);
}

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

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

.page-about__section {
    padding: 40px 0;
    margin-bottom: 20px;
}

.page-about__dark-section {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.page-about__dark-section .page-about__section-title,
.page-about__dark-section .page-about__sub-title {
    color: var(--text-light);
}

.page-about__article-wrap {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-about__section-title {
    font-size: clamp(1.8em, 3.5vw, 2.5em);
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.page-about__sub-title {
    font-size: clamp(1.4em, 2.5vw, 1.8em);
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-about p {
    margin-bottom: 15px;
    font-size: 1.05em;
}

.page-about__list,
.page-about__why-choose-list {
    list-style: disc inside;
    margin-left: 20px;
    margin-bottom: 20px;
}

.page-about__list li,
.page-about__why-choose-list li {
    margin-bottom: 10px;
}

.page-about__promo-box {
    background-color: #f0f8ff; /* Light blue background */
    border: 1px solid var(--primary-color);
    border-left: 5px solid var(--primary-color);
    padding: 25px;
    margin-top: 30px;
    margin-bottom: 30px;
    border-radius: 8px;
    text-align: center;
    color: var(--text-dark);
}

.page-about__promo-box p {
    font-size: 1.1em;
    margin-bottom: 20px;
}

.page-about__figure {
    margin: 30px 0;
    text-align: center;
}

.page-about__img-fluid {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.page-about__figcaption {
    font-style: italic;
    font-size: 0.9em;
    color: #666;
    margin-top: 10px;
}

.page-about__cta-bottom {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 20px;
}

.page-about__why-choose-list {
    list-style: none;
    padding: 0;
    text-align: left;
}

.page-about__why-choose-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.page-about__why-choose-list li::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* Mobile Responsive Styles */
@media (max-width: 1024px) {
    .page-about__hero-content {
        margin-top: -60px;
    }
}

@media (max-width: 768px) {
    /* 1. Top section (hero) and CTA */
    .page-about__hero-section {
        padding-top: 10px !important; /* Small top padding, body handles header offset */
        padding-bottom: 20px;
    }

    .page-about__hero-content {
        margin-top: -40px; /* Adjust overlap for smaller screens */
        padding: 20px 15px;
        border-radius: 0;
    }

    .page-about__main-title {
        font-size: clamp(1.8em, 7vw, 2.2em);
        margin-bottom: 15px;
    }

    .page-about__description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-about__hero-cta-buttons,
    .page-about__final-cta-buttons {
        flex-direction: column;
        gap: 10px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-about__btn-primary,
    .page-about__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 10px 15px;
        font-size: 0.95em;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* 2. Single-column text container */
    .page-about__section {
        padding: 30px 0;
        margin-bottom: 10px;
    }

    .page-about__article-wrap {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-about__section-title {
        font-size: clamp(1.5em, 6vw, 2em);
        margin-bottom: 20px;
    }

    .page-about__sub-title {
        font-size: clamp(1.2em, 5vw, 1.5em);
        margin-top: 25px;
        margin-bottom: 10px;
    }

    .page-about p,
    .page-about__list li,
    .page-about__why-choose-list li {
        font-size: 0.95em;
    }

    .page-about__promo-box {
        padding: 20px 15px;
        margin-top: 25px;
        margin-bottom: 25px;
    }

    /* 3. Generic images and figure */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
    
    .page-about__figure {
        margin: 20px 0;
    }

    .page-about__figcaption {
        font-size: 0.85em;
    }

    /* 4. Buttons and button containers (already covered above for hero/final CTAs) */
    .page-about__cta-bottom {
        margin-top: 30px;
    }

    /* 5. Registration tutorial and FAQ blocks (Not explicitly in outline, but including generic text/list adaptation) */
    .page-about__list,
    .page-about__why-choose-list {
        margin-left: 0;
        padding-left: 20px;
    }

    .page-about__why-choose-list li {
        padding-left: 25px;
    }
    .page-about__why-choose-list li::before {
        left: 0;
    }
}