/* style/about.css */

/* Base styles for the about page */
.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #f0f0f0; /* Light text for dark body background */
    background-color: transparent; /* body background is handled by shared.css */
}

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

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

.page-about__sub-title {
    font-size: 1.8em;
    color: #FFD700;
    margin-bottom: 20px;
}

.page-about__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
}

.page-about__dark-bg {
    background-color: #1a1a1a; /* Slightly lighter dark for contrast */
    color: #ffffff;
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 700px; /* Ensures hero section is tall enough */
    overflow: hidden;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Apply here as per instruction */
    text-align: center;
}

.page-about__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.page-about__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-about__hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent dark background for text */
    border-radius: 10px;
}

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

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

.page-about__hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary,
.page-about__btn-tertiary {
    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;
    text-align: center;
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    max-width: 100%; /* Ensure buttons don't overflow */
}

.page-about__btn-primary {
    background-color: #FFD700; /* Gold */
    color: #121212; /* Dark text for gold background */
    border: 2px solid #FFD700;
}

.page-about__btn-primary:hover {
    background-color: #e0b800; /* Darker gold */
    border-color: #e0b800;
}

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

.page-about__btn-secondary:hover {
    background-color: #FFD700;
    color: #121212; /* Dark text for gold background */
}

.page-about__btn-tertiary {
    background-color: #8B0000; /* Dark Red */
    color: #ffffff; /* White text for dark red background */
    border: 2px solid #8B0000;
}

.page-about__btn-tertiary:hover {
    background-color: #6b0000; /* Darker red */
    border-color: #6b0000;
}

/* Mission & Vision Section */
.page-about__mission-vision-section {
    padding: 80px 0;
}

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

.page-about__grid--reverse {
    direction: rtl; /* Reverse order for content */
}

.page-about__grid--reverse > .page-about__text-block {
    direction: ltr; /* Reset text direction */
}

.page-about__grid--reverse > .page-about__image-block {
    direction: ltr; /* Reset image direction */
}

.page-about__image-block {
    text-align: center;
}

.page-about__image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px;
}

/* Why Choose Us Section */
.page-about__why-choose-us-section {
    padding: 80px 0;
    background-color: #0d0d0d; /* Slightly different dark background */
}

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

.page-about__feature-card {
    background-color: #1a1a1a;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

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

.page-about__feature-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px;
    min-height: 200px;
}

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

/* Values Section */
.page-about__values-section {
    padding: 80px 0;
}

.page-about__values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.page-about__value-item {
    background-color: #222222;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.page-about__value-title {
    font-size: 1.6em;
    color: #FFD700;
    margin-bottom: 15px;
    font-weight: bold;
}

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

.page-about__responsible-gaming-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: center;
}

.page-about__feature-item {
    background-color: #1a1a1a;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

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

.page-about__responsible-gaming-section a {
    color: #FFD700; /* Gold for links */
    text-decoration: underline;
}

.page-about__responsible-gaming-section a:hover {
    color: #e0b800; /* Darker gold on hover */
}

/* FAQ Section */
.page-about__faq-section {
    padding: 80px 0;
}

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

.page-about__faq-item {
    background-color: #1a1a1a;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

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

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

.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); /* Change + to X or - */
}

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

.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 {
    margin-bottom: 15px;
}

.page-about__faq-answer a {
    color: #FFD700;
    text-decoration: underline;
}

.page-about__faq-answer a:hover {
    color: #e0b800;
}

/* CTA Section */
.page-about__cta-section {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(135deg, #8B0000, #FFD700); /* Gradient background with brand colors */
    color: #ffffff;
}

.page-about__cta-section .page-about__section-title {
    color: #ffffff; /* White title for CTA */
    padding-top: 0;
}

.page-about__cta-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-about__hero-title {
        font-size: 3em;
    }
    .page-about__section-title {
        font-size: 2em;
    }
    .page-about__grid {
        grid-template-columns: 1fr;
    }
    .page-about__grid--reverse {
        direction: ltr; /* Remove rtl for smaller screens */
    }
    .page-about__grid--reverse > .page-about__text-block,
    .page-about__grid--reverse > .page-about__image-block {
        order: unset; /* Reset order for smaller screens */
    }
}

@media (max-width: 768px) {
    .page-about {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-about__container {
        padding: 0 15px;
    }
    .page-about__hero-section {
        min-height: 500px;
        padding: 40px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure hero section is not obscured */
    }
    .page-about__hero-title {
        font-size: 2.5em;
    }
    .page-about__hero-description {
        font-size: 1.1em;
    }
    .page-about__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
        padding-top: 40px;
    }
    .page-about__sub-title {
        font-size: 1.5em;
    }
    .page-about__text-block {
        font-size: 1em;
    }
    .page-about__btn-primary,
    .page-about__btn-secondary,
    .page-about__btn-tertiary {
        padding: 12px 25px;
        font-size: 1em;
        width: 100% !important; /* Force full width for buttons */
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-about__hero-buttons,
    .page-about__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
    }
    .page-about__feature-image,
    .page-about__image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }

    /* All containers with images/videos must ensure no overflow */
    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__hero-section,
    .page-about__mission-vision-section,
    .page-about__why-choose-us-section,
    .page-about__values-section,
    .page-about__responsible-gaming-section,
    .page-about__faq-section,
    .page-about__cta-section,
    .page-about__image-block,
    .page-about__feature-card,
    .page-about__value-item,
    .page-about__feature-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Crucial for preventing horizontal scroll */
        padding-left: 15px;
        padding-right: 15px;
    }
    /* Specific adjustment for sections to avoid double padding if container also has it */
    .page-about__mission-vision-section,
    .page-about__why-choose-us-section,
    .page-about__values-section,
    .page-about__responsible-gaming-section,
    .page-about__faq-section,
    .page-about__cta-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}