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

.page-about__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: #f8f8f8;
    text-align: center;
}

.page-about__hero-image {
    width: 100%;
    max-width: 1920px;
    height: auto;
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-about__hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.page-about__main-title {
    font-size: clamp(2em, 4vw, 3.2em);
    color: #26A9E0;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 700;
}

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

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

.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow long words to break */
    box-sizing: border-box;
    max-width: 100%;
}

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

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

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

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

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

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

.page-about__section-title {
    font-size: 2.5em;
    color: #26A9E0;
    margin-bottom: 40px;
    font-weight: 700;
}

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

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

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

.page-about__content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: left;
    margin-bottom: 40px;
}

.page-about__grid-item {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.page-about__dark-section .page-about__grid-item {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.page-about__grid-title {
    font-size: 1.8em;
    margin-bottom: 15px;
    font-weight: 600;
    color: #26A9E0;
}

.page-about__text-block {
    font-size: 1em;
    line-height: 1.7;
    color: #555555;
}

.page-about__dark-section .page-about__text-block {
    color: #e0e0e0;
}

.page-about__value-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.page-about__card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #333333;
}

.page-about__dark-section .page-about__card {
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-about__card-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    object-fit: contain;
}

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

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

.page-about__card-text {
    font-size: 0.95em;
    line-height: 1.6;
    color: #555555;
}

.page-about__dark-section .page-about__card-text {
    color: #e0e0e0;
}

.page-about__reason-list {
    display: flex;
    flex-direction: column;
    gap: 50px;
    text-align: left;
}

.page-about__reason-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.page-about__reason-item:nth-child(even) {
    flex-direction: column;
}

.page-about__item-title {
    font-size: 2em;
    color: #26A9E0;
    font-weight: 700;
}

.page-about__reason-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.page-about__responsible-gambling .page-about__btn-primary {
    margin-top: 30px;
}

.page-about__faq-list {
    text-align: left;
    margin-top: 40px;
}

.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.15em;
    font-weight: 600;
    color: #333333;
    cursor: pointer;
    background-color: #ffffff;
    transition: background-color 0.3s ease;
    list-style: none; /* For details tag */
}

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

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

.page-about__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #26A9E0;
    margin-left: 15px;
}

.page-about__faq-answer {
    padding: 15px 25px 25px;
    font-size: 1em;
    color: #555555;
    line-height: 1.7;
}

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

.page-about__faq-link {
    color: #26A9E0;
    text-decoration: underline;
}

.page-about__faq-link:hover {
    color: #1a7fb2;
}

/* Responsive styles */
@media (min-width: 769px) {
    .page-about__reason-item:nth-child(even) {
        flex-direction: row-reverse;
    }
    .page-about__reason-item:nth-child(odd) {
        flex-direction: row;
    }
}

@media (max-width: 768px) {
    .page-about__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important;
    }
    .page-about__main-title {
        font-size: 2em;
    }
    .page-about__hero-description {
        font-size: 1em;
    }
    .page-about__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding-left: 15px;
        padding-right: 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__section {
        padding: 40px 15px;
    }
    .page-about__section-title {
        font-size: 2em;
        margin-bottom: 30px;
    }
    .page-about__content-grid,
    .page-about__value-cards {
        grid-template-columns: 1fr;
    }
    .page-about__grid-item,
    .page-about__card {
        padding: 25px;
    }
    .page-about__grid-title {
        font-size: 1.5em;
    }
    .page-about__item-title {
        font-size: 1.8em;
    }
    .page-about__reason-item {
        flex-direction: column;
        gap: 20px;
    }
    .page-about__container,
    .page-about__card,
    .page-about__section,
    .page-about__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
    }
    .page-about img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-about__reason-image {
        width: 100%;
        max-width: 100%;
    }
    .page-about__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }
    .page-about__faq-answer {
        padding: 10px 20px 20px;
    }
}