:root{
  --page-bg: #ffffff;   /* body fon */
  --surface: #ffffff;   /* kartalar, oq konteynerlar */
  --text: #111111;      /* default matn */
}



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

/* ===================================== */
/* KUN TUN ANIMATSIYASI */
/* ======================================== */

.theme-toggle{
  position: relative;
  width: 56px;
  height: 30px;
  border-radius: 999px;
  border: none;
  background: #e5e7eb;
  cursor: pointer;
  padding: 0;
  overflow: hidden;

  transition: background-color .25s ease;
}

/* ichidagi dumaloq slider */
.theme-toggle::before{
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 4px 10px rgba(0,0,0,.15);

  transition: transform .3s cubic-bezier(.4,0,.2,1);
}

/* ikonlar */
.theme-toggle .icon{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  pointer-events: none;
  transition: opacity .2s ease;
}

.theme-toggle .sun{ left: 8px; opacity: 1; }
.theme-toggle .moon{ right: 8px; opacity: 0; }

/* === TUN holati (faqat button uchun) === */
.theme-toggle.dark{
  background: #1f2937;
}

.theme-toggle.dark::before{
  transform: translateX(26px);
}

.theme-toggle.dark .sun{ opacity: 0; }
.theme-toggle.dark .moon{ opacity: 1; }

/* ================================== */
/* PAGES START FROM HERE */
/* ================================== */

html {
  scroll-behavior: smooth;
}

body { 
  background: var(--page-bg); 
  color: var(--text); 
}


/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 60px;
  position: -webkit-sticky; /* Safari uchun */
  position: sticky;
  top: 0;
  width: 100%;
  background-color: #008f40;
  z-index: 2000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.logo {
  display: flex;                /* asosiy o‘zgartirish shu */
  align-items: center;          /* vertikal markazlash */
  justify-content: center;      /* gorizontal markazlash */
  gap: 12px;                    /* rasm va matn orasidagi masofa */
  color: #ffffff;
  font-weight: bold;
  font-size: 20px;
  /* agar bu header yoki navbar ichida bo‘lsa, kerak bo‘lishi mumkin: */
  /* height: 80px; */           /* balandlik berish orqali vertikal joyni yaxshilash mumkin */
}
.logo span{
  cursor: pointer;
}

.logo-img {
  height: 40px;                 /* rasm balandligini o‘zingizga moslashtiring */
  width: auto;                  /* nisbat saqlanadi */
  display: block;
  cursor: pointer;
}


nav a {
  margin-left: 25px;
  text-decoration: none;
  color: #ffffff;
}

nav a:hover {
  color: #d4d4d4;
}

/* Hero */
.hero {
  text-align: center;
  margin-top: 100px;
}

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

.hero p {
  margin: 15px 0 30px;
  color: #555;
}

/* Form */
.form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 300px;
  margin: 0 auto;
}
form input,
form select {
  width: 100%;
  padding: 12px 15px;
  margin: 10px 0;
  border: 2px solid #008f40;
  border-radius: 8px;
  font-size: 16px;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.3s;
}

form input:focus,
form select:focus {
  border-color: #008f40;
}

form button {
  width: 100%;
  padding: 12px;
  background-color: #008f40;
  color: white;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s;
}

form button:hover {
  background-color: #0fa020;
}


