/* ===== Bosh sahifa (home.css) – faqat .home ichida ishlaydi ===== */
.home {
	--home-navy: #0b2a4a;
	--home-bg: #f4f6f9;
	--home-line: #e6eaf0;
	--home-muted: #5b6778;
}

/* --- Bloklar orasidagi masofa (hr o'rniga) --- */
.home .home-block { padding-top: 48px; }
.home .home-all {
	display: inline-flex; align-items: center; gap: 6px;
	font-size: 14px; font-weight: 600; color: var(--home-navy); white-space: nowrap;
}
.home .home-all:hover { text-decoration: underline; }

/* --- Kategoriya belgilari: rangli fon olib tashlanadi, faqat oq yozuv qoladi --- */
/* [OʻZGARDI · 2026-10-12] rangli sinflar (bg-red, bg-yellow …) main-page.tpl dagi skript bilan olib tashlanadi;
   bu yerda fonsiz yorliq koʻrinishi beriladi. Rasm ustida oʻqilishi uchun yozuvga soya qoʻshiladi. */
.home .blog-post .badge.is-plain {
	background: none; box-shadow: none; padding-left: 0; padding-right: 0;
	color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .75), 0 0 8px rgba(0, 0, 0, .45);
}
/* Rasm ustida turmaydigan kartochkalarda (oq fon) – toʻq koʻk yozuv */
.home .blog-post.post-style-05 .badge.is-plain,
.home .blog-post.post-style-07 .badge.is-plain { color: var(--home-navy); text-shadow: none; }

/* --- Izohlar soni ko'rsatilmaydi (saytda izohlar yuritilmaydi) --- */
.home .blog-post-meta > div:has(> a[href$="#comment"]) { display: none !important; }

/* --- Bosh karta rasmi: shablonning asl qatlami (style.css) --- */
/* [OʻZGARDI · 2026-10-12] quyuqroq toʻliq balandlikdagi qatlam olib tashlandi */

/* --- Institut haqida --- */
/* ===== Institut haqida bloki (home-intro) – fon oʻzgarmagan; animatsiyalar parliament-ai uslubida ===== */
/* [OʻZGARDI · 2026-10-12] tavsifli havolalar, faoliyat yorliqlari, ikkinchi tugma, animatsiyalar */
.home .home-intro { padding-top: 48px; container-type: inline-size; container-name: hintro; }
.home .home-intro__box {
	position: relative; overflow: hidden; container-type: inline-size; container-name: hibox;
	display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 18px 32px; align-items: start;
	padding: 32px; border: 1px solid var(--home-line); border-radius: 16px; background: var(--home-bg);
}
.home .home-intro__text, .home .home-intro__links, .home .home-intro__head { position: relative; z-index: 1; min-width: 0; }
/* Sarlavha qatori butun blok kengligida – nom bitta satrda */
.home .home-intro__head { grid-column: 1 / -1; }

.home .home-intro__eyebrow {
	display: flex; align-items: center; gap: 10px; margin: 0 0 10px;
	font-size: 12px; font-weight: 600; letter-spacing: .04em; line-height: 1.4;
	text-transform: uppercase; color: var(--home-muted);
}
.home .home-intro__mark { position: relative; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--home-navy); }
.home .home-intro__mark::after {
	content: ""; position: absolute; inset: -4px; border-radius: 50%;
	border: 1px solid var(--home-navy); animation: hintro-ping 2s ease-out infinite;
}
@keyframes hintro-ping { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(2); opacity: 0; } }

