/* style/about.css */

:root {
    --primary-color: #FF8C1A;
    --secondary-color: #FFA53A;
    --bg-color: #0D0E12;
    --card-bg-color: #17191F;
    --text-main-color: #FFF3E6;
    --border-color: #A84F0C;
    --glow-color: #FFB04D;
    --deep-orange-color: #D96800;
    --button-gradient: linear-gradient(180deg, var(--secondary-color) 0%, var(--deep-orange-color) 100%);
}

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

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

.page-about__hero-section {
    padding-top: 10px; /* Small top padding, relying on body padding for header offset */
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
}

.page-about__hero-image-wrapper {
    width: 100%;
    height: 675px; /* Fixed height for desktop hero */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}

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

.page-about__hero-content {
    position: relative; /* Not absolute, for upper-image-lower-text */
    z-index: 1;
    padding: 0 20px 40px;
    max-width: 900px;
    margin: 0 auto;
}

.page-about__main-title {
    font-size: clamp(2em, 3.5vw, 3.2em); /* Responsive font size for H1 */
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.2;
    text-shadow: 0 0 8px rgba(255, 140, 26, 0.5);
}

.page-about__lead-text {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: var(--text-main-color);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-about__btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    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 {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 140, 26, 0.4);
}

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

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

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

.page-about__section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(255, 140, 26, 0.3);
}

.page-about__content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
}

.page-about__card {
    background-color: var(--card-bg-color);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    color: var(--text-main-color);
}

.page-about__card-title {
    font-size: 1.8em;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-about__features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.page-about__feature-item {
    background-color: var(--card-bg-color);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    color: var(--text-main-color);
}

.page-about__feature-title {
    font-size: 1.6em;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-about__feature-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 20px;
    display: block;
}

.page-about__commitment p {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__join-us p {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* General image styling for content areas */
.page-about img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Responsive Styles --- */

@media (max-width: 1024px) {
    .page-about__container {
        padding: 0 30px;
    }

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

    .page-about__main-title {
        font-size: clamp(2em, 4vw, 3em);
    }

    .page-about__lead-text {
        font-size: 1em;
    }

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

    .page-about__content-grid {
        grid-template-columns: 1fr;
    }

    .page-about__features-list {
        grid-template-columns: 1fr;
    }
}

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

    /* 1. Top section title + Dual CTA */
    .page-about__hero-section {
        padding-top: 10px !important; /* Ensure small top padding */
        margin-bottom: 20px;
    }

    .page-about__hero-image-wrapper {
        height: 300px !important; /* Smaller height for mobile hero */
        margin-bottom: 15px;
    }

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

    .page-about__main-title {
        font-size: clamp(1.8em, 6vw, 2.5em) !important;
        margin-bottom: 10px;
    }

    .page-about__lead-text {
        font-size: 0.95em;
        margin-bottom: 20px;
    }

    .page-about__cta-group {
        flex-direction: column;
        gap: 10px;
        padding: 0 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .page-about__btn {
        padding: 12px 20px;
        font-size: 0.9em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* 2. Single-column long text containers */
    .page-about__container {
        padding: 0 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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

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

    .page-about__card {
        padding: 20px;
    }

    .page-about__card-title {
        font-size: 1.5em;
    }

    .page-about__feature-item {
        padding: 20px;
    }

    .page-about__feature-title {
        font-size: 1.3em;
    }

    .page-about__commitment p,
    .page-about__join-us p {
        font-size: 1em;
    }

    /* 3. General images and figures */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }

    .page-about__image-wrapper,
    .page-about__feature-image {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* 4. Buttons and button containers */
    /* Already covered in .page-about__btn and .page-about__cta-group above */

    /* 5. Registration tutorial & FAQ sections (if applicable, for about page, general content text blocks) */
    .page-about__content-section p,
    .page-about__content-section li {
        font-size: 1em;
    }
}