/* 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 body background */
    background: #FFFFFF; /* Explicitly setting for clarity, though body is default white */
}

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

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

.page-about__section-title {
    font-size: 36px;
    font-weight: 700;
    color: #26A9E0; /* Brand primary color for titles */
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-about__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #26A9E0;
    border-radius: 2px;
}

.page-about__description,
.page-about__intro-text {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto 30px;
    color: #555555;
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, assuming body handles header offset */
    padding-bottom: 60px;
    background: linear-gradient(135deg, #26A9E0, #4CAF50); /* Subtle gradient for hero background */
    color: #FFFFFF;
    text-align: center;
    overflow: hidden;
}

.page-about__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.page-about__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers the area */
    opacity: 0.3; /* Make it a subtle background */
}

.page-about__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 20px;
}

.page-about__main-title {
    font-size: clamp(36px, 5vw, 48px); /* Responsive font size for H1 */
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #FFFFFF;
}

.page-about__hero-section .page-about__description {
    font-size: 20px;
    margin-bottom: 40px;
    color: #F0F0F0;
}

.page-about__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allows buttons to wrap on smaller screens */
}

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

.page-about__btn-primary {
    background: #EA7C07; /* Login color for primary action */
    color: #FFFFFF;
    border: 2px solid #EA7C07;
}

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

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

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

/* Mission & Vision Section */
.page-about__mission-vision {
    background: #f9f9f9;
}

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

.page-about__card {
    background: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

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

.page-about__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-about__card-title {
    font-size: 24px;
    font-weight: 600;
    color: #26A9E0;
    margin-top: 0;
    margin-bottom: 15px;
    line-height: 1.3;
}

.page-about__card p {
    font-size: 16px;
    color: #555555;
}

/* Why Choose Us Section */
.page-about__dark-section {
    background: #26A9E0; /* Primary brand color for dark sections */
    color: #FFFFFF;
}

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

.page-about__dark-section .page-about__section-title::after {
    background: #FFFFFF;
}

.page-about__dark-section .page-about__intro-text,
.page-about__dark-section .page-about__description {
    color: #E0F7FA;
}

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

.page-about__feature-item {
    background: #FFFFFF;
    color: #333333;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-about__feature-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
}

.page-about__feature-title {
    font-size: 22px;
    font-weight: 600;
    color: #26A9E0;
    margin-bottom: 15px;
    line-height: 1.3;
}

/* Responsible Gaming Section */
.page-about__responsible-gaming {
    background: #FFFFFF;
}

.page-about__responsible-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
    text-align: left;
}

.page-about__responsible-item {
    background: #f0f8ff; /* Light blue background for emphasis */
    padding: 25px;
    border-radius: 8px;
    border-left: 5px solid #26A9E0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-about__responsible-subtitle {
    font-size: 20px;
    font-weight: 600;
    color: #26A9E0;
    margin-top: 0;
    margin-bottom: 10px;
}

.page-about__content-area {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.page-about__content-area p {
    font-size: 16px;
    color: #555555;
    margin-bottom: 20px;
}

.page-about__content-image {
    width: 100%;
    height: auto;
    max-width: 700px;
    border-radius: 10px;
    margin-top: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Our Team Section */
.page-about__light-bg {
    background: #f0f8ff; /* A slightly different light background */
}

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

.page-about__team-member {
    background: #FFFFFF;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.page-about__member-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 15px;
    border: 4px solid #26A9E0;
}

.page-about__member-name {
    font-size: 22px;
    font-weight: 700;
    color: #26A9E0;
    margin-bottom: 5px;
}

.page-about__member-role {
    font-size: 16px;
    color: #777777;
    margin-bottom: 15px;
    font-style: italic;
}

.page-about__member-description {
    font-size: 15px;
    color: #555555;
}

/* Achievements Section */
.page-about__achievements {
    background: #FFFFFF;
}

.page-about__achievement-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    text-align: left;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__achievement-list li {
    font-size: 17px;
    margin-bottom: 12px;
    padding-left: 30px;
    position: relative;
    color: #444444;
}

.page-about__achievement-list li::before {
    content: '✅'; /* Checkmark icon */
    position: absolute;
    left: 0;
    color: #26A9E0;
    font-size: 20px;
    line-height: 1;
}

.page-about__achievement-list strong {
    color: #26A9E0;
}

/* FAQ Section */
.page-about__faq-section {
    background: #f9f9f9;
}

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

details.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 10px 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 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  position: relative;
  font-size: 16px; /* Ensure font size is set for summary */
}
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; /* Slightly larger for clarity */
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}
.page-about__faq-toggle {
  font-size: 28px; /* Larger toggle icon */
  font-weight: bold;
  color: #26A9E0; /* Brand color for toggle */
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}
details.page-about__faq-item .page-about__faq-answer {
  padding: 0 20px 20px;
  background: #fefefe;
  border-radius: 0 0 8px 8px;
  text-align: left;
  color: #555555;
  font-size: 16px;
}
details.page-about__faq-item .page-about__faq-answer p {
    margin-bottom: 0;
}

/* Final CTA Section */
.page-about__cta-section {
    background: #26A9E0; /* Primary brand color */
    color: #FFFFFF;
    padding: 80px 0;
}

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

.page-about__cta-section .page-about__section-title::after {
    background: #FFFFFF;
}

.page-about__cta-section .page-about__description {
    color: #E0F7FA;
    margin-bottom: 50px;
}

