/* style/about.css */

:root {
    --primary-color: #007bff;
    --secondary-color: #ffc107;
    --text-light: #f8f9fa; /* Assuming body background is dark, use light text */
    --text-dark: #333333;
    --bg-dark-section: #001f4d; /* A darker shade of blue for contrast with primary */
    --bg-light-section: #ffffff;
    --card-bg-dark: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark backgrounds */
    --card-border-dark: rgba(255, 255, 255, 0.2);
    --card-bg-light: #ffffff;
    --card-border-light: #e0e0e0;
}

.page-about {
    font-family: 'Arial', sans-serif;
    color: var(--text-light); /* Default text color for the page content, assuming dark body */
}

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

/* Hero Section */
.page-about__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    padding: 80px 0;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
    background-color: var(--bg-dark-section);
    color: var(--text-light);
    overflow: hidden;
}

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

.page-about__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.page-about__hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    padding: 20px;
}

.page-about__main-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: var(--secondary-color);
    line-height: 1.2;
}

.page-about__hero-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    line-height: 1.6;
}

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

.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;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
}

.page-about__btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: 2px solid var(--primary-color);
}

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

.page-about__btn-secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.page-about__btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--bg-dark-section);
}

/* General Section Styles */
.page-about__section-title {
    font-size: 2.5em;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 40px;
    padding-top: 60px;
}

.page-about__section-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-light);
}

.page-about__dark-section {
    background-color: var(--bg-dark-section);
    color: var(--text-light);
}

.page-about__light-section {
    background-color: var(--bg-light-section);
    color: var(--text-dark);
}

/* Mission & Vision Section */
.page-about__mission-section {
    padding: 80px 0;
}

.page-about__mission-content {
    display: flex;
    gap: 40px;
    align-items: center;
}

.page-about__mission-content .page-about__text-block {
    flex: 1;
}

.page-about__mission-content .page-about__image-block {
    flex: 1;
    text-align: center;
}

.page-about__mission-content .page-about__image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    min-width: 200px; /* Enforce min width */
    min-height: 200px; /* Enforce min height */
}

/* Values Section */
.page-about__values-section {
    padding: 80px 0;
    background-color: var(--bg-light-section);
    color: var(--text-dark);
}

.page-about__values-section .page-about__section-title {
    color: var(--primary-color);
}

.page-about__value-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-about__card {
    background-color: var(--card-bg-light);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    color: var(--text-dark);
    border: 1px solid var(--card-border-light);
}

.page-about__card-title {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-about__card-description {
    font-size: 1em;
    line-height: 1.6;
}

/* Why Choose Us Section */
.page-about__why-choose-us {
    padding: 80px 0;
}

.page-about__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.page-about__feature-item {
    text-align: center;
    padding: 20px;
    background-color: var(--card-bg-dark);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: var(--text-light);
    border: 1px solid var(--card-border-dark);
}

.page-about__feature-image {
    width: 100%;
    height: auto;
    max-width: 400px; /* Ensure images are not too wide */
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    min-width: 200px; /* Enforce min width for content images */
    min-height: 200px; /* Enforce min height for content images */
}

.page-about__feature-title {
    font-size: 1.4em;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.page-about__feature-description {
    font-size: 0.95em;
    line-height: 1.6;
}

/* Video Section */
.page-about__video-section {
    padding: 80px 0;
    background-color: var(--bg-light-section);
    color: var(--text-dark);
}

.page-about__video-section .page-about__section-title,
.page-about__video-section .page-about__section-description {
    color: var(--primary-color);
}

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

.page-about__video-link-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    cursor: pointer;
}

.page-about__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsible Gaming Section */
.page-about__responsible-gaming-section {
    padding: 80px 0;
    background-color: var(--bg-dark-section);
    color: var(--text-light);
}

.page-about__responsible-gaming-content {
    display: flex;
    gap: 40px;
    align-items: center;
}

.page-about__responsible-gaming-content .page-about__text-block {
    flex: 1;
}

.page-about__responsible-gaming-content .page-about__image-block {
    flex: 1;
    text-align: center;
}

.page-about__responsible-gaming-content .page-about__image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    min-width: 200px; /* Enforce min width */
    min-height: 200px; /* Enforce min height */
}

.page-about__responsible-gaming-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.page-about__responsible-gaming-list li {
    margin-bottom: 10px;
    font-size: 1.1em;
}

.page-about__responsible-gaming-list strong {
    color: var(--secondary-color);
}

/* FAQ Section */
.page-about__faq-section {
    padding: 80px 0;
}

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

.page-about__faq-item {
    background-color: var(--card-bg-dark);
    border: 1px solid var(--card-border-dark);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--text-light);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid var(--card-border-dark);
}

.page-about__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

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

.page-about__faq-item.active .page-about__faq-toggle {
    transform: rotate(45deg);
}

.page-about__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px; /* Initial padding */
    transition: max-height 0.3s ease, padding 0.3s ease;
}

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

.page-about__faq-answer p {
    padding-bottom: 10px;
    font-size: 1em;
    line-height: 1.6;
}

.page-about__faq-answer a {
    color: var(--secondary-color);
    text-decoration: none;
}

.page-about__faq-answer a:hover {
    text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-about__main-title {
        font-size: 3em;
    }
    .page-about__section-title {
        font-size: 2em;
    }
    .page-about__mission-content,
    .page-about__responsible-gaming-content {
        flex-direction: column;
    }
    .page-about__mission-content .page-about__image-block,
    .page-about__responsible-gaming-content .page-about__image-block {
        order: -1; /* Image above text on smaller screens */
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .page-about__hero-section {
        min-height: 500px;
        padding-top: var(--header-offset, 120px) !important; /* Mobile specific header offset */
    }

    .page-about__main-title {
        font-size: 2.2em;
    }

    .page-about__hero-description {
        font-size: 1em;
    }

    .page-about__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 300px; /* Limit button group width */
        margin: 0 auto;
    }

    .page-about__btn-primary,
    .page-about__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
    }

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

    .page-about__mission-section,
    .page-about__values-section,
    .page-about__why-choose-us,
    .page-about__video-section,
    .page-about__responsible-gaming-section,
    .page-about__faq-section {
        padding: 40px 0;
    }

    .page-about__container {
        padding: 0 15px;
    }

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

    /* Mobile image and video responsiveness */
    .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-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Prevent content overflow */
    }
}

@media (max-width: 480px) {
    .page-about__main-title {
        font-size: 1.8em;
    }
    .page-about__section-title {
        font-size: 1.5em;
    }
    .page-about__hero-section {
        min-height: 400px;
    }
}