
        /* Mobile First CSS */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', 'Roboto', sans-serif;
        }
        
        body {
            background-color: #f8fafc;
            color: #334155;
            line-height: 1.6;
            overflow-x: hidden;
        }
        
        .container {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }
        
        /* Hero Section */
        .alumni-hero {
            background: linear-gradient(135deg, rgba(30, 58, 138, 0.9) 0%, rgba(37, 99, 235, 0.85) 100%), 
                        url('https://images.unsplash.com/photo-1553877522-43269d4ea984?ixlib=rb-1.2.1&auto=format&fit=crop&w=1600&q=80');
            background-size: cover;
            background-position: center;
            padding: 60px 20px;
            text-align: center;
            color: white;
            margin-bottom: 40px;
        }
        
        .alumni-hero h1 {
            font-size: 2.5rem;
            font-weight: 800;
            margin-bottom: 15px;
            line-height: 1.2;
        }
        
        .hero-subtitle {
            font-size: 1.2rem;
            max-width: 800px;
            margin: 0 auto 20px;
            opacity: 0.95;
            font-weight: 300;
        }
        
        .medal-count-badge {
            display: inline-block;
            background: linear-gradient(135deg, #f59e0b, #d97706);
            color: white;
            padding: 10px 30px;
            border-radius: 50px;
            font-weight: 700;
            font-size: 1.2rem;
            margin-top: 15px;
            box-shadow: 0 5px 15px rgba(245, 158, 11, 0.3);
        }
        
        /* Medal Stats Banner */
        .medal-stats {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 20px;
            margin: 40px 0;
            text-align: center;
        }
        
        .medal-stat-item {
            padding: 30px 20px;
            border-radius: 15px;
            color: white;
            font-weight: 700;
        }
        
        .medal-gold {
            background: linear-gradient(135deg, #FFD700, #FFA500);
        }
        
        .medal-silver {
            background: linear-gradient(135deg, #C0C0C0, #808080);
        }
        
        .medal-bronze {
            background: linear-gradient(135deg, #CD7F32, #8B4513);
        }
        
        .medal-count {
            font-size: 3.5rem;
            font-weight: 800;
            margin-bottom: 10px;
        }
        
        .medal-label {
            font-size: 1.2rem;
            opacity: 0.9;
        }
        
        /* Section Title */
        .section-title {
            color: #1e3a8a;
            font-size: 2rem;
            font-weight: 700;
            margin: 50px 0 30px;
            text-align: center;
            position: relative;
            padding-bottom: 15px;
        }
        
        .section-title:after {
            content: '';
            position: absolute;
            width: 100px;
            height: 4px;
            background: linear-gradient(to right, #f59e0b, #d97706);
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            border-radius: 2px;
        }
        
        /* Medal Tabs */
        .medal-tabs {
            display: flex;
            justify-content: center;
            gap: 15px;
            margin: 40px 0;
            flex-wrap: wrap;
        }
        
        .medal-tab {
            padding: 15px 35px;
            border-radius: 50px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 10px;
            color: white;
            border: 2px solid transparent;
            user-select: none;
            -webkit-tap-highlight-color: transparent;
        }
        
        .medal-tab:focus-visible {
            outline: 3px solid #3b82f6;
            outline-offset: 3px;
        }
        
        .medal-tab.active {
            transform: scale(1.05);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
        }
        
        .medal-tab-gold {
            background: linear-gradient(135deg, #FFD700, #FFA500);
        }
        
        .medal-tab-silver {
            background: linear-gradient(135deg, #C0C0C0, #808080);
        }
        
        .medal-tab-bronze {
            background: linear-gradient(135deg, #CD7F32, #8B4513);
        }
        
        .medal-tab-all {
            background: linear-gradient(135deg, #3b82f6, #1e40af);
        }
        
        /* Stories Grid */
        .stories-section {
            display: block;
        }
        
        .stories-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
            gap: 30px;
            margin-bottom: 50px;
        }
        
        .story-card {
            background: white;
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            height: 100%;
            display: flex;
            flex-direction: column;
            cursor: pointer;
            border: 1px solid #e2e8f0;
            position: relative;
        }
        
        .story-card:hover,
        .story-card:focus-within {
            transform: translateY(-5px);
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
            outline: none;
        }
        
        .story-card:focus-visible {
            outline: 3px solid #3b82f6;
            outline-offset: 3px;
        }
        
        .medal-ribbon {
            position: absolute;
            top: 20px;
            left: -35px;
            width: 150px;
            padding: 8px 0;
            text-align: center;
            color: white;
            font-weight: 700;
            font-size: 0.9rem;
            transform: rotate(-45deg);
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
            z-index: 2;
        }
        
        .ribbon-gold {
            background: linear-gradient(135deg, #FFD700, #FFA500);
        }
        
        .ribbon-silver {
            background: linear-gradient(135deg, #C0C0C0, #808080);
        }
        
        .ribbon-bronze {
            background: linear-gradient(135deg, #CD7F32, #8B4513);
        }
        
        .story-image-container {
            position: relative;
            height: 280px; /* Increased height for better image display */
            overflow: hidden;
        }
        
        .story-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center top; /* Crop from bottom, focus on top */
            transition: transform 0.5s ease;
        }
        
        .story-card:hover .story-image {
            transform: scale(1.05);
        }
        
        .story-content {
            padding: 25px;
            flex-grow: 1;
            display: flex;
            flex-direction: column;
        }
        
        .alumni-name {
            color: #1e3a8a;
            font-size: 1.5rem;
            font-weight: 700;
            margin-bottom: 10px;
        }
        
        .alumni-achievement {
            font-weight: 600;
            margin-bottom: 15px;
            font-size: 1rem;
        }
        
        .achievement-gold {
            color: #b8860b;
        }
        
        .achievement-silver {
            color: #808080;
        }
        
        .achievement-bronze {
            color: #8B4513;
        }
        
        .alumni-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 15px;
            margin-bottom: 20px;
            padding-bottom: 20px;
            border-bottom: 1px solid #e2e8f0;
        }
        
        .meta-item {
            display: flex;
            align-items: center;
            gap: 8px;
            color: #64748b;
            font-size: 0.9rem;
        }
        
        .meta-item i {
            color: #3b82f6;
            font-size: 1rem;
        }
        
        .story-excerpt {
            color: #475569;
            margin-bottom: 20px;
            line-height: 1.6;
            flex-grow: 1;
        }
        
        .story-footer {
            padding-top: 20px;
            border-top: 1px solid #e2e8f0;
        }
        
        .alumni-quote {
            font-style: italic;
            color: #64748b;
            position: relative;
            padding-left: 15px;
            border-left: 3px solid #3b82f6;
            font-size: 0.95rem;
            margin-bottom: 15px;
        }
        
        .read-more-btn {
            width: 100%;
            background: linear-gradient(to right, #3b82f6, #2563eb);
            color: white;
            border: none;
            padding: 12px;
            border-radius: 8px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 0.95rem;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            -webkit-tap-highlight-color: transparent;
        }
        
        .read-more-btn:focus-visible {
            outline: 3px solid #f59e0b;
            outline-offset: 3px;
        }
        
        .read-more-btn:hover {
            background: linear-gradient(to right, #2563eb, #1d4ed8);
            transform: translateY(-2px);
        }
        
        /* No Results Message */
        .no-results {
            text-align: center;
            padding: 50px;
            color: #64748b;
            font-size: 1.2rem;
            grid-column: 1 / -1;
        }
        
        /* Modal Styles - FIXED POSITIONING */
        .modal-backdrop {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.95);
            z-index: 9999; /* Increased z-index to be above header */
            overflow-y: auto;
            animation: fadeIn 0.3s ease;
            padding: 20px;
            padding-top: 80px; /* Added padding top for header space */
        }
        
        .modal-content {
            background: white;
            max-width: 900px;
            margin: 0 auto;
            border-radius: 15px;
            overflow: hidden;
            animation: modalSlide 0.3s ease;
            position: relative;
            max-height: calc(100vh - 100px); /* Limit height for better scrolling */
            overflow-y: auto;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        
        @keyframes modalSlide {
            from { transform: translateY(50px); opacity: 0; }
            to { transform: translateY(0); opacity: 1; }
        }
        
        .modal-header {
            padding: 25px 30px;
            color: white;
            position: sticky;
            top: 0;
            z-index: 10;
        }
        
        .modal-header-gold {
            background: linear-gradient(135deg, #FFD700, #FFA500);
        }
        
        .modal-header-silver {
            background: linear-gradient(135deg, #C0C0C0, #808080);
        }
        
        .modal-header-bronze {
            background: linear-gradient(135deg, #CD7F32, #8B4513);
        }
        
        .close-modal {
            position: absolute;
            top: 15px;
            right: 15px;
            background: rgba(255, 255, 255, 0.2);
            width: 50px; /* Larger for mobile */
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: background 0.3s ease;
            font-size: 1.5rem;
            z-index: 11;
            border: none;
            color: white;
            -webkit-tap-highlight-color: transparent;
        }
        
        .close-modal:focus-visible {
            outline: 3px solid white;
            outline-offset: 3px;
        }
        
        .close-modal:hover {
            background: rgba(255, 255, 255, 0.3);
        }
        
        /* Accessibility focus styles */
        button:focus-visible,
        a:focus-visible {
            outline: 3px solid #3b82f6;
            outline-offset: 3px;
        }
        
        /* Scrollbar styling for modal */
        .modal-content::-webkit-scrollbar {
            width: 8px;
        }
        
        .modal-content::-webkit-scrollbar-track {
            background: #f1f1f1;
        }
        
        .modal-content::-webkit-scrollbar-thumb {
            background: #888;
            border-radius: 4px;
        }
        
        .modal-content::-webkit-scrollbar-thumb:hover {
            background: #555;
        }
        
        /* Modal body with improved padding */
        .modal-body {
            padding: 30px;
            color: #334155;
        }
        
        /* CTA Section */
        .cta-section {
            background: linear-gradient(135deg, #1e3a8a, #3b82f6);
            border-radius: 15px;
            padding: 50px 30px;
            text-align: center;
            margin: 60px 0;
            color: white;
        }
        
        .cta-title {
            font-size: 2rem;
            margin-bottom: 20px;
            color: white;
        }
        
        /* Responsive Design */
        @media (max-width: 1024px) {
            .stories-grid {
                grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
                gap: 25px;
            }
            
            .modal-content {
                max-width: 95%;
            }
        }
        
        @media (max-width: 768px) {
            .alumni-hero h1 {
                font-size: 2rem;
            }
            
            .medal-stats {
                grid-template-columns: 1fr;
                gap: 15px;
            }
            
            .medal-count {
                font-size: 3rem;
            }
            
            .stories-grid {
                grid-template-columns: 1fr;
                gap: 25px;
            }
            
            .medal-tabs {
                flex-direction: column;
                align-items: center;
            }
            
            .medal-tab {
                width: 100%;
                max-width: 300px;
                justify-content: center;
            }
            
            .modal-backdrop {
                padding: 15px;
                padding-top: 70px; /* Adjust for smaller screens */
            }
            
            .modal-content {
                max-height: calc(100vh - 80px);
            }
            
            .modal-header {
                padding: 20px 25px;
            }
            
            .modal-body {
                padding: 20px;
            }
            
            .close-modal {
                width: 45px;
                height: 45px;
                font-size: 1.3rem;
                top: 10px;
                right: 10px;
            }
            
            .story-image-container {
                height: 260px; /* Adjusted for mobile */
            }
        }
        
        @media (max-width: 480px) {
            .alumni-hero {
                padding: 40px 15px;
            }
            
            .section-title {
                font-size: 1.7rem;
            }
            
            .story-content,
            .modal-body {
                padding: 20px;
            }
            
            .modal-header {
                padding: 15px 20px;
            }
            
            .modal-backdrop {
                padding: 10px;
                padding-top: 60px; /* Less padding on very small screens */
            }
            
            .modal-content {
                max-height: calc(100vh - 60px);
            }
            
            .story-image-container {
                height: 240px;
            }
            
            .alumni-name {
                font-size: 1.3rem;
            }
            
            .medal-tab {
                padding: 12px 25px;
            }
        }
        
        /* Print styles for accessibility */
        @media print {
            .modal-backdrop {
                position: static;
                background: white;
                display: block !important;
            }
            
            .modal-content {
                margin: 0;
                max-width: 100%;
                box-shadow: none;
                border: 1px solid #ccc;
            }
            
            .close-modal {
                display: none;
            }
        }
    