/* style/about.css */

/* Base styles for the page-about content */
.page-about {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #f0e6e6; /* Light text for assumed dark body background from shared.css */
    background-color: transparent; /* Rely on body background from shared.css */
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    padding-top: 10px; /* As per fixed header spacing rule */
    padding-bottom: 50px;
    text-align: center;
    overflow: hidden; /* Ensure content doesn't spill */
}

.page-about__hero-image {
    width: 100%;
    max-height: 500px; /* Constrain hero image height */
    overflow: hidden;
    margin-bottom: 20px; /* Space between image and content */
}

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

.page-about__hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.page-about__main-title {
    font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size for H1 */
    font-weight: 700;
    color: #FF5A4F; /* Using auxiliary color for vibrancy */
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-about__intro-text {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f0e6e6;
}

/* CTA Buttons in Hero */
.page-about__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* Ensure buttons wrap on smaller screens */
    width: 100%; /* Ensure container takes full width */
    max-width: 100%; /* Ensure container takes full width */
    box-sizing: border-box;
    overflow: hidden;
}

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

.page-about__btn-primary {
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
    color: #ffffff;
    border: none;
}

.page-about__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.page-about__btn-secondary {
    background: #ffffff;
    color: #E53935;
    border: 2px solid #E53935;
}

.page-about__btn-secondary:hover {
    background: #E53935;
    color: #ffffff;
}

/* General Section Styles */
.page-about__section-title {
    font-size: 2.5em;
    font-weight: 700;
    color: #FF5A4F;
    text-align: center;
    margin-bottom: 40px;
    padding-top: 60px;
}

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

.page-about__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #f0e6e6;
    text-align: justify;
}

/* Mission & Vision Section */
.page-about__mission-vision-section {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for contrast */
    padding-bottom: 60px;
}

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

.page-about__feature-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-about__feature-item img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 20px;
    border-radius: 5px;
}

.page-about__feature-title {
    font-size: 1.5em;
    color: #FF5A4F;
    margin-bottom: 15px;
}

.page-about__feature-description {
    color: #f0e6e6;
    font-size: 1em;
}

/* History Section */
.page-about__history-section {
    padding-bottom: 60px;
}

.page-about__timeline {
    display: flex;
    flex-direction: column;
    position: relative;
    margin-top: 50px;
    padding-left: 30px;
    border-left: 2px solid #E53935;
}

.page-about__timeline-item {
    margin-bottom: 40px;
    position: relative;
    padding-left: 30px;
}

.page-about__timeline-item::before {
    content: '';
    position: absolute;
    left: -11px;
    top: 5px;
    width: 20px;
    height: 20px;
    background-color: #E53935;
    border-radius: 50%;
    border: 3px solid #f0e6e6;
}

.page-about__timeline-year {
    font-size: 1.8em;
    color: #FF5A4F;
    margin-bottom: 10px;
}

.page-about__timeline-description {
    color: #f0e6e6;
    font-size: 1.1em;
}

.page-about__history-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 50px auto 0;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

/* Why Choose Us Section */
.page-about__why-choose-us-section {
    background-color: rgba(255, 255, 255, 0.05);
    padding-bottom: 60px;
}

.page-about__advantage-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.page-about__advantage-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-about__advantage-title {
    font-size: 1.4em;
    color: #FF5A4F;
    margin-bottom: 10px;
}

.page-about__advantage-description {
    color: #f0e6e6;
    font-size: 1em;
}

.page-about__advantages-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 50px auto 0;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

/* Responsible Gaming Section */
.page-about__responsible-gaming-section {
    padding-bottom: 60px;
    text-align: center;
}

.page-about__responsible-gaming-info {
    margin-top: 30px;
    padding: 30px;
    background-color: rgba(229, 57, 53, 0.2); /* Semi-transparent brand color */
    border-radius: 10px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__responsible-gaming-info p {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #f0e6e6;
}

/* CTA Section */
.page-about__cta-section {
    background: linear-gradient(90deg, #E53935 0%, #FF5A4F 100%);
    padding: 80px 0;
    text-align: center;
    color: #ffffff;
}

.page-about__cta-container {
    max-width: 900px;
}

.page-about__cta-title {
    font-size: 3em;
    font-weight: 700;
    margin-bottom: 20px;
    color: #ffffff;
}

.page-about__cta-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    color: #ffffff;
}

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

    /* HERO Section */
    .page-about__hero-section {
        padding-top: 10px; /* Keep small top padding */
        padding-bottom: 30px;
    }

    .page-about__main-title {
        font-size: clamp(2em, 8vw, 2.5em); /* Adjust H1 size for mobile */
        margin-bottom: 15px;
    }

    .page-about__intro-text {
        font-size: 1em;
        margin-bottom: 20px;
    }

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

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

    /* General containers and images */
    .page-about__container,
    .page-about__mission-vision-section,
    .page-about__history-section,
    .page-about__why-choose-us-section,
    .page-about__responsible-gaming-section,
    .page-about__cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Section Titles */
    .page-about__section-title {
        font-size: 2em;
        margin-bottom: 30px;
        padding-top: 40px;
    }

    /* Grid Features */
    .page-about__grid-features {
        grid-template-columns: 1fr; /* Stack features vertically */
        gap: 20px;
    }

    /* Timeline */
    .page-about__timeline {
        padding-left: 15px; /* Adjust padding for smaller screens */
    }

    .page-about__timeline-item {
        padding-left: 20px; /* Adjust padding for smaller screens */
    }

    .page-about__timeline-item::before {
        left: -8px; /* Adjust dot position */
        width: 16px;
        height: 16px;
    }

    .page-about__timeline-year {
        font-size: 1.5em;
    }

    /* Advantage List */
    .page-about__advantage-list {
        grid-template-columns: 1fr; /* Stack advantages vertically */
        gap: 20px;
    }

    /* CTA Section */
    .page-about__cta-section {
        padding: 50px 15px;
    }

    .page-about__cta-title {
        font-size: 2em;
    }

    .page-about__cta-description {
        font-size: 1.1em;
    }
}