/* 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; /* Assuming body background is light/white */
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding as body handles --header-offset */
    background-color: #f8f8f8; /* Light background for hero section */
}

.page-about__hero-image-wrapper {
    width: 100%;
    max-width: 1200px;
    margin-bottom: 30px;
}

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

.page-about__hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.page-about__main-title {
    font-size: clamp(2rem, 4vw, 3.5rem); /* Responsive font size */
    color: #26A9E0;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

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

/* CTA Buttons */
.page-about__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow 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: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    max-width: 100%; /* Important for responsiveness */
    box-sizing: border-box; /* Important for responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow long words to break */
    text-align: center;
}

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

.page-about__btn-primary:hover {
    background-color: #1a7bbd;
    border-color: #1a7bbd;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

.page-about__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #1a7bbd;
    border-color: #1a7bbd;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Specific button color for login if needed based on custom colors */
.page-about__btn-login {
    background-color: #EA7C07; /* Custom login color */
    border-color: #EA7C07;
    color: #FFFFFF;
}

.page-about__btn-login:hover {
    background-color: #c96a06;
    border-color: #c96a06;
}

/* General Section Styling */
.page-about__section {
    padding: 60px 0;
    background-color: #FFFFFF;
}

.page-about__section:nth-of-type(even) {
    background-color: #f9f9f9;
}

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

.page-about__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    color: #26A9E0;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-about__sub-title {
    font-size: 1.6rem;
    color: #333333;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-about__text-block p,
.page-about__commitment-item p,
.page-about__faq-answer p {
    font-size: 1rem;
    color: #555555;
    margin-bottom: 15px;
}

.page-about__text-block ul {
    list-style: disc;
    margin-left: 20px;
    color: #555555;
}

.page-about__text-block li {
    margin-bottom: 8px;
    font-size: 1rem;
}

/* Introduction Section */
.page-about__introduction {
    background-color: #FFFFFF;
}

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

/* Why Choose Section - Feature Cards */
.page-about__why-choose {
    background-color: #f0f7fb; /* Light blue background for contrast */
}

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

.page-about__card {
    background-color: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 450px; /* Ensure cards have a minimum height */
}

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

.page-about__card-image {
    width: 100%;
    max-width: 300px; /* Max width for card images */
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    min-height: 200px; /* Minimum height for card images */
    min-width: 200px; /* Minimum width for card images */
}

.page-about__card-title {
    font-size: 1.4rem;
    color: #26A9E0;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-about__card p {
    font-size: 0.95rem;
    color: #555555;
    flex-grow: 1; /* Allow paragraph to grow */
}

/* Commitment Section */
.page-about__commitment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-about__commitment-item {
    background-color: #f9f9f9;
    border-left: 5px solid #26A9E0;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-about__commitment-item a {
    color: #26A9E0;
    text-decoration: none;
    font-weight: bold;
}

.page-about__commitment-item a:hover {
    text-decoration: underline;
}

/* Our Team Section */
.page-about__our-team {
    background-color: #FFFFFF;
    text-align: center;
}

.page-about__team-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    margin: 0 auto 40px auto;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    min-width: 200px; /* Minimum width for team image */
    min-height: 200px; /* Minimum height for team image */
}

/* Contact Us Section */
.page-about__contact-us .page-about__container {
    text-align: center;
    padding: 50px;
}

.page-about__dark-section {
    background-color: #26A9E0;
    color: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.page-about__dark-section .page-about__section-title {
    color: #FFFFFF;
    margin-bottom: 25px;
}

.page-about__dark-section p {
    color: #e0f2f7;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.page-about__dark-section .page-about__btn-primary {
    background-color: #FFFFFF;
    color: #26A9E0;
    border-color: #FFFFFF;
}

.page-about__dark-section .page-about__btn-primary:hover {
    background-color: #f0f0f0;
    color: #1a7bbd;
    border-color: #f0f0f0;
}

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

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

.page-about__faq-item {
    background-color: #FFFFFF;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15rem;
    font-weight: bold;
    color: #333333;
    cursor: pointer;
    background-color: #FFFFFF;
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

.page-about__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for details/summary */
}

.page-about__faq-item[open] .page-about__faq-question {
    background-color: #eaf6fc; /* Lighter background when open */
    color: #26A9E0;
    border-bottom: 1px solid #26A9E0;
}

.page-about__faq-qtext {
    flex-grow: 1;
}

.page-about__faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    color: #26A9E0;
    margin-left: 15px;
    line-height: 1;
}

.page-about__faq-item[open] .page-about__faq-toggle {
    color: #26A9E0;
}

.page-about__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1rem;
    color: #555555;
    background-color: #fdfdfd;
}

.page-about__faq-answer p {
    margin-bottom: 0;
}

.page-about__faq-more {
    text-align: center;
    font-size: 1.1rem;
    margin-top: 30px;
    color: #555555;
}

.page-about__faq-more a {
    color: #26A9E0;
    text-decoration: none;
    font-weight: bold;
}

.page-about__faq-more a:hover {
    text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-about__hero-section {
        padding: 40px 15px;
        padding-top: 10px;
    }

    .page-about__main-title {
        font-size: clamp(1.8rem, 5vw, 3rem);
    }

    .page-about__description {
        font-size: 1rem;
    }

    .page-about__section-title {
        font-size: clamp(1.6rem, 4.5vw, 2.5rem);
    }

    .page-about__sub-title {
        font-size: 1.4rem;
    }

    .page-about__card-title {
        font-size: 1.25rem;
    }
}

@media (max-width: 768px) {
    .page-about__hero-section {
        padding: 30px 15px;
        padding-top: 10px !important; /* Ensure small top padding on mobile */
    }

    .page-about__main-title {
        font-size: clamp(1.6rem, 6vw, 2.5rem);
    }

    .page-about__description {
        font-size: 0.95rem;
    }

    .page-about__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-about__btn-primary,
    .page-about__btn-secondary,
    .page-about a[class*="button"],
    .page-about a[class*="btn"] {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px !important;
        font-size: 1rem !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !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;
    }

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

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

    .page-about__section-title {
        font-size: clamp(1.5rem, 6vw, 2.2rem);
        margin-bottom: 30px;
    }

    .page-about__sub-title {
        font-size: 1.3rem;
    }

    .page-about__content-grid,
    .page-about__feature-cards,
    .page-about__commitment-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .page-about__card {
        padding: 25px;
    }

    .page-about__team-image {
        margin-bottom: 30px;
    }

    .page-about__contact-us .page-about__container {
        padding: 40px 20px;
    }
    
    /* Image responsiveness for mobile */
    .page-about img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__hero-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* Padding added to container, no need for individual sections */
    }

    /* Video responsiveness for mobile (even if not explicitly used on this page, general rule) */
    .page-about video,
    .page-about__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-about__video-section,
    .page-about__video-container,
    .page-about__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    
    .page-about__video-section {
        padding-top: 10px !important;
    }
    
    .page-about__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

@media (max-width: 480px) {
    .page-about__hero-section {
        padding: 20px 10px;
        padding-top: 10px !important;
    }
    .page-about__main-title {
        font-size: clamp(1.4rem, 7vw, 2rem);
    }
    .page-about__section-title {
        font-size: clamp(1.3rem, 7vw, 1.8rem);
    }
    .page-about__btn-primary,
    .page-about__btn-secondary {
        font-size: 0.95rem !important;
        padding: 10px 15px !important;
    }
}