/* style/about.css */

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

.page-about {
    background-color: var(--page-about-bg);
    color: var(--page-about-text-main); /* Default text color for the page */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-bottom: 60px; /* Ensure space above footer */
}

/* Base styles for sections and containers */
.page-about__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-about__section-title {
    font-size: clamp(2rem, 4vw, 3rem); /* H1/H2 font size clamp for responsiveness */
    color: var(--page-about-gold);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 1px;
    text-shadow: 0 0 8px rgba(242, 193, 78, 0.4);
}

.page-about__text {
    font-size: 1.1rem;
    color: var(--page-about-text-main);
    margin-bottom: 20px;
    text-align: justify;
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small decorative top padding as body handles offset */
    background-color: var(--page-about-deep-green); /* Background for hero section */
}

.page-about__hero-image {
    width: 100%;
    max-width: 1200px; /* Constrain image width */
    height: auto;
    display: block;
    margin-bottom: 30px; /* Space between image and content */
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    min-width: 200px; /* Global image size enforcement */
    min-height: 200px;
    object-fit: cover;
    filter: none;
}

.page-about__hero-content {
    max-width: 900px;
    text-align: center;
    z-index: 1;
    position: relative;
}

.page-about__hero-title {
    font-size: clamp(2.5rem, 5vw, 3.8rem); /* H1 font size, using clamp */
    color: var(--page-about-gold);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.6);
}

.page-about__hero-description {
    font-size: 1.2rem;
    color: var(--page-about-text-secondary);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text breaking */
}

.page-about__btn-primary {
    background: var(--page-about-btn-gradient);
    color: #ffffff; /* White text for primary button */
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-about__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%); /* Invert gradient on hover */
}

.page-about__btn-secondary {
    background: transparent;
    color: var(--page-about-gold); /* Gold text for secondary button */
    border: 2px solid var(--page-about-gold);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-about__btn-secondary:hover {
    transform: translateY(-3px);
    background-color: rgba(242, 193, 78, 0.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.page-about__btn--center {
    display: block;
    margin: 30px auto 0 auto;
    max-width: 300px;
}

/* Mission & Vision Section */
.page-about__mission-vision-section {
    padding: 80px 0;
    background-color: var(--page-about-bg);
}

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

.page-about__grid-item {
    background-color: var(--page-about-card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--page-about-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: var(--page-about-text-main);
}

.page-about__grid-item .page-about__image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    min-width: 200px; /* Global image size enforcement */
    min-height: 200px;
    object-fit: cover;
    filter: none;
}

.page-about__item-title {
    font-size: 1.8rem;
    color: var(--page-about-text-main);
    margin-bottom: 15px;
    font-weight: 600;
}

/* Why Choose Us Section */
.page-about__why-choose-us-section {
    padding: 80px 0;
    background-color: var(--page-about-deep-green); /* Darker background for contrast */
    color: var(--page-about-text-main);
}

.page-about__dark-section .page-about__section-title {
    color: var(--page-about-gold); /* Gold title on dark background */
}

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

.page-about__feature-card {
    background-color: var(--page-about-card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--page-about-border);
    text-align: left;
    display: flex;
    flex-direction: column;
    color: var(--page-about-text-main);
}

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

.page-about__card-text {
    font-size: 1rem;
    color: var(--page-about-text-secondary);
}

/* Responsible Gaming Section */
.page-about__responsible-gaming-section {
    padding: 80px 0;
    background-color: var(--page-about-bg);
    text-align: center;
}

.page-about__image--center {
    display: block;
    margin: 0 auto 30px auto;
    max-width: 600px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    min-width: 200px; /* Global image size enforcement */
    min-height: 200px;
    object-fit: cover;
    filter: none;
}

/* History Section */
.page-about__history-section {
    padding: 80px 0;
    background-color: var(--page-about-deep-green);
}

/* Team Section */
.page-about__team-section {
    padding: 80px 0;
    background-color: var(--page-about-card-bg);
    text-align: center;
}

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

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

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

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--page-about-text-main);
    cursor: pointer;
    background-color: var(--page-about-card-bg);
    border-bottom: 1px solid var(--page-about-divider);
    list-style: none; /* For details/summary */
}
.page-about__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

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

.page-about__faq-toggle {
    font-size: 1.5rem;
    margin-left: 15px;
    color: var(--page-about-gold);
    transition: transform 0.3s ease;
}

.page-about__faq-item[open] .page-about__faq-toggle {
    transform: rotate(45deg); /* Rotate to form an 'X' or similar */
}

.page-about__faq-answer {
    padding: 0 20px 20px 20px;
    font-size: 1.05rem;
    color: var(--page-about-text-secondary);
    text-align: justify;
}

/* CTA Section */
.page-about__cta-section {
    padding: 80px 0;
    background-color: var(--page-about-deep-green);
    text-align: center;
}

.page-about__cta-content {
    max-width: 800px;
}

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

/* Global image styles for content area (min 200x200) */
.page-about img {
    min-width: 200px;
    min-height: 200px;
    object-fit: cover; /* Ensure images fill their space without distortion */
    filter: none; /* Ensure no filter changes image color */
}

/* Responsive styles */
@media (max-width: 992px) {
    .page-about__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-about__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-about__hero-section,
    .page-about__mission-vision-section,
    .page-about__why-choose-us-section,
    .page-about__responsible-gaming-section,
    .page-about__history-section,
    .page-about__team-section,
    .page-about__faq-section,
    .page-about__cta-section {
        padding: 40px 0 !important; /* Adjust section padding for mobile */
        padding-top: 10px !important; /* Specific for hero/video sections */
    }

    .page-about__hero-image {
        margin-bottom: 20px !important;
    }

    .page-about__hero-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
        margin-bottom: 15px;
    }

    .page-about__hero-description {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }

    .page-about__hero-cta-buttons,
    .page-about__cta-buttons {
        flex-direction: column !important;
        gap: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px !important;
    }

    .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;
        padding: 12px 20px !important;
        font-size: 1rem !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-about__section-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        margin-bottom: 30px;
    }

    .page-about__grid-item {
        padding: 20px;
    }

    .page-about__item-title {
        font-size: 1.5rem;
    }

    .page-about__feature-card {
        padding: 20px;
    }

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

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

    .page-about__faq-answer {
        font-size: 1rem;
        padding: 0 15px 15px 15px;
    }
    
    /* Mobile image adaptation */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Ensure minimum size is maintained */
        min-height: 200px !important;
    }
    
    /* Ensure any container holding images or videos is constrained */
    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__grid-item,
    .page-about__feature-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Prevent content overflow */
    }
}