/* style/about.css */

:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #ffffff;
    --bg-dark: #017439;
    --btn-register: #C30808;
    --btn-login: #C30808;
    --btn-text-highlight: #FFFF00;
    --border-color: #e0e0e0;
}

/* Base styles for the page content */
.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark); /* Body background is light, so use dark text */
    background-color: var(--bg-light);
}

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

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

.page-about__section-title {
    font-size: 36px;
    font-weight: bold;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.2;
}

.page-about__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, header offset handled by body */
    background-color: var(--bg-light);
}

.page-about__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.page-about__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

.page-about__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

.page-about__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-about__main-title {
    font-weight: bold;
    line-height: 1.2;
    color: var(--primary-color);
    margin-bottom: 20px;
    /* Using clamp for responsive font size, but within limits */
    font-size: clamp(2.2rem, 4vw, 3.5rem);
}

.page-about__intro-text {
    font-size: 18px;
    color: var(--text-dark);
    max-width: 800px;
    margin: 0 auto 30px auto;
}

.page-about__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--btn-register);
    color: var(--btn-text-highlight);
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 10px;
    transition: all 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-about__cta-button:hover {
    background: darken(var(--btn-register), 10%); /* Darken for hover effect */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-about__mission-vision .page-about__content-wrapper {
    display: flex;
    gap: 40px;
    align-items: center;
}

.page-about__mission-vision .page-about__text-block {
    flex: 1;
}

.page-about__mission-vision .page-about__text-block p {
    font-size: 17px;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.page-about__mission-vision .page-about__image-block {
    flex: 1;
    text-align: center;
}

.page-about__mission-vision .page-about__image-block img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    max-width: 100%;
    display: block;
}

.page-about__dark-section {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.page-about__dark-section .page-about__section-title {
    color: var(--text-light);
}

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

.page-about__card {
    background: var(--bg-light);
    color: var(--text-dark);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.page-about__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-about__card-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-about__card p {
    font-size: 16px;
    margin-bottom: 20px;
}

.page-about__card img {
    width: 100%;
    height: auto;
    max-width: 100%;
    border-radius: 4px;
    margin-top: 15px;
    object-fit: cover;
    min-width: 200px;
    min-height: 200px;
}

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

.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-about__btn-primary {
    background: var(--btn-register);
    color: var(--btn-text-highlight);
    border: 2px solid transparent;
}

.page-about__btn-primary:hover {
    background: darken(var(--btn-register), 10%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-about__btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-about__btn-secondary:hover {
    background: var(--primary-color);
    color: var(--text-light);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-about__responsible-gaming .page-about__responsible-list {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 30px;
    font-size: 17px;
}

.page-about__responsible-gaming .page-about__responsible-list li {
    margin-bottom: 10px;
}

.page-about__responsible-gaming p {
    font-size: 17px;
    margin-bottom: 20px;
}

/* FAQ Section */
details.page-about__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    background: var(--bg-light);
}
details.page-about__faq-item summary.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
}
details.page-about__faq-item summary.page-about__faq-question::-webkit-details-marker {
    display: none;
}
details.page-about__faq-item summary.page-about__faq-question:hover {
    background: #f5f5f5;
}
.page-about__faq-qtext {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: var(--text-dark);
}
.page-about__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: #666;
    flex-shrink: 0;
    margin-left: 15px;
    width: 28px;
    text-align: center;
}
details.page-about__faq-item .page-about__faq-answer {
    padding: 0 20px 20px;
    background: #f9f9f9;
    border-radius: 0 0 5px 5px;
    color: var(--text-dark);
}

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

.page-about .highlight {
    color: var(--primary-color);
    font-weight: bold;
}

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

    .page-about__main-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }

    .page-about__intro-text {
        font-size: 17px;
    }

    .page-about__mission-vision .page-about__content-wrapper {
        flex-direction: column;
    }

    .page-about__mission-vision .page-about__image-block {
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .page-about {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-about__hero-section {
        padding-top: 10px !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

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

    .page-about__section-title {
        font-size: 26px;
        margin-bottom: 30px;
    }

    .page-about__main-title {
        font-size: clamp(1.8rem, 6vw, 2.8rem);
    }

    .page-about__intro-text {
        font-size: 16px;
    }

    .page-about__cta-button {
        padding: 12px 30px;
        font-size: 16px;
        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__btn-primary,
    .page-about__btn-secondary {
        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-group {
        flex-direction: column;
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-about__card {
        padding: 20px;
    }

    .page-about__card-title {
        font-size: 20px;
    }

    .page-about__card img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px;
        min-height: 200px;
    }

    .page-about__mission-vision .page-about__text-block p,
    .page-about__responsible-gaming p,
    .page-about__responsible-gaming .page-about__responsible-list li {
        font-size: 16px;
    }

    details.page-about__faq-item summary.page-about__faq-question { padding: 15px; }
    .page-about__faq-qtext { font-size: 15px; }

    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-about__section,
    .page-about__card,
    .page-about__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}