/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Font loading optimization - Optimized for speed and SEO */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: local('Inter'), url('https://fonts.gstatic.com/s/inter/v12/UcCO3FwrK3iLTeHuS_fvQtMwCp50KnMw2boKoduKmMEVuLyfAZ9hiA.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: local('Inter'), url('https://fonts.gstatic.com/s/inter/v12/UcCO3FwrK3iLTeHuS_fvQtMwCp50KnMw2boKoduKmMEVuLyfAZ9hiA.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: local('Inter'), url('https://fonts.gstatic.com/s/inter/v12/UcCO3FwrK3iLTeHuS_fvQtMwCp50KnMw2boKoduKmMEVuLyfAZ9hiA.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: local('Inter'), url('https://fonts.gstatic.com/s/inter/v12/UcCO3FwrK3iLTeHuS_fvQtMwCp50KnMw2boKoduKmMEVuLyfAZ9hiA.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', sans-serif;
    background: #f8fafc;
    min-height: 100vh;
    color: #1e293b;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Mobile optimizations */
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    /* Font loading optimization */
    font-display: swap;
    /* Prevent layout shift */
    font-size-adjust: 0.5;
    font-synthesis: none;
    /* Better text rendering */
    text-rendering: optimizeLegibility;
    -webkit-font-feature-settings: "kern" 1;
    font-feature-settings: "kern" 1;
}

/* Enable text selection for specific elements */
.option-content h4,
.option-content p,
.step-description,
.university-description,
.donation-card p,
.faq-item p,
.info-card p {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
    min-height: auto;
    display: flex;
    flex-direction: column;
    /* Mobile scroll optimization */
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}



/* Header Styles */
.header {
    text-align: center;
    margin-bottom: 2rem;
    color: #1e293b;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.logo-image {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    /* Ensure logo loads properly */
    display: block;
    max-width: 100%;
    height: auto;
}

.logo-fallback {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo i {
    font-size: 2.5rem;
    color: #3b82f6;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo .icon {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    fill: url(#blue-gradient);
}

.logo h1 {
    font-size: 2.25rem;
    font-weight: 800;
    background: linear-gradient(135deg, #1e293b, #475569);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.025em;
}

@media (max-width: 768px) {
    .logo-image {
        width: 44px;
        height: 44px;
    }
    
    .logo-fallback {
        width: 44px;
        height: 44px;
        font-size: 1.25rem;
    }
    
    .logo {
        gap: 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    .logo h1 {
        font-size: 1.75rem;
        line-height: 1.2;
    }
}

.subtitle {
    font-size: 1.25rem;
    color: #64748b;
    font-weight: 400;
    text-align: center;
    line-height: 1.6;
}

/* Credits and Disclaimer */
.credits-disclaimer {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.credits {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
}

.credits i {
    color: #ef4444;
    font-size: 1rem;
    flex-shrink: 0;
}

.disclaimer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #64748b;
    font-size: 0.875rem;
    text-align: center;
    font-weight: 400;
    line-height: 1.5;
}

.disclaimer i {
    color: #f59e0b;
    font-size: 1rem;
    flex-shrink: 0;
}

.disclaimer strong {
    color: #f59e0b;
    font-weight: 600;
}

.privacy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #64748b;
    font-size: 0.875rem;
    text-align: center;
    font-weight: 400;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e2e8f0;
    line-height: 1.5;
}

.privacy i {
    color: #10b981;
    font-size: 1rem;
    flex-shrink: 0;
}

.privacy strong {
    color: #10b981;
    font-weight: 600;
}

/* Quiz Container */
.quiz-container {
    background: white;
    border-radius: 1.5rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    flex: 1;
    position: relative;
    border: 1px solid #e2e8f0;
    /* Mobile optimization */
    -webkit-overflow-scrolling: touch;
}

/* Progress Container */
.progress-container {
    background: #f8fafc;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e2e8f0;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    transition: width 0.5s ease;
    border-radius: 4px;
}

.progress-text {
    text-align: center;
    font-size: 1rem;
    color: #64748b;
    font-weight: 600;
    margin-top: 0.5rem;
}

/* Quiz Steps */
.quiz-step {
    display: none;
    padding: 1.5rem;
    min-height: 400px;
}

.quiz-step.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Welcome Screen */
.welcome-icon {
    text-align: center;
    margin-bottom: 1rem;
}

.welcome-icon i {
    font-size: 4rem;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: float 3s ease-in-out infinite;
}

.welcome-icon .icon {
    fill: url(#blue-gradient);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.step-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.02) 0%, rgba(139, 92, 246, 0.02) 100%);
    border-radius: 1.5rem;
    border: 1px solid rgba(59, 130, 246, 0.1);
    position: relative;
    overflow: hidden;
}

.step-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
}

.step-content h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    color: #1e293b;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.3;
    position: relative;
}

.step-content p {
    font-size: 1.125rem;
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.7;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    align-items: center;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.05rem;
    color: #475569;
    font-weight: 500;
    text-align: left;
    max-width: 400px;
    width: 100%;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.feature:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateX(5px);
}

.feature i {
    color: #10b981;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.feature .icon {
    fill: #10b981;
    flex-shrink: 0;
}

/* Step Header */
.step-header {
    text-align: center;
    margin-bottom: 2rem;
}

.step-header h3 {
    color: #3b82f6;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.step-header h2 {
    font-size: 2rem;
    color: #1e293b;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.step-description {
    font-size: 1.125rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    text-align: center;
}

/* Options Grid */
.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

/* Additional UI Optimizations */
.option-card {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    /* Mobile touch optimization */
    min-height: 100px;
    touch-action: manipulation;
    /* Better alignment */
    align-items: center;
}

.option-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: #cbd5e1;
}

