.page-about {
    color: #333333; /* Default text color for light body background */
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

.page-about__section--dark {
    background-color: #003366; /* Main brand color */
    color: #ffffff; /* Light text for dark background */
}

.page-about__container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.page-about__hero-section {
    position: relative;
    text-align: center;
    overflow: hidden;
    padding: 0;
    background-color: #003366;
    color: #ffffff;
    min-height: 500px; /* Ensure hero section has a minimum height */
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-about__hero-container {
    position: relative;
    z-index: 2;
    padding: 80px 20px;
    max-width: 900px;
    margin: 0 auto;
}

.page-about__hero-title {
    font-size: 3.5em;
    color: #FFCC00; /* Accent color for title */
    margin-bottom: 20px;
    line-height: 1.2;
}

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

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

.page-about__cta-button {
    display: inline-block;
    background-color: #FFCC00; /* Accent color for buttons */
    color: #003366; /* Dark text for accent button */
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-about__cta-button:hover {
    background-color: #e6b800;
    transform: translateY(-2px);
}

.page-about__cta-button--centered {
    margin-top: 20px;
    align-self: center;
}

.page-about__cta-button--large {
    font-size: 1.3em;
    padding: 18px 35px;
}

.page-about__section-title {
    font-size: 2.8em;
    color: #003366;
    text-align: center;
    margin-bottom: 40px;
}

.page-about__section--dark .page-about__section-title {
    color: #FFCC00;
}

.page-about__section-intro {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: -20px auto 40px auto;
    line-height: 1.6;
}

.page-about__content-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
}

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

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

.page-about__paragraph {
    font-size: 1.05em;
    line-height: 1.7;
    margin-bottom: 20px;
}

.page-about__image {
    flex: 1;
    max-width: 50%; /* Ensures images are not too small but also not too large */
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    min-width: 200px; /* Enforce minimum display size */
    min-height: 200px; /* Enforce minimum display size */
}

.page-about__image--centered {
    display: block;
    margin: 40px auto 0 auto;
    max-width: 80%;
}

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

.page-about__section--dark .page-about__sub-title {
    color: #FFCC00;
}

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

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

.page-about__advantage-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.page-about__advantage-card:hover {
    transform: translateY(-5px);
}

.page-about__section--dark .page-about__advantage-card {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly lighter background for cards on dark section */
    color: #ffffff;
}

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

.page-about__card-description {
    font-size: 1em;
    line-height: 1.6;
    color: #f0f0f0;
}

.page-about__responsible-gaming-section .page-about__link {
    color: #003366;
    text-decoration: underline;
    font-weight: bold;
}

.page-about__responsible-gaming-section .page-about__link:hover {
    color: #FFCC00;
}

.page-about__cta-container {
    text-align: center;
    gap: 20px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-about__hero-title {
        font-size: 2.8em;
    }

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

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

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

    .page-about__content-wrapper {
        flex-direction: column;
        gap: 30px;
    }

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

    .page-about__image {
        max-width: 80%;
    }
}

@media (max-width: 768px) {
    .page-about {
        padding-top: var(--header-offset, 80px); /* Adjust for mobile header offset */
    }

    .page-about__hero-container {
        padding: 60px 15px;
    }

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

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

    .page-about__cta-button {
        padding: 12px 25px;
        font-size: 1em;
    }

    .page-about__section {
        padding: 40px 15px;
    }

    .page-about__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-about__section-intro {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    .page-about__paragraph {
        font-size: 0.95em;
    }

    .page-about__sub-title {
        font-size: 1.5em;
    }

    .page-about__content-grid,
    .page-about__advantages-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-about__image {
        max-width: 100%;
        height: auto; /* Crucial for mobile overflow prevention */
        min-width: 200px; /* Still enforce minimum display size */
        min-height: 200px; /* Still enforce minimum display size */
    }
    
    /* Ensure all images within .page-about are responsive and don't cause overflow */
    .page-about img {
        max-width: 100%;
        height: auto;
    }
}

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

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

    .page-about__cta-button--large {
        font-size: 1.1em;
        padding: 15px 25px;
    }
}