/* style/about.css */

/* Base styles for the About Us page */
.page-about {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default dark text for light body background */
    background-color: #f8f9fa; /* Light background for the main content area */
}

.page-about__section-spacing {
    padding: 60px 0;
}

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

.page-about__section-title {
    font-size: 36px;
    color: #007bff;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
}

.page-about__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #ffc107;
    border-radius: 2px;
}

.page-about__section-title--light {
    color: #ffffff;
}

.page-about__section-title--light::after {
    background-color: #ffc107;
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
    background: linear-gradient(135deg, #007bff, #0056b3); /* Darker blue gradient for hero background */
    color: #ffffff;
    overflow: hidden; /* Ensure no image overflow */
}

.page-about__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1; /* Ensure content is above any background elements */
}

.page-about__hero-image {
    width: 100%;
    margin-bottom: 30px;
    max-width: 800px; /* Limit image width in hero */
}

.page-about__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-about__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-about__main-title {
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-about__intro-text {
    font-size: 20px;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #e0e0e0;
}

.page-about__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: #ffc107; /* Auxiliary color for CTA */
    color: #333333; /* Dark text for auxiliary color background */
    text-decoration: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: none;
    max-width: 100%; /* Button responsive */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-about__cta-button:hover {
    background: #e0a800; /* Darker auxiliary color on hover */
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Content wrappers for text and image blocks */
.page-about__content-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
}

.page-about__content-wrapper:nth-of-type(even) {
    flex-direction: row-reverse;
}

.page-about__text-block {
    flex: 1;
    font-size: 17px;
    line-height: 1.7;
}

.page-about__text-block p {
    margin-bottom: 15px;
}

.page-about__image-block {
    flex: 1;
    min-width: 300px; /* Ensure image block has a minimum size */
    text-align: center;
}

.page-about__image-block img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    min-width: 200px; /* Global image size requirement */
    min-height: 200px; /* Global image size requirement */
}

/* Mission Section */
.page-about__dark-section {
    background-color: #007bff; /* Primary color background */
    color: #ffffff; /* White text for dark background */
}

.page-about__mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: center;
}

.page-about__mission-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__mission-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-about__mission-item img {
    width: 100%;
    max-width: 250px; /* Smaller images for mission items */
    height: auto;
    margin-bottom: 20px;
    border-radius: 5px;
    min-width: 200px; /* Global image size requirement */
    min-height: 200px; /* Global image size requirement */
}

.page-about__mission-item h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #ffc107; /* Auxiliary color for headings */
}

.page-about__mission-item p {
    font-size: 16px;
    color: #e0e0e0;
}

/* Advantages Section */
.page-about__advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.page-about__advantage-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 5px solid #007bff;
}

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

.page-about__card-title {
    font-size: 22px;
    color: #007bff;
    margin-bottom: 15px;
}

.page-about__advantage-card p {
    font-size: 16px;
    color: #555555;
    line-height: 1.7;
}

.page-about__cta-center {
    text-align: center;
    margin-top: 60px;
}

/* Responsible Gaming Section */
.page-about__light-bg {
    background-color: #f0f0f0;
    color: #333333;
}

.page-about__btn-secondary {
    display: inline-block;
    padding: 15px 40px;
    background: transparent;
    color: #007bff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 30px;
    transition: all 0.3s ease;
    border: 2px solid #007bff;
    max-width: 100%; /* Button responsive */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-about__btn-secondary:hover {
    background: #007bff;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* FAQ Section */
.page-about__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

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

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-about__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.page-about__faq-question:active {
    background: #eeeeee;
}

.page-about__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none; /* Prevent h3 from blocking click event */
    color: #333333;
}

.page-about__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: #666;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none; /* Prevent icon from blocking click event */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.page-about__faq-item.active .page-about__faq-toggle {
    color: #007bff;
    transform: rotate(45deg); /* Plus to X for active state */
}

.page-about__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 15px;
    opacity: 0;
}

/* FAQ expanded state - IMPORTANT */
.page-about__faq-item.active .page-about__faq-answer {
    max-height: 2000px !important; /* Ensure enough height for content */
    padding: 20px 15px !important;
    opacity: 1;
    background: #f9f9f9;
    border-radius: 0 0 5px 5px;
    color: #555555;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-about__section-title {
        font-size: 30px;
    }
    .page-about__main-title {
        font-size: 40px;
    }
    .page-about__intro-text {
        font-size: 18px;
    }
    .page-about__content-wrapper {
        flex-direction: column;
        text-align: center;
    }
    .page-about__content-wrapper:nth-of-type(even) {
        flex-direction: column; /* Reset order for smaller screens */
    }
    .page-about__image-block {
        margin-bottom: 30px;
    }
    .page-about__advantages-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    /* Mobile specific padding for main content */
    .page-about__container {
        padding: 0 15px;
    }

    .page-about__section-spacing {
        padding: 40px 0;
    }
    .page-about__section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    .page-about__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-about__main-title {
        font-size: 32px;
        margin-bottom: 15px;
    }
    .page-about__intro-text {
        font-size: 16px;
        margin-bottom: 20px;
    }
    .page-about__cta-button {
        padding: 12px 30px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-about__btn-secondary {
        padding: 12px 30px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    
    /* Ensure all images are responsive and don't overflow */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-about__hero-image img {
        border-radius: 4px;
    }
    .page-about__image-block img {
        border-radius: 4px;
    }
    .page-about__mission-item img {
        border-radius: 4px;
    }

    /* Containers with images/buttons should also be responsive */
    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__content-wrapper,
    .page-about__mission-grid,
    .page-about__advantages-grid,
    .page-about__cta-center,
    .page-about__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-about__mission-grid,
    .page-about__advantages-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-about__mission-item,
    .page-about__advantage-card {
        padding: 20px;
    }

    /* FAQ Mobile Specifics */
    .page-about__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    .page-about__faq-question h3 {
        font-size: 15px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    .page-about__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    .page-about__faq-answer {
        padding: 0 15px;
    }
    .page-about__faq-item.active .page-about__faq-answer {
        padding: 15px !important;
    }
}

/* Ensure no CSS filters are used on images */
.page-about img {
    filter: none; /* Explicitly disable any potential filters */
}