/* style/about.css */
/* Base styles for the about page */
.page-about {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #F2FFF6; /* Text Main color, suitable for dark background */
    background-color: #08160F; /* Background color */
    padding-bottom: 60px; /* Add some padding at the bottom */
}

/* Sections */
.page-about__section {
    padding: 60px 0;
    position: relative;
}

.page-about__section:nth-of-type(even) {
    background-color: #0A4B2C; /* Deep Green for alternating sections */
}

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

/* Hero Section */
.page-about__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 0 60px 0; /* body padding-top handles header offset, this is just for visual spacing */
    overflow: hidden;
    background-color: #08160F; /* Ensure consistent background */
}

.page-about__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 600px; /* Limit hero image height */
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-about__hero-content {
    text-align: center;
    padding: 40px 20px;
    max-width: 900px;
    margin-top: 40px; /* Separate content from image */
}

.page-about__main-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem); /* Responsive font size */
    font-weight: 700;
    line-height: 1.2;
    color: #F2FFF6; /* Main text color */
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-about__description {
    font-size: 1.1rem;
    color: #A7D9B8; /* Secondary text color */
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.page-about__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%; /* Ensure container takes full width for responsive wrapping */
    max-width: 600px; /* Limit max width of button group */
    margin: 0 auto;
}

.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 180px; /* Minimum width for buttons */
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow text to wrap */
    text-align: center;
}

.page-about__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
    color: #F2FFF6; /* White text for buttons */
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-about__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-about__btn-secondary {
    background-color: transparent;
    color: #57E38D; /* Glow color for secondary button text */
    border: 2px solid #57E38D; /* Glow color for border */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-about__btn-secondary:hover {
    background-color: rgba(87, 227, 141, 0.1); /* Light glow background on hover */
    color: #F2FFF6;
    border-color: #F2FFF6;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* General Headings */
.page-about__section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: #F2FFF6; /* Main text color */
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.page-about__sub-title {
    font-size: clamp(1.4rem, 3vw, 2rem);
    color: #F2FFF6; /* Main text color */
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

/* Content Wrappers for text and image blocks */
.page-about__content-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap; /* Allow content to wrap */
}

.page-about__content-wrapper--reverse {
    flex-direction: row-reverse;
}

.page-about__text-block {
    flex: 1;
    min-width: 300px;
}

.page-about__image-content {
    flex: 1;
    min-width: 300px;
    max-width: 600px; /* Limit image width */
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    object-fit: cover;
}

/* Lists */
.page-about ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.page-about ul li {
    background-color: #11271B; /* Card BG color */
    border: 1px solid #2E7A4E; /* Border color */
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-about ul li strong {
    color: #F2C14E; /* Gold color for strong text */
    flex-shrink: 0;
}

.page-about ul li::before {
    content: '✅'; /* Checkmark icon */
    font-size: 1.2rem;
    color: #2AD16F; /* Button green for checkmark */
    margin-right: 10px;
    flex-shrink: 0;
}

/* Why Choose Us Grid */
.page-about__content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-about__card {
    background-color: #11271B; /* Card BG color */
    border: 1px solid #2E7A4E; /* Border color */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.page-about__card-image {
    max-width: 100%;
    height: 250px; /* Fixed height for card images */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-about__card-title {
    font-size: 1.5rem;
    color: #F2C14E; /* Gold for card titles */
    margin-bottom: 15px;
    font-weight: 600;
}

.page-about__card p {
    color: #A7D9B8; /* Secondary text color */
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-about__card-link {
    display: inline-block;
    color: #2AD16F; /* Green for links */
    text-decoration: none;
    font-weight: 600;
    position: relative;
    padding-bottom: 5px;
}

.page-about__card-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: #2AD16F;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.page-about__card-link:hover::after {
    transform: scaleX(1);
}

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

.page-about__faq-item {
    background-color: #11271B; /* Card BG color */
    border: 1px solid #2E7A4E; /* Border color */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.15rem;
    font-weight: 600;
    color: #F2FFF6; /* Main text color */
    background-color: #1E3A2A; /* Divider color for question background */
    transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
    background-color: #0A4B2C; /* Deep Green on hover */
}

.page-about__faq-qtext {
    flex-grow: 1;
    margin-right: 15px;
}

.page-about__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2AD16F; /* Button green for toggle */
    transition: transform 0.3s ease;
}

.page-about__faq-item[open] .page-about__faq-toggle {
    transform: rotate(45deg); /* Rotate plus to form an 'x' or minus */
}

.page-about__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1rem;
    color: #A7D9B8; /* Secondary text color */
    line-height: 1.8;
}

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

.page-about__faq-answer a {
    color: #2AD16F;
    text-decoration: underline;
}

/* Contact Us Section */
.page-about__contact-us-section {
    text-align: center;
    padding-bottom: 80px;
}

/* General paragraph styling */
.page-about p {
    margin-bottom: 15px;
    color: #F2FFF6; /* Default paragraph color */
}

.page-about__text-block p {
    color: #A7D9B8; /* Secondary text color for detailed blocks */
}

/* Ensure no CSS filters are applied to images */
.page-about img {
    filter: none;
}

/* Responsive styles */
@media (max-width: 992px) {
    .page-about__hero-content {
        padding: 30px 15px;
    }

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

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

    .page-about__content-wrapper--reverse {
        flex-direction: column; /* Keep consistent on mobile */
    }

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

    .page-about__card {
        padding: 25px;
    }

    .page-about__card-image {
        height: 200px; /* Adjust card image height */
    }
}

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

    /* Images responsiveness */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__hero-section,
    .page-about__cta-buttons,
    .page-about__content-wrapper,
    .page-about__content-grid,
    .page-about__faq-list,
    .page-about__contact-us-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-about__hero-section {
        padding-top: 10px !important; /* body already handles --header-offset */
        padding-bottom: 40px !important;
    }

    .page-about__main-title {
        font-size: 2rem;
    }

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

    /* Buttons responsiveness */
    .page-about__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-about__btn-primary,
    .page-about__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px !important;
        font-size: 1rem !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

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

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

    .page-about ul li {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
    }

    .page-about ul li::before {
        margin-bottom: 5px;
    }

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

    .page-about__faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }

    .page-about__faq-answer {
        padding: 0 20px 15px 20px;
    }

    /* Ensure content images are not smaller than 200px */
    .page-about__image-content,
    .page-about__card-image {
        min-width: 200px !important;
        min-height: 200px !important;
    }
}