/* style/about.css */

/* Global styles for About Us page */
.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #FFF6D6; /* Text Main color, chosen for dark background #0A0A0A */
    background-color: #0A0A0A; /* Matches body background from shared.css */
}

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

.page-about__section-title {
    font-size: 2.5em;
    color: #F2C14E; /* Main brand color */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 1px;
}

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

/* Hero Section */
.page-about__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    text-align: center;
    padding-bottom: 50px;
    background: #0A0A0A; /* Dark background */
    padding-top: var(--header-offset, 120px); /* Fixed header spacing for desktop */
}

.page-about__hero-image-wrapper {
    width: 100%;
    max-height: 675px; /* Fixed height for aspect ratio */
    overflow: hidden;
    margin-bottom: 30px;
}

.page-about__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
}

.page-about__hero-content {
    max-width: 900px;
    padding: 0 15px;
}

.page-about__hero-title {
    font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size for H1 */
    color: #FFD36B; /* Accent color */
    margin-bottom: 20px;
    font-weight: 800;
    letter-spacing: 1.5px;
    line-height: 1.2;
}

.page-about__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #FFF6D6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-about__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Custom button gradient */
    color: #111111; /* Dark text for bright button */
    border: 2px solid transparent;
    margin: 10px;
}

.page-about__btn-primary:hover {
    background: linear-gradient(180deg, #FFE080 0%, #E6B020 100%);
    box-shadow: 0 0 15px rgba(242, 193, 78, 0.6);
}

.page-about__btn-secondary {
    background: transparent;
    color: #F2C14E; /* Main brand color */
    border: 2px solid #F2C14E; /* Border color */
    margin: 10px;
}

.page-about__btn-secondary:hover {
    background: #F2C14E;
    color: #111111;
    box-shadow: 0 0 15px rgba(242, 193, 78, 0.6);
}

/* Mission Section */
.page-about__mission-section,
.page-about__difference-section,
.page-about__security-section,
.page-about__games-section,
.page-about__responsible-gaming-section,
.page-about__cta-section,
.page-about__faq-section,
.page-about__partners-section {
    padding: 60px 0;
}

.page-about__mission-section {
    background-color: #111111; /* Card BG color */
}

.page-about__mission-grid {
    display: flex;
    gap: 40px;
    align-items: center;
}

.page-about__mission-text {
    flex: 1;
    font-size: 1.1em;
    color: #FFF6D6;
}

.page-about__mission-text p {
    margin-bottom: 15px;
}

.page-about__mission-image-wrapper {
    flex: 1;
    min-width: 200px; /* Ensure minimum size */
}

.page-about__mission-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    object-fit: cover;
}

/* Difference Section (Features Grid) */
.page-about__difference-section {
    background-color: #0A0A0A;
}

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

.page-about__feature-card {
    background-color: #111111; /* Card BG color */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    border: 1px solid #3A2A12; /* Border color */
}

.page-about__card-title {
    font-size: 1.5em;
    color: #F2C14E;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-about__card-text {
    color: #FFF6D6;
}

/* Security Section */
.page-about__security-section {
    background-color: #111111; /* Card BG color */
}

.page-about__security-content {
    display: flex;
    gap: 40px;
    align-items: center;
    flex-direction: row-reverse; /* Image on right, text on left */
}

.page-about__security-image-wrapper {
    flex: 1;
    min-width: 200px;
}

.page-about__security-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    object-fit: cover;
}

.page-about__security-text {
    flex: 1;
    font-size: 1.1em;
    color: #FFF6D6;
}

.page-about__security-text p {
    margin-bottom: 15px;
}

/* Games Section */
.page-about__games-section {
    background-color: #0A0A0A;
}

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

.page-about__game-card {
    background-color: #111111; /* Card BG color */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid #3A2A12; /* Border color */
    text-align: center;
}

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

.page-about__game-card .page-about__card-title {
    margin-top: 20px;
    font-size: 1.3em;
    color: #FFD36B;
}

.page-about__game-card .page-about__card-text {
    padding: 0 20px 20px;
    color: #FFF6D6;
}

