/* style/about.css */

/* Root variables for consistent spacing and colors */
:root {
    --header-offset: 120px; /* Default for desktop, adjusted in shared.css for mobile */
    --color-primary: #F2C14E;
    --color-secondary: #FFD36B;
    --color-dark-bg: #0A0A0A;
    --color-card-bg: #111111;
    --color-text-main: #FFF6D6;
    --color-border: #3A2A12;
    --color-glow: #FFD36B;
    --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    --button-text-color: #ffffff;
    --button-hover-bg: #E0B44B;
    --button-secondary-hover-text: #FFD36B;
}

/* Base styles for the About Us page */
.page-about {
    font-family: Arial, sans-serif;
    color: var(--color-text-main); /* Default text color for the page */
    background-color: var(--color-dark-bg);
    line-height: 1.6;
}

/* Container for content sections */
.page-about__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

/* Section Titles */
.page-about__section-title {
    font-size: clamp(2em, 4vw, 2.8em);
    color: var(--color-secondary);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 0.05em;
}

.page-about__section-description {
    font-size: clamp(1em, 2vw, 1.2em);
    color: var(--color-text-main);
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__content-text {
    font-size: 1.1em;
    color: var(--color-text-main);
    margin-bottom: 20px;
}

/* Card Base Style */
.page-about__card {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    color: var(--color-text-main);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), 0 0 15px var(--color-glow);
}

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

.page-about__card-text {
    font-size: 1em;
    color: var(--color-text-main);
    line-height: 1.6;
}

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 10px;
    box-sizing: border-box;
}

.page-about__btn-primary {
    background: var(--button-gradient);
    color: var(--button-text-color);
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-about__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3), 0 0 10px var(--color-glow);
}

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

.page-about__btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--button-text-color);
    transform: translateY(-2px);
}

/* Hero Section */
.page-about__hero-section {
    padding-top: var(--header-offset, 120px);
    background: var(--color-dark-bg);
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 600px;
}

.page-about__hero-content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.page-about__hero-text-container {
    max-width: 800px;
}

.page-about__main-title {
    font-size: clamp(2.5em, 5vw, 3.5em);
    color: var(--color-secondary);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.1;
    letter-spacing: 0.03em;
}

.page-about__hero-description {
    font-size: clamp(1.1em, 2.2vw, 1.4em);
    color: var(--color-text-main);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__hero-image-container {
    width: 100%;
    max-width: 900px;
    margin-top: 30px;
}

.page-about__hero-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 20px var(--color-glow);
}

/* Mission & Vision Section */
.page-about__mission-vision-section {
    background-color: var(--color-dark-bg);
    padding: 60px 0;
}

.page-about__mission-vision-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

/* Our Story Section */
.page-about__our-story-section {
    background-color: var(--color-card-bg);
    padding: 60px 0;
}

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

.page-about__story-image-wrapper {
    text-align: center;
}

.page-about__story-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Why Choose Us Section */
.page-about__why-choose-us-section {
    background-color: var(--color-dark-bg);
    padding: 60px 0;
}

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

/* Game Portfolio Section */
.page-about__game-portfolio-section {
    background-color: var(--color-card-bg);
    padding: 60px 0;
}

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

.page-about__category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    padding: 25px;
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    color: var(--color-text-main);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), 0 0 15px var(--color-glow);
}

.page-about__category-icon {
    width: 30px;
    height: 30px;
    margin-bottom: 15px;
    filter: brightness(1.2); /* Slight brightness to make icons pop on dark bg */
}

/* Our Team Section */
.page-about__our-team-section {
    background-color: var(--color-dark-bg);
    padding: 60px 0;
}

.page-about__team-image-wrapper {
    text-align: center;
}

.page-about__team-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Partnerships Section */
.page-about__partnerships-section {
    background-color: var(--color-card-bg);
    padding: 60px 0;
}

.page-about__partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    justify-items: center;
    align-items: center;
}

.page-about__partner-logo-wrapper {
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 100px;
    min-height: 80px;
    max-width: 167px;
    max-height: 127px;
}

.page-about__partner-logo {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    filter: grayscale(100%) brightness(1.8); /* Make logos fit dark theme */
}

/* Awards Section */
.page-about__awards-section {
    background-color: var(--color-dark-bg);
    padding: 60px 0;
}

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

/* Responsible Gaming Section */
.page-about__responsible-gaming-section {
    background-color: var(--color-card-bg);
    padding: 60px 0;
    text-align: center;
}

/* CTA Section */
.page-about__cta-section {
    background-color: var(--color-dark-bg);
    padding: 60px 0;
    text-align: center;
}

/* FAQ Section */
.page-about__faq-section {
    background-color: var(--color-card-bg);
    padding: 60px 0;
}

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

.page-about__faq-item {
    background-color: var(--color-dark-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.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: var(--color-primary);
    transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

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

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

.page-about__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--color-text-main);
}

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

.page-about__faq-answer p {
    margin: 0;
    font-size: 1em;
    line-height: 1.6;
}

/* Link styling within content */
.page-about a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Responsive adjustments */
@media (min-width: 769px) {
    .page-about__hero-content-wrapper {
        flex-direction: row; /* Desktop: image and text side-by-side */
        text-align: left;
    }

    .page-about__hero-text-container {
        text-align: left;
    }

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

    .page-about__team-image-wrapper {
        order: 2;
    }

    .page-about__team-text {
        order: 1;
    }

    .page-about__mission-vision-wrapper {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .page-about__container {
        padding: 20px 15px;
    }

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

    .page-about__hero-section {
        padding-top: var(--header-offset, 100px) !important; /* Mobile specific header offset */
        min-height: auto;
    }

    .page-about__hero-content-wrapper {
        flex-direction: column;
        text-align: center;
        padding: 30px 15px;
    }

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

    .page-about__hero-description {
        font-size: 1.1em;
    }

    .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: 10px 0;
    }
    
    .page-about__cta-section .page-about__btn-primary,
    .page-about__cta-section .page-about__btn-secondary {
        display: block; /* Stack buttons vertically */
    }

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

    .page-about__story-image,
    .page-about__team-image {
        max-width: 100%;
    }

    .page-about__partner-logo {
        max-width: 100%;
        height: auto;
    }

    /* Mobile image responsiveness */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }
    
    .page-about__hero-image-container,
    .page-about__story-image-wrapper,
    .page-about__team-image-wrapper,
    .page-about__partner-logo-wrapper,
    .page-about__category-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden;
        padding-left: 0;
        padding-right: 0;
    }

    .page-about__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }

    .page-about__faq-answer {
        padding: 0 20px;
    }

    .page-about__faq-item.active .page-about__faq-answer {
        padding: 10px 20px 20px;
    }
}