.achievement-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(1, 0, 1, 0.95);
    backdrop-filter: blur(5px);
    z-index: 1000;
    overflow-y: auto;
    animation: fadeIn 0.3s ease;
}

.achievement-modal-content {
    background-color: #010001;
    margin: 40px auto;
    padding: 0;
    border: 2px solid #EE2E31;
    width: 90%;
    max-width: 1500px;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(238, 46, 49, 0.3);
    animation: slideIn 0.4s ease;
}

.achievement-modal-header {
    background: linear-gradient(135deg, #EE2E31 0%, #C9232E 100%);
    padding: 15px 20px;
    border-radius: 6px 6px 0 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.close-achievement-modal {
    background: none;
    border: none;
    color: #C9E4CA;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s ease, color 0.2s ease;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-achievement-modal:hover {
    transform: rotate(90deg);
    color: #FFD700;
}

.achievement-modal-body {
    padding: 40px;
    color: #C9E4CA;
    font-family: 'Google Sans', sans-serif;
    line-height: 1.8;
}

.achievement-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    margin-bottom: 40px;
    padding: 30px;
    background: rgba(238, 46, 49, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(238, 46, 49, 0.2);
}


@keyframes wipeOut {
    0% {
        clip-path: polygon(0 0, 200% 0, 0 200%);
    }
    100% {
        clip-path: polygon(0 0, 0 0, 0 0);
    }
}

.achievement-modal.closing {
    animation: wipeOut 0.35s ease-in forwards;
}

.achievement-logo {
    height: 80px;
    width: auto;
    object-fit: contain;
    filter: brightness(0.9);
    transition: transform 0.3s ease, filter 0.3s ease;
}

.achievement-logo:hover {
    transform: scale(1.1);
    filter: brightness(1.1);
}

.achievement-modal-body h2 {
    color: #EE2E31;
    font-size: 48px;
    margin-bottom: 5px;
    font-weight: 600;
    text-align: center;
}

.achievement-subtitle {
    color: #FFD700;
    font-size: 30px;
    font-weight: 400;
    text-align: center;
    margin-bottom: 25px;
    font-style: italic;
}

.achievement-intro {
    font-size: 18px;
    margin-bottom: 30px;
    text-align: justify;
}

.achievement-section {
    margin: 20px 0;
    padding: 20px;
    background: rgba(201, 228, 202, 0.03);
    border-left: 3px solid #EE2E31;
    border-radius: 4px;
}

.achievement-section h3 {
    color: #EE2E31;
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 500;
}

.achievement-section p {
    margin-bottom: 15px;
    text-align: justify;
}

.achievement-content-wrapper {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
}

.achievement-main-content {
    display: flex;
    flex-direction: column;
}

.achievement-sidebar {
    display: flex;
    flex-direction: column;
}

.achievement-sidebar .achievement-section {
    margin: 0;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.sidebar-header h3 {
    margin: 0;
}

.first-letter {
    color: #EE2E31;
    font-size: 1.3em;
    font-weight: 600;
}

.achievement-image-container {
    margin: 20px 0;
    text-align: center;
}

.achievement-image {
    width: 100%;
    max-width: 700px;
    height: auto;
    border-radius: 8px;
    border: 2px solid #EE2E31;
    box-shadow: 0 4px 20px rgba(238, 46, 49, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.achievement-image:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 30px rgba(238, 46, 49, 0.4);
}

.image-caption {
    margin-top: 15px;
    font-size: 14px;
    color: #C9E4CA;
    font-style: italic;
    opacity: 0.9;
}

.achievement-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 0.5fr));
    gap: 30px;
}

.achievement-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(238, 46, 49, 0.3);
}

.external-link-btn {
    background: linear-gradient(135deg, #EE2E31 0%, #C9232E 100%);
    color: #C9E4CA;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    font-family: 'Google Sans', sans-serif;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(238, 46, 49, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
}

.external-link-btn--outline {
    background: transparent;
    border: 2px solid #EE2E31;
    padding: 8px 12px;
    font-size: 14px;
    box-shadow: none;
    width: fit-content;
    height: fit-content;
    gap: 6px;
    white-space: nowrap;
}

.external-link-btn--outline .arrow {
    font-size: 16px;
    margin-left: 2px;
}

.external-link-btn--outline:hover {
    background: rgba(238, 46, 49, 0.1);
    border-color: #FFD700;
    color: #FFD700;
}

.external-link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(238, 46, 49, 0.5);
    background: linear-gradient(135deg, #FF3E41 0%, #D9333E 100%);
}

.external-link-btn span {
    font-size: 20px;
}

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

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .achievement-modal-content {
        width: 95%;
        margin: 20px auto;
    }
    
    .achievement-modal-body {
        padding: 25px;
    }
    
    .achievement-logos {
        flex-direction: column;
        gap: 30px;
    }
    
    .achievement-logo {
        height: 60px;
    }
    
    .achievement-modal-body h2 {
        font-size: 24px;
    }
    
    .achievement-subtitle {
        font-size: 16px;
    }
    
    .achievement-content-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .achievement-gallery {
        grid-template-columns: 1fr;
    }
    
    .achievement-links {
        flex-direction: column;
    }
    
    .external-link-btn {
        width: 100%;
        justify-content: center;
    }
}
