/* ============================================
   Inner Pages — UUT International
   ============================================ */

/* Solid header on inner pages — readable over light body */
body.premium .header {
  background: linear-gradient(180deg, rgba(4,40,86,.98), rgba(4,40,86,.94));
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-bottom: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 8px 32px rgba(4,40,86,.28);
}
body.premium .header.scrolled {
  background: var(--navy);
  box-shadow: 0 12px 40px rgba(4,40,86,.38);
}

.page-main { padding-top: 0; }

.page-hero {
  position: relative;
  padding: calc(var(--total-header) + 56px) 0 64px;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-mid) 55%, #021a3d 100%);
  color: var(--white);
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(56,189,248,.1), transparent 50%),
    radial-gradient(ellipse at 20% 80%, rgba(212,162,78,.08), transparent 45%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 12px;
}
.page-hero p {
  color: rgba(255,255,255,.7);
  max-width: 640px;
  font-size: 1.02rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  font-size: .82rem;
  color: rgba(255,255,255,.5);
}
.breadcrumb a { color: var(--gold-light); transition: opacity .3s; }
.breadcrumb a:hover { opacity: .75; }
.breadcrumb span:last-child { color: rgba(255,255,255,.8); }

.page-section { padding: 80px 0; }
.page-section.alt { background: var(--white); }
.page-section.muted { background: var(--off); }

.content-card {
  padding: 36px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
}
.content-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 14px;
}
.content-card p {
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: 12px;
}
.content-card p:last-child { margin-bottom: 0; }

.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.vision-mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.vm-card {
  padding: 36px;
  border-radius: var(--radius-xl);
  background: var(--white);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
  transition: all .4s var(--ease-out);
}
.vm-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: rgba(212,162,78,.28);
}
.vm-card .vm-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(212,162,78,.1);
  color: var(--gold-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.vm-card .vm-icon svg { width: 26px; height: 26px; }
.vm-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 12px; }
.vm-card p { color: var(--muted); line-height: 1.9; }

.manager-message {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: start;
}
.manager-photo {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  aspect-ratio: 3/4;
  background-size: cover;
  background-position: center top;
}
.manager-info {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--grad-surface);
  color: var(--white);
  margin-top: 16px;
  text-align: center;
}
.manager-info strong { display: block; font-size: 1rem; margin-bottom: 4px; }
.manager-info span { font-size: .82rem; color: rgba(255,255,255,.6); }
.message-body {
  padding: 40px;
  border-radius: var(--radius-xl);
  background: var(--white);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
  position: relative;
}
.message-body::before {
  content: '\201C';
  position: absolute;
  top: 16px;
  left: 28px;
  font-size: 5rem;
  line-height: 1;
  color: rgba(212,162,78,.12);
  font-family: Georgia, serif;
}
.message-body p {
  color: var(--muted);
  line-height: 2;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.message-sign {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}
.message-sign strong { display: block; font-size: .95rem; margin-bottom: 4px; }
.message-sign span { font-size: .82rem; color: var(--muted); }

/* Org Chart */
.org-intro { max-width: 760px; margin-bottom: 48px; }
.org-chart-wrap {
  padding: 48px 32px;
  border-radius: var(--radius-xl);
  background: var(--white);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
  overflow-x: auto;
}
.org-tree {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  min-width: 680px;
}
.org-level {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  position: relative;
  width: 100%;
  padding: 20px 0;
}
.org-node {
  padding: 16px 24px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(4,40,86,.06), rgba(4,40,86,.02));
  border: 1px solid var(--border-light);
  text-align: center;
  min-width: 160px;
  transition: all .35s var(--ease-out);
}
.org-node:hover {
  border-color: rgba(212,162,78,.35);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}
.org-node.root {
  background: var(--grad-surface);
  color: var(--white);
  border-color: transparent;
  min-width: 220px;
}
.org-node strong { display: block; font-size: .9rem; font-weight: 700; margin-bottom: 4px; }
.org-node span { font-size: .75rem; color: var(--muted); }
.org-node.root span { color: rgba(255,255,255,.6); }
.org-connector {
  width: 2px;
  height: 28px;
  background: linear-gradient(to bottom, rgba(212,162,78,.5), rgba(212,162,78,.15));
}

/* Departments */
.dept-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.dept-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--border-light);
  transition: all .4s var(--ease-out);
}
.dept-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lift);
  border-color: rgba(212,162,78,.3);
}
.dept-card .dept-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(56,189,248,.1);
  color: #0a5088;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.dept-card .dept-icon svg { width: 26px; height: 26px; }
