
/* Personality Test Styles */
.test-container {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-xl);
    max-width: 800px;
    margin: 0 auto;
    animation: slideIn 0.5s ease;
}

.test-intro {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    border-radius: 15px;
    margin: -2rem -2rem 3rem -2rem;
}

.test-title {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.test-description {
    font-size: clamp(1rem, 3vw, 1.2rem);
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.test-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.test-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 800;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.start-test-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.start-test-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
}

.question-container {
    display: none;
    margin-bottom: 2rem;
}

.question-progress {
    background: var(--light-darker);
    height: 8px;
    border-radius: 4px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    height: 100%;
    width: 0%;
    transition: width 0.5s ease;
    border-radius: 4px;
}

.progress-text {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 600;
}

.question-card {
    background: var(--light);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.question-title {
    font-size: clamp(1.3rem, 4vw, 1.8rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2rem;
    text-align: center;
    line-height: 1.4;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.option-card {
    background: white;
    border: 2px solid var(--light-darker);
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.option-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    opacity: 0.1;
    transition: left 0.5s ease;
}

.option-card:hover::before {
    left: 0;
}

.option-card:hover,
.option-card.selected {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.option-card.selected {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
}

.option-text {
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    line-height: 1.4;
}

.question-navigation {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.nav-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    font-size: 1rem;
}

.prev-btn {
    background: var(--light-darker);
    color: var(--text-secondary);
}

.prev-btn:hover:not(:disabled) {
    background: var(--text-secondary);
    color: white;
}

.next-btn {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(30, 41, 59, 0.3);
}

.next-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 41, 59, 0.5);
}

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

/* Test Results */
.results-container {
    display: none;
    text-align: center;
}

.results-header {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
}

.results-title {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.recommended-region {
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 900;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.results-subtitle {
    font-size: clamp(1rem, 3vw, 1.2rem);
    opacity: 0.9;
    line-height: 1.6;
}

.region-details {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.region-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.region-stat-card {
    background: var(--light);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.region-stat-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.stat-value {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.region-description {
    background: var(--light);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: left;
    line-height: 1.7;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.why-recommended {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem 0;
}

.why-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.why-list {
    list-style: none;
    padding: 0;
}

.why-item {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.why-item::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
    font-size: 1.2rem;
}

.restart-test-btn {
    background: var(--light-darker);
    color: var(--text-primary);
    border: 2px solid var(--text-secondary);
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.restart-test-btn:hover {
    background: var(--text-secondary);
    color: white;
    transform: translateY(-2px);
}

/* Responsive Design for Test */
@media (max-width: 768px) {
    .test-stats {
        gap: 1rem;
    }
    
    .question-navigation {
        flex-direction: column;
    }
    
    .nav-btn {
        width: 100%;
    }
    
    .options-grid {
        grid-template-columns: 1fr;
    }
    
    .region-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .test-container {
        padding: 1rem;
        margin: 0 0.5rem;
    }
    
    .region-stats-grid {
        grid-template-columns: 1fr;
    }
}
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #8b5cf6;
    --secondary: #8b5cf6;
    --secondary-dark: #7c3aed;
    --accent: #06b6d4;
    --accent-hover: #0891b2;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --dark-lighter: #334155;
    --light: #f8fafc;
    --light-dark: #f1f5f9;
    --light-darker: #e2e8f0;
    --nickname-password:#ffffff;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-xl: 0 35px 60px -15px rgba(0, 0, 0, 0.3);
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
    --gradient-dark: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--light);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Animated Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #1e293b 0%, #334155 25%, #475569 50%, #64748b 75%, #1e293b 100%);
    background-size: 400% 400%;
    animation: gradientShift 20s ease infinite;
    opacity: 0.1;
}

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

/* Floating Particles */
.particle {
    position: fixed;
    pointer-events: none;
    opacity: 0;
    z-index: -1;
}

.particle::before {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    filter: blur(3px);
}

@keyframes floatUp {
    0% {
        opacity: 0;
        bottom: -10%;
        transform: translateX(0) scale(0);
    }
    10% {
        opacity: 1;
        transform: scale(1);
    }
    90% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        bottom: 110%;
        transform: translateX(100px) scale(0);
    }
}

/* Header Styles */
header {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.logo {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
    transition: transform 0.3s ease;
    animation: logoFloat 3s ease-in-out infinite;
    flex-shrink: 0;
}

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

.logo:hover {
    transform: scale(1.1) rotate(5deg);
}

.header-title {
    font-size: clamp(1.2rem, 4vw, 2.5rem);
    font-weight: 900;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: titleGlow 3s ease-in-out infinite;
    text-shadow: 0 4px 8px rgba(0,0,0,0.3);
    text-align: center;
    flex: 1;
    min-width: 200px;
}

@keyframes titleGlow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.2); }
}

/* Login Container */
.login-container {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    position: relative;
}

.login-box {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2rem;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
    transform: translateY(0);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    background-clip: padding-box;
}

.login-box::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-radius: 20px;
    z-index: -1;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.login-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl), 0 20px 40px rgba(30, 41, 59, 0.3);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    padding: 1.5rem;
    border-radius: 15px;
    margin: -2rem -2rem 2rem -2rem;
}

.login-logo {
    height: 80px;
    width: auto;
    margin-bottom: 1rem;
    filter: drop-shadow(0 8px 16px rgba(255,255,255,0.3));
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.login-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.login-subtitle {
    color: white;
    font-size: clamp(0.8rem, 3vw, 1rem);
    font-weight: 300;
    opacity: 0.9;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--nickname-password);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    transition: color 0.3s ease;
    z-index: 3;
    font-size: 1rem;
}

.form-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    background: var(--light);
    border: 2px solid transparent;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    z-index: 2;
    color: var(--text-primary);
}

.input-wrapper::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-radius: 12px;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.form-input:focus {
    outline: none;
    background: white;
    box-shadow: 0 0 0 4px rgba(30, 41, 59, 0.1);
    transform: translateY(-2px);
    z-index: 3;
    color: var(--text-primary);
}

.input-wrapper:focus-within::before {
    opacity: 1;
}

.form-input:focus + .input-icon {
    color: var(--primary);
}

.btn-primary {
    width: 100%;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(30, 41, 59, 0.3);
    touch-action: manipulation;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before,
.btn-primary:active::before {
    left: 100%;
}

.btn-primary:hover,
.btn-primary:active {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 41, 59, 0.5);
}

.error-message {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(239, 68, 68, 0.1);
    border: 2px solid var(--danger);
    border-radius: 10px;
    color: var(--danger);
    text-align: center;
    font-weight: 600;
    display: none;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* Navigation */
nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 900;
    border-bottom: 1px solid var(--light-darker);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
    padding: 0.5rem 0;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-item {
    padding: 0.75rem 1rem;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-size: 0.9rem;
    white-space: nowrap;
    touch-action: manipulation;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-item::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    transition: width 0.3s ease;
}

.nav-item:hover,
.nav-item:active {
    color: var(--primary);
    background: var(--light);
    transform: translateY(-2px);
}

.nav-item:hover::before,
.nav-item:active::before {
    width: 100%;
}

.nav-item.active-tab {
    color: white;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    box-shadow: 0 4px 15px rgba(30, 41, 59, 0.3);
}

.nav-item.logout {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    margin-left: auto;
}

.nav-item.logout:hover,
.nav-item.logout:active {
    background: var(--danger);
    color: white;
}

.nav-item i {
    margin-right: 0.5rem;
    font-size: 1rem;
}

/* Main Content */
.portal {
    display: none;
    animation: fadeIn 0.5s ease;
}

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

.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem;
    min-height: calc(100vh - 200px);
}

.section {
    display: none;
    animation: slideIn 0.5s ease;
}

.section.active {
    display: block;
}

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

.section-title {
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 900;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

/* Dashboard Cards */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.dashboard-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.dashboard-card:hover,
.dashboard-card:active {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

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

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.card-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 8px 25px rgba(30, 41, 59, 0.3);
    animation: iconFloat 3s ease-in-out infinite;
    flex-shrink: 0;
}

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

.card-title {
    font-size: clamp(1.2rem, 4vw, 1.5rem);
    font-weight: 700;
    color: var(--text-primary);
    flex: 1;
    min-width: 150px;
}

.card-content {
    color: var(--text-secondary);
    font-size: clamp(0.9rem, 3vw, 1.1rem);
    line-height: 1.6;
}

/* Table Styles */
.table-container {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-top: 2rem;
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.table th {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.875rem;
}

.table td {
    padding: 1rem;
    border-bottom: 1px solid var(--light-darker);
    color: var(--text-primary);
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.table tr:hover td {
    background: var(--light);
    transform: scale(1.01);
}

.table tr:last-child td {
    border-bottom: none;
}

/* Course Materials */
.course-list {
    list-style: none;
    margin-top: 1rem;
}

.course-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--light-darker);
    transition: all 0.3s ease;
}

.course-item:hover,
.course-item:active {
    padding-left: 1rem;
    border-color: var(--primary);
}

.course-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(0.9rem, 3vw, 1.1rem);
    position: relative;
    display: block;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.course-link::after {
    content: '→';
    position: absolute;
    right: 0;
    opacity: 0;
    transition: all 0.3s ease;
}

.course-link:hover::after,
.course-link:active::after {
    opacity: 1;
    right: -20px;
}

/* Map Section */
.map-section {
    display: none;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    margin-top: 2rem;
    animation: slideIn 0.5s ease;
}

.map-header {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    padding: 1.5rem;
    text-align: center;
    font-size: clamp(1.2rem, 4vw, 2rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.map-header::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: ripple 4s ease-in-out infinite;
}

@keyframes ripple {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

.map-container {
    display: flex;
    min-height: 600px;
    flex-direction: column;
}

.map-content {
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light) !important;
    position: relative;
    flex: 1;
}

/* Italy Map Container */
.italy-map-container {
    position: relative;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    background: var(--light) !important;
    border-radius: 15px;
    overflow: visible;
    padding: 2rem;
}

.italy-map {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
    border-radius: 15px;
    display: block;
    background: var(--light) !important;
}

.italy-map:hover {
    transform: scale(1.02);
}

/* Region Labels */
.region-label {
    position: absolute;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(30, 41, 59, 0.3);
    border: 2px solid white;
    text-align: center;
    min-width: 60px;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    user-select: none;
}

.region-label:hover {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 8px 25px rgba(30, 41, 59, 0.5);
    z-index: 20;
}

.region-label.selected {
    background: linear-gradient(135deg, #334155 0%, #475569 100%);
    transform: translate(-50%, -50%) scale(1.15);
    box-shadow: 0 12px 35px rgba(51, 65, 85, 0.6);
    z-index: 20;
}

.map-sidebar {
    padding: 1.5rem;
    background: white;
    border-top: 1px solid var(--light-darker);
    overflow-y: auto;
    max-height: 500px;
}

.region-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--light);
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    flex-wrap: wrap;
    gap: 1rem;
}

.region-header:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.region-flag {
    width: 60px;
    height: 45px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--shadow);
    flex-shrink: 0;
}

.region-name {
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    font-weight: 800;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    flex: 1;
    min-width: 150px;
}

.region-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(30, 41, 59, 0.3);
}

.stat-card:hover,
.stat-card:active {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(30, 41, 59, 0.5);
}

.stat-label {
    font-size: 0.75rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: clamp(1rem, 3vw, 1.0rem);
    font-weight: 800;
}

.universities-section {
    margin-top: 1.5rem;
}

.universities-title {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.university-list {
    list-style: none;
}

.university-item {
    background: white;
    border: 2px solid var(--light-darker);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.university-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    opacity: 0.1;
    transition: left 0.5s ease;
}

.university-item:hover::before,
.university-item:active::before {
    left: 0;
}

.university-item:hover,
.university-item:active {
    transform: translateX(5px);
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.university-name {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: clamp(1rem, 3vw, 1.2rem);
}

.university-location {
    font-size: clamp(0.8rem, 2.5vw, 0.9rem);
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.university-location i {
    margin-right: 8px;
    color: var(--secondary);
    flex-shrink: 0;
}

.university-type {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(30, 41, 59, 0.3);
}

.university-type.private {
    background: var(--gradient-accent);
    box-shadow: 0 4px 10px rgba(71, 85, 105, 0.3);
}

/* University Modal */
.university-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    z-index: 2000;
    overflow-y: auto;
    padding: 1rem;
    animation: fadeIn 0.3s ease;
}

.university-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 20px;
    width: 100%;
    max-width: 1200px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    position: relative;
    margin: auto;
    animation: slideInUp 0.3s ease;
}

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

.modal-header {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.modal-university-name {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-university-info {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.modal-university-type {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-university-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.modal-body {
    padding: 2rem;
}

.departments-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.department-section {
    background: var(--light);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.department-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.department-list {
    list-style: none;
}

.department-item {
    background: white;
    border: 2px solid var(--light-darker);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.department-item:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.department-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.department-details {
    display: none;
    margin-top: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 15px;
    border-left: 4px solid var(--primary);
    box-shadow: var(--shadow);
}

.department-details.show {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
    }
    to {
        opacity: 1;
        max-height: 800px;
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }
}

.detail-section {
    margin-bottom: 1.5rem;
    background: white;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}

.detail-title {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-title i {
    font-size: 1rem;
}

.detail-content {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.requirements-list {
    list-style: none;
    padding-left: 0;
}

.requirements-list li {
    padding: 0.4rem 0;
    position: relative;
    padding-left: 1.5rem;
    border-bottom: 1px solid var(--light-darker);
}

.requirements-list li:last-child {
    border-bottom: none;
}

.requirements-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
    font-size: 1.1rem;
}

.campus-info {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: white;
    padding: 1rem;
    border-radius: 10px;
    margin-top: 0.5rem;
}

.campus-name {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.campus-location {
    font-size: 0.9rem;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.scholarship-tag {
    display: inline-block;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.5rem;
}

.difficulty-badge {
    display: inline-block;
    padding: 0.3rem 0.7rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.5rem;
}

.difficulty-easy {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.difficulty-medium {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.difficulty-hard {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.application-period {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
}

.period-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.period-dates {
    font-size: 0.9rem;
    opacity: 0.9;
}

.scholarship-info {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 15px;
    margin-top: 2rem;
}

.scholarship-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.scholarship-content {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* University Counter */
.universities-counter {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    padding: 1rem;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .departments-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .modal-content {
        margin: 1rem;
        max-height: calc(100vh - 2rem);
    }
    
    .region-label {
        font-size: 0.6rem;
        padding: 0.2rem 0.4rem;
        min-width: 45px;
        border-radius: 12px;
    }
    
    .italy-map-container {
        max-width: 500px;
    }
}

@media (max-width: 480px) {
    .region-label {
        font-size: 0.5rem;
        padding: 0.15rem 0.3rem;
        min-width: 35px;
        border-radius: 10px;
    }
    
    .italy-map-container {
        max-width: 350px;
    }
    
    .map-content {
        padding: 1rem;
    }
}

/* Region positioning */
.region-label[data-region="Valle d'Aosta"] { top: 15%; left: 10%; }
.region-label[data-region="Piemonte"] { top: 22%; left: 18%; }
.region-label[data-region="Lombardia"] { top: 17%; left: 30%; }
.region-label[data-region="Trentino-Alto Adige"] { top: 11%; left: 40%; }
.region-label[data-region="Veneto"] { top: 18%; left: 48%; }
.region-label[data-region="Friuli-Venezia Giulia"] { top: 13%; left: 57%; }
.region-label[data-region="Liguria"] { top: 28%; left: 22%; }
.region-label[data-region="Emilia-Romagna"] { top: 30%; left: 40%; }
.region-label[data-region="Toscana"] { top: 41%; left: 38%; }
.region-label[data-region="Umbria"] { top: 43%; left: 50%; }
.region-label[data-region="Marche"] { top: 37%; left: 55%; }
.region-label[data-region="Lazio"] { top: 50%; left: 45%; }
.region-label[data-region="Abruzzo"] { top: 48%; left: 62%; }
.region-label[data-region="Molise"] { top: 52%; left: 70%; }
.region-label[data-region="Campania"] { top: 60%; left: 61%; }
.region-label[data-region="Puglia"] { top: 57%; left: 81%; }
.region-label[data-region="Basilicata"] { top: 68%; left: 78%; }
.region-label[data-region="Calabria"] { top: 77%; left: 80%; }
.region-label[data-region="Sicilia"] { top: 88%; left: 59%; }
.region-label[data-region="Sardegna"] { top: 65%; left: 20%; }

/* Footer */
footer {
    background: var(--gradient-dark);
    color: white;
    text-align: center;
    padding: 2rem 1rem;
    margin-top: 3rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

footer p {
    font-size: clamp(0.9rem, 3vw, 1.1rem);
    opacity: 0.9;
    letter-spacing: 0.5px;
    line-height: 1.6;
}

/* Loading Animation */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--light-darker);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (min-width: 1024px) {
    .map-container {
        flex-direction: row;
        min-height: 600px;
    }
    
    .map-content {
        flex: 2;
        padding: 2rem;
    }
    
    .map-sidebar {
        flex: 1;
        border-left: 1px solid var(--light-darker);
        border-top: none;
        max-height: 700px;
    }
}
.university-image-section {
    padding: 0 1.5rem 1rem 1.5rem;
    margin-bottom: 1rem;
}

.university-image {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.university-image:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

/* Responsive için */
@media (max-width: 768px) {
    .university-image {
        height: 180px;
    }
    
    .university-image-section {
        padding: 0 1rem 1rem 1rem;
    }
}

@media (max-width: 480px) {
    .university-image {
        height: 150px;
        border-radius: 8px;
    }
}
/* Search Engine Styles */
.search-engine-container {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--primary);
}

.search-header {
    text-align: center;
    margin-bottom: 2rem;
}

.search-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.search-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
}

.search-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    align-items: center;
}

.search-input-wrapper {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 2px solid var(--light-darker);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.filter-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 2px solid var(--light-darker);
    background: white;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.search-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--light);
    border-radius: 10px;
    flex-wrap: wrap;
    gap: 1rem;
}

.search-results-count {
    font-weight: 600;
    color: var(--text-primary);
}

.clear-search {
    background: var(--danger);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.clear-search:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

.search-results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.search-result-card {
    background: white;
    border: 2px solid var(--light-darker);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.search-result-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, rgba(99, 102, 241, 0.1) 100%);
    opacity: 0.05;
    transition: left 0.5s ease;
}

.search-result-card:hover::before {
    left: 0;
}

.search-result-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.result-university {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.result-program {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.result-details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.result-tag {
    padding: 0.25rem 0.5rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tag-level {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.tag-location {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: white;
}

.tag-type {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
}

.result-info {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.no-results {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.no-results i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Responsive */
@media (max-width: 768px) {
    .search-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-input-wrapper {
        width: 100%;
    }
    
    .search-stats {
        flex-direction: column;
        text-align: center;
    }
    
    .search-results {
        grid-template-columns: 1fr;
    }
}