:root {
    --okbet-primary: #F2C14E;
    --okbet-secondary: #FFD36B;
    --okbet-card-bg: #111111;
    --okbet-main-bg: #0A0A0A;
    --okbet-text-main: #FFF6D6;
    --okbet-border: #3A2A12;
    --okbet-glow: #FFD36B;
    --okbet-btn-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
}

.page-about {
    background-color: var(--okbet-main-bg); /* Using custom background color */
    color: var(--okbet-text-main); /* Using custom text color for high contrast */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-top: 10px; /* Small top padding for the first section, body handles --header-offset */
}

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

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

.page-about__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: var(--okbet-text-main);
}

.page-about__text-block a {
    color: var(--okbet-secondary);
    text-decoration: underline;
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-bottom: 60px; /* Space below content */
    box-sizing: border-box;
}

.page-about__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    margin-bottom: 30px; /* Space between image and content */
}

.page-about__hero-content {
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
    box-sizing: border-box;
    z-index: 2;
}

.page-about__main-title {
    font-size: clamp(2.5em, 5vw, 3.8em); /* Use clamp for H1 */
    color: var(--okbet-primary);
    margin-bottom: 15px;
    line-height: 1.1;
    font-weight: bold;
    letter-spacing: -0.03em;
}

.page-about__hero-description {
    font-size: clamp(1.1em, 2vw, 1.4em);
    color: var(--okbet-text-main);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Ensure buttons wrap on smaller screens */
}

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow text to break words */
    max-width: 100%; /* Ensure buttons don't overflow */
    text-align: center;
}

.page-about__btn-primary {
    background: var(--okbet-btn-gradient);
    color: #ffffff; /* White text for contrast */
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-about__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

.page-about__btn-secondary {
    background: transparent;
    color: var(--okbet-primary);
    border: 2px solid var(--okbet-primary);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-about__btn-secondary:hover {
    background: var(--okbet-primary);
    color: var(--okbet-main-bg);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Introduction Section */
.page-about__introduction-section {
    padding: 60px 0;
    background-color: var(--okbet-main-bg);
}

/* Unique Features Section */
.page-about__unique-features-section {
    padding: 60px 0;
    background-color: var(--okbet-main-bg);
}

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

.page-about__feature-card {
    background-color: var(--okbet-card-bg); /* Using custom card background */
    color: var(--okbet-text-main); /* Using custom text color */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    border: 1px solid var(--okbet-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-about__feature-icon {
    width: 100%; /* Ensure images are responsive */
    height: auto;
    max-width: 250px; /* Example, adjust as needed */
    margin: 0 auto 20px auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

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

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

.page-about__card-description a {
    color: var(--okbet-secondary);
    text-decoration: underline;
}

/* Responsible Gaming Section */
.page-about__responsible-gaming-section {
    padding: 60px 0;
    background-color: var(--okbet-main-bg);
}

.page-about__responsible-gaming-section .page-about__cta-buttons {
    margin-top: 40px;
}

/* Experience Section */
.page-about__experience-section {
    padding: 60px 0;
    background-color: var(--okbet-main-bg);
}

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

.page-about__experience-item {
    background-color: var(--okbet-card-bg);
    color: var(--okbet-text-main);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--okbet-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

/* Why Choose Section */
.page-about__why-choose-section {
    padding: 60px 0;
    background-color: var(--okbet-main-bg);
}

.page-about__list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-about__list-item {
    background-color: var(--okbet-card-bg);
    color: var(--okbet-text-main);
    padding: 20px 25px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--okbet-border);
    font-size: 1.1em;
    display: flex;
    align-items: flex-start;
}

.page-about__list-item::before {
    content: '✓'; /* Checkmark icon */
    color: var(--okbet-secondary);
    font-weight: bold;
    margin-right: 15px;
    font-size: 1.3em;
    line-height: 1;
}

.page-about__list-item a {
    color: var(--okbet-secondary);
    text-decoration: underline;
}

/* FAQ Section */
.page-about__faq-section {
    padding: 60px 0;
    background-color: var(--okbet-main-bg);
}

.page-about__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__faq-item {
    background-color: var(--okbet-card-bg);
    color: var(--okbet-text-main);
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--okbet-border);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for question */
    transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.page-about__faq-question h3 {
    font-size: 1.2em;
    color: var(--okbet-primary);
    margin: 0;
    font-weight: bold;
    line-height: 1.4;
}

.page-about__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--okbet-secondary);
    transition: transform 0.3s ease;
    line-height: 1; /* Align + - vertically */
    margin-left: 15px;
}

.page-about__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: var(--okbet-card-bg);
    color: var(--okbet-text-main);
}

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

.page-about__faq-item.active .page-about__faq-toggle {
    transform: rotate(45deg); /* Change + to X or - */
}

.page-about__faq-answer p {
    margin-bottom: 0;
    font-size: 1em;
}

.page-about__faq-answer a {
    color: var(--okbet-secondary);
    text-decoration: underline;
}

/* CTA Section */
.page-about__cta-section {
    padding: 80px 0;
    background-color: var(--okbet-primary); /* Use primary color for CTA background */
    color: #ffffff; /* White text for contrast */
    text-align: center;
    margin-top: 60px;
}

.page-about__cta-section .page-about__section-title {
    color: #ffffff;
    margin-bottom: 20px;
}

.page-about__cta-section .page-about__text-block {
    color: #ffffff;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.2em;
    margin-bottom: 40px;
}

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

.page-about__cta-section .page-about__btn-primary {
    background: var(--okbet-btn-gradient);
    color: #ffffff;
    border: 2px solid transparent;
}

.page-about__cta-section .page-about__btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.page-about__cta-section .page-about__btn-secondary:hover {
    background: #ffffff;
    color: var(--okbet-primary);
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__section-title {
        font-size: 2em;
    }
    .page-about__main-title {
        font-size: clamp(2em, 4.5vw, 3em);
    }
    .page-about__hero-description {
        font-size: clamp(1em, 1.8vw, 1.2em);
    }
    .page-about__features-grid,
    .page-about__experience-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-about {
        font-size: 16px;
        line-height: 1.6;
        padding-top: 10px !important; /* Ensure small top padding, body handles header offset */
    }

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

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

    .page-about__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
    }

    .page-about__hero-description {
        font-size: clamp(0.9em, 3vw, 1.1em);
    }

    .page-about__hero-actions {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .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-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden; /* Prevent overflow */
    }

    .page-about__hero-image,
    .page-about__feature-icon,
    .page-about__experience-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        object-fit: cover;
    }

    .page-about__features-grid,
    .page-about__experience-grid {
        grid-template-columns: 1fr;
    }

    .page-about__feature-card,
    .page-about__experience-item,
    .page-about__list-item,
    .page-about__faq-item {
        padding: 20px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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

    .page-about__faq-question h3 {
        font-size: 1.1em;
    }

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

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

    /* Ensure all sections and containers have mobile padding */
    .page-about__introduction-section .page-about__container,
    .page-about__unique-features-section .page-about__container,
    .page-about__responsible-gaming-section .page-about__container,
    .page-about__experience-section .page-about__container,
    .page-about__why-choose-section .page-about__container,
    .page-about__faq-section .page-about__container,
    .page-about__cta-section .page-about__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

@media (max-width: 480px) {
    .page-about__section-title {
        font-size: 1.5em;
    }
    .page-about__main-title {
        font-size: clamp(1.5em, 8vw, 2em);
    }
    .page-about__hero-actions {
        flex-direction: column;
    }
}