.form input {
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.form button {
  padding: 12px;
  border: none;
  border-radius: 6px;
  background: #008f40;
  color: white;
  cursor: pointer;
  scroll-behavior: smooth;
}

.form button:hover {
  background: #4338ca;
}

.status {
  margin-top: 15px;
  font-size: 14px;
}


.courses {
   position: relative;
  overflow: hidden;
  margin: 80px 0;
  padding: 60px 20px;
  text-align: center;
  background:
  radial-gradient(1200px 700px at 12% 10%, rgba(34,197,94,.22), transparent 60%),
  radial-gradient(900px 650px at 88% 18%, rgba(16,185,129,.18), transparent 55%),
  radial-gradient(900px 650px at 45% 92%, rgba(250,204,21,.08), transparent 55%),
  linear-gradient(180deg, #0a8f3c, #066c2f);
}

@media (max-width: 600px) {
  .courses{
    height: 70vh;
  }
  .course-card.premium{
    height: 50vh;
    font-size: 44px;
  }
  .course-card.premium ul li{
    height: 40px;
    font-size: 44px;
  }
  
}

.courses h2 {
  font-size: 32px;
  margin-bottom: 30px;
  color: #fff;
}

/* Wrapper */
.carousel-wrapper {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  overflow: hidden;
  background-color: #008f40;
}

/* Track */
.carousel {
  display: flex;
  gap: 20px;
  align-items: center;
  will-change: transform;
  background-color: #008f40;
  
}


/* Card */
.course-card {
  flex: 0 0 clamp(220px, 70vw, 280px);
  height: 340px;
  background: var(--surface);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 10px 25px rgba(67, 191, 63, 0.428);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative; 

}

/* Buttons */
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #faebeb;
  border: none;
  font-size: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
}
#navbarLead { scroll-margin-top: 90px; } /* navbar balandligiga mos

/* 
.nav-btn.left { left: -10px; }
.nav-btn.right { right: -10px; } */


/* ===== PREMIUM COURSE CARD ===== */

.course-card.premium {
  backdrop-filter: blur(0px);
  padding: 60px 22px 24px;
  text-align: left;
  transition: 0.35s ease;
  position: relative;
  overflow: hidden;
}

.course-card.premium:hover {
  transform: translateY(-8px) scale(1.02);
}



/* Bayroq aylana */
.flag-circle {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 46px;
  height: 46px;
  background: #111;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.flag-circle img {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 50%;
}

.course-card.premium h3 {
  margin-bottom: 14px;
  font-size: 20px;
}

/* ro‘yxat */
.course-card.premium ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.course-card.premium ul li {
  margin-bottom: 9px;
  font-size: 13.5px;
  opacity: 0.9;
  padding-left: 20px;
  position: relative;
}

.course-card.premium ul li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #008f40;
  font-size: 13px;
}

/* Tugma */
 .course-btn {
  margin-top: auto;
  width: 100%;
  padding: 11px;
  border: none;
  border-radius: 10px;
  background: #008f40;
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
}


/* Buttons */
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.901);
  border: none;
  font-size: 30px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    display: flex;
  justify-content: center;
  align-items: center;
}

.nav-btn.left {
  left: -5px;
}

.nav-btn.right {
  right: -5px;
}

/* Responsive */
 @media (max-width: 600px) {
  .nav-btn {
    display: none;
  }
} 


.locations {
  /* margin: 120px 0; */
  text-align: center;
  background-color: #008f40;
  height: auto;
  padding: 20px;
  
}

.locations h2 {
  font-size: 32px;
  margin-bottom: 30px;
  color: #fff;
}

.map-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;

}

.map-card {
  background: var(--surface);
  border-radius: 16px;
  padding: 15px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.map-card h3 {
  margin-bottom: 10px;
}

.map-card iframe {
  width: 100%;
  height: 280px;
  border: none;
  border-radius: 12px;
}


.faq {
  margin: 120px 0;
  text-align: center;
}

.faq h2 {
  font-size: 32px;
  margin-bottom: 30px;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: left;
}

.faq-item {
  background: var(--surface);
  border-radius: 12px;
  margin-bottom: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  overflow: hidden;
}

.faq-question {
  padding: 18px 20px;
  cursor: pointer;
  font-weight: bold;
  position: relative;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 20px;
  font-size: 20px;
  transition: 0.3s;
}

.faq-item.active .faq-question::after {
  content: "–";
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  color: #555;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding: 0 20px 18px;
}



/* Navbar */


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

/* Side drawer */
.side-menu {
  position: fixed;
  top: 0;
  right: -250px;
  width: 250px;
  height: 100%;
  background: var(--surface);
  padding-top: 60px;
  display: flex;
  flex-direction: column;
  transition: right 0.3s ease;
  z-index: 1150;  /* ← BU QATORNI QO'SHING yoki OSHIRING */
}

.side-menu a {
  color: var(--text);
  text-decoration: none;
  padding: 15px 20px;
  font-size: 18px;
}

/* Overlay */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 1100;
}

/* Active states */
.side-menu.active {
  right: 0;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .burger {
    display: flex;
  }
}


/* Navbar */

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

.nav-links a {
  color: white;
  text-decoration: none;
  margin-left: 20px;
} */

/* Burger icon */
/* Burger icon qismini shu bilan almashtiring */
.burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    cursor: pointer;
    position: fixed; /* Navigatsiya ochilganda ham bir joyda turishi uchun */
    top: 25px;
    right: 25px;
    z-index: 2000; /* Hamma narsadan ustun */
}

.burger div {
  width: 100%;
  height: 3px;
  background: white; /* Navbar yashil bo'lganda oq ko'rinadi */
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* MUHIM: Menyuda "X" bo'lganda rangni qora qilish (oq fonda ko'rinishi uchun) */
.burger.active div {
  background: hsl(0, 0%, 100%) !important; /* Yashil yoki oq emas, panel ustida ko'rinadigan rang */ 
}

/* X animatsiyasi */
.burger.active div:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.burger.active div:nth-child(2) {
  opacity: 0;
}