/* ==========================================================================
   Responsive Styles - Mobile First Approach
   ========================================================================== */

/* General Responsive Adjustments for all images and containers */
.page-about img {
    max-width: 100%;
    height: auto;
    display: block;
}

.page-about__section,
.page-about__card,
.page-about__container,
.page-about__cta-buttons,
.page-about__button-group,
.page-about__btn-container {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden; /* Ensure no horizontal scroll */
}

/* Media Query for Tablets and smaller desktops (e.g., up to 1024px) */
@media (max-width: 1024px) {
    .page-about__container {
        padding: 0 15px;
    }

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

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

    .page-about__main-title {
        font-size: clamp(32px, 6vw, 42px);
    }

    .page-about__hero-section .page-about__description {
        font-size: 18px;
    }

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

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

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

    .page-about__responsible-subtitle {
        font-size: 18px;
    }

    .page-about__member-name {
        font-size: 20px;
    }

    .page-about__faq-qtext {
        font-size: 17px;
    }
}


/* Media Query for Mobile devices (max-width: 768px) - MUST INCLUDE ALL LISTED ITEMS */
@media (max-width: 768px) {
    /* General adjustments */
    .page-about__section {
        padding: 40px 0;
    }

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

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

    .page-about__description,
    .page-about__intro-text,
    .page-about__card p,
    .page-about__member-description,
    .page-about__achievement-list li,
    .page-about__faq-answer p {
        font-size: 15px;
        line-height: 1.6;
    }

    /* 1. HERO Main Image Area */
    .page-about__hero-section {
        padding-top: 10px; /* Small top padding */
        padding-bottom: 40px;
    }
    .page-about__hero-content {
        padding: 60px 15px;
    }
    .page-about__hero-image-wrapper {
        height: 100%; /* Ensure image wrapper takes full height */
    }
    .page-about__hero-image {
        object-fit: contain !important; /* IMPORTANT: Image must not be cropped */
        aspect-ratio: unset !important; /* Remove fixed aspect ratio if any */
        width: 100% !important;
        height: auto !important; /* Allow height to adjust */
        max-height: 300px; /* Limit hero image height on mobile */
        opacity: 0.3 !important; /* Maintain opacity */
    }
    .page-about__main-title {
        font-size: clamp(28px, 8vw, 36px); /* Adjust H1 for mobile */
        margin-bottom: 15px;
    }
    .page-about__hero-section .page-about__description {
        font-size: 16px;
        margin-bottom: 30px;
    }
    .page-about__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding: 0 15px; /* Added padding to button container */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    /* 5. Buttons and Button Containers */
    .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 15px !important; /* Adjust padding */
        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;
        display: flex; /* Ensure flex context for column stacking */
        flex-direction: column; /* Stack buttons vertically */
    }

    /* Mission & Vision Section */
    .page-about__content-grid {
        grid-template-columns: 1fr; /* Single column layout */
    }
    .page-about__card {
        padding: 25px;
    }
    .page-about__card-image {
        height: 180px;
    }
    .page-about__card-title {
        font-size: 20px;
    }

    /* Why Choose Us Section */
    .page-about__features-grid {
        grid-template-columns: 1fr; /* Single column layout */
    }
    .page-about__feature-item {
        padding: 25px;
    }
    .page-about__feature-icon {
        width: 80px;
        height: 80px;
    }
    .page-about__feature-title {
        font-size: 18px;
    }

    /* Responsible Gaming Section */
    .page-about__responsible-grid {
        grid-template-columns: 1fr; /* Single column layout */
    }
    .page-about__responsible-item {
        padding: 20px;
    }
    .page-about__responsible-subtitle {
        font-size: 17px;
    }
    .page-about__content-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        margin-top: 30px;
    }

    /* Our Team Section */
    .page-about__team-grid {
        grid-template-columns: 1fr; /* Single column layout */
    }
    .page-about__team-member {
        padding: 20px;
    }
    .page-about__member-photo {
        width: 120px;
        height: 120px;
    }
    .page-about__member-name {
        font-size: 18px;
    }
    .page-about__member-role {
        font-size: 14px;
    }

    /* Achievements Section */
    .page-about__achievement-list {
        padding-left: 0;
    }
    .page-about__achievement-list li {
        padding-left: 25px;
        font-size: 15px;
    }
    .page-about__achievement-list li::before {
        font-size: 18px;
        left: 0;
    }

    /* FAQ Section */
    details.page-about__faq-item summary.page-about__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    .page-about__faq-qtext {
        font-size: 16px;
        width: calc(100% - 40px); /* Adjust width to make space for toggle */
        margin-bottom: 5px; /* Add some space below question text if it wraps */
    }
    .page-about__faq-toggle {
        font-size: 24px;
        width: 24px;
        height: 24px;
        margin-left: 10px;
    }
    details.page-about__faq-item .page-about__faq-answer {
        padding: 0 15px 15px;
    }

    /* Final CTA Section */
    .page-about__cta-section {
        padding: 60px 0;
    }
    .page-about__cta-section .page-about__description {
        margin-bottom: 40px;
    }

    /* 3. Decorative Main Title + Long Text SEO Area */
    .page-about__content-area,
    .page-about__intro-text {
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
        text-align: left; /* Adjust text alignment for mobile readability */
    }
    .page-about__section-title {
        text-align: center; /* Titles remain centered */
    }
    .page-about__section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    /* 4. Generic Images and Containers (already covered above) */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-about__section,
    .page-about__card,
    .page-about__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}