/* Uyghur page font + RTL */
body {
  font-family: "Noto Naskh Arabic", Tahoma, Arial, sans-serif;
}

/* Make nav look good in RTL */
.nav-links a {
  margin-left: 0;
  margin-right: 14px;
}

/* Wrapper */
.ug-wrap {
  max-width: 1100px;
  margin: 40px auto 80px;
  padding: 0 18px;
}

/* Hero */
.ug-hero {
  margin-top: 20px;
}

/* 🔒 Keep layout LTR, text RTL */
.ug-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  /* image left, text right */
  gap: 50px;
  align-items: center;
}


/* Text inside remains RTL */
.ug-hero-right,
.ug-card,
.ug-section h2,
.ug-section p {
  direction: rtl;
  text-align: justify;
}

.ug-hero-img {
  max-width: 360px;
  max-height: 360px;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

/* Typography */
.ug-title {
  margin: 0 0 10px;
  font-size: 38px;
  color: var(--neon);
}

/* Header stays LTR so logo remains LEFT even on RTL pages */
.topbar,
.navbar {
  direction: ltr;
}

/* Menu text stays RTL for Uyghur */
.nav-links {
  direction: rtl;
}

.ug-sub {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.9;
  font-size: 17px;
  text-align: justify;
}

/* Pills */
.ug-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.pill {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.04);
  font-weight: 700;
  font-size: 13px;
}

.pill:hover {
  background: rgba(255, 165, 0, 0.18);
  border-color: rgba(255, 165, 0, 0.45);
  color: #FFA500;
}

/* Buttons */
.ug-cta {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  direction: rtl;
}


.btn-ug {
  display: inline-block;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  text-decoration: none;
  font-weight: 900;
  transition: all 0.2s ease;
}

.btn-ug:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn-ug.primary {
  border-color: rgba(255, 165, 0, 0.45);
  background: rgba(255, 165, 0, 0.14);
  color: #FFA500;
}

.btn-ug.primary:hover {
  background: rgba(255, 165, 0, 0.22);
}

/* Sections */
.ug-section {
  margin-top: 30px;
  padding-top: 6px;
}

.ug-section h2 {
  margin: 0 0 10px;
  color: var(--ocean);
}

.muted {
  color: var(--muted);
  line-height: 1.85;
}

/* Course cards (lightweight) */
.ug-cards {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.ug-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 14px;
}

.ug-card h3 {
  margin: 0 0 8px;
  color: var(--text);
  font-weight: 900;
}

.ug-card p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.8;
}

.ug-link {
  text-decoration: none;
  font-weight: 900;
  color: #FFA500;
}

.ug-link:hover {
  color: var(--neon);
}

.ug-note {
  margin-top: 14px;
  color: var(--muted);
}

.ug-note a {
  color: var(--text);
  font-weight: 900;
  text-decoration: none;
}

.ug-note a:hover {
  color: #FFA500;
}

/* Contact */
.ug-contact {
  margin: 10px 0 14px;
  color: var(--muted);
  line-height: 1.9;
  text-align: right;
}

.ug-contact a {
  color: var(--text);
  font-weight: 900;
  text-decoration: none;
}

.ug-contact a:hover {
  color: #FFA500;
}

/* Registration split layout */
.ug-register-split{
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: 22px;
  align-items: center;

  /* Lock visual layout (prevents RTL flipping) */
  direction: ltr;
}

/* LEFT column: image */
.ug-register-left{
  display: flex;
  justify-content: center;
}

/* RIGHT column: text */
.ug-register-right{
  direction: rtl;      /* Uyghur text */
  text-align: justify;
}

/* Image size */
.ug-register-img{
  width: min(300px,100%);
  height: auto;
  display: block;
}

/* Mobile: stack */
@media (max-width: 900px){
  .ug-register-split{
    grid-template-columns: 1fr;
  }
}

/* Footer */
.footer {
  margin-top: 50px;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}

/* Responsive */
@media (max-width: 980px) {
  .ug-hero-grid {
    grid-template-columns: 1fr;
  }

  .ug-cards {
    grid-template-columns: 1fr;
  }
}

.ug-hero-left {
  display: flex;
  justify-content: center;
  align-items: center;
}

.ug-hero-img {
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;
  max-height: 360px;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.ug-cards {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.ug-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px;

  display: flex;
  flex-direction: column;
  min-height: 180px;
}

.ug-card h3 {
  margin: 0 0 10px;
  color: var(--text);
  font-weight: 900;
}

.ug-card p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.85;
  flex: 1;
}

.ug-link {
  align-self: flex-start;
  text-decoration: none;
  font-weight: 900;
  color: #FFA500;
}

.ug-link:hover {
  color: var(--neon);
}

@media (max-width: 980px) {
  .ug-cards {
    grid-template-columns: 1fr;
  }
}

.slider {
  width: 100%;
  max-width: 1000px;
  height: 360px;
  /* ✅ fixed height */
  margin: 20px auto;
  overflow: hidden;
  position: relative;
  border-radius: 10px;
}

/* Slides container */
.slides {
  display: flex;
  height: 100%;
  transition: transform 0.6s ease-in-out;
}

/* Images */
.slides img {
  width: 100%;
  height: 100%;
  /* ✅ force same visible size */
  object-fit: cover;
  /* ✅ crop instead of stretch */
  flex-shrink: 0;
  display: block;
}

/* ===== NAVBAR LOCK (prevents other pages CSS overriding it) ===== */
.topbar {
  background: rgba(10, 20, 30, .90) !important;
}

.nav {
  max-width: 1100px;
  margin: auto;
  min-height: var(--nav-h);
  padding: 12px 18px;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 16px;
  direction: ltr;
}

.nav-links {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  flex-wrap: wrap;
  justify-content: flex-end;
  direction: rtl;
}

.nav-links a {
  color: var(--text) !important;
  text-decoration: none !important;
  font-weight: 700 !important;
  padding: 8px 10px !important;
  border-radius: 10px !important;
  background: transparent !important;
}

.nav-links a:hover {
  color: var(--neon) !important;
  background: rgba(255, 255, 255, .06) !important;
}


/* Registration split layout: text left, image right */
.ug-register-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* half / half */
  gap: 22px;
  align-items: center;
}

/* Force the text column to be on the LEFT, image on the RIGHT (even in RTL) */
.ug-register-left {
  grid-column: 1;
}

.ug-register-right {
  grid-column: 2;
}

.ug-register-img {
  width: 50%;
  height: auto;
  display: block;
  /* border-radius: 16px; */
  /* box-shadow: 0 18px 50px rgba(0, 0, 0, .18); */
}

/* Mobile: stack */
@media (max-width: 900px) {
  .ug-register-split {
    grid-template-columns: 1fr;
  }

  .ug-register-left,
  .ug-register-right {
    grid-column: auto;
  }
}


/* ===== Uyghur page: remove English panel overlays . new added style===== */
.ug-wrap .home-layout,
.ug-wrap .card-panel,
.ug-wrap .devops-bottom,
.ug-wrap .loop-card,
.ug-wrap .pill-card,
.ug-wrap .why-card,
.ug-wrap .about-block {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
