/* style/about.css */

/* --- Base Styles & Variables --- */
:root {
    --page-bg: #08160F;
    --card-bg: #11271B;
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green: #0A4B2C;
}

/* body { padding-top: var(--header-offset); } is handled by shared.css */
.page-about {
    font-family: Arial, sans-serif;
    color: var(--text-main); /* Default text color for the page */
    background-color: var(--page-bg);
    line-height: 1.6;
}

/* --- Section Layouts --- */
.page-about__section {
    padding: 60px 20px;
    margin-bottom: 20px; /* Consistent spacing between sections */
    border-bottom: 1px solid var(--divider-color); /* Subtle divider */
}

.page-about__section:last-of-type {
    border-bottom: none; /* No divider for the last section */
}

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

.page-about__container--flex {
    display: flex;
    align-items: center;
    gap: 40px;
}

.page-about__container--flex-reverse {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 40px;
}

/* --- Hero Section --- */
.page-about__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 60px;
    overflow: hidden; /* Ensure no overflow */
}

.page-about__hero-image-wrapper {
    width: 100%;
    height: auto;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

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

.page-about__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px 20px;
    max-width: 900px;
    margin-top: -80px; /* Pull content up slightly over the image if desired, or adjust padding */
    background: rgba(8, 22, 15, 0.85); /* Semi-transparent background for readability */
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    border: 1px solid var(--border-color);
}

.page-about__main-title {
    font-size: clamp(2em, 3.5vw, 3.2em); /* Responsive font size for H1 */
    color: var(--gold-color);
    margin-bottom: 15px;
    line-height: 1.2;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.4); /* Subtle glow */
}

.page-about__lead-text {
    font-size: 1.1em;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* --- General Typography --- */
.page-about__section-title {
    font-size: clamp(1.8em, 3vw, 2.5em);
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(87, 227, 141, 0.3);
}

.page-about__text-content {
    flex: 1;
}

.page-about__paragraph {
    margin-bottom: 1em;
    font-size: 1em;
    color: var(--text-main);
}

.page-about__paragraph a {
    color: var(--glow-color); /* Link color */
    text-decoration: none;
}

.page-about__paragraph a:hover {
    text-decoration: underline;
}

.page-about__list {
    list-style: disc;
    padding-left: 25px;
    margin-bottom: 1em;
    color: var(--text-main);
}

.page-about__list-item {
    margin-bottom: 0.5em;
}

.page-about__list-item b {
    color: var(--gold-color);
}

/* --- Image Styles --- */
.page-about__image-wrapper {
    flex: 1;
    min-width: 300px; /* Ensure images don't get too small on larger screens */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

.page-about__image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.page-about__image:hover {
    transform: scale(1.03);
}

/* --- CTA Buttons --- */
.page-about__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons adapt to width */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    text-align: center;
}

.page-about__btn-primary {
    background: var(--btn-gradient);
    color: var(--text-main);
    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: transparent;
    color: var(--glow-color);
    border: 2px solid var(--glow-color);
    box-shadow: 0 4px 15px rgba(87, 227, 141, 0.2);
}

.page-about__btn-secondary:hover {
    transform: translateY(-3px);
    background: rgba(87, 227, 141, 0.1);
    box-shadow: 0 6px 20px rgba(87, 227, 141, 0.4);
}

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

.page-about__card {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-about__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid var(--divider-color);
}

.page-about__card-title {
    font-size: 1.4em;
    color: var(--gold-color);
    margin-bottom: 10px;
    font-weight: bold;
    line-height: 1.3;
}

.page-about__card-text {
    font-size: 0.95em;
    color: var(--text-secondary);
}

.page-about__card-text a {
    color: var(--glow-color);
    text-decoration: none;
}

.page-about__card-text a:hover {
    text-decoration: underline;
}

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

.page-about__faq-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden; /* For smooth collapse */
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    color: var(--text-main);
    background: var(--deep-green); /* Slightly different background for question */
    transition: background-color 0.3s ease;
}

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

.page-about__faq-question::-webkit-details-marker {
    display: none;
}

.page-about__faq-question::marker {
    display: none;
}

.page-about__faq-qtext {
    flex-grow: 1;
    color: var(--text-main);
}

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

.page-about__faq-item[open] .page-about__faq-question {
    background-color: var(--border-color);
}

.page-about__faq-item[open] .page-about__faq-toggle {
    content: "−"; /* Changed by JS */
}

.page-about__faq-answer {
    padding: 15px 25px 20px;
    font-size: 0.95em;
    color: var(--text-secondary);
    background: var(--card-bg);
}

.page-about__faq-answer p {
    margin-bottom: 0.5em;
}

.page-about__faq-answer a {
    color: var(--glow-color);
    text-decoration: none;
}

.page-about__faq-answer a:hover {
    text-decoration: underline;
}


/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-about__container--flex,
    .page-about__container--flex-reverse {
        flex-direction: column;
        gap: 30px;
    }

    .page-about__text-content,
    .page-about__image-wrapper {
        width: 100%;
    }

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

@media (max-width: 768px) {
    .page-about__section {
        padding: 40px 15px;
    }

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

    .page-about__lead-text {
        font-size: 1em;
    }

    .page-about__section-title {
        font-size: clamp(1.5em, 6vw, 2em);
        margin-bottom: 30px;
    }

    .page-about__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-about__btn-primary,
    .page-about__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-about__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-about__card {
        padding: 25px;
    }

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

    .page-about__card-title {
        font-size: 1.2em;
    }

    /* Mobile image responsive adaptations */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__cta-buttons,
    .page-about__image-wrapper,
    .page-about__text-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Ensure no horizontal scroll */
    }

    /* Video section top padding for mobile, small amount */
    .page-about__video-section {
        padding-top: 10px !important;
    }
}

/* Ensure images don't get smaller than 200px width/height in content sections */
.page-about__about-us-intro img,
.page-about__core-values img,
.page-about__highlights img,
.page-about__responsible-gambling img,
.page-about__future-vision img {
    min-width: 200px;
    min-height: 200px;
}