/* style/about.css */

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

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

.page-about__section-title {
    font-size: 36px;
    font-weight: 700;
    color: #26A9E0; /* Brand primary color */
    text-align: center;
    margin-bottom: 30px;
    padding-top: 20px;
}

.page-about__sub-title {
    font-size: 24px;
    font-weight: 600;
    color: #333333;
    margin-top: 25px;
    margin-bottom: 15px;
}

.page-about__paragraph {
    font-size: 16px;
    margin-bottom: 15px;
    color: #555555;
}

.page-about__highlight {
    font-weight: bold;
    color: #26A9E0;
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    padding-top: 10px; /* Small top margin, as body padding-top is handled by shared */
    background-color: #26A9E0;
    color: #FFFFFF;
    text-align: center;
    overflow: hidden; /* Ensure image and content stay within bounds */
}

.page-about__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit height for hero image */
    overflow: hidden;
}

.page-about__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    opacity: 0.8; /* Slightly dim the image to make text stand out if it were overlaid */
}

.page-about__hero-content {
    position: relative; /* Ensure content is above image if needed, though structure is image then text */
    padding: 40px 20px 60px;
    background-color: #26A9E0; /* Ensure content background is solid */
    color: #FFFFFF;
}

.page-about__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive H1 font size */
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #FFFFFF;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%; /* Ensure buttons are responsive */
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

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

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

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

.page-about__btn-secondary:hover {
    background-color: #e0e0e0;
    color: #1a7fb8;
    border-color: #1a7fb8;
}

/* Introduction Section */
.page-about__introduction-section {
    padding: 60px 0;
    background-color: #FFFFFF;
}

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

.page-about__grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.page-about__grid-layout--reverse {
    grid-template-areas: "content image"; /* Default desktop order for reverse layout */
}

.page-about__grid-layout--reverse .page-about__image-wrapper {
    grid-area: image;
}

.page-about__grid-layout--reverse .page-about__content-block {
    grid-area: content;
}

.page-about__image-wrapper {
    overflow: hidden;
    border-radius: 8px;
}

.page-about__content-image {
    width: 100%;
    height: auto;
    display: block;
    min-width: 200px; /* Minimum image size */
    min-height: 200px;
    object-fit: cover;
}

/* Values Section */
.page-about__values-section {
    padding: 60px 0;
    background-color: #26A9E0; /* Dark section uses brand primary color */
    color: #FFFFFF;
}

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

.page-about__values-section .page-about__paragraph {
    color: #f0f0f0;
}

.page-about__values-section .page-about__highlight {
    color: #FFFFFF;
}

.page-about__values-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-about__value-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-about__value-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #FFFFFF;
}

.page-about__value-description {
    font-size: 15px;
    color: #f0f0f0;
}

/* Call to Action Section */
.page-about__cta-section {
    padding: 80px 0;
    background-color: #FFFFFF;
    text-align: center;
}

.page-about__cta-content {
    max-width: 800px;
}

.page-about__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    width: 100%; /* Ensure container takes full width */
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

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

.page-about__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

details.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}
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;
}
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: #333333; /* Ensure contrast */
}
.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: #555555; /* Ensure contrast for answer text */
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-about__main-title {
        font-size: clamp(2rem, 4vw, 3rem);
    }
    .page-about__section-title {
        font-size: 30px;
    }
    .page-about__sub-title {
        font-size: 22px;
    }
    .page-about__paragraph {
        font-size: 15px;
    }
    .page-about__grid-layout {
        gap: 30px;
    }
    .page-about__values-list {
        grid-template-columns: 1fr; /* Stack values on smaller screens */
        gap: 20px;
    }
}

@media (max-width: 768px) {
    /* General container padding */
    .page-about__container {
        padding: 0 15px !important;
    }

    /* Hero Section */
    .page-about__hero-section {
        padding-top: 10px !important; /* Fixed small top margin */
    }
    .page-about__hero-content {
        padding: 30px 15px 40px !important;
    }
    .page-about__main-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem) !important;
        margin-bottom: 15px !important;
    }
    .page-about__description {
        font-size: 16px !important;
        margin-bottom: 25px !important;
    }

    /* Sections Padding */
    .page-about__introduction-section,
    .page-about__mission-vision-section,
    .page-about__values-section,
    .page-about__cta-section,
    .page-about__faq-section {
        padding: 40px 0 !important;
    }

    /* Section Titles */
    .page-about__section-title {
        font-size: 26px !important;
        margin-bottom: 25px !important;
        padding-top: 0 !important;
    }
    .page-about__sub-title {
        font-size: 20px !important;
    }
    .page-about__paragraph {
        font-size: 15px !important;
    }

    /* Grid Layout for Mission/Vision/Values */
    .page-about__grid-layout {
        grid-template-columns: 1fr !important; /* Stack columns */
        gap: 30px !important;
    }
    .page-about__grid-layout--reverse {
        grid-template-areas: unset !important; /* Reset grid areas for stacking */
    }
    .page-about__grid-layout--reverse .page-about__image-wrapper,
    .page-about__grid-layout--reverse .page-about__content-block {
        grid-area: unset !important;
    }

    /* Images */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: unset !important;
        min-height: unset !important;
    }
    .page-about__image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Buttons and CTA */
    .page-about__btn-primary,
    .page-about__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-left: 0 !important; /* Remove margin for stacked buttons */
        margin-bottom: 10px; /* Add margin between stacked buttons */
    }
    .page-about__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 10px !important;
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Values List */
    .page-about__values-list {
        grid-template-columns: 1fr !important; /* Stack value items */
        gap: 20px !important;
    }
    .page-about__value-item {
        padding: 20px !important;
    }
    .page-about__value-title {
        font-size: 18px !important;
    }
    .page-about__value-description {
        font-size: 14px !important;
    }

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