/* Reset va asosiy uslublar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #ec4899;
    --dark-color: #1e293b;
    --light-color: #f1f5f9;
    --text-color: #334155;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.15);
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 1.3rem;
    font-weight: bold;
    text-decoration: none;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo i {
    font-size: 1.6rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.4rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* Notification Bell */
.notification-bell {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--light-color);
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    margin-right: 1rem;
}

.notification-bell:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.1);
}

.notification-bell i {
    font-size: 1.1rem;
}

.notification-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger-color);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    animation: bellPulse 2s ease-in-out infinite;
}

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

/* User Dropdown */
.user-dropdown {
    position: relative;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 6px 12px;
    background: var(--light-color);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.user-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

.user-avatar-img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.user-notification-badge {
    background: var(--danger-color);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    animation: badgePulse 2s ease-in-out infinite;
}

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

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    padding: 0.5rem 0;
    display: none;
    z-index: 1001;
}

.dropdown-menu.active {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: var(--light-color);
    color: var(--primary-color);
}

.dropdown-divider {
    height: 1px;
    background: var(--light-color);
    margin: 0.5rem 0;
}

/* Auth Buttons */
.btn-login {
    padding: 10px 25px;
    background: var(--gradient);
    color: var(--white);
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-register {
    padding: 10px 25px;
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 10px;
}

.btn-register:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* Auth Modal - Chiroyli dizayn */
.auth-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.auth-modal-overlay.active {
    display: flex;
}

.auth-modal-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 900px;
    width: 95%;
    max-height: 90vh;
    background: var(--white);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    position: relative;
    animation: slideIn 0.4s ease;
}

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

.auth-modal-close:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: rotate(90deg);
}

.auth-modal-left {
    background: var(--gradient);
    color: var(--white);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.auth-modal-left::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.auth-modal-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.auth-modal-brand i {
    font-size: 2rem;
}

.auth-modal-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.auth-modal-content h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.auth-modal-content p {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.auth-modal-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: relative;
    z-index: 1;
}

.auth-modal-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
}

.auth-modal-feature i {
    color: #10b981;
}

.auth-modal-illustration {
    text-align: center;
    margin-top: 1.5rem;
    position: relative;
    z-index: 1;
}

.auth-modal-illustration i {
    font-size: 6rem;
    opacity: 0.2;
}

.auth-modal-right {
    padding: 2rem 2.5rem;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    max-height: 90vh;
}

.auth-modal-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    background: var(--light-color);
    padding: 0.25rem;
    border-radius: 12px;
}

.auth-modal-tab {
    flex: 1;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-modal-tab.active {
    background: var(--white);
    color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.auth-modal-form-container {
    display: none;
}

.auth-modal-form-container.active {
    display: block;
}

.auth-modal-form-container h2 {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-bottom: 0.25rem;
}

.auth-modal-form-container > p {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.auth-form-group {
    margin-bottom: 1.25rem;
}

.auth-form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    color: var(--dark-color);
    font-size: 0.9rem;
}

.auth-input-icon {
    position: relative;
}

.auth-input-icon i:first-child {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-color);
    opacity: 0.5;
}

.auth-input-icon input {
    width: 100%;
    padding: 0.85rem 1rem 0.85rem 2.75rem;
    border: 2px solid var(--light-color);
    border-radius: 12px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

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

.auth-toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-color);
    opacity: 0.5;
    cursor: pointer;
    padding: 0;
}

.auth-toggle-password:hover {
    opacity: 1;
}

.auth-form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.auth-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-color);
}

.auth-checkbox-label a {
    color: var(--primary-color);
    text-decoration: none;
}

.auth-checkbox-label a:hover {
    text-decoration: underline;
}

.auth-forgot-link {
    font-size: 0.85rem;
    color: var(--primary-color);
    text-decoration: none;
}

.auth-forgot-link:hover {
    text-decoration: underline;
}

.auth-submit-btn {
    width: 100%;
    padding: 0.9rem;
    background: var(--gradient);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.auth-submit-btn.signup {
    background: linear-gradient(135deg, #10b981, #34d399);
}

.auth-submit-btn.signup:hover {
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
}

.auth-divider {
    text-align: center;
    margin: 1.25rem 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--light-color);
}

.auth-divider span {
    background: var(--white);
    padding: 0 1rem;
    position: relative;
    color: var(--text-color);
    font-size: 0.85rem;
}

.auth-social-buttons {
    display: flex;
    gap: 0.75rem;
}

.auth-social-btn {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid var(--light-color);
    border-radius: 12px;
    background: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-color);
}

