/* about.css */

.about-us-section {
    padding: 20px 20px; /* Reduced top padding */
    background-color: transparent; /* Change to transparent to overlap background */
    text-align: center;
    position: relative; /* Set relative position for proper z-index stacking */
    z-index: 1; /* Ensure this section is above the background */
}

.about-us-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.about-us-text {
    flex: 1 1 50%;
    padding: 20px;
    text-align: right; /* Right aligned text */
    color: #ffffff; /* Text color to contrast the dark background */
}

.about-us-cards {
    display: flex;
    flex: 1 1 50%;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    padding: 20px;
}

.about-us-card, .about-us-card2 {
    background: linear-gradient(145deg, rgba(86,0,139,1) 0%, rgba(253,29,29,1) 100%);
    color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    flex: 0 0 calc(50% - 10px); /* Adjusted width */
    max-width: calc(50% - 10px); /* Adjusted width */
    text-align: left;
    position: relative;
    margin-bottom: 20px; /* Ensure equal margin between all cards */
}

.about-us-card:nth-child(1), .about-us-card:nth-child(3) {
    top: -20px; /* Lift the left cards slightly */
}

.about-us-icon {
    font-size: 2rem;
    margin-bottom: 20px;
}

.about-us-header {
    background-color: #56008b;
    color: #ffffff;
    padding: 5px 15px;
    border-radius: 20px;
    display: inline-block;
    font-size: 1.2rem;
}

.about-us-text h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-top: 20px;
}

.about-us-text p {
    font-size: 1rem;
    margin-top: 10px;
    line-height: 1.5;
}

.about-us-card h3 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.about-us-card p {
    font-size: 1rem;
    line-height: 1.5;
}

/* Mobile View Adjustments */
@media screen and (max-width: 767px) {
    .about-us-container {
        flex-direction: column;
        align-items: center;
    }
    
    .about-us-text {
        flex: 1 1 100%;
        text-align: center; /* Center aligned text for mobile */
        margin-bottom: 20px; /* Add bottom margin for text on mobile */
    }
    
    .about-us-cards {
        flex: 1 1 100%;
    }
    
    .about-us-card {
        flex: 0 0 100%;
        max-width: 100%;
        top: 0; /* Reset top position for mobile view */
        margin-bottom: 10px; /* Add space between cards for mobile view */
    }

    .about-us-card:last-child {
        margin-bottom: 0; /* Remove bottom margin for the last card */
    }

    .about-us-card2 {
        flex: 0 0 100%;
        max-width: 100%;
        top: 0; /* Reset top position for mobile view */
        margin-bottom: 50px; /* Add space between cards for mobile view */
    }
}
