/* style/about.css */

/* Base styles for the About Us page */
.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Main text color for dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
}

/* Header offset for main content */
.page-about__hero-section {
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

/* General section styling */
.page-about__section {
    padding: 60px 20px;
}

.page-about__dark-section {
    background-color: #017439; /* Brand primary color for dark sections */
    color: #ffffff;
}

.page-about__content-area {
    background-color: #1a1a1a; /* Slightly lighter dark background for contrast with body's #121212 */
    color: #ffffff;
}

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

/* Titles */
.page-about__main-title {
    font-size: 2.8em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    color: #ffffff;
}

.page-about__section-title {
    font-size: 2.2em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    color: #ffffff; /* Ensure contrast for titles */
}

.page-about__intro-text {
    font-size: 1.2em;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

.page-about__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #f0f0f0;
}

/* Buttons */
.page-about__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

.page-about__btn-primary,
.page-about__btn-secondary,
.page-about__btn-link {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
    max-width: 100%; /* For mobile responsiveness */
}

.page-about__btn-primary {
    background-color: #C30808; /* Specific color for register/login */
    color: #FFFF00; /* Specific font color */
    border: 2px solid #C30808;
}

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

.page-about__btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.page-about__btn-secondary:hover {
    background-color: #ffffff;
    color: #017439;
}

.page-about__btn-link {
    background-color: #017439;
    color: #ffffff;
    border: 1px solid #017439;
    padding: 10px 20px;
    font-size: 0.9em;
}

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

/* Image styling */
.page-about img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    object-fit: cover;
    /* No filter properties allowed */
}

.page-about__hero-image {
    width: 100%;
    height: 675px; /* Display size example */
    object-fit: cover;
    margin-top: 40px;
}

.page-about__image-content {
    width: 100%; /* Default width */
    height: auto;
    max-width: 1000px; /* Example max width for content images */
    margin-left: auto;
    margin-right: auto;
}

.page-about__service-image {
    width: 100%;
    height: 250px; /* Fixed height for service cards */
    object-fit: cover;
    border-radius: 8px 8px 0 0;
    margin: 0;
}

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

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

/* Cards */
.page-about__card,
.page-about__service-item,
.page-about__commitment-item,
.page-about__experience-item {
    background-color: rgba(255, 255, 255, 0.1); /* Light background for dark body */
    color: #ffffff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-about__card:hover,
.page-about__service-item:hover,
.page-about__commitment-item:hover,
.page-about__experience-item:hover {
    transform: translateY(-5px);
}

.page-about__card-title,
.page-about__service-title,
.page-about__commitment-title,
.page-about__experience-title {
    font-size: 1.5em;
    margin-top: 15px;
    margin-bottom: 10px;
    color: #FFFF00; /* Use specific yellow for card titles */
}

.page-about__service-title a {
    color: #FFFF00; /* Link color for service titles */
    text-decoration: none;
}

.page-about__service-title a:hover {
    text-decoration: underline;
}

.page-about__card-text,
.page-about__service-description,
.page-about__commitment-text,
.page-about__experience-text {
    font-size: 1em;
    color: #f0f0f0;
}

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

.page-about__faq-item {
    background-color: rgba(255, 255, 255, 0.1); /* Light background for dark body */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    color: #ffffff;
    transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.page-about__faq-question h3 {
    margin: 0;
    font-size: 1.1em;
    color: #ffffff;
}

.page-about__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #FFFF00; /* Yellow for toggle icon */
}

.page-about__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #f0f0f0;
}

.page-about__faq-item.active .page-about__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px 25px 25px;
}

.page-about__faq-item.active .page-about__faq-toggle {
    transform: rotate(45deg); /* Plus sign rotates to X or minus sign */
}

.page-about__faq-answer p {
    margin-bottom: 15px;
    color: #f0f0f0;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-about__main-title {
        font-size: 2.5em;
    }
    .page-about__section-title {
        font-size: 2em;
    }
    .page-about__hero-image {
        height: 500px;
    }
}

@media (max-width: 768px) {
    .page-about__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensures mobile header offset */
    }
    .page-about__main-title {
        font-size: 2em;
    }
    .page-about__section-title {
        font-size: 1.8em;
    }
    .page-about__intro-text {
        font-size: 1em;
    }
    .page-about__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-about__btn-primary,
    .page-about__btn-secondary,
    .page-about__btn-link {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__hero-section,
    .page-about__grid,
    .page-about__services-grid,
    .page-about__commitment-grid,
    .page-about__experience-grid,
    .page-about__faq-list,
    .page-about__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        margin-left: auto;
        margin-right: auto;
    }
    .page-about__hero-image {
        height: 300px;
    }
    .page-about__service-image {
        height: 200px;
    }
    .page-about__card,
    .page-about__service-item,
    .page-about__commitment-item,
    .page-about__experience-item {
        padding: 20px;
    }
    .page-about__card-title,
    .page-about__service-title,
    .page-about__commitment-title,
    .page-about__experience-title {
        font-size: 1.3em;
    }
    .page-about p,
    .page-about li {
        font-size: 16px;
        line-height: 1.6;
    }
}

@media (max-width: 480px) {
    .page-about__main-title {
        font-size: 1.8em;
    }
    .page-about__section-title {
        font-size: 1.6em;
    }
    .page-about__faq-question h3 {
        font-size: 1em;
    }
}