/*
Theme Name: Jarqo'rg'on 1-son texnikumi
Version: 9.0
Author: Antigravity AI
Description: Jarqo'rg'on 1-son texnikumi sanoat va muhandislik portali.
*/
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800;900&family=Barlow:wght@400;500;600;700&display=swap');

:root {
    --b1: #1e3a8a; --b2: #2563eb; --b3: #dbeafe; --gold: #d97706;
    --dark: #0f172a; --muted: #475569; --white: #fff; --border: #e2e8f0;
    --r: 4px; --shadow: 0 20px 60px rgba(30,58,138,.15);
}
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Barlow', sans-serif; background: #f8fafc; color: var(--dark); overflow-x: hidden; }
a { color: var(--b1); text-decoration: none; transition: all .2s; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* TOP BAR */
.top-bar { background: var(--dark); color: rgba(255,255,255,.6); font-size: 12px; padding: 6px 0; }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.top-bar a { color: rgba(255,255,255,.7); text-decoration: none; }
.top-bar a:hover { color: #60a5fa; }
.acc-btns button { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); color: rgba(255,255,255,.7); padding: 1px 7px; font-size: 11px; cursor: pointer; margin-left: 3px; border-radius: 2px; }
.acc-btns button:hover { background: var(--b2); border-color: var(--b2); color: #fff; }
body.accessibility-contrast, body.accessibility-contrast * { background:#000!important; color:#fff!important; border-color:#ff0!important; }
body.font-small { font-size: 14px; }
body.font-large { font-size: 18px; }

/* HEADER — Industrial style: dark left panel + nav */
.site-header { background: #fff; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 0 var(--b2), 0 4px 20px rgba(0,0,0,.08); }
.header-inner { display: flex; align-items: stretch; min-height: 68px; justify-content: space-between; }
.brand-panel {
    background: var(--b1); padding: 0 32px; display: flex; align-items: center; gap: 14px;
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 100%, 0 100%);
    padding-right: 52px; margin-right: -4px;
    text-decoration: none;
}
.brand-emblem { width: 48px; height: 48px; object-fit: contain; filter: brightness(1.1); }
.brand-texts { display: flex; flex-direction: column; }
.brand-ministry { font-size: 9.5px; color: rgba(255,255,255,.75); font-weight: 700; text-transform: uppercase; letter-spacing: .5px; line-height: 1.2; }
.brand-name { font-family: 'Barlow Condensed', sans-serif; font-size: 21px; font-weight: 800; color: #fff; letter-spacing: .5px; line-height: 1.2; }
.header-nav-area { flex: 1; display: flex; align-items: center; justify-content: flex-end; padding: 0 24px; }

/* NAV */
.site-nav { display: flex; align-items: center; }
.site-nav > ul { list-style: none; display: flex; align-items: center; gap: 0; margin: 0; padding: 0; }
.site-nav > ul > li { position: relative; }
.site-nav > ul > li > a {
    font-size: 13.5px; font-weight: 700; color: var(--dark);
    padding: 24px 14px; display: flex; align-items: center; gap: 4px;
    border-bottom: 3px solid transparent; transition: all .2s;
    text-decoration: none;
}
.site-nav > ul > li > a:hover, .site-nav > ul > li.current-menu-item > a {
    color: var(--b2); border-bottom-color: var(--b2);
}
.site-nav > ul > li.menu-item-has-children > a::after { content: '▾'; font-size: 10px; color: #94a3b8; margin-left: 2px; }
.site-nav ul ul {
    display: none; position: absolute; top: 100%; left: 0;
    background: var(--dark); min-width: 240px; z-index: 999; padding: 6px 0;
    border-top: 3px solid var(--b2); list-style: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}
.site-nav ul ul::before {
    content: ''; position: absolute; top: -15px; left: 0; right: 0; height: 15px;
    background: transparent; display: block;
}
.site-nav ul li:hover > ul, .site-nav ul ul:hover { display: block !important; }
.site-nav ul ul li a {
    display: block; padding: 10px 20px; font-size: 13px; font-weight: 600;
    color: rgba(255,255,255,.7); border-left: 3px solid transparent; transition: all .15s;
    text-decoration: none;
}
.site-nav ul ul li a:hover { color: #60a5fa; border-left-color: var(--b2); background: rgba(255,255,255,.05); padding-left: 24px; }
.nav-cta {
    background: var(--b2); color: #fff !important; padding: 10px 22px;
    font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 15px;
    letter-spacing: .5px; margin-left: 16px; clip-path: polygon(8px 0,100% 0,calc(100% - 8px) 100%,0 100%);
    display: inline-block; text-decoration: none; transition: all .2s;
    white-space: nowrap; flex-shrink: 0;
}
.nav-cta:hover { background: var(--b1); transform: translateY(-1px); }

/* HERO — FULL-WIDTH INDUSTRIAL */
.hero-industrial {
    position: relative; min-height: 600px; display: flex; align-items: center;
    background: var(--dark); overflow: hidden;
}
.hero-slides { position: absolute; inset: 0; z-index: 1; }
@keyframes fadeSlide { 0%{opacity:0;transform:scale(1)} 8%{opacity:1} 25%{opacity:1;transform:scale(1.05)} 33%{opacity:0} 100%{opacity:0} }
.slide-item { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; animation: fadeSlide 24s infinite; }
.slide-item:nth-child(1){animation-delay:0s} .slide-item:nth-child(2){animation-delay:6s} .slide-item:nth-child(3){animation-delay:12s} .slide-item:nth-child(4){animation-delay:18s}
.hero-overlay-industrial {
    position: absolute; inset: 0; z-index: 2;
    background: linear-gradient(135deg, rgba(15,23,42,.95) 0%, rgba(30,58,138,.85) 60%, rgba(15,23,42,.9) 100%);
}
.hero-body { position: relative; z-index: 3; width: 100%; padding: 80px 0; }
.hero-body .container { display: grid; grid-template-columns: 1.3fr .7fr; gap: 60px; align-items: center; }
.hero-tag-line {
    display: inline-block; background: rgba(37,99,235,.3); border-left: 3px solid var(--b2);
    color: #93c5fd; font-family: 'Barlow Condensed', sans-serif; font-size: 13px; font-weight: 700;
    letter-spacing: 2px; text-transform: uppercase; padding: 4px 14px; margin-bottom: 20px;
}
.hero-h1 {
    font-family: 'Barlow Condensed', sans-serif; font-size: 64px; font-weight: 900;
    color: #fff; line-height: 1.05; text-transform: uppercase; letter-spacing: -1px; margin-bottom: 20px;
}
.hero-h1 .accent-line { display: block; color: #60a5fa; }
.hero-p { font-size: 16px; color: rgba(255,255,255,.75); line-height: 1.7; margin-bottom: 36px; max-width: 520px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.hbtn {
    font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 15px; letter-spacing: .5px;
    padding: 13px 30px; text-transform: uppercase; transition: all .2s; display: inline-flex; align-items: center; gap: 8px;
    text-decoration: none;
}
.hbtn-blue { background: var(--b2); color: #fff !important; clip-path: polygon(8px 0,100% 0,calc(100% - 8px) 100%,0 100%); }
.hbtn-blue:hover { background: #1d4ed8; }
.hbtn-ghost { background: transparent; color: #fff !important; border: 2px solid rgba(255,255,255,.4); clip-path: polygon(8px 0,100% 0,calc(100% - 8px) 100%,0 100%); }
.hbtn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.1); }

/* HERO STAT CARD */
.hero-card-industrial {
    background: rgba(15,23,42,.8); border: 1px solid rgba(255,255,255,.12);
    border-top: 3px solid var(--b2); padding: 32px; backdrop-filter: blur(10px);
}
.hci-title { font-family: 'Barlow Condensed', sans-serif; font-size: 11px; font-weight: 800; color: var(--b2); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 20px; }
.hci-stat { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; align-items: center; }
.hci-stat:last-child { border-bottom: none; }
.hci-num { font-family: 'Barlow Condensed', sans-serif; font-size: 28px; font-weight: 900; color: #fff; }
.hci-lbl { font-size: 13px; color: rgba(255,255,255,.6); text-align: right; max-width: 180px; }

/* DIAGONAL BAND */
.diag-band {
    background: var(--b1); color: #fff; padding: 24px 0;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 8px));
}
.diag-band .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.db-item { text-align: center; }
.db-num { font-family: 'Barlow Condensed', sans-serif; font-size: 36px; font-weight: 900; color: #93c5fd; display: block; line-height: 1; }
.db-lbl { font-size: 12px; color: rgba(255,255,255,.65); text-transform: uppercase; letter-spacing: 1px; margin-top: 6px; }

/* SPECIALTIES */
.spec-sec { padding: 80px 0; }
.spec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.spec-card {
    background: #fff; border: 1px solid var(--border); border-top: 3px solid var(--b1);
    padding: 30px; position: relative; transition: all .2s;
}
.spec-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-top-color: var(--b2); }
.spec-icon { font-size: 32px; margin-bottom: 16px; }
.spec-num { position: absolute; top: 20px; right: 20px; font-family: 'Barlow Condensed', sans-serif; font-size: 32px; font-weight: 900; color: #e2e8f0; }
.spec-title { font-family: 'Barlow Condensed', sans-serif; font-size: 20px; font-weight: 800; color: var(--dark); text-transform: uppercase; margin-bottom: 10px; }
.spec-desc { font-size: 13.5px; color: var(--muted); line-height: 1.6; }

/* ADMISSION */
.admit-sec { padding: 60px 0 80px; }
.admit-inner {
    background: linear-gradient(135deg, var(--dark) 0%, var(--b1) 100%);
    color: #fff; padding: 60px; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), 0 100%);
    display: grid; grid-template-columns: 1.3fr .7fr; gap: 50px; align-items: center;
}
.admit-tag { font-family: 'Barlow Condensed', sans-serif; font-size: 11px; font-weight: 800; color: #60a5fa; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 12px; display: block; }
.admit-title { font-family: 'Barlow Condensed', sans-serif; font-size: 52px; font-weight: 900; text-transform: uppercase; line-height: 1; margin-bottom: 16px; }
.admit-desc { font-size: 15px; color: rgba(255,255,255,.7); line-height: 1.7; margin-bottom: 30px; }
.admit-box { background: rgba(0,0,0,.3); border-left: 3px solid var(--b2); padding: 24px; }
.admit-box-label { font-size: 11px; color: #93c5fd; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; margin-bottom: 6px; }
.admit-box-phone { font-family: 'Barlow Condensed', sans-serif; font-size: 28px; font-weight: 900; color: #fff; }

/* FOOTER */
.site-footer { background: var(--dark); color: rgba(255,255,255,.6); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-col h4 { font-family: 'Barlow Condensed', sans-serif; font-size: 18px; font-weight: 800; color: #fff; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 16px; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255,255,255,.5); font-size: 13.5px; text-decoration: none; transition: all .2s; }
.footer-links a:hover { color: #60a5fa; padding-left: 4px; }
.footer-bottom { padding: 20px 0; text-align: center; font-size: 12px; color: rgba(255,255,255,.3); }

/* Responsive */
@media(max-width: 960px) {
    .header-inner { flex-direction: column; align-items: stretch; }
    .brand-panel { clip-path: none; padding: 12px 20px; margin-right: 0; }
    .header-nav-area { justify-content: center; padding: 10px 0; }
    .site-nav > ul { flex-wrap: wrap; justify-content: center; }
    .site-nav > ul > li > a { padding: 8px 10px; font-size: 12px; }
    .hero-h1 { font-size: 42px; }
    .hero-body .container, .admit-inner, .footer-grid { grid-template-columns: 1fr; }
    .diag-band .container { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .spec-grid { grid-template-columns: 1fr; }
}
