* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background: #f8f9fc;
  color: #333;
}

.header {
  display: flex;
  justify-content: space-between;
  padding: 16px 40px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.nav a {
  margin-left: 20px;
  text-decoration: none;
  color: #333;
}

.hero {
  text-align: center;
  padding: 80px 20px;
}

.hero h1 {
  font-size: 36px;
  margin-bottom: 16px;
}

.hero button {
  padding: 12px 24px;
  background: #4f6ef7;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.footer {
  text-align: center;
  padding: 20px;
  background: #fff;
  margin-top: 60px;
}
.classes {
  padding: 60px 40px;
  text-align: center;
}

.classes h2 {
  font-size: 28px;
  margin-bottom: 10px;
}

.class-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.class-card {
  background: #fff;
  padding: 30px;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: 0.3s;
}

.class-card:hover {
  transform: translateY(-6px);
}

.class-card h3 {
  margin-bottom: 12px;
}

.class-card a {
  display: inline-block;
  margin-top: 16px;
  color: #4f6ef7;
  text-decoration: none;
  font-weight: bold;
}
.why-us {
  padding: 80px 40px;
  background: #ffffff;
}

.why-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  max-width: 1100px;
  margin: auto;
}

.why-text h2 {
  font-size: 28px;
  margin-bottom: 20px;
}

.why-text ul {
  list-style: none;
}

.why-text li {
  margin-bottom: 12px;
  font-size: 16px;
}

.why-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.stat {
  background: #f8f9fc;
  padding: 30px;
  text-align: center;
  border-radius: 14px;
}

.stat h3 {
  font-size: 32px;
  color: #4f6ef7;
}
.quick-nav {
  padding: 80px 40px;
  background: #f8f9fc;
  text-align: center;
}

.quick-nav h2 {
  font-size: 28px;
  margin-bottom: 40px;
}

.nav-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: auto;
}

.nav-card {
  background: #fff;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: 0.3s;
  cursor: pointer;
}

.nav-card:hover {
  transform: translateY(-6px);
}

.nav-card h3 {
  margin-bottom: 10px;
  color: #4f6ef7;
}
.footer {
  background: #111827;
  color: #d1d5db;
  padding-top: 60px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
  max-width: 1100px;
  margin: auto;
  padding: 0 40px;
}

.footer-col h3,
.footer-col h4 {
  color: #ffffff;
  margin-bottom: 16px;
}

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

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: #d1d5db;
  text-decoration: none;
}

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  padding: 20px;
  border-top: 1px solid #374151;
  font-size: 14px;
}
.page-title {
  padding: 60px 20px;
  text-align: center;
}

.classes-page {
  max-width: 1000px;
  margin: auto;
  padding: 40px 20px;
}

.class-block {
  background: #fff;
  padding: 30px;
  border-radius: 16px;
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.lesson-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.lesson {
  background: #f8f9fc;
  padding: 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.2s;
}

.lesson:hover {
  background: #4f6ef7;
  color: white;
}
.lesson-header {
  padding: 60px 20px;
  text-align: center;
  background: #f8f9fc;
}

.lesson-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  max-width: 1100px;
  margin: auto;
  padding: 40px 20px;
}

.lesson-main {
  background: #fff;
  padding: 30px;
  border-radius: 16px;
}

.lesson-main h2 {
  margin-top: 20px;
}

.download {
  display: inline-block;
  margin-right: 10px;
  margin-top: 10px;
  color: #4f6ef7;
  text-decoration: none;
  font-weight: bold;
}

.lesson-sidebar {
  background: #fff;
  padding: 24px;
  border-radius: 16px;
  height: fit-content;
}

.test-btn {
  display: block;
  margin-top: 20px;
  padding: 12px;
  text-align: center;
  background: #4f6ef7;
  color: white;
  border-radius: 10px;
  text-decoration: none;
}
.test-container {
  max-width: 800px;
  margin: auto;
  padding: 40px 20px;
}

