/* style/about.css */

/* Common styles for the page-about scope */
.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: #121212; /* Inherited from shared, but for clarity */
}

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

.page-about__section-title {
    font-size: 2.8em;
    color: #FFD700;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-about__sub-title {
    font-size: 1.8em;
    color: #FFD700;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-about__text-block p {
    margin-bottom: 15px;
    font-size: 1.1em;
    color: #f0f0f0;
}

.page-about__text-block strong {
    color: #FFD700;
}

.page-about__grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
}

.page-about__grid-layout--reverse {
    grid-template-columns: 1fr 1fr;
}

.page-about__image-wrapper {
    text-align: center;
}

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

/* Hero Section */
.page-about__hero-section {
    position: relative;
    padding: 100px 0;
    text-align: center;
    background: linear-gradient(135deg, #1A202C, #0d0d0d);
    color: #ffffff;
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
}

.page-about__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #FFD700;
    line-height: 1.2;
}

.page-about__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

.page-about__hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-about__btn-primary {
    background-color: #FFD700;
    color: #1A202C;
    border: 2px solid #FFD700;
}

.page-about__btn-primary:hover {
    background-color: #e0b800;
    border-color: #e0b800;
    transform: translateY(-3px);
}

.page-about__btn-secondary {
    background-color: transparent;
    color: #FFD700;
    border: 2px solid #FFD700;
}

.page-about__btn-secondary:hover {
    background-color: #FFD700;
    color: #1A202C;
    transform: translateY(-3px);
}

.page-about__cta-buttons {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    margin-bottom: 60px;
}

.page-about__cta-buttons--center {
    justify-content: center;
}

/* Section Backgrounds */
.page-about__dark-bg {
    background-color: #1A202C;
    color: #ffffff;
    padding: 60px 0;
}

.page-about__light-bg {
    background-color: #222831; /* Slightly lighter dark for contrast */
    color: #f0f0f0;
    padding: 60px 0;
}

/* Games Section */
.page-about__game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-about__game-card {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    color: #f0f0f0;
}

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

.page-about__game-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.page-about__game-card-title {
    font-size: 1.5em;
    color: #FFD700;
    margin: 15px 15px 10px;
    font-weight: bold;
}

.page-about__game-card-title a {
    color: #FFD700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-about__game-card-title a:hover {
    color: #e0b800;
}

.page-about__game-card p {
    font-size: 1em;
    padding: 0 15px 20px;
    flex-grow: 1;
}

/* Responsible Gaming Section */
.page-about__responsible-gaming-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
    margin-bottom: 40px;
}

/* FAQ Section */
.page-about__faq-list {
    margin-top: 40px;
}

.page-about__faq-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.page-about__faq-item:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    color: #FFD700;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-about__faq-item:last-child .page-about__faq-question {
    border-bottom: none;
}

.page-about__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-about__faq-item.active .page-about__faq-toggle {
    transform: rotate(45deg);
}

.page-about__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #f0f0f0;
}

.page-about__faq-item.active .page-about__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to contain content */
    padding: 20px;
}

.page-about__faq-answer p {
    margin-bottom: 0;
}

.page-about__faq-answer a {
    color: #FFD700;
    text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-about__hero-title {
        font-size: 2.8em;
    }
    .page-about__hero-description {
        font-size: 1.1em;
    }
    .page-about__section-title {
        font-size: 2.2em;
    }
    .page-about__sub-title {
        font-size: 1.5em;
    }
    .page-about__grid-layout {
        grid-template-columns: 1fr;
    }
    .page-about__grid-layout--reverse {
        grid-template-columns: 1fr;
    }
    .page-about__responsible-gaming-content {
        grid-template-columns: 1fr;
    }
    .page-about__grid-layout .page-about__image-wrapper,
    .page-about__responsible-gaming-content .page-about__image-wrapper {
        order: -1; /* Image first on smaller screens */
    }
}

@media (max-width: 768px) {
    .page-about {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-about__hero-section {
        padding: 80px 0;
    }
    .page-about__hero-title {
        font-size: 2.2em;
    }
    .page-about__hero-description {
        font-size: 1em;
    }
    .page-about__hero-buttons,
    .page-about__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }
    .page-about__btn-primary,
    .page-about__btn-secondary {
        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__hero-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-about__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-about__sub-title {
        font-size: 1.3em;
    }
    .page-about__game-grid {
        grid-template-columns: 1fr;
    }
    .page-about__game-card-image {
        height: 180px;
    }
    .page-about__faq-question {
        font-size: 1.1em;
        padding: 15px;
    }
    .page-about__faq-answer {
        padding: 0 15px;
    }
    .page-about__faq-item.active .page-about__faq-answer {
        padding: 15px;
    }

    /* Images responsive */
    .page-about img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-about__container,
    .page-about__section,
    .page-about__card,
    .page-about__text-block,
    .page-about__image-wrapper,
    .page-about__game-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-about__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure space for fixed header */
    }
}

/* Color Contrast Fixes (if needed) - ensure high contrast for text on various backgrounds */
.page-about__dark-bg p, .page-about__dark-bg li, .page-about__dark-bg strong {
    color: #f0f0f0;
}
.page-about__light-bg p, .page-about__light-bg li, .page-about__light-bg strong {
    color: #e0e0e0;
}
.page-about__game-card p {
    color: #f0f0f0;
}
.page-about__faq-answer p {
    color: #f0f0f0;
}