/* style/about.css */

:root {
    --primary-color: #FF8C1A;
    --secondary-color: #FFA53A;
    --background-color: #0D0E12;
    --card-bg-color: #17191F;
    --text-main-color: #FFF3E6;
    --border-color: #A84F0C;
    --glow-color: #FFB04D;
    --deep-orange-color: #D96800;
    --button-gradient: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
}

.page-about {
    font-family: Arial, sans-serif;
    color: var(--text-main-color); /* Main text color for the page */
    background-color: var(--background-color); /* Page background color */
    line-height: 1.6;
}

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

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

.page-about__dark-section {
    background-color: var(--card-bg-color);
}

.page-about__section-title {
    font-size: 2.5em;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    position: relative;
}

.page-about__section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

.page-about__sub-title {
    font-size: 1.8em;
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-weight: bold;
    text-align: center;
}

.page-about__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
}

.page-about__hero-section {
    padding-top: 10px; /* Adjusted to prevent double padding with body */
    padding-bottom: 0;
    padding-left: 0;
    padding-right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.page-about__hero-image-wrapper {
    width: 100%;
    max-height: 600px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}

.page-about__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-about__hero-content-wrapper {
    max-width: 900px;
    padding: 0 20px 60px;
    box-sizing: border-box;
}

.page-about__main-title {
    font-size: 3.2em;
    color: var(--text-main-color);
    margin-bottom: 20px;
    font-weight: 900;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(255,165,58,0.5);
}

.page-about__hero-description {
    font-size: 1.3em;
    color: var(--text-main-color);
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

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

.page-about__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(255,140,26,0.4);
}

.page-about__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255,140,26,0.6);
}

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

.page-about__btn-secondary:hover {
    background: var(--secondary-color);
    color: var(--background-color);
}

.page-about__btn-link {
    padding: 10px 20px;
    font-size: 1em;
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    margin-top: 15px;
}

.page-about__btn-link:hover {
    background: var(--secondary-color);
}

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

.page-about__mission-values-section {
    text-align: center;
}

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

.page-about__grid-full-width {
    grid-column: 1 / -1;
}

.page-about__value-card,
.page-about__service-card {
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-about__value-card:hover,
.page-about__service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255,140,26,0.2);
}

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

.page-about__value-card .page-about__card-image {
    width: 100%;
    max-height: 200px;
}

.page-about__service-card .page-about__card-image {
    width: 100%;
    max-height: 250px;
}

.page-about__card-title {
    font-size: 1.5em;
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-about__card-description {
    font-size: 0.95em;
    color: var(--text-main-color);
    flex-grow: 1;
}

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

.page-about__tech-security-section .page-about__container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.page-about__feature-item {
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.page-about__feature-title {
    font-size: 1.4em;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-about__feature-description {
    font-size: 0.95em;
    color: var(--text-main-color);
}

.page-about__tech-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-top: 40px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
}

.page-about__support-list {
    list-style: none;
    padding: 0;
    margin: 30px 0;
    text-align: center;
}

.page-about__support-item {
    font-size: 1.1em;
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.page-about__support-item::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.page-about__responsible-gambling-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-top: 40px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
}

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

.page-about__faq-item {
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    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.2em;
    font-weight: bold;
    color: var(--secondary-color);
    cursor: pointer;
    list-style: none;
    background-color: var(--card-bg-color);
}

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

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

.page-about__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-about__faq-item[open] .page-about__faq-toggle {
    transform: rotate(45deg);
}

.page-about__faq-answer {
    padding: 15px 25px 20px;
    font-size: 1em;
    color: var(--text-main-color);
    border-top: 1px solid var(--border-color);
}

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

/* --- Responsive Styles --- */

@media (max-width: 1024px) {
    .page-about__main-title {
        font-size: 2.8em;
    }

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

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

    .page-about__sub-title {
        font-size: 1.6em;
    }

    .page-about__values-grid,
    .page-about__services-grid,
    .page-about__tech-features-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .page-about__value-card .page-about__card-image {
        max-height: 180px;
    }

    .page-about__service-card .page-about__card-image {
        max-height: 220px;
    }
}

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

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

    .page-about__hero-section {
        padding-top: 10px !important; /* Fixed header spacing */
        padding-bottom: 30px;
    }

    .page-about__hero-image-wrapper {
        max-height: 300px;
        margin-bottom: 20px;
    }

    .page-about__hero-content-wrapper {
        padding: 0 15px;
    }

    .page-about__main-title {
        font-size: 2em;
        margin-bottom: 15px;
    }

    .page-about__hero-description {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .page-about__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

    .page-about__btn-primary,
    .page-about__btn-secondary,
    .page-about__btn-link {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }

    .page-about__btn-large {
        padding: 15px 30px;
        font-size: 1.1em;
    }

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

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

    .page-about__sub-title {
        font-size: 1.4em;
    }

    .page-about__text-block {
        font-size: 1em;
    }

    .page-about__values-grid,
    .page-about__services-grid,
    .page-about__tech-features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }

    .page-about__value-card,
    .page-about__service-card,
    .page-about__feature-item {
        padding: 20px;
    }

    .page-about__card-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-about__tech-image,
    .page-about__responsible-gambling-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        margin-top: 30px;
    }

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

    .page-about__faq-answer {
        padding: 10px 20px 15px;
    }

    /* Ensure all images inside .page-about are responsive */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Ensure containers with images are responsive */
    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__hero-image-wrapper,
    .page-about__value-card,
    .page-about__service-card,
    .page-about__feature-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}