/* style/about.css */

:root {
    --primary-color: #C91F17;
    --secondary-color: #E53935;
    --button-gradient: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
    --card-bg-color: #D32F2F;
    --background-color: #B71C1C;
    --text-main-color: #FFF5E1;
    --border-color: #F2B544;
    --glow-color: #FFCC66;
    --gold-color: #F4D34D;
    --deep-red-color: #7A0E0E;
    --header-offset: 122px; /* Default value, assumed from shared.css */
}

.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default for light background */
    background-color: #f5f5f5; /* Light background as per default body */
}

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

.page-about__hero-section {
    background-color: var(--background-color); /* Deep red background */
    padding-top: 10px; /* Small top padding, assuming body has padding-top from shared */
    padding-bottom: 60px;
    text-align: center;
    color: var(--text-main-color);
    position: relative;
    overflow: hidden;
}

.page-about__hero-image-wrapper {
    margin-bottom: 30px;
}

.page-about__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 8px;
}

.page-about__main-title {
    font-size: clamp(2.2em, 4vw, 3.5em);
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--text-main-color);
    line-height: 1.2;
}

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

.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: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box;
    max-width: 100%;
}

.page-about__btn-primary {
    background: var(--button-gradient);
    color: #000000; /* Dark text for gold button */
    border: 2px solid var(--gold-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-about__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-about__btn-secondary {
    background-color: transparent;
    color: var(--text-main-color); /* Light text for transparent button */
    border: 2px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-about__btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

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

.page-about__light-bg {
    background-color: #ffffff;
    color: #333333;
}

.page-about__dark-section {
    background-color: var(--background-color);
    color: var(--text-main-color);
}

.page-about__section-title {
    font-size: 2.5em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
}

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

.page-about__text-block {
    font-size: 1.05em;
    line-height: 1.7;
    margin-bottom: 20px;
    text-align: justify;
}

.page-about__dark-section .page-about__text-block {
    color: var(--text-main-color);
}

.page-about__sub-title {
    font-size: 1.8em;
    font-weight: bold;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

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

.page-about__list {
    list-style: disc;
    padding-left: 25px;
    margin-bottom: 20px;
}

.page-about__list li {
    margin-bottom: 10px;
    font-size: 1.05em;
    color: #333333;
}

.page-about__dark-section .page-about__list li {
    color: var(--text-main-color);
}

.page-about__list li strong {
    color: var(--primary-color);
}

.page-about__dark-section .page-about__list li strong {
    color: var(--gold-color);
}

.page-about__figure {
    margin: 30px auto;
    text-align: center;
    max-width: 680px;
}

.page-about__image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.page-about__dark-section .page-about__figcaption {
    color: rgba(255, 255, 255, 0.7);
}

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

.page-about__feature-card {
    background-color: var(--card-bg-color); /* Deep red card background */
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    text-align: left;
    color: var(--text-main-color);
    border: 1px solid var(--border-color);
}

.page-about__card-title {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--gold-color); /* Gold title for contrast */
}

.page-about__card-text {
    font-size: 1em;
    line-height: 1.7;
    color: var(--text-main-color);
}

.page-about__game-category {
    margin-bottom: 40px;
}

.page-about__game-category-title {
    font-size: 2em;
    font-weight: bold;
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-align: center;
}

.page-about__action-box {
    background-color: var(--deep-red-color);
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    margin-top: 60px;
    color: var(--text-main-color);
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-about__action-box .page-about__text-block {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--text-main-color);
}

.page-about__commitment-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-about__commitment-list li {
    background-color: var(--card-bg-color);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    text-align: left;
    color: var(--text-main-color);
    border: 1px solid var(--border-color);
}

.page-about__commitment-title {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--gold-color);
}

.page-about__join-us {
    background-color: var(--background-color);
    text-align: center;
    color: var(--text-main-color);
}

.page-about__join-us .page-about__section-title {
    color: var(--text-main-color);
}

.page-about__join-us .page-about__text-block {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
}

/* General image and container responsiveness */
.page-about img {
    max-width: 100%;
    height: auto;
    display: block;
    box-sizing: border-box;
}

.page-about__article-wrap,
.page-about__section,
.page-about__container {
    width: 100%;
    max-width: 1200px;
    box-sizing: border-box;
    overflow: hidden;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .page-about {
        font-size: 15px;
        line-height: 1.5;
    }

    /* 1. Top section title + CTA */
    .page-about__hero-section {
        padding-top: 10px !important; /* Small top padding for mobile */
        padding-bottom: 40px;
    }

    .page-about__main-title {
        font-size: 2.5em;
        margin-bottom: 15px;
    }

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

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

    .page-about__btn {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
    }

    /* 2. Single-column long text containers */
    .page-about__article-wrap {
        padding: 0 15px;
    }

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

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

    .page-about__sub-title {
        font-size: 1.5em;
        margin-top: 25px;
        margin-bottom: 10px;
    }

    .page-about__text-block {
        font-size: 1em;
        margin-bottom: 15px;
    }

    .page-about__list {
        padding-left: 20px;
    }

    .page-about__list li {
        font-size: 1em;
    }

    .page-about__feature-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }

    .page-about__feature-card {
        padding: 25px;
    }

    .page-about__card-title {
        font-size: 1.3em;
        margin-bottom: 10px;
    }

    .page-about__card-text {
        font-size: 0.95em;
    }

    .page-about__game-category-title {
        font-size: 1.8em;
        margin-top: 30px;
        margin-bottom: 15px;
    }

    .page-about__action-box {
        padding: 30px 20px;
        margin-top: 40px;
    }

    .page-about__action-box .page-about__text-block {
        font-size: 1.05em;
        margin-bottom: 20px;
    }

    .page-about__commitment-list {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }

    .page-about__commitment-list li {
        padding: 25px;
    }

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

    .page-about__join-us .page-about__text-block {
        margin-bottom: 30px;
    }

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

    .page-about__figure {
        margin: 20px auto;
    }

    /* 4. Buttons and button containers (already covered by .page-about__btn and .page-about__cta-buttons) */
    .page-about__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* 5. Registration tutorial & FAQ (not explicitly in this page but general rule) */
    /* If there were any specific tutorial steps or FAQ items, they would get responsive adjustments here */
}