.home .home-intro__title {
	margin: 0; padding-bottom: .04em;
	text-transform: uppercase; white-space: nowrap; font-weight: 900; letter-spacing: -.01em; line-height: 1.1;
	font-size: clamp(13px, calc((100cqi - 64px) / 24), 44px);
	/* PARLIAMENT AI sarlavhasi effekti: ranglar och fonda oʻqilishi uchun toʻq tuslarga moslangan */
	background: linear-gradient(100deg, #0b2a4a 0%, #4f46e5 30%, #0891b2 55%, #0b2a4a 75%, #4f46e5 100%); background-size: 220% 100%;
	-webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
	animation: hintro-shine 9s linear infinite;
	filter: drop-shadow(0 6px 30px rgba(99, 102, 241, .25));
}
@keyframes hintro-shine { 0% { background-position: 0% 0; } 100% { background-position: -220% 0; } }
.home .home-intro__lead { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 16px; font-size: 15px; line-height: 1.6; color: #3d4757; max-width: 64ch; }
/* PARLIAMENT AI logotipi (sehrli tayoqcha) – nafas oluvchi ikonka */
.home .home-intro__lead-ic {
	flex: none; width: 36px; height: 36px; margin-top: 1px; border-radius: 10px;
	display: inline-flex; align-items: center; justify-content: center;
	background: linear-gradient(110deg, rgba(129, 140, 248, .16), rgba(96, 165, 250, .12), rgba(34, 211, 238, .16));
	border: 1px solid rgba(99, 102, 241, .35); color: #4f46e5; font-size: 15px;
	animation: hintro-breath 4s ease-in-out infinite;
}
@keyframes hintro-breath { 0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); } 50% { transform: scale(1.06); box-shadow: 0 0 18px rgba(99, 102, 241, .28); } }
.home .home-intro__lead-t { min-width: 0; }
/* Yozilayotgan matn kursori */
.home .home-intro__lead-t.is-typing::after { content: "\258D"; margin-left: 1px; color: #4f46e5; animation: hintro-caret 1s steps(1) infinite; }
@keyframes hintro-caret { 50% { opacity: 0; } }
.home .home-intro__sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.home .home-intro__facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; }
.home .home-intro__facts li {
	display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
	background: #fff; border: 1px solid var(--home-line); font-size: 13px; font-weight: 600; color: var(--home-navy); line-height: 1.3;
}
.home .home-intro__facts i { color: var(--home-navy); font-size: 12px; opacity: .75; }

