/* style/about.css */

/* Base styles and variables */
:root {
    --primary-color: #FFD700;
    --secondary-color: #8B0000;
    --text-light: #ffffff;
    --text-dark: #333333;
    --bg-dark: #121212; /* From body background */
    --card-bg-dark: rgba(255, 255, 255, 0.08);
    --card-bg-light: #ffffff;
}

.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-light); /* Default text color for dark body background */
    background-color: var(--bg-dark); /* Ensure consistency if body bg is not applied directly */
}

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

.page-about__section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.page-about__dark-bg {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.page-about__light-bg {
    background-color: var(--card-bg-light);
    color: var(--text-dark);
}

.page-about__section-title {
    font-size: 2.8em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-about__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    line-height: 1.8;
    text-align: justify;
}

.page-about__text-block a {
    color: var(--primary-color);
    text-decoration: none;
}

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

/* Hero Section */
.page-about__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 0 60px 0;
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
    position: relative;
    min-height: 500px;
    background-size: cover;
    background-position: center;
}

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

.page-about__hero-title {
    font-size: 3.5em;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-about__hero-description {
    font-size: 1.4em;
    color: var(--text-light);
    max-width: 800px;
    margin-bottom: 40px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* 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;
}

.page-about__btn-primary {
    background-color: var(--primary-color);
    color: var(--text-dark); /* Dark text on primary color for contrast */
    border: 2px solid var(--primary-color);
}

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

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

.page-about__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-dark);
}

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

/* Image content */
.page-about__image-content {
    display: block;
    margin: 40px auto;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Our Values Section */
.page-about__our-values .page-about__section-title {
    color: var(--primary-color);
}

.page-about__values-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-about__value-item {
    background-color: var(--card-bg-dark);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    color: var(--text-light);
}

.page-about__value-title {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-about__value-description {
    font-size: 1em;
    line-height: 1.7;
}

/* Why Choose Us Section */
.page-about__why-choose-us .page-about__section-title {
    color: var(--secondary-color);
}

.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: var(--card-bg-light);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    color: var(--text-dark);
    border: 1px solid #eee;
}

.page-about__feature-card .page-about__card-title {
    font-size: 1.8em;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.page-about__feature-card .page-about__card-description {
    font-size: 1em;
    line-height: 1.7;
}

.page-about__feature-card a {
    color: var(--secondary-color);
    text-decoration: none;
}

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

/* Responsible Gaming & Future Vision */
.page-about__responsible-gaming .page-about__section-title {
    color: var(--primary-color);
}

.page-about__future-vision .page-about__section-title {
    color: var(--secondary-color);
}

/* CTA Bottom */
.page-about__cta-bottom .page-about__section-title {
    color: var(--primary-color);
}

/* FAQ Section */
.page-about__faq-section .page-about__section-title {
    color: var(--secondary-color);
}

.page-about__faq-list {
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    background-color: #f9f9f9;
    transition: background-color 0.3s ease;
}

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

.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);
}

.page-about__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

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

.page-about__faq-answer p {
    font-size: 1em;
    line-height: 1.7;
    margin-bottom: 10px;
}

.page-about__faq-answer a {
    color: var(--secondary-color);
    text-decoration: none;
}

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

/* Responsive Styles */
@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;
    }
}

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

    .page-about__section {
        padding: 60px 0;
    }

    .page-about__hero-section {
        padding: 100px 0 50px 0;
        padding-top: var(--header-offset, 120px) !important; /* Ensure space for fixed header on mobile */
    }

    .page-about__hero-title {
        font-size: 2.5em;
    }

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

    .page-about__btn-primary,
    .page-about__btn-secondary {
        padding: 12px 20px;
        font-size: 1em;
    }

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

    .page-about__btn-secondary {
        margin-left: 0;
    }

    .page-about__values-list,
    .page-about__features-grid {
        grid-template-columns: 1fr;
    }

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

    .page-about__value-title,
    .page-about__feature-card .page-about__card-title {
        font-size: 1.5em;
    }

    .page-about__text-block,
    .page-about__value-description,
    .page-about__feature-card .page-about__card-description {
        font-size: 0.95em;
    }
    
    /* Mobile image responsiveness */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-about__section,
    .page-about__container,
    .page-about__card,
    .page-about__cta-buttons,
    .page-about__faq-list,
    .page-about__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    /* Mobile button responsiveness */
    .page-about__cta-button,
    .page-about__btn-primary,
    .page-about__btn-secondary,
    .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;
      padding-right: 15px;
    }

    .page-about__cta-buttons {
      display: flex;
      flex-direction: column !important; /* Force vertical stack */
      gap: 10px;
    }
}

@media (max-width: 480px) {
    .page-about__hero-title {
        font-size: 2em;
    }

    .page-about__section-title {
        font-size: 1.6em;
    }
    
    .page-about__faq-question {
        font-size: 1.1em;
    }
}