/* style/about.css */

/* Base styles for the about page */
.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: #FFFFFF; /* Default body background */
}

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

.page-about__section-title {
    font-size: 32px;
    font-weight: 700;
    color: #017439; /* Brand primary color for titles */
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 10px;
}

.page-about__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #017439;
}

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

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

.page-about__intro-text {
    font-size: 18px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    color: #333333;
}

.page-about__intro-text--light {
    color: #FFFFFF;
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    overflow: hidden;
    padding-top: 10px; /* Small top padding, assuming body handles header offset */
    margin-bottom: 40px;
}

.page-about__hero-image {
    width: 100%;
    height: 600px; /* Fixed height for desktop hero */
    object-fit: cover;
    display: block;
}

.page-about__hero-content {
    background: linear-gradient(to right, rgba(1, 116, 57, 0.9), rgba(1, 116, 57, 0.7), rgba(1, 116, 57, 0.5));
    padding: 60px 40px;
    color: #FFFFFF;
    text-align: center;
    position: relative;
    margin-top: -100px;
}

.page-about__main-title {
    font-size: clamp(32px, 5vw, 48px); /* Min 32px, preferred 5vw, max 48px */
    font-weight: 800;
    margin-bottom: 20px;
    color: #FFFF00; /* Yellow for main title */
    line-height: 1.2;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__hero-content p {
    font-size: 20px;
    max-width: 700px;
    margin: 0 auto 30px;
    color: #FFFFFF;
}

.page-about__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%; /* Ensure buttons don't overflow */
}

.page-about__btn-primary {
    background-color: #C30808; /* Red for primary action */
    color: #FFFF00; /* Yellow for primary button text */
    border: 2px solid #C30808;
}

.page-about__btn-primary:hover {
    background-color: #a00606;
    border-color: #a00606;
}

.page-about__btn-secondary {
    background-color: #FFFFFF;
    color: #017439; /* Brand primary color for secondary button text */
    border: 2px solid #017439;
}

.page-about__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #005a2d;
    border-color: #005a2d;
}

/* Mission & Vision Section */
.page-about__mission-vision-section {
    padding: 60px 0;
    background-color: #F9F9F9; /* Light background */
}

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

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

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

.page-about__image-content {
    flex-shrink: 0;
    width: 600px;
    height: 450px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.page-about__image-content--left {
    order: 0; /* Default order */
}

/* Why Choose Section */
.page-about__why-choose-section {
    padding: 60px 0;
    background-color: #017439; /* Dark background */
    color: #FFFFFF;
}

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

.page-about__benefit-card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white */
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-about__benefit-card .page-about__card-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #FFFF00; /* Yellow for card titles */
}

.page-about__benefit-card p {
    font-size: 16px;
    color: #FFFFFF;
}

/* Games Overview Section */
.page-about__games-overview-section {
    padding: 60px 0;
    background-color: #FFFFFF;
}

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

.page-about__game-card {
    display: block;
    text-decoration: none;
    background-color: #F9F9F9;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-about__game-card-image {
    width: 100%;
    height: 200px; /* Fixed height for game card images */
    object-fit: cover;
    display: block;
}

.page-about__game-card-title {
    font-size: 20px;
    font-weight: 700;
    color: #017439;
    padding: 15px 20px 5px;
}

.page-about__game-card-description {
    font-size: 15px;
    color: #555555;
    padding: 0 20px 20px;
}

/* Security Section */
.page-about__security-section {
    padding: 60px 0;
    background-color: #017439;
    color: #FFFFFF;
}

.page-about__security-section .page-about__content-wrapper {
    flex-direction: row-reverse; /* Image on left, text on right */
}

.page-about__security-section .page-about__text-block--light p {
    color: #FFFFFF;
}

/* FAQ Section */
.page-about__faq-section {
    padding: 60px 0;
    background-color: #F9F9F9;
}

.page-about__faq-list {
    margin-top: 40px;
}

details.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 8px; /* Slightly larger border-radius for modern look */
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05); /* Subtle shadow */
}
details.page-about__faq-item summary.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px; /* Increased padding */
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  font-size: 18px; /* Slightly larger font */
  font-weight: 600;
  color: #333333; /* Darker text for question */
}
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;
  line-height: 1.5;
  text-align: left;
}
.page-about__faq-toggle {
  font-size: 28px; /* Larger toggle icon */
  font-weight: bold;
  color: #017439; /* Brand color for toggle */
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px; /* Wider toggle area */
  text-align: center;
}
details.page-about__faq-item .page-about__faq-answer {
  padding: 0 25px 25px; /* Increased padding */
  background: #fdfdfd; /* Lighter background for answer */
  border-top: 1px solid #eee; /* Separator */
  border-radius: 0 0 8px 8px;
  color: #555555; /* Slightly lighter text for answer */
  font-size: 16px;
}
.page-about__faq-answer p {
    margin-bottom: 0; /* Remove default paragraph margin */
}

