/* style/about.css */

:root {
    --primary-color: #F2C14E;
    --secondary-color: #FFD36B;
    --bg-dark: #0A0A0A;
    --card-bg: #111111;
    --text-main: #FFF6D6;
    --border-color: #3A2A12;
    --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    --header-offset: 120px; /* Default for desktop, adjusted by shared.css media queries */
}

.page-about {
    font-family: Arial, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-dark);
    line-height: 1.6;
    padding-top: 10px; /* Small top padding for the first section, body padding-top handled by shared */
}

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

.page-about__section-title {
    font-size: 2.8em;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 10px;
    font-weight: bold;
    letter-spacing: 0.05em;
}

.page-about__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.page-about__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
    color: rgba(255, 246, 214, 0.8);
}

/* Hero Section */
.page-about__hero-section {
    background: var(--bg-dark);
    padding-top: var(--header-offset, 120px);
    position: relative;
    overflow: hidden;
    padding-bottom: 50px;
}

.page-about__hero-content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding: 0 15px;
}

.page-about__hero-image-container {
    width: 100%;
    max-width: 1200px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
}

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

.page-about__hero-text-content {
    text-align: center;
    max-width: 900px;
}

.page-about__main-title {
    font-size: clamp(2.5rem, 4vw, 3.8rem); /* Using clamp as per instruction, with reasonable limits */
    color: var(--secondary-color);
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.page-about__intro-text {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: rgba(255, 246, 214, 0.9);
}

.page-about__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    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: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
    text-align: center;
}

.page-about__btn-primary {
    background: var(--button-gradient);
    color: #ffffff; /* Explicitly white for contrast on gradient */
    border: none;
    box-shadow: 0 4px 15px rgba(255, 211, 107, 0.4);
}

.page-about__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 211, 107, 0.6);
    opacity: 0.9;
}

.page-about__btn-secondary {
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    box-shadow: 0 4px 10px rgba(255, 211, 107, 0.2);
}

.page-about__btn-secondary:hover {
    background: var(--secondary-color);
    color: var(--bg-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(255, 211, 107, 0.4);
}

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

.page-about__grid--two-cols {
    grid-template-columns: 1fr 1fr;
}

.page-about__grid--three-cols {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.page-about__grid--reverse {
    flex-direction: row-reverse;
}

/* Card Styles */
.page-about__card {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-main);
}

.page-about__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

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

.page-about__card-text {
    font-size: 1em;
    line-height: 1.7;
    color: rgba(255, 246, 214, 0.85);
}

.page-about__card-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 20px;
    object-fit: cover;
    min-width: 200px;
    min-height: 200px;
}

/* Feature Cards */
.page-about__feature-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-main);
}

.page-about__feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-about__feature-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    object-fit: contain;
    filter: drop-shadow(0 0 5px var(--secondary-color));
    min-width: 200px; /* Enforcing minimum size for content images */
    min-height: 200px;
}

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

.page-about__feature-text {
    font-size: 0.95em;
    line-height: 1.6;
    color: rgba(255, 246, 214, 0.8);
}

/* Gaming Experience Section */
.page-about__gaming-experience-section .page-about__grid {
    align-items: center;
}

.page-about__content-block {
    padding: 20px;
}

.page-about__block-title {
    font-size: 2em;
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-weight: bold;
}

.page-about__block-text {
    font-size: 1.1em;
    margin-bottom: 25px;
    color: rgba(255, 246, 214, 0.9);
}

.page-about__game-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.page-about__list-item {
    background: var(--card-bg);
    padding: 12px 20px;
    margin-bottom: 10px;
    border-left: 4px solid var(--primary-color);
    border-radius: 5px;
    font-size: 1em;
    color: var(--text-main);
    transition: background-color 0.3s ease;
}

.page-about__list-item:hover {
    background-color: #1a1a1a;
}

.page-about__image-block img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    min-width: 200px;
    min-height: 200px;
}

.page-about__grid--reverse .page-about__content-block {
    order: 2;
}

.page-about__grid--reverse .page-about__image-block {
    order: 1;
}

/* Support Section */
.page-about__card--support {
    text-align: left;
    align-items: flex-start;
}

.page-about__cta-center {
    text-align: center;
    margin-top: 50px;
}

/* Promotions Section */
.page-about__promo-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-about__promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-about__promo-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px;
    min-height: 200px;
}

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

.page-about__promo-text {
    font-size: 0.95em;
    line-height: 1.6;
    color: rgba(255, 246, 214, 0.8);
    flex-grow: 1;
}

/* Why Choose Section */
.page-about__advantages-list {
    list-style: none;
    padding: 0;
    max-width: 900px;
    margin: 40px auto;
}

.page-about__advantages-list .page-about__list-item {
    background: var(--card-bg);
    margin-bottom: 15px;
    padding: 20px 25px;
    border-left: 5px solid var(--secondary-color);
    border-radius: 8px;
    font-size: 1.1em;
    color: var(--text-main);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: border-color 0.3s ease;
}

.page-about__advantages-list .page-about__list-item:hover {
    border-color: var(--primary-color);
}

.page-about__advantages-list .page-about__list-item strong {
    color: var(--primary-color);
}

/* FAQ Section */
.page-about__faq-list {
    max-width: 900px;
    margin: 50px auto 0 auto;
}

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

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--primary-color);
    background-color: #1a1a1a;
    transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
    background-color: #222222;
}

.page-about__faq-heading {
    margin: 0;
    color: var(--primary-color);
}

.page-about__faq-toggle {
    font-size: 1.8em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: var(--secondary-color);
}

.page-about__faq-item.active .page-about__faq-toggle {
    transform: rotate(45deg);
    content: '−'; /* Changed by JS */
}

.page-about__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    font-size: 1em;
    line-height: 1.7;
    color: rgba(255, 246, 214, 0.85);
}

.page-about__faq-item.active .page-about__faq-answer {
    max-height: 1000px !important; /* Important for functionality */
    padding: 15px 25px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__grid--two-cols {
        grid-template-columns: 1fr;
    }

    .page-about__grid--reverse .page-about__content-block,
    .page-about__grid--reverse .page-about__image-block {
        order: unset; /* Reset order for smaller screens */
    }

    .page-about__hero-content-wrapper {
        flex-direction: column;
    }

    .page-about__main-title {
        font-size: clamp(2.2rem, 5vw, 3rem);
    }
}

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

    .page-about__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Mobile: controlled by shared's media query */
    }

    .page-about__section-title {
        font-size: 2.2em;
        margin-bottom: 20px;
    }

    .page-about__section-description {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .page-about__grid,
    .page-about__grid--two-cols,
    .page-about__grid--three-cols {
        grid-template-columns: 1fr;
    }

    .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;
        padding-right: 15px;
    }
    
    .page-about__cta-buttons,
    .page-about__button-group,
    .page-about__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-direction: column !important;
        gap: 15px;
    }

    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }

    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__hero-image-container,
    .page-about__image-block {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-about__feature-icon {
        min-width: 200px !important;
        min-height: 200px !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-about__promo-image {
        height: auto !important;
    }
}

@media (max-width: 480px) {
    .page-about__section-title {
        font-size: 1.8em;
    }

    .page-about__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }

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

    .page-about__btn-primary,
    .page-about__btn-secondary {
        padding: 12px 20px;
    }
}