/* style/about.css */

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

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

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

.page-about__section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: #26A9E0; /* Brand color for titles */
    line-height: 1.2;
}

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

.page-about__sub-title {
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #26A9E0; /* Brand color for sub-titles */
}

.page-about__text-block p {
    margin-bottom: 15px;
}

/* --- Hero Section --- */
.page-about__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    padding-top: 10px; /* Small top padding */
    padding-bottom: 60px;
    box-sizing: border-box;
    overflow: hidden; /* Prevent content overflow */
}

.page-about__hero-image-wrapper {
    width: 100%;
    max-height: 500px; /* Limit height for hero image */
    overflow: hidden;
    margin-bottom: 30px;
}

.page-about__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-about__hero-content {
    max-width: 900px;
    text-align: center;
    padding: 30px;
    border-radius: 10px;
    background-color: rgba(38, 169, 224, 0.8); /* Semi-transparent brand color */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-about__main-title {
    font-size: clamp(32px, 5vw, 55px); /* Responsive H1 */
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-about__intro-description {
    font-size: clamp(16px, 2vw, 20px);
    margin-bottom: 30px;
    color: #f0f0f0;
}

/* --- Buttons --- */
.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    margin: 10px; /* Spacing between buttons */
}

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

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

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

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

/* --- Section Specific Styles --- */
.page-about__overview-section,
.page-about__security-section,
.page-about__community-partners-section {
    background-color: #1a1a1a; /* Dark background from body */
    color: #ffffff;
}

.page-about__content-wrapper {
    display: flex;
    gap: 40px;
    align-items: center;
}

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

.page-about__text-block {
    flex: 1;
}

.page-about__image-block {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-about__image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.page-about__highlights-section,
.page-about__customer-service-section,
.page-about__future-section {
    background-color: #26A9E0; /* Brand primary color */
    color: #ffffff;
}

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

.page-about__card {
    background-color: rgba(255, 255, 255, 0.15); /* Light transparent background for cards */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-about__card-title {
    font-size: clamp(20px, 2.5vw, 26px);
    font-weight: 600;
    margin-bottom: 15px;
    color: #ffffff;
}

.page-about__card-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 20px;
    margin-bottom: 15px;
}

.page-about__card--transparent {
    background-color: transparent;
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

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

.page-about__cta-block {
    text-align: center;
    margin-top: 50px;
    display: flex;
    flex-wrap: wrap; /* Allow buttons to wrap */
    justify-content: center;
    gap: 20px; /* Spacing between buttons */
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .page-about__content-wrapper {
        flex-direction: column;
    }
    .page-about__content-wrapper--reverse {
        flex-direction: column; /* Also stack in reverse */
    }
}

@media (max-width: 768px) {
    .page-about__section {
        padding: 40px 0;
    }

    .page-about__container {
        padding: 0 15px; /* Add horizontal padding to main container */
    }

    .page-about__hero-content {
        padding: 20px;
    }

    .page-about__main-title {
        font-size: clamp(28px, 8vw, 40px);
    }

    .page-about__intro-description {
        font-size: clamp(15px, 3vw, 18px);
    }

    .page-about__section-title {
        font-size: clamp(24px, 7vw, 36px);
        margin-bottom: 30px;
    }

    .page-about__sub-title {
        font-size: clamp(20px, 5vw, 26px);
        margin-top: 20px;
        margin-bottom: 10px;
    }

    .page-about__content-grid {
        grid-template-columns: 1fr;
    }

    .page-about__content-grid--two-col {
        grid-template-columns: 1fr;
    }

    /* Mobile image responsiveness */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    
    .page-about__hero-image-wrapper,
    .page-about__image-block {
        max-width: 100% !important;
        width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    /* Mobile button responsiveness */
    .page-about__btn-primary,
    .page-about__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin: 5px 0 !important; /* Adjust margins for stacked buttons */
    }
    
    .page-about__cta-block {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px !important;
        padding: 0 15px; /* Add horizontal padding to CTA block */
    }

    /* Ensure all sections and containers have max-width: 100% and padding */
    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__hero-section,
    .page-about__hero-content,
    .page-about__content-wrapper,
    .page-about__content-grid,
    .page-about__content-grid--two-col {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
    }
    
    .page-about__overview-section .page-about__container,
    .page-about__highlights-section .page-about__container,
    .page-about__security-section .page-about__container,
    .page-about__customer-service-section .page-about__container,
    .page-about__community-partners-section .page-about__container,
    .page-about__future-section .page-about__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    .page-about__hero-section {
        padding-top: 10px !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}