.question-block {
  background: #fff;
  padding: 24px;
  border-radius: 14px;
  margin-bottom: 20px;
}

.question-block label {
  display: block;
  margin-top: 10px;
}

.test-submit {
  padding: 14px 30px;
  background: #4f6ef7;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}

.test-result {
  margin-top: 20px;
  font-size: 18px;
  font-weight: bold;
}
.auth-container {
  max-width: 400px;
  margin: 80px auto;
  background: #fff;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  text-align: center;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 20px;
}

.auth-form input,
.auth-form select {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #ddd;
}

.auth-form button {
  padding: 14px;
  background: #4f6ef7;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}
.admin-container {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

.admin-sidebar {
  background: #111827;
  color: #fff;
  padding: 30px;
}

.admin-sidebar ul {
  list-style: none;
  margin-top: 20px;
}

.admin-sidebar li {
  margin-bottom: 14px;
  cursor: pointer;
}

.admin-main {
  padding: 40px;
  background: #f8f9fc;
}

.admin-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.admin-card {
  background: #fff;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.admin-card button {
  margin-top: 12px;
  padding: 10px 20px;
  background: #4f6ef7;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}
/* ===== ADMIN PANEL ===== */

.admin-container {
  max-width: 1100px;
  margin: 40px auto;
  padding: 20px;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background: #1e293b;
  color: #fff;
}

.header .logo {
  font-size: 20px;
  font-weight: bold;
}

.header button {
  background: #ef4444;
  border: none;
  color: white;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
}

.header button:hover {
  background: #dc2626;
}

/* FORM CARD */
.admin-form {
  background: #ffffff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 40px;
}

.admin-form textarea {
  grid-column: span 2;
  resize: vertical;
  min-height: 80px;
}

.admin-form input,
.admin-form textarea {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-size: 14px;
}

.admin-form input:focus,
.admin-form textarea:focus {
  outline: none;
  border-color: #2563eb;
}

.admin-form button {
  grid-column: span 2;
  background: #2563eb;
  color: white;
  padding: 12px;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  cursor: pointer;
}

.admin-form button:hover {
  background: #1d4ed8;
}

/* LESSON LIST */
#lessonsList {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.lesson-card {
  background: white;
  padding: 18px;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  transition: transform 0.2s ease;
}

.lesson-card:hover {
  transform: translateY(-4px);
}

.lesson-card strong {
  font-size: 16px;
  display: block;
  margin-bottom: 6px;
}

.lesson-card p {
  font-size: 14px;
  color: #475569;
}

/* TITLES */
.admin-container h1 {
  margin-bottom: 20px;
}

.admin-container h2 {
  margin-bottom: 15px;
  margin-top: 10px;
}
.lesson-card {
  background: #fff;
  padding: 16px;
  margin-bottom: 12px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.delete-btn {
  background: #e53935;
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
}

.delete-btn:hover {
  background: #c62828;
}
/* ================= HERO NEW ================= */
.hero-new {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    180deg,
    #eef4ff 0%,
    #f8fbff 60%,
    #ffffff 100%
  );
  padding: 80px 20px;
}

.hero-content {
  max-width: 900px;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  background: #e6eeff;
  color: #2f5bea;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  margin-bottom: 20px;
  font-weight: 500;
}

.hero-content h1 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.2;
  color: #111827;
  margin-bottom: 20px;
}

.hero-content h1 span {
  color: #2f5bea;
}

.hero-content p {
  font-size: 18px;
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 40px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: #2f5bea;
  color: #fff;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s;
}

.btn-primary:hover {
  background: #2448c7;
}

.btn-secondary {
  background: #ffffff;
  color: #111827;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid #e5e7eb;
  transition: 0.3s;
}

.btn-secondary:hover {
  background: #f3f4f6;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 36px;
  }

  .hero-content p {
    font-size: 16px;
  }
}
.features {
  padding: 80px 20px;
  background: #f8fafc;
  text-align: center;
}

.features-header h2 {
  font-size: 32px;
  margin-bottom: 10px;
}

.features-header p {
  color: #555;
  margin-bottom: 40px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  max-width: 1100px;
  margin: auto;
}

.feature-card {
  background: #fff;
  padding: 30px 20px;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-card .icon {
  font-size: 36px;
  margin-bottom: 15px;
}

.feature-card h3 {
  margin-bottom: 10px;
  font-size: 18px;
}
/* ===== RESOURCES PAGE ===== */
.resources-hero {
  background: linear-gradient(180deg, #f8fafc, #ffffff);
  padding: 60px 20px;
  text-align: left;
  max-width: 1200px;
  margin: auto;
}

.resources-hero h1 {
  font-size: 32px;
  margin-bottom: 10px;
}

.resources-hero p {
  color: #555;
  max-width: 700px;
}

/* ===== SECTION ===== */
.resources-section {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.resources-section h2 {
  margin-bottom: 20px;
  font-size: 22px;
}

/* ===== GRID ===== */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

/* ===== CARD ===== */
.resource-card {
  background: #fff;
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

.resource-info h3 {
  font-size: 15px;
  margin-bottom: 6px;
}

.resource-info span {
  font-size: 13px;
  color: #777;
}

/* ===== BUTTON ===== */
.download-btn {
  background: #f1f5f9;
  color: #333;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 13px;
  text-decoration: none;
  transition: 0.2s;
}

.download-btn:hover {
  background: #e2e8f0;
}
/* ===== TEACHER RESOURCES ===== */
.teacher-resources {
  padding: 80px 8%;
  background: #f9fbff;
}

.resources-header {
  text-align: center;
  margin-bottom: 50px;
}

.resources-header h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 10px;
}

.resources-header p {
  color: #555;
  font-size: 16px;
}

.section-subtitle {
  font-size: 24px;
  margin-bottom: 25px;
}

/* GRID: 2 x 2 */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

/* CARD */
.resource-card {
  background: #fff;
  border-radius: 14px;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 8px 25px rgba(0,0,0,0.06);
  transition: 0.3s;
}

.resource-card:hover {
  transform: translateY(-5px);
}

.resource-info h4 {
  font-size: 18px;
  margin-bottom: 6px;
}

.resource-info span {
  font-size: 14px;
  color: #777;
}

/* DOWNLOAD BUTTON */
.download-btn {
  background: #eef2ff;
  color: #2f5bea;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}

.download-btn:hover {
  background: #2f5bea;
  color: #fff;
}
/* ===============================
   O‘QITUVCHILAR UCHUN RESURSLAR
   =============================== */

.teacher-resources {
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 20px;
}

/* HAR BIR BLOK */
.resource-block {
  margin-bottom: 60px;
}

/* BLOK SARLAVHASI */
.resource-title {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* GRID (2 TEPADA + 2 PASTDA) */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* CARD */
.resource-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 8px 25px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.resource-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

/* CARD ICHI */
.resource-info h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.file-info {
  font-size: 13px;
  color: #6b7280;
}

/* YUKLAB OLISH */
.download-btn {
  background: #f1f5f9;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 14px;
  color: #111827;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s ease;
}

.download-btn:hover {
  background: #e5e7eb;
}

/* ===============================
   METODIK KARTOCHKALAR
   =============================== */

.metodik-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-top: 20px;
}

.metodik-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0,0,0,0.05);
}

.metodik-icon {
  font-size: 40px;
  margin-bottom: 15px;
}

.metodik-card h4 {
  font-size: 18px;
  margin-bottom: 10px;
}

.metodik-card p {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.6;
}

/* ===============================
   CALL TO ACTION
   =============================== */

.cta-section {
  background: linear-gradient(135deg, #2563eb, #1e40af);
  padding: 80px 20px;
  text-align: center;
  border-radius: 30px;
  margin: 80px auto;
  max-width: 1200px;
}

.cta-container h2 {
  color: #ffffff;
  font-size: 32px;
  margin-bottom: 15px;
}

.cta-container p {
  color: #dbeafe;
  font-size: 16px;
  margin-bottom: 30px;
}

.btn-primary {
  background: #ffffff;
  color: #1e40af;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* ===============================
   RESPONSIVE
   =============================== */

@media (max-width: 900px) {
  .resource-grid {
    grid-template-columns: 1fr;
  }

  .metodik-cards {
    grid-template-columns: 1fr;
  }

  .cta-container h2 {
    font-size: 26px;
  }
}
/* ===== STATISTIKA SECTION ===== */
.stats-section {
  padding: 80px 10%;
  background: #f7f9fc;
}

.stats-header {
  text-align: center;
  margin-bottom: 50px;
}

.stats-header h2 {
  font-size: 32px;
  margin-bottom: 10px;
}

.stats-header p {
  color: #666;
}

/* Stat cards */
.stats-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 25px;
  margin-bottom: 60px;
}

.stat-card {
  background: #fff;
  border-radius: 14px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}

.stat-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.stat-number {
  font-size: 36px;
  font-weight: bold;
  color: #2563eb;
}

.stat-number.online {
  color: #16a34a;
}

/* Charts */
.charts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.chart-box {
  background: #fff;
  padding: 30px;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}

.chart-box h4 {
  margin-bottom: 25px;
}

/* Bar chart */
.bar-chart .bar {
  margin-bottom: 18px;
}

.bar-chart span {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
}

.bar-fill {
  height: 14px;
  background: linear-gradient(90deg, #2563eb, #60a5fa);
  border-radius: 8px;
}

/* Usage list */
.usage-list {
  list-style: none;
  padding: 0;
}

.usage-list li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.usage-list li:last-child {
  border-bottom: none;
}
.edu-section {
  padding: 60px 10%;
}

.edu-block {
  margin-bottom: 70px;
}

.edu-block h2 {
  margin-bottom: 10px;
}

.edu-block p {
  color: #555;
  margin-bottom: 25px;
}

.edu-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 25px;
}

.edu-card {
  background: #fff;
  padding: 25px;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}

.edu-card h3 {
  margin-bottom: 10px;
}
/* ================= UMUMIY ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}

body {
  background: #f6f8fc;
  color: #222;
  line-height: 1.6;
}

/* ================= HEADER ================= */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 10%;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.logo {
  font-size: 20px;
  font-weight: 700;
  color: #2563eb;
}

.nav a {
  margin-left: 20px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

.nav a.active,
.nav a:hover {
  color: #2563eb;
}

/* ================= PAGE TITLE ================= */
.page-title {
  text-align: center;
  padding: 60px 10% 40px;
}

.page-title h1 {
  font-size: 36px;
  margin-bottom: 10px;
}

.page-title p {
  color: #555;
}

/* ================= EDU SECTION ================= */
.edu-section {
  padding: 40px 10% 70px;
}

.edu-block {
  margin-bottom: 70px;
}

.edu-block h2 {
  font-size: 26px;
  margin-bottom: 8px;
}

.edu-block p {
  color: #555;
  margin-bottom: 25px;
}

/* ================= CARDS ================= */
.edu-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 25px;
}

.edu-card {
  background: #fff;
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.edu-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 35px rgba(0,0,0,0.12);
}

.edu-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.edu-card p {
  color: #666;
  margin-bottom: 18px;
  font-size: 14px;
}

/* ================= BUTTONS ================= */
.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.25s ease;
}

/* Primary */
.btn-primary {
  background: #2563eb;
  color: #fff;
}

.btn-primary:hover {
  background: #1e40af;
}

/* Secondary */
.btn-secondary {
  background: #eef2ff;
  color: #2563eb;
}

.btn-secondary:hover {
  background: #dbeafe;
}

/* ================= FOOTER ================= */
.footer {
  background: #ffffff;
  border-top: 1px solid #eee;
  padding: 20px 10%;
  text-align: center;
}

.footer-bottom p {
  color: #666;
  font-size: 14px;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {

  .header {
    flex-direction: column;
    gap: 10px;
  }

  .nav a {
    margin: 0 10px;
  }

  .page-title h1 {
    font-size: 28px;
  }

  .edu-section {
    padding: 30px 6%;
  }
}
/* ===== HERO BUTTONS CUSTOM ===== */

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
}

/* Oddiy matn */
.hero-text-link {
  font-size: 18px;
  color: #475569;
  cursor: default;
}

/* O‘qituvchilar uchun tugma */
.teacher-btn {
  position: relative;
  padding: 14px 26px;
  background: #eef2ff;
  color: #1e40af;
  border-radius: 14px;
  font-weight: 600;
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover animatsiya */
.teacher-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(30,64,175,0.25);
}

/* Yorqin animatsiya effekti */
.teacher-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 120%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.6),
    transparent
  );
  transition: left 0.6s ease;
}

