/* ===== ROOT & RESET ===== */
:root {
    --primary-color: #4F6AF6;
    --primary-hover: #3b55d9;
    --text-dark: #2D3A6A;
    --text-muted: #5A5D7A;
    --bg-light: #F8FAFC;
    --white: #FFFFFF;
    --border-color: #E2E8F0;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 20px rgba(79, 106, 246, 0.08);
    --shadow-lg: 0 15px 30px rgba(0, 0, 0, 0.1);
    --nav-height: 85px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== TYPOGRAPHY & BUTTONS ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 800;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

.btn-primary-blue {
    background: linear-gradient(90deg, #1C65E5, #4489FC);
    color: white;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(37, 102, 245, 0.25);
    transition: transform 0.2s, box-shadow 0.2s;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary-blue:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(37, 102, 245, 0.35);
}

.btn-secondary-outline {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--text-dark);
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.btn-secondary-outline:hover {
    background: rgba(255, 255, 255, 0.7);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* ===== NAVBAR ===== */
.navbar {
    height: var(--nav-height);
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1366px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: #2D3A6A;
}

.nav-links-pill {
    display: flex;
    gap: 8px;
    background: var(--bg-light);
    padding: 6px;
    border-radius: 50px;
    border: 1px solid var(--border-color);
}

.nav-link {
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    color: #5A5D7A;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.nav-link.active {
    background: #EEF2FF;
    color: var(--primary-color);
}

.nav-link:hover:not(.active) {
    background: rgba(0, 0, 0, 0.03);
}

.nav-lang {
    display: flex;
    align-items: center;
}

.lang-select {
    padding: 10px 16px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-light);
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    cursor: pointer;
    transition: all 0.2s;
}

.lang-select:hover {
    border-color: var(--primary-color);
}

.lang-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(79, 106, 246, 0.1);
}

.nav-right {
    display: flex;
    align-items: center;
}

.nav-auth-buttons {
    display: flex;
    gap: 15px;
}

/* User Profile (Logged In) */
.nav-user-profile {
    position: relative;
    display: flex;
    align-items: center;
}

.profile-trigger {
    display: flex;
    align-items: center;
    gap: 12px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    border-radius: 50px;
    transition: background 0.2s;
}

.profile-trigger:hover {
    background: #f1f5f9;
}

.nav-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e2e8f0;
}

.nav-username {
    font-weight: 700;
    color: #1e293b;
    font-size: 0.95rem;
}

.profile-chevron {
    width: 16px;
    height: 16px;
    color: #64748b;
    transition: transform 0.3s ease;
}

.profile-trigger[aria-expanded="true"] .profile-chevron {
    transform: rotate(180deg);
}

.profile-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 260px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.15);
    border: 1px solid #f1f5f9;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
}

.profile-dropdown.dropdown-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.dropdown-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #e0e7ff;
}

.dropdown-userinfo {
    display: flex;
    flex-direction: column;
}

.dropdown-name {
    font-weight: 800;
    color: #1e293b;
    font-size: 1.05rem;
}

.dropdown-role {
    font-size: 0.85rem;
    color: #6366f1;
    font-weight: 600;
    background: #e0e7ff;
    padding: 2px 8px;
    border-radius: 12px;
    display: inline-block;
    margin-top: 4px;
    width: fit-content;
}

.dropdown-divider {
    height: 1px;
    background: #f1f5f9;
    margin: 0;
}

.dropdown-menu {
    list-style: none;
    padding: 10px;
    margin: 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #475569;
    text-decoration: none;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.2s;
    cursor: pointer;
    background: none;
    border: none;
    width: 100%;
    font-size: 0.95rem;
    font-family: inherit;
    text-align: left;
}

.dropdown-item:hover {
    background: #f8fafc;
    color: #1e293b;
}

