/* ===============================================
   About Section - Professional Design
   =============================================== */

.about {
    padding: 80px 0;
    background-color: #f9f9f9;
}

/* --- Premium Card Design --- */
.mission-card,
.vision-card {
    background: white;
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.03);
    text-align: center;
    z-index: 1;
}

/* Gradient Top Bar Effect on Hover */
.mission-card::after,
.vision-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, #6a1b9a, #e91e63, #0d47a1, #1b5e20);
    background-size: 300% 100%;
    animation: gradientAnimation 4s ease infinite;
    transform: scaleX(0);
    /* Hidden by default */
    transform-origin: left;
    transition: transform 0.4s ease;
}

.mission-card:hover::after,
.vision-card:hover::after {
    transform: scaleX(1);
    /* Reveal on hover */
}

.mission-card:hover,
.vision-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.about .icon-box {
    width: 90px;
    height: 90px;
    margin: 0 auto 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    background: rgba(249, 249, 249, 1);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.02);
    transition: all 0.4s ease;
}

/* Icons with Gradient Text */
.mission-card .icon-box i {
    background: linear-gradient(135deg, #e91e63, #6a1b9a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(233, 30, 99, 0.1));
}

.vision-card .icon-box i {
    background: linear-gradient(135deg, #2196f3, #4caf50);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(33, 150, 243, 0.1));
}

/* Specific Gradient Icons */
.mission-card .icon-box,
.vision-card .icon-box {
    background: linear-gradient(135deg, #FFC107 0%, #FF8F00 100%);
    /* Vivid Gold/Amber Gradient */
    color: white !important;
    /* Force icon white */
    box-shadow: 0 10px 25px rgba(255, 143, 0, 0.4);
    /* Colored shadow for depth */
}

.mission-card .icon-box i,
.vision-card .icon-box i {
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: white !important;
    color: white !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.mission-card:hover .icon-box {
    transform: scale(1.1);
    background: white;
    box-shadow: 0 10px 30px rgba(233, 30, 99, 0.15);
}

.vision-card:hover .icon-box {
    transform: scale(1.1);
    background: white;
    box-shadow: 0 10px 30px rgba(33, 150, 243, 0.15);
}

.about h3 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 20px;
    color: #1a1a1a;
    letter-spacing: -0.5px;
}

.about p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 0;
    font-size: 16px;
    font-weight: 400;
}

/* --- Gradient Title Section (Preserved) --- */
.about .section-title.custom-gradient-title {
    background: linear-gradient(90deg,
            #6a1b9a 0%,
            /* Dark Purple */
            #ab47bc 14%,
            /* Light Purple */
            #e91e63 28%,
            /* Pink */
            #0d47a1 42%,
            /* Dark Blue */
            #2196f3 57%,
            /* Light Blue */
            #1b5e20 71%,
            /* Dark Green */
            #4caf50 85%,
            /* Light Green */
            #6a1b9a 100%
            /* Loop back to Dark Purple */
        );
    background-size: 200% auto;
    animation: gradientAnimation 5s ease infinite;
    /* border-radius: 8px; REMOVED */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 100vw;
    /* Full viewport width */
    max-width: 100vw;
    /* Ensure it takes full width */
    margin-left: calc(-50vw + 50%);
    /* Center full-width element */
    margin-right: calc(-50vw + 50%);
    margin-bottom: 50px;
    margin-top: -80px;
    /* Counteract section padding to remove white space at top */
    padding: 15px 0;
    /* Vertical padding only */
    text-align: center;
}

.about .section-title.custom-gradient-title h2 {
    color: white;
    font-size: 36px;
    margin-bottom: 0;
    padding-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    display: inline-block;
    /* Helps with centering */
}

/* Remove the underline from the previous style for this specific title */
.about .section-title.custom-gradient-title h2::after {
    display: none;
}

@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@media (max-width: 768px) {

    .mission-card,
    .vision-card {
        padding: 30px 20px;
    }

    .about .section-title.custom-gradient-title {
        padding: 5px 15px;
    }

    .about .section-title.custom-gradient-title h2 {
        font-size: 24px;
    }
}