.dept-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.dept-card p { font-size: .88rem; color: var(--muted); line-height: 1.85; margin-bottom: 14px; }
.dept-card ul { margin-bottom: 16px; }
.dept-card li {
  font-size: .82rem;
  color: var(--muted);
  padding: 3px 0;
  padding-right: 14px;
  position: relative;
}
.dept-card li::before { content: '•'; position: absolute; right: 0; color: var(--gold); }
.dept-link { font-size: .85rem; font-weight: 600; color: var(--navy-light); }

/* Achievements */
.achieve-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.achieve-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--border-light);
  text-align: center;
  transition: all .4s var(--ease-out);
}
.achieve-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lift);
  border-color: rgba(212,162,78,.3);
}
.achieve-year {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 100px;
  background: rgba(212,162,78,.12);
  color: var(--gold-deep);
  font-size: .72rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.achieve-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.achieve-card p { font-size: .86rem; color: var(--muted); line-height: 1.8; }

/* Certificates */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.cert-card {
  padding: 28px 20px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--border-light);
  text-align: center;
  transition: all .4s var(--ease-out);
}
.cert-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: rgba(212,162,78,.3);
}
.cert-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(212,162,78,.1);
  color: var(--gold-deep);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cert-icon svg { width: 28px; height: 28px; }
.cert-card h4 { font-size: .92rem; font-weight: 700; margin-bottom: 6px; }
.cert-card span { font-size: .75rem; color: var(--muted); }

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease-out);
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(4,40,86,.8), transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity .4s;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span {
  color: var(--white);
  font-size: .85rem;
  font-weight: 600;
}
.gallery-item.wide { grid-column: span 2; aspect-ratio: 2/1; }
.gallery-item.tall { grid-row: span 2; aspect-ratio: auto; }

/* Rules */
.rules-list { display: flex; flex-direction: column; gap: 16px; }
.rule-item {
  padding: 28px 32px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--border-light);
  transition: all .35s;
}
.rule-item:hover {
  border-color: rgba(212,162,78,.3);
  box-shadow: var(--shadow-card);
}
.rule-item h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.rule-num {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--grad-surface);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .82rem;
  font-weight: 800;
  flex-shrink: 0;
}
.rule-item p { font-size: .9rem; color: var(--muted); line-height: 1.9; }

/* Map */
.map-embed {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
  height: 420px;
}
.map-embed iframe,
.map-embed img {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  object-fit: cover;
}
.map-local {
  position: relative;
  background: #1a2f28;
}
.map-pin-card {
  position: absolute;
  right: 24px;
  bottom: 24px;
  max-width: 280px;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(12, 22, 20, .86);
  border: 1px solid rgba(212,162,78,.28);
  color: #fff;
  backdrop-filter: blur(10px);
}
.map-pin-card strong {
  display: block;
  font-size: .95rem;
  margin-bottom: 6px;
}
.map-pin-card span {
  display: block;
  font-size: .82rem;
  color: rgba(255,255,255,.72);
  line-height: 1.7;
}

/* Social block */
.social-block {
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--grad-surface);
  color: var(--white);
  text-align: center;
}
.social-block h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.social-block p { font-size: .88rem; color: rgba(255,255,255,.6); margin-bottom: 24px; }
.social-block .socials { justify-content: center; }

/* Footer extras */
.foot-social {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.foot-links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

/* Side nav for pages */
.page-submenu {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.page-submenu a {
  padding: 10px 20px;
  border-radius: 100px;
  font-size: .84rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--white);
  border: 1px solid var(--border-light);
  transition: all .3s;
}
.page-submenu a:hover,
.page-submenu a.active {
  color: var(--navy);
  border-color: rgba(212,162,78,.4);
  background: rgba(212,162,78,.08);
}

/* Stats row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.stat-box {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.12);
  text-align: center;
  color: var(--white);
}
.stat-box strong {
  display: block;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-box span { font-size: .82rem; color: rgba(255,255,255,.55); }

@media (max-width: 1100px) {
  .split-layout, .vision-mission-grid, .manager-message { grid-template-columns: 1fr; }
  .dept-grid, .achieve-grid { grid-template-columns: repeat(2, 1fr); }
  .cert-grid, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-links-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .page-hero { padding: calc(var(--total-header) + 40px) 0 48px; }
  .page-section { padding: 60px 0; }
  .dept-grid, .achieve-grid, .cert-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item.wide { grid-column: span 1; aspect-ratio: 4/3; }
  .gallery-item.tall { grid-row: span 1; }
  .foot-links-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .manager-photo { max-width: 280px; margin: 0 auto; }
  .map-pin-card {
    right: 12px;
    left: 12px;
    bottom: 12px;
    max-width: none;
  }
}