.auth-social-btn:hover {
    border-color: var(--primary-color);
    background: var(--light-color);
}

.auth-social-btn.google i {
    color: #ea4335;
}

.auth-social-btn.telegram i {
    color: #0088cc;
}

.auth-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

/* Responsive for Auth Modal */
@media (max-width: 768px) {
    .auth-modal-container {
        grid-template-columns: 1fr;
        max-width: 95%;
        max-height: 95vh;
    }
    
    .auth-modal-left {
        display: none;
    }
    
    .auth-modal-right {
        padding: 1.5rem;
    }
    
    .auth-form-row {
        grid-template-columns: 1fr;
    }
}

/* Legacy form styles for other pages */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-color);
}

.form-group input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid var(--light-color);
    border-radius: 15px;
    font-size: 1rem;
    transition: border 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-submit {
    width: 100%;
    padding: 1rem;
    background: var(--gradient);
    color: var(--white);
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.form-footer {
    text-align: center;
    margin-top: 1rem;
}

.form-footer a {
    color: var(--primary-color);
    text-decoration: none;
}

/* Hero Section */
.hero {
    background: var(--gradient);
    color: var(--white);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-animation {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><circle cx="100" cy="100" r="50" fill="rgba(255,255,255,0.1)"/><circle cx="900" cy="400" r="80" fill="rgba(255,255,255,0.1)"/><circle cx="1100" cy="150" r="60" fill="rgba(255,255,255,0.1)"/></svg>');
    animation: float 20s ease-in-out infinite;
}

/* Buttons */
.btn {
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--white);
    color: var(--primary-color);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-large {
    padding: 18px 50px;
    font-size: 1.2rem;
    background: var(--gradient);
    color: var(--white);
}

/* Stats Section */
.stats {
    background: var(--white);
    padding: 60px 0;
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

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

.stat-card {
    text-align: center;
    padding: 2rem;
    background: var(--light-color);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.stat-card i {
    font-size: 3rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.stat-card h3 {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

/* User Stats Section */
.user-stats-section {
    background: var(--white);
    padding: 40px 0;
}

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

.user-stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--light-color);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.user-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.user-stat-card.success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
}

.user-stat-card.accent {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.1), rgba(236, 72, 153, 0.05));
}

.user-stat-card.primary {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(99, 102, 241, 0.05));
}

.user-stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
}

.user-stat-info h3 {
    font-size: 1.75rem;
    color: var(--dark-color);
    margin-bottom: 0.25rem;
}

.user-stat-info p {
    color: var(--text-color);
    font-size: 0.9rem;
}

/* Section */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 3rem;
    opacity: 0.8;
}

.section-footer {
    text-align: center;
    margin-top: 3rem;
}

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

.card {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    color: inherit;
    display: block;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon i {
    font-size: 2.5rem;
    color: var(--white);
}

.card h3 {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.card p {
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

/* Subject Card Desktop */
.subject-card-desktop {
    text-decoration: none;
}

.subject-card-desktop:hover .btn-outline {
    background: var(--primary-color);
    color: var(--white);
}

/* Exam Cards */
.exam-icon.secondary {
    background: linear-gradient(135deg, #10b981, #34d399);
}

.exam-icon.accent {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
}

/* Certificate Section */
.certificate-section {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: var(--white);
}

.certificate-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    align-items: center;
}

.certificate-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.certificate-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.certificate-features {
    list-style: none;
    margin-bottom: 2rem;
}

.certificate-features li {
    padding: 1rem 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.certificate-features i {
    color: #10b981;
    font-size: 1.5rem;
}

.certificate-image {
    text-align: center;
}

.certificate-image i {
    font-size: 15rem;
    opacity: 0.2;
    animation: rotate 20s linear infinite;
}

/* Universities Section */
.universities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
    max-width: 1500px;
    margin: 0 auto;
}

.university-card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    padding: 0 !important;
}

.university-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.university-image {
    width: 100%;
    height: 200px;
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
    margin: 0;
    padding: 0;
    border-radius: 16px 16px 0 0;
}

.university-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    margin: 0;
    padding: 0;
    border-radius: 16px 16px 0 0;
}

.university-card:hover .university-image img {
    transform: scale(1.1);
    filter: brightness(1.05);
}

.university-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, transparent 50%, rgba(0, 0, 0, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.university-card:hover .university-image-overlay {
    opacity: 1;
}

.university-image.university-placeholder {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.university-placeholder i {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.4s ease;
    z-index: 1;
}

.university-card:hover .university-placeholder i {
    transform: scale(1.15) rotate(5deg);
}

.university-content {
    padding: 1rem 1.2rem 1.2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.university-card h3 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    transition: color 0.3s ease;
    line-height: 1.3;
}

.university-card:hover h3 {
    color: var(--primary-color);
}

.university-card p {
    margin-bottom: 0.8rem;
    color: var(--text-color);
    font-size: 0.85rem;
    line-height: 1.4;
    flex: 1;
}

.university-card .btn-outline {
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    align-self: flex-start;
}

.university-card:hover .btn-outline {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* Leaderboard Section */
.leaderboard-section {
    background: var(--white);
}

.leaderboard-container {
    max-width: 700px;
    margin: 0 auto;
}

.leaderboard-list {
    background: var(--light-color);
    border-radius: 20px;
    padding: 1rem;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--white);
    border-radius: 15px;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.leaderboard-item:last-child {
    margin-bottom: 0;
}

.leaderboard-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow);
}

.leaderboard-item.top-1 {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
}

.leaderboard-item.top-2 {
    background: linear-gradient(135deg, #e5e7eb, #d1d5db);
}

.leaderboard-item.top-3 {
    background: linear-gradient(135deg, #fed7aa, #fdba74);
}

.leaderboard-rank {
    width: 50px;
    text-align: center;
}

.rank-badge {
    font-size: 1.5rem;
}

.rank-number {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
}

.leaderboard-user {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--gradient);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
}

.user-details h4 {
    font-size: 1rem;
    color: var(--dark-color);
    margin-bottom: 0.25rem;
}

.user-details span {
    font-size: 0.85rem;
    color: var(--text-color);
    opacity: 0.7;
}

.leaderboard-points {
    text-align: right;
}

.points-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.points-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-color);
}

.user-position {
    text-align: center;
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--light-color);
    border-radius: 15px;
}