/* CTA Bottom Section */
.page-about__cta-bottom-section {
    padding: 60px 0;
    background-color: #017439;
    color: #FFFFFF;
    text-align: center;
}

.page-about__btn-primary--large {
    padding: 18px 40px;
    font-size: 20px;
}


/* Global Image and Container Responsiveness */
.page-about img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Media Queries */
@media (max-width: 1024px) {
    .page-about__hero-image {
        height: 500px;
    }
    .page-about__main-title {
        font-size: clamp(32px, 5vw, 42px);
    }
    .page-about__hero-content {
        padding: 50px 30px;
    }
    .page-about__section-title {
        font-size: 28px;
    }
    .page-about__intro-text {
        font-size: 17px;
    }
    .page-about__content-wrapper {
        flex-direction: column;
        gap: 30px;
    }
    .page-about__image-content {
        width: 100%;
        height: auto;
        max-width: 500px;
        margin: 0 auto;
    }
    .page-about__security-section .page-about__content-wrapper {
        flex-direction: column; /* Revert to column for smaller screens */
    }
    .page-about__game-cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    details.page-about__faq-item summary.page-about__faq-question {
        font-size: 17px;
        padding: 15px 20px;
    }
    .page-about__faq-toggle {
        font-size: 24px;
        width: 25px;
    }
    details.page-about__faq-item .page-about__faq-answer {
        padding: 0 20px 20px;
    }
}

@media (max-width: 768px) {
    /* Hero Section */
    .page-about__hero-section {
        padding-top: 10px !important; /* Small top padding, assuming body handles header offset */
        margin-bottom: 30px;
    }
    .page-about__hero-image {
        height: 350px !important;
    }
    .page-about__hero-content {
        padding: 40px 20px !important;
        margin-top: -80px;
    }
    .page-about__main-title {
        font-size: 32px !important;
        margin-bottom: 15px !important;
    }
    .page-about__hero-content p {
        font-size: 16px !important;
        margin-bottom: 25px !important;
    }
    .page-about__cta-buttons {
        flex-direction: column !important;
        gap: 15px !important;
        padding-left: 15px;
        padding-right: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* General Sections and Titles */
    .page-about__container {
        padding: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-about__section-title {
        font-size: 24px !important;
        margin-bottom: 20px !important;
    }
    .page-about__intro-text {
        font-size: 15px !important;
        margin-bottom: 30px !important;
    }
    .page-about__mission-vision-section,
    .page-about__why-choose-section,
    .page-about__games-overview-section,
    .page-about__security-section,
    .page-about__faq-section,
    .page-about__cta-bottom-section {
        padding: 40px 0 !important;
    }

    /* Images responsiveness for content areas */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-about__image-content {
        height: auto !important; /* Ensure content images are responsive */
        max-width: 100% !important;
    }

    /* Buttons responsiveness */
    .page-about__btn-primary,
    .page-about__btn-secondary,
    .page-about a[class*="button"],
    .page-about a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px !important;
        font-size: 16px !important;
    }
    .page-about__cta-buttons,
    .page-about__button-group,
    .page-about__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px !important;
        flex-direction: column !important; /* Ensure vertical stacking for multiple buttons */
    }

    /* Benefit Cards */
    .page-about__benefits-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    .page-about__benefit-card {
        padding: 25px !important;
    }
    .page-about__benefit-card .page-about__card-title {
        font-size: 20px !important;
    }

    /* Game Cards */
    .page-about__game-cards-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    .page-about__game-card-image {
        height: 180px !important;
    }
    .page-about__game-card-title {
        font-size: 18px !important;
    }
    .page-about__game-card-description {
        font-size: 14px !important;
    }

    /* FAQ Section */
    details.page-about__faq-item summary.page-about__faq-question {
        padding: 15px !important;
        font-size: 16px !important;
    }
    .page-about__faq-qtext {
        font-size: 16px !important;
    }
    .page-about__faq-toggle {
        font-size: 24px !important;
        width: 25px !important;
    }
    details.page-about__faq-item .page-about__faq-answer {
        padding: 0 15px 15px !important;
    }
    .page-about__faq-answer p {
        font-size: 15px !important;
    }

    /* CTA Bottom Section */
    .page-about__btn-primary--large {
        padding: 15px 30px !important;
        font-size: 18px !important;
    }
}