:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --text-color-dark: #333333;
    --text-color-light: #ffffff;
    --background-light: #f9f9f9;
    --button-login: #EA7C07;
}

.page-about {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color-dark);
    background-color: var(--secondary-color); /* Body background is #FFFFFF, so text is dark */
}

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

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

.page-about__section-title {
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
}

.page-about__section-title--white {
    color: var(--text-color-light);
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--primary-color);
    overflow: hidden;
}

.page-about__hero-image {
    width: 100%;
    height: 600px; /* Fixed height for desktop */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-about__hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover for desktop to fill space */
    display: block;
}

.page-about__hero-content {
    background: var(--secondary-color);
    padding: 40px 20px;
    text-align: center;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-top: -50px; /* Overlap with image slightly for visual flow */
    position: relative;
    z-index: 1;
}

.page-about__main-title {
    font-size: clamp(32px, 4.5vw, 48px);
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-about__intro-text {
    font-size: clamp(16px, 2vw, 18px);
    max-width: 800px;
    margin: 0 auto 30px;
    color: var(--text-color-dark);
}

.page-about__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping for multiple buttons */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 17px;
    transition: all 0.3s ease;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-about__btn-primary {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    border: 2px solid var(--primary-color);
}

.page-about__btn-primary:hover {
    background-color: #1f8ec4; /* darken(var(--primary-color), 10%) */
    border-color: #1f8ec4; /* darken(var(--primary-color), 10%) */
    transform: translateY(-2px);
}

.page-about__btn-secondary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-about__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Our Story Section */
.page-about__our-story .page-about__content-wrapper {
    display: flex;
    gap: 40px;
    align-items: center;
}

.page-about__our-story .page-about__text-block {
    flex: 1;
}

.page-about__our-story .page-about__image-block {
    flex: 1;
    text-align: center;
}

.page-about__our-story .page-about__image-block img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    display: block; /* Ensure it behaves as a block element */
    margin: 0 auto; /* Center image */
    min-width: 200px; /* Min size requirement */
    min-height: 200px;
}

/* Why Choose Us Section */
.page-about__why-choose-us {
    background-color: var(--primary-color);
    color: var(--text-color-light);
}

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

.page-about__feature-card {
    background-color: var(--secondary-color);
    color: var(--text-color-dark);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.page-about__feature-card:hover {
    transform: translateY(-5px);
}

.page-about__feature-card img {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
    border-radius: 5px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    min-width: 200px; /* Min size requirement */
    min-height: 200px;
}

.page-about__card-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Our Values Section */
.page-about__our-values {
    background-color: var(--background-light);
}

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

.page-about__value-item {
    background-color: var(--secondary-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border-left: 5px solid var(--primary-color);
}

.page-about__value-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* Responsible Gaming Section */
.page-about__responsible-gaming .page-about__content-wrapper {
    display: flex;
    gap: 40px;
    align-items: center;
}

.page-about__responsible-gaming .page-about__text-block {
    flex: 1;
}

.page-about__responsible-gaming .page-about__image-block {
    flex: 1;
    text-align: center;
}

.page-about__responsible-gaming .page-about__image-block img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    display: block; /* Ensure it behaves as a block element */
    margin: 0 auto; /* Center image */
    min-width: 200px; /* Min size requirement */
    min-height: 200px;
}

.page-about__responsible-gaming ul {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.page-about__responsible-gaming ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
}

.page-about__responsible-gaming ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* FAQ Section */
.page-about__faq-section {
    background-color: var(--background-light);
}

details.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}
details.page-about__faq-item summary.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-about__faq-item summary.page-about__faq-question::-webkit-details-marker {
  display: none;
}
details.page-about__faq-item summary.page-about__faq-question:hover {
  background: #f5f5f5;
}
.page-about__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}
.page-about__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-about__faq-item .page-about__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

/* Bottom CTA */
.page-about__cta-bottom {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    text-align: center;
    padding: 80px 0;
}

.page-about__cta-bottom .page-about__cta-content {
    max-width: 800px;
}

.page-about__cta-bottom .page-about__section-title {
    color: var(--text-color-light);
    margin-bottom: 20px;
}

.page-about__cta-bottom p {
    font-size: 18px;
    margin-bottom: 30px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__container {
        padding: 20px 30px;
    }
    .page-about__hero-image {
        height: 500px;
    }
    .page-about__our-story .page-about__content-wrapper,
    .page-about__responsible-gaming .page-about__content-wrapper {
        flex-direction: column;
    }
    .page-about__our-story .page-about__image-block,
    .page-about__responsible-gaming .page-about__image-block {
        order: -1; /* Image appears above text on smaller screens */
        margin-bottom: 30px;
    }
    .page-about__our-story .page-about__image-block img,
    .page-about__responsible-gaming .page-about__image-block img {
        max-width: 80%;
    }
    .page-about__features-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-about__container {
        padding: 0 15px; /* Important for full-width sections to have padding */
    }
    .page-about__section {
        padding: 40px 0;
    }
    .page-about__hero-section {
        padding-top: 10px; /* Consistent small top padding */
    }
    .page-about__hero-image {
        height: 300px; /* Adjust height for mobile */
    }
    .page-about__hero-image img {
        object-fit: contain !important; /* Force contain for mobile hero image */
        aspect-ratio: unset !important; /* Allow aspect ratio to adjust */
        width: 100% !important;
        height: auto !important;
    }
    .page-about__hero-content {
        margin-top: -30px;
        padding: 30px 15px;
    }
    .page-about__main-title {
        font-size: clamp(28px, 8vw, 36px);
    }
    .page-about__intro-text {
        font-size: 15px;
    }
    .page-about__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-about__btn-primary,
    .page-about__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 16px;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }

    /* General image and container rules for mobile */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
        box-sizing: border-box !important;
    }
    .page-about__section,
    .page-about__container,
    .page-about__content-wrapper,
    .page-about__text-block,
    .page-about__image-block,
    .page-about__feature-card,
    .page-about__value-item,
    .page-about__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        margin-left: auto;
        margin-right: auto;
    }
    .page-about__our-story .page-about__image-block img,
    .page-about__responsible-gaming .page-about__image-block img {
        max-width: 100% !important; /* Ensure images in content blocks are also full width */
    }
    .page-about__features-grid,
    .page-about__values-list {
        grid-template-columns: 1fr;
        gap: 20px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-about__feature-card,
    .page-about__value-item {
        padding: 25px 15px;
    }
    .page-about__faq-item summary.page-about__faq-question {
        padding: 15px;
    }
    .page-about__faq-qtext {
        font-size: 15px;
    }
    details.page-about__faq-item .page-about__faq-answer {
        padding: 0 15px 15px;
    }
    .page-about__cta-bottom {
        padding: 50px 0;
    }
}

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