/* style/about.css */

/* Base styles for the page content, ensuring contrast with dark body background */
.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text for dark body background */
    background-color: transparent; /* Inherit from body or shared.css */
}

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

/* Hero Section */
.page-about__hero-section {
    position: relative;
    padding: 120px 0;
    background-image: url('[GALLERY:hero_about:1920x1080:bet_88,about_us,headquarters,professional,green_theme]');
    background-size: cover;
    background-position: center;
    color: #ffffff;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
}

.page-about__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: 1;
}

.page-about__hero-section .page-about__container {
    position: relative;
    z-index: 2;
}

.page-about__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
}

.page-about__hero-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

.page-about__hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    max-width: 100%; /* For responsiveness */
    box-sizing: border-box; /* For responsiveness */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-about__btn-primary {
    background-color: #C30808; /* Register/Login red */
    color: #FFFF00; /* Register/Login yellow text */
    border: 2px solid #C30808;
}

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

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

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

/* Section Titles & Subtitles */
.page-about__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    color: #ffffff; /* White title for better contrast on dark backgrounds */
}

.page-about__section-subtitle {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 50px;
    color: #f0f0f0; /* Light grey for subtitles */
}

/* Intro Section */
.page-about__intro-section {
    padding: 80px 0;
}

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

.page-about__intro-text {
    flex: 1;
}

.page-about__intro-text p {
    margin-bottom: 20px;
    color: #f0f0f0;
}

.page-about__intro-image {
    flex: 1;
    text-align: center;
}

.page-about__intro-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}

.page-about__link-more {
    display: inline-block;
    color: #FFFF00; /* Yellow for links */
    text-decoration: none;
    font-weight: bold;
    margin-top: 20px;
}

.page-about__link-more:hover {
    text-decoration: underline;
}

/* Why Choose Us Section */
.page-about__why-choose-us {
    padding: 80px 0;
    background-color: #0a0a0a; /* Ensure dark background for this section */
    color: #ffffff;
}

.page-about__why-choose-us .page-about__section-title {
    color: #ffffff; /* White title on dark background */
}

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

.page-about__feature-card {
    background: rgba(255, 255, 255, 0.1); /* Semi-transparent white card background */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-about__feature-card h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #017439; /* Brand green for feature titles */
}

.page-about__feature-card p {
    color: #f0f0f0;
}

.page-about__feature-card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Game Portfolio Section */
.page-about__game-portfolio {
    padding: 80px 0;
}

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

.page-about__game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.page-about__game-card {
    background: rgba(255, 255, 255, 0.08); /* Slightly lighter card background */
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 180px;
}

.page-about__game-card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.15);
}

.page-about__game-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.page-about__game-card h3 {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: #017439; /* Brand green for game titles */
}

.page-about__game-card p {
    font-size: 0.95em;
    color: #cccccc;
}

.page-about__game-diversity-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 40px auto 0 auto;
    border-radius: 8px;
}

/* Video Section */
.page-about__video-section {
    padding: 80px 0;
    background-color: #0a0a0a;
    text-align: center;
}

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

.page-about__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin: 0 auto 40px auto;
    border-radius: 8px;
}

.page-about__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    cursor: pointer;
}

.page-about__video-cta {
    margin-top: 30px;
    background-color: #C30808;
    color: #FFFF00;
    border-color: #C30808;
}

.page-about__video-cta:hover {
    background-color: #a00606;
    border-color: #a00606;
}

/* Team Section */
.page-about__team-section {
    padding: 80px 0;
    background-color: #0a0a0a;
}

.page-about__team-section .page-about__section-title {
    color: #ffffff; /* White title for better contrast on dark backgrounds */
}

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

