:root {
    --primary-color: #F2C14E;
    --secondary-color: #FFD36B;
    --text-main-color: #FFF6D6;
    --card-bg-color: #111111;
    --background-color: #0A0A0A;
    --border-color: #3A2A12;
    --glow-color: #FFD36B;
    --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    --primary-color-rgb: 242, 193, 78;
}

/* Base styles for the page */
.page-about {
    font-family: 'Arial', sans-serif;
    color: var(--text-main-color); /* Light text on dark body background */
    background-color: var(--background-color); /* Body background */
    line-height: 1.6;
    padding-bottom: 50px; /* Ensure space above footer */
}

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

.page-about__section-title {
    font-size: 38px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(var(--primary-color-rgb), 0.5);
    padding-top: 40px;
}

.page-about__sub-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--secondary-color);
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-about__description {
    font-size: 18px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: var(--text-main-color);
}

.page-about__highlight {
    color: var(--secondary-color);
    font-weight: bold;
}

.page-about__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--button-gradient);
    color: #0A0A0A; /* Dark text for button */
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    margin: 10px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 211, 107, 0.4);
}

.page-about__cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 211, 107, 0.6);
}

.page-about__cta-button--secondary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    box-shadow: none;
}

.page-about__cta-button--secondary:hover {
    background: var(--primary-color);
    color: #0A0A0A;
    box-shadow: 0 4px 15px rgba(var(--primary-color-rgb), 0.4);
}

.page-about__cta-button--small {
    padding: 10px 25px;
    font-size: 16px;
    margin-top: 15px;
}

.page-about__card {
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%; /* Ensure cards in grid have equal height */
    box-sizing: border-box;
}

.page-about__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.page-about__card-title {
    font-size: 26px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.page-about__card p {
    color: var(--text-main-color);
    font-size: 16px;
}

/* Hero Section */
.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 for hero */
    background-color: var(--background-color); /* Use body background for consistency */
}

.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: 12px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

.page-about__main-title {
    font-size: clamp(32px, 5vw, 56px); /* Responsive font size */
    font-weight: 900;
    color: var(--primary-color);
    text-shadow: 0 0 20px rgba(var(--primary-color-rgb), 0.8);
    margin-bottom: 20px;
    line-height: 1.2;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Intro Section */
.page-about__intro-section {
    padding: 80px 0;
    background-color: var(--background-color);
}

.page-about__content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.page-about__content-grid--reverse {
    grid-template-areas: "image text";
}

.page-about__content-grid--reverse .page-about__text-block {
    grid-area: text;
}

.page-about__content-grid--reverse .page-about__image-right {
    grid-area: image;
}

.page-about__text-block p {
    margin-bottom: 15px;
    font-size: 17px;
    color: var(--text-main-color);
}

.page-about__image-block img,
.page-about__image-left img,
.page-about__image-right img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Vision and Mission Section */
.page-about__vision-mission-section {
    padding: 80px 0;
    background-color: var(--card-bg-color); /* Lighter dark background for contrast */
}

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

.page-about__vision-mission-section .page-about__card img {
    margin-top: 20px;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

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

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

.page-about__feature-item {
    padding: 25px;
}

.page-about__feature-title {
    font-size: 22px;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.page-about__feature-item img {
    margin-top: 20px;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.page-about__cta-center {
    text-align: center;
    margin-top: 40px;
}

/* Security and Fairness Section */
.page-about__security-fairness-section {
    padding: 80px 0;
    background-color: var(--card-bg-color);
}

.page-about__content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.page-about__text-right {
    text-align: left;
}

/* User Experience Section */
.page-about__user-experience-section {
    padding: 80px 0;
    background-color: var(--background-color);
}

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

/* Contact Section */
.page-about__contact-section {
    padding: 80px 0;
    background-color: var(--background-color);
}

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

.page-about__contact-item {
    padding: 25px;
}

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

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

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

details.page-about__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    background: var(--card-bg-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

details.page-about__faq-item summary.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 18px;
}

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: rgba(var(--primary-color-rgb), 0.1); /* Slightly lighter hover */
}

.page-about__faq-qtext {
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: var(--text-main-color);
}

.page-about__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    color: var(--secondary-color);
    flex-shrink: 0;
    margin-left: 15px;
    width: 30px;
    text-align: center;
}

details.page-about__faq-item .page-about__faq-answer {
    padding: 0 25px 25px;
    background: rgba(var(--primary-color-rgb), 0.05); /* Very light background for answer */
    border-top: 1px solid var(--border-color);
    border-radius: 0 0 8px 8px;
}

.page-about__faq-answer p {
    font-size: 16px;
    color: var(--text-main-color);
    padding-top: 15px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__main-title {
        font-size: clamp(32px, 4vw, 48px);
    }
    .page-about__section-title {
        font-size: 32px;
    }
    .page-about__description {
        font-size: 16px;
    }
    .page-about__sub-title {
        font-size: 22px;
    }
    .page-about__content-grid,
    .page-about__content-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .page-about__content-grid--reverse {
        grid-template-areas: unset; /* Reset grid-area for mobile */
    }
    .page-about__image-left,
    .page-about__image-right,
    .page-about__text-block {
        text-align: center;
    }
}

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

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

    .page-about__hero-image img {
        border-radius: 8px;
    }

    .page-about__main-title {
        font-size: clamp(28px, 8vw, 36px);
        margin-bottom: 15px;
    }

    .page-about__description {
        font-size: 15px;
        margin-bottom: 30px;
    }

    .page-about__section-title {
        font-size: 28px;
        margin-bottom: 40px;
        padding-top: 30px;
    }

    .page-about__sub-title {
        font-size: 20px;
        margin-top: 25px;
        margin-bottom: 10px;
    }

    .page-about__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 15px; /* Add padding to container */
    }

    .page-about__cta-button,
    .page-about__cta-button--secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 25px;
        font-size: 16px;
        margin: 0; /* Remove margin to use gap */
    }

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

    .page-about__intro-section,
    .page-about__vision-mission-section,
    .page-about__why-choose-section,
    .page-about__security-fairness-section,
    .page-about__user-experience-section,
    .page-about__responsible-gaming-section,
    .page-about__contact-section,
    .page-about__faq-section {
        padding: 60px 0;
    }

    .page-about__content-grid,
    .page-about__content-wrapper,
    .page-about__grid,
    .page-about__features-grid,
    .page-about__contact-methods {
        gap: 25px;
    }

    .page-about__card {
        padding: 20px;
        border-radius: 8px;
    }

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

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

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

    .page-about__faq-qtext {
        font-size: 16px;
    }

    .page-about__faq-toggle {
        font-size: 24px;
        width: 25px;
    }

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

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

    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__text-block,
    .page-about__image-block,
    .page-about__image-left,
    .page-about__image-right {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-about__text-block {
        padding: 0 10px; /* Add some horizontal padding for text blocks */
    }
}

@media (max-width: 480px) {
    .page-about__main-title {
        font-size: clamp(24px, 7vw, 32px);
    }
    .page-about__section-title {
        font-size: 24px;
    }
    .page-about__cta-button {
        padding: 10px 20px;
        font-size: 15px;
    }
    .page-about__card-title {
        font-size: 20px;
    }
    .page-about__faq-qtext {
        font-size: 15px;
    }
    .page-about__faq-toggle {
        font-size: 22px;
    }
}