/* style/about.css */

/* Base styles for the about page content */
.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default dark text for light body background */
    background-color: #FFFFFF; /* Explicitly set for clarity, though shared.css might define body */
}

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

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

.page-about__sub-title {
    font-size: 1.8em;
    color: #26A9E0;
    margin-bottom: 15px;
}

.page-about__description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px auto;
}

.page-about__text-block p {
    margin-bottom: 15px;
    font-size: 1.05em;
    line-height: 1.7;
}

/* Color contrast enforcement */
.page-about__light-bg {
    background-color: #FFFFFF;
    color: #333333;
}

.page-about__dark-bg {
    background-color: #26A9E0;
    color: #FFFFFF;
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    height: 70vh; /* Adjust as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #FFFFFF;
    overflow: hidden;
    background-color: #26A9E0; /* Fallback */
}

.page-about__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.8;
}

.page-about__hero-section .page-about__container {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4); /* Dark overlay for text readability */
    border-radius: 10px;
}

.page-about__main-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
    color: #FFFFFF;
}

.page-about__hero-section .page-about__description {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: #FFFFFF;
}

.page-about__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-about__btn-primary {
    background-color: #26A9E0;
    color: #FFFFFF;
    border: 2px solid #26A9E0;
}

.page-about__btn-primary:hover {
    background-color: #1a7bb0;
    border-color: #1a7bb0;
}

.page-about__btn-secondary {
    background-color: #FFFFFF;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-about__btn-secondary:hover {
    background-color: #e0e0e0;
    color: #1a7bb0;
    border-color: #1a7bb0;
}

/* Login button specific color */
.page-about__btn-login {
    background-color: #EA7C07;
    color: #FFFFFF;
    border: 2px solid #EA7C07;
}

.page-about__btn-login:hover {
    background-color: #c06305;
    border-color: #c06305;
}


/* Vision and Mission Section */
.page-about__vision-mission-section,
.page-about__why-choose-section,
.page-about__games-section,
.page-about__security-section,
.page-about__support-promo-section,
.page-about__responsible-gaming-section,
.page-about__faq-section,
.page-about__cta-bottom {
    padding: 80px 0;
}

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

.page-about__image-full-width {
    width: 100%;
    height: auto;
    display: block;
    margin-top: 40px;
    border-radius: 10px;
    object-fit: cover;
    min-width: 200px; /* Min size enforcement */
    min-height: 200px; /* Min size enforcement */
}

/* Why Choose Section */
.page-about__why-choose-section .page-about__section-title,
.page-about__why-choose-section .page-about__description {
    color: #FFFFFF;
}

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

.page-about__feature-card {
    background-color: rgba(255, 255, 255, 0.15); /* Slightly transparent white on dark background */
    color: #FFFFFF;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.page-about__feature-card:hover {
    transform: translateY(-10px);
}

.page-about__feature-card .page-about__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #FFFFFF;
}

.page-about__feature-card p {
    font-size: 1em;
    line-height: 1.6;
}

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

.page-about__game-card {
    background-color: #FFFFFF;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.page-about__game-card:hover {
    transform: translateY(-10px);
}

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

.page-about__game-card .page-about__card-title {
    font-size: 1.4em;
    padding: 15px;
    color: #26A9E0;
    text-align: center;
}

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

.page-about__game-card .page-about__card-title a:hover {
    color: #1a7bb0;
}

.page-about__game-card p {
    padding: 0 15px 20px;
    font-size: 0.95em;
    text-align: center;
    color: #555555;
}

/* Support and Promotions Section */
.page-about__support-promo-section {
    padding: 80px 0;
}

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

.page-about__grid-half:last-child {
    margin-bottom: 0;
}

.page-about__image-left,
.page-about__image-right {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    object-fit: cover;
    min-width: 200px; /* Min size enforcement */
    min-height: 200px; /* Min size enforcement */
}

.page-about__grid-half .page-about__text-block {
    padding: 20px;
}

.page-about__grid-half .page-about__section-title {
    text-align: left;
    margin-bottom: 20px;
}

.page-about__grid-half .page-about__btn-primary {
    margin-top: 20px;
    display: inline-block;
}

