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

/* Hero Section */
.page-about__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
    background: linear-gradient(135deg, #26A9E0, #FFFFFF); /* Brand color gradient */
    color: #ffffff; /* White text for gradient background */
}

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

.page-about__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

.page-about__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    min-width: 200px; /* Min size constraint */
    min-height: 200px; /* Min size constraint */
}

.page-about__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    color: #ffffff; /* Ensure white text on gradient */
}

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

.page-about__intro-text {
    font-size: 20px;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #ffffff;
}

.page-about__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: #EA7C07; /* Login button color */
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 30px;
    transition: all 0.3s ease;
    max-width: 100%; /* Button responsive */
    box-sizing: border-box; /* Button responsive */
    white-space: normal; /* Button responsive */
    word-wrap: break-word; /* Button responsive */
}

.page-about__cta-button:hover {
    background: #c26706; /* Darken login color on hover */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* General Section Styles */
.page-about__section {
    padding: 80px 20px;
    text-align: center;
}

.page-about__section--mission-vision {
    background-color: #ffffff; /* Light background */
    color: #333333; /* Dark text */
}

.page-about__section--why-choose-us {
    background-color: #26A9E0; /* Primary brand color background */
    color: #ffffff; /* White text */
}

.page-about__section--security {
    background-color: #f9f9f9; /* Light background */
    color: #333333; /* Dark text */
}

.page-about__section--responsible-gambling {
    background-color: #26A9E0; /* Primary brand color background */
    color: #ffffff; /* White text */
}

.page-about__section--contact {
    background-color: #ffffff; /* Light background */
    color: #333333; /* Dark text */
    padding-bottom: 100px;
}

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

.page-about__container--small {
    max-width: 800px;
}

.page-about__section-title {
    font-size: 38px;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.3;
    color: inherit; /* Inherit color from section */
}

.page-about__section-description {
    font-size: 18px;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: inherit;
}

.page-about__sub-title {
    font-size: 28px;
    font-weight: bold;
    margin-top: 30px;
    margin-bottom: 15px;
    color: inherit;
}

.page-about__content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    text-align: left;
}

.page-about__content-grid--reverse {
    grid-template-columns: 1fr 1fr;
    direction: rtl; /* Reverse order for image on right, text on left */
}

.page-about__content-grid--reverse .page-about__text-block {
    direction: ltr; /* Reset text direction */
}

.page-about__content-grid--reverse .page-about__image-wrapper {
    direction: ltr; /* Reset image direction */
}


.page-about__text-block p {
    margin-bottom: 15px;
    font-size: 17px;
    line-height: 1.7;
    color: inherit;
}

.page-about__list {
    list-style: disc inside;
    margin-bottom: 20px;
    padding-left: 0;
    font-size: 17px;
    line-height: 1.7;
    color: inherit;
}

.page-about__list li {
    margin-bottom: 10px;
    color: inherit;
}

.page-about__list li strong {
    color: inherit;
}

.page-about__image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-about__image-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    min-width: 200px; /* Min size constraint */
    min-height: 200px; /* Min size constraint */
}

.page-about__image-wrapper--center {
  margin-top: 40px;
  margin-bottom: 40px;
}

/* Features Grid */
.page-about__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: left;
}

.page-about__feature-item {
    background-color: rgba(255, 255, 255, 0.15); /* Slightly transparent white for cards on dark background */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%; /* Ensure equal height */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    color: #ffffff; /* White text on dark background */
}

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

.page-about__feature-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #ffffff;
}

.page-about__feature-item p {
    font-size: 16px;
    line-height: 1.7;
    color: #f0f0f0; /* Slightly off-white for body text */
}

/* Button Group */
.page-about__button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    width: 100%; /* Ensure button group is responsive */
    max-width: 100%; /* Ensure button group is responsive */
    box-sizing: border-box; /* Ensure button group is responsive */
    overflow: hidden; /* Ensure button group is responsive */
}

.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 17px;
    font-weight: bold;
    transition: all 0.3s ease;
    max-width: 100%; /* Button responsive */
    box-sizing: border-box; /* Button responsive */
    white-space: normal; /* Button responsive */
    word-wrap: break-word; /* Button responsive */
}

