/* ===================================
   MAIN.CSS — pgu.uz shared styles
   =================================== */

*, *::before, *::after {
  margin:5px;

}

body {
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; }

.container {
  width: 90%;
  max-width: 1280px;
  margin: 0 auto;
}

/* ─── TOPBAR ─────────────────────────── */
.topbar {
  background: #0f2d52;
  color: #fff;
  font-size: 14px;
  padding: 9px 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.topbar-left, .topbar-right {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.topbar a { color: #fff; opacity: .9; transition: .25s; }
.topbar a:hover { opacity: 1; color: #8ed0ff; }

/* ─── HEADER ─────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: rgba(255,255,255,.97);
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
}

.navbar {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
}

/* ─── LOGO ───────────────────────────── */
.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-mark {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1b79d1, #0f4c81);
  color: #fff;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 1px;
  box-shadow: 0 8px 20px rgba(27,121,209,.28);
  transition: .3s ease;
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.logo-text strong {
  font-size: 19px;
  color: #123b67;
  font-weight: 800;
}
.logo-text small {
  font-size: 12px;
  color: #6b7b8c;
  margin-top: 3px;
}
.site-logo:hover .logo-mark { transform: translateY(-2px) scale(1.04); }
.site-logo:hover .logo-text strong { color: #1b79d1; }

/* ─── DESKTOP NAV ────────────────────── */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-item { position: relative; }

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #17385d;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 10px;
  transition: .25s ease;
  white-space: nowrap;
}
.nav-link:hover,
.nav-item.open > .nav-link {
  color: #1b79d1;
  background: #eef6ff;
}

/* dropdown arrow */
.has-dropdown > .nav-link::after {
  content: "▾";
  font-size: 11px;
  transition: transform .25s;
}
.has-dropdown.open > .nav-link::after,
.has-dropdown:hover > .nav-link::after { transform: rotate(180deg); }

/* ─── DROPDOWN ───────────────────────── */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 300px;
  background: #fff;
  border-radius: 16px;
  padding: 10px 0;
  box-shadow: 0 18px 40px rgba(0,0,0,.12);
  border: 1px solid rgba(11,63,120,.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: .25s ease;
  z-index: 100;
}
.dropdown-menu a {
  display: block;
  padding: 11px 18px;
  color: #1d2b38;
  font-size: 14px;
  line-height: 1.45;
  transition: .2s ease;
}
.dropdown-menu a:hover {
  background: #f4f8fd;
  color: #0b3f78;
  padding-left: 24px;
}
.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.mega-menu { min-width: 400px; max-height: 440px; overflow-y: auto; }

/* ─── BURGER BUTTON ──────────────────── */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 10px;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  transition: background .2s;
  flex-shrink: 0;
}
.nav-toggle:hover { background: #eef6ff; }
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: #17385d;
  border-radius: 3px;
  transition: transform .35s ease, opacity .25s ease, width .25s ease;
  transform-origin: center;
}
/* Burger → X animation */
.nav-toggle.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; width: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ─── MOBILE NAV ─────────────────────── */
@media (max-width: 980px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,.10);
    padding: 12px 16px 18px;
    max-height: 80vh;
    overflow-y: auto;
    border-top: 1px solid rgba(11,63,120,.06);
  }
  .nav-menu.show { display: flex; }

  .nav-link {
    padding: 13px 10px;
    border-radius: 10px;
    font-size: 15px;
    width: 100%;
    justify-content: space-between;
  }
  .nav-link:hover, .nav-item.open > .nav-link {
    background: #eef6ff;
    color: #1b79d1;
  }
  /* arrow on mobile */
  .has-dropdown > .nav-link::after {
    content: "›";
    font-size: 18px;
    font-weight: 400;
    transition: transform .3s;
    margin-left: auto;
  }
  .has-dropdown.open > .nav-link::after { transform: rotate(90deg); }

  /* mobile dropdown */
  .dropdown-menu {
    position: static;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    box-shadow: none;
    border: none;
    padding: 4px 0 8px 14px;
    display: none;
    min-width: 100%;
    border-radius: 0;
    border-left: 2px solid #d6e8f8;
    margin-left: 10px;
    max-height: none;
  }
  .nav-item.open > .dropdown-menu { display: block; }
  .dropdown-menu a {
    padding: 9px 10px;
    font-size: 14px;
    color: #2d4a66;
    border-radius: 8px;
  }
  .dropdown-menu a:hover {
    padding-left: 14px;
    background: #f0f7ff;
  }

  /* divider between nav items */
  .nav-item { border-bottom: 1px solid #f0f5fa; }
  .nav-item:last-child { border-bottom: none; }
}

/* ─── TOPBAR MOBILE ──────────────────── */
@media (max-width: 600px) {
  .topbar .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .topbar-left, .topbar-right { gap: 12px; }
}

/* ─── REVEAL ANIMATION ───────────────── */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .85s ease, transform .85s ease;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}


/* ─── FOOTER ─────────────────────────── */
footer {
  background: #0d2340;
  color: #d5e3f3;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 32px;
  padding: 64px 0 40px;
}
.footer-col h3 {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-col p,
.footer-col a,
.footer-col li {
  color: #b8cede;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 8px;
  display: block;
  transition: .2s;
}
.footer-col a:hover { color: #8ed0ff; padding-left: 4px; }
.footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.footer-logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1b79d1, #0f4c81);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  flex-shrink: 0;
}
.footer-logo-text strong { color: #fff; font-size: 16px; display: block; }
.footer-logo-text small  { color: #7fa8c9; font-size: 12px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 18px 0;
  text-align: center;
  font-size: 13px;
  color: #7fa8c9;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; padding: 48px 0 32px; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 20px; padding: 36px 0 24px; }
  .footer-col h3 { margin-bottom: 10px; }
}

/* ═══════════════════════════════════════════
   ADMISSION APPLICATION FORM SECTION
   ═══════════════════════════════════════════ */
.admission-form-section {
  padding: 72px 0 80px;
  background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 50%, #f5f0ff 100%);
  border-bottom: 1px solid #dde6fa;
}
.admission-form-wrap {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
}
.admission-form-info {
  padding-right: 20px;
}
.form-info-badge {
  display: inline-block;
  background: linear-gradient(135deg, #0052cc, #0066ff);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.admission-form-info h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #0b1f3a;
  line-height: 1.25;
  margin: 0 0 16px;
}
.admission-form-info p {
  font-size: 15px;
  color: #4a5568;
  line-height: 1.7;
  margin: 0 0 28px;
}
.form-benefits {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.form-benefits li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  color: #2d3748;
  font-weight: 500;
}
.benefit-icon {
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, #0052cc, #0066ff);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  flex-shrink: 0;
}

/* FORM CARD */
.admission-form-card {
  background: #fff;
  border-radius: 20px;
  padding: 44px 40px;
  box-shadow: 0 8px 40px rgba(0, 82, 204, 0.13), 0 2px 8px rgba(0,0,0,0.06);
  border: 1px solid rgba(0, 82, 204, 0.08);
}
.admission-form-card h3 {
  font-size: 1.45rem;
  font-weight: 800;
  color: #0b1f3a;
  margin: 0 0 4px;
}
.form-subtitle {
  font-size: 13.5px;
  color: #718096;
  margin: 0 0 28px;
}
.af-group {
  margin-bottom: 18px;
}
.af-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.af-label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: #2d3748;
  letter-spacing: 0.4px;
  margin-bottom: 6px;
  text-transform: uppercase;
}
.af-input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: 14px;
  color: #2d3748;
  background: #f8fafc;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  outline: none;
  box-sizing: border-box;
  font-family: inherit;
}
.af-input:focus {
  border-color: #0052cc;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.1);
}
.af-select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%230052cc' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.af-textarea { resize: vertical; min-height: 88px; }
.af-btn {
  width: 100%;
  padding: 15px 24px;
  background: linear-gradient(135deg, #0052cc 0%, #0066ff 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
  box-shadow: 0 4px 16px rgba(0, 82, 204, 0.3);
  margin-top: 8px;
  font-family: inherit;
}
.af-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(0,82,204,0.38); }
.af-btn:active { transform: translateY(0); }
.af-btn:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }
.af-btn-icon { font-size: 18px; transition: transform 0.2s; }
.af-btn:hover .af-btn-icon { transform: translateX(4px); }
.af-success {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, #f0fff4, #e6ffed);
  border: 1.5px solid #68d391;
  border-radius: 12px;
  padding: 16px 20px;
  margin-top: 8px;
  font-size: 22px;
}
.af-success strong { display: block; font-size: 15px; color: #276749; margin-bottom: 2px; }
.af-success p { margin: 0; font-size: 13px; color: #48bb78; }
.af-privacy {
  font-size: 11.5px;
  color: #a0aec0;
  text-align: center;
  margin: 12px 0 0;
}

@media (max-width: 900px) {
  .admission-form-wrap { grid-template-columns: 1fr; gap: 36px; }
  .admission-form-info { padding-right: 0; }
}
@media (max-width: 540px) {
  .admission-form-card { padding: 28px 20px; }
  .af-row { grid-template-columns: 1fr; }
  .admission-form-info h2 { font-size: 1.6rem; }
}


/* Admission SOP form and media frame fixes */
.sop-form-section {
  padding: 72px 0;
  background: linear-gradient(180deg, #f4f8fc 0%, #eaf2fb 100%);
}

.sop-form-wrap {
  background: #ffffff;
  border-radius: 28px;
  padding: 36px;
  box-shadow: 0 18px 44px rgba(15, 76, 129, .12);
  border: 1px solid rgba(15, 76, 129, .08);
}

.sop-form-title {
  color: #123b67;
  font-size: 30px;
  line-height: 1.2;
  margin-bottom: 26px;
  text-align: center;
}

.sop-row {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}

.sop-cols-1 { grid-template-columns: 1fr; }
.sop-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sop-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.sop-group { min-width: 0; }

.sop-input,
.sop-select,
.sop-file-btn,
.sop-file-input-label {
  width: 100%;
  min-height: 54px;
  border: 1px solid rgba(15, 76, 129, .18);
  border-radius: 14px;
  background: #f8fbff;
  color: #17385d;
  padding: 0 16px;
  font-size: 15px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.sop-input:focus,
.sop-select:focus {
  border-color: #1b79d1;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(27, 121, 209, .12);
}

.sop-file-btn,
.sop-file-input-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-weight: 700;
}

.sop-section-head {
  margin: 28px 0 16px;
  padding-top: 8px;
}

.sop-section-head h3 {
  color: #123b67;
  font-size: 22px;
  margin-bottom: 6px;
}

.sop-section-head p {
  color: #657789;
  line-height: 1.6;
}

.sop-submit-btn {
  width: 100%;
  min-height: 58px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #1b79d1, #0f4c81);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .4px;
  cursor: pointer;
  margin-top: 12px;
  box-shadow: 0 14px 30px rgba(27, 121, 209, .24);
  transition: transform .25s ease, box-shadow .25s ease;
}

.sop-submit-btn:hover { transform: translateY(-2px); box-shadow: 0 18px 36px rgba(27, 121, 209, .32); }
.sop-submit-btn:disabled { opacity: .7; cursor: wait; transform: none; }

.sop-success {
  margin-top: 18px;
  border-radius: 16px;
  background: #e9f9ef;
  color: #176334;
  padding: 16px 18px;
  font-weight: 700;
}

.intro-image,
.program-image,
.card,
.quota-card,
.gallery-item {
  overflow: hidden;
}

.intro-image img,
.program-image img,
.card img,
.quota-card img,
.gallery-item img {
  max-width: 100% !important;
  width: 100% !important;
  object-fit: cover;
}

@media (max-width: 900px) {
  .sop-cols-2,
  .sop-cols-3 { grid-template-columns: 1fr; }
  .sop-form-wrap { padding: 24px; border-radius: 22px; }
  .sop-form-title { font-size: 24px; }
}


/* Global broken image fallback */
img.img-fallback {
  object-fit: cover;
  background: linear-gradient(135deg, #e8f3ff, #f8fbff);
}

/* Admin editable footer note guard rails */
.footer-note,
.footer-note * {
  box-sizing: border-box;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.footer-note :where(img, video, iframe, embed, object, table) {
  max-width: 100% !important;
}

.footer-note :where(img, video) {
  height: auto !important;
}

.footer-note table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

