/* style/about.css */

/* Base Styles & Typography */
.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 handled by shared.css */
}

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

.page-about__section {
    padding: 80px 0;
    position: relative;
}

.page-about__heading {
    font-size: 2.8em;
    color: #ffffff;
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.2;
}

.page-about__sub-heading {
    font-size: 1.8em;
    color: #017439;
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-about__paragraph,
.page-about__card-text,
.page-about__feature-text,
.page-about__text,
.page-about__list-item {
    font-size: 1.1em;
    color: #f0f0f0;
    margin-bottom: 15px;
}

.page-about__list {
    list-style: disc inside;
    padding-left: 20px;
    margin-bottom: 20px;
}

.page-about__list-item {
    margin-bottom: 8px;
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    width: 100%;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    box-sizing: border-box;
}

.page-about__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.page-about__hero-content {
    position: relative;
    z-index: 2;
    color: #ffffff;
    max-width: 900px;
}

.page-about__hero-title {
    font-size: 3.8em;
    margin-bottom: 20px;
    line-height: 1.1;
    color: #ffffff;
}

.page-about__hero-description {
    font-size: 1.4em;
    margin-bottom: 40px;
    opacity: 0.9;
}

.page-about__hero-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: bold;
    transition: all 0.3s ease;
    white-space: nowrap;
    cursor: pointer;
}

.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: #e00b0b;
    border-color: #e00b0b;
}

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

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

/* Section Specific Styles */
.page-about__intro-section,
.page-about__tech-section,
.page-about__future-section {
    background-color: #1a1a1a; /* Lighter dark background for contrast */
    color: #f0f0f0;
}

.page-about__intro-section .page-about__heading,
.page-about__tech-section .page-about__heading,
.page-about__future-section .page-about__heading {
    color: #ffffff;
}

.page-about__why-choose-us,
.page-about__social-responsibility,
.page-about__cta-final {
    background-color: #0a0a0a;
    color: #ffffff;
}

.page-about__why-choose-us .page-about__heading,
.page-about__social-responsibility .page-about__heading,
.page-about__cta-final .page-about__heading {
    color: #ffffff;
}

.page-about__grid {
    display: grid;
    gap: 30px;
    margin-top: 40px;
}

.page-about__grid--2-cols {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.page-about__grid--3-cols {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.page-about__card {
    background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white for dark background */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-about__dark-card {
    background-color: rgba(1, 116, 57, 0.2); /* Brand color with transparency */
    border: 1px solid #017439;
}

.page-about__card-title {
    font-size: 1.5em;
    color: #017439;
    margin-bottom: 15px;
}

.page-about__feature-card {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-about__feature-image {
    width: 100%;
    height: auto;
    max-width: 400px; /* Adjust max-width for feature images */
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
}

.page-about__feature-title {
    font-size: 1.6em;
    color: #017439;
    margin-bottom: 10px;
}

.page-about__cta-buttons--center {
    margin-top: 50px;
    text-align: center;
}

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

.page-about__content-flex:nth-child(even) {
    flex-direction: row-reverse;
}

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

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

.page-about__image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    object-fit: cover;
}

.page-about__cta-final {
    text-align: center;
    padding: 100px 0;
}

.page-about__cta-final .page-about__cta-buttons {
    margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__hero-title {
        font-size: 3em;
    }
    .page-about__hero-description {
        font-size: 1.2em;
    }
    .page-about__heading {
        font-size: 2.2em;
    }
    .page-about__sub-heading {
        font-size: 1.6em;
    }
    .page-about__content-flex {
        flex-direction: column;
        text-align: center;
    }
    .page-about__content-flex:nth-child(even) {
        flex-direction: column;
    }
    .page-about__image-wrapper {
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .page-about__hero-section {
        min-height: 450px;
    }
    .page-about__hero-title {
        font-size: 2.2em;
    }
    .page-about__hero-description {
        font-size: 1em;
    }
    .page-about__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-about__btn-primary,
    .page-about__btn-secondary {
        width: 100%;
        max-width: 300px; /* Limit button width on mobile */
        margin: 0 auto;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-about__section {
        padding: 50px 0;
    }
    .page-about__heading {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-about__paragraph,
    .page-about__card-text,
    .page-about__feature-text,
    .page-about__text,
    .page-about__list-item {
        font-size: 1em;
    }
    .page-about__grid {
        grid-template-columns: 1fr;
    }
    .page-about__feature-card {
        padding: 20px;
    }
    .page-about__card-title {
        font-size: 1.3em;
    }

    /* Mobile Image & Video Responsiveness */
    .page-about img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__image-wrapper,
    .page-about__content-flex {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-about__hero-section {
        padding-top: var(--header-offset, 120px) !important; 
    }
    .page-about__cta-buttons {
        flex-direction: column !important;
        gap: 10px !important;
    }
}

@media (max-width: 480px) {
    .page-about__hero-title {
        font-size: 1.8em;
    }
    .page-about__heading {
        font-size: 1.5em;
    }
    .page-about__btn-primary,
    .page-about__btn-secondary {
        padding: 12px 20px;
        font-size: 1em;
    }
}