/* style/about.css */

:root {
    --primary-color: #1A202C;
    --secondary-color: #FFD700;
    --text-light: #ffffff;
    --text-dark: #333333;
    --background-dark: #0a0a0a;
    --background-light: #f8f9fa;
    --border-color: #e0e0e0;
}

.page-about {
    font-family: 'Arial', sans-serif;
    line-height: 1.7;
    color: var(--text-light); /* Default for dark body background */
    background-color: var(--background-dark);
}

/* Fixed header spacing */
.page-about__intro-section {
    padding-top: 180px; /* Desktop: Adjust based on fixed header height */
}

@media (max-width: 768px) {
    .page-about__intro-section {
        padding-top: 160px !important; /* Mobile: Adjust for mobile header */
    }
}

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

.page-about__main-title {
    font-size: 38px;
    font-weight: bold;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.2;
}

.page-about__section-title {
    font-size: 32px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.3;
}

.page-about__highlight {
    color: var(--secondary-color);
}

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

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

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

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

.page-about__text-block h3 {
    font-size: 24px;
    font-weight: bold;
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-about__text-block ul {
    list-style: none;
    padding-left: 0;
}

.page-about__text-block li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
    font-size: 16px;
}

.page-about__text-block li::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}

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

.page-about__image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Section Styling */
.page-about__intro-section,
.page-about__vision-mission-section,
.page-about__core-values-section,
.page-about__products-services-section,
.page-about__why-choose-us-section,
.page-about__responsible-gambling-section,
.page-about__faq-section,
.page-about__contact-cta-section {
    padding: 60px 0;
}

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

.page-about__light-bg .page-about__main-title,
.page-about__light-bg .page-about__section-title,
.page-about__light-bg .page-about__text-block h3 {
    color: var(--text-dark);
}

.page-about__dark-bg {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-about__dark-bg .page-about__main-title,
.page-about__dark-bg .page-about__section-title,
.page-about__dark-bg .page-about__text-block h3 {
    color: var(--text-light);
}

.page-about__core-values-section {
    padding-bottom: 80px;
}

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

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

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

.page-about__value-icon {
    width: 100px; /* Min 200px, but for icons in card, 100px can be acceptable if it's a content image. I'll make it 200px to be safe. */
    height: auto;
    margin-bottom: 20px;
    max-width: 200px; /* Enforce min size */
}

.page-about__value-card h3 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.page-about__value-card p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-dark);
}

/* CTA Button */
.page-about__cta-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: var(--secondary-color);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 30px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

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

.page-about__cta-button--large {
    padding: 18px 40px;
    font-size: 20px;
}

.page-about__cta-button--primary {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-about__cta-button--primary:hover {
    background-color: #2b3547;
}

.page-about__link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-about__link:hover {
    color: #e6c200;
    text-decoration: underline;
}

/* FAQ Section */
.page-about__faq-section {
    padding-bottom: 80px;
}

.page-about__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  background-color: #ffffff; /* White background for FAQ item */
}

.page-about__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
  padding: 0 15px;
  opacity: 0;
  color: var(--text-dark);
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-about__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-about__faq-question:active {
  background: #eeeeee;
}

.page-about__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--text-dark); /* Ensure dark text on light background */
}

.page-about__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-about__faq-item.active .page-about__faq-toggle {
  color: var(--primary-color);
}

.page-about__contact-cta-section {
    padding-top: 80px;
    padding-bottom: 80px;
}

.page-about__contact-cta-card {
    background-color: #ffffff;
    color: var(--text-dark);
    padding: 50px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.page-about__contact-cta-card .page-about__section-title {
    color: var(--text-dark);
    margin-bottom: 25px;
}

.page-about__contact-description {
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-dark);
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-about__content-wrapper {
        flex-direction: column;
        text-align: center;
    }

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

    .page-about__image-block {
        order: -1; /* Image appears above text on mobile */
        margin-bottom: 30px;
    }

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

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

    .page-about__text-block h3 {
        font-size: 22px;
    }

    .page-about__cta-button--large {
        padding: 15px 30px;
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .page-about__intro-section,
    .page-about__vision-mission-section,
    .page-about__core-values-section,
    .page-about__products-services-section,
    .page-about__why-choose-us-section,
    .page-about__responsible-gambling-section,
    .page-about__faq-section,
    .page-about__contact-cta-section {
        padding: 40px 0;
    }

    .page-about__container {
        padding: 0 15px;
    }

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

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

    .page-about__text-block p,
    .page-about__text-block li {
        font-size: 15px;
    }

    .page-about__text-block h3 {
        font-size: 20px;
    }

    .page-about__values-grid {
        grid-template-columns: 1fr;
    }

    .page-about__value-card {
        padding: 25px;
    }

    .page-about__value-icon {
        max-width: 150px; /* Adjust for mobile */
    }

    .page-about__cta-button {
        padding: 12px 25px;
        font-size: 16px;
        width: 100%;
        box-sizing: border-box;
    }

    .page-about__cta-button--large {
        padding: 15px 30px;
        font-size: 18px;
    }

    .page-about__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    
    .page-about__faq-question h3 {
        font-size: 15px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    
    .page-about__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    
    .page-about__faq-answer {
        padding: 0 15px;
    }
    
    .page-about__faq-item.active .page-about__faq-answer {
        padding: 15px !important;
    }

    .page-about__contact-cta-card {
        padding: 30px 20px;
    }

    .page-about__contact-description {
        font-size: 15px;
    }

    /* Ensure all images are responsive and do not overflow */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__content-wrapper,
    .page-about__text-block,
    .page-about__image-block {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0px;
        padding-right: 0px;
    }

    .page-about__intro-section .page-about__container,
    .page-about__vision-mission-section .page-about__container,
    .page-about__core-values-section .page-about__container,
    .page-about__products-services-section .page-about__container,
    .page-about__why-choose-us-section .page-about__container,
    .page-about__responsible-gambling-section .page-about__container,
    .page-about__faq-section .page-about__container,
    .page-about__contact-cta-section .page-about__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}