:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg: #11271B;
    --background-color: #08160F;
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green-color: #0A4B2C;
    --body-bg: #08160F; /* Assuming a dark background from custom colors */
    --header-offset: 120px; /* Default, will be overridden by shared.css */
}

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

/* Hero Section */
.page-about__hero-section {
    display: flex;
    flex-direction: column; /* Enforce image on top, text below */
    align-items: center;
    text-align: center;
    padding: 10px 0 40px; /* Small top padding, no var(--header-offset) */
    background-color: var(--background-color);
    position: relative; /* For potential internal positioning, but no text overlay */
    overflow: hidden;
}

.page-about__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Desktop default */
    max-height: 600px; /* Limit height on desktop */
}

.page-about__hero-content {
    max-width: 900px;
    margin-top: 40px;
    padding: 0 20px;
}

.page-about__main-title {
    font-size: 3.2em;
    font-weight: 700;
    line-height: 1.2;
    color: var(--gold-color); /* Use gold for main titles */
    margin-bottom: 20px;
    max-width: 100%; /* Ensure h1 doesn't overflow */
}

.page-about__description {
    font-size: 1.1em;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.page-about__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-about__btn-primary,
.page-about__btn-secondary,
.page-about__btn-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Ensure text wraps within button */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    max-width: 100%; /* Ensure button does not overflow */
}

.page-about__btn-primary {
    background: var(--button-gradient);
    color: var(--text-main); /* Light text for dark button */
    border: 2px solid transparent;
}

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

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

.page-about__btn-secondary:hover {
    background: var(--primary-color);
    color: var(--text-main);
    transform: translateY(-2px);
}

.page-about__btn-link {
    background: none;
    color: var(--gold-color);
    border: 1px solid var(--gold-color);
    padding: 8px 15px;
    font-size: 0.9em;
    margin-top: 10px;
}

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

/* General Section Styles */
.page-about__section-title {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 40px;
    padding-top: 60px;
    max-width: 100%; /* Ensure title doesn't overflow */
}

.page-about__sub-title {
    font-size: 1.8em;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-about__text-center {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px;
    color: var(--text-secondary);
}

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

.page-about__dark-section {
    background-color: var(--card-bg); /* Darker background for contrast */
    padding-bottom: 60px;
}

.page-about__text-block p {
    color: var(--text-secondary);
    margin-bottom: 15px;
}

/* Mission & Vision Section */
.page-about__mission-vision .page-about__content-wrapper {
    display: flex;
    gap: 40px;
    padding-bottom: 40px;
}

.page-about__mission-vision .page-about__text-block {
    flex: 1;
}

/* History Section */
.page-about__history-section {
    padding-bottom: 60px;
    background-color: var(--background-color);
}

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

.page-about__history-item {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    padding-bottom: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-about__history-item img {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    margin-bottom: 20px;
}

.page-about__history-year {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--gold-color);
    margin-bottom: 10px;
}

/* Why Choose Section */
.page-about__why-choose .page-about__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding-bottom: 40px;
}

.page-about__feature-card {
    background-color: var(--background-color);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-about__feature-card img {
    
    
    object-fit: contain;
    margin-bottom: 20px;
}

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

/* Responsible Gambling Section */
.page-about__responsible-gambling {
    padding-bottom: 60px;
    background-color: var(--background-color);
}

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

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

/* Tech & Security Section */
.page-about__tech-security .page-about__tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding-bottom: 40px;
}

.page-about__tech-item {
    background-color: var(--background-color);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-about__tech-item img {
    
    
    object-fit: contain;
    margin-bottom: 20px;
}

/* Team Section */
.page-about__team-section {
    padding-bottom: 60px;
    background-color: var(--background-color);
}

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

.page-about__team-member {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding-bottom: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-about__team-member img {
    width: 100%;
    height: 300px; /* Fixed height for consistency */
    object-fit: cover;
    margin-bottom: 20px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.page-about__member-name {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--gold-color);
    margin-bottom: 5px;
}

.page-about__member-role {
    color: var(--text-secondary);
    font-style: italic;
}

/* Contact CTA Section */
.page-about__contact-cta {
    padding-bottom: 60px;
}

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

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

.page-about__faq-item {
    background-color: var(--card-bg);
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    color: var(--text-secondary);
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1em;
    color: var(--text-main);
    background-color: var(--deep-green-color);
    border-bottom: 1px solid var(--divider-color);
    list-style: none; /* For <summary> */
}

/* Hide default details marker */
.page-about__faq-item summary::-webkit-details-marker,
.page-about__faq-item summary::marker {
    display: none;
    content: "";
}

.page-about__faq-question:hover {
    background-color: var(--primary-color);
}

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

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

.page-about__faq-item[open] .page-about__faq-toggle {
    content: "−"; /* Change to minus when open */
}

.page-about__faq-answer {
    padding: 20px 25px;
    background-color: var(--card-bg);
    border-top: 1px solid var(--divider-color);
    color: var(--text-secondary);
}

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

/* Image responsive base styles */
.page-about img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container responsive base styles */
.page-about__container,
.page-about__hero-section,
.page-about__mission-vision,
.page-about__history-section,
.page-about__why-choose,
.page-about__responsible-gambling,
.page-about__tech-security,
.page-about__team-section,
.page-about__contact-cta,
.page-about__faq-section {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* --- Responsive Styles (max-width: 768px) --- */
@media (max-width: 768px) {
    /* General Mobile Styles */
    .page-about {
        font-size: 15px;
        line-height: 1.5;
    }

    .page-about__container {
        padding-left: 15px;
        padding-right: 15px;
    }

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

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

    /* Hero Section Mobile */
    .page-about__hero-section {
        padding: 10px 0 30px;
    }

    .page-about__hero-image {
        object-fit: contain !important;
        max-height: none !important;
        aspect-ratio: unset !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-about__hero-content {
        margin-top: 30px;
        padding: 0 15px;
    }

    .page-about__main-title {
        font-size: 2.2em;
        line-height: 1.3;
    }

    .page-about__description {
        font-size: 1em;
    }

    /* Button Mobile Styles */
    .page-about__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }

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

    /* Mission & Vision Mobile */
    .page-about__mission-vision .page-about__content-wrapper {
        flex-direction: column;
        gap: 30px;
        padding-bottom: 30px;
    }

    /* History Section Mobile */
    .page-about__history-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-about__history-item img {
        height: 200px;
    }

    /* Why Choose Section Mobile */
    .page-about__why-choose .page-about__features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding-bottom: 30px;
    }

    /* Responsible Gambling Mobile */
    .page-about__responsible-features {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Tech & Security Mobile */
    .page-about__tech-security .page-about__tech-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding-bottom: 30px;
    }

    /* Team Section Mobile */
    .page-about__team-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-about__team-member img {
        height: 250px;
    }

    /* FAQ Section Mobile */
    .page-about__faq-list {
        margin-top: 30px;
    }

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

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

    /* Universal Image and Container Mobile Adaptation */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__hero-section,
    .page-about__mission-vision,
    .page-about__history-section,
    .page-about__why-choose,
    .page-about__responsible-gambling,
    .page-about__tech-security,
    .page-about__team-section,
    .page-about__contact-cta,
    .page-about__faq-section {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px !important;
      padding-right: 15px !important;
      overflow-x: hidden !important;
    }
}