.teacher-btn:hover::before {
  left: 120%;
}
/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Arial, sans-serif;
}

body {
  background: #f4f6f8;
  color: #222;
  line-height: 1.6;
}

/* ===== HEADER ===== */
.header {
  background: #0f172a;
  color: #fff;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 20px;
  font-weight: bold;
}

.nav a {
  color: #fff;
  text-decoration: none;
  margin-left: 15px;
  padding-bottom: 4px;
  font-size: 15px;
}

.nav a:hover,
.nav a.active {
  border-bottom: 2px solid #38bdf8;
}

/* ===== PAGE TITLE ===== */
.page-title {
  background: #e5f0ff;
  padding: 40px 20px;
  text-align: center;
}

.page-title h1 {
  font-size: 32px;
  margin-bottom: 10px;
}

.page-title p {
  color: #555;
  font-size: 15px;
}

/* ===== MAIN SECTION ===== */
.edu-section {
  max-width: 1100px;
  margin: auto;
  padding: 40px 20px;
}

/* ===== BLOCK ===== */
.edu-block {
  background: #ffffff;
  padding: 25px;
  border-radius: 12px;
  margin-bottom: 35px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.edu-block h2 {
  margin-bottom: 8px;
}

.edu-block p {
  margin-bottom: 20px;
  color: #555;
}

/* ===== CARDS ===== */
.edu-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}

