/* style/about.css */

/* Base Styles */
.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default dark text for light body background */
    background-color: #FFFFFF; /* Explicitly set body background for page */
}

.page-about__section {
    padding: 60px 20px;
    margin-bottom: 0;
}

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

.page-about__section-title {
    font-size: 36px;
    font-weight: bold;
    color: #017439;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-about__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #017439;
    border-radius: 2px;
}

.page-about__sub-title {
    font-size: 24px;
    font-weight: 600;
    color: #017439;
    margin-top: 25px;
    margin-bottom: 15px;
}

.page-about p {
    margin-bottom: 15px;
    font-size: 16px;
}

/* Color Schemes */
.page-about__dark-section {
    background-color: #017439;
    color: #FFFFFF;
}

.page-about__dark-section .page-about__section-title,
.page-about__dark-section .page-about__sub-title {
    color: #FFFFFF;
}

.page-about__light-bg {
    background-color: #FFFFFF;
    color: #333333;
}

/* Buttons */
.page-about__btn-primary,
.page-about__btn-download {
    display: inline-block;
    padding: 15px 30px;
    background-color: #017439;
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
}

.page-about__btn-primary:hover,
.page-about__btn-download:hover {
    background-color: #005a2e;
    transform: translateY(-2px);
}

.page-about__btn-register {
    display: inline-block;
    padding: 15px 30px;
    background-color: #C30808; /* Custom color for Register */
    color: #FFFF00; /* Custom font color for Register */
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
}

.page-about__btn-register:hover {
    background-color: #9c0606; /* Darker red on hover */
    transform: translateY(-2px);
}


/* Hero Section */
.page-about__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--header-offset, 120px); /* Ensure hero is not covered by fixed header */
    padding-bottom: 60px;
    overflow: hidden;
}

.page-about__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.page-about__hero-title {
    font-size: 48px;
    font-weight: bold;
    color: #FFFFFF;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-about__hero-description {
    font-size: 18px;
    color: #f0f0f0;
    margin-bottom: 40px;
    max-width: 800px;
}

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

.page-about__hero-image-main {
    width: 100%;
    height: auto;
    max-width: 1000px;
    display: block;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-top: 40px;
}

/* Vision & Mission */
.page-about__vision-mission .page-about__content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

/* Core Values */
.page-about__core-values {
    background-color: #f9f9f9;
}

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

.page-about__value-card {
    background-color: #FFFFFF;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.page-about__value-icon {
    width: 100%;
    max-width: 200px; /* Ensure images are not too small */
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-about__card-title {
    font-size: 22px;
    font-weight: bold;
    color: #017439;
    margin-bottom: 10px;
}

/* Our Story */
.page-about__story-content {
    margin-bottom: 40px;
}

.page-about__story-image {
    width: 100%;
    height: auto;
    max-width: 900px;
    display: block;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.page-about__choose-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.page-about__choose-item .page-about__sub-title {
    color: #FFFFFF;
}

.page-about__choose-item p {
    color: #f0f0f0;
}

/* Responsible Gambling */
.page-about__responsible-gambling .page-about__content-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.page-about__responsible-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-about__responsible-gambling .page-about__text-block {
    flex: 1;
    min-width: 300px;
}

/* Contact Us */
.page-about__contact-description {
    font-size: 18px;
    color: #f0f0f0;
    text-align: center;
    margin-bottom: 30px;
}

.page-about__contact-info {
    text-align: center;
    margin-bottom: 40px;
}

.page-about__contact-info p {
    font-size: 18px;
    margin-bottom: 10px;
    color: #FFFFFF;
}

.page-about__contact-link {
    color: #FFFF00; /* Custom font color for links in dark section */
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-about__contact-link:hover {
    color: #C30808;
}

.page-about__contact-text {
    color: #f0f0f0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__hero-title {
        font-size: 40px;
    }
    .page-about__section-title {
        font-size: 32px;
    }
    .page-about__sub-title {
        font-size: 20px;
    }
    .page-about__vision-mission .page-about__content-grid {
        grid-template-columns: 1fr;
    }
    .page-about__responsible-gambling .page-about__content-wrapper {
        flex-direction: column;
    }
    .page-about__responsible-image {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .page-about__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-about__hero-title {
        font-size: 32px;
    }
    .page-about__hero-description {
        font-size: 16px;
    }
    .page-about__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-about__btn-primary, .page-about__btn-register, .page-about__btn-download {
        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__section {
        padding: 40px 15px;
    }
    .page-about__section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    .page-about__sub-title {
        font-size: 18px;
    }
    .page-about__values-grid,
    .page-about__choose-grid {
        grid-template-columns: 1fr;
    }
    .page-about__value-icon {
        max-width: 150px;
    }
    .page-about__hero-image-main,
    .page-about__story-image,
    .page-about__responsible-image,
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__hero-cta-buttons,
    .page-about__button-group,
    .page-about__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Ensure no image filters are used */
.page-about img {
    filter: none; /* Explicitly disable any potential filters */
}