/* style/about.css */

/* Custom Colors */
:root {
    --color-primary: #11A84E;
    --color-secondary: #22C768;
    --color-button-gradient-start: #2AD16F;
    --color-button-gradient-end: #13994A;
    --color-card-bg: #11271B;
    --color-background: #08160F;
    --color-text-main: #F2FFF6;
    --color-text-secondary: #A7D9B8;
    --color-border: #2E7A4E;
    --color-glow: #57E38D;
    --color-gold: #F2C14E;
    --color-deep-green: #0A4B2C;
}

/* Base styles for the page-about scope */
.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--color-text-main); /* Light text on dark body background */
    background-color: var(--color-background); /* Ensures consistent background if shared.css doesn't apply it */
}

/* Ensure headings and strong elements use main text color or gold for emphasis */
.page-about h1,
.page-about h2,
.page-about h3,
.page-about h4,
.page-about h5,
.page-about h6 {
    color: var(--color-text-main);
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-about strong {
    color: var(--color-gold); /* Emphasize keywords */
}

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

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

/* Section styling */
.page-about__section {
    padding: 60px 0;
    position: relative;
    overflow: hidden; /* Prevent content overflow */
}

.page-about__section--mission {
    background-color: var(--color-deep-green);
}

.page-about__section--licenses {
    background-color: var(--color-background);
}

.page-about__section--products {
    background-color: var(--color-deep-green);
}

.page-about__section--technology {
    background-color: var(--color-background);
}

.page-about__section--promotions {
    background-color: var(--color-deep-green);
}

.page-about__section--support {
    background-color: var(--color-background);
}

.page-about__section--responsible-gambling {
    background-color: var(--color-deep-green);
}

.page-about__section--future {
    background-color: var(--color-background);
}

.page-about__section--faq {
    background-color: var(--color-deep-green);
}

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

/* Hero Section */
.page-about__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Adjust height as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: 10px; /* Small top padding, body handles header offset */
    box-sizing: border-box;
}

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

.page-about__hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 40px;
    background: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay for text readability */
    border-radius: 10px;
    box-sizing: border-box;
}

.page-about__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive H1 font size */
    font-weight: bold;
    color: var(--color-gold);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-about__description {
    font-size: 1.1rem;
    color: var(--color-text-main);
    margin-bottom: 30px;
}

/* Content Layout */
.page-about__content-wrapper {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
}

.page-about__content-wrapper--reverse {
    flex-direction: row-reverse;
}

.page-about__text-block {
    flex: 1;
    min-width: 300px;
    font-size: 1rem;
    color: var(--color-text-main);
}

.page-about__image-block {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-about__image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    /* No filter properties to change color */
}

/* Ensure content images are not smaller than 200px */
.page-about__section img:not(.page-about__hero-image) {
    min-width: 200px;
    min-height: 200px;
}

/* Headings */
.page-about__heading {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--color-gold);
    text-align: center;
    margin-bottom: 50px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Lists */
.page-about__list {
    list-style: disc;
    margin-left: 20px;
    padding-left: 0;
    color: var(--color-text-main);
}

.page-about__list li {
    margin-bottom: 10px;
}

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

.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    max-width: 100%; /* For button responsiveness */
    box-sizing: border-box; /* For button responsiveness */
    white-space: normal; /* For button responsiveness */
    word-wrap: break-word; /* For button responsiveness */
}

.page-about__btn-primary {
    background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
    color: var(--color-text-main); /* White text on dark button */
    border: none;
}

.page-about__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    background: linear-gradient(180deg, var(--color-glow) 0%, var(--color-primary) 100%);
}

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

.page-about__btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    background-color: var(--color-gold);
    color: var(--color-background); /* Dark text on gold button */
}

/* FAQ Section */
.page-about__faq-list {
    margin-top: 40px;
    border-top: 1px solid var(--color-divider);
}

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

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--color-text-main);
    background-color: var(--color-deep-green); /* Slightly lighter dark green for question background */
    transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
    background-color: var(--color-primary);
}

.page-about__faq-qtext {
    flex-grow: 1;
    color: var(--color-gold);
}

.page-about__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
    color: var(--color-gold);
}

.page-about__faq-item[open] .page-about__faq-toggle {
    content: "−";
}

.page-about__faq-answer {
    padding: 20px 25px;
    background-color: var(--color-card-bg);
    color: var(--color-text-secondary);
    font-size: 1rem;
}

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

.page-about__faq-answer p:last-child {
    margin-bottom: 0;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .page-about__content-wrapper {
        flex-direction: column;
        gap: 30px;
    }

    .page-about__content-wrapper--reverse {
        flex-direction: column; /* Revert to default column on small screens */
    }

    .page-about__text-block,
    .page-about__image-block {
        min-width: unset;
        width: 100%;
    }

    .page-about__hero-section {
        height: 500px;
    }

    .page-about__hero-content {
        padding: 30px;
    }

    .page-about__main-title {
        font-size: clamp(2rem, 6vw, 3rem);
    }
}

@media (max-width: 768px) {
    .page-about__section {
        padding: 40px 0;
    }

    .page-about__hero-section {
        height: 400px;
        padding-top: 10px !important; /* body handles header offset, this is decorative */
    }

    .page-about__hero-content {
        padding: 20px;
        max-width: 90%;
    }

    .page-about__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }

    .page-about__description {
        font-size: 1rem;
    }

    .page-about__heading {
        font-size: clamp(1.8rem, 5vw, 2.2rem);
        margin-bottom: 30px;
    }

    /* Mobile image responsiveness */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Ensure content area images are not smaller than 200px, even on mobile */
    .page-about__section img:not(.page-about__hero-image) {
        min-width: 200px !important;
        min-height: 200px !important;
    }

    /* Mobile button responsiveness */
    .page-about__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .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: 12px 20px !important;
    }

    /* Container padding for mobile */
    .page-about__container {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
}

@media (max-width: 480px) {
    .page-about__hero-section {
        height: 350px;
    }
    .page-about__main-title {
        font-size: clamp(1.5rem, 8vw, 2rem);
    }
    .page-about__description {
        font-size: 0.9rem;
    }
    .page-about__heading {
        font-size: clamp(1.5rem, 6vw, 1.8rem);
    }
    .page-about__faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }
}