:root {
  --bg: #f3f6fa;
  --surface: #ffffff;
  --surface-2: #f8fbff;
  --text: #54565a;
  --muted: #5e6f85;
  --navy: #0055b8;
  --navy-soft: #1a4a9e;
  --red: #dc0d15;
  --dark-gray: #54565a;
  --light-gray: #bebebe;
  --border: #d0ddef;
  --widget-ink: #324b69;
  --widget-ink-strong: #243a57;
  --widget-size: 0.87rem;
  --widget-weight: 500;
  --shadow: 0 14px 40px rgba(13, 39, 72, 0.1);
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 0%, rgba(0, 85, 184, 0.07), transparent 32%),
    radial-gradient(circle at 88% 12%, rgba(220, 13, 21, 0.08), transparent 30%),
    var(--bg);
}

.page-wrap {
  max-width: 1360px;
  margin: 0 auto;
  padding: 14px;
}

.hero {
  position: relative;
  min-height: 240px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 10px;
  background: #0f233b;
}

.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 68vw;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  border: 0;
  pointer-events: none;
}

.hero-photo {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(10, 31, 56, 0.55) 8%, rgba(10, 31, 56, 0.2) 46%, rgba(201, 32, 50, 0.2) 100%);
  z-index: 1;
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  padding: clamp(14px, 2vw, 24px);
  color: #f4f8ff;
  z-index: 2;
}

.brand-block {
  animation: lift-in 0.65s ease;
}

.institutional-logo {
  display: block;
  width: clamp(180px, 26vw, 320px);
  margin-bottom: 8px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.25));
}

.brand-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.24em;
  opacity: 0.9;
}

.brand-block h1 {
  margin: 6px 0;
  font-family: inherit;
  font-weight: 600;
  font-size: clamp(1.2rem, 3vw, 2rem);
}

.brand-block p {
  margin: 0;
  color: #d6e4f6;
}

.top-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  animation: lift-in 0.8s ease;
}

.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.16);
  color: #f7fbff;
  padding: 8px 14px;
  font-weight: 500;
  text-decoration: none;
  backdrop-filter: blur(4px);
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease;
}

.ghost-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.24);
}

.hero-ribbon {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 12px;
}

.hero-ribbon img {
  width: 100%;
  height: 115px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #cfdae9;
  box-shadow: var(--shadow);
}

.dashboard {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 300px;
  gap: 10px;
}

.stack {
  display: grid;
  gap: 10px;
  align-content: start;
}

.webpart {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.webpart:hover {
  transform: translateY(-2px);
}

.webpart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border-bottom: 1px solid var(--border);
}

.webpart-head h2 {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.controls {
  display: flex;
  gap: 6px;
}

.icon-btn {
  width: 28px;
  height: 28px;
  border: 1px solid #c7d5e6;
  border-radius: 8px;
  background: #f4f8fd;
  color: #173a62;
  cursor: pointer;
  transition: all 0.22s ease;
}

.icon-btn:hover {
  border-color: #9db4d2;
  transform: translateY(-1px);
}

.webpart-body {
  padding: 10px;
}

.clean-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.widget-link {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid #d7e3f0;
  border-radius: 8px;
  background: #f7faff;
  color: var(--widget-ink);
  font-size: var(--widget-size);
  font-weight: var(--widget-weight);
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.widget-link:hover {
  background: #f0f6ff;
  border-color: #b8cbe3;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(13, 39, 72, 0.08);
}

.widget-link:focus-visible {
  outline: 2px solid rgba(0, 85, 184, 0.35);
  outline-offset: 1px;
}

.app-list {
  display: grid;
  gap: 7px;
}

.app-list li {
  padding: 0;
}

.app-link {
  justify-content: space-between;
  min-height: 38px;
  color: var(--widget-ink);
}

.app-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: inherit;
}

.app-logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
  border-radius: 4px;
  background: #f3f7fc;
  padding: 2px;
}

.app-sample-icon {
  width: 18px;
  text-align: center;
  color: var(--navy-soft);
  opacity: 0.9;
  font-size: 0.9em;
  flex-shrink: 0;
}

.app-count {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: #fff;
  background: var(--red);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.16);
}

