/* =====================================================================
   Maktab sayti — Aventour shabloni ustidan qo'shimcha uslublar
   Ranglar shablondan: --theme-color (yashil), --secondary-color (ko'k),
   --title-color (to'q ko'k)
   ===================================================================== */

/* ---------- Umumiy: rasm o'rniga FontAwesome ikonkalar ---------- */
.sec-title .sub-title i,
.banner-section .content-box .sub-title i { color: var(--theme-color); margin-right: 6px; }
.mi-lg { font-size: 34px; color: var(--secondary-color); line-height: 1; vertical-align: middle; }
.mi-xl { font-size: 44px; color: var(--secondary-color); line-height: 1; position: relative; z-index: 1; }
.chooseus-block-two .icon-box .mi-xl { font-size: 46px; }
.li-ic { color: var(--theme-color); margin-right: 10px; font-size: 15px; }
.top-ic { color: var(--theme-color); margin: 0 6px 0 4px; font-size: 13px; }
.main-header .info-list li { display: inline-flex; align-items: center; }
.pi { color: var(--theme-color); margin-right: 6px; font-size: 13px; }
.dl-ic { font-size: 22px; color: var(--secondary-color); margin-right: 10px; vertical-align: middle; }
.menu-right-content .sidebar-toggler .toggler-icon { color: #fff; font-size: 20px; }
.sidebar-popup .inner-box .icon-box i,
.sidebar-popup .inner-box .light-icon i { font-size: 22px; color: var(--secondary-color); }
.sidebar-popup .inner-box .light-icon i { font-size: 90px; color: rgba(255,255,255,.08); }
.m-round-ic { width: 48px; height: 48px; min-width: 48px; border-radius: 50%; background: var(--secondary-color); color: #fff; display: inline-flex !important; align-items: center; justify-content: center; font-size: 18px; }
.m-round-ic.sm { width: 42px; height: 42px; min-width: 42px; font-size: 16px; }
.contact-section .info-box .single-item .icon-box i { color: #fff; font-size: 18px; }
.journeys-section .content-box .single-item .icon-box { display: inline-flex; align-items: center; justify-content: center; }
.journeys-section .content-box .inner-box .list li { display: flex; align-items: center; }
.m-navy-layer { background: linear-gradient(135deg, #053655 0%, #015285 100%) !important; }
.feature-block-two .icon-box .static-icon { display: inline-flex; align-items: center; justify-content: center; height: 100%; }
.feature-block-two:hover .icon-box .static-icon { opacity: 1; }
.feature-block-two:hover .icon-box .mi-lg { color: #fff; }
.m-highlights { background: linear-gradient(135deg, #053655, #015285); padding: 110px 0; }
.m-highlights .feature-block-two h3, .m-highlights .feature-block-two p { color: #fff; }
.team-block-one .image-box .image img { aspect-ratio: 42 / 47; object-fit: cover; width: 100%; }
.m-badge-light { display: inline-block; background: #fff; color: var(--title-color); font-size: 13px; font-weight: 600; padding: 4px 12px; border-radius: 30px; }
.team-block-one .lower-content h3 { font-size: 20px; }
.team-block-one .other-link { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.m-meta { font-size: 14px; color: var(--text-color); }
.m-meta i { color: var(--theme-color); margin-right: 4px; }
.m-team-home { padding: 110px 0 90px; }
.news-block-one .image-box .image img { aspect-ratio: 77 / 52; object-fit: cover; width: 100%; }
.m-news-home { padding: 110px 0; }
.destinations-block-one .image-box .location i { color: var(--theme-color); }
.m-why-image { display: flex; align-items: flex-end; justify-content: flex-end; }
.m-why-image img { max-width: 520px; border-radius: 30px 0 0 30px; opacity: .95; }

/* Yutuqlar bloki (award-list rasm o'rniga) */
.m-award-list li { display: inline-block; }
.m-award { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 170px; padding: 6px 18px; text-align: center; }
.m-award i { font-size: 34px; color: var(--theme-color); margin-bottom: 6px; }
.m-award span { font-size: 13px; color: var(--text-color); text-transform: uppercase; letter-spacing: .04em; }
.m-award strong { font-size: 20px; color: var(--title-color); }

/* ---------- Tezkor xizmatlar ---------- */
.m-quick-section { position: relative; margin-top: -70px; z-index: 5; padding-bottom: 90px; }
.m-ticker { display: flex; align-items: center; gap: 16px; background: #fff; border-radius: 16px 16px 0 0; padding: 14px 22px; box-shadow: 0 10px 30px rgba(5, 54, 85, .08); overflow: hidden; margin-bottom: 24px; }
.m-ticker-label { flex-shrink: 0; background: var(--theme-color); color: #fff; font-weight: 600; font-size: 14px; padding: 6px 14px; border-radius: 30px; }
.m-ticker ul { display: flex; gap: 40px; margin: 0; padding: 0; list-style: none; white-space: nowrap; animation: m-ticker 40s linear infinite; }
.m-ticker:hover ul { animation-play-state: paused; }
.m-ticker li { font-size: 15px; color: var(--title-color); }
.m-ticker li b { color: var(--secondary-color); }
@keyframes m-ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.m-quick-card { display: block; height: calc(100% - 30px); margin-bottom: 30px; background: #fff; border: 1px solid #e3e9ec; border-radius: 20px; padding: 32px 28px 28px; transition: all .3s; box-shadow: 0 10px 30px rgba(5, 54, 85, .06); }
.m-quick-card .ic { display: inline-flex; width: 64px; height: 64px; border-radius: 18px; background: #e8f1f7; color: var(--secondary-color); font-size: 26px; align-items: center; justify-content: center; margin-bottom: 20px; transition: all .3s; }
.m-quick-card h4 { font-size: 21px; margin-bottom: 8px; }
.m-quick-card p { font-size: 15px; line-height: 24px; margin-bottom: 18px; color: var(--text-color); }
.m-quick-card .go { font-weight: 600; color: var(--secondary-color); font-size: 15px; }
.m-quick-card .go i { font-size: 12px; margin-left: 6px; }
.m-quick-card:hover { transform: translateY(-6px); border-color: var(--theme-color); box-shadow: 0 20px 40px rgba(5, 54, 85, .12); }
.m-quick-card:hover .ic { background: var(--theme-color); color: #fff; }

/* ---------- Raqamlar ---------- */
.m-funfact-section { padding: 70px 0; }
.m-funfact-section .funfact-box { background: #fff; border: 1px solid #dbe3e8; border-radius: 20px; }

/* ---------- Tadbirlar va e'lonlar ---------- */
.m-event-list { list-style: none; padding: 0; margin: 0; }
.m-event { display: flex; gap: 20px; align-items: center; padding: 18px 0; border-bottom: 1px dashed #cdd5d9; }
.m-event:last-child { border-bottom: none; }
.m-date { width: 72px; min-width: 72px; height: 72px; border-radius: 16px; background: var(--secondary-color); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.m-date strong { font-size: 26px; line-height: 1; }
.m-date span { font-size: 13px; text-transform: uppercase; opacity: .85; }
.m-event h4 { font-size: 19px; margin-bottom: 2px; }
.m-event p { margin: 0; font-size: 15px; }
.m-ann-box { background: linear-gradient(140deg, #053655, #015285); color: #fff; border-radius: 24px; padding: 36px 32px; height: 100%; }
.m-ann-box h3 { color: #fff; font-size: 24px; margin-bottom: 20px; }
.m-ann-box h3 i { color: var(--theme-color); margin-right: 8px; }
.m-ann-box ul { list-style: none; padding: 0; margin: 0 0 26px; }
.m-ann-box li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.m-ann-box li p { color: #e3edf3; margin: 0; font-size: 15px; line-height: 23px; }
.m-ann-date { font-size: 13px; color: var(--theme-color); font-weight: 600; }

/* ---------- Tarix (timeline) ---------- */
.m-timeline { position: relative; max-width: 860px; margin: 0 auto; }
.m-timeline::before { content: ''; position: absolute; left: 90px; top: 8px; bottom: 8px; width: 2px; background: #cdd5d9; }
.m-tl-item { display: flex; gap: 40px; align-items: flex-start; margin-bottom: 30px; position: relative; }
.m-tl-year { width: 70px; text-align: right; font-weight: 700; font-size: 22px; color: var(--secondary-color); padding-top: 14px; }
.m-tl-body { position: relative; flex: 1; background: #fff; border-radius: 16px; padding: 18px 24px; border: 1px solid #dbe3e8; }
.m-tl-body::before { content: ''; position: absolute; left: -27px; top: 22px; width: 14px; height: 14px; border-radius: 50%; background: var(--theme-color); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--theme-color); }
.m-tl-body h4 { font-size: 19px; margin-bottom: 4px; }
.m-tl-body p { margin: 0; font-size: 15px; }

/* ---------- Filtr / qidiruv paneli ---------- */
.m-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 40px; }
.m-filter { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.m-filter li { cursor: pointer; padding: 8px 18px; border-radius: 30px; border: 1px solid #cdd5d9; font-size: 15px; font-weight: 500; color: var(--title-color); transition: all .2s; background: #fff; }
.m-filter li:hover { border-color: var(--secondary-color); }
.m-filter li.active { background: var(--secondary-color); border-color: var(--secondary-color); color: #fff; }
.m-search { position: relative; min-width: 260px; }
.m-search input { width: 100%; height: 46px; border-radius: 30px; border: 1px solid #cdd5d9; padding: 0 44px 0 20px; font-size: 15px; outline: none; }
.m-search input:focus { border-color: var(--secondary-color); }
.m-search i { position: absolute; right: 18px; top: 15px; color: #8a9aa5; }
.m-empty { text-align: center; padding: 60px 0; color: #8a9aa5; }
.m-empty i { font-size: 40px; margin-bottom: 10px; }
.js-news-pages ul { display: inline-flex; gap: 8px; list-style: none; padding: 0; }
.js-news-pages button { width: 46px; height: 46px; border-radius: 50%; border: 1px solid #cdd5d9; background: #fff; font-weight: 600; color: var(--title-color); }
.js-news-pages button.active { background: var(--secondary-color); color: #fff; border-color: var(--secondary-color); }

/* ---------- Kartochka, jadval, forma ---------- */
.m-card { background: #fff; border: 1px solid #dbe3e8; border-radius: 20px; padding: 28px; margin-bottom: 30px; }
.m-card h3 { font-size: 22px; margin-bottom: 18px; }
.m-card h3 i { color: var(--theme-color); margin-right: 8px; }
.m-card-accent { background: #eef5e4; border-color: #d6e8bd; }
.m-card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.m-card-head h3 { margin: 0; }
.m-inline { display: flex; align-items: center; gap: 10px; }
.m-inline label { margin: 0; font-weight: 600; color: var(--title-color); }
.m-select, .m-native { height: 46px; border: 1px solid #cdd5d9; border-radius: 10px; padding: 0 14px; font-size: 15px; background: #fff; color: var(--title-color); outline: none; }
.booking-form .m-native { width: 100%; height: 56px; }
.m-btn-outline { height: 46px; border: 1px solid var(--secondary-color); color: var(--secondary-color); background: #fff; border-radius: 10px; padding: 0 16px; font-weight: 600; font-size: 15px; transition: all .2s; }
.m-btn-outline:hover { background: var(--secondary-color); color: #fff; }
.m-table-wrap { overflow-x: auto; }
.m-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.m-table th, .m-table td { padding: 12px 14px; border-bottom: 1px solid #e3e9ec; text-align: left; }
.m-table th { background: #f2f6f8; color: var(--title-color); font-weight: 600; font-size: 14px; }
.m-week th:first-child, .m-week td:first-child { width: 60px; text-align: center; color: #8a9aa5; }
.m-week td.today, .m-week th.today { background: #eef5e4; }
.m-shift { display: inline-block; background: #e8f1f7; color: var(--secondary-color); font-weight: 600; font-size: 14px; padding: 4px 14px; border-radius: 30px; margin-bottom: 14px; }
.m-note { font-size: 14px; color: #8a9aa5; margin: 14px 0 0; }
.m-check-list { list-style: none; padding: 0; margin: 0; }
.m-check-list li { display: flex; align-items: flex-start; padding: 9px 0; border-bottom: 1px dashed #dbe3e8; font-size: 15px; }
.m-check-list li .li-ic { margin-top: 4px; }
.m-form-card { background: #fff; border: 1px solid #dbe3e8; border-radius: 20px; padding: 32px; }
.m-form-card h3 { font-size: 24px; margin-bottom: 22px; }
.m-form-card h3 i { color: var(--theme-color); margin-right: 8px; }
.m-check { display: flex; gap: 10px; align-items: center; font-size: 15px; margin: 4px 0 20px; cursor: pointer; }
.m-check input { width: 18px; height: 18px; accent-color: var(--secondary-color); }
.m-form-result { margin-top: 18px; padding: 14px 18px; border-radius: 12px; background: #eef5e4; color: #3d6b10; font-weight: 500; }
.m-form-result.err { background: #fdecec; color: #b42318; }
.form-group .m-invalid { border-color: #e5484d !important; }

/* ---------- Qabul bosqichlari ---------- */
.m-step { position: relative; background: #fff; border: 1px solid #dbe3e8; border-radius: 20px; padding: 30px 26px; margin-bottom: 30px; height: calc(100% - 30px); }
.m-step .n { position: absolute; right: 22px; top: 14px; font-size: 54px; font-weight: 800; color: #eef2f4; line-height: 1; }
.m-step .ic { width: 58px; height: 58px; border-radius: 16px; background: var(--theme-color); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 18px; position: relative; }
.m-step h4 { font-size: 20px; margin-bottom: 6px; }
.m-step p { font-size: 15px; line-height: 24px; margin: 0; }

/* ---------- 404 ---------- */
.m-404 { padding: 140px 0; }
.m-404-code { font-size: 160px; font-weight: 800; line-height: 1; color: var(--secondary-color); background: linear-gradient(135deg, var(--secondary-color), var(--theme-color)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.m-404 h2 { margin: 10px 0; }
.m-404 p { margin-bottom: 30px; }

/* Yangilik ichki sahifasi */
.blog-details-content .m-article-img { border-radius: 20px; overflow: hidden; margin-bottom: 30px; }
.blog-details-content .m-article-img img { width: 100%; }
.blog-details-content h2.m-article-title { font-size: 34px; line-height: 44px; margin-bottom: 14px; }
.m-article-meta { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 24px; font-size: 15px; color: #8a9aa5; }
.m-article-meta i { color: var(--theme-color); margin-right: 6px; }
.blog-details-content p { margin-bottom: 18px; }
.m-share { display: flex; align-items: center; gap: 10px; margin-top: 30px; padding-top: 24px; border-top: 1px solid #e3e9ec; }
.m-share a { width: 40px; height: 40px; border-radius: 50%; background: #f2f6f8; display: inline-flex; align-items: center; justify-content: center; color: var(--secondary-color); }
.m-share a:hover { background: var(--secondary-color); color: #fff; }

@media only screen and (max-width: 991px) {
  .m-quick-section { margin-top: 30px; }
  .m-why-image { display: none; }
  .m-ann-box { margin-top: 40px; }
}
@media only screen and (max-width: 599px) {
  .m-timeline::before { left: 20px; }
  .m-tl-item { flex-direction: column; gap: 6px; padding-left: 46px; }
  .m-tl-year { text-align: left; padding: 0; width: auto; }
  .m-tl-body::before { left: -33px; }
  .m-404-code { font-size: 110px; }
  .m-search { min-width: 100%; }
}
@media print {
  .main-header, .main-footer, .page-title, .award-section, .scroll-top, .m-inline, .col-lg-4 { display: none !important; }
  .col-lg-8 { width: 100% !important; max-width: 100% !important; flex: 0 0 100% !important; }
}

/* ---------- Tuzatishlar ---------- */
.main-header .logo img, .sticky-header .logo img { max-height: 54px; width: auto; }
.footer-logo img { max-height: 50px; width: auto; }
.sidebar-popup .logo-box img, .mobile-menu .nav-logo img { max-height: 48px; width: auto; }
.main-menu .navigation > li > a, .theme-btn, .theme-btn span { text-transform: none !important; }
.m-ticker { padding: 10px 14px; }
.m-ticker-label { position: relative; z-index: 2; }
.m-ticker-track { flex: 1; overflow: hidden; }
.team-block-one .image-box .image img { aspect-ratio: 370 / 399; }
.news-block-one .image-box .image img { aspect-ratio: 37 / 30; }
.m-why-image img { max-width: 440px; }

/* Logotip barcha ekranlarda ko'rinsin (shablon 1399px dan kichikda yashirardi) */
@media only screen and (max-width: 1399px) {
  .main-header .outer-box .logo { display: block; }
  .main-header .outer-box .logo img { max-height: 46px; }
  .main-menu .navigation > li { margin: 0 11px; }
  .menu-right-content .language-box { display: none; }
}
@media only screen and (max-width: 767px) {
  .main-header .outer-box .logo img { max-height: 38px; }
  .main-header .menu-right-content .btn-box { display: none; }
  .header-top .top-inner > p span, .header-top .info-list li:last-child { display: none; }
}
@media only screen and (max-width: 1199px) {
  .main-header .outer-box .menu-area { margin-left: auto; margin-right: 16px; }
}
@media only screen and (max-width: 767px) {
  .main-header .outer-box .menu-area { margin-right: 0; }
}
.m-form-card::before { display: none; }
.m-form-card form, .m-check, .m-form-result { position: relative; z-index: 1; }

/* =====================================================================
   Test sahifasi (test.html)
   ===================================================================== */
.m-test-section { padding: 70px 0 110px; background: #eef2f5; min-height: 60vh; }
.m-test-app { margin: 0 auto; }
.m-test-card-big { background: #fff; border: 1px solid #dbe3e8; border-radius: 24px; padding: 36px 40px; margin-bottom: 24px; box-shadow: 0 10px 30px rgba(5, 54, 85, .06); }
.m-test-card-big.center { text-align: center; }
.m-test-card-big .sec-title { margin-bottom: 26px; }
.m-test-card-big .sec-title h2 { font-size: 34px; line-height: 44px; }
.m-test-card-big h3 { font-size: 22px; margin-bottom: 18px; }
.m-test-card-big h3 i { color: var(--theme-color); }
.m-test-loading, .m-spin { text-align: center; padding: 50px; font-size: 30px; color: var(--secondary-color); }
.m-test-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.m-test-ic { width: 76px; height: 76px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 30px; margin-bottom: 16px; background: #e8f1f7; color: var(--secondary-color); }
.m-test-ic.red { background: #fdecec; color: #e5484d; }
.m-steps-bar { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 0 24px; flex-wrap: wrap; }
.m-steps-bar li { flex: 1; min-width: 110px; display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #dbe3e8; border-radius: 14px; padding: 10px 14px; font-weight: 600; color: #8a9aa5; font-size: 15px; }
.m-steps-bar li span { width: 28px; height: 28px; border-radius: 50%; background: #eef2f5; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }
.m-steps-bar li.on { border-color: var(--secondary-color); color: var(--title-color); }
.m-steps-bar li.on span { background: var(--secondary-color); color: #fff; }
.m-steps-bar li.done span { background: var(--theme-color); color: #fff; }
.m-grade-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed #dbe3e8; }
.m-grade-row:last-child { border-bottom: 0; }
.m-grade-row .g { width: 80px; font-weight: 700; color: #8a9aa5; flex-shrink: 0; }
.m-grade-row > div { display: flex; flex-wrap: wrap; gap: 8px; }
.m-chip { min-width: 74px; height: 48px; padding: 0 18px; border-radius: 12px; border: 1.5px solid #cdd5d9; background: #fff; font-weight: 700; font-size: 17px; color: var(--title-color); transition: all .15s; }
.m-chip:hover { border-color: var(--secondary-color); background: #e8f1f7; }
.m-chip.on { background: var(--secondary-color); border-color: var(--secondary-color); color: #fff; }
.m-name-search { margin-bottom: 18px; }
.m-names { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.m-name { display: flex; align-items: center; gap: 12px; text-align: left; border: 1.5px solid #dbe3e8; background: #fff; border-radius: 12px; padding: 12px 14px; font-size: 16px; font-weight: 600; color: var(--title-color); transition: all .15s; }
.m-name .n { width: 30px; height: 30px; border-radius: 8px; background: #eef2f5; color: #8a9aa5; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0; }
.m-name:hover { border-color: var(--theme-color); background: #eef5e4; }
.m-name:hover .n { background: var(--theme-color); color: #fff; }
.m-tests { display: flex; flex-direction: column; gap: 14px; margin-top: 10px; }
.m-test-item { display: flex; align-items: center; gap: 18px; border: 1px solid #dbe3e8; border-radius: 18px; padding: 18px 20px; }
.m-test-item .ic { width: 56px; height: 56px; border-radius: 16px; background: #e8f1f7; color: var(--secondary-color); display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.m-test-item .body { flex: 1; min-width: 0; }
.m-test-item h4 { font-size: 20px; margin-bottom: 2px; }
.m-test-item p { margin: 0 0 4px; font-size: 15px; line-height: 23px; }
.m-test-item .meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 14px; color: #8a9aa5; }
.m-test-item .meta i { color: var(--theme-color); margin-right: 5px; }
.m-done { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: #4d7a17; white-space: nowrap; }
.m-mark { display: inline-flex; width: 34px; height: 34px; border-radius: 9px; align-items: center; justify-content: center; font-weight: 800; }
.m-mark.m5, .m-score.m5 { background: #eef5e4; color: #4d7a17; }
.m-mark.m4, .m-score.m4 { background: #e8f1f7; color: #015285; }
.m-mark.m3, .m-score.m3 { background: #fdf3e2; color: #a86812; }
.m-mark.m2, .m-score.m2 { background: #fdecec; color: #b42318; }
.m-empty p { margin: 6px 0 16px; }
.m-rules { list-style: none; padding: 0; margin: 10px 0 0; }
.m-rules li { padding: 7px 0; display: flex; gap: 10px; align-items: baseline; font-size: 15px; }
.m-rules li i { color: var(--theme-color); width: 18px; }
#m-toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(20px); background: var(--title-color); color: #fff; padding: 12px 20px; border-radius: 12px; font-weight: 600; opacity: 0; pointer-events: none; transition: all .25s; z-index: 10000; }
#m-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
#m-toast.err { background: #e5484d; }
.m-dlg-bg { position: fixed; inset: 0; background: rgba(5, 54, 85, .5); z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 16px; }
.m-dlg { background: #fff; border-radius: 22px; width: 100%; max-width: 520px; padding: 28px; box-shadow: 0 30px 70px rgba(0,0,0,.3); }
.m-dlg h3 { font-size: 22px; margin-bottom: 10px; }
.m-dlg-f { display: flex; justify-content: flex-end; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.m-warn-text { color: #e5484d; font-weight: 700; }

/* test jarayoni: shapka va pastki qism yashiriladi */
body.m-quiz-mode .main-header, body.m-quiz-mode .page-title, body.m-quiz-mode .main-footer, body.m-quiz-mode .scroll-top, body.m-quiz-mode .mobile-menu { display: none !important; }
body.m-quiz-mode .m-test-section { padding: 24px 0 60px; }
body.m-quiz-mode .m-test-app { max-width: 1200px; user-select: none; -webkit-user-select: none; }
.m-quiz-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; background: #fff; border: 1px solid #dbe3e8; border-radius: 18px; padding: 12px 20px; margin-bottom: 14px; }
.m-quiz-top .who { display: flex; align-items: center; gap: 16px; min-width: 0; }
.m-quiz-top img { height: 40px; }
.m-quiz-top b { display: block; color: var(--title-color); font-size: 18px; }
.m-quiz-top small { color: #8a9aa5; }
.m-timer { font-family: Consolas, monospace; font-weight: 800; font-size: 26px; padding: 6px 18px; border-radius: 12px; background: #fdf3e2; color: #a86812; }
.m-timer.low { background: #fdecec; color: #e5484d; animation: m-pulse 1s infinite; }
@keyframes m-pulse { 50% { opacity: .55; } }
.m-progress { height: 8px; background: #dbe3e8; border-radius: 10px; overflow: hidden; margin-bottom: 18px; }
.m-progress i { display: block; height: 100%; background: var(--theme-color); transition: width .3s; }
.m-alert { padding: 12px 16px; border-radius: 12px; font-weight: 600; margin-bottom: 12px; font-size: 15px; }
.m-alert.amber { background: #fdf3e2; color: #a86812; border: 1px solid #f5d9a8; }
.m-alert.red { background: #fdecec; color: #b42318; border: 1px solid #f5c2c4; }
.m-quiz { display: grid; grid-template-columns: 1fr 300px; gap: 20px; align-items: start; }
.m-qcard { background: #fff; border: 1px solid #dbe3e8; border-radius: 22px; padding: 30px; }
.m-qnum { font-weight: 700; color: var(--theme-color); font-size: 15px; }
.m-qtext { font-size: 22px; line-height: 32px; font-weight: 700; color: var(--title-color); margin: 6px 0 20px; white-space: pre-wrap; }
.m-qimg { max-width: 100%; max-height: 320px; border-radius: 14px; border: 1px solid #dbe3e8; margin: 0 0 18px; display: block; }
.m-opt { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; border: 1.5px solid #dbe3e8; background: #fff; border-radius: 14px; padding: 14px 16px; margin-bottom: 10px; font-size: 17px; color: var(--title-color); transition: all .12s; }
.m-opt .l { width: 36px; height: 36px; border-radius: 50%; background: #eef2f5; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; flex-shrink: 0; }
.m-opt:hover { border-color: #93bcd6; background: #f6fafd; }
.m-opt.sel { border-color: var(--secondary-color); background: #e8f1f7; box-shadow: 0 0 0 3px rgba(1, 82, 133, .1); }
.m-opt.sel .l { background: var(--secondary-color); color: #fff; }
.m-qnav { display: flex; justify-content: space-between; margin-top: 16px; }
.m-qside { background: #fff; border: 1px solid #dbe3e8; border-radius: 22px; padding: 22px; position: sticky; top: 20px; }
.m-qside h4 { font-size: 19px; margin-bottom: 12px; }
.m-qgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)); gap: 6px; }
.m-qgrid button { height: 42px; border-radius: 10px; border: 1.5px solid #dbe3e8; background: #fff; font-weight: 700; color: var(--title-color); }
.m-qgrid button.a { background: #e8f1f7; border-color: #93bcd6; color: var(--secondary-color); }
.m-qgrid button.cur { border-color: var(--secondary-color); box-shadow: 0 0 0 2px var(--secondary-color); }
.m-legend { display: flex; gap: 14px; font-size: 13px; color: #8a9aa5; margin-top: 12px; }
.m-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; border: 1px solid #dbe3e8; margin-right: 5px; vertical-align: -1px; }
.m-legend i.a { background: #e8f1f7; border-color: #93bcd6; }
.m-finish { width: 100%; justify-content: center; margin-top: 10px; }
.m-score { width: 170px; height: 170px; border-radius: 50%; margin: 0 auto 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.m-score b { font-size: 60px; line-height: 1; }
.m-score span { font-weight: 700; }
.m-res-who { margin-bottom: 0; }
.m-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 24px 0 14px; }
.m-stats > div { background: #f2f6f8; border: 1px solid #dbe3e8; border-radius: 16px; padding: 16px; }
.m-stats small { display: block; color: #8a9aa5; font-weight: 700; font-size: 12px; text-transform: uppercase; }
.m-stats strong { font-size: 28px; color: var(--title-color); }
.m-res-btns { margin-top: 18px; }
.m-review { border: 1px solid #dbe3e8; border-radius: 14px; padding: 16px 18px; margin-bottom: 12px; }
.m-review.ok { border-color: #cfe5b0; background: #f8fbf3; }
.m-review.bad { border-color: #f5c2c4; background: #fff8f8; }
.m-review .h { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 6px; color: var(--title-color); }
.m-tag { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 20px; white-space: nowrap; }
.m-tag.g { background: #eef5e4; color: #4d7a17; } .m-tag.r { background: #fdecec; color: #b42318; }
.m-ropt { padding: 6px 10px; border-radius: 8px; margin-top: 5px; font-size: 15px; }
.m-ropt.correct { background: #eef5e4; color: #4d7a17; font-weight: 600; }
.m-ropt.wrong { background: #fdecec; color: #b42318; text-decoration: line-through; }
.m-expl { margin-top: 10px; font-size: 14px; background: #fff; border: 1px dashed #cdd5d9; padding: 8px 12px; border-radius: 10px; }
.m-expl i { color: #e8a032; }
@media (max-width: 860px) {
  .m-quiz { grid-template-columns: 1fr; }
  .m-qside { position: static; }
  .m-test-card-big { padding: 24px 20px; }
  .m-test-item { flex-wrap: wrap; }
  .m-stats { grid-template-columns: 1fr; }
  .m-quiz-top img { display: none; }
}

/* =====================================================================
   Qo'shimcha sahifalar (sayt boshqaruvida bloklardan yig'iladi)
   ===================================================================== */
.m-custom-page { padding: 0 0 40px; }
.m-block { padding: 70px 0; }
.m-block.alt { background: #eef2f5; }
.m-block-narrow { margin: 0 auto; }
.m-block-title { font-size: 34px; line-height: 44px; margin-bottom: 18px; }
.m-md p { margin-bottom: 16px; font-size: 17px; line-height: 28px; }
.m-md h3 { font-size: 24px; margin: 26px 0 12px; }
.m-md-list { list-style: none; padding: 0; margin: 0 0 18px; }
.m-md-list li { display: flex; align-items: baseline; padding: 6px 0; font-size: 17px; }
.m-block .theme-btn { margin-top: 10px; }
.m-block-img { border-radius: 24px; overflow: hidden; margin: 0; }
.m-block-img img { width: 100%; display: block; }
.m-block-img.wide { max-width: 1000px; margin: 0 auto; }
.m-block-img figcaption { text-align: center; padding: 12px; color: #8a9aa5; font-size: 15px; }
.m-block-text { padding: 20px 0 20px 30px; }
.m-info-card { cursor: default; }
.m-info-card:hover { transform: none; }
.m-card-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 14px; margin-bottom: 16px; }
.m-cta { display: flex; align-items: center; gap: 24px; background: linear-gradient(120deg, #053655, #015285); border-radius: 26px; padding: 40px 44px; color: #d8e6ef; flex-wrap: wrap; }
.m-cta > div { flex: 1; min-width: 240px; }
.m-cta h2 { color: #fff; font-size: 30px; margin-bottom: 6px; }
.m-cta p { color: #d8e6ef; margin: 0; }
.m-cta .ic { width: 70px; height: 70px; border-radius: 20px; background: rgba(255,255,255,.1); color: var(--theme-color); display: flex; align-items: center; justify-content: center; font-size: 30px; }
.m-cta .theme-btn { margin: 0; }
@media (max-width: 991px) { .m-block-text { padding: 26px 0 0; } }

/* Barcha sahifalar header kengligida (header .large-container = 1550px) */
.auto-container { max-width: 1550px; }

/* Test: o'quvchi paroli */
.m-name img.n { object-fit: cover; border-radius: 50%; }
.m-who { display: flex; align-items: center; gap: 16px; background: #f4f7f9; border-radius: 16px; padding: 16px 18px; margin: 6px 0 22px; }
.m-who img, .m-who > span { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: #e8f1f7; color: var(--secondary-color); display: flex; align-items: center; justify-content: center; font-size: 26px; }
.m-who b { display: block; font-size: 20px; color: var(--title-color); }
.m-who small { color: #8a9aa5; font-size: 15px; }
.m-pass-form { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; max-width: 560px; }
.m-pass-form input { flex: 1; min-width: 200px; height: 60px; border: 1.5px solid #dbe3e8; border-radius: 14px; padding: 0 20px; font-size: 26px; letter-spacing: 8px; color: var(--title-color); outline: none; }
.m-pass-form input:focus { border-color: var(--secondary-color); box-shadow: 0 0 0 4px rgba(1, 82, 133, .1); }
/* qat'iy test rejimi */
.m-strict-mode .m-quiz, .m-strict-mode .m-qcard { -webkit-user-select: none; user-select: none; }
.m-strict { color: #c0392b !important; font-weight: 700; }
.m-rules .m-rule-red { color: #a32020; }
.m-guard { position: fixed; inset: 0; z-index: 99999; background: rgba(5, 30, 50, .94); display: flex; align-items: center; justify-content: center; padding: 20px; }
.m-guard-box { max-width: 560px; width: 100%; background: #fff; border-radius: 18px; padding: 34px 28px; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.m-guard-box .ic { width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; font-size: 34px; background: #e8f1f7; color: #015285; }
.m-guard-box.red .ic { background: #fdecec; color: #e5484d; animation: m-pulse 1s infinite; }
.m-guard-box h2 { font-size: 24px; margin-bottom: 10px; }
.m-guard-box.red h2 { color: #c0392b; }
.m-guard-box p { font-size: 16px; margin-bottom: 10px; }
.m-guard-box p.big { font-size: 17px; background: #fff4e5; border-radius: 10px; padding: 12px; color: #7a4a00; }
.m-guard-box .theme-btn { margin-top: 10px; }
@keyframes m-pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.08); } }
/* ===== Vizual muharrir matni (yangilik, sahifa) ===== */
.m-rich { font-size: 17px; line-height: 1.75; color: #2b3d4d; }
.m-rich h2 { font-size: 28px; margin: 28px 0 12px; } .m-rich h3 { font-size: 23px; margin: 24px 0 10px; } .m-rich h4 { font-size: 19px; margin: 20px 0 8px; }
.m-rich p { margin: 0 0 16px; }
.m-rich ul, .m-rich ol { margin: 0 0 16px; padding-left: 26px; } .m-rich ul li { list-style: disc; } .m-rich ol li { list-style: decimal; } .m-rich li { margin-bottom: 6px; }
.m-rich blockquote { border-left: 4px solid var(--theme-color); background: #f6faef; padding: 14px 18px; border-radius: 0 10px 10px 0; margin: 0 0 16px; font-style: italic; }
.m-rich a { color: var(--secondary-color); text-decoration: underline; }
.m-rich img { max-width: 100%; height: auto; border-radius: 12px; margin: 8px 0; }
.m-rich figure { margin: 16px 0; } .m-rich figcaption { font-size: 14px; color: #6b7f90; text-align: center; margin-top: 6px; }
.m-rich .rt-img-left { float: left; max-width: 45%; margin: 4px 20px 12px 0; } .m-rich .rt-img-right { float: right; max-width: 45%; margin: 4px 0 12px 20px; } .m-rich .rt-img-wide img { width: 100%; }
.m-rich table { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: 15px; } .m-rich th, .m-rich td { border: 1px solid #d5dee6; padding: 8px 10px; text-align: left; } .m-rich th { background: #f3f7fa; }
.m-rich iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 12px; margin: 8px 0 16px; }
.m-rich .ta-center { text-align: center; } .m-rich .ta-right { text-align: right; } .m-rich .ta-justify { text-align: justify; }
.m-rich::after { content: ""; display: block; clear: both; }
.m-rich mark { background: #fff3b0; padding: 0 3px; }
.m-rt-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin: 20px 0; }
.m-rt-gallery a { position: relative; display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; }
.m-rt-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; } .m-rt-gallery a:hover img { transform: scale(1.05); }
.m-rt-gallery span { position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 12px; background: linear-gradient(transparent, rgba(0,0,0,.65)); color: #fff; font-size: 14px; }
.m-files { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-direction: column; gap: 10px; }
.m-files li { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; border: 1px solid #e3eaf0; border-radius: 12px; padding: 12px 16px; }
.m-files li i { font-size: 24px; color: var(--secondary-color); } .m-files li a { font-weight: 600; color: var(--title-color); } .m-files li small { width: 100%; color: #6b7f90; padding-left: 36px; }
.m-video { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; } .m-video iframe { width: 100%; height: 100%; border: 0; }
