/* style/about.css */

/* Base styles for the About Us page */
.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: #ffffff; /* Assuming body background is light/white */
}

/* Ensure all content sections have appropriate max-width and margin for centering */
.page-about__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Section styling */
.page-about__hero-section,
.page-about__introduction-section,
.page-about__vision-mission-section,
.page-about__values-section,
.page-about__why-choose-us-section,
.page-about__responsible-gaming-section,
.page-about__faq-section,
.page-about__cta-section {
    padding: 60px 0;
    text-align: center;
}

/* Specific background colors for sections */
.page-about__dark-section {
    background-color: #26A9E0; /* Primary brand color */
    color: #ffffff;
}

.page-about__light-bg {
    background-color: #ffffff;
    color: #333333;
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    overflow: hidden; /* Prevent content overflow */
}

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

.page-about__hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text readability */
    border-radius: 8px;
    margin-top: 20px;
}

.page-about__main-title {
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin-bottom: 20px;
}

.page-about__description {
    font-size: 1.1rem;
    color: #f0f0f0;
    margin-bottom: 30px;
}

/* Buttons */
.page-about__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-about__btn-primary {
    background-color: #EA7C07;
    color: #ffffff;
    border: 2px solid #EA7C07;
}

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

.page-about__btn-secondary {
    background-color: transparent;
    border: 2px solid #ffffff;
}
.page-about__dark-section .page-about__btn-secondary {
    color: #ffffff;
    border-color: #ffffff;
}
.page-about__light-bg .page-about__btn-secondary {
    color: #26A9E0;
    border-color: #26A9E0;
}

.page-about__btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}
.page-about__light-bg .page-about__btn-secondary:hover {
    background-color: #26A9E0;
    color: #ffffff;
}

/* Section Titles */
.page-about__section-title {
    font-size: 2.2em;
    margin-bottom: 40px;
    font-weight: bold;
    color: inherit;
}

.page-about__text-block {
    max-width: 900px;
    margin: 0 auto 25px auto;
    font-size: 1.1em;
    line-height: 1.7;
    color: inherit;
    text-align: left;
}

/* Image content */
.page-about__image-content {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 40px auto 0 auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Vision & Mission Grid */
.page-about__vision-mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 1000px;
    margin: 40px auto;
    text-align: left;
}

.page-about__vision-card,
.page-about__mission-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.page-about__light-bg .page-about__vision-card,
.page-about__light-bg .page-about__mission-card {
    background-color: #f8f8f8;
}

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

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

/* Values Grid */
.page-about__values-grid,
.page-about__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 40px auto;
    text-align: left;
}

.page-about__value-item,
.page-about__feature-item {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}
.page-about__dark-section .page-about__value-item,
.page-about__dark-section .page-about__feature-item {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.page-about__value-item:hover,
.page-about__feature-item:hover {
    transform: translateY(-5px);
}

.page-about__value-title,
.page-about__feature-title {
    font-size: 1.4em;
    color: #26A9E0;
    margin-bottom: 15px;
}
.page-about__dark-section .page-about__value-title,
.page-about__dark-section .page-about__feature-title {
    color: #ffffff;
}

.page-about__value-description,
.page-about__feature-description {
    font-size: 1em;
    color: inherit;
    line-height: 1.6;
}

/* Responsible Gaming List */
.page-about__responsible-gaming-list {
    list-style: none;
    max-width: 900px;
    margin: 40px auto;
    padding: 0;
    text-align: left;
}

.page-about__list-item {
    background-color: #f8f8f8;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.03);
    color: #333333;
}
.page-about__dark-section .page-about__list-item {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.page-about__list-item strong {
    color: #26A9E0;
}
.page-about__dark-section .page-about__list-item strong {
    color: #ffffff;
}

.page-about__responsible-gaming-section a {
    color: #26A9E0;
    text-decoration: underline;
}
.page-about__dark-section .page-about__responsible-gaming-section a {
    color: #ffffff;
}
.page-about__responsible-gaming-section a:hover {
    text-decoration: none;
}

/* FAQ Section */
.page-about__faq-list {
    max-width: 900px;
    margin: 40px auto;
    text-align: left;
}

.page-about__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #ffffff;
}
.page-about__light-bg .page-about__faq-item {
    background-color: #f8f8f8;
    color: #333333;
}

.page-about__faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 1.1em;
    color: inherit;
    position: relative;
    outline: none;
}

/* Hide default marker for Webkit browsers */
.page-about__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-about__faq-qtext {
    flex-grow: 1;
    color: inherit;
}

.page-about__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: inherit;
}

.page-about__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    line-height: 1.6;
    color: inherit;
    text-align: left;
}

.page-about__faq-answer p {
    margin-top: 0;
    margin-bottom: 0;
    color: inherit;
}

.page-about__faq-answer a {
    color: #EA7C07;
    text-decoration: underline;
}
.page-about__faq-answer a:hover {
    text-decoration: none;
}

/* General image styling for content areas */
.page-about img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-about__hero-content {
        max-width: 600px;
    }
    .page-about__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-about__container,
    .page-about__hero-content,
    .page-about__cta-buttons {
        padding-left: 15px !important;
        padding-right: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Ensure no horizontal scroll */
    }

    .page-about__hero-section {
        min-height: 400px;
        padding-top: 10px !important;
        padding-bottom: 40px !important;
    }

    .page-about__hero-image {
        max-height: 400px;
    }

    .page-about__main-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }

    .page-about__description {
        font-size: 1em;
        margin-bottom: 25px;
    }

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

    .page-about__btn-primary,
    .page-about__btn-secondary {
        width: 100% !important;
        padding: 10px 15px;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

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

    .page-about__text-block {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-about__vision-mission-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

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

    .page-about__value-title,
    .page-about__feature-title {
        font-size: 1.2em;
    }

    .page-about__list-item {
        padding: 15px;
        font-size: 0.95em;
    }

    .page-about__faq-item summary {
        padding: 15px 20px;
        font-size: 1em;
    }

    .page-about__faq-answer {
        padding: 0 20px 15px;
        font-size: 0.95em;
    }

    /* All images must be responsive */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* All image containers must be responsive */
    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__hero-section,
    .page-about__introduction-section,
    .page-about__vision-mission-section,
    .page-about__values-section,
    .page-about__why-choose-us-section,
    .page-about__responsible-gaming-section,
    .page-about__faq-section,
    .page-about__cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
}