.home .home-intro__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.home:not(#home-x) .home-intro__more {
	display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 20px;
	border-radius: 999px; background: var(--home-navy); color: #fff; text-decoration: none;
	font-size: 14px; font-weight: 600; transition: background .2s, box-shadow .2s;
}
.home:not(#home-x) .home-intro__more:hover { background: #12406f; color: #fff; box-shadow: 0 8px 20px rgba(11, 42, 74, .2); }
.home .home-intro__more i { transition: transform .25s; }
.home .home-intro__more:hover i, .home .home-intro__more:focus-visible i { transform: translateX(4px); }
.home:not(#home-x) .home-intro__alt {
	font-size: 14px; font-weight: 600; color: var(--home-navy); text-decoration: none;
	border-bottom: 1px solid rgba(11, 42, 74, .3); padding-bottom: 1px; transition: border-color .2s;
}
.home:not(#home-x) .home-intro__alt:hover { border-color: var(--home-navy); }

/* Tezkor havolalar */
.home .home-intro__links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.home:not(#home-x) .home-intro__link {
	position: relative; display: flex; align-items: center; gap: 12px; min-height: 72px; padding: 14px;
	background: #fff; border: 1px solid var(--home-line); border-radius: 12px; overflow: hidden;
	color: var(--home-navy); text-decoration: none; line-height: 1.3;
	transition: border-color .25s, box-shadow .25s, transform .25s;
}
.home .home-intro__link::before {
	content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; pointer-events: none;
	background: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(232, 238, 246, .9), rgba(255, 255, 255, 0));
	transform: skewX(-18deg);
}
.home .home-intro__link:hover::before { animation: hintro-sweep .8s ease; }
@keyframes hintro-sweep { to { left: 120%; } }
.home:not(#home-x) .home-intro__link:hover {
	border-color: var(--home-navy); box-shadow: 0 10px 24px rgba(11, 42, 74, .1); transform: translateY(-3px);
}
.home .home-intro__ic {
	position: relative; flex: 0 0 40px; height: 40px; border-radius: 10px;
	display: inline-flex; align-items: center; justify-content: center;
	background: #e8eef6; color: var(--home-navy); font-size: 16px; transition: background .25s, color .25s, transform .25s;
}
.home .home-intro__link:hover .home-intro__ic { background: var(--home-navy); color: #fff; transform: rotate(-6deg) scale(1.05); }
.home .home-intro__lt { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; }
.home .home-intro__lh { font-size: 14px; font-weight: 700; }
.home .home-intro__ld { font-size: 12px; font-weight: 500; color: var(--home-muted); overflow-wrap: break-word; }
.home .home-intro__go { flex: none; font-size: 12px; color: var(--home-navy); opacity: 0; transform: translateX(-6px); transition: opacity .25s, transform .25s; }
.home .home-intro__link:hover .home-intro__go, .home .home-intro__link:focus-visible .home-intro__go { opacity: 1; transform: none; }

/* Koʻrinishga kirganda ketma-ket paydo boʻlish (JS .is-anim va .is-in qoʻshadi) */
.home .home-intro.is-anim .home-intro__link,
.home .home-intro.is-anim .home-intro__facts li { opacity: 0; transform: translateY(12px); }
.home .home-intro.is-anim .home-intro__link.is-in,
.home .home-intro.is-anim .home-intro__facts li.is-in { opacity: 1; transform: none; transition: opacity .5s ease, transform .5s ease, border-color .25s, box-shadow .25s; }

.home .home-intro a:focus-visible,
.home .home-all:focus-visible { outline: 2px solid #1a73e8; outline-offset: 2px; }

@container hintro (max-width: 1100px) {
	.home .home-intro__links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
	.home .home-intro *, .home .home-intro *::before, .home .home-intro *::after { animation: none; transition: none; }
	.home .home-intro.is-anim .home-intro__link, .home .home-intro.is-anim .home-intro__facts li { opacity: 1; transform: none; }
}

/* --- Planshet --- */
@media (max-width: 991.98px) {
	.home .home-intro__box { grid-template-columns: 1fr; gap: 16px 24px; padding: 24px; }
	.home .home-intro__links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* --- Telefon: sahifani qisqartirish --- */
@media (max-width: 767px) {
	.home .home-block, .home .home-intro { padding-top: 32px; }
	.home .home-intro__box { padding: 20px; }
	.home .home-intro__eyebrow { font-size: 10.5px; }
	.home .home-intro__title { font-size: calc((100cqi - 40px) / 21); letter-spacing: -.025em; }
	.home .home-intro__links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
	.home:not(#home-x) .home-intro__link { min-height: 60px; padding: 10px; gap: 10px; }
	.home .home-intro__ic { flex-basis: 34px; height: 34px; font-size: 14px; }
	.home .home-intro__lh { font-size: 13px; }
	.home .home-intro__go { display: none; }

	/* Bosh karta: matn rasm ostida (rasmdagi yozuv bilan ustma-ust tushmaydi) */
	.home .home-hero .post-style-01 .blog-post-details { position: static; padding: 14px 0 0; }
	.home .home-hero .post-style-01 .blog-image:before { display: none; }
	.home .home-hero .post-style-01 .blog-post-details h4 { margin-top: 10px; font-size: 18px; line-height: 1.35; text-shadow: none; }
	.home .home-hero .post-style-01 .blog-post-details h4 a { color: var(--home-navy) !important; }
	.home .home-hero .post-style-01 .blog-post-details .blog-post-meta a,
	.home .home-hero .post-style-01 .blog-post-details .blog-post-meta { color: var(--home-muted) !important; }

	/* Ixcham kartalar: rasm chapda, sarlavha o'ngda */
	.home .post-style-02 {
		display: grid; grid-template-columns: 112px minmax(0, 1fr); column-gap: 12px; align-items: start;
		margin-top: 0 !important; margin-bottom: 16px !important;
	}
	.home .post-style-02 .blog-image { grid-row: 1 / span 2; padding-top: 75%; border-radius: 8px; }
	.home .post-style-02 .badge { display: none; }
	.home .post-style-02 .blog-post-details { margin: 0; padding: 0; }
	.home .post-style-02 .blog-post-details .blog-title { margin: 0 0 4px; font-size: 15px; line-height: 1.35; }
	.home .post-style-07 { display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: 12px; align-items: start; padding: 14px !important; }
	.home .post-style-07 .blog-post-details { padding: 0 !important; }
	.home .post-style-07 .badge { display: none; }
	.home .post-style-07 .blog-title { font-size: 15px !important; line-height: 1.35 !important; margin: 0 0 6px !important; }
	.home .post-style-07 .post-image .img-box { padding-top: 75%; border-radius: 8px; }

	/* Element sonini kamaytirish */
	.home .home-hero .order-xl-3 > .blog-post:nth-of-type(n+4),
	.home .home-hero .order-xl-3 > div > .blog-post:nth-of-type(n+4) { display: none; }
	.home .post-style-04 { display: none; }
	.home .explore-products .blog-post-details > p { display: none; }
	.home .explore-products .col-md-4 { display: none; }
}
