/* Achievement Section CSS - Final Fix */

.achievement-wrapper {
    position: relative;
    margin: 40px 0;
    display: block;
    width: 100%;
    clear: both;
    overflow: visible;
}

/* Header Section */
.achievement-header {
    background-color: #f9faff;
    padding: 50px 0 30px;
    position: relative;
    display: block;
    width: 100%;
    clear: both;
    margin-bottom: 25px; /* Added line space after header div */
}

.achievement-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('http://localhost/yati-express/assets/img/bg/pattern-bg.png');
    opacity: 0.05;
    z-index: 0;
}

/* Content Section */
.achievement-content {
    background-color: #f9faff;
    padding: 20px 0 60px;
    position: relative;
    display: block;
    width: 100%;
    clear: both;
}

/* Heading Styles */
.achievement-heading {
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
}

.section-subtitle {
    display: inline-block;
    background-color: rgba(65, 105, 225, 0.1);
    color: #4169e1;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 50px;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: #222;
    margin-bottom: 25px;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

.section-description {
    color: #666;
    font-size: 16px;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Achievement Stats */
.achievement-stats {
    position: relative;
    z-index: 1;
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
}

.achievement-stats > div {
    margin-bottom: 30px;
    display: flex;
}

.achievement-box {
    background-color: #fff;
    border-radius: 10px;
    padding: 40px 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.achievement-box::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, #4169e1, #73a5ff);
}

.achievement-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(65, 105, 225, 0.15);
}

/* Icon Styles */
.achievement-icon-wrapper {
    width: 80px;
    height: 80px;
    background-color: #f0f4ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: all 0.3s ease;
}

.achievement-icon {
    font-size: 32px;
    color: #4169e1;
    transition: all 0.3s ease;
}

.achievement-box:hover .achievement-icon-wrapper {
    background-color: #e0e9ff;
    transform: scale(1.1);
}

.achievement-box:hover .achievement-icon {
    color: #2a51c5;
}

/* Value and Label */
.achievement-value {
    font-size: 48px;
    font-weight: 700;
    color: #222;
    margin-bottom: 15px;
    line-height: 1;
    width: 100%;
}

.achievement-label {
    font-size: 18px;
    color: #666;
    font-weight: 500;
    width: 100%;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .achievement-header {
        padding: 40px 0 20px;
    }
    
    .achievement-content {
        padding: 15px 0 40px;
    }
    
    .section-title {
        font-size: 30px;
    }
    
    .achievement-value {
        font-size: 42px;
    }
}

@media (max-width: 767px) {
    .achievement-wrapper {
        margin: 30px 0;
    }
    
    .achievement-header {
        padding: 35px 0 15px;
    }
    
    .achievement-content {
        padding: 10px 0 35px;
    }
    
    .section-title {
        font-size: 26px;
        margin-bottom: 20px;
    }
    
    .achievement-box {
        padding: 30px 15px;
    }
    
    .achievement-icon-wrapper {
        width: 70px;
        height: 70px;
        margin-bottom: 20px;
    }
    
    .achievement-icon {
        font-size: 28px;
    }
    
    .achievement-value {
        font-size: 36px;
        margin-bottom: 10px;
    }
    
    .achievement-label {
        font-size: 16px;
    }
}

@media (max-width: 575px) {
    .achievement-wrapper {
        margin: 25px 0;
    }
    
    .achievement-header {
        padding: 30px 0 10px;
    }
    
    .achievement-content {
        padding: 10px 0 30px;
    }
    
    .section-subtitle {
        font-size: 12px;
        padding: 6px 15px;
        margin-bottom: 15px;
    }
    
    .section-title {
        font-size: 22px;
        margin-bottom: 15px;
    }
    
    .section-description {
        font-size: 14px;
    }
    
    .achievement-box {
        padding: 25px 15px;
    }
    
    .achievement-icon-wrapper {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
    }
    
    .achievement-icon {
        font-size: 24px;
    }
    
    .achievement-value {
        font-size: 32px;
        margin-bottom: 8px;
    }
    
    .achievement-label {
        font-size: 15px;
    }
}
