:root {
    --main-color: #2F6BFF;
    --auxiliary-color: #6FA3FF;
    --button-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    --card-bg: #FFFFFF;
    --background: #F4F7FB;
    --text-main: #1F2D3D;
    --custom-color-1776249996415: #000000; /* This is black, use it for main titles/strong text */
    --border-color: #D6E2FF;
    --glow-color: #A5C4FF;
}

.page-about {
    background-color: var(--background); /* #F4F7FB */
    color: var(--text-main); /* #1F2D3D */
    line-height: 1.6;
    font-family: 'Arial', sans-serif; /* Example font */
}

.page-about__container {
    max-width: 1390px;
    margin: 0 auto;
    padding: 20px;
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    overflow: hidden;
    padding-top: 10px; /* Small top padding as per rules */
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--main-color); /* #2F6BFF for contrast */
    color: #FFFFFF;
    text-align: center;
}

.page-about__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 500px; /* Limit height for hero image */
    margin-bottom: 20px; /* Space between image and text */
}

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

.page-about__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size for H1 */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #FFFFFF; /* Ensure good contrast */
}

.page-about__description {
    font-size: 1.15rem;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #E0EFFF; /* Lighter text for contrast on dark background */
}

.page-about__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    background: var(--button-gradient);
    color: #FFFFFF;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-about__cta-button:hover {
    background: linear-gradient(180deg, var(--main-color) 0%, var(--auxiliary-color) 100%); /* Slightly different gradient on hover */
}

/* General Section Styling */
.page-about__mission-section,
.page-about__values-section,
.page-about__why-choose-us-section,
.page-about__security-section,
.page-about__responsible-gaming-section,
.page-about__contact-cta-section {
    padding: 60px 0;
    text-align: center;
}

.page-about__mission-section,
.page-about__security-section {
    background-color: var(--card-bg); /* #FFFFFF */
}

.page-about__values-section,
.page-about__responsible-gaming-section {
    background-color: var(--background); /* #F4F7FB */
}

.page-about__why-choose-us-section {
    background-color: var(--auxiliary-color); /* #6FA3FF */
    color: #FFFFFF;
}

.page-about__why-choose-us-section .page-about__section-title,
.page-about__why-choose-us-section .page-about__card-title,
.page-about__why-choose-us-section .page-about__card-text,
.page-about__why-choose-us-section .page-about__card-link {
    color: #FFFFFF; /* Ensure text is white on blue background */
}

.page-about__contact-cta-section {
    background-color: var(--main-color); /* #2F6BFF */
    color: #FFFFFF;
}

.page-about__section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--custom-color-1776249996415); /* #000000 */
}

.page-about__why-choose-us-section .page-about__section-title,
.page-about__contact-cta-section .page-about__section-title {
    color: #FFFFFF;
}

.page-about__text {
    font-size: 1rem;
    max-width: 800px;
    margin: 0 auto 20px;
    color: var(--text-main); /* #1F2D3D */
}

.page-about__why-choose-us-section .page-about__text,
.page-about__contact-cta-section .page-about__text {
    color: #E0EFFF;
}

/* Image and Content Block Layout */
.page-about__mission-section .page-about__container,
.page-about__values-section .page-about__container,
.page-about__security-section .page-about__container,
.page-about__responsible-gaming-section .page-about__container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    text-align: left;
}

.page-about__mission-section .page-about__content-block,
.page-about__values-section .page-about__content-block,
.page-about__security-section .page-about__content-block,
.page-about__responsible-gaming-section .page-about__content-block {
    flex: 1;
    min-width: 300px;
}

.page-about__mission-section .page-about__image-wrapper,
.page-about__values-section .page-about__image-wrapper,
.page-about__security-section .page-about__image-wrapper,
.page-about__responsible-gaming-section .page-about__image-wrapper {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
}

.page-about__image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 200px; /* Enforce min-size for content images on desktop */
    min-height: 200px; /* Enforce min-size for content images on desktop */
}

/* Values List */
.page-about__value-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.page-about__value-item {
    margin-bottom: 15px;
    font-size: 1.05rem;
    color: var(--text-main);
}

.page-about__value-item strong {
    color: var(--custom-color-1776249996415); /* #000000 */
}

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

.page-about__feature-card {
    background-color: var(--card-bg); /* #FFFFFF */
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 250px; /* Ensure cards have some height */
}

