/* style/about.css */

/* Base styles for the page-about content */
.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #1F2D3D; /* Text Main color */
    background-color: #F4F7FB; /* Background color */
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 10px; /* Small top padding, assuming body has header offset */
    padding-bottom: 40px;
    background-color: #F4F7FB;
}

.page-about__hero-image {
    width: 100%;
    max-height: 675px;
    object-fit: cover;
    display: block;
    margin-bottom: 30px;
}

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

.page-about__hero-title {
    font-size: 2.8em;
    font-weight: 700;
    line-height: 1.2;
    color: #2F6BFF; /* Main brand color for title */
    margin-bottom: 15px;
    max-width: 100%;
}

.page-about__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #1F2D3D;
}

.page-about__hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* General button styles */
.page-about__btn-primary,
.page-about__btn-secondary,
.page-about__btn-link,
.page-about a[class*="button"],
.page-about a[class*="btn"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-about__btn-primary {
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    color: #FFFFFF;
    border: 2px solid transparent;
    box-shadow: 0 4px 10px rgba(47, 107, 255, 0.3);
}

.page-about__btn-primary:hover {
    background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
    box-shadow: 0 6px 15px rgba(47, 107, 255, 0.4);
}

.page-about__btn-secondary {
    background: #FFFFFF;
    color: #2F6BFF;
    border: 2px solid #2F6BFF;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-about__btn-secondary:hover {
    background: #F4F7FB;
    color: #2F6BFF;
    border-color: #6FA3FF;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.page-about__btn-link {
    background: transparent;
    color: #2F6BFF;
    border: none;
    padding: 10px 0;
    font-weight: 600;
    text-decoration: underline;
    text-align: left;
}

.page-about__btn-link:hover {
    color: #6FA3FF;
}

/* General container and section styles */
.page-about__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

.page-about__section-title {
    font-size: 2.2em;
    font-weight: 700;
    color: #2F6BFF; /* Main brand color */
    text-align: center;
    margin-bottom: 20px;
}

.page-about__subtitle {
    font-size: 1.1em;
    color: #1F2D3D;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Dark background sections */
.page-about__dark-section {
    background-color: #2F6BFF;
    color: #FFFFFF;
}

.page-about__dark-section .page-about__section-title,
.page-about__dark-section .page-about__subtitle,
.page-about__dark-section .page-about__text-block p,
.page-about__dark-section .page-about__sub-title,
.page-about__dark-section .page-about__contact-title,
.page-about__dark-section .page-about__contact-description {
    color: #FFFFFF;
}

/* Light background sections */
.page-about__light-bg {
    background-color: #FFFFFF;
    color: #1F2D3D;
}

/* Introduction Section */
.page-about__introduction-section {
    padding-top: 60px;
    padding-bottom: 60px;
}

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

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

.page-about__content-wrapper .page-about__text-block p {
    margin-bottom: 15px;
    font-size: 1.05em;
}

.page-about__image-right {
    flex-shrink: 0;
    max-width: 50%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Why Choose Us Section */
.page-about__why-choose-us {
    padding-top: 60px;
    padding-bottom: 60px;
}

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

.page-about__feature-card {
    background-color: #FFFFFF;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.page-about__feature-icon {
    width: 100%;
    max-width: 120px;
    height: auto;
    margin: 0 auto 20px;
    display: block;
    border-radius: 8px;
}

.page-about__feature-title {
    font-size: 1.4em;
    font-weight: 600;
    color: #2F6BFF;
    margin-bottom: 10px;
}

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

.page-about__cta-bottom {
    text-align: center;
    margin-top: 40px;
}

/* Game Categories Section */
.page-about__game-categories {
    padding-top: 60px;
    padding-bottom: 60px;
}

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

.page-about__category-card {
    background-color: #FFFFFF;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-about__category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.page-about__category-title {
    font-size: 1.4em;
    font-weight: 600;
    color: #2F6BFF;
    margin-bottom: 15px;
}

.page-about__category-description {
    font-size: 0.95em;
    color: #1F2D3D;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Responsible Gaming Section */
.page-about__responsible-gaming {
    padding-top: 60px;
    padding-bottom: 60px;
}

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

.page-about__sub-title {
    font-size: 1.6em;
    font-weight: 600;
    color: #2F6BFF;
    margin-bottom: 15px;
}

.page-about__responsible-gaming .page-about__text-block p {
    margin-bottom: 15px;
    font-size: 1.05em;
    color: #1F2D3D;
}

/* Contact Us Section */
.page-about__contact-us {
    padding-top: 60px;
    padding-bottom: 60px;
}

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

.page-about__contact-card {
    background-color: #FFFFFF;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-about__contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.page-about__contact-title {
    font-size: 1.4em;
    font-weight: 600;
    color: #2F6BFF;
    margin-bottom: 10px;
}

.page-about__contact-description {
    font-size: 0.95em;
    color: #1F2D3D;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Conclusion Section */
.page-about__conclusion-section {
    padding-top: 60px;
    padding-bottom: 60px;
    text-align: center;
    background-color: #F4F7FB;
}

.page-about__description-final {
    font-size: 1.1em;
    max-width: 900px;
    margin: 0 auto 40px;
    color: #1F2D3D;
}

.page-about__cta-final {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- Responsive Styles --- */

/* Tablet and Mobile (max-width: 1024px) */
@media (max-width: 1024px) {
    .page-about__hero-title {
        font-size: 2.4em;
    }

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

    .page-about__subtitle {
        font-size: 1em;
    }

    .page-about__content-wrapper {
        flex-direction: column;
        gap: 30px;
    }

    .page-about__image-right {
        max-width: 100%;
        margin-top: 20px;
    }

    .page-about__content-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Mobile (max-width: 768px) - MUST INCLUDE ALL REQUIRED SECTIONS */
@media (max-width: 768px) {
    /* HERO Section - padding, image, title, buttons */
    .page-about__hero-section {
        padding-top: 10px !important;
        padding-bottom: 30px;
    }

    .page-about__hero-image {
        max-height: 300px !important;
        width: 100% !important;
        height: auto !important;
        margin-bottom: 20px;
    }

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

    .page-about__hero-title {
        font-size: 1.8em !important;
        margin-bottom: 10px;
    }

    .page-about__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-about__hero-buttons {
        flex-direction: column !important;
        gap: 15px;
    }

    /* General containers and padding for content sections */
    .page-about__container {
        padding: 30px 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-about__section-title {
        font-size: 1.8em !important;
        margin-bottom: 15px;
    }

    .page-about__subtitle {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    /* Universal Image and Container Adaption */
    .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__content-wrapper,
    .page-about__features-grid,
    .page-about__categories-grid,
    .page-about__content-grid,
    .page-about__contact-grid,
    .page-about__hero-buttons,
    .page-about__cta-bottom,
    .page-about__cta-final {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Buttons and Button Containers */
    .page-about__btn-primary,
    .page-about__btn-secondary,
    .page-about__btn-link,
    .page-about a[class*="button"],
    .page-about a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px !important;
        font-size: 0.9em !important;
    }

    .page-about__hero-buttons,
    .page-about__cta-final {
        flex-direction: column !important;
        gap: 15px !important;
    }

    /* Other content modules - specific adjustments */
    .page-about__introduction-section,
    .page-about__why-choose-us,
    .page-about__game-categories,
    .page-about__responsible-gaming,
    .page-about__contact-us,
    .page-about__conclusion-section {
        padding-top: 30px;
        padding-bottom: 30px;
    }

    .page-about__content-wrapper,
    .page-about__features-grid,
    .page-about__categories-grid,
    .page-about__contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-about__feature-card,
    .page-about__category-card,
    .page-about__contact-card {
        padding: 25px;
    }

    .page-about__feature-title,
    .page-about__category-title,
    .page-about__contact-title {
        font-size: 1.2em;
    }

    .page-about__feature-description,
    .page-about__category-description,
    .page-about__contact-description,
    .page-about__text-block p,
    .page-about__description-final {
        font-size: 0.9em;
    }

    .page-about__sub-title {
        font-size: 1.4em;
    }
}