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

/* Ensure body padding-top is handled by shared.css, so hero-section only needs small top padding */
.page-about__hero-section {
    padding-top: 10px; /* Small top padding, assuming shared.css handles body padding-top */
    padding-bottom: 40px;
    background-color: #017439; /* Brand primary color for hero background */
    color: #ffffff; /* White text for dark background */
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.page-about__hero-image {
    width: 100%;
    max-width: 1200px; /* Constrain hero image width */
    margin-bottom: 20px;
    overflow: hidden; /* Ensure no image overflow */
}

.page-about__hero-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.page-about__hero-content {
    max-width: 900px;
    padding: 0 15px;
    margin-top: 20px;
}

.page-about__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size for H1 */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

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

.page-about__cta-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
    width: 100%; /* Ensure container takes full width */
    max-width: 600px; /* Max width for button group */
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box; /* Include padding in width */
    padding: 0 15px; /* Add padding to prevent overflow */
    overflow: hidden; /* Hide overflow from text */
}

.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    max-width: 100%; /* Ensure buttons don't exceed container */
    box-sizing: border-box; /* Include padding in width */
    min-width: 180px; /* Minimum width for buttons */
}

.page-about__btn-primary {
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

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

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

.page-about__btn-secondary:hover {
    background-color: #ffffff;
    color: #017439;
    transform: translateY(-2px);
}

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

.page-about__section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #017439; /* Brand primary color for section titles */
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.3;
}

.page-about__introduction-section,
.page-about__mission-vision-section,
.page-about__advantages-section,
.page-about__team-section,
.page-about__contact-cta-section {
    background-color: #ffffff; /* Light background */
    color: #333333;
}

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

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

.page-about__image-text-block {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
}

.page-about__image-text-block .page-about__content-image {
    flex: 1;
    min-width: 200px; /* Minimum size for content images */
    border-radius: 8px;
    display: block;
    width: 100%;
    height: auto;
}

.page-about__image-text-block .page-about__text-content {
    flex: 1;
}

.page-about__content-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
    flex-direction: row-reverse; /* For visual variation */
}

.page-about__content-wrapper .page-about__content-image {
    flex: 1;
    min-width: 200px; /* Minimum size for content images */
    border-radius: 8px;
    display: block;
    width: 100%;
    height: auto;
}

.page-about__content-wrapper .page-about__text-content {
    flex: 1;
}

.page-about p {
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.page-about strong {
    font-weight: 700;
    color: inherit; /* Inherit color to maintain contrast */
}

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

.page-about__card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    border: 1px solid #e0e0e0;
    color: #333333; /* Dark text for light card background */
}

.page-about__card:hover {
    transform: translateY(-5px);
}

.page-about__card-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #017439;
    margin-bottom: 15px;
}

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

.page-about__value-item {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark background */
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-about__value-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 10px;
}

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

.page-about__advantage-item {
    background-color: #fcfcfc;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    border: 1px solid #eee;
    text-align: center;
    color: #333333;
}

.page-about__advantage-image {
    width: 100%;
    max-height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
    min-width: 200px; /* Minimum size for content images */
    min-height: 200px; /* Minimum size for content images */
}

.page-about__advantage-title {
    font-size: 1.7rem;
    font-weight: 600;
    color: #017439;
    margin-bottom: 10px;
}

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

.page-about__commitment-item {
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.page-about__commitment-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 10px;
}

.page-about__team-description {
    max-width: 800px;
    margin: 0 auto 40px auto;
    text-align: center;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .page-about {
        font-size: 16px;
        line-height: 1.65;
    }

    .page-about__hero-section {
        padding-top: 10px; /* Small top padding for mobile */
        padding-bottom: 30px;
    }

    .page-about__main-title {
        font-size: clamp(2rem, 8vw, 2.8rem);
        margin-bottom: 15px;
    }

    .page-about__description {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .page-about__cta-buttons {
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 15px;
        padding: 0 20px !important; /* Ensure padding on mobile */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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

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

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

    .page-about__image-text-block,
    .page-about__content-wrapper {
        flex-direction: column; /* Stack image and text vertically */
        gap: 25px;
    }

    .page-about__image-text-block .page-about__content-image,
    .page-about__content-wrapper .page-about__content-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important; /* Ensure minimum size on mobile */
        min-height: 200px !important;
        box-sizing: border-box !important;
    }

    .page-about__grid-layout,
    .page-about__values-grid,
    .page-about__advantages-list,
    .page-about__commitment-list {
        grid-template-columns: 1fr; /* Single column layout for grids */
        gap: 25px;
    }

    .page-about__card,
    .page-about__value-item,
    .page-about__advantage-item,
    .page-about__commitment-item {
        padding: 20px;
        box-sizing: border-box !important; /* Ensure padding is included in width */
        max-width: 100% !important;
        width: 100% !important;
    }

    .page-about__card-title,
    .page-about__value-title,
    .page-about__advantage-title,
    .page-about__commitment-title {
        font-size: 1.5rem;
    }

    .page-about img { /* General image rule for mobile */
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important; /* Ensure minimum size for all images */
        min-height: 200px !important;
        box-sizing: border-box !important;
    }

    /* Ensure all content containers are responsive */
    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__introduction-section,
    .page-about__history-section,
    .page-about__mission-vision-section,
    .page-about__values-section,
    .page-about__advantages-section,
    .page-about__commitment-section,
    .page-about__team-section,
    .page-about__social-responsibility-section,
    .page-about__contact-cta-section,
    .page-about__future-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}