* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: "Segoe UI", Arial, Helvetica, sans-serif; background: #f4f7fb; color: #0f172a; line-height: 1.6; min-height: 100vh; }
a { color: #1d4ed8; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.moict-wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Site header (topbar + nav) */
.moict-site-header {
  position: sticky; top: 0; z-index: 500;
  background: #fff;
  box-shadow: 0 2px 12px rgba(15,23,42,.06);
  overflow: visible;
}

/* Top bar */
.moict-topbar { background: linear-gradient(90deg, #0c4a8a, #1d6fd8); color: #fff; font-size: 13px; position: relative; z-index: 2; }
.moict-topbar-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 16px; min-height: 38px; padding: 6px 0; }
.moict-topbar-left, .moict-topbar-right { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 20px; }
.moict-topbar-item { display: inline-flex; align-items: center; gap: 6px; color: #fff; text-decoration: none; font-weight: 500; }
.moict-topbar-item svg { width: 15px; height: 15px; flex-shrink: 0; }
.moict-topbar-admin { color: #fff; font-weight: 700; padding: 4px 10px; border: 1px solid rgba(255,255,255,.4); border-radius: 6px; text-decoration: none; }
.moict-topbar-admin:hover { background: rgba(255,255,255,.15); text-decoration: none; }

/* Header */
.moict-header { background: #fff; border-bottom: 1px solid #e2e8f0; position: relative; z-index: 3; overflow: visible; }
.moict-header-inner {
  display: flex; align-items: center; gap: 16px;
  min-height: 76px; padding: 10px 0;
  flex-wrap: nowrap;
  overflow: visible;
}
.moict-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; flex-shrink: 0; min-width: 0; }
.moict-logo:hover { text-decoration: none; }
.moict-logo-icon { width: 50px; height: 50px; border-radius: 12px; background: linear-gradient(135deg, #0c4a8a, #1d6fd8); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; letter-spacing: .5px; }
.moict-logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.moict-logo-text strong { font-size: 18px; color: #0c4a8a; letter-spacing: .5px; }
.moict-logo-text span { font-size: 11px; color: #64748b; max-width: 280px; }
.moict-menu-toggle {
  display: none; background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 8px;
  padding: 8px 12px; font-size: 18px; cursor: pointer; color: #1d4ed8;
  flex-shrink: 0; margin-left: auto;
}
.moict-menu {
  display: flex; align-items: center; gap: 2px; flex-wrap: nowrap;
  flex: 1; justify-content: flex-end; min-width: 0; position: relative; z-index: 10;
  overflow: visible;
}
.moict-menu-link { padding: 8px 12px; border-radius: 8px; color: #334155; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.moict-menu-link:hover { background: #f1f5f9; text-decoration: none; color: #0c4a8a; }
.moict-menu-link.active { background: #eff6ff; color: #1d4ed8; }

/* Nav dropdown */
.moict-dropdown { position: relative; flex-shrink: 0; z-index: 20; }
.moict-dropdown-toggle {
  display: inline-flex; align-items: center; gap: 4px;
  background: none; border: none; cursor: pointer; font-family: inherit;
}
.moict-dropdown-chevron { font-size: 11px; opacity: .7; transition: transform .2s; }
.moict-dropdown.open .moict-dropdown-chevron { transform: rotate(180deg); }
.moict-dropdown-panel {
  display: none; position: absolute; top: 100%; left: 0; min-width: 260px; max-width: 320px;
  padding-top: 8px; z-index: 610;
}
.moict-dropdown.open .moict-dropdown-panel { display: block; }
.moict-dropdown-menu {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 10px;
  box-shadow: 0 16px 40px rgba(15,23,42,.14); padding: 6px;
  max-height: min(70vh, 420px); overflow-y: auto;
}
.moict-dropdown-item {
  display: block; padding: 10px 14px; border-radius: 8px; color: #334155;
  font-size: 14px; font-weight: 600; text-decoration: none; white-space: normal;
}
.moict-dropdown-item:hover { background: #eff6ff; color: #0c4a8a; text-decoration: none; }
.moict-dropdown-all {
  color: #1d4ed8; border-bottom: 1px solid #e2e8f0; margin-bottom: 4px;
  border-radius: 8px 8px 0 0;
}
.moict-dropdown-empty {
  display: block; padding: 12px 14px; color: #64748b; font-size: 13px; font-style: italic;
}

/* Hero Slider */
.hero-slider { position: relative; height: 520px; overflow: hidden; background: #0c4a8a; z-index: 1; isolation: isolate; }
.hero-track { position: relative; width: 100%; height: 100%; }
.hero-slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  background-size: cover; background-position: center;
  transition: opacity 1s ease, transform 8s ease;
  transform: scale(1.05); pointer-events: none; z-index: 1;
}
.hero-slide.active { opacity: 1; visibility: visible; transform: scale(1); pointer-events: auto; z-index: 2; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(110deg, rgba(8,47,94,.88) 0%, rgba(12,74,138,.72) 45%, rgba(14,165,233,.35) 100%);
}
.hero-content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; color: #fff; max-width: 720px; padding: 40px 0; }
.hero-tag { display: inline-block; width: fit-content; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.25); padding: 6px 14px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; margin-bottom: 18px; animation: fadeUp .8s ease; }
.hero-content h2 { font-size: clamp(32px, 5vw, 52px); line-height: 1.1; margin-bottom: 16px; animation: fadeUp .8s ease .1s both; }
.hero-content p { font-size: 18px; color: rgba(255,255,255,.9); margin-bottom: 28px; animation: fadeUp .8s ease .2s both; }
.hero-btn { display: inline-block; width: fit-content; background: #fff; color: #0c4a8a; padding: 14px 28px; border-radius: 10px; font-weight: 700; text-decoration: none; box-shadow: 0 8px 24px rgba(0,0,0,.2); animation: fadeUp .8s ease .3s both; transition: .2s; }
.hero-btn:hover { transform: translateY(-2px); text-decoration: none; background: #eff6ff; }
.hero-dots { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 5; }
.hero-dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; background: transparent; cursor: pointer; padding: 0; transition: .2s; }
.hero-dot.active, .hero-dot:hover { background: #fff; }
.hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 46px; height: 46px; border-radius: 50%; border: none; background: rgba(255,255,255,.2); color: #fff; font-size: 28px; cursor: pointer; backdrop-filter: blur(4px); transition: .2s; }
.hero-arrow:hover { background: rgba(255,255,255,.35); }
.hero-prev { left: 20px; }
.hero-next { right: 20px; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* Sections */
.section { padding: 64px 0; }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { font-size: 32px; color: #0c4a8a; margin-bottom: 8px; }
.section-title p { color: #64748b; font-size: 16px; }
.section-head-row { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 32px; flex-wrap: wrap; }
.section-head-row h2 { font-size: 28px; color: #0c4a8a; }
.view-all { font-weight: 700; color: #1d4ed8; }

/* Stats strip */
.stats-strip { background: #fff; border-top: 1px solid #e2e8f0; border-bottom: 1px solid #e2e8f0; padding: 28px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; text-align: center; }
.stat-item strong { display: block; font-size: 28px; color: #1d4ed8; }
.stat-item span { font-size: 13px; color: #64748b; font-weight: 600; text-transform: uppercase; letter-spacing: .3px; }

/* News cards */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.news-card { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 20px rgba(15,23,42,.08); transition: .25s; border: 1px solid #e8eef5; }
.news-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(15,23,42,.12); }
.news-card-image { display: block; height: 200px; overflow: hidden; background: linear-gradient(135deg, #dbeafe, #e0f2fe); }
.news-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.news-card:hover .news-card-image img { transform: scale(1.06); }
.news-card-placeholder { height: 100%; display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 800; color: #93c5fd; letter-spacing: 2px; }
.news-card-body { padding: 22px; }
.news-badge { display: inline-block; background: #eff6ff; color: #1d4ed8; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; text-transform: uppercase; margin-right: 8px; }
.news-card-body time { font-size: 12px; color: #94a3b8; }
.news-card-body h3 { margin: 10px 0 8px; font-size: 20px; line-height: 1.3; }
.news-card-body h3 a { color: #0f172a; text-decoration: none; }
.news-card-body h3 a:hover { color: #1d4ed8; }
.news-card-body p { color: #64748b; font-size: 14px; margin-bottom: 12px; }
.read-more { font-weight: 700; font-size: 14px; text-decoration: none; }
.read-more:hover { text-decoration: underline; }

/* Page hero */
.page-hero { background: linear-gradient(135deg, #0c4a8a, #1d6fd8); color: #fff; padding: 56px 0; }
.page-hero h1 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 8px; }
.page-hero p { color: rgba(255,255,255,.85); font-size: 17px; }

/* Content */
.content-block { padding: 48px 0; }
.prose { max-width: 800px; margin: 0 auto; background: #fff; padding: 36px; border-radius: 16px; box-shadow: 0 4px 20px rgba(15,23,42,.06); }
.prose h2 { color: #0c4a8a; margin: 24px 0 12px; }
.prose p { margin-bottom: 14px; color: #334155; }

/* Management */
.mgmt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px; }
.mgmt-card { background: #fff; border-radius: 16px; padding: 28px; text-align: center; box-shadow: 0 4px 20px rgba(15,23,42,.08); border: 1px solid #e8eef5; }
.mgmt-photo { width: 120px; height: 120px; border-radius: 50%; margin: 0 auto 16px; background: linear-gradient(135deg, #dbeafe, #bfdbfe); display: flex; align-items: center; justify-content: center; font-size: 36px; font-weight: 800; color: #1d4ed8; overflow: hidden; }
.mgmt-photo img { width: 100%; height: 100%; object-fit: cover; }
.mgmt-card h3 { font-size: 20px; color: #0c4a8a; margin-bottom: 4px; }
.mgmt-role { color: #1d4ed8; font-weight: 600; font-size: 14px; margin-bottom: 10px; }
.mgmt-card p { color: #64748b; font-size: 14px; }

/* Departments */
.dept-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.dept-card { background: #fff; border-radius: 16px; padding: 28px; box-shadow: 0 4px 20px rgba(15,23,42,.08); border: 1px solid #e8eef5; transition: .2s; }
.dept-card:hover { border-color: #93c5fd; transform: translateY(-4px); }
.dept-icon { width: 52px; height: 52px; border-radius: 12px; background: #eff6ff; color: #1d4ed8; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.dept-icon svg { width: 28px; height: 28px; }
.dept-card h3 { font-size: 18px; color: #0c4a8a; margin-bottom: 8px; }
.dept-card p { color: #64748b; font-size: 14px; }
.dept-empty { grid-column: 1 / -1; text-align: center; color: #64748b; padding: 32px; background: #fff; border-radius: 16px; border: 1px solid #e8eef5; }
.dept-card:target, .dept-card-highlight {
  border-color: #1d4ed8;
  box-shadow: 0 0 0 3px rgba(29,78,216,.2), 0 8px 24px rgba(15,23,42,.1);
}

/* Contacts */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.contact-card { background: #fff; border-radius: 16px; padding: 28px; box-shadow: 0 4px 20px rgba(15,23,42,.08); }
.contact-card h3 { color: #0c4a8a; margin-bottom: 12px; }
.contact-card p { color: #475569; margin-bottom: 6px; }

/* Media */
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.media-card { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 20px rgba(15,23,42,.08); }
.media-thumb { height: 180px; background: linear-gradient(135deg, #dbeafe, #e0f2fe); display: flex; align-items: center; justify-content: center; color: #1d4ed8; font-weight: 700; }
.media-thumb img { width: 100%; height: 100%; object-fit: cover; }
.media-body { padding: 20px; }
.media-type { font-size: 11px; font-weight: 700; color: #1d4ed8; text-transform: uppercase; }
.media-body h3 { margin: 8px 0; font-size: 18px; }
.media-body p { color: #64748b; font-size: 14px; }

/* Article */
.article-header { background: #fff; padding: 40px 0; border-bottom: 1px solid #e2e8f0; }
.article-header h1 { font-size: clamp(26px, 4vw, 38px); color: #0c4a8a; margin-bottom: 10px; }
.article-meta { color: #64748b; font-size: 14px; }
.article-image { max-height: 420px; overflow: hidden; border-radius: 16px; margin: 32px auto; max-width: 900px; }
.article-image img { width: 100%; height: 100%; object-fit: cover; }
.article-content { max-width: 800px; margin: 0 auto; padding: 32px 20px 64px; }
.article-content p { margin-bottom: 16px; color: #334155; font-size: 17px; line-height: 1.8; }

/* CTA band */
.cta-band { background: linear-gradient(135deg, #0c4a8a, #1d6fd8); color: #fff; padding: 56px 0; text-align: center; }
.cta-band h2 { font-size: 28px; margin-bottom: 10px; }
.cta-band p { margin-bottom: 22px; color: rgba(255,255,255,.9); }
.cta-btn { display: inline-block; background: #fff; color: #0c4a8a; padding: 14px 28px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.cta-btn:hover { background: #eff6ff; text-decoration: none; }

/* Footer */
.moict-footer {
  position: relative;
  background: linear-gradient(165deg, #166534 0%, #14532d 35%, #0f3d22 70%, #0a2e1a 100%);
  color: #ecfdf5;
  padding: 52px 0 28px;
  margin-top: 40px;
}
.moict-footer-accent {
  position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: linear-gradient(90deg, #22c55e 0%, #4ade80 50%, #22c55e 100%);
  box-shadow: 0 2px 12px rgba(34,197,94,.4);
  pointer-events: none;
}
.moict-footer h4 { color: #fff; margin-bottom: 10px; font-size: 16px; }
.moict-footer h4::after { content: ""; display: block; width: 40px; height: 3px; background: #86efac; border-radius: 2px; margin-top: 6px; }
.moict-footer p { color: #d1fae5; }
.moict-footer a { color: #bbf7d0; text-decoration: none; }
.moict-footer a:hover { color: #fff; text-decoration: underline; }
.moict-footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; margin-bottom: 28px; }
.moict-copy { text-align: center; font-size: 13px; color: #a7f3d0; border-top: 1px solid rgba(255,255,255,.15); padding-top: 20px; }

/* Admin */
.admin-body { background: #f1f5f9; }
.admin-nav { background: #0c4a8a; color: #fff; padding: 16px 24px; }
.admin-nav-inner { max-width: 1100px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.admin-nav h1 { font-size: 18px; }
.admin-nav p { font-size: 13px; color: #bfdbfe; }
.admin-role-badge { display: inline-block; background: rgba(34,197,94,.25); color: #bbf7d0; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; margin-left: 6px; border: 1px solid rgba(34,197,94,.4); }
.admin-nav-links { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.admin-nav-links a { color: #fff; padding: 8px 12px; border-radius: 6px; text-decoration: none; font-size: 14px; }
.admin-nav-links a:hover { background: rgba(255,255,255,.15); text-decoration: none; }
.admin-nav-links a.btn-light { background: rgba(255,255,255,.15); }
.admin-container { max-width: 1100px; margin: 0 auto; padding: 32px 24px; }
.admin-card { background: #fff; border-radius: 12px; padding: 24px; box-shadow: 0 2px 8px rgba(0,0,0,.08); margin-bottom: 24px; }
.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-bottom: 28px; }
.admin-stat { background: #fff; border-radius: 12px; padding: 20px; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.admin-stat strong { display: block; font-size: 28px; color: #1d4ed8; }
.admin-stat span { font-size: 13px; color: #64748b; }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: #475569; margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 14px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 14px; font-family: inherit;
}
.form-group textarea { min-height: 120px; resize: vertical; }
.btn { display: inline-block; padding: 12px 24px; border-radius: 8px; border: none; cursor: pointer; font-size: 14px; font-weight: 600; text-decoration: none; text-align: center; }
.btn-primary { background: #1d4ed8; color: #fff; }
.btn-danger { background: #dc2626; color: #fff; }
.btn-outline { background: #fff; border: 1px solid #cbd5e1; color: #334155; }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-block { display: block; width: 100%; }
.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.badge-active { color: #166534; font-weight: 700; font-size: 12px; }
.badge-inactive { color: #991b1b; font-weight: 700; font-size: 12px; }
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
th { background: #f8fafc; text-align: left; padding: 12px 16px; font-size: 12px; text-transform: uppercase; color: #64748b; }
td { padding: 14px 16px; border-top: 1px solid #e2e8f0; font-size: 14px; }
.login-wrap { max-width: 420px; margin: 80px auto; padding: 0 20px; }
.login-card { background: #fff; border-radius: 16px; padding: 36px; box-shadow: 0 8px 30px rgba(15,23,42,.1); }
.login-card h1 { text-align: center; color: #0c4a8a; margin-bottom: 8px; }
.login-card p { text-align: center; color: #64748b; margin-bottom: 24px; font-size: 14px; }

@media (max-width: 1100px) and (min-width: 901px) {
  .moict-menu-link { padding: 8px 9px; font-size: 13px; }
  .moict-logo-text strong { font-size: 16px; }
  .moict-logo-text span { font-size: 10px; max-width: 200px; }
}

@media (max-width: 900px) {
  .moict-header-inner { flex-wrap: wrap; align-items: stretch; }
  .moict-menu-toggle { display: block; order: 2; }
  .moict-logo { order: 1; flex: 1; }
  .moict-menu {
    display: none; order: 3; flex-basis: 100%; width: 100%;
    flex-direction: column; align-items: stretch; padding-bottom: 12px;
    flex-wrap: wrap; justify-content: flex-start;
    border-top: 1px solid #e2e8f0; margin-top: 4px; padding-top: 8px;
  }
  .moict-menu.open { display: flex; }
  .moict-menu-link { padding: 10px 12px; white-space: normal; }
  .moict-dropdown { width: 100%; }
  .moict-dropdown-toggle { width: 100%; justify-content: space-between; text-align: left; }
  .moict-dropdown-panel {
    position: static; width: 100%; max-width: none; padding-top: 0; margin-top: 4px;
  }
  .moict-dropdown-menu {
    width: 100%; max-width: none;
    box-shadow: none; border: 1px solid #e2e8f0; background: #f8fafc;
    max-height: none;
  }
  .hero-slider { height: 420px; }
  .hero-content { padding: 28px 0; }
  .hero-content h2 { font-size: clamp(24px, 6vw, 36px); }
  .hero-content p { font-size: 15px; margin-bottom: 20px; }
  .hero-arrow { display: none; }
  .moict-logo-text span { display: none; }
}

@media (max-width: 600px) {
  .moict-topbar-inner { flex-direction: column; align-items: flex-start; gap: 6px; }
  .moict-topbar-left, .moict-topbar-right { width: 100%; gap: 8px 14px; }
}
