/* style/about.css */
:root {
    --primary-color: #007bff;
    --secondary-color: #ffc107;
    --text-color-dark-bg: #ffffff;
    --text-color-light-bg: #333333;
    --background-dark: #121212;
    --background-light: #f8f9fa;
    --card-bg-dark-mode: rgba(255, 255, 255, 0.1);
}

.page-about {
    color: var(--text-color-dark-bg); /* Body background is dark (#121212), so use light text */
    background-color: var(--background-dark);
    line-height: 1.6;
    font-family: 'Arial', sans-serif;
}

.page-about__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    padding-top: var(--header-offset, 120px);
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
    color: var(--text-color-dark-bg);
    overflow: hidden;
}

.page-about__hero-container {
    max-width: 900px;
    margin: 0 auto;
    z-index: 1;
}

.page-about__main-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    color: var(--text-color-dark-bg);
}

.page-about__hero-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    opacity: 0.9;
}

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

.page-about__cta-button {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

.page-about__btn-primary:hover {
    background-color: #e0ac00;
    border-color: #e0ac00;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.page-about__btn-secondary:hover {
    background-color: var(--text-color-dark-bg);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

/* Intro Section */
.page-about__intro-section {
    padding: 80px 20px;
    background-color: var(--primary-color);
    color: var(--text-color-dark-bg);
}

.page-about__intro-container {
    max-width: 1200px;
    margin: 0 auto;
}

.page-about__intro-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.page-about__intro-text {
    flex: 1;
}

.page-about__intro-text p {
    font-size: 1.1em;
    margin-bottom: 20px;
    line-height: 1.8;
}

.page-about__intro-image {
    flex: 1;
    text-align: center;
}

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

.page-about__read-more {
    margin-top: 20px;
    background-color: var(--secondary-color);
    color: var(--text-color-light-bg);
    border: none;
}

.page-about__read-more:hover {
    background-color: #e0ac00;
}

/* Values Section */
.page-about__values-section {
    padding: 80px 20px;
    background-color: var(--background-dark);
    color: var(--text-color-dark-bg);
}

.page-about__values-container {
    max-width: 1200px;
    margin: 0 auto;
}

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

.page-about__value-card {
    background-color: var(--card-bg-dark-mode);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-color-dark-bg);
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

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

.page-about__value-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 25px;
    min-width: 200px;
    min-height: 200px;
    display: block;
}

.page-about__value-card h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.page-about__value-card p {
    font-size: 1em;
    line-height: 1.7;
    flex-grow: 1;
}

/* Games Section */
.page-about__games-section {
    padding: 80px 20px;
    background-color: #0d0d0d;
    color: var(--text-color-dark-bg);
}

.page-about__games-container {
    max-width: 1200px;
    margin: 0 auto;
}

.page-about__games-intro {
    text-align: center;
    font-size: 1.1em;
    margin-bottom: 40px;
    opacity: 0.9;
}

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

.page-about__game-card {
    background-color: var(--card-bg-dark-mode);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-color-dark-bg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.page-about__game-card img {
    width: 100%;
    
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px;
    min-height: 200px;
    display: block;
}

.page-about__game-card h3 {
    font-size: 1.4em;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.page-about__game-card p {
    font-size: 0.95em;
    line-height: 1.7;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-about__game-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--text-color-dark-bg);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    align-self: flex-start;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-about__game-link:hover {
    background-color: #0056b3;
}

/* Responsible Gaming Section */
.page-about__responsible-gaming-section {
    padding: 80px 20px;
    background-color: var(--background-light);
    color: var(--text-color-light-bg);
    text-align: center;
}

.page-about__responsible-gaming-container {
    max-width: 900px;
    margin: 0 auto;
}

.page-about__responsible-gaming-section .page-about__section-title {
    color: var(--primary-color);
}

.page-about__responsible-gaming-section p {
    font-size: 1.1em;
    margin-bottom: 25px;
    line-height: 1.8;
}

/* FAQ Section */
.page-about__faq-section {
    padding: 80px 20px;
    background-color: #1a1a1a;
    color: var(--text-color-dark-bg);
}

.page-about__faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.page-about__faq-list {
    margin-top: 40px;
}

.page-about__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--card-bg-dark-mode);
    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: 18px 25px;
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-about__faq-question:hover {
    background: #3a3a3a;
    border-color: #4a4a4a;
}

.page-about__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 1.15em;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text-color-dark-bg);
    pointer-events: none;
}

.page-about__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: var(--secondary-color);
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.page-about__faq-item.active .page-about__faq-toggle {
    color: var(--text-color-dark-bg);
    transform: rotate(45deg);
}

.page-about__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 25px;
    opacity: 0;
    color: var(--text-color-dark-bg);
}

.page-about__faq-item.active .page-about__faq-answer {
    max-height: 2000px !important;
    padding: 20px 25px !important;
    opacity: 1;
    background: #222222;
    border-radius: 0 0 8px 8px;
}

.page-about__faq-answer p {
    font-size: 1em;
    line-height: 1.7;
    margin-bottom: 15px;
}

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

.page-about__download-app {
    margin-top: 15px;
    background-color: var(--secondary-color);
    color: var(--text-color-light-bg);
    border: none;
    padding: 10px 25px;
    font-size: 1em;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.page-about__download-app:hover {
    background-color: #e0ac00;
}

/* Global image responsiveness */
.page-about img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

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

    .page-about__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

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

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

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

    .page-about__cta-button {
        width: 100% !important;
        padding: 12px 25px;
        font-size: 1em;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

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

    .page-about__intro-section, 
    .page-about__values-section, 
    .page-about__games-section, 
    .page-about__responsible-gaming-section, 
    .page-about__faq-section {
        padding: 40px 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-about__intro-content {
        flex-direction: column;
        gap: 30px;
    }

    .page-about__intro-image img {
        height: auto;
        max-width: 100% !important;
        width: 100% !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }

    .page-about__values-grid, .page-about__game-categories {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-about__value-card, .page-about__game-card {
        padding: 20px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        min-height: auto; /* Allow height to adjust on mobile */
    }

    .page-about__value-card img, .page-about__game-card img {
        
        max-width: 100% !important;
        width: 100% !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }

    .page-about__faq-question {
        padding: 15px 20px;
        flex-wrap: wrap;
    }

    .page-about__faq-question h3 {
        font-size: 1em;
        width: calc(100% - 40px);
    }

    .page-about__faq-toggle {
        font-size: 24px;
        width: 28px;
        height: 28px;
    }

    .page-about__faq-item.active .page-about__faq-answer {
        padding: 15px 20px !important;
    }
    
    .page-about__game-link, .page-about__read-more, .page-about__download-app {
        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;
    }
}