.page-about__why-choose-us-section .page-about__feature-card {
    background-color: var(--auxiliary-color); /* #6FA3FF */
    border: 1px solid var(--border-color); /* #D6E2FF */
    box-shadow: none;
}

.page-about__why-choose-us-section .page-about__feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-about__card-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--custom-color-1776249996415); /* #000000 */
}

.page-about__why-choose-us-section .page-about__card-title {
    color: #FFFFFF;
}

.page-about__card-text {
    font-size: 1rem;
    margin-bottom: 20px;
    flex-grow: 1; /* Allows text to take available space */
    color: var(--text-main);
}

.page-about__why-choose-us-section .page-about__card-text {
    color: #E0EFFF;
}

.page-about__card-link {
    display: inline-block;
    color: var(--main-color); /* #2F6BFF */
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.page-about__why-choose-us-section .page-about__card-link {
    color: #FFF; /* White on blue card */
    border-bottom: 1px solid #FFF;
    padding-bottom: 2px;
}

.page-about__why-choose-us-section .page-about__card-link:hover {
    color: var(--main-color); /* Hover to primary blue */
    border-color: var(--main-color);
}

.page-about__read-more-link {
    display: inline-block;
    margin-top: 15px;
    color: var(--main-color); /* #2F6BFF */
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.page-about__read-more-link:hover {
    text-decoration: underline;
}

.page-about__cta-button--secondary {
    background: #FFFFFF; /* White button on blue background */
    color: var(--main-color); /* Text color is primary blue */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-about__cta-button--secondary:hover {
    background: #E0EFFF; /* Lighter white on hover */
    color: var(--main-color);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-about__hero-section {
        max-height: 600px;
    }
    .page-about__hero-image {
        max-height: 400px;
    }
    .page-about__hero-content {
        padding: 0 15px 30px;
    }
    .page-about__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }
    .page-about__description {
        font-size: 1rem;
    }
    .page-about__mission-section .page-about__container,
    .page-about__values-section .page-about__container,
    .page-about__security-section .page-about__container,
    .page-about__responsible-gaming-section .page-about__container {
        flex-direction: column;
        text-align: center;
    }
    .page-about__mission-section .page-about__content-block,
    .page-about__values-section .page-about__content-block,
    .page-about__security-section .page-about__content-block,
    .page-about__responsible-gaming-section .page-about__content-block {
        order: 2; /* Content below image on smaller screens */
    }
    .page-about__mission-section .page-about__image-wrapper,
    .page-about__values-section .page-about__image-wrapper,
    .page-about__security-section .page-about__image-wrapper,
    .page-about__responsible-gaming-section .page-about__image-wrapper {
        order: 1; /* Image above content on smaller screens */
    }
    .page-about__image {
        max-width: 80%;
    }
}

@media (max-width: 768px) {
    .page-about__container {
        padding: 15px;
    }
    .page-about__hero-image {
        max-height: 300px;
        margin-bottom: 15px;
    }
    .page-about__hero-content {
        padding: 0 10px 20px;
    }
    .page-about__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        margin-bottom: 15px;
    }
    .page-about__description {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }
    .page-about__cta-button {
        padding: 12px 25px;
        font-size: 1rem;
    }
    .page-about__mission-section,
    .page-about__values-section,
    .page-about__why-choose-us-section,
    .page-about__security-section,
    .page-about__responsible-gaming-section,
    .page-about__contact-cta-section {
        padding: 40px 0;
    }
    .page-about__section-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
        margin-bottom: 20px;
    }
    .page-about__text {
        font-size: 0.95rem;
    }
    .page-about__image {
        max-width: 100%; /* Important for mobile overflow */
        height: auto;
        min-width: 200px; /* Still try to maintain minimum size if possible */
        min-height: 200px; /* Still try to maintain minimum size if possible */
        max-height: 400px;
    }
    .page-about__features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-about__card-title {
        font-size: 1.2rem;
    }
    .page-about__card-text {
        font-size: 0.9rem;
    }
    .page-about__value-item {
        font-size: 0.95rem;
    }
}

/* Ensure all img tags within .page-about have min-width/height of 200px for desktop and max-width:100% for mobile */
.page-about img {
    min-width: 200px;
    min-height: 200px;
}

/* The max-width: 100%; height: auto; in media queries for mobile will override this for responsive resizing */
/* For desktop, these values ensure they are not too small */