
/* Awards Gallery Styles */
.awards-gallery {
    
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.awards-hero {
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.awards-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    
    opacity: 1.1;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.1;
    
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    
    margin-bottom: 2rem;
    line-height: 1.4;
}

.stats-container {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 900;
    display: block;
    line-height: 1;
    
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-trophy {
    position: absolute;
    color: rgba(255, 255, 255, 0.1);
    font-size: 2rem;
    animation: float 6s ease-in-out infinite;
}

/*
.floating-trophy:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
.floating-trophy:nth-child(2) { top: 20%; right: 15%; animation-delay: 2s; }
.floating-trophy:nth-child(3) { bottom: 20%; left: 20%; animation-delay: 4s; }
.floating-trophy:nth-child(4) { bottom: 30%; right: 10%; animation-delay: 1s; }

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}
*/

/* Gallery Section */
.gallery-section {
    background: #f8f9fa;
    padding: 80px 0;
    position: relative;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 24px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 50px;
    color: #6c757d;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.filter-btn:hover, .filter-btn.active {
    background: #667eea;
    border-color: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

/* Awards Grid */
.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.award-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    
    position: relative;
}

/*
.award-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}
*/

.award-image {
    width: 100%;
    height: 350px; /* Adjusted for 540x590 images */
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, #ebe5e5, #fff);
}

.award-image img {
    width: auto;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
    z-index: 2;
}

.award-card:hover .award-image img {
    transform: scale(1.05);
}

.award-year-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #232323;
    padding: 8px 16px;
    font-weight: 700;
    font-size: 1.9rem;
    backdrop-filter: blur(10px);
    z-index: 1;
}

.award-content {
    padding: 2rem;
}

.award-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.award-organization {
    color: #667eea;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.award-description {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.award-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.award-category {
    background: #f8f9fa;
    color: #495057;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.award-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f59e0b;
    font-size: 1.2rem;
}

/* Timeline View */
.timeline-view {
    display: none;
    padding: 2rem 0;
}

.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, #667eea, #764ba2);
    transform: translateX(-50%);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateY(50px);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: calc(50% + 2rem);
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: calc(50% + 2rem);
    text-align: left;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    top: 20px;
    width: 20px;
    height: 20px;
    background: #667eea;
    border: 4px solid white;
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.timeline-year {
    position: absolute;
    left: 50%;
    top: -40px;
    background: white;
    color: #00375f;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    transform: translateX(-50%);
    z-index: 3;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.timeline-awards {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.timeline-award {
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
}

.timeline-award:last-child {
    border-bottom: none;
}

.timeline-award-title {
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.timeline-award-org {
    color: #00375f;
    font-size: 0.9rem;
    font-weight: 400;
}

/* View Toggle */
.view-toggle {
    display: flex;
     
    gap: 1rem;
    margin-bottom: 3rem;
}

.toggle-btn {
    padding: 12px 24px;
    background: white;
    border: 1px solid #e9ecef;
    margin:50px 0;
    color: #6c757d;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: inherit;
}

.toggle-btn:hover, .toggle-btn.active {
    background: transparent;
    border-color: #000;
    color: #232323;
}

/* Responsive Design */
@media (max-width: 768px) {
    .awards-hero {
        padding: 80px 0 60px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .stats-container {
        gap: 2rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .awards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .award-image {
        height: 300px;
    }
    
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-right: 2rem;
        margin-left: 2rem;
        text-align: left;
    }
    
    .timeline-line {
        left: 2rem;
    }
    
    .timeline-marker,
    .timeline-year {
        left: 2rem;
    }
    
    .filter-tabs {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .modal-header {
        height: 250px;
    }
}

/* Arabic RTL Support */
.ar {
    direction: rtl;
    text-align: right;
}

.ar .timeline-item:nth-child(odd) .timeline-content {
    margin-left: calc(50% + 2rem);
    margin-right: 0;
    text-align: left;
}

.ar .timeline-item:nth-child(even) .timeline-content {
    margin-right: calc(50% + 2rem);
    margin-left: 0;
    text-align: right;
}

@media (max-width: 768px) {
    .ar .timeline-item:nth-child(odd) .timeline-content,
    .ar .timeline-item:nth-child(even) .timeline-content {
        margin-left: 2rem;
        margin-right: 2rem;
        text-align: right;
    }
}

/* Loading Animation */
.loading-spinner {
    display: none;
    text-align: center;
    padding: 3rem;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #6c757d;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}
