/* style/about.css */
.page-about {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: #FFFFFF; /* Default body background is white */
}

/* --- General Structure --- */
.page-about__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

.page-about__section-title {
    font-size: 3em;
    color: #26A9E0; /* Brand color for titles */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

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

.page-about__section-description {
    font-size: 1.2em;
    text-align: center;
    margin-bottom: 40px;
    color: #555555;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
}

.page-about__text-block--white {
    color: #f0f0f0; /* Lighter text for dark backgrounds */
}

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

.page-about__inline-link {
    color: #26A9E0;
    text-decoration: underline;
    font-weight: bold;
}

.page-about__inline-link--white {
    color: #FFFFFF;
}

/* --- Buttons --- */
.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box; /* Ensure padding doesn't increase total width */
    max-width: 100%; /* Ensure button doesn't overflow */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

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

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

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

.page-about__btn-secondary:hover {
    background-color: #e0f2f7;
    color: #1a7fb0;
    border-color: #1a7fb0;
}

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

/* --- Hero Section --- */
.page-about__hero-section {
    position: relative;
    background-color: #26A9E0; /* Dark background for hero */
    color: #FFFFFF;
    padding: 100px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    min-height: 600px;
    box-sizing: border-box;
    padding-top: var(--header-offset, 120px); /* Desktop default */
}

.page-about__hero-content {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
    text-align: left;
    padding-left: 20px;
}

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

.page-about__hero-description {
    font-size: 1.4em;
    margin-bottom: 30px;
    line-height: 1.5;
    color: #f0f0f0;
}

.page-about__hero-image-wrapper {
    flex: 1;
    min-width: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-right: 20px;
}

.page-about__hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* --- Video Section --- */
.page-about__video-section {
    background-color: #f8f9fa;
    padding: 60px 20px;
    text-align: center;
}

.page-about__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 1000px; /* Max width for video */
    margin: 40px auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.page-about__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    cursor: pointer; /* Indicate it's clickable */
}

.page-about__video-cta {
    margin-top: 30px;
}

/* --- About Section --- */
.page-about__about-section {
    background-color: #FFFFFF;
    padding: 60px 20px;
}

/* --- Mission, Vision, Values Section --- */
.page-about__mission-vision-values {
    background-color: #26A9E0; /* Brand primary color for background */
    color: #FFFFFF;
    padding: 60px 20px;
}

.page-about__grid {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-top: 40px;
}

.page-about__grid-item {
    flex: 1;
    min-width: 300px;
}

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

.page-about__sub-title--white {
    color: #FFFFFF;
}

.page-about__list {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 20px;
    font-size: 1.1em;
}

.page-about__list--white {
    color: #f0f0f0;
}

.page-about__list li {
    margin-bottom: 10px;
}

/* --- Why Choose Us Section --- */
.page-about__why-choose-us {
    background-color: #f8f9fa;
    padding: 60px 20px;
}

.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-color: #FFFFFF;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

.page-about__feature-card:hover {
    transform: translateY(-5px);
}

.page-about__feature-icon {
    width: 200px; /* Min size for content images */
    height: 150px; /* Min size for content images */
    object-fit: contain;
    margin-bottom: 20px;
}

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

.page-about__feature-text {
    font-size: 1em;
    color: #555555;
    text-align: justify;
}

/* --- Responsible Gambling Section --- */
.page-about__responsible-gambling {
    background-color: #26A9E0;
    color: #FFFFFF;
    padding: 60px 20px;
}

.page-about__responsible-grid {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
    flex-wrap: wrap;
}

.page-about__responsible-item {
    flex: 1;
    min-width: 300px;
}

/* --- FAQ Section --- */
.page-about__faq-section {
    background-color: #FFFFFF;
    padding: 60px 20px;
}

.page-about__faq-list {
    max-width: 900px;
    margin: 40px auto 0 auto;
}

.page-about__faq-item {
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #333333;
    cursor: pointer;
    background-color: #FFFFFF;
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
    background-color: #f0f0f0;
}

.page-about__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #26A9E0;
}

.page-about__faq-item.active .page-about__faq-toggle {
    transform: rotate(45deg); /* Change + to X or - */
}

.page-about__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #f8f9fa;
    color: #555555;
}

.page-about__faq-item.active .page-about__faq-answer {
    max-height: 1000px !important; /* Ensure it expands fully */
    padding: 20px 25px;
}

.page-about__faq-answer p {
    margin: 0;
    padding-bottom: 10px;
}

/* --- CTA Section --- */
.page-about__cta-section {
    background-color: #26A9E0; /* Brand primary color for background */
    padding: 80px 20px;
    text-align: center;
}

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

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-about__hero-title {
        font-size: 3.5em;
    }
    .page-about__hero-description {
        font-size: 1.2em;
    }
    .page-about__section-title {
        font-size: 2.5em;
    }
    .page-about__grid {
        flex-direction: column;
    }
    .page-about__grid-item,
    .page-about__responsible-item {
        min-width: unset;
        width: 100%;
    }
    .page-about__hero-content,
    .page-about__hero-image-wrapper {
        padding: 0 15px;
    }
}

@media (max-width: 768px) {
    /* Fixed header offset for mobile */
    .page-about__hero-section {
        flex-direction: column;
        text-align: center;
        padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
        min-height: unset;
        padding-bottom: 60px;
    }

    .page-about__hero-content {
        max-width: 100%;
        padding: 0 15px;
    }

    .page-about__hero-title {
        font-size: 2.5em;
    }
    .page-about__hero-description {
        font-size: 1.1em;
    }

    .page-about__hero-image-wrapper {
        min-width: unset;
        width: 100%;
        padding: 0 15px;
        margin-top: 40px;
    }

    .page-about__section-title {
        font-size: 2em;
    }
    .page-about__section-description {
        font-size: 1em;
    }
    .page-about__sub-title {
        font-size: 1.5em;
    }

    .page-about__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-about__btn-primary,
    .page-about__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        margin-left: 0 !important; /* Remove margin for stacked buttons */
        padding: 12px 20px;
    }

    /* Images responsiveness for mobile */
    .page-about img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__video-section,
    .page-about__video-container,
    .page-about__video-wrapper,
    .page-about__cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    /* Video responsiveness for mobile */
    .page-about video,
    .page-about__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-about__video-wrapper {
        padding-bottom: 56.25% !important; /* Maintain aspect ratio */
        height: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        margin: 20px auto !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-about__video {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
    }

    .page-about__responsible-grid {
        flex-direction: column;
    }
    .page-about__feature-card {
        padding: 20px;
    }
    .page-about__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }
    .page-about__faq-answer {
        padding: 0 20px;
    }
    .page-about__faq-item.active .page-about__faq-answer {
        padding: 15px 20px;
    }
}

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