/* style/about.css */
.page-about {
    color: #ffffff; /* Default text color for dark body background */
    background-color: #121212; /* Inherited from body via shared.css */
}

.page-about__hero-section {
    position: relative;
    padding: 80px 20px;
    background: linear-gradient(135deg, #8B0000, #FFD700);
    text-align: center;
    padding-top: 0; /* Assuming shared.css sets padding-top on body */
    padding-bottom: 0;
    margin-top: 0;
    margin-bottom: 0;
}

.page-about__hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 0 80px 0;
}

.page-about__hero-title {
    font-size: 48px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-about__hero-description {
    font-size: 20px;
    color: #f0f0f0;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

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

.page-about__section-title {
    font-size: 36px;
    font-weight: 700;
    color: #FFD700;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

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

.page-about__section-description {
    font-size: 18px;
    color: #f0f0f0;
    text-align: center;
    max-width: 900px;
    margin: -20px auto 60px auto;
    line-height: 1.6;
}

.page-about__introduction-section,
.page-about__mission-vision-section,
.page-about__games-variety-section,
.page-about__responsible-gaming-section,
.page-about__cta-section {
    padding: 80px 0;
    background-color: #1a1a1a;
}

.page-about__dark-section {
    background-color: #121212;
    color: #ffffff;
}

.page-about__dark-section .page-about__section-title {
    color: #FFD700;
}

.page-about__dark-section .page-about__section-description {
    color: #e0e0e0;
}

.page-about__content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

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

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

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

.page-about__text-block p {
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 20px;
    color: #e0e0e0;
}

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

.page-about__image-block img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    display: block;
    margin: 0 auto;
}

.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    margin-right: 15px;
    margin-top: 10px;
    white-space: nowrap;
    word-wrap: break-word;
    box-sizing: border-box;
}

.page-about__btn-primary {
    background-color: #8B0000;
    color: #ffffff;
    border: 2px solid #8B0000;
}

.page-about__btn-primary:hover {
    background-color: #FFD700;
    color: #121212;
    border-color: #FFD700;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 215, 0, 0.3);
}

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

.page-about__btn-secondary:hover {
    background-color: #FFD700;
    color: #121212;
    border-color: #FFD700;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 215, 0, 0.3);
}

.page-about__btn-link {
    display: inline-block;
    margin-top: 15px;
    color: #FFD700;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    position: relative;
    padding-bottom: 2px;
}

.page-about__btn-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background-color: #FFD700;
    transition: width 0.3s ease;
}

.page-about__btn-link:hover::after {
    width: 0;
}

.page-about__grid-3-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.page-about__card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-about__card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-about__card-title {
    font-size: 22px;
    font-weight: 600;
    color: #FFD700;
    margin-bottom: 15px;
}

.page-about__card p {
    font-size: 16px;
    line-height: 1.6;
    color: #e0e0e0;
}

.page-about__light-bg {
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.page-about__light-bg .page-about__card-title {
    color: #FFD700;
}

.page-about__light-bg p {
    color: #e0e0e0;
}

.page-about__grid-4-cols {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.page-about__game-category-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-about__game-category-card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-about__game-category-title {
    font-size: 20px;
    font-weight: 600;
    color: #FFD700;
    margin-bottom: 10px;
}

.page-about__game-category-card p {
    font-size: 15px;
    line-height: 1.5;
    color: #e0e0e0;
    margin-bottom: 15px;
}

.page-about__cta-section {
    text-align: center;
}

.page-about__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* FAQ Section */
.page-about__faq-section {
    padding: 80px 0;
}

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

.page-about__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    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: rgba(255, 255, 255, 0.12);
    border-color: #8B0000;
}

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

.page-about__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: #FFD700;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 20px;
    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: #8B0000;
    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;
    background: rgba(255, 255, 255, 0.05);
    border-top: none;
    border-radius: 0 0 8px 8px;
}

.page-about__faq-item.active .page-about__faq-answer {
    max-height: 2000px !important;
    padding: 20px 25px !important;
    opacity: 1;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-top: none;
}

.page-about__faq-answer p {
    font-size: 16px;
    line-height: 1.7;
    color: #e0e0e0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__hero-title {
        font-size: 40px;
    }
    .page-about__hero-description {
        font-size: 18px;
    }
    .page-about__section-title {
        font-size: 32px;
    }
    .page-about__content-grid {
        grid-template-columns: 1fr;
    }
    .page-about__content-grid--reverse .page-about__text-block {
        order: 1;
    }
    .page-about__content-grid--reverse .page-about__image-block {
        order: 2;
    }
    .page-about__grid-3-cols {
        grid-template-columns: repeat(2, 1fr);
    }
    .page-about__grid-4-cols {
        grid-template-columns: repeat(2, 1fr);
    }
    .page-about__image-block img {
        width: 100%;
        height: auto;
    }
}

@media (max-width: 768px) {
    .page-about__hero-section {
        padding: 60px 15px;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
    .page-about__hero-container {
        padding: 80px 0 60px 0;
    }
    .page-about__hero-title {
        font-size: 32px;
    }
    .page-about__hero-description {
        font-size: 16px;
    }
    .page-about__container {
        padding: 0 15px;
    }
    .page-about__introduction-section,
    .page-about__mission-vision-section,
    .page-about__games-variety-section,
    .page-about__responsible-gaming-section,
    .page-about__cta-section,
    .page-about__security-section,
    .page-about__faq-section {
        padding: 60px 0;
    }
    .page-about__section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    .page-about__section-description {
        font-size: 15px;
        margin: -10px auto 40px auto;
    }
    .page-about__text-block p {
        font-size: 15px;
    }
    .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;
        margin-right: 0;
        margin-bottom: 10px;
    }
    .page-about__cta-buttons {
        flex-direction: column;
        gap: 10px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-about__grid-3-cols,
    .page-about__grid-4-cols {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-about__card,
    .page-about__game-category-card {
        padding: 20px;
    }
    .page-about__card-title {
        font-size: 20px;
    }
    .page-about__card p {
        font-size: 15px;
    }
    .page-about__game-category-title {
        font-size: 18px;
    }
    .page-about__game-category-card p {
        font-size: 14px;
    }
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-about__image-block img {
        max-width: 100%;
    }
    /* FAQ */
    .page-about__faq-question {
        padding: 15px 20px;
    }
    .page-about__faq-question h3 {
        font-size: 16px;
    }
    .page-about__faq-toggle {
        font-size: 24px;
        width: 28px;
        height: 28px;
        margin-left: 15px;
    }
    .page-about__faq-item.active .page-about__faq-answer {
        padding: 15px 20px !important;
    }
    .page-about__faq-answer p {
        font-size: 15px;
    }
}