/* Subject-specific hover effects */
.option-card[data-value="medicine"]:hover {
    border-color: #ef4444;
    box-shadow: 0 10px 25px -5px rgba(239, 68, 68, 0.15), 0 10px 10px -5px rgba(239, 68, 68, 0.1);
}

.option-card[data-value="business"]:hover {
    border-color: #10b981;
    box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.15), 0 10px 10px -5px rgba(16, 185, 129, 0.1);
}

.option-card[data-value="science"]:hover {
    border-color: #8b5cf6;
    box-shadow: 0 10px 25px -5px rgba(139, 92, 246, 0.15), 0 10px 10px -5px rgba(139, 92, 246, 0.1);
}

.option-card[data-value="social"]:hover {
    border-color: #f59e0b;
    box-shadow: 0 10px 25px -5px rgba(245, 158, 11, 0.15), 0 10px 10px -5px rgba(245, 158, 11, 0.1);
}

.option-card[data-value="engineering"]:hover {
    border-color: #3b82f6;
    box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.15), 0 10px 10px -5px rgba(59, 130, 246, 0.1);
}

.option-card[data-value="arts"]:hover {
    border-color: #ec4899;
    box-shadow: 0 10px 25px -5px rgba(236, 72, 153, 0.15), 0 10px 10px -5px rgba(236, 72, 153, 0.1);
}

.option-card.selected {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(59, 130, 246, 0.25), 0 10px 10px -5px rgba(59, 130, 246, 0.1);
}

/* Subject-specific selected gradients */
.option-card[data-value="medicine"].selected {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-color: #ef4444;
    box-shadow: 0 20px 25px -5px rgba(239, 68, 68, 0.25), 0 10px 10px -5px rgba(239, 68, 68, 0.1);
}

.option-card[data-value="business"].selected {
    background: linear-gradient(135deg, #10b981, #059669);
    border-color: #10b981;
    box-shadow: 0 20px 25px -5px rgba(16, 185, 129, 0.25), 0 10px 10px -5px rgba(16, 185, 129, 0.1);
}

.option-card[data-value="science"].selected {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    border-color: #8b5cf6;
    box-shadow: 0 20px 25px -5px rgba(139, 92, 246, 0.25), 0 10px 10px -5px rgba(139, 92, 246, 0.1);
}

.option-card[data-value="social"].selected {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-color: #f59e0b;
    box-shadow: 0 20px 25px -5px rgba(245, 158, 11, 0.25), 0 10px 10px -5px rgba(245, 158, 11, 0.1);
}

.option-card[data-value="engineering"].selected {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border-color: #3b82f6;
    box-shadow: 0 20px 25px -5px rgba(59, 130, 246, 0.25), 0 10px 10px -5px rgba(59, 130, 246, 0.1);
}

.option-card[data-value="arts"].selected {
    background: linear-gradient(135deg, #ec4899, #db2777);
    border-color: #ec4899;
    box-shadow: 0 20px 25px -5px rgba(236, 72, 153, 0.25), 0 10px 10px -5px rgba(236, 72, 153, 0.1);
}

.option-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

/* Subject-specific icon backgrounds */
.option-card[data-value="medicine"] .option-icon {
    background: rgba(239, 68, 68, 0.1);
}

.option-card[data-value="business"] .option-icon {
    background: rgba(16, 185, 129, 0.1);
}

.option-card[data-value="science"] .option-icon {
    background: rgba(139, 92, 246, 0.1);
}

.option-card[data-value="social"] .option-icon {
    background: rgba(245, 158, 11, 0.1);
}

.option-card[data-value="engineering"] .option-icon {
    background: rgba(59, 130, 246, 0.1);
}

.option-card[data-value="arts"] .option-icon {
    background: rgba(236, 72, 153, 0.1);
}

.option-icon .icon {
    fill: #3b82f6;
    transition: fill 0.2s ease;
}

/* Special styling for new subject icons */
.option-card[data-value="medicine"] .option-icon .icon {
    fill: #ef4444;
}

.option-card[data-value="business"] .option-icon .icon {
    fill: #10b981;
}

.option-card[data-value="science"] .option-icon .icon {
    fill: #8b5cf6;
}

.option-card[data-value="social"] .option-icon .icon {
    fill: #f59e0b;
}

.option-card[data-value="engineering"] .option-icon .icon {
    fill: #3b82f6;
}

.option-card[data-value="arts"] .option-icon .icon {
    fill: #ec4899;
}

.option-card.selected .option-icon {
    background: #3b82f6 !important;
    transform: scale(1.05);
}

/* Subject-specific selected backgrounds */
.option-card[data-value="medicine"].selected .option-icon {
    background: #ef4444 !important;
}

.option-card[data-value="business"].selected .option-icon {
    background: #10b981 !important;
}

.option-card[data-value="science"].selected .option-icon {
    background: #8b5cf6 !important;
}

.option-card[data-value="social"].selected .option-icon {
    background: #f59e0b !important;
}

.option-card[data-value="engineering"].selected .option-icon {
    background: #3b82f6 !important;
}

.option-card[data-value="arts"].selected .option-icon {
    background: #ec4899 !important;
}

.option-card.selected .option-icon .icon {
    fill: white !important;
}

.option-icon i {
    font-size: 1.5rem;
    color: #3b82f6;
    transition: color 0.2s ease;
}

.option-card.selected .option-icon i {
    color: white;
}

.option-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 48px;
}

.option-content h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.3;
}