.page-about__cta-center {
    text-align: center;
    margin-top: 20px;
}

/* Responsible Gaming Section */
.page-about__responsible-gaming-section {
    background-color: #111111; /* Card BG color */
}

.page-about__responsible-gaming-content {
    display: flex;
    gap: 40px;
    align-items: center;
}

.page-about__responsible-gaming-image-wrapper {
    flex: 1;
    min-width: 200px;
}

.page-about__responsible-gaming-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    object-fit: cover;
}

.page-about__responsible-gaming-text {
    flex: 1;
    font-size: 1.1em;
    color: #FFF6D6;
}

.page-about__responsible-gaming-text p {
    margin-bottom: 15px;
}

/* CTA Section */
.page-about__cta-section {
    background-color: #0A0A0A;
    text-align: center;
}

.page-about__cta-content {
    max-width: 900px;
}

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

/* FAQ Section */
.page-about__faq-section {
    background-color: #111111; /* Card BG color */
}

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

.page-about__faq-item {
    background-color: #0A0A0A;
    border: 1px solid #3A2A12;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #FFF6D6;
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: #F2C14E; /* Main brand color for questions */
    transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
    background-color: rgba(242, 193, 78, 0.1);
}

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

.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 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    font-size: 1.05em;
    color: #FFF6D6;
}

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

.page-about__faq-answer p {
    margin-bottom: 10px;
}

/* Partners Section */
.page-about__partners-section {
    background-color: #0A0A0A;
    text-align: center;
}

.page-about__partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.page-about__partner-logo {
    background-color: #111111; /* Card BG color */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 167px;
    max-width: 167px; /* Fixed width */
    height: 127px; /* Fixed height */
    border: 1px solid #3A2A12; /* Border color */
}

.page-about__partner-logo img {
    width: 100%;
    height: auto;
     /* Adjust max-height for logo fit within container */
    object-fit: contain;
    filter: none; /* Ensure no filter is applied as per strict instruction */
}


/* Responsive Styles */
@media (max-width: 1024px) {
    .page-about__section-title {
        font-size: 2em;
    }
    .page-about__hero-title {
        font-size: clamp(1.8em, 5vw, 2.8em);
    }
    .page-about__mission-grid,
    .page-about__security-content,
    .page-about__responsible-gaming-content {
        flex-direction: column;
        text-align: center;
    }
    .page-about__mission-text,
    .page-about__security-text,
    .page-about__responsible-gaming-text {
        padding: 0 15px;
    }
    .page-about__mission-image-wrapper,
    .page-about__security-image-wrapper,
    .page-about__responsible-gaming-image-wrapper {
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .page-about {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-about__hero-section {
        padding-top: var(--header-offset, 100px) !important; /* Mobile fixed header spacing */
    }
    .page-about__hero-title {
        font-size: clamp(1.6em, 6vw, 2.5em);
    }
    .page-about__section-title {
        font-size: 1.8em;
    }
    .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-left: 15px;
        padding-right: 15px;
        margin: 5px 0; /* Adjust margin for stacked buttons */
    }
    .page-about__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
        padding: 0 15px;
    }

    /* Images responsiveness */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }
    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__hero-section,
    .page-about__mission-section,
    .page-about__difference-section,
    .page-about__security-section,
    .page-about__games-section,
    .page-about__responsible-gaming-section,
    .page-about__cta-section,
    .page-about__faq-section,
    .page-about__partners-section,
    .page-about__feature-card,
    .page-about__game-card,
    .page-about__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-about__partner-logo {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important; /* Allow height to adjust */
        padding: 15px;
    }
    .page-about__partner-logo img {
         /* Smaller max-height for mobile logos */
    }
    .page-about__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }
    .page-about__faq-answer {
        padding: 0 20px;
    }
    .page-about__faq-item.active .page-about__faq-answer {
        padding: 10px 20px;
    }
}

/* Ensure no filter is applied to images, as per strict instruction */
.page-about img {
    filter: none !important;
}