/* Enhanced Awards/Achievements Section - Horizontal Layout */
.achievements {
    background: linear-gradient(135deg, #e6f3ff 0%, #f0f9ff 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.achievements::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23e0f2fe" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.achievements .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.achievements .section-header {
    text-align: center;
    margin-bottom: 80px;
}

.achievements .section-title {
    font-size: 3rem;
    color: #1e40af;
    margin-bottom: 1rem;
    font-weight: 700;
}

.achievements .section-divider {
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #1e40af, #3b82f6, #60a5fa);
    margin: 0 auto 1.5rem;
    border-radius: 2px;
}

.achievements .section-description {
    font-size: 1.3rem;
    color: #64748b;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Horizontal Achievements Layout */
.achievements-horizontal {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 20px 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.achievements-horizontal::-webkit-scrollbar {
    height: 8px;
}

.achievements-horizontal::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.achievements-horizontal::-webkit-scrollbar-thumb {
    background: #1e40af;
    border-radius: 4px;
}

/* Enhanced Achievement Cards */
.achievement-box {
    flex: 0 0 380px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(30, 64, 175, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: 1px solid #e2e8f0;
    position: relative;
}

.achievement-box:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 60px rgba(30, 64, 175, 0.15);
    border-color: #1e40af;
}

.achievement-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1e40af, #3b82f6);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.achievement-box:hover::before {
    transform: scaleX(1);
}

.achievement-box-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.achievement-box-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.achievement-box:hover .achievement-box-image img {
    transform: scale(1.1);
}

.achievement-box-content {
    padding: 2rem;
    position: relative;
}

.achievement-box-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.achievement-box-subtitle {
    font-size: 1rem;
    color: #64748b;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.achievement-box-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #6b7280;
}

.achievement-box-date {
    background: #eff6ff;
    color: #1e40af;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
}

/* Horizontal Navigation Arrows */
.achievements-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0px;
    margin-top: 3rem;
}

.nav-arrow {
    background: white;
    border: 2px solid #1e40af;
    color: #1e40af;
    width: 0px;
    height: 0px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.1);
}

.nav-arrow:hover {
    background: #1e40af;
    color: white;
    transform: scale(1.1);
}

.nav-arrow svg {
    width: 0px;
    height: 0px;
}

/* Responsive Horizontal Layout */
@media (max-width: 768px) {
    .achievements-horizontal {
        gap: 20px;
    }
    
    .achievement-box {
        flex: 0 0 300px;
    }
    
    .achievement-box-title {
        font-size: 1.2rem;
    }
    
    .nav-arrow {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .achievement-box {
        flex: 0 0 280px;
    }
    
    .achievements-horizontal {
        padding: 10px 0;
    }
}

/* Hover Effects for Achievement Boxes */
.achievement-box:hover .achievement-box-title {
    color: #3b82f6;
}

.achievement-box:hover .achievement-box-subtitle {
    color: #475569;
}

/* Active State for Navigation */
.nav-arrow:active {
    transform: scale(0.95);
}

/* Focus Styles for Accessibility */
.achievement-box:focus,
.nav-arrow:focus {
    outline: 2px solid #1e40af;
    outline-offset: 2px;
}

/* Smooth Scrolling for Horizontal Layout */
.achievements-horizontal {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Loading State */
.achievement-box.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Success Animation */
.achievement-box.success {
    animation: pulse 0.6s ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Achievement Detail Modal Styles */
.achievement-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    overflow-y: auto;
}

.achievement-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.achievement-modal-content {
    background: white;
    border-radius: 20px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.achievement-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #1e40af;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.achievement-modal-close:hover {
    background: #3b82f6;
    transform: scale(1.1);
}

.achievement-modal-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.achievement-modal-body {
    padding: 2rem;
}

.achievement-modal-title {
    font-size: 2rem;
    color: #1e40af;
    margin-bottom: 1rem;
}

.achievement-modal-subtitle {
    font-size: 1.2rem;
    color: #64748b;
    margin-bottom: 1.5rem;
}

.achievement-modal-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #374151;
    margin-bottom: 2rem;
}

.achievement-modal-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.achievement-modal-stat {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
}

.achievement-modal-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e40af;
}

.achievement-modal-stat-label {
    font-size: 0.9rem;
    color: #64748b;
}
