/* style/about.css */

/* Base styling for the about page content */
.page-about {
    color: #ffffff; /* Light text for dark body background */
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

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

/* Hero Section */
.page-about__hero-section {
    position: relative;
    overflow: hidden;
    padding: 80px 0;
    background: linear-gradient(135deg, #0A2342, #051426); /* Gradient background for depth */
}

.page-about__hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

.page-about__hero-image {
    width: 100%;
    max-width: 1200px; /* Constrain image width if it's too large */
    height: auto;
    display: block;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    margin-bottom: 40px;
}

.page-about__hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-about__hero-title {
    font-size: 3.2em;
    color: #E5B80B; /* Gold for main title */
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 700;
}

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

.page-about__hero-button,
.page-about__button {
    display: inline-block;
    padding: 15px 35px;
    background-color: #E5B80B; /* Gold button */
    color: #0A2342; /* Dark blue text on gold button */
    font-size: 1.1em;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
}

.page-about__hero-button:hover,
.page-about__button:hover {
    background-color: #f5d140; /* Lighter gold on hover */
    transform: translateY(-3px);
}

.page-about__button--primary {
    background-color: #E5B80B;
    color: #0A2342;
}

.page-about__button--primary:hover {
    background-color: #f5d140;
}

.page-about__button--secondary {
    background-color: #0A2342; /* Dark blue button */
    color: #E5B80B; /* Gold text on dark blue button */
    border: 2px solid #E5B80B;
}

.page-about__button--secondary:hover {
    background-color: #1a3f6b; /* Slightly lighter dark blue on hover */
    border-color: #f5d140;
}

/* General Section Styling */
.page-about__section-title {
    font-size: 2.5em;
    color: #E5B80B; /* Gold for section titles */
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
}

.page-about__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #E5B80B;
    border-radius: 2px;
}

.page-about__text-block {
    font-size: 1.1em;
    line-height: 1.7;
    margin-bottom: 25px;
    text-align: justify;
    color: #e0e0e0;
}

.page-about__image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    margin: 40px 0;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

.page-about__image--centered {
    margin-left: auto;
    margin-right: auto;
}

/* Mission & Vision Section */
.page-about__mission-vision-section {
    padding: 80px 0;
    background-color: #0A2342; /* Dark blue background for this section */
    text-align: center;
}

.page-about__mission-vision-content {
    max-width: 900px;
    margin: 0 auto;
}

/* Why Choose Section */
.page-about__why-choose-section {
    padding: 80px 0;
    background-color: #051426; /* Body background color */
}

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

.page-about__feature-card {
    background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white for cards */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-about__feature-card:hover {
    transform: translateY(-10px);
    background-color: rgba(255, 255, 255, 0.15);
}

.page-about__card-title {
    font-size: 1.5em;
    color: #E5B80B; /* Gold for card titles */
    margin-bottom: 15px;
    font-weight: 600;
}

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

.page-about__cta-group {
    text-align: center;
    margin-top: 60px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

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

.page-about__responsible-gaming-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.page-about__image--left {
    flex: 1;
    max-width: 50%;
    margin: 0; /* Override default image margin */
}

.page-about__text-block-right {
    flex: 1;
    max-width: 50%;
    text-align: justify;
}

/* Join Us Section */
.page-about__join-us-section {
    padding: 80px 0;
    background-color: #051426; /* Body background color */
    text-align: center;
}

.page-about__join-us-content {
    max-width: 800px;
    margin: 0 auto;
}

/* Contact Section */
.page-about__contact-section {
    padding: 80px 0;
    background-color: #0A2342; /* Dark blue background */
    text-align: center;
}

.page-about__contact-content {
    max-width: 700px;
    margin: 0 auto;
}

/* Animation for sections */
.page-about__mission-vision-section,
.page-about__why-choose-section,
.page-about__responsible-gaming-section,
.page-about__join-us-section,
.page-about__contact-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.page-about__mission-vision-section.is-visible,
.page-about__why-choose-section.is-visible,
.page-about__responsible-gaming-section.is-visible,
.page-about__join-us-section.is-visible,
.page-about__contact-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

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

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

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

    .page-about__hero-section {
        padding: 60px 0;
    }

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

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

    .page-about__hero-image {
        margin-bottom: 30px;
    }

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

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

    .page-about__responsible-gaming-content {
        flex-direction: column;
        text-align: center;
    }

    .page-about__image--left,
    .page-about__text-block-right {
        max-width: 100%;
        flex: none;
    }

    /* Ensure all content area images are responsive and do not overflow */
    .page-about img {
        max-width: 100%;
        height: auto;
        min-width: 200px; /* Enforce min size for content images */
        min-height: 200px; /* Enforce min size for content images */
    }

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

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

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

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