/* style/about.css */

/* Base styles for the About Us page */
.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Dark background #121212, so light text */
    background-color: #121212; /* Default body background */
}

.page-about__section {
    padding: 60px 20px;
    text-align: center;
    background-color: #121212; /* Default section background */
    color: #ffffff;
}

.page-about__dark-section {
    background-color: #1a1a1a; /* Slightly darker for contrast */
    color: #ffffff;
}

.page-about__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

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

.page-about__section-intro {
    font-size: 1.1em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    padding: 100px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    background-color: #1a1a1a;
    color: #ffffff;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
    overflow: hidden; /* Ensure image doesn't overflow */
}

.page-about__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.3; /* Make it subtle */
}

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

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

.page-about__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary,
.page-about__btn-text {
    display: inline-block;
    padding: 12px 25px;
    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;
    text-align: center;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Ensure long words break */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

.page-about__btn-primary {
    background-color: #26A9E0;
    color: #ffffff;
    border: 2px solid #26A9E0;
    margin: 10px;
}

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

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

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

.page-about__btn-text {
    color: #26A9E0;
    text-decoration: underline;
    background: none;
    border: none;
    padding: 0;
    margin: 5px 0;
}

.page-about__btn-text:hover {
    color: #1e87b6;
}

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

/* Cards */
.page-about__card {
    background-color: rgba(255, 255, 255, 0.08); /* Light transparent background on dark body */
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: left;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

/* Mission & Vision Section */
.page-about__mission-box,
.page-about__vision-box {
    margin-top: 30px;
}
.page-about__mission-box p,
.page-about__vision-box p {
    color: #f0f0f0;
}

/* Why Choose Us Section */
.page-about__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-about__feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-about__feature-icon {
    width: 100%; /* Ensure image fills card width */
    height: auto;
    max-height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* Values Section */
.page-about__values-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-about__value-item p {
    color: #f0f0f0;
}

/* Team Section */
.page-about__team-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
    margin: 40px auto;
    display: block;
}

.page-about__team-description {
    color: #f0f0f0;
    max-width: 900px;
    margin: 0 auto 20px auto;
}

/* Responsible Gaming Section */
.page-about__responsible-gaming-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    text-align: left;
}

.page-about__responsible-gaming-list li {
    background-color: rgba(255, 255, 255, 0.05);
    border-left: 5px solid #26A9E0;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    color: #ffffff;
}

.page-about__list-title {
    color: #26A9E0;
    font-size: 1.3em;
    margin-bottom: 10px;
}

.page-about__responsible-gaming-list p {
    color: #f0f0f0;
}

/* FAQ Section */
.page-about__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.page-about__faq-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15em;
    font-weight: bold;
    cursor: pointer;
    color: #26A9E0;
    user-select: none;
}

.page-about__faq-item[open] .page-about__faq-question {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.page-about__faq-question::-webkit-details-marker {
    display: none;
}

.page-about__faq-question::marker {
    display: none;
}

.page-about__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: #ffffff;
}

.page-about__faq-answer {
    padding: 15px 25px 25px;
    font-size: 1em;
    color: #f0f0f0;
}

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

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

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

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

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

    .page-about__section {
        padding: 40px 15px;
    }

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

    .page-about__section-intro {
        font-size: 0.95em;
    }

    /* Responsive Images */
    .page-about img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
      object-fit: cover !important; /* Ensure images maintain aspect ratio and cover */
    }
    
    /* Image containers */
    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__features-grid,
    .page-about__values-list,
    .page-about__faq-list,
    .page-about__cta-buttons {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px !important; /* Add padding to prevent content from touching edges */
      padding-right: 15px !important;
      overflow: hidden !important; /* Prevent horizontal scrolling */
    }

    /* Responsive Buttons */
    .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;
        margin: 10px 0 !important; /* Stack buttons vertically */
    }

    .page-about__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 10px !important;
    }

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

    .page-about__card-title {
        font-size: 1.3em;
    }
    .page-about__list-title {
        font-size: 1.1em;
    }
    .page-about__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }
    .page-about__faq-answer {
        padding: 10px 20px 20px;
    }
}

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