/* style/about.css */

:root {
    --zbet68-primary: #11A84E;
    --zbet68-secondary: #22C768;
    --zbet68-bg-dark: #08160F;
    --zbet68-card-bg: #11271B;
    --zbet68-text-main: #F2FFF6;
    --zbet68-text-secondary: #A7D9B8;
    --zbet68-border: #2E7A4E;
    --zbet68-glow: #57E38D;
    --zbet68-gold: #F2C14E;
    --zbet68-divider: #1E3A2A;
    --zbet68-deep-green: #0A4B2C;
    --zbet68-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

.page-about {
    font-family: Arial, sans-serif;
    color: var(--zbet68-text-main);
    background-color: var(--zbet68-bg-dark); /* Ensure text contrast */
    line-height: 1.6;
}

.page-about__section {
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

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

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

.page-about__section-title {
    font-size: clamp(28px, 3.5vw, 42px);
    font-weight: 700;
    color: var(--zbet68-gold);
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.2;
}

.page-about__description {
    font-size: 18px;
    color: var(--zbet68-text-secondary);
    text-align: center;
    max-width: 900px;
    margin: 0 auto 30px auto;
}

/* Hero Section */
.page-about__hero-section {
    padding: 10px 0 60px 0; /* body already handles padding-top from header */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.page-about__hero-image-wrapper {
    width: 100%;
    max-height: 700px;
    overflow: hidden;
    margin-bottom: 30px; /* Space between image and content */
}

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

.page-about__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 0 20px;
}

.page-about__main-title {
    font-size: clamp(32px, 4.5vw, 56px);
    font-weight: 800;
    color: var(--zbet68-gold);
    margin-bottom: 20px;
    line-height: 1.1;
}

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    text-align: center;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow long words to break */
}

.page-about__btn-primary {
    background: var(--zbet68-button-gradient);
    color: var(--zbet68-text-main);
    border: 2px solid transparent;
}

.page-about__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

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

.page-about__btn-secondary:hover {
    background-color: var(--zbet68-primary);
    color: var(--zbet68-text-main);
}

/* History Section */
.page-about__history-section .page-about__container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.page-about__history-section .page-about__text-block {
    flex: 1;
    min-width: 300px;
    font-size: 17px;
    color: var(--zbet68-text-secondary);
    text-align: left;
    margin: 0;
}

.page-about__history-section .page-about__image-block {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-about__history-section .page-about__image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

.page-about__value-card {
    background-color: var(--zbet68-card-bg);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--zbet68-border);
    transition: transform 0.3s ease;
}

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

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

.page-about__value-description {
    font-size: 16px;
    color: var(--zbet68-text-secondary);
    line-height: 1.7;
}

.page-about__values-section .page-about__image-block--center {
    text-align: center;
}

.page-about__values-section .page-about__image {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Team Section */
.page-about__team-section .page-about__container {
    display: flex;
    flex-wrap: wrap-reverse; /* Image first on mobile, then text */
    align-items: center;
    gap: 40px;
}

.page-about__team-section .page-about__text-block {
    flex: 1;
    min-width: 300px;
    font-size: 17px;
    color: var(--zbet68-text-secondary);
    text-align: left;
    margin: 0;
}

.page-about__team-section .page-about__image-block {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-about__team-section .page-about__image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Technology & Security Section */
.page-about__tech-security-section .page-about__container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.page-about__tech-security-section .page-about__text-block {
    flex: 1;
    min-width: 300px;
    font-size: 17px;
    color: var(--zbet68-text-secondary);
    text-align: left;
    margin: 0;
}

.page-about__tech-security-section .page-about__image-block {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-about__tech-security-section .page-about__image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Commitment Section */
.page-about__commitment-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-about__commitment-item {
    background-color: var(--zbet68-card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--zbet68-border);
}

.page-about__commitment-heading {
    font-size: 22px;
    color: var(--zbet68-primary);
    margin-bottom: 10px;
    font-weight: 700;
}

.page-about__commitment-item p {
    font-size: 16px;
    color: var(--zbet68-text-secondary);
    line-height: 1.7;
    margin-bottom: 0;
}

/* FAQ Section */
.page-about__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-about__faq-item {
    background-color: var(--zbet68-card-bg);
    border: 1px solid var(--zbet68-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 18px;
    font-weight: 600;
    color: var(--zbet68-text-main);
    cursor: pointer;
    background-color: var(--zbet68-card-bg);
    transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
    background-color: var(--zbet68-deep-green);
}

.page-about__faq-qtext {
    flex-grow: 1;
}

.page-about__faq-toggle {
    font-size: 24px;
    line-height: 1;
    margin-left: 15px;
    color: var(--zbet68-gold);
}

.page-about__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 16px;
    color: var(--zbet68-text-secondary);
    line-height: 1.7;
}

.page-about__faq-item[open] .page-about__faq-toggle {
    content: '−';
}

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

.page-about__faq-item summary::marker {
    display: none;
}

.page-about__faq-item a {
    color: var(--zbet68-primary);
    text-decoration: underline;
}

.page-about__faq-item a:hover {
    color: var(--zbet68-gold);
}

/* CTA Section */
.page-about__cta-section {
    text-align: center;
    padding: 80px 0;
    background-color: var(--zbet68-deep-green);
    border-top: 2px solid var(--zbet68-border);
}

.page-about__cta-section .page-about__section-title {
    color: var(--zbet68-gold);
}

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

/* --- Responsive Styles --- */
@media (max-width: 992px) {
    .page-about__hero-section .page-about__hero-image-wrapper {
        max-height: 500px;
    }

    .page-about__history-section .page-about__container,
    .page-about__team-section .page-about__container,
    .page-about__tech-security-section .page-about__container {
        flex-direction: column;
        text-align: center;
    }

    .page-about__history-section .page-about__text-block,
    .page-about__team-section .page-about__text-block,
    .page-about__tech-security-section .page-about__text-block {
        text-align: center;
    }

    .page-about__team-section .page-about__container {
        flex-direction: column-reverse; /* Text first, then image on smaller screens */
    }

    .page-about__values-grid {
        grid-template-columns: 1fr;
    }
}

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

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

    .page-about__container {
        padding: 0 15px !important;
    }

    .page-about__section-title {
        font-size: clamp(24px, 6vw, 36px);
        margin-bottom: 30px;
    }

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

    /* Images responsive */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-about__hero-image-wrapper,
    .page-about__image-block,
    .page-about__container,
    .page-about__history-section .page-about__container,
    .page-about__team-section .page-about__container,
    .page-about__tech-security-section .page-about__container,
    .page-about__values-section .page-about__container,
    .page-about__commitment-section .page-about__container,
    .page-about__faq-section .page-about__container,
    .page-about__cta-section .page-about__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    /* Buttons responsive */
    .page-about__btn-primary,
    .page-about__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-bottom: 15px;
        font-size: 16px;
        padding: 12px 20px;
    }

    .page-about__cta-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .page-about__value-card,
    .page-about__commitment-item {
        padding: 25px;
    }

    .page-about__value-title,
    .page-about__commitment-heading {
        font-size: 20px;
    }

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

    .page-about__faq-answer {
        padding: 0 20px 15px 20px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .page-about__hero-section .page-about__hero-image-wrapper {
        max-height: 300px;
    }
    .page-about__main-title {
        font-size: clamp(28px, 8vw, 40px);
    }
}