:root {
  --bg: #f5f3ef;
  --white: #ffffff;
  --ink: #1a1a2e;
  --teal: #0d6e6e;
  --teal-light: #1a9e9e;
  --gold: #c9a84c;
  --muted: #6b7280;
  --card-bg: #ffffff;
  --border: #e5e0d8;
  --radius: 16px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
}

/* ─── NAVBAR ─────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 5%;
  display: flex; align-items: center; gap: 32px;
  height: 110px;
  transition: box-shadow .3s;
}
nav.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,0.10); }

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; flex-shrink: 0;
}
.nav-logo .cross {
  width: 38px; height: 38px; background: var(--teal);
  border-radius: 10px; display: grid; place-items: center;
  position: relative;
}
.nav-logo .cross::before,
.nav-logo .cross::after {
  content:''; position: absolute; background: #fff; border-radius: 2px;
}
.nav-logo .cross::before { width:4px; height:22px; }
.nav-logo .cross::after  { width:22px; height:4px; }
.nav-logo span {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem; font-weight: 700;
  color: var(--teal); letter-spacing: -0.5px;
}
.nav-logo span em { color: var(--gold); font-style: normal; }

/* Asosiy menyu */
.nav-links {
  display: flex; align-items: center; gap: 2px;
  list-style: none; flex: 1;
}
.nav-links > li { position: relative; }
.nav-links > li > a {
  display: flex; align-items: center; gap: 5px;
  padding: 8px 13px; border-radius: 8px;
  text-decoration: none; color: var(--ink);
  font-weight: 500; font-size: .93rem;
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.nav-links > li > a:hover,
.nav-links > li.open > a {
  background: #f0fafa; color: var(--teal);
}

/* Dropdown ochi */
.nav-arr {
  font-size: .6rem; color: #9ca3af;
  transition: transform 0.25s; margin-top: 1px;
}
.nav-links > li.open .nav-arr { transform: rotate(180deg); }

/* Dropdown panel */
.nav-dropdown {
  position: absolute; top: calc(100% + 10px); left: 0;
  list-style: none; background: #fff;
  min-width: 210px; border-radius: 12px;
  border: 1px solid var(--border);
  padding: 6px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.11);
  opacity: 0; visibility: hidden;
  transform: translateY(8px);
  transition: opacity .22s, transform .22s, visibility .22s;
  z-index: 2000;
}
.nav-links > li.open .nav-dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-dropdown li a {
  display: block; padding: 9px 14px; border-radius: 8px;
  text-decoration: none; color: var(--ink);
  font-size: .9rem; font-weight: 500;
  transition: background .18s, color .18s, padding-left .18s;
  white-space: nowrap;
}
.nav-dropdown li a:hover { background: #f0fafa; color: var(--teal); padding-left: 20px; }
.nav-dropdown li + li { margin-top: 2px; }
.nav-dropdown li:not(:last-child) { border-bottom: 1px solid var(--border); }

.has-drop { position: relative; }

.nav-btn {
  background: var(--teal); color: #fff;
  padding: 10px 22px; border-radius: 50px;
  font-weight: 600; font-size: .9rem;
  text-decoration: none; flex-shrink: 0;
  transition: background .25s, transform .2s;
}
.nav-btn:hover { background: var(--teal-light); transform: translateY(-1px); }

/* Burger */
.burger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px; margin-left: auto;
  border: none; background: none;
}
.burger span { display:block; width:24px; height:2px; background:var(--ink); border-radius:2px; transition:.3s; }
.burger span:nth-child(2) { width: 16px; }
.burger.open span:nth-child(1) { width:24px; transform: rotate(45deg) translate(5px,5px); }
.burger.open span:nth-child(2) { opacity:0; }
.burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Mobil panel */
.mobile-menu {
  display: none;
  position: fixed;
  top: 110px;
  left:0;
  right:0;
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 12px 5% 20px;
  z-index: 999;
  max-height: calc(100vh - 70px);
  overflow-y: auto;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.mobile-menu.open { display: block; }
.mob-item { border-bottom: 1px solid var(--border); }
.mob-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 4px; font-weight: 600; font-size: .95rem;
  cursor: pointer; color: var(--ink); user-select: none;
}
.mob-header:hover { color: var(--teal); }
.mob-arrow { font-size: .65rem; color: #9ca3af; transition: transform .25s; }
.mob-item.open .mob-arrow { transform: rotate(180deg); }
.mob-sub {
  list-style: none; max-height: 0; overflow: hidden;
  transition: max-height .3s ease;
}
.mob-item.open .mob-sub { max-height: 400px; }
.mob-sub li a {
  display: block; padding: 9px 12px; color: var(--muted);
  text-decoration: none; font-size: .9rem; border-radius: 7px;
  transition: background .18s, color .18s;
}
.mob-sub li a:hover { background: #f0fafa; color: var(--teal); }
.mob-cta {
  display: block; margin-top: 14px;
  background: var(--teal); color: #fff; text-align: center;
  padding: 12px; border-radius: 8px; text-decoration: none;
  font-weight: 600; font-size: .93rem;
}
@keyframes slideDown { from{opacity:0;transform:translateY(-8px)} to{opacity:1;transform:none} }

/* ─── SLIDER ─────────────────────────────── */
.slider-section {
  margin-top: 70px;
  position: relative; overflow: hidden;
  height: 580px;
}
.slides { display:flex; height:100%; transition: transform .7s cubic-bezier(.77,0,.18,1); }

.slide {
  min-width: 100%; height: 100%;
  position: relative; display: flex; align-items: center;
}
.slide-img {
  position: absolute; inset:0;
  background-size: cover; background-position: center;
}
.slide-img::after {
  content:''; position:absolute; inset:0;
  background: linear-gradient(90deg, rgba(13,110,110,.82) 0%, rgba(13,110,110,.2) 60%, transparent 100%);
}

.slide-img-1 { background-image: url('../images/slide1.jpg'); }
.slide-img-2 { background-image: url('../images/slide2.jpg'); }
.slide-img-3 { background-image: url('../images/slide3.jpg'); }

.slide-content {
  position: relative; z-index:2;
  padding: 0 8%; max-width: 620px;
  animation: fadeSlide .7s ease both;
}
@keyframes fadeSlide { from{opacity:0;transform:translateX(-30px)} to{opacity:1;transform:none} }

.slide-tag {
  display: inline-block;
  background: var(--gold); color:#fff;
  font-size: .78rem; font-weight:600; letter-spacing:1.5px;
  text-transform: uppercase; padding: 5px 14px; border-radius:50px;
  margin-bottom: 16px;
}
.slide h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: #fff; line-height: 1.2; margin-bottom: 16px;
}
.slide p {
  color: rgba(255,255,255,.85); font-size:1.05rem;
  line-height:1.7; margin-bottom: 28px;
}
.slide-btn {
  display: inline-flex; align-items:center; gap:8px;
  background:#fff; color:var(--teal);
  padding: 13px 28px; border-radius:50px;
  font-weight:700; font-size:.95rem; text-decoration:none;
  transition: all .25s;
}
.slide-btn:hover { background:var(--gold); color:#fff; transform:translateY(-2px); }

.slider-nav {
  position: absolute; bottom:28px; left:50%; transform:translateX(-50%);
  display:flex; gap:10px; z-index:10;
}
.dot {
  width:10px; height:10px; border-radius:50%;
  background: rgba(255,255,255,.5); cursor:pointer;
  transition: all .3s; border: none;
}
.dot.active { background:#fff; width:28px; border-radius:50px; }

.slider-arrow {
  position:absolute; top:50%; transform:translateY(-50%);
  z-index:10; background:rgba(255,255,255,.2);
  backdrop-filter:blur(8px); border:1px solid rgba(255,255,255,.3);
  color:#fff; width:48px; height:48px; border-radius:50%;
  display:grid; place-items:center; cursor:pointer;
  font-size:1.2rem; transition: all .25s;
}
.slider-arrow:hover { background:rgba(255,255,255,.35); }
.slider-arrow.prev { left:24px; }
.slider-arrow.next { right:24px; }

/* ─── SECTIONS COMMON ────────────────────── */
section { padding: 80px 5%; }
.container { max-width: 1200px; margin: 0 auto; }
.section-header { text-align:center; margin-bottom:56px; }
.section-tag {
  display:inline-block; color:var(--teal);
  font-weight:600; font-size:.82rem; letter-spacing:2px;
  text-transform:uppercase; margin-bottom:10px;
}
.section-header h2 {
  font-family:'Playfair Display', serif;
  font-size: clamp(1.8rem,3.5vw,2.8rem);
  color: var(--ink); line-height:1.2;
}
.section-header p {
  color:var(--muted); margin-top:12px;
  font-size:1rem; max-width:520px; margin-inline:auto; line-height:1.7;
}

/* ─── NEWS CARDS ─────────────────────────── */
.news-section { background: var(--bg); }
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.news-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .3s, box-shadow .3s;
  border: 1px solid var(--border);
}
.news-card:hover { transform:translateY(-6px); box-shadow:0 12px 40px rgba(0,0,0,0.12); }
.news-card-img { width:100%; height:200px; object-fit:cover; display:block; }
.news-card-body { padding: 22px; }
.news-cat {
  font-size:.75rem; font-weight:700;
  letter-spacing:1.5px; text-transform:uppercase;
  color:var(--teal); margin-bottom:8px;
}
.news-card-body h3 {
  font-family:'Playfair Display',serif;
  font-size:1.15rem; line-height:1.4;
  color:var(--ink); margin-bottom:10px;
}
.news-card-body h3 a { text-decoration:none; color:inherit; }
.news-card-body h3 a:hover { color:var(--teal); }
.news-card-body p { color:var(--muted); font-size:.9rem; line-height:1.65; }
.news-meta {
  display:flex; align-items:center; gap:14px;
  margin-top:16px; padding-top:16px;
  border-top:1px solid var(--border);
  font-size:.82rem; color:var(--muted);
}
.news-meta span { display:flex; align-items:center; gap:5px; }

/* ─── SAHIFALASH ─────────────────────────── */
.pagination {
  display:flex; justify-content:center; gap:8px;
  margin-top:40px; flex-wrap:wrap;
}
.pagination a, .pagination span {
  display:inline-flex; align-items:center; justify-content:center;
  width:40px; height:40px; border-radius:8px;
  border:1px solid var(--border); text-decoration:none;
  color:var(--ink); font-weight:500; transition:.2s;
}
.pagination a:hover, .pagination .current {
  background:var(--teal); color:#fff; border-color:var(--teal);
}

/* ─── GALLERY ────────────────────────────── */
.gallery-section { background: var(--ink); }
.gallery-section .section-header h2 { color:#fff; }
.gallery-section .section-tag { color: var(--gold); }
.gallery-section .section-header p { color:rgba(255,255,255,.6); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.gallery-item {
  border-radius: 12px; overflow:hidden;
  position:relative; cursor:pointer;
  height: 280px;
}
.gallery-item img { width:100%; height:100%; object-fit:cover; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item::after {
  content:''; position:absolute; inset:0;
  background: linear-gradient(to top, rgba(0,0,0,.5) 0%, transparent 60%);
  opacity:0; transition:.3s;
}
.gallery-item:hover::after { opacity:1; }

/* ─── LINKS ──────────────────────────────── */
.links-section { background: #fff; }
.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.link-card {
  display:flex; align-items:center; gap:16px;
  padding: 20px 22px;
  background: var(--bg); border-radius: var(--radius);
  border: 1px solid var(--border);
  text-decoration:none; color: var(--ink); transition: all .25s;
}
.link-card:hover { border-color:var(--teal); transform:translateX(4px); background:var(--white); box-shadow:var(--shadow); }
.link-icon {
  width:48px; height:48px; border-radius:12px;
  background: var(--teal); color:#fff;
  display:grid; place-items:center; font-size:1.3rem; flex-shrink:0;
}
.link-card h4 { font-weight:600; font-size:.95rem; margin-bottom:3px; }
.link-card p { font-size:.82rem; color:var(--muted); }
.link-arrow { margin-left:auto; color:var(--teal); font-size:1.1rem; opacity:.5; transition:.25s; }
.link-card:hover .link-arrow { opacity:1; transform:translateX(4px); }

/* ─── FULLSTORY ──────────────────────────── */
.fullstory-wrap { max-width:860px; margin:0 auto; padding:40px 0; }
.fullstory-header { margin-bottom:28px; }
.fullstory-title {
  font-family:'Playfair Display',serif;
  font-size:clamp(1.8rem,3vw,2.6rem);
  line-height:1.2; color:var(--ink); margin:12px 0;
}
.fullstory-meta {
  display:flex; gap:20px; flex-wrap:wrap;
  font-size:.88rem; color:var(--muted);
}
.fullstory-img-wrap { margin-bottom:28px; border-radius:var(--radius); overflow:hidden; }
.fullstory-img { width:100%; max-height:480px; object-fit:cover; display:block; }
.fullstory-body { font-size:1.05rem; line-height:1.8; color:var(--ink); }
.fullstory-body p { margin-bottom:16px; }
.fullstory-body h2, .fullstory-body h3 { font-family:'Playfair Display',serif; margin:24px 0 12px; }
.fullstory-tags { margin-top:32px; padding-top:20px; border-top:1px solid var(--border); font-size:.9rem; color:var(--muted); }
.fullstory-comments { margin-top:48px; }

/* ─── ICHKI SAHIFA ───────────────────────── */
.inner-page { margin-top:70px; min-height:60vh; }

/* ─── FOOTER ─────────────────────────────── */
footer {
  background: var(--ink);
  color: rgba(255,255,255,.8);
  padding: 60px 5% 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px; margin-bottom:48px;
}
.footer-brand .nav-logo span { color:#fff; }
.footer-brand p { margin-top:14px; font-size:.9rem; line-height:1.7; color:rgba(255,255,255,.55); }
.footer-col h5 {
  font-family:'Playfair Display',serif;
  font-size:1rem; color:#fff; margin-bottom:16px;
  padding-bottom:10px; border-bottom:1px solid rgba(255,255,255,.1);
}
.footer-col ul { list-style:none; display:flex; flex-direction:column; gap:10px; }
.footer-col a { text-decoration:none; color:rgba(255,255,255,.55); font-size:.9rem; transition:.2s; }
.footer-col a:hover { color:var(--gold); }
.footer-contact li { display:flex; gap:10px; align-items:flex-start; font-size:.88rem; }
.footer-contact li span:first-child { color:var(--gold); margin-top:2px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px;
  display:flex; justify-content:space-between; align-items:center;
  flex-wrap:wrap; gap:12px;
  font-size:.85rem; color:rgba(255,255,255,.35);
}
.footer-socials { display:flex; gap:12px; }
.social-btn {
  width:36px; height:36px; border-radius:8px;
  background:rgba(255,255,255,.08);
  display:grid; place-items:center; color:#fff;
  text-decoration:none; font-size:.9rem;
  transition: all .25s;
}
.social-btn:hover { background:var(--teal); transform:translateY(-2px); }

/* ─── SCROLL REVEAL ──────────────────────── */
.reveal { opacity:0; transform:translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity:1; transform:none; }

/* ─── RESPONSIVE ─────────────────────────── */
@media (max-width: 900px) {
  .nav-links, .nav-btn { display: none; }
  .burger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(2,1fr); }
  .gallery-item { height: 200px; }
}
@media (max-width: 600px) {
  .slider-section { height: 480px; }
  .footer-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2,1fr); }
  .gallery-item { height: 160px; }
  .footer-bottom { flex-direction:column; text-align:center; }
  .nav-logo {zoom: 0.6;}
}
.mob-sub > .mob-header {
    padding: 5px 10px;
}
.mob-sub {
	padding-bottom: 5px;
}
