/* style/about.css */

/* General Page Styling */
.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Body background is dark, so text is light */
    background-color: #000; /* Assuming body background is black from shared.css */
}

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

.page-about__section-title {
    font-size: 2.8em;
    color: #FFD700; /* Gold for main titles */
    text-align: center;
    margin-bottom: 40px;
    padding-top: 40px;
    font-weight: bold;
}

.page-about__sub-title {
    font-size: 1.8em;
    color: #FFD700;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-about__intro-text {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
    color: #f0f0f0;
}

.page-about p {
    margin-bottom: 1em;
    color: #f0f0f0;
}

.page-about a {
    color: #FFD700; /* Links in gold */
    text-decoration: none;
}

.page-about a:hover {
    text-decoration: underline;
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    width: 100%;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background-color: #0A2463; /* Fallback */
    color: #ffffff;
    padding-bottom: 60px;
}

.page-about__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.4;
    filter: brightness(0.7); /* Darken image for text readability */
}

.page-about__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 20px;
}

.page-about__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #FFD700; /* Gold for hero title */
    font-weight: bold;
    line-height: 1.2;
}

.page-about__hero-description {
    font-size: 1.4em;
    margin-bottom: 40px;
    color: #f0f0f0;
}

.page-about__hero-cta-button {
    display: inline-block;
    background-color: #FFD700; /* Gold button */
    color: #0A2463; /* Dark blue text for contrast */
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.page-about__hero-cta-button:hover {
    background-color: #e0b800;
    color: #0A2463;
    text-decoration: none;
}

/* Mission & Vision Section */
.page-about__mission-vision-section {
    padding: 80px 0;
    background-color: #0A2463; /* Brand primary color */
    color: #ffffff;
}

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

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

/* Why Choose Us Section */
.page-about__why-choose-us-section {
    padding: 80px 0;
    background-color: #1a1a1a; /* Dark background for contrast */
    color: #f0f0f0;
}

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

.page-about__feature-card {
    background-color: rgba(255, 255, 255, 0.1);
    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__card-title {
    font-size: 1.5em;
    color: #FFD700;
    margin-bottom: 15px;
}

/* Games & Products Section */
.page-about__games-products-section {
    padding: 80px 0;
    background-color: #0A2463;
    color: #ffffff;
}

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

.page-about__game-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 10px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-about__game-card .page-about__card-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: #FFD700;
}

.page-about__game-card .page-about__card-title a {
    color: #FFD700;
    text-decoration: none;
}

.page-about__game-card .page-about__card-title a:hover {
    text-decoration: underline;
}

/* Responsible Gaming Section */
.page-about__responsible-gaming-section {
    padding: 80px 0;
    background-color: #1a1a1a;
    color: #f0f0f0;
}

.page-about__responsibility-list {
    list-style: none;
    padding: 0;
    margin: 50px auto 0 auto;
    max-width: 800px;
}

.page-about__responsibility-list li {
    background-color: rgba(255, 255, 255, 0.05);
    margin-bottom: 15px;
    padding: 20px;
    border-left: 5px solid #FFD700;
    border-radius: 5px;
    font-size: 1.1em;
}

.page-about__responsibility-list li strong {
    color: #FFD700;
}

.page-about__outro-text {
    text-align: center;
    margin-top: 40px;
    font-size: 1.1em;
    color: #f0f0f0;
}

/* FAQ Section */
.page-about__faq-section {
    padding: 80px 0;
    background-color: #0A2463;
    color: #ffffff;
}

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

.page-about__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    color: #f0f0f0;
    cursor: pointer;
    background-color: #0A2463; /* Darker background for question */
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.page-about__faq-question:hover {
    background-color: #1a3a7a; /* Slightly lighter on hover */
}

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

.page-about__faq-item.active .page-about__faq-toggle {
    transform: rotate(0deg); /* No rotation, just change text */
}

.page-about__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: rgba(255, 255, 255, 0.05);
    color: #f0f0f0;
}

