/* style/about.css */

/* Variables (if needed, though shared.css might have them) */
:root {
    --primary-color: #2F6BFF;
    --secondary-color: #6FA3FF;
    --button-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    --card-bg: #FFFFFF;
    --background-light: #F4F7FB;
    --text-main: #1F2D3D;
    --text-black: #000000;
    --border-color: #D6E2FF;
    --glow-color: #A5C4FF;
}

/* Base styles for the page content */
.page-about {
    font-family: Arial, sans-serif;
    color: var(--text-main); /* Light background, dark text */
    line-height: 1.6;
    background-color: var(--background-light); /* Ensure consistency with body background */
}

.page-about__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-about__text-block {
    flex: 1;
    min-width: 300px; /* Ensure text block doesn't become too narrow */
}

.page-about__image {
    flex: 1;
    min-width: 300px; /* Ensure image block doesn't become too narrow */
    max-width: 100%; /* Default responsive */
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    display: block; /* Remove extra space below images */
}

/* Headings */
.page-about__main-title {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-black); /* Stronger contrast for H1 */
    margin-bottom: 20px;
    max-width: 800px; /* Prevent H1 from being too wide */
    text-align: center;
}

.page-about__section-title {
    font-size: 2.2em;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 25px;
    line-height: 1.3;
}

.page-about h3 {
    font-size: 1.5em;
    font-weight: 600;
    color: var(--text-main);
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-about p {
    margin-bottom: 15px;
    color: var(--text-main);
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--background-light); /* Consistent with body */
}

.page-about__hero-image {
    width: 100%;
    max-width: 1400px; /* Example max width for hero image */
    height: auto;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 30px;
    display: block;
}

.page-about__hero-content {
    max-width: 900px;
    text-align: center;
    margin-top: 30px; /* Space between image and content */
}

.page-about__hero-description {
    font-size: 1.1em;
    color: var(--text-main);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__hero-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Ensure buttons wrap on smaller screens */
}

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1em;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    text-align: center;
}

.page-about__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: 2px solid transparent;
}

.page-about__btn-primary:hover {
    box-shadow: 0 5px 15px rgba(47, 107, 255, 0.4);
    transform: translateY(-2px);
}

.page-about__btn-secondary {
    background: var(--card-bg); /* White background */
    color: var(--primary-color); /* Blue text */
    border: 2px solid var(--primary-color);
}

.page-about__btn-secondary:hover {
    background: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 5px 15px rgba(47, 107, 255, 0.2);
    transform: translateY(-2px);
}

/* Mission & Vision Section */
.page-about__mission-vision-section {
    background-color: var(--card-bg);
    padding: 60px 0;
}

.page-about__mission-vision-section .page-about__container {
    flex-direction: row; /* Default desktop layout */
}

/* Why Choose Us Section */
.page-about__why-choose-section {
    background-color: var(--background-light);
    padding: 60px 0;
}

.page-about__why-choose-section .page-about__container {
    flex-direction: row-reverse; /* Image on left, text on right for this section */
}

.page-about__advantage-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 25px;
}

.page-about__advantage-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    color: var(--text-main);
}

.page-about__advantage-list li::before {
    content: '✅'; /* Checkmark icon */
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 1.2em;
    line-height: 1.6;
}

/* Responsible Gambling Section */
.page-about__responsible-gambling-section {
    background-color: var(--card-bg);
    padding: 60px 0;
}

.page-about__responsible-gambling-section .page-about__container {
    flex-direction: row; /* Default desktop layout */
}

/* Team & Values Section */
.page-about__team-values-section {
    background-color: var(--background-light);
    padding: 60px 0;
}

.page-about__team-values-section .page-about__container {
    flex-direction: row-reverse; /* Image on left, text on right for this section */
}

/* CTA Section */
.page-about__cta-section {
    background: var(--primary-color);
    padding: 80px 20px;
    text-align: center;
}

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

.page-about__cta-section .page-about__section-title {
    color: #ffffff;
    margin-bottom: 20px;
}

.page-about__cta-section p {
    color: #ffffff;
    font-size: 1.1em;
    margin-bottom: 40px;
}

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

/* Ensure buttons in CTA section use appropriate styles */
.page-about__cta-section .page-about__btn-primary {
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    color: #ffffff;
    border: 2px solid transparent;
}

.page-about__cta-section .page-about__btn-secondary {
    background: #ffffff;
    color: var(--primary-color);
    border: 2px solid #ffffff; /* White border for white button on blue background */
}

.page-about__cta-section .page-about__btn-secondary:hover {
    background: transparent;
    color: #ffffff;
    border-color: #ffffff;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .page-about {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-about__container {
        flex-direction: column; /* Stack elements vertically */
        padding: 20px 15px;
        gap: 30px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-about__text-block,
    .page-about__image {
        min-width: unset; /* Remove min-width for mobile */
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-about__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* Small top padding for mobile, body handles header offset */
    }

    .page-about__main-title {
        font-size: 1.8em;
        text-align: center;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-about__section-title {
        font-size: 1.8em;
        text-align: center;
    }

    .page-about__hero-cta-buttons,
    .page-about__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Mobile specific button styles */
    .page-about__btn-primary,
    .page-about__btn-secondary,
    .page-about a[class*="button"],
    .page-about a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Image responsive force */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Section padding adjustments */
    .page-about__mission-vision-section,
    .page-about__why-choose-section,
    .page-about__responsible-gambling-section,
    .page-about__team-values-section,
    .page-about__cta-section {
        padding: 30px 0;
    }
    
    .page-about__cta-section .page-about__section-title {
        font-size: 1.8em;
    }
}

/* Ensure no filter is used on images */
.page-about img {
    filter: none !important;
}