
.achievement-card-link {
    text-decoration: none;
    display: block;
    height: 100%;
}

.achievement-card-modern {
    border: 1px solid #dbe5f7;
    border-radius: 18px;
    background: linear-gradient(165deg, #ffffff 0%, #f5f9ff 100%);
    box-shadow: 0 12px 28px rgba(17, 42, 79, 0.08);
    padding: 20px;
    height: 100%;
    transition: transform .25s ease, box-shadow .25s ease;
}

.achievement-card-modern:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 34px rgba(23, 60, 124, 0.15);
}

.achievement-icon-modern {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    background: linear-gradient(135deg, #1f4dbd 0%, #2d7ae2 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.achievement-card-modern h5 {
    color: #1c2f57;
    font-weight: 700;
    margin-bottom: 8px;
}

.achievement-card-modern p {
    color: #536891;
    margin: 0;
    line-height: 1.55;
}

.achievement-cover {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 14px;
}

.achievement-chip {
    display: inline-block;
    margin-bottom: 10px;
    padding: 3px 10px;
    border-radius: 999px;
    background: #e8f1ff;
    color: #1f4dbd;
    font-size: .8rem;
    font-weight: 600;
}

.achievement-year-title {
    text-align: center;
    color: #3e587c;
    font-weight: 700;
    letter-spacing: .5px;
    margin-bottom: 24px;
    font-size: 1rem;
    text-transform: uppercase;
}

.achievement-year-block {
    margin-bottom: 56px;
}

@media (max-width: 576px) {
    .achievement-year-block {
        margin-bottom: 46px;
    }
}

.achievement-detail-cover-wrap {
    border-radius: 16px;
    overflow: hidden;
}

.achievement-detail-cover {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
}

.achievement-content {
    border: 1px solid #e1e8f7;
    border-radius: 16px;
    background: #fff;
    padding: 20px;
    color: #3d4d71;
}

.achievement-file-card {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #dbe5f7;
    border-radius: 14px;
    background: #fff;
    padding: 14px;
    text-decoration: none;
}

.achievement-file-card .file-icon {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    background: #edf3ff;
    color: #1f4dbd;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.achievement-file-card h6 {
    margin: 0 0 2px;
    color: #23365f;
}

.achievement-file-card p {
    color: #63779d;
    font-size: .8rem;
}

/* ==================== Image Gallery Styles ==================== */

.achievement-images-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.achievement-image-wrapper {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.achievement-image-wrapper:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.achievement-image-link {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    text-decoration: none;
    overflow: hidden;
    cursor: pointer;
}

.achievement-gallery-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
    background: #f5f5f5;
}

.achievement-image-wrapper:hover .achievement-gallery-image {
    transform: scale(1.08);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(31, 77, 189, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.achievement-image-wrapper:hover .image-overlay {
    opacity: 1;
}

.image-overlay i {
    font-size: 2.5rem;
    color: #fff;
}

.image-caption {
    padding: 0.75rem 0.5rem;
    font-size: 0.95rem;
    color: #3d4d71;
    font-weight: 500;
    line-height: 1.4;
    word-break: break-word;
}

/* ==================== Lightbox Modal Styles ==================== */

#imageLightboxModal .modal-body {
    height: calc(100vh - 60px);
    overflow: hidden;
}

.lightbox-image {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.lightbox-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
}

.lightbox-nav-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    border-color: #fff;
    transform: translateY(-50%) scale(1.1);
}

.lightbox-nav-btn i {
    color: #fff;
}

.lightbox-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 500;
    z-index: 1000;
}

/* Responsive Image Gallery */
@media (max-width: 1200px) {
    .achievement-images-gallery {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .achievement-gallery-image {
        height: 280px;
    }
    
    .image-overlay i {
        font-size: 2rem;
    }
    
    .lightbox-nav-btn {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .achievement-images-gallery {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .achievement-gallery-image {
        height: 220px;
    }
    
    .image-overlay i {
        font-size: 1.8rem;
    }
    
    .lightbox-nav-btn {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
        left: 10px;
        right: 10px;
    }
    
    .lightbox-counter {
        font-size: 0.85rem;
        padding: 8px 16px;
    }
}

@media (max-width: 576px) {
    .achievement-images-gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 0.75rem;
    }
    
    .achievement-gallery-image {
        height: 180px;
    }
    
    .image-overlay i {
        font-size: 1.5rem;
    }
    
    .image-caption {
        font-size: 0.9rem;
        padding: 0.5rem 0.3rem;
    }
    
    .lightbox-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .lightbox-counter {
        font-size: 0.8rem;
        padding: 6px 12px;
        bottom: 20px;
    }
}