/* AI Assistant Section */
.ai-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
}

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

.ai-feature-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.ai-feature-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-10px);
}

.ai-feature-card i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.ai-feature-card h3 {
    margin-bottom: 0.5rem;
}

.ai-chat-demo {
    margin: 3rem 0;
    display: flex;
    justify-content: center;
}

.ai-chat-container {
    background: var(--white);
    border-radius: 20px;
    width: 100%;
    max-width: 600px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.ai-chat-header {
    background: var(--gradient);
    color: var(--white);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ai-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.ai-status-dot {
    width: 10px;
    height: 10px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.ai-chat-messages {
    height: 300px;
    overflow-y: auto;
    padding: 1.5rem;
    background: #f8f9fa;
}

.ai-message {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    animation: slideIn 0.3s ease;
}

.ai-message.ai-user {
    flex-direction: row-reverse;
}

.ai-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    background: var(--light-color);
}

.ai-message.ai-user .ai-avatar {
    background: var(--primary-color);
    color: var(--white);
}

.ai-message-content {
    background: var(--white);
    padding: 1rem;
    border-radius: 15px;
    max-width: 70%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    color: var(--text-color);
}

.ai-message.ai-user .ai-message-content {
    background: var(--primary-color);
    color: var(--white);
}

.ai-message-content p {
    margin: 0;
    line-height: 1.5;
}

.ai-chat-input {
    display: flex;
    padding: 1rem;
    background: var(--white);
    border-top: 1px solid #e0e0e0;
}

.ai-chat-input input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 25px;
    outline: none;
    font-size: 1rem;
}

.ai-chat-input input:focus {
    border-color: var(--primary-color);
}

.ai-chat-input button {
    margin-left: 0.5rem;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    background: var(--gradient);
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.ai-chat-input button:hover {
    transform: scale(1.1);
}

.ai-suggestions {
    margin-top: 3rem;
    text-align: center;
}

.ai-suggestions h3 {
    margin-bottom: 1.5rem;
}

.ai-suggestion-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.ai-suggestion-btn {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.ai-suggestion-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Floating AI Chat Button */
.ai-float-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient);
    color: var(--white);
    border: none;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    transition: all 0.3s ease;
    z-index: 999;
}

.ai-float-btn:hover {
    transform: scale(1.1);
}

.ai-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: var(--white);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
}

/* Floating Chat Window */
.ai-chat-window {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 380px;
    max-height: 500px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    display: none;
    flex-direction: column;
    z-index: 998;
    animation: slideUp 0.3s ease;
    overflow: hidden;
}

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

.ai-chat-window.active {
    display: flex;
}

.ai-chat-window .ai-chat-messages {
    height: 350px;
}

.ai-minimize-btn {
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
}