.edu-card {
  background: #f9fafb;
  padding: 20px;
  border-radius: 10px;
  transition: 0.2s;
}

.edu-card:hover {
  transform: translateY(-4px);
}

.edu-card h3 {
  margin-bottom: 8px;
  font-size: 16px;
}

.edu-card p {
  font-size: 14px;
  color: #666;
  margin-bottom: 15px;
}

/* ===== INPUTS ===== */
.input,
input[type="text"],
input[type="number"],
input[type="file"],
select {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 14px;
}

select {
  background: #fff;
}

/* ===== BUTTONS ===== */
.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: #2563eb;
  color: #fff;
}

.btn-primary:hover {
  background: #1d4ed8;
}

.btn-secondary {
  background: #16a34a;
  color: #fff;
}

.btn-secondary:hover {
  background: #15803d;
}

/* ===== FOOTER ===== */
.footer {
  background: #0f172a;
  color: #fff;
  text-align: center;
  padding: 15px;
  margin-top: 40px;
}

.footer-bottom p {
  font-size: 14px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .header {
    flex-direction: column;
    gap: 10px;
  }

  .nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  .page-title h1 {
    font-size: 24px;
  }
}
textarea.input {
  resize: vertical;
  min-height: 260px;
}
.btn-danger {
  background: #dc2626;
  color: #fff;
  border: none;
  padding: 8px 12px;
  margin-top: 8px;
  border-radius: 6px;
  cursor: pointer;
}
.btn-danger:hover {
  background: #b91c1c;
}
/* =========================
   TEST SAHIFALARI
========================= */

