/* ========================================
   OPTIMIZED FILTER SECTION
======================================== */
.optimized-filter-section {
    padding: 3rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    z-index: 10;
    margin-top: 40px;
}

.filter-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(201, 48, 44, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-container:hover {
    box-shadow: 
        0 15px 50px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(201, 48, 44, 0.12);
}

/* Search Bar */
.filter-search-wrapper {
    margin-bottom: 2rem;
}

.search-input-group {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search-icon {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 1.125rem;
    pointer-events: none;
    transition: all 0.3s ease;
}

.modern-search-input {
    width: 100%;
    padding: 1.125rem 3.5rem;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    color: #212529;
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 16px;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-search-input:focus {
    background: #ffffff;
    border-color: #c9302c;
    box-shadow: 0 0 0 4px rgba(201, 48, 44, 0.12);
    transform: translateY(-2px);
}

.modern-search-input:focus ~ .search-icon {
    color: #c9302c;
    transform: translateY(-50%) scale(1.1);
}

.search-clear-btn {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(201, 48, 44, 0.1);
    border: none;
    border-radius: 50%;
    color: #c9302c;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: none;
}

.search-clear-btn:hover {
    background: #c9302c;
    color: white;
    transform: translateY(-50%) scale(1.15) rotate(90deg);
}

.search-clear-btn.active {
    display: flex;
}

/* Filter Controls */
.filters-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    align-items: end;
}

.filter-select-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.select-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #495057;
    letter-spacing: 0.3px;
}

.select-label i {
    color: #c9302c;
    font-size: 0.875rem;
}

.modern-select {
    width: 100%;
    padding: 0.875rem 1.25rem;
    font-size: 0.9375rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    color: #212529;
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 14px;
    outline: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235a6c7d' d='M1.41 0L6 4.59 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.25rem center;
    padding-right: 3rem;
}

.modern-select:hover {
    background-color: #ffffff;
    border-color: rgba(201, 48, 44, 0.2);
    transform: translateY(-2px);
}

.modern-select:focus {
    background-color: #ffffff;
    border-color: #c9302c;
    box-shadow: 0 0 0 4px rgba(201, 48, 44, 0.12);
}

/* Reset Button */
.reset-filters-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    padding: 0.875rem 1.75rem;
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    color: #c9302c;
    background: rgba(201, 48, 44, 0.1);
    border: 2px solid transparent;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.reset-filters-btn:hover {
    background: #c9302c;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(201, 48, 44, 0.35);
}

.reset-filters-btn:hover i {
    transform: rotate(-360deg);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   GRID & CARDS
======================================== */
.hof-container {
    padding: 20px 0 80px;
    background: #ffffff;
}

/* Result Info & Toggle */
.results-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.25rem 1.75rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.results-text {
    font-size: 1rem;
    font-weight: 500;
    color: #495057;
}

.view-toggle {
    display: flex;
    gap: 0.5rem;
    background: #ffffff;
    padding: 0.375rem;
    border-radius: 14px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.view-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 11px;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.125rem;
}

.view-btn:hover {
    background: rgba(201, 48, 44, 0.1);
    color: #c9302c;
    transform: scale(1.05);
}

.view-btn.active {
    background: #c9302c;
    color: white;
    box-shadow: 0 4px 12px rgba(201, 48, 44, 0.3);
}

/* Achievement Cards - ENHANCED VERSION */
.hof-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 2rem;
    padding: 0;
}

.achievement-card {
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    position: relative;
}

.achievement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #c9302c 0%, #d4af37 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.achievement-card:hover::before {
    transform: scaleX(1);
}

.achievement-card:hover {
    transform: translateY(-10px);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(201, 48, 44, 0.1);
}

.card-image-wrapper {
    position: relative;
    height: 280px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.achievement-card:hover .card-image {
    transform: scale(1.1);
}

.trophy-badge {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    background: linear-gradient(135deg, #c9302c 0%, #a02622 100%);
    color: white;
    padding: 0.625rem 1.125rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(201, 48, 44, 0.4);
    backdrop-filter: blur(10px);
}

.trophy-badge i {
    font-size: 1rem;
}

.category-tag {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: #c9302c;
    padding: 0.625rem 1.125rem;
    border-radius: 12px;
    font-size: 0.8125rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.card-content {
    padding: 2rem;
}

.student-name {
    font-size: 1.375rem;
    font-weight: 700;
    color: #212529;
    margin: 0 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.student-name i {
    color: #c9302c;
    font-size: 1.25rem;
}

.student-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 2px solid #f8f9fa;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6c757d;
    font-weight: 500;
}

.info-item i {
    color: #c9302c;
    font-size: 0.875rem;
}

/* CONTACT INFO SECTION - NEW */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1.25rem 0;
    padding: 1.25rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    border-left: 4px solid #c9302c;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: #495057;
    transition: all 0.3s ease;
}

.contact-item i {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    color: #c9302c;
    border-radius: 10px;
    font-size: 0.875rem;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.contact-item a {
    color: #495057;
    text-decoration: none;
    transition: color 0.3s ease;
    word-break: break-all;
}

.contact-item a:hover {
    color: #c9302c;
}

.achievement-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #212529;
    margin: 0 0 1rem;
    line-height: 1.5;
}

.achievement-desc {
    color: #6c757d;
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.achievement-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    margin-bottom: 1.5rem;
}

.meta-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #495057;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.meta-badge:hover {
    background: rgba(201, 48, 44, 0.1);
    color: #c9302c;
    transform: translateY(-2px);
}

.meta-badge i {
    font-size: 0.875rem;
    color: #c9302c;
}

.card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    background: white;
    color: #495057;
}

.action-btn:hover {
    border-color: #c9302c;
    color: #c9302c;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(201, 48, 44, 0.2);
}

.action-btn.primary {
    background: linear-gradient(135deg, #c9302c 0%, #a02622 100%);
    color: white;
    border-color: transparent;
}

.action-btn.primary:hover {
    background: linear-gradient(135deg, #a02622 0%, #8a1f1c 100%);
    box-shadow: 0 8px 20px rgba(201, 48, 44, 0.35);
    transform: translateY(-3px);
}

/* List View */
.hof-grid.list-view {
    grid-template-columns: 1fr;
}

.hof-grid.list-view .achievement-card {
    display: grid;
    grid-template-columns: 280px 1fr;
}

.hof-grid.list-view .card-image-wrapper {
    height: auto;
    min-height: 100%;
}

.hof-grid.list-view .card-content {
    padding: 2rem;
}

/* No Results */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    background: #f8f9fa;
    border-radius: 20px;
}

.no-results i {
    font-size: 4rem;
    color: #c9302c;
    margin-bottom: 1.5rem;
    opacity: 0.7;
}

.no-results h3 {
    font-size: 1.5rem;
    color: #212529;
    margin-bottom: 0.75rem;
}

.no-results p {
    color: #6c757d;
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hof-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .filters-row {
        grid-template-columns: 1fr;
    }
    
    .results-info {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hof-grid.list-view .achievement-card {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        padding: 1rem;
    }
    
    .card-actions {
        grid-template-columns: 1fr;
    }
}