.page-about__faq-item.active .page-about__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 20px !important;
}

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

/* CTA Section */
.page-about__cta-section {
    padding: 80px 0;
    text-align: center;
    background-color: #1a1a1a;
    color: #f0f0f0;
    position: relative;
    overflow: hidden;
}

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

.page-about__cta-section .page-about__intro-text {
    margin-bottom: 40px;
}

.page-about__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: bold;
    text-transform: uppercase;
    margin: 0 10px 20px 10px;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.page-about__cta-button--primary {
    background-color: #FFD700; /* Gold button */
    color: #0A2463; /* Dark blue text */
    border: 2px solid #FFD700;
}

.page-about__cta-button--primary:hover {
    background-color: #e0b800;
    color: #0A2463;
    text-decoration: none;
}

.page-about__cta-button--secondary {
    background-color: transparent;
    color: #FFD700; /* Gold text */
    border: 2px solid #FFD700;
}

.page-about__cta-button--secondary:hover {
    background-color: #FFD700;
    color: #0A2463;
    text-decoration: none;
}

.page-about__cta-section .page-about__image {
    position: absolute;
    bottom: 0;
    right: 0;
    opacity: 0.2;
    z-index: 0;
    max-width: 500px; /* Adjust size for visual effect */
    height: auto;
    filter: grayscale(100%) brightness(0.5); /* Desaturate and darken */
}

/* Image Styling */
.page-about__image {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 40px auto;
}

.page-about__image--center {
    margin-left: auto;
    margin-right: auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__hero-title {
        font-size: 3em;
    }
    .page-about__hero-description {
        font-size: 1.2em;
    }
    .page-about__section-title {
        font-size: 2.2em;
    }
    .page-about__content-grid {
        grid-template-columns: 1fr;
    }
    .page-about__text-block {
        padding-right: 0;
    }
}

@media (max-width: 768px) {
    .page-about {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-about__hero-section {
        min-height: 450px;
        padding-bottom: 40px;
    }
    .page-about__hero-title {
        font-size: 2.2em;
    }
    .page-about__hero-description {
        font-size: 1em;
    }
    .page-about__hero-cta-button {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-about__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
        padding-top: 30px;
    }
    .page-about__sub-title {
        font-size: 1.5em;
    }
    .page-about__intro-text {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-about__features-grid,
    .page-about__games-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-about__feature-card,
    .page-about__game-card {
        padding: 20px;
    }
    .page-about__card-title {
        font-size: 1.3em;
    }
    .page-about__responsibility-list {
        margin-top: 30px;
    }
    .page-about__responsibility-list li {
        font-size: 1em;
        padding: 15px;
    }
    .page-about__faq-question {
        font-size: 1.1em;
        padding: 15px;
    }
    .page-about__faq-answer {
        padding: 0 15px;
    }
    .page-about__faq-item.active .page-about__faq-answer {
        padding: 15px !important;
    }
    .page-about__cta-button {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin: 0 0 15px 0;
    }
    .page-about__cta-section .page-about__image {
        position: static;
        margin-top: 40px;
        max-width: 100%;
        opacity: 0.1;
    }

    /* Mobile specific image adaptation */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-about__container,
    .page-about__hero-section,
    .page-about__mission-vision-section,
    .page-about__why-choose-us-section,
    .page-about__games-products-section,
    .page-about__responsible-gaming-section,
    .page-about__faq-section,
    .page-about__cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-about__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset for mobile */
    }
}

/* Dark background for sections where needed, ensuring light text */
.page-about__dark-section {
    background-color: #0A2463;
    color: #ffffff;
}

/* Ensure images are not filtered for color change */
.page-about img {
    filter: none; /* No CSS filter to change image colors */
}

/* Text contrast fixes if needed for specific elements */
.page-about__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-about__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}