/* style/about.css */

/* --- Base Styles for .page-about --- */
.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main); /* Default text color for the page */
    background-color: var(--background); /* Ensure consistent background */
}

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

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

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

.page-about__section-title {
    font-size: 2.5em;
    color: var(--gold-color); /* Use gold for main titles for emphasis */
    margin-bottom: 30px;
    font-weight: bold;
}

.page-about__text-block {
    margin-bottom: 20px;
    color: var(--text-main);
}

.page-about__main-title {
    font-size: clamp(2em, 4vw, 3.5em); /* Responsive H1 font size */
    color: var(--gold-color);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    max-width: 800px;
}

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

/* --- Hero Section --- */
.page-about__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image first, then content */
    align-items: center;
    justify-content: center;
    padding-bottom: 60px; /* Space below content */
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--background);
}

.page-about__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit height for aesthetic */
    overflow: hidden;
    position: relative;
    margin-bottom: 40px; /* Space between image and content */
}

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

.page-about__hero-content {
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
    box-sizing: border-box;
    position: relative; /* Ensure content is above any potential background elements */
    z-index: 2;
}

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

.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons are responsive */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word;
}

.page-about__btn-primary {
    background: var(--button-gradient);
    color: #ffffff; /* White text for contrast */
    border: 2px solid transparent;
}

.page-about__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    opacity: 0.9;
}

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

.page-about__btn-secondary:hover {
    background: var(--primary-color);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* --- About Intro & Mission/Vision Sections --- */
.page-about__about-intro .page-about__container {
    text-align: left;
}

.page-about__mission-vision .page-about__container,
.page-about__history-achievements .page-about__container {
    display: flex;
    align-items: center;
    gap: 40px;
    text-align: left;
}

.page-about__container--reversed {
    flex-direction: row-reverse; /* Reverse order for alternating layouts */
}

.page-about__content-block {
    flex: 1;
}

.page-about__image-block {
    flex: 1;
    min-width: 300px; /* Ensure image block has a minimum width */
}

.page-about__image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    object-fit: cover;
}

/* --- Why Choose Section --- */
.page-about__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: left;
}

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

.page-about__feature-icon {
    width: 100%; /* Ensure image fills card width */
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-about__feature-title {
    font-size: 1.5em;
    color: var(--gold-color);
    margin-bottom: 15px;
    text-align: center;
}

.page-about__feature-description {
    font-size: 0.95em;
    color: var(--text-secondary);
    text-align: center;
}

/* --- Core Values Section --- */
.page-about__values-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: left;
}

.page-about__value-item {
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    color: var(--text-main);
}

.page-about__value-title {
    font-size: 1.3em;
    color: var(--gold-color);
    margin-bottom: 10px;
}

.page-about__value-description {
    font-size: 0.9em;
    color: var(--text-secondary);
}

/* --- Responsible Gambling Section --- */
.page-about__responsible-gambling .page-about__container {
    text-align: left;
}

/* --- FAQ Section --- */
.page-about__faq-section .page-about__container {
    text-align: left;
}

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

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

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

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

.page-about__faq-qtext {
    flex-grow: 1;
    color: var(--text-main); /* Ensure text color is light */
}

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

/* Hide default details marker */
.page-about__faq-item summary {
    list-style: none;
}
.page-about__faq-item summary::-webkit-details-marker {
    display: none;
}

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

.page-about__faq-answer p {
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.page-about__faq-answer p:last-child {
    margin-bottom: 0;
}

.page-about__text-link {
    color: var(--gold-color);
    text-decoration: underline;
}

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

/* --- Contact Us Section --- */
.page-about__contact-us .page-about__container {
    text-align: left;
}

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

.page-about__contact-info p {
    margin-bottom: 10px;
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .page-about__mission-vision .page-about__container,
    .page-about__history-achievements .page-about__container {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .page-about__section-title {
        font-size: 2em;
    }

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

    .page-about__hero-section {
        padding-bottom: 40px;
    }

    .page-about__hero-image-wrapper {
        max-height: 400px;
        margin-bottom: 30px;
    }

    .page-about__section {
        padding: 40px 0;
    }

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

    .page-about__btn-primary,
    .page-about__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

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

    /* Images responsiveness */
    .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__hero-section,
    .page-about__hero-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Ensure no overflow */
    }

    /* Video section (if any) top padding */
    .page-about__video-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }
}

@media (max-width: 480px) {
    .page-about__section-title {
        font-size: 1.8em;
    }
    .page-about__feature-card {
        padding: 20px;
    }
    .page-about__faq-question {
        padding: 15px 20px;
    }
    .page-about__faq-answer {
        padding: 10px 20px 15px;
    }
}

/* Ensure content area images maintain minimum size on desktop */
.page-about__image,
.page-about__feature-icon {
    min-width: 200px; /* Minimum width for content images on desktop */
    min-height: 200px; /* Minimum height for content images on desktop */
}
.page-about__feature-icon {
    width: 100%; /* Fill card width */
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
}