/* style/about.css */

/* Global styles for the page-about scope, ensuring light text on dark body background */
.page-about {
    font-family: 'Arial', sans-serif;
    color: #FFF6D6; /* Text Main from custom palette */
    background-color: transparent; /* Rely on body background from shared.css */
    line-height: 1.6;
    font-size: 16px;
}

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

.page-about__hero-image {
    width: 100%;
    max-width: 1920px; /* Max width for the image */
    height: auto;
    display: block;
    object-fit: cover;
    margin-bottom: 20px; /* Spacing between image and text */
}

.page-about__hero-content {
    max-width: 900px;
    padding: 0 20px 40px;
    box-sizing: border-box;
}

.page-about__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Clamp for H1 */
    font-weight: 700;
    color: #FFD36B; /* Glow color for main title */
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(255, 211, 107, 0.5); /* Subtle glow effect */
}

.page-about__description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #FFF6D6; /* Text Main */
}

/* Call to Action Button */
.page-about__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    box-sizing: border-box; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    max-width: 100%; /* Ensure button doesn't overflow */
}

.page-about__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button color from custom palette */
    color: #ffffff; /* White text for contrast */
    border: none;
}

.page-about__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

.page-about__btn-secondary {
    background: transparent;
    color: #FFD36B; /* Glow color for secondary button text */
    border: 2px solid #FFD36B; /* Border color */
    margin-left: 20px;
}

.page-about__btn-secondary:hover {
    background: #FFD36B;
    color: #111111; /* Card BG for text on hover for contrast */
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* General Section Styles */
.page-about__section {
    padding: 60px 0;
    background-color: #0A0A0A; /* Background color from custom palette */
}

.page-about__introduction {
    padding-bottom: 30px;
}

.page-about__mission-vision {
    padding-top: 30px;
}

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

.page-about__title {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 700;
    color: #F2C14E; /* Main color for titles */
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
}

.page-about__title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #F2C14E; /* Main color for underline */
    border-radius: 2px;
}

.page-about__paragraph {
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-align: justify;
    color: #FFF6D6; /* Text Main */
}

.page-about__image {
    width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    min-width: 200px; /* Min size for content images */
    min-height: 200px; /* Min size for content images */
    object-fit: cover;
}

/* Mission & Vision Cards */
.page-about__flex-group {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-about__card {
    flex: 1;
    min-width: 300px; /* Ensure cards don't get too small */
    background-color: #111111; /* Card BG from custom palette */
    border: 1px solid #3A2A12; /* Border from custom palette */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    color: #FFF6D6; /* Text Main */
}

.page-about__card-title {
    font-size: 1.6rem;
    color: #FFD36B; /* Glow color for card titles */
    margin-bottom: 15px;
    font-weight: 600;
}

.page-about__card-text {
    font-size: 1rem;
    color: #FFF6D6; /* Text Main */
}

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

.page-about__feature-item {
    background-color: #111111; /* Card BG */
    border: 1px solid #3A2A12; /* Border */
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    color: #FFF6D6; /* Text Main */
}

.page-about__feature-title {
    font-size: 1.4rem;
    color: #F2C14E; /* Main color for feature titles */
    margin-bottom: 10px;
    font-weight: 600;
}

.page-about__feature-description {
    font-size: 1rem;
    color: #FFF6D6; /* Text Main */
}

/* Responsible Gaming Section */
.page-about__responsible-gaming {
    text-align: center;
}
.page-about__responsible-gaming .page-about__paragraph {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA Section */
.page-about__cta-section {
    padding: 80px 0;
    text-align: center;
}

.page-about__cta-section .page-about__container {
    background-color: #111111; /* Card BG */
    border-radius: 15px;
    padding: 50px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    border: 1px solid #3A2A12; /* Border */
}

.page-about__title--light {
    color: #FFD36B; /* Glow color for light titles */
}

.page-about__paragraph--light {
    color: #ffffff; /* White text for contrast */
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__main-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }
    .page-about__description {
        font-size: 1rem;
    }
    .page-about__title {
        font-size: clamp(1.6rem, 4vw, 2.5rem);
    }
}

@media (max-width: 768px) {
    .page-about {
        font-size: 16px;
        line-height: 1.6;
    }

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

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

    .page-about__description {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    .page-about__cta-button {
        padding: 12px 20px;
        font-size: 1rem;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-about__btn-secondary {
        margin-left: 0;
        margin-top: 15px; /* Stack buttons vertically */
    }
    .page-about__button-group {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

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

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

    .page-about__title {
        font-size: clamp(1.5rem, 5vw, 2rem);
        margin-bottom: 30px;
    }

    .page-about__paragraph {
        font-size: 1rem;
    }

    .page-about__image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Enforce minimum size even on mobile */
        min-height: 200px !important;
    }

    .page-about__flex-group {
        flex-direction: column;
        gap: 20px;
    }

    .page-about__card {
        padding: 25px;
        min-width: unset;
    }

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

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

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

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

    .page-about__cta-section {
        padding: 60px 0;
    }
    .page-about__cta-section .page-about__container {
        padding: 30px 15px;
        overflow: hidden !important;
    }
    /* Ensure all image containers also adhere to max-width: 100% */
    .page-about__hero-section,
    .page-about__introduction,
    .page-about__mission-vision,
    .page-about__why-choose-us,
    .page-about__responsible-gaming,
    .page-about__cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }
}