/* style/about.css */

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

.page-about {
    font-family: 'Arial', sans-serif;
    color: var(--text-main-color); /* Default text color for the page */
    background-color: var(--background-color-page);
}

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

/* Hero Section */
.page-about__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0;
    background-color: var(--deep-green-color);
    position: relative;
    overflow: hidden;
    padding-top: 0; /* Ensures no double padding from body */
}

.page-about__hero-image-wrapper {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
}

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

.page-about__hero-content {
    padding: 40px 20px;
    max-width: 900px;
    z-index: 1;
    color: var(--text-main-color);
}

.page-about__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--gold-color);
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-about__description {
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: var(--text-secondary-color);
}

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

.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    cursor: pointer;
    box-sizing: border-box;
}

.page-about__btn-primary {
    background: var(--button-gradient);
    color: var(--text-main-color);
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-about__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

.page-about__btn-secondary {
    background: var(--card-bg-color);
    color: var(--gold-color);
    border: 2px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(46, 122, 78, 0.3);
}

.page-about__btn-secondary:hover {
    transform: translateY(-3px);
    background-color: var(--deep-green-color);
    box-shadow: 0 6px 20px rgba(46, 122, 78, 0.5);
}

/* Section Titles */
.page-about__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
}

.page-about__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.page-about__text-block {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-secondary-color);
    margin-bottom: 20px;
    text-align: justify;
}

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

/* Why Choose Us Section */
.page-about__why-choose-us {
    background-color: var(--deep-green-color);
    padding: 60px 0;
}

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

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

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

.page-about__feature-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid var(--primary-color);
}

.page-about__feature-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--gold-color);
    margin-bottom: 15px;
}

.page-about__feature-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary-color);
}

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

/* Team Section */
.page-about__team-section {
    background-color: var(--deep-green-color);
    padding: 60px 0;
    text-align: center;
}

.page-about__team-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
    margin-top: 30px;
    border: 2px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

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

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

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

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gold-color);
    cursor: pointer;
    background-color: var(--card-bg-color);
    user-select: none;
    list-style: none; /* For details/summary */
}

.page-about__faq-question::-webkit-details-marker, /* Hide default marker for Chrome */
.page-about__faq-question::marker {
    display: none;
}

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

.page-about__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    margin-left: 15px;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.page-about__faq-item[open] .page-about__faq-toggle {
    transform: rotate(45deg);
}

.page-about__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary-color);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.page-about__faq-item[open] .page-about__faq-answer {
    max-height: 500px; /* Sufficiently large to show content */
    padding-top: 10px;
}

/* --- Media Queries --- */

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
    .page-about__container {
        padding: 30px 20px;
    }

    .page-about__hero-content {
        padding: 30px 20px;
    }

    .page-about__main-title {
        font-size: clamp(2.2rem, 4.5vw, 3rem);
    }

    .page-about__description {
        font-size: 1.1rem;
    }

    .page-about__section-title {
        font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    }

    .page-about__feature-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
    }

    .page-about__feature-title {
        font-size: 1.4rem;
    }

    .page-about__faq-question {
        font-size: 1.1rem;
        padding: 18px 22px;
    }
}

/* Mobile (max-width: 768px) - MUST INCLUDE ALL REQUIRED SECTIONS */
@media (max-width: 768px) {
    .page-about {
        font-size: 16px;
        line-height: 1.6;
    }

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

    /* HERO Section */
    .page-about__hero-section {
        padding-top: 0 !important; /* Ensure no double padding */
    }

    .page-about__hero-image-wrapper {
        max-height: 300px;
    }

    .page-about__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-about__hero-content {
        padding: 25px 15px;
    }

    .page-about__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
        margin-bottom: 15px;
    }

    .page-about__description {
        font-size: 1rem;
        margin-bottom: 25px;
    }

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

    /* Buttons */
    .page-about__btn-primary,
    .page-about__btn-secondary,
    .page-about a[class*="button"],
    .page-about a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px; /* Adjust padding for mobile */
        font-size: 1rem;
    }

    /* Section Titles */
    .page-about__section-title {
        font-size: clamp(1.6rem, 6vw, 2.2rem);
        margin-bottom: 30px;
    }

    .page-about__text-block {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    /* Feature Grid / Cards */
    .page-about__feature-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-about__feature-card {
        padding: 25px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    .page-about__feature-image {
        height: 180px;
    }

    .page-about__feature-title {
        font-size: 1.3rem;
    }

    /* Team Section Image */
    .page-about__team-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

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

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

    .page-about__faq-toggle {
        font-size: 1.5rem;
    }

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

    /* General Images and Containers (excluding specific logo-item) */
    .page-about img:not(.page-about__logo-item) {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-about__section, .page-about__card, .page-about__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* LOGO Carousel items (if present, must maintain fixed size) - Placeholder for future use, not in current page */
    .page-about__logo-item {
        width: 80px !important; /* Fixed 80px, prohibit 100% */
        height: 80px !important; /* Fixed 80px */
        max-width: 80px !important; /* Ensure not overridden */
        box-sizing: border-box;
    }
}