/* CTA Section */
.cta-section {
    background: var(--dark-color);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.cta-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 60px 0 20px;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.footer-logo i {
    font-size: 2rem;
    color: var(--primary-color);
}

.footer-col p {
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

.footer-col h4 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer-col ul li a:hover {
    opacity: 1;
    padding-left: 5px;
}

.footer-col ul li i {
    margin-right: 10px;
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
}

/* Messages */
.messages-container {
    padding: 1rem 0;
}

.alert {
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
}

.alert-error, .alert-danger {
    background: #fee2e2;
    color: #991b1b;
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
}

.alert-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.7;
}

.alert-close:hover {
    opacity: 1;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-color);
    opacity: 0.7;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
}

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

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

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

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

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

/* Responsive Design */
@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        transition: left 0.3s ease;
        box-shadow: var(--shadow);
        z-index: 999;
        gap: 1rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .section-title {
        font-size: 2rem;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .ai-chat-window {
        width: calc(100% - 20px);
        right: 10px;
        bottom: 80px;
    }

    .user-dropdown {
        width: 100%;
    }

    .user-btn {
        width: 100%;
        justify-content: center;
    }

    .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        border: 1px solid var(--light-color);
        margin-top: 0.5rem;
    }
}

@media (max-width: 1200px) {
    .universities-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .universities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero {
        padding: 60px 0;
    }

    .section {
        padding: 50px 0;
    }

    .stats {
        padding: 40px 0;
    }

    .cards-grid,
    .ai-features-grid,
    .user-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .universities-grid {
        grid-template-columns: 1fr;
    }
    
    .university-image {
        height: 160px;
    }

    .certificate-content {
        grid-template-columns: 1fr;
    }

    .certificate-image i {
        font-size: 8rem;
    }

    .btn-large {
        padding: 15px 40px;
        font-size: 1rem;
    }

    .ai-float-btn {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 20px;
        right: 20px;
    }

    .ai-suggestion-buttons {
        flex-direction: column;
    }

    .ai-suggestion-btn {
        width: 100%;
    }
}


/* ============================================
   ADDITIONAL DESKTOP STYLES
   ============================================ */

/* Page Header */
.page-header {
    background: var(--gradient);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.page-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Filter Section */
.filter-section {
    background: var(--white);
    padding: 20px 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 70px;
    z-index: 100;
}

.filter-tabs {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-tab {
    padding: 10px 24px;
    border-radius: 50px;
    background: var(--light-color);
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-tab:hover,
.filter-tab.active {
    background: var(--gradient);
    color: var(--white);
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--white);
}

.breadcrumb i {
    font-size: 0.7rem;
    opacity: 0.6;
}

.breadcrumb span {
    color: var(--white);
}

/* Section Title Left */
.section-title-left {
    font-size: 1.75rem;
    color: var(--dark-color);
    margin-bottom: 2rem;
}

/* Full Width Empty State */
.empty-state.full-width {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
}

.empty-state i {
    font-size: 4rem;
    color: var(--text-color);
    opacity: 0.3;
    margin-bottom: 1rem;
}

.empty-state h3 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-color);
    opacity: 0.7;
}

/* Button Block */
.btn-block {
    flex: 1;
    text-align: center;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .page-header {
        padding: 40px 0;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .filter-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 10px;
    }
    
    .filter-tab {
        white-space: nowrap;
    }
}


/* ================================
   TEST PAGE STYLES - Desktop
   ================================ */

.main-content {
    min-height: calc(100vh - 80px);
}

/* Test page - main-content ichida grid ishlashi uchun */
.main-content:has(.test-page) {
    display: contents;
}

/* Test page grid layout fix */
.test-page {
    display: grid !important;
    grid-template-columns: 280px 1fr 300px !important;
    min-height: calc(100vh - 80px);
    background: var(--light-color);
}

.test-page .test-sidebar {
    background: var(--white);
    border-right: 1px solid #e5e7eb;
    padding: 24px;
    position: sticky;
    top: 80px;
    height: calc(100vh - 80px);
    overflow-y: auto;
}

.test-page .test-main {
    padding: 32px 48px;
    max-width: 900px;
}

.test-page .ads-sidebar {
    background: var(--white);
    border-left: 1px solid #e5e7eb;
    padding: 24px;
    position: sticky;
    top: 80px;
    height: calc(100vh - 80px);
    overflow-y: auto;
}

@media (max-width: 1200px) {
    .test-page {
        grid-template-columns: 280px 1fr !important;
    }
    .test-page .ads-sidebar {
        display: none;
    }
}

@media (max-width: 1024px) {
    .test-page {
        grid-template-columns: 1fr !important;
    }
    .test-page .test-sidebar {
        display: none;
    }
    .test-page .test-main {
        padding: 20px;
        max-width: 100%;
    }
}
