:root {
    /* Custom colors from requirements */
    --primary-color: #FF8C1A;
    --secondary-color: #FFA53A;
    --button-gradient: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
    --card-bg: #17191F;
    --page-bg: #0D0E12; /* Set body background here */
    --text-main: #FFF3E6;
    --border-color: #A84F0C;
    --glow-color: #FFB04D;
    --deep-orange: #D96800;
}

/* Base styles for the page content */
.page-about {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-main); /* Default text color for the page */
    background-color: var(--page-bg); /* Apply the specified background color */
}

/* Ensure body padding-top is handled by shared.css */
/* .page-about should not have padding-top: var(--header-offset); */

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

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

.page-about__section-title {
    font-size: 3em;
    font-weight: bold;
    margin-bottom: 30px;
    color: var(--primary-color);
    line-height: 1.2;
}

.page-about__subsection-title {
    font-size: 2em;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.page-about__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-main);
}

.page-about__list {
    list-style: none;
    padding: 0;
    margin: 30px auto;
    max-width: 900px;
    text-align: left;
}

.page-about__list-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    font-size: 1.05em;
    color: var(--text-main);
}

.page-about__list-item::before {
    content: '✅';
    margin-right: 10px;
    font-size: 1.2em;
}

/* 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;
    /* Small top padding, body handles --header-offset */
    padding-top: 10px; 
    background-color: var(--page-bg);
    overflow: hidden; /* Ensure no overflow */
}

.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-wrapper {
    width: 100%;
    margin-bottom: 30px;
    position: relative;
    z-index: 1; /* Ensure image is behind content if needed, but not overlayed */
}

.page-about__hero-image-wrapper img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    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%;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-about__main-title {
    font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size */
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    line-height: 1.2;
}

.page-about__tagline {
    font-size: clamp(1.1em, 2.5vw, 1.4em);
    color: var(--text-main);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--button-gradient);
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.2em;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
}

.page-about__cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    filter: brightness(1.1);
}

.page-about__cta-button--small {
    padding: 12px 30px;
    font-size: 1em;
    margin-top: 15px;
}

/* Dark Background Section Styles */
.page-about__dark-bg {
    background-color: var(--card-bg); /* Use card background for dark sections */
    color: var(--text-main);
}

.page-about__dark-bg .page-about__section-title {
    color: var(--primary-color);
}

.page-about__dark-bg .page-about__subsection-title {
    color: var(--secondary-color);
}

/* Image Wrapper Styles */
.page-about__image-wrapper {
    margin: 40px auto;
    max-width: 1000px; /* Adjust max-width as needed */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-about__image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-about__image-wrapper--small {
    max-width: 600px;
    margin: 20px auto;
}

.page-about__image-wrapper--full-width {
    max-width: 100%;
    margin: 50px auto;
}

/* Products Section */
.page-about__products-section {
    background-color: var(--page-bg);
}

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

.page-about__card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

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

.page-about__card-text {
    font-size: 1em;
    line-height: 1.7;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-about__card-link {
    display: inline-block;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 5px;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.page-about__card-link:hover {
    color: var(--glow-color);
    border-color: var(--glow-color);
}

/* Advantages Section */
.page-about__advantages-section {
    background-color: var(--card-bg);
}

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

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

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

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

.page-about__feature-text {
    font-size: 1em;
    line-height: 1.7;
    margin-bottom: 15px;
}

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

/* Contact & FAQ Section */
.page-about__contact-faq-section {
    background-color: var(--card-bg);
}

.page-about__contact-info {
    font-size: 1.1em;
    margin-top: 30px;
    margin-bottom: 40px;
    color: var(--text-main);
}

.page-about__contact-info a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-about__contact-info a:hover {
    color: var(--glow-color);
}

.page-about__faq-title {
    margin-top: 50px;
    margin-bottom: 30px;
    color: var(--primary-color);
}

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

details.page-about__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    background: var(--page-bg);
}
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;
    color: var(--text-main);
}
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: #1e2026; /* Slightly lighter version of page-bg for hover */
}
.page-about__faq-qtext {
    flex: 1;
    font-size: 1.1em;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: var(--text-main);
}
.page-about__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--secondary-color);
    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: #1e2026; /* Slightly lighter version of page-bg for answer */
    border-radius: 0 0 5px 5px;
    color: var(--text-main);
}
.page-about__faq-answer p {
    margin: 0;
    font-size: 1em;
    line-height: 1.7;
    color: var(--text-main);
}
.page-about__faq-answer .page-about__card-link {
    margin-top: 15px;
    display: inline-block;
}

/* General image styling for content areas */
.page-about img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__section-title {
        font-size: 2.5em;
    }
    .page-about__subsection-title {
        font-size: 1.8em;
    }
    .page-about__text-block, .page-about__list-item, .page-about__card-text, .page-about__feature-text, .page-about__contact-info p, .page-about__faq-qtext {
        font-size: 1em;
    }
}

@media (max-width: 768px) {
    .page-about__hero-section {
        padding-top: 10px !important; /* Keep small top padding */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-about__hero-image-wrapper img {
        border-radius: 4px;
    }
    .page-about__main-title {
        font-size: clamp(2em, 8vw, 2.5em);
    }
    .page-about__tagline {
        font-size: clamp(0.9em, 3vw, 1.1em);
    }
    .page-about__cta-button {
        padding: 12px 30px;
        font-size: 1em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-about__cta-button--small {
        padding: 10px 25px;
        font-size: 0.9em;
    }

    .page-about__section {
        padding: 40px 0;
    }
    .page-about__section-title {
        font-size: 2em;
        margin-bottom: 20px;
    }
    .page-about__subsection-title {
        font-size: 1.5em;
        margin-top: 30px;
        margin-bottom: 15px;
    }
    .page-about__container {
        padding: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-about__grid-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-about__features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Mobile image responsive styles */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-about__image-wrapper, .page-about__card, .page-about__feature-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px; /* Add padding to content within these blocks */
        padding-right: 15px;
        margin-left: 0;
        margin-right: 0;
    }
    .page-about__list {
        margin: 20px 0;
        padding: 0 15px;
    }
    .page-about__list-item {
        font-size: 0.95em;
        padding: 12px 15px;
    }

    details.page-about__faq-item summary.page-about__faq-question { padding: 15px; }
    .page-about__faq-qtext { font-size: 1em; }
    .page-about__faq-toggle { font-size: 1.3em; }
    details.page-about__faq-item .page-about__faq-answer { padding: 0 15px 15px; }
}