/* style/about.css */

/* Base styles for the about page */
.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text on default light body background */
    background-color: #FFFFFF; /* Ensure consistency with shared body background */
}

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

.page-about__section {
    padding: 60px 0;
    text-align: center;
}

.page-about__section-title {
    font-size: 2.5em;
    color: #26A9E0; /* Brand primary color for titles */
    margin-bottom: 40px;
    font-weight: bold;
}

.page-about__sub-title {
    font-size: 1.8em;
    color: #333333;
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-about__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #333333;
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Adjust height as needed */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    text-align: center;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

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

.page-about__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-about__hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 20px;
}

.page-about__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #FFFFFF;
    line-height: 1.2;
    font-weight: bold;
}

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

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
    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, color 0.3s ease, border-color 0.3s ease;
    margin: 10px;
    cursor: pointer;
    max-width: 100%; /* For responsiveness */
    box-sizing: border-box; /* For responsiveness */
    white-space: normal; /* For responsiveness */
    word-wrap: break-word; /* For responsiveness */
}

.page-about__btn-primary {
    background-color: #26A9E0; /* Brand primary */
    color: #FFFFFF;
    border: 2px solid #26A9E0;
}

.page-about__btn-primary:hover {
    background-color: #1a7fb2;
    border-color: #1a7fb2;
}

.page-about__btn-secondary {
    background-color: #FFFFFF;
    color: #26A9E0; /* Brand primary */
    border: 2px solid #26A9E0;
}

.page-about__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #1a7fb2;
    border-color: #1a7fb2;
}

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

/* Mission & Vision Section */
.page-about__mission-vision-section .page-about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    text-align: left;
}

.page-about__mission-vision-section .page-about__grid-item img {
    border-radius: 10px;
}

/* History Section */
.page-about__history-section {
    background-color: #26A9E0; /* Brand primary for dark section */
    color: #FFFFFF;
}

.page-about__history-section .page-about__section-title {
    color: #FFFFFF;
}

.page-about__history-section .page-about__text-block {
    color: #f0f0f0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Core Values Section */
.page-about__values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-about__value-card {
    background-color: #FFFFFF;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
    height: 100%; /* Ensure cards have equal height */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.page-about__value-card:hover {
    transform: translateY(-10px);
}

.page-about__value-icon {
    width: 200px; /* Min size requirement, keep large */
    height: 125px; /* Maintain aspect ratio, example 200x125 for 800x500 image */
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 5px;
}

.page-about__value-title {
    font-size: 1.5em;
    color: #26A9E0;
    margin-bottom: 15px;
}

.page-about__value-description {
    font-size: 1em;
    color: #555555;
    flex-grow: 1; /* Allow text to take available space */
}

/* Team Section */
.page-about__team-section .page-about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    text-align: left;
}

.page-about__team-section .page-about__grid-item:first-child {
    padding-right: 20px;
}

.page-about__team-image {
    border-radius: 10px;
}

/* Responsible Gaming Section */
.page-about__responsible-gaming-section {
    background-color: #26A9E0; /* Brand primary for dark section */
    color: #FFFFFF;
}

.page-about__responsible-gaming-section .page-about__section-title {
    color: #FFFFFF;
}

.page-about__responsible-gaming-section .page-about__text-block {
    color: #f0f0f0;
    text-align: left;
}

.page-about__responsible-gaming-section .page-about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    text-align: left;
}

.page-about__responsible-gaming-section .page-about__image {
    border-radius: 10px;
}


/* Join Us Section */
.page-about__join-us-section {
    padding-bottom: 80px;
}

.page-about__center-content {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Image specific styles */
.page-about__image {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Dark background / Light background helpers for contrast */
.page-about__dark-section {
  background-color: #26A9E0;
  color: #ffffff;
}
.page-about__dark-section .page-about__section-title,
.page-about__dark-section .page-about__sub-title {
  color: #ffffff;
}
.page-about__dark-section .page-about__text-block {
  color: #f0f0f0;
}

.page-about__light-bg {
  background-color: #ffffff;
  color: #333333;
}
.page-about__light-bg .page-about__section-title,
.page-about__light-bg .page-about__sub-title {
  color: #26A9E0;
}
.page-about__light-bg .page-about__text-block {
  color: #333333;
}


/* Responsive styles */
@media (max-width: 1024px) {
    .page-about__hero-title {
        font-size: 2.8em;
    }
    .page-about__hero-description {
        font-size: 1.1em;
    }
    .page-about__section-title {
        font-size: 2em;
    }
    .page-about__sub-title {
        font-size: 1.5em;
    }
    .page-about__mission-vision-section .page-about__grid,
    .page-about__team-section .page-about__grid,
    .page-about__responsible-gaming-section .page-about__grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .page-about__mission-vision-section .page-about__grid-item:first-child,
    .page-about__team-section .page-about__grid-item:first-child {
        order: 2; /* Move text below image on mobile for better flow */
        padding-right: 0;
    }
    .page-about__mission-vision-section .page-about__grid-item:last-child,
    .page-about__team-section .page-about__grid-item:last-child {
        order: 1; /* Move image above text on mobile */
    }
}

@media (max-width: 768px) {
    .page-about {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-about__hero-section {
        height: 500px;
        padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
    }
    .page-about__hero-title {
        font-size: 2.2em;
    }
    .page-about__hero-description {
        font-size: 1em;
    }
    .page-about__section {
        padding: 40px 0;
    }
    .page-about__section-title {
        font-size: 1.8em;
        margin-bottom: 25px;
    }
    .page-about__sub-title {
        font-size: 1.3em;
        margin-top: 20px;
        margin-bottom: 10px;
    }
    .page-about__text-block {
        font-size: 0.95em;
    }

    /* Image responsive force */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__grid-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    /* Video responsive force (if any, although not in this page) */
    .page-about video,
    .page-about__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-about__video-section,
    .page-about__video-container,
    .page-about__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    /* 🚨 Important: video section padding-top must be reset in mobile media query */
    .page-about__video-section {
        padding-top: var(--header-offset, 120px) !important;
    }

    /* Button responsive force */
    .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; /* Force full width for buttons */
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
        margin: 10px 0 !important; /* Adjust margin for vertical stack */
    }
    .page-about__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 10px !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-about__values-grid {
        grid-template-columns: 1fr;
    }
    .page-about__value-card {
        padding: 20px;
    }
}

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