.wrapper {
    max-width: 1200px;
    width: 100%;
}

.about-main-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
}
.hero {
    width: 300px;   
    grid-column: span 4;
    display: flex;
    flex-direction: column;
    justify-content: center;
    grid-area: hero;
    grid-row: span 2;
}

.about-card-1, .about-card-2 {
    grid-column: span 4;
}

.about-card-3, .about-card-4, .about-card-5 {
    grid-column: span 4;
}

.subtitle {
     color: var(--background-linear-gradient); 
     font-weight: bold; 
     font-size: 0.8rem; 
     margin-bottom: 10px; }
.hero h1 { 
    font-size: 2.2rem; 
    color: #2c3e50;
     margin-bottom: 25px; 
     line-height: 1.2; 
    }
.btn {
    background: var(--background-linear-gradient);
    text-decoration: none; 
    border-radius: 5px; 
    width: fit-content;
    padding: 10px 12px;
    font-weight: bold;
    color: #ffff; 
    font-size: 0.8rem;
    border: none;
}
.about-card {
    width: 300px;
    background: white;
    padding: 43px 35px;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 10px 25px rgba(0,0,0,0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}
.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.about-card-number {
    position: absolute;
    top: 5px; right: 15px;
    font-size: 3.5rem; font-weight: 900;
    color: #f1f4f8; z-index: 0;
}

.icon-box {
    width: 55px; height: 55px;
    background: var(--background-linear-gradient); 
    border-radius: 50%;
    display: flex;
    align-items: center; 
    justify-content: center;
    color: white; 
    font-size: 1.4rem; 
    margin-bottom: 15px;
    position: relative; 
    z-index: 2;
}


.icon-box::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background-color: rgba(121, 134, 203, 0.3); 
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(1);
    z-index: -1;
    transition: all 0.4s ease-out;
    opacity: 0;
}

.about-card:hover .icon-box::before {
    animation: pulseEffect 1s infinite;
}

@keyframes pulseEffect {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.8); 
        opacity: 0;
    }
}


.about-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.about-card h3 { color: #2c3e50; margin-bottom: 12px; font-size: 1.2rem; position: relative; z-index: 1;}
.about-card p { color: #7f8c8d; font-size: 0.9rem; line-height: 1.5; position: relative; z-index: 1;}

/* --- RESPONSIVENESS --- */

@media (max-width: 992px) {
    .hero { grid-column: span 12; text-align: center; align-items: center; margin-bottom: 20px; }
    .about-card-1, .about-card-2, .about-card-3, .about-card-4, .about-card-5 {
        grid-column: span 6; 
    }
}
@media (max-width: 905px) {
        .about-card-1, .about-card-2, .about-card-3, .about-card-4, .about-card-5 {
            width: 100%;
        }
                .hero {
                     width: 100%;
         text-align: start; 
         align-items: start; 
    }
}

@media (max-width: 600px) {
    .about-card-1, .about-card-2, .about-card-3, .about-card-4, .about-card-5 {
        grid-column: span 12;
    }
    .hero h1 { font-size: 1.8rem; }
}