/* Test konteyneri */
.test-box {
  background: #ffffff;
  border-radius: 14px;
  padding: 22px;
  margin-bottom: 22px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.08);
}

/* Savol sarlavhasi */
.test-box h3 {
  font-size: 18px;
  margin-bottom: 14px;
  color: #1f2937;
}

/* Variantlar */
.answer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  margin: 8px 0;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #f9fafb;
}

.answer:hover {
  background: #eef2ff;
  border-color: #6366f1;
}

.answer input {
  transform: scale(1.2);
  cursor: pointer;
}

/* To‘g‘ri javob */
.answer.correct {
  background: #ecfdf5;
  border-color: #22c55e;
  color: #14532d;
  font-weight: 600;
}

/* Noto‘g‘ri javob */
.answer.wrong {
  background: #fee2e2;
  border-color: #ef4444;
  color: #7f1d1d;
  font-weight: 600;
}

/* Tekshirish tugmasi */
.test-check-btn {
  display: block;
  margin: 30px auto 0;
  padding: 14px 26px;
  font-size: 16px;
  border-radius: 10px;
}

/* Natija oynasi */
.result-box {
  margin-top: 30px;
  padding: 25px;
  text-align: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #e0f2fe, #f0f9ff);
  box-shadow: 0 10px 26px rgba(0,0,0,0.1);
  display: none;
}

