/* style/about.css */

/* Base styles for the about page */
.page-about {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #f0f0f0; /* Light text for dark body background */
    background-color: transparent; /* Body background from shared.css */
}

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

.page-about__section-title {
    font-size: 2.5em;
    color: #26A9E0; /* Brand primary color for titles */
    text-align: center;
    margin-bottom: 40px;
    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: #26A9E0;
    border-radius: 2px;
}

.page-about__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #ffffff; /* Ensure readability on dark backgrounds */
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    width: 100%;
    padding: 100px 0 60px; /* Adjust top padding for fixed header */
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
    text-align: center;
    overflow: hidden;
    background-color: #1a1a1a; /* Slightly lighter dark background for hero */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 600px;
}

.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.2; /* Overlay for text readability */
    display: block;
}

.page-about__hero-section > .page-about__container {
    position: relative;
    z-index: 1;
    color: #ffffff;
}

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

.page-about__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

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

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
}

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

.page-about__btn-primary:hover {
    background-color: #1e87b8;
    border-color: #1e87b8;
    transform: translateY(-2px);
}

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

.page-about__btn-secondary:hover {
    background-color: #26A9E0;
    color: #ffffff;
    transform: translateY(-2px);
}

.page-about__btn-primary--large {
    padding: 18px 40px;
    font-size: 1.2em;
}

/* Section Styling */
.page-about__dark-bg {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 60px 0;
}

.page-about__light-bg {
    background-color: #222222; /* Slightly lighter dark for contrast */
    color: #ffffff;
    padding: 60px 0;
}

/* About Us Intro Section */
.page-about__about-us-intro {
    padding-top: 60px;
    padding-bottom: 60px;
    text-align: center;
}

/* History Section */
.page-about__history-section {
    padding-top: 80px;
    padding-bottom: 80px;
}

.page-about__timeline {
    display: flex;
    flex-direction: column;
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.page-about__timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    width: 2px;
    height: 100%;
    background-color: #26A9E0;
    transform: translateX(-50%);
}

.page-about__timeline-item {
    padding: 20px 0;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.page-about__timeline-item:nth-child(odd) {
    align-self: flex-start;
    padding-right: 50px;
    text-align: right;
}

.page-about__timeline-item:nth-child(even) {
    align-self: flex-end;
    padding-left: 50px;
    text-align: left;
}

.page-about__timeline-item::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #26A9E0;
    border: 3px solid #ffffff;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.page-about__timeline-item:nth-child(odd)::before {
    right: -8px; /* Half of width */
}

.page-about__timeline-item:nth-child(even)::before {
    left: -8px; /* Half of width */
}

.page-about__timeline-year {
    font-size: 1.8em;
    color: #26A9E0;
    margin-bottom: 10px;
}

.page-about__timeline-description {
    font-size: 1.1em;
    color: #ffffff;
}

/* Values Section */
.page-about__values-section {
    padding-top: 80px;
    padding-bottom: 80px;
}

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

.page-about__value-card {
    background-color: #1a1a1a;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    border: 1px solid rgba(38, 169, 224, 0.3);
}

.page-about__value-card:hover {
    transform: translateY(-10px);
}

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

.page-about__value-description {
    font-size: 1em;
    color: #e0e0e0;
}

/* Products Section */
.page-about__products-section {
    padding-top: 80px;
    padding-bottom: 80px;
}

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

.page-about__product-card {
    background-color: #222222;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-about__product-card:hover {
    transform: translateY(-5px);
    border-color: #26A9E0;
}

.page-about__product-title {
    font-size: 1.8em;
    margin-bottom: 15px;
}

.page-about__product-title a {
    color: #26A9E0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-about__product-title a:hover {
    color: #ffffff;
}

.page-about__product-description {
    font-size: 1.1em;
    color: #e0e0e0;
}

/* Security Section */
.page-about__security-section {
    padding-top: 80px;
    padding-bottom: 80px;
}

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

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

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

.page-about__security-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    display: block; /* Important for responsiveness */
}

/* Customer Service Section */
.page-about__customer-service-section {
    padding-top: 80px;
    padding-bottom: 80px;
    text-align: center;
}

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

.page-about__service-item {
    background-color: #222222;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-about__service-description {
    font-size: 1em;
    color: #e0e0e0;
}

.page-about__cta-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.page-about__cta-buttons--center {
    justify-content: center;
}

/* Promotions Callout Section */
.page-about__promotions-callout {
    padding-top: 80px;
    padding-bottom: 80px;
}

.page-about__promotions-container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.page-about__promotions-content {
    flex: 1;
}

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

.page-about__promotions-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    display: block;
}

/* Responsible Gaming Section */
.page-about__responsible-gaming-section {
    padding-top: 80px;
    padding-bottom: 80px;
    text-align: center;
}

/* Future Vision Section */
.page-about__future-vision-section {
    padding-top: 80px;
    padding-bottom: 80px;
    text-align: center;
}

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

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

.page-about__faq-item {
    background-color: #222222;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.3em;
    font-weight: bold;
    color: #26A9E0;
    cursor: pointer;
    background-color: #1a1a1a;
    transition: background-color 0.3s ease;
    user-select: none;
}

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

.page-about__faq-qtext {
    flex-grow: 1;
}

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

/* For details tag, remove default marker */
.page-about__faq-item[open] > .page-about__faq-question .page-about__faq-toggle {
    content: '−';
}

.page-about__faq-item summary {
    list-style: none;
}

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

.page-about__faq-answer {
    padding: 0 25px 20px;
    font-size: 1.1em;
    color: #e0e0e0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.page-about__faq-item[open] .page-about__faq-answer {
    max-height: 500px; /* Arbitrarily large enough for content */
    padding-top: 15px;
}

/* Final CTA Section */
.page-about__cta-final {
    padding-top: 80px;
    padding-bottom: 80px;
    text-align: center;
}

.page-about__cta-final-content {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

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

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

    .page-about__security-content,
    .page-about__promotions-container {
        flex-direction: column;
        text-align: center;
    }

    .page-about__security-text,
    .page-about__promotions-content {
        order: 2; /* Text below image on smaller screens */
    }

    .page-about__security-image-wrapper,
    .page-about__promotions-image-wrapper {
        order: 1;
        margin-bottom: 30px;
    }
}

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

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

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

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

    .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;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-about__cta-buttons,
    .page-about__button-group,
    .page-about__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
        flex-direction: column; /* Stack buttons vertically */
    }

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

    .page-about__timeline::before {
        left: 15px;
        transform: translateX(0);
    }

    .page-about__timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 20px;
        text-align: left;
    }

    .page-about__timeline-item:nth-child(odd) {
        padding-right: 20px;
    }

    .page-about__timeline-item:nth-child(odd)::before {
        left: 8px;
        right: auto;
    }

    .page-about__timeline-item:nth-child(even)::before {
        left: 8px;
    }

    /* Images responsiveness */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Video responsiveness */
    .page-about video,
    .page-about__video {
        max-width: 100% !important;
        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 {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    .page-about__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
}

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

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

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

    .page-about__btn-primary,
    .page-about__btn-secondary {
        padding: 12px 20px;
        font-size: 1em;
    }
}