/* Responsible Gaming Section */
.page-about__responsible-gaming-section .page-about__section-title,
.page-about__responsible-gaming-section .page-about__description {
    color: #FFFFFF;
}

.page-about__responsible-gaming-list {
    list-style: none;
    padding: 0;
    margin: 40px auto;
    max-width: 800px;
    color: #FFFFFF;
    text-align: left;
}

.page-about__responsible-gaming-list li {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 8px;
    font-size: 1.1em;
    line-height: 1.6;
}

.page-about__responsible-gaming-list li strong {
    color: #FFFFFF;
}

/* FAQ Section */
.page-about__faq-list {
    max-width: 900px;
    margin: 40px auto 0 auto;
}

.page-about__faq-item {
    background-color: #FFFFFF;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background-color: #f9f9f9;
    transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
    background-color: #f0f0f0;
}

.page-about__faq-title {
    margin: 0;
    font-size: 1.2em;
    color: #333333;
    font-weight: bold;
}

.page-about__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #26A9E0;
    transition: transform 0.3s ease;
}

.page-about__faq-item.active .page-about__faq-toggle {
    transform: rotate(45deg); /* Change + to X or similar */
}

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

.page-about__faq-item.active .page-about__faq-answer {
    max-height: 1000px !important; /* Use !important to ensure override */
    padding: 20px;
}

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

/* CTA Bottom Section */
.page-about__cta-bottom {
    text-align: center;
    padding: 60px 0;
}

.page-about__cta-bottom .page-about__section-title,
.page-about__cta-bottom .page-about__description {
    color: #FFFFFF;
}

.page-about__cta-bottom .page-about__cta-buttons {
    margin-top: 30px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__main-title {
        font-size: 2.8em;
    }

    .page-about__section-title {
        font-size: 2em;
    }

    .page-about__sub-title {
        font-size: 1.5em;
    }

    .page-about__content-grid,
    .page-about__grid-half {
        grid-template-columns: 1fr;
    }
    
    .page-about__grid-half .page-about__text-block {
        order: initial; /* Reset order for smaller screens */
    }

    .page-about__grid-half:nth-child(2) .page-about__text-block {
        order: initial;
    }
}

@media (max-width: 768px) {
    .page-about {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-about__hero-section {
        height: auto;
        padding: var(--header-offset, 120px) 20px 40px;
    }

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

    .page-about__hero-section .page-about__description {
        font-size: 1em;
        margin-bottom: 20px;
    }

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

    .page-about__sub-title {
        font-size: 1.3em;
    }

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

    .page-about__btn-primary,
    .page-about__btn-secondary,
    .page-about__btn-login,
    .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 !important;
        padding-right: 15px !important;
        margin: 0 auto;
    }

    .page-about__cta-buttons,
    .page-about__button-group,
    .page-about__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        overflow: hidden !important;
        flex-wrap: wrap !important;
        gap: 10px !important;
    }

    .page-about__vision-mission-section,
    .page-about__why-choose-section,
    .page-about__games-section,
    .page-about__security-section,
    .page-about__support-promo-section,
    .page-about__responsible-gaming-section,
    .page-about__faq-section,
    .page-about__cta-bottom {
        padding: 40px 0;
    }

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

    .page-about__content-grid {
        gap: 30px;
    }

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

    .page-about__game-image {
        height: auto; /* Allow auto height on mobile */
    }

    .page-about__responsible-gaming-list {
        margin: 30px auto;
        padding: 0 15px;
    }

    /* Images responsiveness for content area */
    .page-about img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    
    .page-about__image-full-width,
    .page-about__image-left,
    .page-about__image-right {
        min-width: 200px !important;
        min-height: 200px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__text-block,
    .page-about__game-card,
    .page-about__feature-card,
    .page-about__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .page-about__hero-section {
        padding-top: var(--header-offset, 120px) !important;
    }
}

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

/* Ensure no CSS filters are used on images */
.page-about img {
    filter: none !important;
}

/* Content area image CSS dimensions lower bound */
.page-about__vision-mission-section img,
.page-about__security-section img,
.page-about__support-promo-section img,
.page-about__games-section img {
    min-width: 200px;
    min-height: 200px;
}
.page-about__game-image {
    width: 100%;
    height: 200px; /* Specific height for these cards, still > 200px */
}