/* style/about.css */

/* Base styles for the page-about scope */
.page-about {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
    padding-top: 0; /* shared.css should handle body padding-top */
}

/* Fixed header offset - only apply if shared.css doesn't apply to body */
/* Assuming shared.css handles body padding-top, so this section's padding-top is 0 */
.page-about__hero-section {
    position: relative;
    padding-top: 0; /* Assuming shared.css provides padding-top for body */
    padding-bottom: 0;
    padding-left: 0;
    padding-right: 0;
    margin-top: 0;
}

.page-about__hero-container {
    position: relative;
    margin: 0 auto;
}

.page-about__hero-image {
    width: 100%;
    margin: 0;
}

.page-about__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: cover;
    min-height: 200px; /* Ensure minimum image size */
}

/* General container for content sections */
.page-about__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    box-sizing: border-box;
}

/* Headings */
.page-about__main-title {
    font-size: 38px;
    font-weight: bold;
    color: #FFD700; /* Brand gold for main titles */
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.3;
}

.page-about__heading {
    font-size: 32px;
    font-weight: bold;
    color: #FFD700;
    margin-bottom: 25px;
    line-height: 1.3;
}

.page-about__heading--center {
    text-align: center;
}

.page-about__sub-heading {
    font-size: 24px;
    font-weight: bold;
    color: #1E90FF; /* Brand blue for sub-headings */
    margin-top: 30px;
    margin-bottom: 15px;
}

/* Paragraphs */
.page-about__lead-paragraph {
    font-size: 18px;
    text-align: center;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0; /* Slightly off-white for readability */
}

.page-about__paragraph {
    font-size: 16px;
    margin-bottom: 20px;
    color: #e0e0e0; /* Light gray for body text */
}

