/* style/about.css */

/* --- Base Styles --- */
.page-about {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: var(--black-color); /* From shared.css */
}

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

.page-about__section {
    padding: 60px 0;
    text-align: center;
}

.page-about__dark-section {
    background-color: #26A9E0; /* Primary brand color */
    color: #ffffff;
}

.page-about__light-bg {
    background-color: #ffffff; /* Auxiliary brand color */
    color: #333333; /* Dark text for light background */
}

.page-about__main-title {
    font-size: 3.2em;
    color: #ffffff;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.page-about__section-title {
    font-size: 2.5em;
    margin-bottom: 30px;
    color: inherit; /* Inherit color from parent section */
}

.page-about__intro-text,
.page-about__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-about__btn-primary,
.page-about__btn-secondary,
.page-about__btn-tertiary {
    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;
    max-width: 100%; /* Ensure button responsiveness */
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Break long words */
}

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

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

.page-about__btn-secondary {
    background-color: #ffffff;
    color: #26A9E0; /* Primary brand color */
    border: 2px solid #26A9E0;
}

.page-about__btn-secondary:hover {
    background-color: #e0f2f7;
    color: #1e87b7;
}

.page-about__btn-tertiary {
    background-color: #26A9E0;
    color: #ffffff;
    border: 2px solid #26A9E0;
    padding: 8px 15px;
    font-size: 0.9em;
}

.page-about__btn-tertiary:hover {
    background-color: #1e87b7;
    border-color: #1e87b7;
}

/* --- Hero Section --- */
.page-about__hero-section {
    position: relative;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
    padding-bottom: 80px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

.page-about__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.7; /* Slightly dim the image for text readability */
}

.page-about__hero-section .page-about__container {
    position: relative;
    z-index: 1;
    padding-top: 50px; /* Additional padding to ensure text is not too close to top */
}

/* --- Introduction Section --- */
.page-about__introduction {
    background-color: #ffffff;
    color: #333333;
}

.page-about__introduction .page-about__section-title {
    color: #26A9E0;
}

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

.page-about__history .page-about__section-title {
    color: #26A9E0;
}

.page-about__timeline {
    position: relative;
    max-width: 800px;
    margin: 40px auto;
    padding: 20px 0;
}

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

.page-about__timeline-item {
    position: relative;
    width: 50%;
    padding: 20px 0;
    text-align: left;
}

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

.page-about__timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 40px;
}

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

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

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

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

.page-about__timeline-description {
    font-size: 1em;
    color: #555555;
}

/* --- Values Section --- */
.page-about__values {
    background-color: #f8f8f8;
    color: #333333;
}

.page-about__values .page-about__section-title {
    color: #26A9E0;
}

.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: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: left;
    transition: transform 0.3s ease;
}

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

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

.page-about__value-description {
    color: #555555;
    font-size: 0.95em;
}

/* --- Products Section --- */
.page-about__products .page-about__section-title {
    color: #ffffff;
}

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

.page-about__product-card {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: left;
    color: #333333;
}

.page-about__product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.page-about__product-title {
    font-size: 1.4em;
    margin-bottom: 10px;
}

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

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

.page-about__product-description {
    font-size: 0.9em;
    color: #555555;
    margin-bottom: 15px;
}

.page-about__cta-bottom {
    margin-top: 50px;
}

/* --- Team & Support Section --- */
.page-about__team-support {
    background-color: #ffffff;
    color: #333333;
}

.page-about__team-support .page-about__section-title {
    color: #26A9E0;
}

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

.page-about__feature-item {
    background-color: #f0f8ff; /* Light blue background */
    padding: 30px;
    border-radius: 10px;
    text-align: left;
    border-left: 5px solid #26A9E0;
}

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

.page-about__feature-description {
    color: #555555;
    font-size: 0.95em;
}

.page-about__cta-contact {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

/* --- Responsible Gaming Section --- */
.page-about__responsible-gaming {
    background-color: #f0f0f0;
    color: #333333;
}

.page-about__responsible-gaming .page-about__section-title {
    color: #26A9E0;
}

.page-about__responsible-list {
    list-style: none;
    padding: 0;
    max-width: 700px;
    margin: 30px auto;
    text-align: left;
}

.page-about__responsible-list li {
    background-color: #ffffff;
    margin-bottom: 10px;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    color: #555555;
    font-size: 1.05em;
}

.page-about__responsible-list li a {
    color: #26A9E0;
    text-decoration: none;
}

.page-about__responsible-list li a:hover {
    text-decoration: underline;
}

/* --- FAQ Section --- */
.page-about__faq-section {
    padding-bottom: 80px;
    background-color: #ffffff;
    color: #333333;
}

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

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

.page-about__faq-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    background-color: #f9f9f9;
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background-color: #26A9E0;
    color: #ffffff;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
}

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

.page-about__faq-question h3 {
    margin: 0;
    color: inherit;
}

.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 25px;
    background-color: #ffffff;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #555555;
    font-size: 1em;
}

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

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

/* --- Conclusion Section --- */
.page-about__conclusion {
    padding-top: 80px;
    padding-bottom: 80px;
}

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

.page-about__conclusion .page-about__text-block a {
    color: #EA7C07;
    text-decoration: underline;
}

.page-about__conclusion .page-about__text-block a:hover {
    color: #d16b06;
}

/* --- Image specific styles (ensure no filters) --- */
.page-about__image-content,
.page-about__product-image {
    display: block;
    margin: 40px auto;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    object-fit: cover;
}

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

@media (max-width: 768px) {
    .page-about__main-title {
        font-size: 2.2em;
    }
    .page-about__section-title {
        font-size: 1.8em;
    }
    .page-about__intro-text,
    .page-about__text-block,
    .page-about__value-description,
    .page-about__product-description,
    .page-about__feature-description,
    .page-about__responsible-list li,
    .page-about__faq-answer p {
        font-size: 1em;
    }

    .page-about__cta-buttons,
    .page-about__cta-contact {
        flex-direction: column;
        gap: 15px;
    }

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

    /* Fixed header spacing for mobile */
    .page-about__hero-section {
        padding-top: var(--header-offset, 120px) !important;
    }

    /* Image responsive */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    
    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__cta-buttons,
    .page-about__button-group,
    .page-about__btn-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: hidden !important;
    }

    .page-about__timeline::before {
        left: 15px;
    }

    .page-about__timeline-item {
        width: 100%;
        padding-left: 40px;
        padding-right: 0;
        left: 0;
    }

    .page-about__timeline-item::before {
        left: 7.5px;
    }

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

    .page-about__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }
    .page-about__faq-answer {
        padding: 0 20px;
    }
    .page-about__faq-item.active .page-about__faq-answer {
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .page-about__main-title {
        font-size: 1.8em;
    }
    .page-about__section-title {
        font-size: 1.5em;
    }
    .page-about__hero-section .page-about__container {
        padding-top: 30px;
    }
    .page-about__section {
        padding: 40px 0;
    }
}