/* style/about.css */

/* Base styles for the page */
.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light body background */
    background-color: #f8f8f8; /* Slightly off-white background for sections */
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, assuming shared.css handles body padding-top */
    padding-bottom: 40px;
    background-color: #f0f0f0;
    overflow: hidden;
}

.page-about__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 600px; /* Limit hero image height */
}

.page-about__hero-content {
    text-align: center;
    padding: 30px 20px 0;
    max-width: 900px;
    margin: 0 auto;
}

.page-about__main-title {
    font-size: clamp(28px, 4vw, 48px); /* Responsive H1 font size */
    font-weight: 700;
    line-height: 1.2;
    color: #26A9E0;
    margin-bottom: 15px;
}

.page-about__description {
    font-size: 18px;
    margin-bottom: 30px;
    color: #555555;
}

/* Container for content sections */
.page-about__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.page-about__container--center {
    text-align: center;
}

/* Section Titles */
.page-about__section-title {
    font-size: clamp(24px, 3.5vw, 38px);
    font-weight: 700;
    color: #26A9E0;
    text-align: center;
    margin-bottom: 30px;
    padding-top: 30px;
}

.page-about__section-title--light {
    color: #FFFFFF;
}

/* Content Grid (for sections with text and image) */
.page-about__content-grid {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
}

.page-about__content-grid:nth-of-type(even) {
    flex-direction: row-reverse; /* Alternate image/text order */
}

.page-about__text-block {
    flex: 1;
    font-size: 17px;
    line-height: 1.7;
}

.page-about__image-content {
    flex: 1;
    max-width: 50%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

/* Feature Grid (Why Choose Us) */
.page-about__dark-bg {
    background-color: #26A9E0; /* Primary brand color */
    color: #FFFFFF;
    padding: 60px 0;
}

.page-about__light-bg {
    background-color: #FFFFFF;
    color: #333333;
    padding: 60px 0;
}

.page-about__medium-bg {
    background-color: #f0f0f0; /* Light grey background */
    color: #333333;
    padding: 60px 0;
}

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

.page-about__feature-card {
    background-color: rgba(255, 255, 255, 0.15); /* Semi-transparent white on primary background */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

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

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

/* Game List */
.page-about__game-list {
    list-style: disc;
    padding-left: 25px;
    margin-top: 20px;
    font-size: 17px;
    color: #555555;
}

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

.page-about__game-list strong {
    color: #333333;
}

/* CTA Buttons */
.page-about__cta-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    justify-content: center;
}

.page-about__cta-buttons--center {
    justify-content: center;
}

.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    max-width: 100%; /* For mobile responsiveness */
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

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

.page-about__btn-primary:hover {
    background-color: #1a8cc7;
    border-color: #1a8cc7;
    transform: translateY(-2px);
}

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

.page-about__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #1a8cc7;
    border-color: #1a8cc7;
    transform: translateY(-2px);
}

/* FAQ Section */
.page-about__faq-list {
    margin-top: 30px;
}

details.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
details.page-about__faq-item summary.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  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: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}
.page-about__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #26A9E0; /* Brand color for toggle icon */
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}
details.page-about__faq-item .page-about__faq-answer {
  padding: 0 25px 20px;
  background: #f9f9f9;
  border-radius: 0 0 8px 8px;
  font-size: 16px;
  color: #555555;
}
details.page-about__faq-item .page-about__faq-answer p {
    margin-bottom: 0;
}


/* Responsive styles */
@media (max-width: 1024px) {
    .page-about__container {
        padding: 15px;
    }

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

    .page-about__content-grid:nth-of-type(even) {
        flex-direction: column; /* Keep consistent on smaller screens */
    }

    .page-about__image-content {
        max-width: 80%;
    }

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

    .page-about__btn-primary,
    .page-about__btn-secondary {
        padding: 12px 24px;
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .page-about {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-about__hero-section {
        padding-top: 10px !important; /* Small top padding, assuming shared.css handles body padding-top */
        padding-bottom: 30px;
    }

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

    .page-about__description {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .page-about__section-title {
        font-size: 26px;
        margin-bottom: 20px;
        padding-top: 20px;
    }

    .page-about__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-about__content-grid {
        gap: 20px;
    }

    .page-about__image-content {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        margin: 0 auto; /* Center image */
    }

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

    .page-about__feature-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

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

    .page-about__game-list {
        font-size: 16px;
        padding-left: 20px;
    }

    .page-about__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-about__btn-primary,
    .page-about__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px !important;
        font-size: 16px !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        height: auto !important; /* Allow height to adjust with text wrapping */
    }

    details.page-about__faq-item summary.page-about__faq-question {
        padding: 15px;
    }
    .page-about__faq-qtext {
        font-size: 16px;
    }
    .page-about__faq-toggle {
        font-size: 24px;
        width: 24px;
        margin-left: 10px;
    }
    details.page-about__faq-item .page-about__faq-answer {
        padding: 0 15px 15px;
        font-size: 15px;
    }

    /* Ensure all images inside page-about are responsive */
    .page-about img {
        max-width: 100% !important;
        height: auto !important;
        display: block;
    }
}