/* style/about.css */

:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #f9f9f9;
    --bg-dark: #26A9E0;
    --btn-login-color: #EA7C07;
}

.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--secondary-color); /* Default white background */
}

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

.page-about__light-bg {
    background-color: var(--secondary-color);
    color: var(--text-dark);
}

.page-about__dark-bg {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

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

.page-about__section-title {
    font-size: 32px;
    margin-bottom: 30px;
    font-weight: bold;
    color: inherit;
}

.page-about__paragraph {
    font-size: 17px;
    margin-bottom: 20px;
    line-height: 1.8;
    text-align: justify;
}

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

/* Hero Section */
.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: var(--header-offset, 120px); /* Ensure content is below fixed header */
    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;
    z-index: 1;
}

.page-about__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-about__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 800px;
    margin-top: -80px; /* Overlap with image slightly for visual effect */
    background-color: rgba(38, 169, 224, 0.85); /* Semi-transparent background for text */
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-about__main-heading {
    font-size: 42px;
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--text-light);
    line-height: 1.2;
}

.page-about__intro-text {
    font-size: 19px;
    margin-bottom: 30px;
    color: var(--text-light);
    line-height: 1.7;
}

.page-about__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--btn-login-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: none;
}

.page-about__cta-button:hover {
    background: #e06c00;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* History Section */
.page-about__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: left;
}

.page-about__feature-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-about__feature-item:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.15);
}

.page-about__feature-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--text-light);
}

.page-about__feature-description {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
}

/* Values Section */
.page-about__value-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    text-align: left;
}

.page-about__value-item {
    background-color: var(--secondary-color);
    padding: 20px 25px;
    margin-bottom: 15px;
    border-left: 5px solid var(--primary-color);
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    font-size: 17px;
    color: var(--text-dark);
    transition: transform 0.03s ease;
}

.page-about__value-item:hover {
    transform: translateX(5px);
}

.page-about__value-item strong {
    color: var(--primary-color);
}

/* Games Section */
.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: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-about__game-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-about__game-card h3 {
    padding: 15px 20px 0;
    font-size: 20px;
    font-weight: bold;
}

.page-about__game-card h3 a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-about__game-card h3 a:hover {
    color: var(--primary-color);
}

.page-about__game-description {
    padding: 0 20px 20px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
}

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

.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 17px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 2px solid transparent;
}

.page-about__btn-primary {
    background: var(--btn-login-color);
    color: var(--text-light);
}

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

.page-about__btn-secondary {
    background: var(--secondary-color);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

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

/* FAQ Section */
.page-about__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.page-about__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: var(--secondary-color);
    border: 1px solid #e0e0e0;
    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: var(--bg-light);
    border-color: #d0d0d0;
}

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

.page-about__faq-toggle {
    font-size: 26px;
    font-weight: bold;
    line-height: 1;
    color: var(--primary-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: 30px;
    height: 30px;
}

.page-about__faq-item.active .page-about__faq-toggle {
    color: var(--btn-login-color);
}

.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;
    background: var(--bg-light);
    border-radius: 0 0 8px 8px;
    color: var(--text-dark);
}

.page-about__faq-item.active .page-about__faq-answer {
    max-height: 2000px !important;
    padding: 20px 25px !important;
    opacity: 1;
}

.page-about__faq-answer p {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
    text-align: justify;
}

.page-about__btn-faq {
    display: inline-block;
    padding: 10px 20px;
    background: var(--primary-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 5px;
    font-size: 15px;
    font-weight: bold;
    margin-top: 15px;
    transition: background-color 0.3s ease;
}

.page-about__btn-faq:hover {
    background: #1e87b7;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__main-heading {
        font-size: 36px;
    }
    .page-about__intro-text {
        font-size: 17px;
    }
    .page-about__section-title {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .page-about__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-about__hero-content {
        margin-top: -60px;
        padding: 20px;
        border-radius: 8px;
    }

    .page-about__main-heading {
        font-size: 28px;
        margin-bottom: 15px;
    }

    .page-about__intro-text {
        font-size: 16px;
        margin-bottom: 20px;
    }

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

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

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

    .page-about__paragraph {
        font-size: 16px;
    }

    .page-about__image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        border-radius: 4px;
    }

    .page-about__feature-item {
        padding: 20px;
    }

    .page-about__feature-title {
        font-size: 20px;
    }

    .page-about__game-card {
        height: auto;
    }

    .page-about__game-image {
        height: 180px;
    }

    .page-about__game-card h3 {
        font-size: 18px;
    }

    .page-about__game-description {
        font-size: 14px;
    }

    .page-about__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding-left: 15px;
        padding-right: 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: 12px 20px;
        font-size: 16px;
    }

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

    .page-about__faq-question h3 {
        font-size: 16px;
    }

    .page-about__faq-toggle {
        font-size: 22px;
        width: 25px;
        height: 25px;
    }

    .page-about__faq-answer {
        padding: 0 20px;
    }

    .page-about__faq-item.active .page-about__faq-answer {
        padding: 15px 20px !important;
    }

    .page-about__faq-answer p {
        font-size: 15px;
    }

    .page-about__btn-faq {
        padding: 8px 15px;
        font-size: 14px;
    }

    /* Ensure all content containers are responsive */
    .page-about__container,
    .page-about__section,
    .page-about__hero-section,
    .page-about__hero-container,
    .page-about__hero-image,
    .page-about__hero-content,
    .page-about__features-grid,
    .page-about__value-list,
    .page-about__games-grid,
    .page-about__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-about__hero-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .page-about__hero-container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .page-about__hero-content {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}