.dd-icon {
    width: 20px;
    height: 20px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dropdown-item:hover .dd-icon {
    color: #6366f1;
}

.dropdown-item--danger {
    color: #ef4444;
}

.dropdown-item--danger:hover {
    background: #fef2f2;
    color: #dc2626;
}

.dropdown-item--danger:hover .dd-icon {
    color: #dc2626;
}


/* ===== HERO SECTION ===== */
.hero {
    padding: 30px 0;
    display: flex;
    justify-content: center;
}

.hero-banner {
    width: 1366px;
    height: 480px;
    border-radius: 24px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    margin: 0 40px;
    background-color: #f1f5f9;
    /* fallback */
}

/* Background Crossfade Slider */
.bg-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: right 20%;
    /* Shows the upper part where the faces are */
    background-repeat: no-repeat;
    opacity: 0;
    z-index: 1;
    animation: slideFade 20s infinite;
    /* 20s total for 4 slides */
}

.slide-1 {
    background-image: url('Raimlar/hero_bg_1.jpg');
    animation-delay: 0s;
}

.slide-2 {
    background-image: url('Raimlar/hero_bg_2.jpg');
    animation-delay: 5s;
}

.slide-3 {
    background-image: url('Raimlar/hero_bg_3.jpg');
    animation-delay: 10s;
}

.slide-4 {
    background-image: url('Raimlar/hero_bg_4.jpg');
    animation-delay: 15s;
}

