/* ==========================================================================
   1. Global Container & Typography Resets
   ========================================================================== */
.about-parent {
    background-color: #fcfcfd;
    color: #0f172a;
    -webkit-font-smoothing: antialiased;
    width: 100%;
    overflow-x: hidden;
    padding-bottom: 80px;
}

/* ==========================================================================
   2. Top Section (Intro & 2 Images)
   ========================================================================== */
.about-top {
    max-width: 1200px;
    margin: 80px auto 40px auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
}

.about-top-text {
    width: 55%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#about-us-text p {
    color: #19478b; /* Rotary Blue */
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin: 0;
}

#about-top-title p {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    color: #0f172a;
    margin: 0 0 10px 0;
    letter-spacing: -0.03em;
}

#about-top-content p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #475569;
    margin: 0;
}

/* 2-Image Asymmetric Layout */
.about-top-images {
    width: 40%;
    display: flex;
    gap: 20px;
    align-items: center;
}

.about-top-image {
    width: 50%;
    aspect-ratio: 4 / 5;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    background-color: #f1f5f9;
}

/* Offsets the second image slightly lower for an elegant, dynamic look */
.about-top-image:nth-child(2) {
    transform: translateY(30px);
}

.about-top-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-top-image:hover img {
    transform: scale(1.08);
}

/* ==========================================================================
   3. Bottom Section (4 Image Gallery)
   ========================================================================== */
.about-bottom {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.about-bottom-images {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    width: 100%;
}

.about-bottom-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    background-color: #f1f5f9;
}

.about-bottom-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-bottom-image:hover img {
    transform: scale(1.08);
}

/* ==========================================================================
   4. Video Section Optimization
   ========================================================================== */
.video-wrapper {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
    width: 100%;
    aspect-ratio: 16 / 9; /* Automatically maintains perfect video proportions */
}

.video-wrapper iframe {
    width: 100%;
    height: 100%;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    background-color: #000;
}

/* ==========================================================================
   5. Data Section (Vision, Mission, Core Values)
   ========================================================================== */
.about-datas {
    max-width: 800px;
    margin: 80px auto 0 auto;
    padding: 0 20px;
}

.about-data {
    margin-top: 60px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
}

/* Selects the very first heading to remove its top margin */
.about-data:first-child {
    margin-top: 0; 
}

.about-data p {
    font-size: 2.25rem;
    font-weight: 800;
    color: #19478b; /* Rotary Blue */
    margin: 0;
    letter-spacing: -0.02em;
}

.about-data-content p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #475569;
    margin: 0;
}

#about-data-image {
    width: 100%;
    height: auto;
    border-radius: 24px;
    margin: 50px 0;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   6. Mobile Responsiveness
   ========================================================================== */
@media (max-width: 768px) {
    .about-top {
        flex-direction: column;
        margin-top: 40px;
        gap: 40px;
    }

    .about-top-text {
        width: 100%;
        text-align: center;
    }

    .about-top-images {
        width: 100%;
    }

    /* Remove the vertical offset on mobile so images sit flat side-by-side */
    .about-top-image:nth-child(2) {
        transform: translateY(0);
    }

    .about-bottom {
        margin: 40px auto;
    }

    .about-bottom-images {
        grid-template-columns: repeat(2, 1fr); /* 2x2 grid on mobile */
        gap: 16px;
    }

    .video-wrapper {
        margin: 40px auto;
    }

    .video-wrapper iframe {
        border-radius: 16px; /* Slightly smaller radius on mobile */
    }

    .about-datas {
        margin: 40px auto 0 auto;
        text-align: center;
    }

    .about-data p {
        font-size: 1.75rem;
    }

    .about-data-content p {
        font-size: 1.05rem;
    }

    #about-data-image {
        border-radius: 16px;
        margin: 30px 0;
    }
}