.slot .slot-body {
  border: 1px solid #d7e3f0;
  border-radius: 10px;
  background: linear-gradient(180deg, #fbfdff 0%, #f6faff 100%);
  color: #314964;
  min-height: 110px;
  line-height: 1.55;
  outline: none;
}

.slot .slot-body:focus {
  box-shadow: inset 0 0 0 2px rgba(201, 32, 50, 0.2);
}

.widget-prefix {
  width: 16px;
  text-align: center;
  color: var(--navy-soft);
  opacity: 0.88;
  flex-shrink: 0;
}

/* news-wrap: overlay nav buttons on slider */
.news-wrap {
  position: relative;
  border-radius: 0;
  overflow: hidden;
}

.news-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
  z-index: 5;
}

.news-nav:hover {
  background: rgba(255, 255, 255, 0.4);
}

.news-prev { left: 10px; }
.news-next { right: 10px; }



.news-stage {
  min-height: 250px;
  border-radius: 0;
  overflow: hidden;
  position: relative;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: end;
  padding: 14px 54px 14px 54px;
}

.news-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 35%, rgba(6, 18, 36, 0.78) 100%);
}

.news-copy {
  position: relative;
  z-index: 2;
  color: #f2f8ff;
  max-width: 80%;
  display: block;
}

.news-hit {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.news-copy:hover h3 {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.news-copy h3 {
  margin: 0;
  font-size: 1.02rem;
}

.news-copy p {
  margin: 6px 0 0;
  color: #dbe8f7;
  line-height: 1.45;
}

.news-link {
  display: inline-flex;
  margin-top: 4px;
  color: #ffffff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 0.82rem;
  font-weight: 700;
}

.news-link:hover {
  background: rgba(255, 255, 255, 0.2);
}

.announce-layout { display: block; }



/* announce items with date badges */
.timeline {
  display: grid;
  gap: 10px;
  outline: none;
}

.ann-item {
  display: flex;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.ann-date {
  flex-shrink: 0;
  width: 44px;
  background: var(--navy);
  color: #fff;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 5px 4px;
  line-height: 1;
}

.ann-date span {
  font-size: 1.15rem;
  font-weight: 700;
}

.ann-date small {
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
  opacity: 0.85;
}

.ann-body {
  flex: 1;
  border-left: 3px solid var(--red);
  background: #f7faff;
  border-radius: 0 8px 8px 0;
  padding: 8px 10px;
}

.ann-body h3 {
  margin: 0 0 3px;
  font-size: 0.88rem;
  color: var(--navy);
}

.ann-item:hover .ann-body h3 {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ann-body p {
  margin: 0;
  font-size: 0.82rem;
  color: #4e6179;
  line-height: 1.4;
}

.menu-widget {
  display: grid;
  gap: 7px;
}

.menu-widget a {
  text-decoration: none;
  color: var(--widget-ink);
  background: #f7faff;
  border: 1px solid #d7e3f0;
  border-radius: 8px;
  min-height: 38px;
  padding: 8px 10px;
  font-size: var(--widget-size);
  font-weight: var(--widget-weight);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.menu-widget i {
  width: 18px;
  text-align: center;
  color: var(--navy-soft);
  opacity: 0.9;
}

.menu-widget a:hover {
  background: #f0f6ff;
  border-color: #b8cbe3;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(13, 39, 72, 0.08);
}

.compact-list {
  display: grid;
  gap: 6px;
}

.compact-list li {
  padding: 0;
  font-size: var(--widget-size);
}

.compact-list .widget-link .doc-badge {
  margin-right: 6px;
}

/* food-bar: single row */
.food-bar-wrap {
  padding: 0 !important;
}

.food-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  padding: 10px 12px;
  background: linear-gradient(90deg, #e8f0fb, #f0f5ff);
  border-top: 2px solid var(--navy);
}

.food-day-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--navy);
  font-size: 0.82rem;
  margin-right: 4px;
}

.food-day-label i {
  font-size: 0.78rem;
  opacity: 0.9;
}

.food-item {
  font-size: 0.82rem;
  color: var(--dark-gray);
}

.food-dot {
  color: var(--red);
  font-weight: 700;
}



.food-widget {
  border-color: var(--navy);
}

/* doc-badge for guide file types */
.doc-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  font-weight: 700;
  color: #fff;
  border-radius: 4px;
  padding: 2px 5px;
  letter-spacing: 0.04em;
  margin-right: 5px;
  flex-shrink: 0;
}

.doc-badge.pdf  { background: #e03030; }
.doc-badge.word { background: #1e5bb5; }
.doc-badge.excel { background: #1a7a45; }

.guide-list li {
  display: block;
}

/* profile card */
.profile-card {
  padding: 0;
  overflow: hidden;
}

.profile-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px 10px;
}

.profile-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #cfdcf1;
  flex-shrink: 0;
  box-shadow: 0 3px 8px rgba(13, 39, 72, 0.18);
}

.profile-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.profile-info strong {
  font-size: 0.92rem;
  color: var(--navy);
  font-weight: 600;
}

.profile-info span {
  font-size: 0.8rem;
  color: var(--red);
  font-weight: 500;
}

.profile-info small {
  font-size: 0.72rem;
  color: var(--muted);
}

.profile-actions {
  display: flex;
  gap: 6px;
  padding: 0 14px 12px;
}

.profile-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--navy);
  background: #f7faff;
  border: 1px solid #d7e3f0;
  border-radius: 8px;
  padding: 5px 12px;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-btn:hover {
  background: #f0f6ff;
  border-color: #b8cbe3;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(13, 39, 72, 0.08);
}
.sector-list {
  display: grid;
  gap: 6px;
}

.sector-card {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 14px;
  height: 52px;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
}

.sector-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--sector-img);
  background-size: cover;
  background-position: center;
  opacity: 1;
  transition: opacity 0.2s;
}