.page-about__btn-primary {
    background: #EA7C07; /* Login button color */
    color: #ffffff;
    border: 2px solid transparent;
}

.page-about__btn-primary:hover {
    background: #c26706;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-about__btn-secondary {
    background: #ffffff;
    color: #26A9E0; /* Primary brand color */
    border: 2px solid #26A9E0;
}

.page-about__btn-secondary:hover {
    background: #f0f0f0;
    color: #1a7bb0; /* Darken primary color */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Contact Section Specifics */
.page-about__contact-text {
    font-size: 18px;
    margin-bottom: 15px;
    color: inherit;
}

.page-about__contact-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
    font-size: 17px;
    line-height: 1.8;
    color: inherit;
}

.page-about__contact-list li {
    margin-bottom: 10px;
    color: inherit;
}

.page-about__contact-list li a {
    color: #26A9E0; /* Primary brand color for links */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-about__contact-list li a:hover {
    color: #1a7bb0; /* Darken primary color on hover */
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__main-title {
        font-size: 42px;
    }
    .page-about__intro-text {
        font-size: 18px;
    }
    .page-about__section-title {
        font-size: 32px;
    }
    .page-about__sub-title {
        font-size: 24px;
    }
    .page-about__content-grid {
        grid-template-columns: 1fr;
    }
    .page-about__content-grid--reverse {
        grid-template-columns: 1fr;
        direction: ltr; /* Reset direction for mobile */
    }
    .page-about__image-wrapper {
        margin-top: 30px;
        order: -1; /* Image always on top for mobile in content grid */
    }
    .page-about__content-grid--reverse .page-about__image-wrapper {
        order: -1; /* Image always on top for mobile in content grid */
    }
    .page-about__text-block {
        order: 1;
    }
}

@media (max-width: 768px) {
    .page-about__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-about__hero-image img {
        border-radius: 4px;
    }
    .page-about__hero-content {
        padding: 0 15px;
    }
    .page-about__main-title {
        font-size: 32px;
        margin-bottom: 15px;
    }
    .page-about__intro-text {
        font-size: 16px;
        margin-bottom: 20px;
    }
    .page-about__cta-button {
        padding: 12px 30px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-about__section {
        padding: 50px 15px;
    }
    .page-about__section-title {
        font-size: 28px;
        margin-bottom: 15px;
    }
    .page-about__section-description {
        font-size: 16px;
        margin-bottom: 30px;
    }
    .page-about__sub-title {
        font-size: 22px;
        margin-top: 25px;
    }
    .page-about__text-block p,
    .page-about__list,
    .page-about__feature-item p,
    .page-about__contact-text,
    .page-about__contact-list li {
        font-size: 15px;
    }
    .page-about__features-grid {
        gap: 20px;
    }
    .page-about__feature-item {
        padding: 25px;
    }
    .page-about__feature-title {
        font-size: 20px;
    }

    .page-about__button-group {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px; /* Add padding to container */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden;
    }
    .page-about__btn-primary,
    .page-about__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Mobile image responsive */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-about__section,
    .page-about__card,
    .page-about__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Ensure all images in content area are at least 200x200 */
.page-about img:not(.shared-header img):not(.shared-footer img) {
    min-width: 200px;
    min-height: 200px;
}

/* Color contrast enforcement */
.page-about__light-bg {
    color: #333333;
    background: #ffffff;
}
.page-about__dark-bg {
    color: #ffffff;
    background: #26A9E0;
}
.page-about__btn-primary {
    background: #EA7C07;
    color: #ffffff;
}
.page-about__btn-secondary {
    background: #ffffff;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

/* Ensure link colors have good contrast */
.page-about a {
    color: #26A9E0; /* Primary brand color for links */
}
.page-about a:hover {
    color: #1a7bb0; /* Darken on hover */
}
.page-about__dark-bg a {
    color: #ffffff;
}
.page-about__dark-bg a:hover {
    color: #f0f0f0;
}