.option-card.selected .option-content h4 {
    color: white;
}

.option-content p {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

.option-card.selected .option-content p {
    color: rgba(255, 255, 255, 0.9);
}

/* Navigation */
.quiz-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2.5rem;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

/* Buttons */
.btn {
    padding: 0.875rem 1.75rem;
    border: none;
    border-radius: 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    font-family: inherit;
    letter-spacing: 0.025em;
    min-height: 44px;
    white-space: nowrap;
}

.btn .icon {
    fill: currentColor;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    font-size: 1rem;
    padding: 1rem 2rem;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px -5px rgba(59, 130, 246, 0.3), 0 8px 15px -5px rgba(59, 130, 246, 0.15);
    background: linear-gradient(135deg, #2563eb, #7c3aed);
}

.btn-secondary {
    background: #64748b;
    color: white;
}

.btn-secondary:hover {
    background: #475569;
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    border: 2px solid #3b82f6;
    color: #3b82f6;
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 40px;
}

.btn-outline:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-1px);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Results Container */
.results-container {
    background: white;
    border-radius: 1.5rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    padding: 3rem;
    margin-top: 2rem;
    border: 1px solid #e2e8f0;
}

@media (max-width: 768px) {
    .results-container {
        padding: 1.5rem;
        margin-top: 1rem;
    }
}

.results-header {
    text-align: center;
    margin-bottom: 4rem;
    padding-bottom: 3rem;
    border-bottom: 3px solid rgba(241, 245, 249, 0.8);
    position: relative;
}

.results-header::after {
    content: '';
    position: absolute;
    bottom: -1.5px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 3px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6, #06b6d4);
    border-radius: 1.5px;
}

.results-header h2 {
    font-size: 2.25rem;
    color: #1e293b;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.results-header p {
    font-size: 1.25rem;
    color: #64748b;
    line-height: 1.6;
}

/* Results Grid */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3.5rem;
    position: relative;
}

.results-grid::before {
    content: '';
    position: absolute;
    top: -2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6, #06b6d4);
    border-radius: 2px;
    opacity: 0.6;
}

@media (max-width: 768px) {
    .results-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
}

.university-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 1.5rem;
    padding: 2.5rem;
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out;
    gap: 1rem;
    backdrop-filter: blur(10px);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered animation for university cards */
.university-card:nth-child(1) { animation-delay: 0.1s; }
.university-card:nth-child(2) { animation-delay: 0.2s; }
.university-card:nth-child(3) { animation-delay: 0.3s; }
.university-card:nth-child(4) { animation-delay: 0.4s; }
.university-card:nth-child(5) { animation-delay: 0.5s; }
.university-card:nth-child(6) { animation-delay: 0.6s; }

.university-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6, #06b6d4);
    background-size: 200% 100%;
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.university-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(59, 130, 246, 0.25), 0 0 0 1px rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
}

.university-header {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid rgba(241, 245, 249, 0.8);
    position: relative;
}

@media (max-width: 640px) {
    .university-header {
        align-items: center;
        gap: 0.75rem;
        padding-right: 0.5rem;
    }
}

