:root {
    --primary-color: #E53935;
    --secondary-color: #FF5A4F;
    --text-main-color: #333333;
    --card-bg-color: #FFFFFF;
    --background-color-page: #F5F7FA; /* Specific for page content background */
    --border-color: #E0E0E0;
}

.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main-color); /* Default text color for light backgrounds */
    background-color: var(--background-color-page); /* Page specific 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: 10px; /* Small top padding, body handles header offset */
    background-color: var(--primary-color); /* Hero section background */
    color: #ffffff; /* White text for dark background */
}

.page-about__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%; /* Ensure full width within max-width */
}

.page-about__hero-image {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden; /* Ensure image corners are rounded */
}

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

.page-about__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 800px; /* Constrain content width */
}

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

.page-about__hero-description {
    font-size: 18px;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-about__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(180deg, var(--secondary-color) 0%, var(--primary-color) 100%); /* Custom button color */
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 10px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    max-width: 100%; /* Button responsive */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-about__cta-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.page-about__light-bg {
    background-color: var(--background-color-page);
    color: var(--text-main-color);
}

.page-about__dark-section {
    background-color: var(--primary-color);
    color: #ffffff;
}

.page-about__section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 40px;
    line-height: 1.3;
    color: inherit; /* Inherit color from section (dark/light) */
}

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

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

.page-about__content-wrapper--reversed {
    flex-direction: row-reverse;
}

.page-about__text-block {
    flex: 1;
    font-size: 16px;
}

.page-about__text-block p {
    margin-bottom: 15px;
}

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

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

.page-about__image-block--center {
    margin-top: 40px;
    flex: none; /* Do not flex in this case */
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Values & Mission Grid */
.page-about__grid-3-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

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

.page-about__card {
    background-color: var(--card-bg-color);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    border: 1px solid var(--border-color);
    color: var(--text-main-color);
}

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

.page-about__card p {
    font-size: 15px;
    line-height: 1.6;
}

/* Why Choose Section */
.page-about__feature-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 8px;
    text-align: left;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.page-about__feature-item p {
    font-size: 16px;
    color: #f0f0f0;
}

/* Responsible Gambling Section */
.page-about__list {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
    font-size: 16px;
}

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

.page-about__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    background: var(--card-bg-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
    max-width: 100%; /* Button responsive */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

/* CTA Section */
.page-about__cta-container {
    padding: 60px 20px;
    background-color: var(--primary-color); /* Dark section */
    color: #ffffff;
    border-radius: 8px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-about__cta-description {
    font-size: 18px;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-about__button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-about__button-group .page-about__cta-button,
.page-about__button-group .page-about__btn-secondary {
    flex-grow: 1; /* Allow buttons to grow */
    max-width: 300px; /* Max width for individual buttons */
    min-width: 200px; /* Min width for individual buttons */
    text-align: center;
}

/* FAQ Section */
.page-about__faq-list {
    margin-top: 40px;
    text-align: left;
}

details.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--card-bg-color);
}
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;
  color: var(--text-main-color);
}
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;
  color: var(--text-main-color);
}
.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;
  color: var(--text-main-color);
}
.page-about__faq-answer p {
    margin-bottom: 10px;
}
.page-about__faq-link {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 600;
}
.page-about__faq-link:hover {
    color: var(--secondary-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__grid-2-columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-about__hero-section {
        padding-top: 10px !important; /* body handles header offset */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-about__main-title {
        font-size: 36px;
    }

    .page-about__hero-description {
        font-size: 16px;
    }

    .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;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-about__section {
        padding: 40px 15px;
    }

    .page-about__section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

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

    .page-about__content-wrapper--reversed {
        flex-direction: column; /* Revert to column for mobile */
    }

    .page-about__image-block img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }

    .page-about__container,
    .page-about__card,
    .page-about__feature-item,
    .page-about__cta-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-about__grid-3-columns,
    .page-about__grid-2-columns {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-about__card {
        padding: 20px;
    }

    .page-about__card--value .page-about__card-title {
        font-size: 20px;
    }

    .page-about__feature-item {
        padding: 20px;
    }

    .page-about__feature-title {
        font-size: 20px;
    }

    .page-about__btn-secondary {
        padding: 12px 25px;
        font-size: 15px;
        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__button-group {
        flex-direction: column;
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-about__button-group .page-about__cta-button,
    .page-about__button-group .page-about__btn-secondary {
        max-width: 100%; /* Ensure full width for stacked buttons */
        min-width: unset; /* Remove min-width when stacked */
    }

    details.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; }
}