/* style/about.css */
.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: var(--background-color, #ffffff);
}

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

.page-about__hero-section {
    position: relative;
    width: 100%;
    padding: 100px 0;
    text-align: center;
    color: #ffffff;
    background-color: #26A9E0;
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
}

.page-about__main-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #ffffff;
}

.page-about__intro-text {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    margin: 10px;
}

.page-about__btn-primary {
    background-color: #EA7C07; /* Login 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;
    border: 2px solid #26A9E0;
}

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

.page-about__content-section,
.page-about__features-section,
.page-about__products-section,
.page-about__security-section,
.page-about__responsible-gambling-section,
.page-about__team-tech-section,
.page-about__faq-section,
.page-about__cta-section {
    padding: 60px 0;
}

.page-about__dark-section {
    background-color: #26A9E0;
    color: #ffffff;
}

.page-about__light-bg {
    background-color: #ffffff;
    color: #333333;
}

.page-about__section-title {
    font-size: 2.2em;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

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

.page-about__paragraph {
    font-size: 1em;
    margin-bottom: 20px;
    text-align: justify;
}

.page-about__image-wrapper {
    text-align: center;
    margin-bottom: 30px;
}

.page-about__image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.page-about__feature-card,
.page-about__product-card {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-about__light-bg .page-about__product-card {
    background-color: #f9f9f9;
    color: #333333;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #e0e0e0;
}

.page-about__feature-icon,
.page-about__product-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
}

.page-about__feature-title,
.page-about__product-title {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 15px;
    color: inherit;
}

.page-about__product-title a {
    color: inherit;
    text-decoration: none;
}

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

.page-about__feature-description,
.page-about__product-description {
    font-size: 0.95em;
    text-align: justify;
    flex-grow: 1;
}

.page-about__security-list,
.page-about__responsible-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.page-about__security-item,
.page-about__responsible-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    font-size: 1em;
    color: #ffffff;
}

.page-about__light-bg .page-about__security-item,
.page-about__light-bg .page-about__responsible-item {
    background-color: #f0f0f0;
    color: #333333;
}

.page-about__security-item strong,
.page-about__responsible-item strong {
    color: inherit;
    margin-right: 10px;
}

.page-about__faq-list {
    margin-top: 30px;
}

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

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

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

.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;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #555555;
}

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

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

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

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-about__main-title {
        font-size: 2.5em;
    }
    .page-about__section-title {
        font-size: 2em;
    }
    .page-about__features-grid, .page-about__product-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-about__hero-section {
        padding: 80px 0;
        padding-top: var(--header-offset, 120px) !important; /* Ensure space for fixed header on mobile */
    }
    .page-about__main-title {
        font-size: 2em;
    }
    .page-about__intro-text {
        font-size: 1em;
    }
    .page-about__section-title {
        font-size: 1.8em;
    }
    .page-about__cta-button {
        padding: 12px 25px;
        font-size: 1em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-about__cta-buttons {
        flex-direction: column; /* Stack buttons vertically on mobile */
        align-items: center;
        padding: 0 15px;
    }
    .page-about__container {
        padding: 0 15px;
    }
    .page-about img,
    .page-about__image,
    .page-about__feature-icon,
    .page-about__product-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-about__content-section,
    .page-about__features-section,
    .page-about__products-section,
    .page-about__security-section,
    .page-about__responsible-gambling-section,
    .page-about__team-tech-section,
    .page-about__faq-section,
    .page-about__cta-section {
        padding: 40px 0;
    }
    .page-about__features-grid, .page-about__product-grid {
        grid-template-columns: 1fr;
    }
    .page-about__feature-card,
    .page-about__product-card {
        padding: 20px;
    }
    .page-about__security-item,
    .page-about__responsible-item {
        padding: 12px 15px;
        font-size: 0.9em;
    }
    .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: 10px 20px;
    }
}

@media (max-width: 480px) {
    .page-about__main-title {
        font-size: 1.8em;
    }
    .page-about__section-title {
        font-size: 1.5em;
    }
    .page-about__intro-text {
        font-size: 0.9em;
    }
    .page-about__cta-button {
        font-size: 0.9em;
    }
}