/* style/about.css */

/* Body background is var(--secondary-color), which is #FFFFFF. So text should be dark. */
.page-about {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: #ffffff; /* Explicitly setting for clarity, though body handles it */
}

.page-about__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, header offset handled by body */
    background-color: #26A9E0;
    color: #ffffff;
    text-align: center;
}

.page-about__hero-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin-bottom: 30px;
    border-radius: 8px;
    object-fit: cover;
    width: 100%;
    max-height: 675px; /* Limit height for hero image */
}

.page-about__hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.page-about__main-title {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    color: #ffffff;
    font-size: clamp(2.2rem, 4vw, 3.2rem); /* Using clamp for responsive H1 font size */
}

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

.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
}

.page-about__btn-primary {
    background-color: #EA7C07; /* Login color */
    color: #ffffff;
    border: 2px solid #EA7C07;
    margin-right: 15px;
}

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

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

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

.page-about__mission-section,
.page-about__commitment-section {
    padding: 80px 20px;
    background-color: #ffffff;
    color: #333333;
    text-align: center;
}

.page-about__why-choose-us {
    padding: 80px 20px;
    background-color: #26A9E0;
    color: #ffffff;
    text-align: center;
}

.page-about__dark-section {
    background-color: #26A9E0;
    color: #ffffff;
}

.page-about__light-bg {
    background-color: #ffffff;
    color: #333333;
}

.page-about__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-about__section-title {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    margin-bottom: 40px;
    font-weight: 600;
    color: inherit; /* Inherit from section */
}

.page-about__paragraph {
    font-size: 1.05rem;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.page-about__paragraph a {
    color: #26A9E0;
    text-decoration: underline;
}

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

.page-about__image-content {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    object-fit: cover;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

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

.page-about__feature-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-about__feature-icon {
    width: 100%;
    max-width: 400px; /* Recommended size for feature icons */
    height: auto;
    display: block;
    margin: 0 auto 20px auto;
    border-radius: 8px;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

.page-about__feature-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #ffffff;
}

.page-about__feature-description {
    font-size: 1rem;
    color: #f0f0f0;
}

.page-about__cta-section {
    padding: 80px 20px;
    text-align: center;
    background-color: #26A9E0;
    color: #ffffff;
}

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

.page-about__cta-buttons {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__hero-section {
        padding: 40px 15px;
    }
    .page-about__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }
    .page-about__hero-description {
        font-size: 1rem;
    }
    .page-about__mission-section,
    .page-about__why-choose-us,
    .page-about__commitment-section,
    .page-about__cta-section {
        padding: 60px 15px;
    }
    .page-about__section-title {
        font-size: clamp(1.6rem, 3.5vw, 2.5rem);
    }
    .page-about__paragraph {
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    .page-about {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }
    .page-about__hero-section,
    .page-about__mission-section,
    .page-about__why-choose-us,
    .page-about__commitment-section,
    .page-about__cta-section {
        padding-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    .page-about__hero-section {
        padding-top: 10px !important;
    }
    .page-about__hero-content {
        padding: 0 10px;
    }
    .page-about__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }
    .page-about__hero-description {
        font-size: 0.95rem;
    }
    .page-about__features-grid {
        grid-template-columns: 1fr;
    }
    .page-about__btn-primary,
    .page-about__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        margin-right: 0 !important;
        margin-bottom: 15px;
        font-size: 1rem;
    }
    .page-about__cta-buttons {
        flex-direction: column;
        align-items: center;
        padding-left: 0;
        padding-right: 0;
    }
    .page-about__content-area {
        padding-left: 0;
        padding-right: 0;
    }
}

@media (max-width: 480px) {
    .page-about__main-title {
        font-size: clamp(1.6rem, 7vw, 2.2rem);
    }
    .page-about__section-title {
        font-size: clamp(1.4rem, 5vw, 2rem);
    }
    .page-about__paragraph {
        font-size: 0.9rem;
    }
    .page-about__feature-title {
        font-size: 1.3rem;
    }
    .page-about__feature-description {
        font-size: 0.9rem;
    }
}