/* style/about.css */

/* Base styles for the About Us page */
.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for default light body background */
    background-color: #f8f8f8; /* Light background for the page content */
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    overflow-x: hidden; /* Prevent horizontal scroll on mobile */
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    color: #ffffff;
    text-align: center;
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 500px; /* Ensure hero has a decent height */
    overflow: hidden; /* Ensure image doesn't overflow */
}

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

.page-about__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the entire area */
    display: block;
}

.page-about__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Darken with overlay */
    z-index: 1; /* Place above image, below content */
}

.page-about__hero-content {
    position: relative;
    z-index: 2; /* Ensure content is above overlay */
    max-width: 900px;
    margin: 0 auto;
}

.page-about__title {
    font-size: 3em;
    margin-bottom: 20px;
    color: #FFD700; /* Gold for title */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-about__description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f0f0f0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

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

.page-about__button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.page-about__button--primary {
    background-color: #FFD700; /* Gold */
    color: #1A202C; /* Deep blue-grey */
    border: 2px solid #FFD700;
}

.page-about__button--primary:hover {
    background-color: #e6c200;
    transform: translateY(-2px);
}

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

.page-about__button--secondary:hover {
    background-color: rgba(255, 215, 0, 0.1);
    transform: translateY(-2px);
}

/* General Section Styles */
.page-about__section {
    padding: 60px 20px;
    background-color: #ffffff;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__section-container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.page-about__section-container--reverse {
    flex-direction: row-reverse;
}

.page-about__text-content {
    flex: 1;
}

.page-about__image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-about__image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: block; /* Ensure it behaves as a block element */
    min-width: 200px;
    min-height: 200px;
}

.page-about__section-title {
    font-size: 2.2em;
    color: #1A202C; /* Deep blue-grey */
    margin-bottom: 25px;
    border-bottom: 3px solid #FFD700; /* Gold underline */
    padding-bottom: 10px;
    display: inline-block;
}

.page-about__text-content p {
    margin-bottom: 15px;
    font-size: 1.1em;
    color: #555555;
}

.page-about__list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.page-about__list-item {
    background-color: #f9f9f9;
    margin-bottom: 10px;
    padding: 15px 20px;
    border-left: 5px solid #FFD700;
    border-radius: 5px;
    font-size: 1.1em;
    color: #444444;
}

.page-about__list-item strong {
    color: #1A202C;
}

.page-about__link {
    color: #FFD700;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-about__link:hover {
    color: #e6c200;
    text-decoration: underline;
}

/* Call to Action Section */
.page-about__cta-section {
    text-align: center;
    padding: 80px 20px;
    background-color: #1A202C; /* Deep blue-grey background */
    color: #ffffff;
    border-radius: 8px;
    max-width: 1200px;
    margin: 20px auto 40px auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.page-about__cta-title {
    font-size: 2.8em;
    color: #FFD700; /* Gold */
    margin-bottom: 20px;
}

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

/* Responsible Gaming specific adjustments */
.page-about__responsible-gaming .page-about__image {
    width: 600px; /* Specific width for this image */
    height: 400px; /* Specific height for this image */
    object-fit: cover;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__title {
        font-size: 2.5em;
    }
    .page-about__description {
        font-size: 1.1em;
    }
    .page-about__section-title {
        font-size: 2em;
    }
    .page-about__cta-title {
        font-size: 2.5em;
    }
    .page-about__cta-description {
        font-size: 1.2em;
    }
}

@media (max-width: 768px) {
    .page-about {
        padding-top: var(--header-offset, 120px); /* Ensure mobile also has offset */
    }

    .page-about__hero-section {
        padding: 60px 20px;
        min-height: 400px;
    }

    .page-about__title {
        font-size: 2em;
    }

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

    .page-about__cta-group {
        flex-direction: column;
        gap: 15px;
    }

    .page-about__button {
        width: 80%;
        max-width: 300px;
    }

    .page-about__section-container {
        flex-direction: column;
        gap: 30px;
    }

    .page-about__section-container--reverse {
        flex-direction: column; /* Revert to column for small screens */
    }

    .page-about__text-content {
        text-align: center;
    }

    .page-about__image-wrapper {
        order: -1; /* Image appears above text in column layout */
    }

    .page-about__image {
        max-width: 100%; /* Ensure images don't overflow */
        height: auto;
        min-width: 200px; /* Maintain min-width */
        min-height: 200px; /* Maintain min-height */
    }

    .page-about__cta-section {
        padding: 60px 20px;
    }

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

    .page-about__cta-description {
        font-size: 1em;
    }

    /* Important: Mobile content area images must be constrained */
    .page-about img {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .page-about__title {
        font-size: 1.8em;
    }
    .page-about__section-title {
        font-size: 1.6em;
    }
    .page-about__cta-title {
        font-size: 1.8em;
    }
    .page-about__button {
        width: 100%;
    }
}