@keyframes slideFade {

    0%,
    20% {
        opacity: 1;
    }

    25%,
    95% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.hero-text-overlay {
    position: absolute;
    top: 50%;
    left: 40px;
    transform: translateY(-50%);
    max-width: 600px;
    z-index: 10;

    /* Glassmorphism effect */
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--text-dark);
    line-height: 1.15;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.hero-title span {
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    font-weight: 500;
    max-width: 80%;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 30px;
}

.hero-stat {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-stat-icon {
    font-size: 1.5rem;
    filter: drop-shadow(0 2px 4px rgba(255, 184, 0, 0.4));
}

.hero-stat-text {
    font-size: 1.05rem;
    color: var(--text-dark);
}

.hero-stat-text strong {
    font-weight: 800;
    font-size: 1.1rem;
}

/* ===== SERVICES GRID ===== */
.services {
    padding: 40px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1286px;
    margin: 0 auto;
    padding: 0 40px;
}

.service-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(79, 106, 246, 0.1);
    border-color: #A5B4FC;
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

/* Base icon colors */
.bg-purple {
    background: #F3E8FF;
    color: #9333EA;
}

.bg-blue {
    background: #DBEAFE;
    color: #2563EB;
}

.bg-orange {
    background: #FFEDD5;
    color: #EA580C;
}

.bg-green {
    background: #DCFCE7;
    color: #16A34A;
}

.bg-pink {
    background: #FCE7F3;
    color: #DB2777;
}

.bg-yellow {
    background: #FEF9C3;
    color: #CA8A04;
}

.service-content h3 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.service-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}


/* ===== STATS SECTION ===== */
.stats-section {
    max-width: 1286px;
    margin: 60px auto;
    background: linear-gradient(135deg, #4F6AF6, #2C4BDE);
    border-radius: 24px;
    padding: 50px 40px;
    display: flex;
    justify-content: space-around;
    color: white;
    box-shadow: 0 20px 40px rgba(79, 106, 246, 0.2);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 600;
    opacity: 0.9;
}


/* ===== REGISTRATION MODAL ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.modal-hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-content {
    background: #ffffff;
    width: 90%;
    max-width: 540px;
    border-radius: 24px;
    padding: 40px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(1);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-hidden .modal-content {
    transform: scale(0.95) translateY(20px);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #f1f5f9;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.2rem;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.modal-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* Form inputs & Structure for modal */
.modal-step-title {
    margin-bottom: 10px;
    color: #1e293b;
    font-size: 1.8rem;
}

.modal-step-sub {
    color: #64748b;
    margin-bottom: 30px;
    font-size: 1.05rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

.form-field--full {
    grid-column: 1 / -1;
}

.field-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: #334155;
}

.field-input,
select.field-input {
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    color: #0f172a;
    font-family: inherit;
    transition: all 0.2s;
    background: #f8fafc;
    outline: none;
    width: 100%;
}

.field-input:focus {
    border-color: #6366f1;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.field-err {
    color: #ef4444;
    font-size: 0.8rem;
    font-weight: 600;
    min-height: 16px;
    margin-top: 2px;
}

/* Google Sign-in Button & Divider */
.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    color: #94a3b8;
    font-size: 0.9rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e2e8f0;
}

.auth-divider span {
    padding: 0 15px;
}

.btn-google-signin {
    width: 100%;
    padding: 14px;
    background: #ffffff;
    color: #334155;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
}

.btn-google-signin:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.btn-google-signin img {
    width: 24px;
    height: 24px;
}

.btn-telegram-signin {
    width: 100%;
    padding: 14px;
    background: #ffffff;
    color: #1c6ed6;
    border: 2px solid #cce4ff;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
}

.btn-telegram-signin:hover {
    background: #f8fbff;
    border-color: #a5c8ff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.btn-telegram-signin img {
    width: 24px;
    height: 24px;
}

/* Buttons inside Modal */
.btn-row {
    display: flex;
    gap: 15px;
    justify-content: space-between;
    margin-top: 10px;
}

.btn-step-next,
.btn-step-submit {
    flex: 1;
    padding: 16px;
    background: #4f46e5;
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.btn-step-next:hover,
.btn-step-submit:hover {
    background: #4338ca;
    transform: translateY(-2px);
}

.btn-step-back {
    padding: 16px 24px;
    background: #f1f5f9;
    color: #475569;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-step-back:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* Role Selection Cards */
.role-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.role-card {
    cursor: pointer;
    position: relative;
}

.role-card input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.role-card-body {
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
    transition: all 0.2s;
    background: #ffffff;
    height: 100%;
}

.role-card:hover .role-card-body {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.role-card input:checked+.role-card-body {
    border-color: #4f46e5;
    background: #eef2ff;
}

.role-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 5px;
}

.teacher-clr {
    background: #e0e7ff;
    color: #4f46e5;
}

.student-clr {
    background: #dcfce7;
    color: #16a34a;
}

.role-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.role-title {
    font-weight: 800;
    color: #1e293b;
    font-size: 1.15rem;
}

.role-desc {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.4;
}

.role-check {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 24px;
    height: 24px;
    background: #4f46e5;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.2s;
}

.role-card input:checked+.role-card-body .role-check {
    opacity: 1;
    transform: scale(1);
}

/* Step Indicator */
.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 35px;
    gap: 10px;
}

.step-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.step-dot.active {
    background: #4f46e5;
    color: white;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.2);
}

.step-dot.completed {
    background: #e0e7ff;
    color: #4f46e5;
    border-color: #4f46e5;
}

.step-line {
    width: 40px;
    height: 3px;
    background: #e2e8f0;
    border-radius: 3px;
    transition: all 0.3s;
}

.step-line.active {
    background: #4f46e5;
}

/* Password visibility */
.pass-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.pass-wrap input {
    padding-right: 45px;
}

.pass-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #94a3b8;
    padding: 4px;
    border-radius: 6px;
}

.pass-toggle:hover {
    color: #4f46e5;
    background: #f1f5f9;
}

/* Toast */
.toast-notification {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: #10b981;
    color: white;
    padding: 16px 24px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
    transition: bottom 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10000;
}

.toast-notification.show {
    bottom: 30px;
}

.toast-icon {
    width: 24px;
    height: 24px;
    background: white;
    color: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

/* ===== USERS SECTION ===== */
.users-section {
    padding: 60px 0 40px;
    max-width: 1286px;
    margin: 0 auto;
    width: 100%;
    padding-left: 40px;
    padding-right: 40px;
}

.users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 10px;
}

