/* style/about.css */
:root {
    --primary-color: #B80F0A;
    --secondary-color: #FFD700;
    --text-color-dark-bg: #ffffff;
    --text-color-light-bg: #333333;
    --card-bg-dark-mode: rgba(255, 255, 255, 0.1);
    --border-color-dark-mode: rgba(255, 255, 255, 0.2);
    --button-hover-dark: #8c0b08;
    --button-hover-light: #e0b600;
    --background-dark: #000000;
    --background-light: #f8f9fa;
}

.page-about {
    color: var(--text-color-dark-bg); /* Default text color for dark body background */
    background-color: var(--background-dark);
    padding-top: 120px; /* Ensure content is not hidden by fixed header on desktop */
}

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

.page-about__main-title,
.page-about__section-title {
    font-size: 38px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    color: var(--secondary-color);
    line-height: 1.3;
}

.page-about__intro-text,
.page-about__text-block {
    font-size: 18px;
    line-height: 1.8;
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-color-dark-bg);
}

.page-about__link-text {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-about__link-text:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.page-about__hero-intro {
    padding: 80px 0;
    background: var(--background-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

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

.page-about__cta-button {
    display: inline-block;
    padding: 15px 35px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin-top: 20px;
}

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

.page-about__btn-primary:hover {
    background: var(--button-hover-dark);
    border-color: var(--button-hover-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-about__btn-secondary {
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    margin-left: 20px;
}

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

.page-about__mission-vision {
    padding: 80px 0;
    background: var(--background-light);
    color: var(--text-color-light-bg);
}

.page-about__mission-vision .page-about__section-title {
    color: var(--primary-color);
}

.page-about__content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.page-about__card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-color-light-bg);
    border: 1px solid #e0e0e0;
}

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

.page-about__card-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    object-fit: contain;
}

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

.page-about__card-text {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-color-light-bg);
}

.page-about__core-values {
    padding: 80px 0;
    background: var(--primary-color);
    color: var(--text-color-dark-bg);
}

.page-about__core-values .page-about__section-title {
    color: var(--secondary-color);
}

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

.page-about__value-item {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    transition: background-color 0.3s ease;
    color: var(--text-color-dark-bg);
    border: 1px solid var(--border-color-dark-mode);
}

.page-about__value-item:hover {
    background: rgba(255, 255, 255, 0.25);
}

.page-about__value-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
    object-fit: contain;
}

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

.page-about__value-description {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-color-dark-bg);
}

.page-about__why-choose-us {
    padding: 80px 0;
    background: var(--background-light);
    color: var(--text-color-light-bg);
}

.page-about__why-choose-us .page-about__section-title {
    color: var(--primary-color);
}

.page-about__feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-about__feature-item {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-color-light-bg);
    border: 1px solid #e0e0e0;
}

.page-about__feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-about__feature-icon {
    width: 90px;
    height: 90px;
    margin-bottom: 20px;
    object-fit: contain;
}

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

.page-about__feature-description {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-color-light-bg);
}

.page-about__responsible-gaming-commitment {
    padding: 80px 0;
    background: var(--background-dark);
    color: var(--text-color-dark-bg);
}

.page-about__responsible-gaming-commitment .page-about__section-title {
    color: var(--secondary-color);
}

.page-about__faq-section {
    padding: 80px 0;
    background: var(--background-light);
    color: var(--text-color-light-bg);
}

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

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

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

.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 15px;
    opacity: 0;
}

.page-about__faq-item.active .page-about__faq-answer {
    max-height: 2000px !important;
    padding: 20px 15px !important;
    opacity: 1;
    background: #f9f9f9;
    border-radius: 0 0 5px 5px;
    color: var(--text-color-light-bg);
    font-size: 16px;
    line-height: 1.7;
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-about__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.page-about__faq-question:active {
    background: #eeeeee;
}

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

.page-about__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: #666;
    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: 28px;
    height: 28px;
}

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

.page-about__cta-bottom {
    padding: 80px 0;
    background: var(--primary-color);
    color: var(--text-color-dark-bg);
    text-align: center;
}

.page-about__cta-bottom .page-about__section-title {
    color: var(--secondary-color);
}

.page-about__cta-bottom-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

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

/* Responsive Design */
@media (max-width: 992px) {
    .page-about__main-title,
    .page-about__section-title {
        font-size: 32px;
    }

    .page-about__intro-text,
    .page-about__text-block {
        font-size: 17px;
    }

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

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

@media (max-width: 768px) {
    .page-about {
        padding-top: 100px !important; /* Mobile: Adjust for fixed header */
        font-size: 16px;
        line-height: 1.6;
    }

    .page-about__container {
        padding: 0 15px;
    }

    .page-about__main-title,
    .page-about__section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

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

    .page-about__hero-intro,
    .page-about__mission-vision,
    .page-about__core-values,
    .page-about__why-choose-us,
    .page-about__responsible-gaming-commitment,
    .page-about__faq-section,
    .page-about__cta-bottom {
        padding: 50px 0;
    }

    .page-about__hero-image {
        max-width: 100%;
        border-radius: 5px;
    }

    .page-about__cta-button {
        padding: 12px 25px;
        font-size: 16px;
        width: 100%;
        max-width: 280px;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .page-about__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

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

    .page-about__card-icon,
    .page-about__value-icon,
    .page-about__feature-icon {
        width: 80px;
        height: 80px;
        margin-bottom: 15px;
    }

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

    .page-about__value-title {
        font-size: 18px;
    }

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

    .page-about__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    
    .page-about__faq-question h3 {
        font-size: 15px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    
    .page-about__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    
    .page-about__faq-item.active .page-about__faq-answer {
        padding: 15px !important;
    }

    /* Ensure all images are responsive and do not overflow */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__content-grid,
    .page-about__values-grid,
    .page-about__feature-list,
    .page-about__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 480px) {
    .page-about__main-title,
    .page-about__section-title {
        font-size: 24px;
    }

    .page-about__intro-text,
    .page-about__text-block {
        font-size: 15px;
    }

    .page-about__card-title {
        font-size: 18px;
    }

    .page-about__value-title {
        font-size: 16px;
    }

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