.result-box h2 {
  font-size: 22px;
  margin-bottom: 12px;
  color: #0f172a;
}

.result-box p {
  font-size: 18px;
  margin: 6px 0;
}

/* Progress (ixtiyoriy keyin) */
.result-box .score {
  font-size: 28px;
  font-weight: 700;
  color: #2563eb;
}

/* Mobil moslashuv */
@media (max-width: 600px) {
  .test-box {
    padding: 16px;
  }

  .answer {
    font-size: 14px;
    padding: 10px;
  }

  .result-box {
    padding: 18px;
  }
}
/* ===== ADMIN ASOSIY BLOK ===== */
.admin-main-block {
  border: 2px dashed #4f46e5;
  background: #f8f9ff;
  text-align: center;
}

.admin-main-block h2 {
  margin-bottom: 10px;
  color: #1e1b4b;
}

.admin-main-block p {
  margin-bottom: 20px;
  color: #555;
}

.admin-open-btn {
  display: inline-block;
  padding: 12px 26px;
  font-size: 16px;
}
/* SECTION */
.metodik-section {
  padding: 60px 20px;
  background: #f9fafb;
}

/* TITLE */
.metodik-title-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.metodik-title {
  font-size: 28px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* CARDS */
.metodik-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.metodik-card {
  background: #fff;
  padding: 30px 25px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.metodik-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.metodik-icon {
  font-size: 40px;
  margin-bottom: 15px;
}

.metodik-card h4 {
  font-size: 18px;
  margin-bottom: 10px;
}

.metodik-card p {
  font-size: 15px;
  color: #555;
  line-height: 1.6;
}
/* ===== UMUMIY STILLAR ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  padding: 20px;
  color: #333;
}

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

/* ===== ASOSIY HEADER ===== */
.main-header {
  text-align: center;
  color: white;
  margin-bottom: 40px;
  animation: fadeInDown 0.8s ease;
}

.main-header h1 {
  font-size: 2.5em;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.main-header p {
  font-size: 1.2em;
  opacity: 0.95;
}

/* ===== STATISTIKA KARTOCHALARI ===== */
.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.stat-card {
  background: white;
  padding: 25px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
}

.stat-number {
  font-size: 2.5em;
  font-weight: bold;
  color: #667eea;
  display: block;
  margin-bottom: 10px;
}

.stat-label {
  color: #666;
  font-size: 1em;
}

/* ===== RESURSLAR BO'LIMI ===== */
.teacher-resources {
  background: white;
  border-radius: 20px;
  padding: 40px;
  margin-bottom: 30px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  animation: fadeInUp 0.8s ease;
}

.resources-header {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 3px solid #667eea;
}

.resources-header h2 {
  color: #667eea;
  font-size: 2em;
  margin-bottom: 10px;
}

.resources-header p {
  color: #666;
  font-size: 1.1em;
}

/* ===== BO'LIM SARLAVHALARI ===== */
.section-subtitle, .resource-title {
  font-size: 1.5em;
  color: #764ba2;
  margin: 30px 0 20px 0;
  padding-left: 10px;
  border-left: 4px solid #667eea;
}

.resource-block {
  margin: 40px 0;
}

/* ===== RESURS KARTOCHALARI GRID ===== */
.resources-grid, .resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

/* ===== RESURS KARTOCHASI ===== */
.resource-card {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  border-radius: 15px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  animation: fadeIn 0.6s ease forwards;
  opacity: 0;
}

/* Kartochalar uchun ketma-ket animatsiya */
.resource-card:nth-child(1) { animation-delay: 0.1s; }
.resource-card:nth-child(2) { animation-delay: 0.2s; }
.resource-card:nth-child(3) { animation-delay: 0.3s; }
.resource-card:nth-child(4) { animation-delay: 0.4s; }
.resource-card:nth-child(5) { animation-delay: 0.5s; }
.resource-card:nth-child(6) { animation-delay: 0.6s; }

.resource-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
  border-color: #667eea;
}

/* ===== RESURS MA'LUMOTLARI ===== */
.resource-info h4 {
  color: #333;
  font-size: 1.1em;
  margin-bottom: 10px;
  line-height: 1.4;
}

.resource-info span, .file-info {
  color: #666;
  font-size: 0.9em;
  display: block;
  margin-top: 5px;
}

/* ===== YUKLAB OLISH TUGMASI ===== */
.download-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 8px;
  margin-top: 15px;
  display: inline-block;
  font-weight: 600;
  transition: all 0.3s ease;
  text-align: center;
}

.download-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.download-btn:active {
  transform: scale(0.98);
}

/* ===== BILDIRISHNOMA ===== */
.notification {
  background: #4caf50;
  color: white;
  padding: 15px;
  border-radius: 10px;
  position: fixed;
  top: 20px;
  right: 20px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
  display: none;
  animation: slideIn 0.3s ease;
  z-index: 1000;
}

/* ===== ANIMATSIYALAR ===== */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

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

/* ===== RESPONSIV DIZAYN (MOBIL QURILMALAR) ===== */
@media (max-width: 768px) {
  .main-header h1 {
    font-size: 1.8em;
  }
  
  .teacher-resources {
    padding: 20px;
  }

  .resources-grid, .resource-grid {
    grid-template-columns: 1fr;
  }

  .stats-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-number {
    font-size: 2em;
  }
}

@media (max-width: 480px) {
  body {
    padding: 10px;
  }

  .main-header h1 {
    font-size: 1.5em;
  }

  .main-header p {
    font-size: 1em;
  }

  .resources-header h2 {
    font-size: 1.5em;
  }

  .teacher-resources {
    padding: 15px;
  }

  .resource-card {
    padding: 20px;
  }

  .stats-container {
    grid-template-columns: 1fr;
  }
}

/* ===== SCROLL ANIMATSIYASI ===== */
html {
  scroll-behavior: smooth;
}

/* ===== LOADING ANIMATSIYASI ===== */
.resource-card.loading {
  animation: pulse 1.5s ease-in-out infinite;
}

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

/* ===== QUSHIMCHA EFFEKTLAR ===== */
.resource-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 15px;
  pointer-events: none;
}

.resource-card:hover::before {
  opacity: 1;
}

/* ===== TUGMA HOVER EFFEKTI ===== */
.download-btn::after {
  content: ' →';
  transition: margin-left 0.3s ease;
}

.download-btn:hover::after {
  margin-left: 5px;
}
/* ===== CHIQISH TUGMASI ===== */
.exit-btn {
  position: fixed;
  top: 20px;
  right: 20px;  /* left dan right ga o'zgardi */
  background: #e74c3c;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1em;
  transition: all 0.3s ease;
  z-index: 999;
  box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.exit-btn:hover {
  background: #c0392b;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

.exit-btn:active {
  transform: translateY(0);
}