.user-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.user-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(79, 106, 246, 0.1);
    border-color: #a5b4fc;
}

.user-card-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e0e7ff;
}

.user-card-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.user-card-name {
    font-weight: 800;
    color: #1e293b;
    font-size: 1rem;
}

.user-card-role {
    font-size: 0.8rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
}

.user-card-region {
    font-size: 0.8rem;
    color: #64748b;
}

.users-loading {
    text-align: center;
    color: #94a3b8;
    padding: 30px;
    grid-column: 1 / -1;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials-section {
    padding: 60px 40px;
    max-width: 1286px;
    margin: 0 auto;
    width: 100%;
}

.feedback-form-wrap {
    max-width: 600px;
    margin: 0 auto 40px;
}

.feedback-form-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.feedback-textarea {
    width: 100%;
    min-height: 100px;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    color: #0f172a;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s;
    background: #f8fafc;
}

.feedback-textarea:focus {
    border-color: #6366f1;
    background: #fff;
}

.feedback-stars {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    font-size: 2rem;
}

.star {
    cursor: pointer;
    color: #e2e8f0;
    transition: color 0.15s, transform 0.15s;
}

.star.hover,
.star.active {
    color: #fbbf24;
    transform: scale(1.2);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.testimonial-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 26px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.2s;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(79, 106, 246, 0.1);
    border-color: #a5b4fc;
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e0e7ff;
}

.testimonial-name {
    font-weight: 800;
    color: #1e293b;
    font-size: 1rem;
}

.testimonial-role {
    font-size: 0.8rem;
    color: #6366f1;
    font-weight: 600;
}

.testimonial-stars {
    margin-left: auto;
    font-size: 1.1rem;
    color: #fbbf24;
    letter-spacing: 2px;
}

.testimonial-text {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
    font-style: italic;
}

/* ===== SETTINGS PAGE STYLES ===== */
.settings-body {
    background-color: #f1f5f9;
}

.settings-container {
    max-width: 1000px;
    margin: 40px auto;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 80vh;
}

.settings-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    border-bottom: 1px solid #e2e8f0;
    background: #ffffff;
}

.settings-topbar .login-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--primary-color);
}

.settings-back-link {
    color: #64748b;
    font-weight: 600;
    transition: color 0.2s;
}

.settings-back-link:hover {
    color: var(--primary-color);
}

.settings-layout {
    display: flex;
    flex: 1;
}

.settings-sidebar {
    width: 260px;
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
    padding: 30px 20px;
}

.settings-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.settings-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: transparent;
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.settings-nav-item:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.settings-nav-item.active {
    background: var(--primary-color);
    color: white;
}

.settings-content {
    flex: 1;
    padding: 40px;
    background: #ffffff;
}

.settings-section-title {
    font-size: 1.8rem;
    color: #0f172a;
    margin-bottom: 8px;
}

.settings-section-desc {
    color: #64748b;
    margin-bottom: 30px;
    font-size: 1.05rem;
}

.settings-avatar-section {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 40px;
}

.avatar-upload-wrap {
    position: relative;
    width: 100px;
    height: 100px;
}

.settings-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e0e7ff;
}

.avatar-upload-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s;
    box-shadow: 0 4px 10px rgba(79, 106, 246, 0.3);
}

.avatar-upload-btn:hover {
    transform: scale(1.1);
}

.settings-avatar-info {
    display: flex;
    flex-direction: column;
}

.settings-avatar-name {
    font-size: 1.4rem;
    font-weight: 800;
    color: #1e293b;
}

.settings-avatar-role {
    font-size: 0.9rem;
    color: var(--primary-color);
    background: #e0e7ff;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 700;
    display: inline-block;
    width: fit-content;
    margin-top: 5px;
    margin-bottom: 8px;
}