.page-about__paragraph--center {
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-about__list li {
    font-size: 16px;
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    color: #e0e0e0;
}

.page-about__list li::before {
    content: '•';
    color: #FFD700;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

.page-about__list--contact li::before {
    content: '→';
    color: #1E90FF;
}

/* Content blocks */
.page-about__content-block {
    margin-bottom: 40px;
}

/* Image content within sections */
.page-about__image-content {
    width: 100%;
    height: auto;
    max-width: 800px;
    margin: 30px auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    min-height: 200px; /* Enforce minimum size */
    object-fit: cover; /* Ensure images cover their area well */
}

.page-about__image-content--large {
    max-width: 100%;
}

.page-about__image-content--rounded {
    border-radius: 50%; /* Example for team image */
    width: 300px;
    height: 300px;
    object-fit: cover;
}

/* Section specific styles */
.page-about__introduction-section {
    background-color: #1a1a1a; /* Dark background for this section */
    color: #ffffff;
}

.page-about__why-choose-section {
    background-color: #f5f5f5; /* Light background for this section */
    color: #333333;
}

.page-about__why-choose-section .page-about__heading,
.page-about__why-choose-section .page-about__paragraph {
    color: #333333;
}

.page-about__commitment-section {
    background-color: #1a1a1a; /* Dark background */
    color: #ffffff;
}

.page-about__team-section {
    background-color: #f5f5f5; /* Light background */
    color: #333333;
}

.page-about__team-section .page-about__heading,
.page-about__team-section .page-about__paragraph {
    color: #333333;
}

.page-about__responsible-gaming-section {
    background-color: #1a1a1a; /* Dark background */
    color: #ffffff;
}

.page-about__contact-section {
    background-color: #f5f5f5; /* Light background */
    color: #333333;
}

.page-about__contact-section .page-about__heading,
.page-about__contact-section .page-about__paragraph,
.page-about__contact-section .page-about__list li,
.page-about__contact-section .page-about__list strong {
    color: #333333;
}

.page-about__contact-section .page-about__list--contact li::before {
    color: #1E90FF;
}

/* Feature Grid */
.page-about__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-about__feature-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e0e0;
    color: #333333; /* Ensure dark text on light card */
}

.page-about__feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-about__feature-icon {
    width: 200px;
    height: 150px; /* Adjust height to maintain aspect ratio for a content image */
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    min-height: 150px; /* Explicitly set min height */
}

.page-about__feature-title {
    font-size: 20px;
    font-weight: bold;
    color: #1E90FF; /* Brand blue for feature titles */
    margin-bottom: 15px;
}

.page-about__feature-description {
    font-size: 15px;
    color: #555555;
}

/* Commitment Grid */
.page-about__commitment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-about__commitment-item {
    background: rgba(255, 255, 255, 0.05); /* Slightly transparent white on dark background */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.page-about__commitment-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-about__commitment-title {
    font-size: 20px;
    font-weight: bold;
    color: #FFD700;
    margin-bottom: 15px;
}

.page-about__commitment-description {
    font-size: 15px;
    color: #e0e0e0;
}

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

.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 17px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
    text-align: center;
    box-sizing: border-box; /* Include padding in width calculation */
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

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

.page-about__btn-primary:hover {
    background-color: #e0b800;
    border-color: #e0b800;
    transform: translateY(-3px);
}

.page-about__btn-secondary {
    background-color: transparent;
    color: #1E90FF; /* Blue text on transparent/light background */
    border: 2px solid #1E90FF;
}

.page-about__btn-secondary:hover {
    background-color: #1E90FF;
    color: #ffffff;
    transform: translateY(-3px);
}

.page-about__btn-primary--center,
.page-about__btn-secondary--center {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
    margin-top: 30px;
}

/* Team section specific */
.page-about__team-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

/* Responsible gaming specific */
.page-about__responsible-content {
    margin-top: 30px;
    text-align: center;
}

/* Contact info specific */
.page-about__contact-info {
    margin-top: 30px;
    text-align: center;
}

/* General image responsive rules */
.page-about img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Mobile Responsive Styles (max-width: 768px) --- */
@media (max-width: 768px) {
    .page-about {
        font-size: 15px;
        line-height: 1.5;
    }

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

    .page-about__hero-section {
        padding-top: 0 !important; /* Ensure no double padding if shared provides it */
    }

    .page-about__main-title {
        font-size: 28px;
        margin-bottom: 20px;
    }

    .page-about__heading {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .page-about__sub-heading {
        font-size: 20px;
        margin-top: 25px;
        margin-bottom: 10px;
    }

    .page-about__lead-paragraph {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .page-about__paragraph {
        font-size: 15px;
        margin-bottom: 15px;
    }

    .page-about__list li {
        font-size: 15px;
        padding-left: 20px;
    }

    .page-about__image-content {
        margin: 20px auto;
        min-height: 150px; /* Adjust minimum height for mobile */
    }

    .page-about__image-content--rounded {
        width: 200px;
        height: 200px;
    }

    .page-about__features-grid,
    .page-about__commitment-grid {
        grid-template-columns: 1fr; /* Single column layout for mobile */
        gap: 20px;
        margin-top: 30px;
    }

    .page-about__feature-card,
    .page-about__commitment-item {
        padding: 20px;
    }

    .page-about__feature-title,
    .page-about__commitment-title {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .page-about__feature-description,
    .page-about__commitment-description {
        font-size: 14px;
    }

    .page-about__cta-buttons {
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 15px;
        margin-top: 40px;
        padding-left: 15px; /* Add padding to button container */
        padding-right: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .page-about__btn-primary,
    .page-about__btn-secondary {
        padding: 12px 20px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin: 0; /* Remove auto margins if stacking */
    }

    /* Mobile image responsive adaptation */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box;
    }

    /* Ensure specific elements like feature icons are still content images and not tiny */
    .page-about__feature-icon {
        width: 100% !important; /* Make it fill container */
        max-width: 250px !important; /* But not too wide */
        height: auto !important;
        margin-left: auto !important;
        margin-right: auto !important;
        min-height: 120px !important; /* Ensure it's still a substantial image */
        object-fit: cover !important;
    }

    /* General containers for mobile */
    .page-about__introduction-section,
    .page-about__why-choose-section,
    .page-about__commitment-section,
    .page-about__team-section,
    .page-about__responsible-gaming-section,
    .page-about__contact-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* Padding is already handled by .page-about__container */
    }
}