.university-logo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}



.university-info {
    flex: 1;
    min-width: 0;
    overflow: visible;
    position: relative;
    padding-right: 1rem;
}

.university-info h3 {
    font-size: 1.5rem;
    color: #1e293b;
    margin-bottom: 0.75rem;
    font-weight: 800;
    line-height: 1.2;
    position: relative;
    letter-spacing: -0.025em;
}

.university-name {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: calc(100% - 2rem);
    padding-right: 1rem;
}

.university-meta {
    color: #64748b;
    font-size: 0.875rem;
    line-height: 1.4;
    margin: 0;
}

.university-info h3::before {
    content: '#' attr(data-rank);
    position: absolute;
    top: -0.5rem;
    right: -1rem;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6, #06b6d4);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.4rem 0.8rem;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    z-index: 1;
    letter-spacing: 0.05em;
}

.university-info p {
    color: #64748b;
    font-size: 0.875rem;
    line-height: 1.4;
}

.university-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex: 1;
    /* Better alignment for detail items */
    align-items: start;
}

@media (max-width: 640px) {
    .university-details {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .university-card {
        padding: 1.5rem;
    }
    
    .university-header {
        gap: 0.75rem;
        margin-bottom: 1.25rem;
        padding-bottom: 0.75rem;
    }
    
    .university-logo {
        width: 50px;
        height: 50px;
    }
    
    .university-info h3 {
        font-size: 1.125rem;
    }
    
    .university-name {
        font-size: 1rem;
        line-height: 1.4;
        max-width: calc(100% - 1.5rem);
        padding-right: 0.75rem;
    }
    
    .university-meta {
        font-size: 0.8rem;
    }
    
    .university-info h3::before {
        font-size: 0.6rem;
        padding: 0.15rem 0.3rem;
        top: -0.2rem;
        right: -0.25rem;
    }
    
    .detail-item {
        padding: 0.5rem;
        font-size: 0.8rem;
    }
    
    .university-description {
        padding: 0.75rem;
        font-size: 0.85rem;
    }
    
    .scholarship-section,
    .additional-section {
        padding: 1rem;
        margin: 0.75rem 0;
    }
    
    .scholarship-section h4,
    .additional-section h4 {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
        padding-bottom: 0.375rem;
    }
    
    .scholarship-item,
    .additional-item {
        padding: 0.375rem 0;
        margin-bottom: 0.125rem;
    }
    
    .scholarship-label,
    .additional-label,
    .scholarship-value,
    .additional-value {
        font-size: 0.8rem;
    }
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    font-size: 0.9rem;
    padding: 1rem;
    line-height: 1.6;
    color: #374151;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 0.75rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    transition: all 0.3s ease;
    border: 1px solid rgba(226, 232, 240, 0.5);
    position: relative;
    overflow: hidden;
}

.detail-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.detail-item:hover {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.2);
}

.detail-item:hover::before {
    opacity: 1;
}

.detail-item i {
    color: #3b82f6;
    width: 20px;
    flex-shrink: 0;
    margin-top: 0.125rem;
    align-self: flex-start;
    font-size: 1.125rem;
    transition: all 0.3s ease;
}

.detail-item:hover i {
    color: #2563eb;
    transform: scale(1.1);
}

.university-description {
    color: #475569;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex: 1;
    font-size: 0.95rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 1rem;
    border-left: 6px solid #3b82f6;
    position: relative;
    overflow: hidden;
}

.university-description::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.2), transparent);
}

.university-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 2px solid rgba(226, 232, 240, 0.8);
    gap: 1rem;
    flex-wrap: wrap;
    position: relative;
}

.university-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.3), transparent);
}

.website-link {
    flex: 1;
}

.website-link .btn {
    background: transparent;
    border: 2px solid #3b82f6;
    color: #3b82f6;
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    min-height: 40px;
}

.website-link .btn:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-1px);
}