.page-about__team-image {
    flex: 1;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.page-about__team-text {
    flex: 1;
}

.page-about__team-text p {
    margin-bottom: 20px;
    color: #f0f0f0;
}

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

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

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

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

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background-color: #017439; /* Brand green for question background */
    color: #ffffff;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

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

.page-about__faq-question h3 {
    margin: 0;
    font-size: 1.1em;
    color: #ffffff;
}

.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); /* Plus becomes an 'X' or minus */
}

.page-about__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for answer */
    color: #cccccc;
}

.page-about__faq-item.active .page-about__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 20px;
}

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

.page-about__faq-link {
    color: #FFFF00; /* Yellow for links */
    text-decoration: none;
    font-weight: bold;
}

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

/* CTA Section */
.page-about__cta-section {
    padding: 80px 0;
    text-align: center;
    background-color: #017439; /* Brand green background */
    color: #ffffff;
}

.page-about__cta-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #ffffff;
}

.page-about__cta-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: #f0f0f0;
}

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

/* Dark background sections for contrast */
.page-about__dark-section {
    background-color: #0a0a0a; /* Explicitly dark background */
    color: #ffffff;
}

.page-about__dark-section .page-about__section-title {
    color: #ffffff; /* White title on dark backgrounds */
}


/* Responsive styles */
@media (max-width: 1024px) {
    .page-about__hero-title {
        font-size: 2.8em;
    }

    .page-about__section-title {
        font-size: 2em;
    }

    .page-about__intro-content,
    .page-about__team-content {
        flex-direction: column;
        text-align: center;
    }

    .page-about__intro-image,
    .page-about__team-image {
        order: -1; /* Image above text on smaller screens */
        margin-bottom: 30px;
    }
}

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

    .page-about__hero-title {
        font-size: 2em;
    }

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

    .page-about__hero-actions {
        flex-direction: column;
        gap: 15px;
    }

    .page-about__btn-primary,
    .page-about__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px 20px !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

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

    .page-about__section-title {
        font-size: 1.8em;
    }

    .page-about__section-subtitle {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .page-about__intro-section,
    .page-about__why-choose-us,
    .page-about__game-portfolio,
    .page-about__video-section,
    .page-about__team-section,
    .page-about__faq-section,
    .page-about__cta-section {
        padding: 50px 0;
    }

    .page-about__intro-content {
        gap: 20px;
    }

    .page-about__features-grid,
    .page-about__game-grid {
        grid-template-columns: 1fr;
    }

    /* Image responsive rules */
    .page-about img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__intro-image,
    .page-about__team-image,
    .page-about__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Video responsive rules */
    .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;
    }

    /* Button responsive rules */
    .page-about__cta-buttons {
        flex-direction: column;
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-about__cta-button,
    .page-about__btn-primary,
    .page-about__btn-secondary,
    .page-about a[class*="button"],
    .page-about a[class*="btn"] {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      white-space: normal !important;
      word-wrap: break-word !important;
    }

    /* Content area images - ensure they are not too small */
    .page-about__content-area img,
    .page-about__text-block img,
    .page-about__feature-card img,
    .page-about__game-diversity-image,
    .page-about__team-image {
        min-width: 200px !important; /* Enforce minimum size for content images */
        min-height: 200px !important;
    }
}

/* Dark background general styles (for .page-about__dark-section) */
.page-about__dark-bg {
  color: #ffffff; /* Deep background with light text */
  background: #017439; /* Brand color as background */
}

/* Light background general styles */
.page-about__light-bg {
  color: #333333; /* Light background with dark text */
  background: #ffffff;
}

/* Medium background general styles */
.page-about__medium-bg {
  color: #000000; /* Default dark text */
  background: #FFFFFF;
}

/* Ensure contrast for specific elements */
.page-about__content-area,
.page-about__text-block {
  color: #ffffff; /* Text on dark body background */
}

.page-about p,
.page-about li {
  color: #f0f0f0; /* Ensure readability for paragraphs and list items */
}

.page-about__card {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-about__dark-section {
  background: #0a0a0a; /* Body background color for dark sections */
  color: #ffffff;
}