.burger.active div:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}


/* Side drawer qismini yangilang */
/* Side drawer zamonaviy ko'rinishda */
.side-menu {
    position: fixed;
    top: 0;
    right: -100%; /* Dastlab butunlay yashirin bo'ladi */
    width: 300px;
    height: 100vh;
    background: #ffffff;
    
    /* Flexbox sozlamalari */
    display: flex;
    flex-direction: column; /* Linklar ustma-ust tushishi uchun */
    align-items: flex-start; /* Chap tomonga tekislash */
    justify-content: flex-start;
    
    padding: 100px 40px; /* Tepadan va yonlardan bo'shliq */
    transition: all 0.4s cubic-bezier(0.77, 0.2, 0.05, 1.0);
    z-index: 1500;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
}

.side-menu.active {
    right: 0; /* Menyu ochilganda ekranga chiqadi */
}

/* Linklar dizayni */
.side-menu a {
    color: #1a1a1a;
    text-decoration: none;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 30px; /* Har bir link orasidagi masofa */
    width: 100%;
    display: block;
    transition: 0.3s;
    border-bottom: 1px solid #f0f0f0; /* Pastki chiziq */
    padding-bottom: 10px;
}

.side-menu a:hover {
    color: #008f40;
    padding-left: 10px; /* Hover bo'lganda biroz siljiydi */
}

/* Overlay */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5); /* Biroz qorong'iroq */
  opacity: 0;
  backdrop-filter: blur(5px); /* ASOSIY QATOR: Orqani xiralashtiradi */
    -webkit-backdrop-filter: blur(5px); /* Safari brauzeri uchun */
  visibility: hidden;
  transition: 0.3s ease;
  z-index: 1400; /* Burger(1300) va Menu(1250) dan pastda */
}

/* Active states */
.side-menu.active {
  right: 0;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .burger {
    display: flex;
  }
}


/* ===== NOTEBOOK GLASS SECTION ===== */

.notebook-stage {
  padding: 80px 20px;
  background:#008f40 ;  
}

.notebook-screen {
  max-width: 1200px;
  margin: auto;
  border-radius: 30px;
  overflow: hidden;
  position: relative;

  /* Orqa fon */
  background: url("https://images.unsplash.com/photo-1522202176988-66273c2fd55f?q=80&w=1600")
    center / cover no-repeat;
}

/* Qorong'i overlay kontrast uchun */
.notebook-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom right,
    rgba(0,0,0,0.55),
    rgba(0,0,0,0.25)
  );
}

/* Ichki layout */
.glass-layout {
  position: relative;
  z-index: 2;
  min-height: 70vh;

  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  padding: 60px;
}

/* Glass kartalar */
.glass-main,
.glass-box {
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(255,255,255,0.08);
  border-radius: 40px;
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
}

/* Chap karta */
.glass-main {
  padding: 50px;
}

.glass-badge {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.5);
  margin-bottom: 24px;
  font-size: 14px;
  letter-spacing: 0.5px;
}

.glass-main h2 {
  font-size: 38px;
  margin-bottom: 16px;
  text-shadow: 0 0 12px rgba(255,255,255,0.4);
}

.glass-main p {
  font-size: 17px;
  line-height: 1.6;
  opacity: 0.9;
}

/* O'ng ustun */
.glass-side {
  display: grid;
  gap: 20px;
}

.glass-box {
  padding: 24px;
  text-align: center;
  font-weight: 600;
  font-size: 18px;
  text-shadow: 0 0 10px rgba(255,255,255,0.35);
}

/* 📱 Responsive */
@media (max-width: 900px) {
  .glass-layout {
    grid-template-columns: 1fr;
    padding: 40px;
  }

  .glass-main h2 {
    font-size: 30px;
  }
}

@media (max-width: 480px) {
  .glass-layout {
    padding: 24px;
  }

  .glass-main {
    padding: 28px;
  }

  .glass-main h2 {
    font-size: 24px;
  }
}

.footer {
  background: #fff;
  color: #ff000000;
  padding: 20px 20px 20px;
  font-family: sans-serif;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0px 10px;
}

.footer-box h3,
.footer-box h4 {
  margin-bottom: 15px;
  color: #000000;
}

.footer-box p {
  line-height: 1.6;
  font-size: 14px;
  color: black;
}

.social-links a {
  display: block;
  text-decoration: none;
  color: #030303;
  margin-bottom: 8px;
  transition: 0.3s;
}

.social-links a:hover {
  color: #38bdf8;
  transform: translateX(5px);
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  margin-top: 40px;
  padding-top: 15px;
  text-align: center;
  font-size: 13px;
  color: #94a3b8;
}