.match-score {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6, #06b6d4);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 1rem;
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.match-score::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.match-score:hover::before {
    opacity: 1;
}

/* Scholarship and Additional Sections */
.scholarship-section,
.additional-section {
    background: #ffffff;
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin: 1rem 0;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.additional-section {
    border-left: 3px solid #0ea5e9;
}

.additional-section h4 i {
    color: #0ea5e9;
}

.scholarship-section h4,
.additional-section h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f3f4f6;
}

.scholarship-section h4 i,
.additional-section h4 i {
    color: #6b7280;
    font-size: 0.9rem;
}

.additional-section h4 i {
    color: #0ea5e9;
}

.scholarship-details,
.additional-details {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.scholarship-item,
.additional-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    margin-bottom: 0.25rem;
    border-bottom: 1px solid #f9fafb;
    transition: all 0.2s ease;
}

.scholarship-item:hover,
.additional-item:hover {
    background: #f9fafb;
    border-radius: 0.25rem;
    padding: 0.5rem;
    margin: 0.25rem -0.5rem;
}

.scholarship-item:last-child,
.additional-item:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.scholarship-label,
.additional-label {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

.scholarship-value,
.additional-value {
    font-size: 0.875rem;
    color: #374151;
    font-weight: 600;
    text-align: right;
}

.campus-rating {
    color: #f59e0b;
    font-size: 0.875rem;
    letter-spacing: 1px;
}

/* Donation Section */
.donation-section-main {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border-radius: 1rem;
    padding: 1.75rem;
    margin: 1.5rem 0;
    border: 1px solid #e2e8f0;
}

.donation-card {
    background: white;
    border-radius: 1rem;
    padding: 1.75rem;
    text-align: center;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.donation-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.donation-header i {
    color: #3b82f6;
    font-size: 1.5rem;
}

.donation-header .icon {
    fill: #3b82f6;
}

.donation-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.donation-card p {
    font-size: 1rem;
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.donation-features {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    margin-bottom: 1.25rem;
    align-items: center;
}

.donation-features .feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #475569;
    font-weight: 500;
    text-align: left;
    max-width: 300px;
    width: 100%;
}

.donation-features .feature i {
    color: #10b981;
    font-size: 1rem;
    flex-shrink: 0;
}

.donation-features .feature .icon {
    fill: #10b981;
    flex-shrink: 0;
}

.donation-amount {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
}

.donation-amount .amount {
    font-size: 2rem;
    font-weight: 700;
    color: #3b82f6;
}

.donation-amount .period {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

/* Donation button container styles */
#donation-button-container-main {
    margin-top: 1rem;
    text-align: center;
}

#donation-button-container-main .btn {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

#donation-button-container-main .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.thank-you-message {
    text-align: center;
    padding: 1rem;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-radius: 0.75rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.thank-you-message i {
    color: #10b981;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.thank-you-message h4 {
    color: #1e293b;
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

.thank-you-message p {
    color: #64748b;
    font-size: 0.875rem;
    margin: 0;
}

/* Donation card in results */
.donation-section {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border: 1px solid #e2e8f0;
}

.donation-content {
    text-align: center;
    padding: 2rem;
}

.donation-content i {
    font-size: 2rem;
    color: #3b82f6;
    margin-bottom: 1rem;
}

.donation-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

.donation-content p {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* No Results Card */
.no-results {
    text-align: center;
    padding: 3rem 2rem;
}

.no-results-content {
    max-width: 500px;
    margin: 0 auto;
}

.no-results-content i {
    font-size: 3rem;
    color: #64748b;
    margin-bottom: 1rem;
}

.no-results-content h3 {
    font-size: 1.5rem;
    color: #1e293b;
    margin-bottom: 1rem;
    font-weight: 600;
}

.no-results-content p {
    font-size: 1rem;
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.suggestions {
    text-align: left;
    background: #f8fafc;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e2e8f0;
}

.suggestions h4 {
    font-size: 1rem;
    color: #1e293b;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.suggestions ul {
    list-style: none;
    padding: 0;
}

.suggestions li {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.5;
}

.suggestions li:before {
    content: "•";
    color: #3b82f6;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

/* Buy Me a Coffee Button Styles */
.coffee-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #FFDD00 0%, #FBB034 100%);
    color: #000;
    text-decoration: none;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(251, 176, 52, 0.3);
    border: none;
    cursor: pointer;
}

.coffee-button:hover {
    background: linear-gradient(135deg, #FBB034 0%, #FFDD00 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(251, 176, 52, 0.4);
    color: #000;
    text-decoration: none;
}

.coffee-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(251, 176, 52, 0.3);
}

.coffee-button .coffee-icon {
    font-size: 1rem;
    animation: float 2s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-3px); }
}

.loading-content {
    text-align: center;
    max-width: 400px;
    padding: 2rem;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-content h3 {
    font-size: 1.25rem;
    color: #1e293b;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.loading-content p {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.5;
}

/* Thank You Message */
.thank-you-message {
    text-align: center;
    padding: 1.5rem;
}

.thank-you-message i {
    font-size: 2rem;
    color: #10b981;
    margin-bottom: 1rem;
}

.thank-you-message h4 {
    font-size: 1.125rem;
    color: #1e293b;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.thank-you-message p {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.5;
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .header {
        margin-bottom: 2rem;
    }
    
    .logo h1 {
        font-size: 1.75rem;
        line-height: 1.2;
    }
    
    .logo i {
        font-size: 1.75rem;
    }
    
    .subtitle {
        font-size: 0.95rem;
        line-height: 1.4;
    }
    
    .credits-disclaimer {
        padding: 1.25rem;
        margin-bottom: 1.5rem;
        border-radius: 0.75rem;
    }
    
    .credits,
    .disclaimer,
    .privacy {
        font-size: 0.75rem;
        flex-direction: column;
        gap: 0.25rem;
        text-align: center;
        line-height: 1.4;
    }
    
    .quiz-step {
        padding: 1rem;
        min-height: 350px;
    }
    
    .step-content h2 {
        font-size: 1.5rem;
        line-height: 1.3;
        margin-bottom: 0.25rem;
    }
    
    .step-content p {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 0.5rem;
    }
    
    .step-content {
        padding: 0.5rem 0;
    }
    
    .features {
        margin-bottom: 0.5rem;
    }
    
    .step-header h2 {
        font-size: 1.375rem;
        line-height: 1.3;
        letter-spacing: -0.01em;
    }
    
    .step-description {
        font-size: 0.85rem;
        line-height: 1.5;
        color: #64748b;
    }
    
    .options-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .option-card {
        padding: 1.25rem;
        min-height: 90px;
        border-radius: 0.75rem;
        /* Better touch targets */
        -webkit-tap-highlight-color: rgba(59, 130, 246, 0.1);
        transition: all 0.2s ease;
    }
    
    .option-card:active {
        transform: scale(0.98);
        background-color: #f8fafc;
    }
    
    .option-card.selected {
        transform: scale(1.02);
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
    }
    
    .option-icon {
        width: 2.5rem;
        height: 2.5rem;
        border-radius: 0.625rem;
        flex-shrink: 0;
    }
    
    .option-icon i {
        font-size: 1rem;
    }
    
    .option-content {
        flex: 1;
        min-width: 0;
    }
    
    .option-content h4 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
        font-weight: 600;
        line-height: 1.3;
    }
    
    .option-content p {
        font-size: 0.875rem;
        line-height: 1.5;
        color: #64748b;
    }
    
    .quiz-navigation {
        padding: 1.25rem;
        gap: 0.75rem;
        flex-direction: column;
    }
    
    .btn {
        padding: 1rem 1.5rem;
        font-size: 0.9rem;
        min-height: 52px;
        border-radius: 0.75rem;
        justify-content: center;
        font-weight: 600;
        /* Better touch feedback */
        -webkit-tap-highlight-color: transparent;
        transition: all 0.2s ease;
        min-width: 100%;
    }
    
    .btn:active {
        transform: scale(0.98);
    }
    
    .results-container {
        padding: 1.5rem;
        border-radius: 0.75rem;
    }
    
    .results-header h2 {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
        line-height: 1.3;
    }
    
    .results-header p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .university-card {
        padding: 1.75rem;
        border-radius: 1rem;
        gap: 0.75rem;
    }
    
    .university-header {
        gap: 0.75rem;
        margin-bottom: 1rem;
        align-items: flex-start;
    }
    
    .university-logo {
        width: 55px;
        height: 55px;
        flex-shrink: 0;
    }
    
    .university-info {
        flex: 1;
        min-width: 0;
    }
    
    .university-info h3 {
        font-size: 1.125rem;
        line-height: 1.3;
        margin-bottom: 0.5rem;
    }
    
    .university-info p {
        font-size: 0.875rem;
        line-height: 1.4;
        color: #64748b;
    }
    
    .university-details {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }
    
    .detail-item {
        font-size: 0.875rem;
        padding: 0.75rem;
        gap: 0.75rem;
        align-items: flex-start;
    }
    
    .detail-item i {
        font-size: 1rem;
        flex-shrink: 0;
        margin-top: 0.125rem;
    }
    
    .university-footer {
        flex-direction: column;
        gap: 0.875rem;
        align-items: stretch;
        margin-top: 1rem;
    }
    
    .website-link .btn {
        width: 100%;
        padding: 0.75rem 1rem;
        font-size: 0.8rem;
    }
    
    .match-score {
        text-align: center;
        width: 100%;
        font-size: 0.875rem;
        padding: 0.5rem;
    }
    
    .donation-section-main {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }
    
    .donation-card {
        padding: 1.5rem;
        border-radius: 0.75rem;
    }
    
    .donation-header h3 {
        font-size: 1.125rem;
        margin-bottom: 0.5rem;
        line-height: 1.3;
    }
    
    .donation-card p {
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
        line-height: 1.6;
    }
    
    .donation-features {
        gap: 0.5rem;
        margin-bottom: 1rem;
    }
    
    .donation-features .feature {
        padding: 0.75rem;
        font-size: 0.875rem;
        max-width: none;
        line-height: 1.5;
    }
    
    .donation-amount .amount {
        font-size: 1.375rem;
    }
    
    .donation-amount .period {
        font-size: 0.75rem;
    }
    
    /* Enhanced mobile interactions */
    .option-card {
        cursor: pointer;
        user-select: none;
    }
    
    /* Better loading states for mobile */
    .loading-screen {
        padding: 2rem 1rem;
    }
    
    .loading-content h3 {
        font-size: 1.125rem;
        margin-bottom: 0.5rem;
    }
    
    .loading-content p {
        font-size: 0.85rem;
        color: #64748b;
    }
    
    /* Improved progress bar for mobile */
    .progress-container {
        margin-bottom: 1.5rem;
        padding: 1rem 1.5rem;
    }
    
    .progress-bar {
        height: 0.375rem;
        border-radius: 0.25rem;
    }
    
    .progress-text {
        font-size: 0.8rem;
        margin-top: 0.5rem;
        font-weight: 500;
    }
    
    /* Better spacing for mobile content */
    .step-content {
        padding: 0.5rem 0;
    }
    
    /* Enhanced touch feedback */
    .option-card:hover {
        transform: translateY(-1px);
    }
    
    .option-card:active {
        transform: scale(0.98);
    }
    
    /* Improved text readability on mobile */
    .university-description {
        font-size: 0.9rem;
        line-height: 1.6;
        color: #475569;
    }
    
    /* Better mobile navigation */
    .quiz-navigation .btn {
        position: relative;
        overflow: hidden;
    }
    
    .quiz-navigation .btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
        transition: left 0.5s;
    }
    
    .quiz-navigation .btn:active::before {
        left: 100%;
    }
    
    /* Additional mobile optimizations */
    @media (max-width: 480px) {
        .container {
            padding: 0.75rem;
        }
        
        .logo-image,
        .logo-fallback {
            width: 40px;
            height: 40px;
        }
        
        .logo-fallback {
            font-size: 1.125rem;
        }
        
        .quiz-container {
            padding: 1rem;
            margin: 0 -0.25rem;
        }
        
        .quiz-step {
            padding: 1.25rem;
            min-height: 350px;
        }
        
        .step-header h2 {
            font-size: 1.25rem;
        }
        
        .step-description {
            font-size: 0.8rem;
        }
        
        .option-card {
            padding: 1rem;
            min-height: 80px;
        }
        
        .option-icon {
            width: 2.25rem;
            height: 2.25rem;
        }
        
        .option-content h4 {
            font-size: 0.9rem;
        }
        
        .option-content p {
            font-size: 0.75rem;
        }
        
        .btn {
            padding: 0.875rem 1.25rem;
            font-size: 0.875rem;
            min-height: 48px;
        }
        
        .results-container {
            padding: 1rem;
        }
        
        .university-card {
            padding: 1rem;
        }
        
        .university-logo {
            width: 44px;
            height: 44px;
            font-size: 1rem;
        }
        
        .university-info h3 {
            font-size: 0.95rem;
        }
        
        .university-info p {
            font-size: 0.7rem;
        }
        
        .detail-item {
            font-size: 0.7rem;
        }
        
        .university-description {
            font-size: 0.75rem;
        }
    }
    
    /* Landscape orientation optimization */
    @media (max-width: 768px) and (orientation: landscape) {
        .quiz-step {
            min-height: 250px;
        }
        
        .options-grid {
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 0.75rem;
        }
        
        .step-header {
            margin-bottom: 1rem;
        }
        
        .step-header h2 {
            font-size: 1.25rem;
        }
    }
    
    /* High DPI display optimization */
    @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
        .logo-image {
            image-rendering: -webkit-optimize-contrast;
            image-rendering: crisp-edges;
        }
    }
    
    /* Dark mode support for mobile */
    @media (prefers-color-scheme: dark) {
        body {
            background: #0f172a;
            color: #e2e8f0;
        }
        
        .quiz-container,
        .results-container,
        .credits-disclaimer,
        .university-card,
        .donation-card {
            background: #1e293b;
            border-color: #334155;
        }
        
        .option-card {
            background: #1e293b;
            border-color: #334155;
        }
        
        .option-card:hover {
            background: #334155;
        }
        
        .option-card.selected {
            background: #3b82f6;
            border-color: #3b82f6;
        }
    }
    
    .scholarship-section,
    .additional-section {
        padding: 1rem;
        margin: 0.75rem 0;
    }
    
    .scholarship-section h4,
    .additional-section h4 {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }
    
    .scholarship-details,
    .additional-details {
        gap: 0.25rem;
    }
    
    .scholarship-item,
    .additional-item {
        padding: 0.2rem 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .scholarship-label,
    .additional-label,
    .scholarship-value,
    .additional-value {
        font-size: 0.8rem;
    }
    
    .scholarship-value,
    .additional-value {
        text-align: left;
    }
    
    .welcome-icon i {
        font-size: 3rem;
    }
    
    .features {
        gap: 0.75rem;
        margin-bottom: 2rem;
    }
    
    .feature {
        font-size: 0.9rem;
        gap: 0.5rem;
        max-width: 300px;
    }
    
    .feature i {
        font-size: 1rem;
    }
    
    .no-results {
        padding: 2rem 1rem;
    }
    
    .no-results-content i {
        font-size: 2.5rem;
    }
    
    .no-results-content h3 {
        font-size: 1.25rem;
    }
    
    .no-results-content p {
        font-size: 0.9rem;
    }
    
    .suggestions {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .suggestions h4 {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .suggestions li {
        font-size: 0.8rem;
        margin-bottom: 0.25rem;
        padding-left: 1.25rem;
    }
}

/* FAQ Section Styles */
.faq-section {
    background: white;
    border-radius: 1rem;
    padding: 2.5rem 1.75rem;
    margin: 1.5rem 0;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.faq-section h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #1e293b, #475569);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.faq-item {
    background: #f8fafc;
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.faq-item h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.faq-item p {
    color: #64748b;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Info Section Styles */
.info-section {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border-radius: 1rem;
    padding: 2.5rem 1.75rem;
    margin: 1.5rem 0;
    border: 1px solid #e2e8f0;
}

.info-section h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #1e293b, #475569);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.info-card {
    background: white;
    border-radius: 0.75rem;
    padding: 2rem;
    text-align: center;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.info-card i {
    font-size: 2.5rem;
    color: #3b82f6;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.info-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.info-card p {
    color: #64748b;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Mobile Responsive for FAQ and Info Sections */
@media (max-width: 768px) {
    .faq-section,
    .info-section {
        padding: 2rem 1rem;
        margin: 1rem 0;
    }
    
    .faq-section h2,
    .info-section h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .faq-item {
        padding: 1rem;
    }
    
    .info-card {
        padding: 1.5rem;
    }
    
    .info-card i {
        font-size: 2rem;
    }
    
    .info-card h3 {
        font-size: 1.125rem;
    }
}

/* Animations */
.slide-in {
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-out {
    animation: fadeOut 0.3s ease-out;
}

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

/* Additional improvements for very small screens */
@media (max-width: 480px) {
    .container {
        padding: 0.75rem;
    }
    
    .quiz-step {
        padding: 1rem;
    }
    
    .option-card {
        padding: 0.75rem;
        min-height: 75px;
    }
    
    .option-icon {
        width: 35px;
        height: 35px;
    }
    
    .option-icon i {
        font-size: 1rem;
    }
    
    .option-content h4 {
        font-size: 0.9rem;
    }
    
    .option-content p {
        font-size: 0.75rem;
    }
    
    .university-card {
        padding: 1rem;
    }
    
    .university-logo {
        width: 45px;
        height: 45px;
        font-size: 1.125rem;
    }
    
    .university-info h3 {
        font-size: 1rem;
    }
    
    .university-info p {
        font-size: 0.75rem;
    }
    
    .detail-item {
        font-size: 0.75rem;
    }
    
    .detail-item i {
        width: 14px;
    }
}

/* Better text rendering */
* {
    text-rendering: optimizeLegibility;
    -webkit-font-feature-settings: "kern" 1;
    font-feature-settings: "kern" 1;
}

/* SVG Icon Styles */
.icon {
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
    fill: currentColor;
    display: inline-block;
}

.icon-sm { width: 0.875em; height: 0.875em; }
.icon-lg { width: 1.25em; height: 1.25em; }
.icon-xl { width: 1.5em; height: 1.5em; }
.icon-2xl { width: 2em; height: 2em; }
.icon-3xl { width: 3em; height: 3em; }
.icon-4xl { width: 4em; height: 4em; }

/* Icon color overrides for consistent blue theme */
.donation-features .icon {
    fill: #10b981;
}

/* Font loading states */
.fonts-loaded {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.fonts-fallback {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Prevent layout shift during font loading */
.logo h1,
.step-content h2,
.step-header h2,
.results-header h2 {
    font-display: swap;
    font-size-adjust: 0.5;
}

/* Improved focus states for accessibility */
.btn:focus,
.option-card:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Better loading states */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    pointer-events: none;
}

/* Enhanced hover effects */
.option-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: #cbd5e1;
}

.university-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Better spacing for content sections */
.scholarship-section,
.additional-section {
    margin: 1.25rem 0;
}

.scholarship-item,
.additional-item {
    padding: 0.4rem 0;
}

/* Improved button spacing */
.quiz-navigation {
    gap: 1rem;
}

/* Better grid responsiveness */
.options-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.results-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

@media (max-width: 768px) {
    .options-grid {
        grid-template-columns: 1fr;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
}
