/* style/about.css */

/* Base styles for the page-about scope */
.page-about {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
}

/* Sections */
.page-about__section {
    padding: 60px 20px;
    text-align: center;
}

.page-about__dark-bg {
    background-color: #0a0a0a; /* Ensure dark background for sections that need it */
    color: #ffffff;
}

.page-about__light-bg {
    background-color: #1a1a1a; /* Slightly lighter dark background for contrast */
    color: #ffffff;
}

.page-about__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px; /* Consistent padding for content */
    box-sizing: border-box;
}

.page-about__section-title {
    font-size: 2.5rem;
    color: #26A9E0; /* Primary brand color for titles */
    margin-bottom: 30px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.page-about__text-block {
    font-size: 1.1rem;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0; /* Slightly off-white for readability */
}

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

.page-about__hero-image {
    width: 100%;
    height: auto;
    max-height: 675px; /* Max height for the hero image */
    object-fit: cover;
    display: block;
    margin-bottom: 30px; /* Space between image and content */
}

.page-about__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 15px;
    max-width: 900px;
    margin: 0 auto;
    color: #ffffff;
}

.page-about__main-title {
    /* H1 font-size controlled by clamp to avoid being too large */
    font-size: clamp(2rem, 4vw, 3.5rem); 
    color: #26A9E0; /* Brand color for main title */
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-about__intro-text {
    font-size: clamp(1rem, 1.5vw, 1.3rem);
    margin-bottom: 30px;
    color: #f0f0f0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.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.1rem;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

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

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

.page-about__btn-secondary {
    background-color: transparent;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-about__btn-secondary:hover {
    background-color: #26A9E0;
    color: #ffffff;
}

/* Mission & Vision / Why Choose Us / Our Games / Responsible Gaming / Our Team / Future Outlook Sections */
.page-about__mission-vision .page-about__container,
.page-about__why-choose-us .page-about__container,
.page-about__our-games .page-about__container,
.page-about__responsible-gaming .page-about__container,
.page-about__our-team .page-about__container,
.page-about__future-outlook .page-about__container {
    text-align: left;
}

.page-about__image-content {
    width: 100%;
    height: auto;
    max-width: 1000px; /* Max width for content images */
    margin: 30px auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    min-width: 200px; /* Minimum size for all images */
    min-height: 200px;
}

/* Why Choose Us features */
.page-about__feature-list {
    list-style: none;
    padding: 0;
    margin: 30px auto;
    max-width: 800px;
    text-align: left;
}

.page-about__feature-item {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly visible background for list items */
    margin-bottom: 15px;
    padding: 20px;
    border-radius: 8px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #f0f0f0;
    border-left: 5px solid #26A9E0;
}

.page-about__feature-item strong {
    color: #26A9E0;
}

/* Our Games */
.page-about__game-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
    text-align: left;
}

.page-about__game-card {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid #EA7C07; /* Highlight with login color */
    color: #ffffff;
}

.page-about__game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-about__game-title {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: #26A9E0;
}

.page-about__game-title a {
    color: #26A9E0;
    text-decoration: none;
}

.page-about__game-title a:hover {
    text-decoration: underline;
}

.page-about__game-description {
    font-size: 1rem;
    color: #f0f0f0;
}

/* Responsible Gaming */
.page-about__responsible-gaming a {
    color: #26A9E0;
    text-decoration: underline;
}

.page-about__responsible-gaming a:hover {
    color: #EA7C07;
}

/* FAQ Section */
.page-about__faq-section {
    text-align: left;
}

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

.page-about__faq-item {
    background-color: rgba(255, 255, 255, 0.08);
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    color: #f0f0f0;
}

.page-about__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    outline: none;
    color: #26A9E0;
    list-style: none; /* Hide default marker */
}

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

.page-about__faq-toggle {
    font-size: 1.5rem;
    color: #EA7C07;
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.page-about__faq-item[open] .page-about__faq-toggle {
    transform: rotate(45deg); /* Rotate for 'x' effect */
}

.page-about__faq-answer {
    padding: 0 20px 20px 20px;
    font-size: 1.1rem;
    color: #f0f0f0;
}

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

.page-about__faq-answer a {
    color: #26A9E0;
    text-decoration: underline;
}

/* Ensure all images are responsive by default */
.page-about img {
    max-width: 100%;
    height: auto;
    display: block;
    box-sizing: border-box;
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
    .page-about__section-title {
        font-size: 2rem;
    }
    .page-about__main-title {
        font-size: clamp(1.8rem, 5vw, 3rem);
    }
    .page-about__intro-text {
        font-size: clamp(0.9rem, 1.8vw, 1.2rem);
    }
    .page-about__btn-primary,
    .page-about__btn-secondary {
        padding: 12px 25px;
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .page-about__section {
        padding: 40px 15px;
    }
    .page-about__hero-section {
        min-height: 400px;
    }
    .page-about__hero-image {
        max-height: 400px;
    }
    .page-about__main-title {
        font-size: clamp(1.5rem, 6vw, 2.5rem);
    }
    .page-about__intro-text {
        font-size: clamp(0.85rem, 2vw, 1.1rem);
    }
    .page-about__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-about__btn-primary,
    .page-about__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 15px 10px !important;
        font-size: 1rem !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-about__game-categories {
        grid-template-columns: 1fr;
    }
    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__hero-content,
    .page-about__cta-section .page-about__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    /* No video elements in this page, but keeping the styles for consistency if they were present */
    .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;
    }
    .page-about__hero-image {
        margin-bottom: 20px;
    }
    .page-about__faq-item summary {
        font-size: 1.1rem;
        padding: 15px;
    }
    .page-about__faq-answer {
        font-size: 1rem;
        padding: 0 15px 15px 15px;
    }
}

@media (max-width: 480px) {
    .page-about__section-title {
        font-size: 1.8rem;
    }
    .page-about__main-title {
        font-size: clamp(1.4rem, 7vw, 2.2rem);
    }
    .page-about__intro-text {
        font-size: clamp(0.8rem, 2.5vw, 1rem);
    }
    .page-about__hero-section {
        padding-bottom: 30px;
    }
}