/* 📱 Mobil moslashuv */
@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .social-links a {
    display: inline-block;
    margin: 5px 10px;
  }

  
  .footer-box p {
  line-height: 1.6;
  font-size: 14px;
  display: inline-block;
  margin: 5px 10px;
}
}


/* Ballar jadvali */



*{ box-sizing:border-box; }


.wrap{
  max-width: 820px;
  margin: 24px auto;
  padding: 0 16px 32px;
}

.header h1{ 
  margin: 0 0 6px; 
  display: flex;
  justify-content: center;

}
.meta{ color: var(--muted); font-size: 14px; }

.searchBox{ margin: 14px 0 16px; }
.search{
  width:100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 12px;
  font-size: 15px;
  background: var(--bg);
}

.searchResult{
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
}
.searchResult.hidden{ display:none; }
.searchResult .row{
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:space-between;
}
.searchResult .btn{
  border: 1px solid var(--border);
  background: var(--chip);
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
}
.searchResult .btn:hover{ filter: brightness(0.98); }

.board{
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg);
  
}

.boardHead{
  display:grid;
  grid-template-columns: 90px 1fr 110px;
  gap: 10px;
  padding: 12px 14px;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
  background: #fcfcfc;
}

.boardBody{
  /* taxminan 15 qator ko'rinsin */
  max-height: 450px;
  overflow-y: auto;
}

.item{
  display:grid;
  grid-template-columns: 90px 1fr 110px;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  align-items:center;
}
.item:last-child{ border-bottom:none; }

.rank{
  display:flex;
  align-items:center;
  gap:8px;
  font-weight:700;
}
.medal{
  width: 26px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.name{
  min-width: 0;
  overflow:hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.points{
  text-align:right;
  font-weight: 800;
}

.right{ text-align:right; }

.highlight{
  background: var(--hi);
}

.tieGroup{
  background: var(--tie);
}

.error{
  margin-top: 14px;
  color: #b00020;
  font-size: 14px;
}

/* ===== Sovg'alar bo'limi ===== */
.gifts {
  width: 100%;
  padding: 18px 0 6px;
}

.gifts__head {
  margin: 0 0 10px;
  background-color: #ffffff;
  padding: 10px;
  display: flex;
  justify-content: center; /* gorizontal markaz */
  align-items: center;     /* vertikal markaz */
  flex-direction: column;
}

.gifts__title {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
  /* background-color: #38bdf8; */
}

.gifts__subtitle {
  margin: 6px 0 0;
  font-size: 13px;
  opacity: 0.75;
  /* background-color: #1e293b; */
}

/* Skroll konteyner: gorizontal + snap + responsiv kartalar */
.gifts__scroller {
  --gap: 10px;
  --card-radius: 12px;

  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--gap) * 3)) / 4); /* default: telefon 4ta */
  gap: var(--gap);

  overflow-x: auto;
  overflow-y: hidden;
  padding: 8px 2px 12px;

  scroll-snap-type: x mandatory;
  scroll-padding-inline: 2px;
  -webkit-overflow-scrolling: touch;

  /* scrollbar (ixtiyoriy) */
  scrollbar-width: thin;
}

.gifts__scroller:focus {
  outline: 2px solid rgba(34, 34, 34, 0.15);
  outline-offset: 4px;
  border-radius: 10px;
}

/* Kartochka */
.gift {
  scroll-snap-align: start;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--card-radius);
  background: #ffffff;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);

  /* hover faqat pointer qurilmalarda */
  transition: transform 140ms ease, box-shadow 140ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .gift:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(22, 22, 22, 0.08);
  }
}

.gift__imgWrap {
  aspect-ratio: 1 / 1; /* kvadrat */
  display: grid;
  place-items: center;
  /* background: linear-gradient(180deg, rgba(0,0,0,0.03), rgba(0,0,0,0.01)); */
  background-color: #fff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.gift__img {
  width: 72%;
  height: 72%;
  object-fit: contain;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.gift__meta {
  padding: 8px 8px 10px;
  display: grid;
  gap: 4px;
}

.gift__name {
  font-size: 12px;
  line-height: 1.1;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gift__points {
  font-size: 12px;
  font-weight: 700;
  opacity: 0.85;
}

/* Kattaroq ekranlarda ko'proq ko'rsatamiz:
   notebookda 8ta atrofida */
@media (min-width: 900px) {
  .gifts__scroller {
    grid-auto-columns: calc((100% - (var(--gap) * 7)) / 8);
  }
}

/* Juda katta desktopda biroz kattaroq ko'rinsin (ixtiyoriy) */
@media (min-width: 1300px) {
  .gifts__scroller {
    --gap: 12px;
  }
  .gifts__title { font-size: 20px; }
}