.avatar-hint {
    font-size: 0.9rem;
    color: #94a3b8;
}

.settings-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.settings-form-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
    max-width: 500px;
}

.settings-form-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.settings-save-msg {
    font-weight: 700;
    font-size: 0.95rem;
}

/* ===== LOGIN PAGE ===== */
.login-body {
    background-color: #f1f5f9;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

.login-container {
    width: 100%;
    max-width: 450px;
    padding: 20px;
}

.login-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    padding: 40px;
    width: 100%;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-color);
}

.login-title {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.login-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.login-form .form-field {
    margin-bottom: 20px;
}

.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.forgot-link {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 600;
}

.forgot-link:hover {
    text-decoration: underline;
}

.form-options {
    margin-bottom: 25px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-dark);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    position: relative;
    transition: all 0.2s;
}

.checkbox-label input[type="checkbox"]:checked+.checkbox-custom {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-label input[type="checkbox"]:checked+.checkbox-custom::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.btn-login-submit {
    width: 100%;
}

.login-global-error {
    color: #ef4444;
    text-align: center;
    margin-top: 15px;
    font-size: 0.9rem;
    font-weight: 600;
    min-height: 20px;
}

.login-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
    font-size: 0.95rem;
    color: var(--text-muted);
}

.register-link {
    color: var(--primary-color);
    font-weight: 700;
}

.register-link:hover {
    text-decoration: underline;
}

/* ===== DYNAMIC HOMEPAGE SECTION ===== */
.dynamic-section {
    padding: 60px 40px;
    max-width: 1366px;
    margin: 0 auto;
}

.dynamic-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.dynamic-card {
    background: var(--white);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s ease;
}

.dynamic-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
}

.card-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.news-icon {
    background: #fee2e2;
    color: #ef4444;
}

.trophy-icon {
    background: #fef3c7;
    color: #f59e0b;
}

.comment-icon {
    background: #e0e7ff;
    color: #6366f1;
}

.card-title {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin: 0;
}

.card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 250px;
}

.card-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    background: #f8fafc;
}

.view-all {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    transition: transform 0.2s;
}

.view-all:hover {
    transform: translateX(5px);
}

/* News Item Style */
.news-item {
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transition: background 0.2s;
}

.news-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.news-item-icon {
    font-size: 1.1rem;
    color: var(--primary-color);
    background: #eff6ff;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.news-item-content h4 {
    font-size: 0.95rem;
    margin-bottom: 4px;
    margin-top: 0;
    color: var(--text-dark);
}

.news-item-content p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
}

/* Teacher Item Style */
.teacher-mini-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.teacher-mini-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.teacher-mini-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e0e7ff;
    flex-shrink: 0;
}

.teacher-mini-info h4 {
    font-size: 0.95rem;
    margin: 0;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 6px;
}

.teacher-mini-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}

.teacher-score {
    margin-left: auto;
    text-align: right;
}

.teacher-score .score-val {
    background: #ecfdf5;
    color: #10b981;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-block;
}

/* Testimonial Item Style */
.testimonial-mini {
    position: relative;
    padding-left: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.testimonial-mini:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.testimonial-mini::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -5px;
    font-family: serif;
    font-size: 2.5rem;
    color: #cbd5e1;
    line-height: 1;
    opacity: 0.5;
}

.testimonial-mini p {
    font-style: italic;
    font-size: 0.9rem;
    color: #475569;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

.testimonial-mini .author {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-dark);
    display: block;
}

.testm-rating {
    color: #f59e0b;
    font-size: 0.8rem;
    margin-bottom: 4px;
    letter-spacing: 1px;
}

.loading-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 40px auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .dynamic-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dynamic-card.testimonials-card {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .dynamic-section {
        padding: 40px 20px;
    }

    .dynamic-grid {
        grid-template-columns: 1fr;
    }

    .dynamic-card.testimonials-card {
        grid-column: auto;
    }
}