.sector-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 28, 70, 0.52) 0%, rgba(0, 85, 184, 0.07) 100%);
}

.sector-card span {
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}

.sector-card:hover::before {
  opacity: 1;
}

.quick-grid {
  display: grid;
  gap: 8px;
}

.quick-grid a {
  text-decoration: none;
  color: #16355b;
  font-weight: 500;
  background: #f7faff;
  border: 1px solid #d7e3f0;
  border-radius: 8px;
  padding: 10px;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.quick-grid a:hover {
  border-color: #b8cbe3;
  background: #f0f6ff;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(13, 39, 72, 0.08);
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.media-grid.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.media-grid img {
  width: 100%;
  height: 108px;
  object-fit: cover;
  border-radius: 10px;
}

.site-footer {
  margin-top: 12px;
  border-radius: 12px;
  overflow: hidden;
}

.ptt-footer {
  border: 1px solid #183459;
  background: #0f2a4b;
  color: #d4e4f7;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 16px;
}

.footer-grid section {
  padding: 11px 14px;
}

.footer-grid h4 {
  margin: 0 0 8px;
  color: #f3c34f;
  font-size: 0.85rem;
  font-weight: 600;
}

.footer-grid li,
.footer-grid p {
  margin: 0 0 6px;
  font-size: 0.84rem;
}

.footer-social {
  display: flex;
  gap: 6px;
}

.social-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.social-links a {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  text-decoration: none;
  color: #16314f;
  background: #d8e7fa;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}

.social-links a:hover {
  background: var(--navy);
  color: #fff;
}

.social-links svg {
  display: block;
  fill: currentColor;
}

.footer-affiliates-grid {
  margin-top: 6px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.footer-affiliates-grid .logo-item a {
  min-height: 38px;
  border: 1px solid rgba(183, 206, 236, 0.28);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.footer-affiliates-grid .logo-item a:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.34);
}

.footer-affiliates-grid .logo-item img {
  width: 100%;
  max-width: 56px;
  max-height: 22px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.86;
}

.footer-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.footer-gallery img {
  width: 100%;
  height: 84px;
  object-fit: cover;
  border-radius: 4px;
}

.footer-bottom {
  padding: 12px;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
  margin: 0 0 3px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
}

.footer-bottom small {
  font-size: 0.76rem;
  color: rgba(255,255,255,0.55);
}

.footer-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
  display: block;
  margin: 0 auto 8px;
}

.webpart.collapsed .webpart-body {
  display: none;
}

.webpart.flash {
  box-shadow: 0 0 0 2px rgba(201, 32, 50, 0.18), var(--shadow);
}

@keyframes lift-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1080px) {
  .dashboard {
    grid-template-columns: 1fr;
  }

  .hero-ribbon {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 740px) {
  .hero-content {
    align-items: start;
    flex-direction: column;
  }

  .top-actions {
    justify-content: flex-start;
  }

  .news-stage {
    min-height: 210px;
  }

  .footer-affiliates-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .page-wrap {
    padding: 8px;
  }

  .hero-ribbon {
    grid-template-columns: 1fr;
  }

  .media-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 200px;
  }

  .hero-photo {
    min-height: 200px;
  }

  .footer-affiliates-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
