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

.page-about {
    font-family: 'Arial', sans-serif;
    color: var(--text-main-color); /* Assuming body background is dark, use light text */
    line-height: 1.6;
    background-color: var(--background-color); /* Main background color */
}

.page-about__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    overflow: hidden;
}

.page-about__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.page-about__hero-image {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

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

.page-about__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 0 15px;
}

.page-about__main-title {
    font-size: clamp(2em, 5vw, 3.5em);
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(255, 140, 26, 0.5);
}

.page-about__hero-description {
    font-size: 1.1em;
    color: var(--text-main-color);
    max-width: 800px;
    margin: 0 auto 30px auto;
}

.page-about__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--button-gradient);
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 140, 26, 0.4);
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-about__cta-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 140, 26, 0.6);
}

.page-about__cta-button--small {
    padding: 12px 30px;
    font-size: 16px;
}

.page-about__section {
    padding: 80px 20px;
    text-align: center;
}

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

.page-about__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

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

.page-about__section-description {
    font-size: 1.1em;
    color: var(--text-main-color);
    max-width: 900px;
    margin: -20px auto 40px auto;
}

.page-about__content-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    text-align: left;
}

.page-about__content-wrapper--reverse {
    flex-direction: row-reverse;
}

.page-about__text-block {
    flex: 1;
    min-width: 0; /* Allow flex item to shrink */
}

.page-about__text-block p {
    margin-bottom: 15px;
    color: var(--text-main-color);
}

.page-about__image-block {
    flex: 1;
    min-width: 250px; /* Minimum width for image block */
}

.page-about__image-block img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

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

.page-about__game-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    text-align: left;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-about__game-title {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-about__game-card p {
    color: var(--text-main-color);
    font-size: 0.95em;
}

.page-about__image-block--full-width {
    margin-top: 50px;
}

.page-about__image-block--full-width img {
    width: 100%;
    border-radius: 10px;
}

.page-about__conclusion-section {
    padding-bottom: 80px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-about__section-title {
        font-size: 2em;
    }
    .page-about__sub-title {
        font-size: 1.5em;
    }
    .page-about__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important;
    }
    .page-about__main-title {
        font-size: clamp(1.8em, 4.5vw, 3em);
    }
    .page-about__hero-description {
        font-size: 1em;
    }
    .page-about__section {
        padding: 60px 15px;
    }
}

@media (max-width: 768px) {
    .page-about__hero-section {
        padding-top: 10px !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-about__hero-image img {
        border-radius: 4px;
    }
    .page-about__cta-button {
        padding: 12px 30px;
        font-size: 16px;
        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__content-wrapper {
        flex-direction: column;
        gap: 30px;
    }
    .page-about__content-wrapper--reverse {
        flex-direction: column;
    }
    .page-about__image-block {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 0px;
    }
    .page-about__image-block img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-about__text-block {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 0px;
    }
    .page-about__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-about__sub-title {
        font-size: 1.3em;
    }
    .page-about__game-card {
        padding: 20px;
    }
    .page-about__games-grid {
        gap: 20px;
    }
    .page-about__section {
        padding: 40px 15px;
    }
    .page-about__container {
        padding-left: 0px;
        padding-right: 0px;
    }
    .page-about__section,
    .page-about__card,
    .page-about__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 480px) {
    .page-about__main-title {
        font-size: clamp(1.5em, 6vw, 2.5em);
    }
    .page-about__hero-description {
        font-size: 0.9em;
    }
    .page-about__cta-button {
        font-size: 15px;
        padding: 10px 25px;
    }
    .page-about__section-title {
        font-size: 1.5em;
    }
    .page-about__sub-title {
        font-size: 1.2em;
    }
    .page-about__game-card {
        padding: 15px;
    }
    .page-about__game-title {
        font-size: 1.3em;
    }
}