@import url("https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;1,300;1,400&display=swap");

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #f6f7fb;
  --primary: #0b3a6a;
  --primary-hover: #14558d;
  --primary-soft: #eef4fb;
  --accent: #f3a712;
  --accent-soft: #fff9ec;
  --text: #1b1f24;
  --muted: #5a6775;
  --card: #ffffff;
  --surface-subtle: #fbfcfe;
  --border: #cbd6e2;
  --border-subtle: #e1e8f0;
  --success: #15803d;
  --danger: #b42318;
  --focus-ring: rgba(23, 105, 170, 0.14);
  --content-gap: 18px;
  --section-gap: 28px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --control-height: 44px;
  --control-height-lg: 48px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-control: 9px;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: var(--text);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
  padding: 0 8px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  color: var(--primary);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

p,
ul,
ol,
label,
input,
select,
textarea,
button {
  font: inherit;
}

.site-header {
  background: linear-gradient(135deg, #0b3a6a 0%, #104e8b 100%);
  color: #fff;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 30px rgba(11, 58, 106, 0.12);
}

.header-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1 1 auto;
}

.brand__name {
  font-weight: 800;
  letter-spacing: 0.2px;
  line-height: 1.12;
  font-size: clamp(15px, 1.2vw, 21px);
  text-align: center;
}

.brand-line-left {
  display: block;
  text-align: center;
}

.brand-line-center {
  display: block;
  text-align: center;
}

@media (max-width: 768px) {
  .brand-line-left,
  .brand-line-center {
    display: inline;
    text-align: left;
  }
}

.brand__tag {
  display: inline-block;
  align-self: center;
  font-size: 12px;
  color: #0b3a6a;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(11, 58, 106, 0.14);
  border-radius: 8px;
  padding: 4px 10px;
  font-family: "Merriweather", "Times New Roman", serif;
  font-style: italic;
  letter-spacing: 0.2px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.site-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid transparent;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
}

.nav-toggle__label--mobile {
  display: none;
}

.main-content {
  width: min(1440px, 96%);
  padding: 20px 0 8px;
}

.site-footer {
  margin-top: 42px;
  padding: 16px 0 32px;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-admin {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.hero {
  padding: 32px 0 16px;
}

.hero h1 {
  margin: 0 0 8px;
  font-size: clamp(24px, 3vw, 40px);
}

.hero-title {
  display: none;
}

.hero-utility-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  flex-wrap: wrap;
}

.hero .hero-subtitle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: #52708d;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.4;
}

.hero-subtitle__line {
  width: 28px;
  height: 3px;
  border-radius: 2px;
  background: var(--accent);
}

.grid {
  display: grid;
  gap: var(--content-gap);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  padding: 12px 0 28px;
}

.card {
  background: var(--card);
  padding: 18px 18px 16px;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--accent);
  box-shadow: 0 6px 18px rgba(9, 30, 66, 0.08);
}

.card-link {
  text-decoration: none;
  color: inherit;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  align-items: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(9, 30, 66, 0.12);
  border-left-color: #d08b0d;
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #fff3d6;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b87400;
}

.card-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.home-entry-grid {
  gap: 18px;
  padding: 12px 0 30px;
}

.home-entry-card {
  position: relative;
  grid-template-columns: 48px 1fr;
  min-height: 132px;
  padding: 22px 22px 18px;
  overflow: hidden;
  border-left-width: 5px;
  border-radius: 10px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fbfd 100%);
  box-shadow: 0 8px 22px rgba(9, 30, 66, 0.09);
}

.home-entry-card::after {
  position: absolute;
  right: -28px;
  bottom: -40px;
  width: 110px;
  height: 110px;
  border: 1px solid rgba(19, 63, 99, 0.09);
  border-radius: 50%;
  content: '';
}

.home-entry-card:hover {
  transform: translateY(-4px);
  border-left-color: var(--accent);
  box-shadow: 0 14px 30px rgba(9, 30, 66, 0.14);
}

.home-entry-card .card-icon {
  position: relative;
  z-index: 1;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(184, 116, 0, 0.18);
  border-radius: 12px;
}

.home-entry-card h3,
.home-entry-card p,
.home-entry-card__action {
  position: relative;
  z-index: 1;
}

.home-entry-card h3 {
  margin: 0 0 5px;
  color: var(--primary);
  font-size: 19px;
}

.home-entry-card p {
  margin: 0;
  color: #526b7f;
  font-size: 14px;
  line-height: 1.45;
}

.home-entry-card__number {
  position: absolute;
  top: 10px;
  right: 17px;
  color: #9eb2c0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.home-entry-card__action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 13px;
  color: #b87400;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.home-entry-card__action span {
  font-size: 16px;
  line-height: 0.8;
  transition: transform 0.2s ease;
}

.home-entry-card:hover .home-entry-card__action span {
  transform: translateX(4px);
}

.about-card .about-more {
  display: none;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #e1e5ee;
}

.about-card .about-more.open {
  display: block;
}

.about-card {
  display: flex;
  flex-direction: column;
}

.about-card .btn {
  margin-top: auto;
  align-self: flex-start;
}

.program-list {
  display: grid;
  gap: 16px;
}

.program-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.program-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.program-filter label {
  font-weight: 600;
}

.program-filter select {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  font: inherit;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}

.program-filter select:hover {
  border-color: #9ca3af;
}

.program-filter select:focus {
  outline: none;
  border-color: #16a34a;
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.1);
}

.program-view {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 3px;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  background: #f1f5f9;
}

.program-view__option {
  display: inline-flex;
  min-width: 68px;
  height: 32px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 6px;
  color: #526477;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.program-view__option:hover {
  color: var(--primary);
  text-decoration: none;
}

.program-view__option.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 1px 3px rgba(9, 30, 66, 0.16);
}

.ai-helper {
  margin-top: 16px;
  background: #f8fafc;
  border: 1px dashed #d1d5db;
  border-radius: 12px;
  padding: 12px;
}

.ai-helper summary {
  cursor: pointer;
  font-weight: 700;
}

.ai-box {
  margin-top: 10px;
}

.ai-box textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  font: inherit;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  min-height: 100px;
}

.ai-box textarea:hover {
  border-color: #9ca3af;
}

.ai-box textarea:focus {
  outline: none;
  border-color: #16a34a;
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.1);
}

.program-card {
  background: var(--card);
  padding: 18px 18px 16px;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--accent);
  box-shadow: 0 6px 16px rgba(9, 30, 66, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.program-card h3 {
  margin: 0 0 6px;
}

.program-card p {
  margin: 8px 0 0;
  color: var(--muted);
}

.program-detail {
  background: var(--card);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(9, 30, 66, 0.08);
}

.hero-actions {
  margin-top: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-business-link {
  min-width: 0;
  min-height: 42px;
  padding: 0 15px 0 18px;
  gap: 13px;
  border-radius: 999px;
  border: 1px solid #a5aa9f;
  box-shadow: none;
}

.hero-business-link__arrow {
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  border-left: 1px solid rgba(255, 255, 255, 0.45);
  padding-left: 9px;
  font-size: 18px;
  line-height: 1;
  transition: transform 0.15s ease;
}

.hero-business-link:hover .hero-business-link__arrow,
.hero-business-link:focus-visible .hero-business-link__arrow {
  transform: translateX(3px);
}

.btn {
  border: none;
  padding: 9px 15px;
  border-radius: var(--radius-control);
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  text-align: center;
  height: var(--control-height);
  transition: all 0.2s ease;
}

.btn.primary {
  background: var(--accent);
  color: #1d1d1d;
  box-shadow: 0 2px 8px rgba(242, 195, 65, 0.2);
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(242, 195, 65, 0.35);
}

.btn.primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(242, 195, 65, 0.2);
}

.btn.primary.hero-business-link:hover,
.btn.primary.hero-business-link:focus-visible {
  transform: none;
  box-shadow: none;
}

.btn.primary.hero-business-link:active {
  transform: none;
  box-shadow: none;
}

.btn.primary.hero-business-link,
.btn.primary.hero-business-link:hover,
.btn.primary.hero-business-link:focus-visible,
.btn.primary.hero-business-link:active {
  background: transparent;
  color: #2f6b2d;
}

.btn.primary.hero-business-link:hover,
.btn.primary.hero-business-link:focus-visible {
  border-color: #7f927d;
}

.btn.primary.hero-business-link .hero-business-link__arrow {
  border-left-color: rgba(47, 107, 45, 0.35);
}

.btn.primary.hero-business-link:hover .hero-business-link__arrow,
.btn.primary.hero-business-link:focus-visible .hero-business-link__arrow {
  transform: none;
}

.btn.primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn.ghost {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
  transition: all 0.2s ease;
}

.btn.ghost:hover {
  background: rgba(0, 82, 204, 0.08);
  border-color: #0052cc;
  box-shadow: 0 2px 8px rgba(0, 82, 204, 0.12);
  transform: translateY(-2px);
}

.btn.ghost:active {
  transform: translateY(0);
}

.btn.danger {
  background: #dc2626;
  color: #fff;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.2);
}

.btn.danger:hover {
  background: #b91c1c;
  box-shadow: 0 6px 16px rgba(220, 38, 38, 0.3);
  transform: translateY(-2px);
}

.btn.danger:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(220, 38, 38, 0.2);
}

.page-header {
  padding: 20px 0 18px;
  border-bottom: 2px solid #e3e6ef;
  margin-bottom: 24px;
  background: linear-gradient(135deg, rgba(0, 82, 204, 0.02) 0%, rgba(75, 192, 192, 0.02) 100%);
}

.page-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-header-inner > div:first-child {
  flex: 1;
  min-width: 0;
}

.page-header h1 {
  margin-bottom: 8px;
  font-size: clamp(26px, 2vw, 32px);
  font-weight: 700;
  color: var(--primary);
}

.page-header p {
  margin: 0;
  color: #626b73;
  font-size: 15px;
}

.content-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.badge {
  background: linear-gradient(135deg, #e9eef6 0%, #f0f4fb 100%);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(0, 82, 204, 0.1);
  transition: all 0.2s ease;
}

.badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0, 82, 204, 0.15);
}

.badge.ghost {
  background: #f3f6fb;
  color: #5a6775;
  border: 1px solid rgba(90, 103, 117, 0.1);
}

.badge.ghost:hover {
  background: #eef2f7;
}

.badge.new {
  background: linear-gradient(135deg, #fff1f1 0%, #ffe6e6 100%);
  color: #ff0000;
  border: 1px solid rgba(255, 0, 0, 0.3);
  margin-left: 0;
  font-weight: 600;
}

.badge.new:hover {
  box-shadow: 0 2px 8px rgba(255, 0, 0, 0.2);
}

.badge.success {
  background: linear-gradient(135deg, #e8f5e9 0%, #f1f8f6 100%);
  color: #27ae60;
  border: 1px solid rgba(39, 174, 96, 0.2);
}

.badge.success:hover {
  box-shadow: 0 2px 8px rgba(39, 174, 96, 0.15);
}

.badge.danger {
  background: linear-gradient(135deg, #ffe8e8 0%, #fff1f0 100%);
  color: #e74c3c;
  border: 1px solid rgba(231, 76, 60, 0.2);
}

.badge.danger:hover {
  box-shadow: 0 2px 8px rgba(231, 76, 60, 0.15);
}

.badge.info {
  background: linear-gradient(135deg, #e3f2fd 0%, #ecf4fd 100%);
  color: #0052cc;
  border: 1px solid rgba(0, 82, 204, 0.2);
}

.badge.info:hover {
  box-shadow: 0 2px 8px rgba(0, 82, 204, 0.15);
}

.badge.warning {
  background: linear-gradient(135deg, #fff8e1 0%, #fffae6 100%);
  color: #f39c12;
  border: 1px solid rgba(243, 156, 18, 0.2);
}

.badge.warning:hover {
  box-shadow: 0 2px 8px rgba(243, 156, 18, 0.15);
}

.grading-policy-status-badge {
  min-width: 92px;
  justify-content: center;
  box-sizing: border-box;
  border: 1px solid currentColor;
}

.data-table .text-center {
  text-align: center;
}

.user-account-cell {
  white-space: nowrap;
}

.user-account-name {
  font-weight: 700;
  color: #1f2937;
}

.user-account-fullname {
  color: #7a869a;
  font-size: 13px;
  margin-left: 4px;
}

.news-list {
  display: grid;
  gap: 20px;
  animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.news-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  align-items: stretch;
  background: var(--card);
  padding: 16px;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(9, 30, 66, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  cursor: pointer;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(9, 30, 66, 0.15);
  border-color: rgba(0, 0, 0, 0.1);
}

.news-thumb {
  width: 100%;
  height: 120px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, #edf1f7 0%, #f5f8fc 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.3s ease;
}

.news-card:hover .news-thumb {
  transform: scale(1.05);
}

.news-thumb::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(0, 0, 0, 0.1) 100%);
  pointer-events: none;
}

.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.news-card:hover .news-thumb img {
  transform: scale(1.1);
}

.news-thumb__placeholder {
  color: #9aa5b1;
  font-size: 12px;
}

.news-toolbar {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 12px;
  align-items: end;
  margin: 16px 0 24px;
  padding: 16px;
  background: linear-gradient(135deg, #f9fafb 0%, #fcfdfe 100%);
  border-radius: 12px;
  border: 1px solid #e3e6ef;
  transition: all 0.3s ease;
}

.news-toolbar:hover {
  box-shadow: 0 4px 12px rgba(0, 82, 204, 0.08);
  border-color: #d1d5db;
}

.news-toolbar__group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: #2c3e50;
  font-size: 13px;
}

.news-toolbar select,
.news-toolbar input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 15px;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.news-toolbar select:hover,
.news-toolbar input:hover {
  border-color: #9ca3af;
  background: #fff;
}

.news-toolbar select:focus,
.news-toolbar input:focus {
  outline: none;
  border-color: #16a34a;
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.1);
  background: #fff;
}

.news-toolbar__actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
}

@media (max-width: 768px) {
  .news-toolbar {
    grid-template-columns: 1fr;
  }

  .news-toolbar__actions {
    justify-content: flex-start;
  }
}

.plan-sheet {
  background: var(--card);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 24px rgba(9, 30, 66, 0.08);
}

.plan-sheet__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e3e6ef;
}

.plan-sheet__header h2 {
  margin: 0 0 6px;
  color: var(--primary);
}

.plan-badge {
  background: #fff3d6;
  color: #9a5b00;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 700;
  white-space: nowrap;
}

.plan-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-bottom: 18px;
}

.plan-card {
  background: #f8fbff;
  border: 1px solid #e6ebf2;
  border-radius: 12px;
  padding: 16px;
}

.plan-card h3,
.plan-section h3 {
  margin-top: 0;
  color: var(--primary);
}

.plan-card ul,
.plan-section ul {
  padding-left: 18px;
  margin: 0;
}

.plan-section {
  margin-bottom: 18px;
  padding: 16px;
  border-radius: 12px;
  background: #fcfdff;
  border: 1px solid #e6ebf2;
}

.plan-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.plan-table th,
.plan-table td {
  border: 1px solid #e3e6ef;
  padding: 10px;
  text-align: left;
  vertical-align: top;
}

.plan-table th {
  background: #eef4fb;
}

@media (max-width: 768px) {
  .plan-sheet__header {
    flex-direction: column;
    align-items: flex-start;
  }
}

.news-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.news-body h3 {
  margin: 8px 0 12px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.news-body p {
  margin: 0;
  color: #626b73;
  font-size: 14px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 4px;
}

.news-body h3 a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.news-card:hover .news-body h3 a {
  color: #0052cc;
  text-decoration: none;
}

.news-body h3 a:hover {
  color: #0052cc;
}

.form-card {
  background: var(--card);
  padding: 18px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: 0 6px 16px rgba(9, 30, 66, 0.06);
}

.ui-form-field {
  display: grid;
  gap: var(--space-2);
}

.ui-form-label {
  color: #23384d;
  font-size: 14px;
  font-weight: 700;
}

.ui-form-control {
  width: 100%;
  min-height: var(--control-height-lg);
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: var(--surface-subtle);
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.ui-form-control:hover {
  border-color: #9aabbc;
}

.ui-form-control:focus {
  outline: none;
  border-color: #1769aa;
  background: var(--card);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.ui-form-control::placeholder {
  color: #8492a0;
}

.student-login {
  width: min(980px, 100%);
  margin: 36px auto 56px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  background: #fff;
  border: 1px solid #e1e8f0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(11, 58, 106, 0.1);
}

.student-login__intro {
  padding: 52px 42px;
  color: #fff;
  background: linear-gradient(150deg, #0b3a6a 0%, #14558d 100%);
}

.student-login__eyebrow {
  color: #f6c453;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.student-login__intro h1 {
  max-width: 280px;
  margin: 20px 0 14px;
  color: #fff;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.08;
}

.student-login__intro p {
  max-width: 330px;
  margin: 0;
  color: #d9e7f5;
  font-size: 16px;
}

.student-login__rule {
  width: 54px;
  height: 4px;
  margin: 34px 0 28px;
  border-radius: 999px;
  background: #f3a712;
}

.student-login__note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 320px;
  color: #e7f0f8;
  font-size: 13px;
}

.student-login__note-mark,
.student-login__panel-mark {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-weight: 800;
}

.student-login__note-mark {
  color: #0b3a6a;
  background: #f6c453;
}

.student-login__panel {
  padding: 44px 48px 42px;
  background: #fff;
}

.student-login__panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.student-login__panel-heading h2 {
  margin: 0 0 5px;
  font-size: 26px;
}

.student-login__panel-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.student-login__panel-mark {
  width: 38px;
  height: 38px;
  color: #0b3a6a;
  background: #eef4fb;
  font-size: 22px;
}

.student-login__fields {
  display: grid;
  gap: 18px;
}

.student-login__field label {
  display: block;
  margin-bottom: 7px;
  color: #23384d;
  font-size: 14px;
  font-weight: 700;
}

.student-login__field input:not([type="checkbox"]) {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid #cbd6e2;
  border-radius: 9px;
  background: #fbfcfe;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.student-login__field input:not([type="checkbox"]):focus {
  outline: none;
  border-color: #1769aa;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(23, 105, 170, 0.12);
}

.student-login__remember {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: #516274;
  font-size: 13px;
  cursor: pointer;
}

.student-login__options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
}

.student-login__forgot {
  color: #0b3a6a;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.student-login__forgot:hover,
.student-login__forgot:focus-visible {
  color: #1769aa;
  text-decoration: underline;
}

.student-login__remember input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #0b3a6a;
}

.student-login__hint {
  display: grid;
  gap: 2px;
  margin-top: 24px;
  padding: 13px 15px;
  border-left: 3px solid #f3a712;
  background: #fff9ec;
  color: #6b4d0a;
  font-size: 13px;
}

.student-login__hint strong {
  color: #4d390b;
}

.student-login__hint small {
  color: #806c3f;
  font-size: 12px;
}

.student-login__actions {
  display: flex;
  gap: 10px;
  margin-top: 28px;
}

.student-login__actions .btn {
  flex: 1;
  min-height: 44px;
}

@media (max-width: 768px) {
  .student-login {
    grid-template-columns: 1fr;
    margin: 20px auto 36px;
  }

  .student-login__intro {
    padding: 32px 26px;
  }

  .student-login__intro h1 {
    margin-top: 14px;
    font-size: 32px;
  }

  .student-login__rule {
    margin: 22px 0 18px;
  }

  .student-login__panel {
    padding: 30px 26px 28px;
  }
}

@media (max-width: 460px) {
  .student-login__options {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .student-login__actions {
    flex-direction: column;
  }
}

.admin-change-password-form {
  max-width: 520px;
  margin: 0 auto;
}

.admin-change-password-form .form-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 8px;
  align-items: start;
  margin-bottom: 10px;
}

.admin-change-password-form .form-row label {
  margin-top: 10px;
  font-weight: 700;
  color: #1f2937;
}

.admin-change-password-form .form-row input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font: inherit;
  background: #fff;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.admin-change-password-form .form-row input:hover {
  border-color: #9ca3af;
}

.admin-change-password-form .form-row input:focus {
  outline: none;
  border-color: #16a34a;
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.1);
}

.password-input-wrap {
  position: relative;
}

.password-input-wrap input {
  padding-right: 42px;
}

.password-toggle-btn {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  color: #6b7280;
}

.admin-change-password-form .form-row .text-danger {
  grid-column: 2;
  margin-top: 4px;
}

.admin-change-password-actions {
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.student-create-shell {
  display: grid;
  gap: 24px;
}

.student-create-shell .page-header {
  order: 0;
}

.student-create-shell .student-bulk-import {
  order: 1;
}

.student-create-shell .student-single-entry {
  order: 2;
}

.section-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(246, 249, 252, 0.95) 100%);
  border: 1px solid #e5eaf1;
  border-radius: 16px;
  padding: 18px 20px 20px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.header-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.header-actions .btn,
.header-actions .btn.ghost,
.header-actions .btn.primary {
  min-width: 150px;
  height: 40px;
  padding: 10px 16px;
  font-size: 14px !important;
  line-height: 1.2;
  font-weight: 600 !important;
  box-sizing: border-box;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e9edf4;
}

.section-heading h2 {
  margin: 0;
  color: var(--primary);
  font-size: 22px;
  font-weight: 700;
}

.info-banner {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(0, 82, 204, 0.05), rgba(75, 192, 192, 0.05));
  border: 1px solid rgba(0, 82, 204, 0.12);
  color: #2e3f57;
  font-size: 14px;
  line-height: 1.6;
}

.form-card--editor {
  padding: 22px;
  border: 1px solid #edf1f7;
  background: linear-gradient(180deg, #ffffff 0%, #fafcff 100%);
}

.field-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: 16px;
}

.form-grid input,
.form-grid select,
.form-grid textarea,
.form-inline input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  font: inherit;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
}

.form-grid input:hover,
.form-grid select:hover,
.form-grid textarea:hover {
  border-color: #9ca3af;
  background: #fff;
}

.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
  border-color: #16a34a;
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.1);
  outline: none;
  background: #fff;
}

.form-grid input::placeholder {
  color: #9ca3af;
  font-size: 14px;
}

.form-grid label {
  font-weight: 600;
  display: block;
  color: #1f2a37;
}

.field-error {
  color: #b42318;
  font-size: 12px;
  min-height: 16px;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  animation: slideDown 0.2s ease-out;
}

.field-error:empty {
  display: none;
}

.field-error:not(:empty)::before {
  content: "⚠";
  font-weight: bold;
  font-size: 13px;
  line-height: 1;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

input:invalid:not(:placeholder-shown),
textarea:invalid:not(:placeholder-shown),
select:invalid:not(:placeholder-shown) {
  border-color: #dc2626;
  background-color: #fef2f2;
}

input:invalid:focus,
textarea:invalid:focus,
select:invalid:focus {
  border-color: #991b1b;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

input:valid:not(:placeholder-shown),
textarea:valid:not(:placeholder-shown),
select:valid:not(:placeholder-shown) {
  border-color: #16a34a;
  background-color: #f0fdf4;
}

input:valid:focus,
textarea:valid:focus,
select:valid:focus {
  border-color: #15803d;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

.field-stack {
  position: relative;
  transition: all 0.2s ease-out;
}

.field-stack input,
.field-stack textarea,
.field-stack select {
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  height: 40px;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font: inherit;
  font-size: 15px;
  background: #fff;
}

.field-stack input:hover,
.field-stack textarea:hover,
.field-stack select:hover {
  border-color: #9ca3af;
}

.field-stack input:focus,
.field-stack textarea:focus,
.field-stack select:focus {
  outline: none;
  border-color: #16a34a;
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.1);
}

.field-stack textarea {
  height: auto;
  min-height: 100px;
  resize: vertical;
}

.field-stack select {
  cursor: pointer;
}

.upload-panel {
  display: grid;
  gap: 16px;
}

.upload-box {
  padding: 16px;
  border-radius: 12px;
  border: 1.5px dashed #d1d5db;
  background: linear-gradient(180deg, #f7faff 0%, #f3f7ff 100%);
}

.upload-box input[type="file"] {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  background: #fff;
  font: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.upload-box input[type="file"]:hover {
  border-color: #9ca3af;
}

.upload-box input[type="file"]:focus {
  outline: none;
  border-color: #16a34a;
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.1);
}

.field-help {
  color: #5f6f7b;
  font-size: 13px;
  line-height: 1.6;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #edf1f7;
}

.template-link-wrap {
  margin-top: 4px;
}

.template-link {
  text-decoration: none;
  color: var(--primary);
  font-weight: 700;
  text-decoration: underline;
}

.span-full {
  grid-column: 1 / -1;
}

@media (max-width: 768px) {
  .page-header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .header-actions .btn {
    width: auto;
  }

  .section-panel {
    padding: 14px 14px 16px;
  }

  .section-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .form-card--editor {
    padding: 16px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .admin-action-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-action-bar .btn {
    width: 100%;
  }
}

.form-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.class-plan-class-picker {
  flex: 1 1 320px;
  min-width: 260px;
}

.class-plan-class-picker__status {
  display: block;
  min-height: 18px;
  margin-top: 3px;
  color: #64748b;
  font-size: 12px;
}

.class-plan-class-picker__select {
  flex: 1 1 420px;
  min-width: 260px;
}

.student-list-class-search__status {
  display: block;
  min-height: 18px;
  margin-top: 3px;
  color: #64748b;
  font-size: 12px;
}

.student-list-filter-grid {
  grid-template-columns: minmax(220px, 1.35fr) repeat(4, minmax(145px, 1fr));
  align-items: start;
}

.graduation-report-class-filter {
  grid-template-columns: minmax(220px, 0.85fr) minmax(280px, 1.15fr);
  align-items: start;
}

.graduation-report-class-search__status {
  display: block;
  min-height: 18px;
  margin-top: 3px;
  color: #64748b;
  font-size: 12px;
}

@media (max-width: 768px) {
  .class-plan-class-picker,
  .class-plan-class-picker__select {
    flex-basis: 100%;
    min-width: 0;
  }

  .student-list-filter-grid {
    grid-template-columns: 1fr;
  }

  .graduation-report-class-filter {
    grid-template-columns: 1fr;
  }
}

.alert {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: slideDown 0.3s ease-out;
}

.alert > ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.alert::before {
  content: "!";
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Segoe UI Symbol", sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.alert.success {
  background: linear-gradient(135deg, #e8f5e9 0%, #f1f8f4 100%);
  color: #1b5e20;
  border: 1px solid #81c784;
}

.alert.success::before {
  content: "✓";
  background: #1b5e20;
  color: #fff;
}

.alert.warning {
  background: linear-gradient(135deg, #fff7e6 0%, #fffaf0 100%);
  color: #6b4d0a;
  border: 1px solid #ffb74d;
}

.alert.warning::before {
  content: "!";
  background: #6b4d0a;
  color: #fff;
  border-radius: 6px;
}

.alert.danger {
  background: linear-gradient(135deg, #ffe8ec 0%, #fff0f2 100%);
  color: #7a1d2a;
  border: 1px solid #e57373;
}

.alert.danger::before {
  content: "!";
  background: #7a1d2a;
  color: #fff;
}

.alert.info {
  background: linear-gradient(135deg, #e8f1ff 0%, #f4f8ff 100%);
  color: #174a7c;
  border: 1px solid #8bb8e8;
}

.alert.info::before {
  content: "i";
  background: #174a7c;
  color: #fff;
}

.alert.inline {
  padding: 8px 12px;
  font-size: 12px;
  margin: 0 0 12px;
}

.field-error {
  color: #b00020;
  font-size: 12px;
}

.result-card {
  margin-top: 16px;
  background: var(--card);
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(9, 30, 66, 0.08);
}

.info-row {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  padding-bottom: 24px;
}

.panel {
  background: #fff4db;
  padding: 16px;
  border-radius: 12px;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.checklist li {
  padding-left: 24px;
  position: relative;
  margin-bottom: 10px;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.news-strip {
  margin: 12px 0 32px;
}

.news-strip__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.news-strip__viewport {
  overflow: hidden;
  position: relative;
  margin-top: 12px;
}

.news-strip__track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: news-scroll 28s linear infinite;
}

.news-strip__viewport:hover .news-strip__track {
  animation-play-state: paused;
}

.news-mini {
  min-width: 300px;
  background: var(--card);
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 6px 16px rgba(9, 30, 66, 0.08);
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
  align-items: start;
  animation: mini-fade 8s ease-in-out infinite;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-mini:hover,
.news-mini:focus-within {
  transform: scale(1.02);
  box-shadow: 0 10px 20px rgba(9, 30, 66, 0.14);
}

.news-mini:nth-child(1) { animation-delay: 0s; }
.news-mini:nth-child(2) { animation-delay: 0.6s; }
.news-mini:nth-child(3) { animation-delay: 1.2s; }
.news-mini:nth-child(4) { animation-delay: 1.8s; }
.news-mini:nth-child(5) { animation-delay: 2.4s; }
.news-mini:nth-child(6) { animation-delay: 3s; }
.news-mini:nth-child(7) { animation-delay: 3.6s; }
.news-mini:nth-child(8) { animation-delay: 4.2s; }
.news-mini:nth-child(9) { animation-delay: 4.8s; }
.news-mini:nth-child(10) { animation-delay: 5.4s; }
.news-mini:nth-child(11) { animation-delay: 6s; }
.news-mini:nth-child(12) { animation-delay: 6.6s; }

.news-mini__thumb {
  width: 80px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(135deg, #edf1f7 0%, #f5f8fc 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.3s ease;
}

.news-mini:hover .news-mini__thumb {
  transform: scale(1.08);
}

.news-mini__thumb::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(0, 0, 0, 0.1) 100%);
  pointer-events: none;
}

.news-mini__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.news-mini:hover .news-mini__thumb img {
  transform: scale(1.2);
}

.news-mini h4 {
  position: relative;
  z-index: 3;
  margin: 0 0 6px;
  font-size: 15px;
}

.news-mini h4 a {
  position: relative;
  z-index: 4;
  color: var(--primary);
  text-decoration: none;
}

.news-mini h4 a:hover {
  text-decoration: underline;
}

.news-mini__excerpt {
  position: absolute;
  z-index: 2;
  right: 12px;
  bottom: 12px;
  left: 12px;
  max-height: 0;
  padding: 0 9px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.97);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.25s ease;
}

.news-mini:hover .news-mini__excerpt,
.news-mini:focus-within .news-mini__excerpt {
  max-height: 96px;
  padding: 7px 9px;
  opacity: 1;
}

.news-mini__excerpt span {
  display: block;
  margin-bottom: 3px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.news-mini__excerpt p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

@keyframes news-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes mini-fade {
  0% { opacity: 0.6; transform: scale(0.98); }
  50% { opacity: 1; transform: scale(1); }
  100% { opacity: 0.6; transform: scale(0.98); }
}

.news-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag-link {
  text-decoration: none;
}

.tag {
  display: inline-block;
  background: linear-gradient(135deg, #e9eef6 0%, #f0f4fb 100%);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  border: 1px solid rgba(0, 82, 204, 0.1);
  transition: all 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
  word-break: keep-all;
}

.tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 82, 204, 0.15);
  background: linear-gradient(135deg, #d5e1f2 0%, #e3ecf8 100%);
  border-color: rgba(0, 82, 204, 0.3);
}

.news-mini-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.alert:empty {
  display: none;
}

.tag-mini {
  display: inline-block;
  background: rgba(0, 82, 204, 0.08);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 500;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid rgba(0, 82, 204, 0.15);
  white-space: nowrap;
  word-break: keep-all;
}

.tag-mini:hover {
  background: rgba(0, 82, 204, 0.15);
  border-color: rgba(0, 82, 204, 0.3);
  transform: translateY(-1px);
}

.muted {
  color: var(--muted);
}

.media-hero img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(9, 30, 66, 0.12);
  margin-bottom: 16px;
}

.media-video video {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 16px;
}

.article-content {
  background: var(--card);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(9, 30, 66, 0.08);
}

.article-content .lead {
  font-weight: 600;
  color: var(--text);
}

.article-tags {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid #e3e6ef;
}

.article-tags strong {
  display: block;
  margin-bottom: 12px;
  color: var(--text);
  font-weight: 600;
}

.data-table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(9, 30, 66, 0.06);
}

.data-table th,
.data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #e6e9f0;
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}

.admin-users .data-table th,
.admin-users .data-table td {
  padding: 8px 10px;
}

.data-table th {
  background: #f0f3f9;
  font-size: 13px;
  font-weight: 700;
  color: #2c3e50;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.data-table td {
  color: #444;
  line-height: 1.25;
}

.user-table-section {
  position: relative;
}

.user-table-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.75rem;
}

.user-table-scroll {
  max-height: 60vh;
  overflow: auto;
  border: 1px solid #dee2e6;
  margin-bottom: 1rem;
  width: 100%;
  min-width: 0;
  position: relative;
  background: #fff;
  box-sizing: border-box;
  transition: width 0.2s ease;
}

.user-table-scroll.expanded {
  max-height: none;
  overflow: visible;
  width: 90vw;
  min-width: 900px;
  left: 50%;
  transform: translateX(-50%);
}

.user-data-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e3e6ef;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tbody tr {
  transition: background-color 0.2s ease;
}

.data-table tbody tr:hover {
  background-color: rgba(0, 82, 204, 0.02);
}

.program-table th,
.program-table td {
  padding: 7px 12px;
  vertical-align: middle;
}

.program-table th:last-child,
.program-table td:last-child {
  width: 150px;
  text-align: right;
}

.program-detail-link {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 12px;
  border: 1px solid var(--primary);
  border-radius: 7px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.program-detail-link:hover,
.program-detail-link:focus-visible {
  background: var(--primary);
  color: #fff;
  text-decoration: none;
}

.actions a {
  margin-right: 10px;
  text-decoration: none;
  color: var(--primary);
  font-weight: 600;
}

.form-actions {
  margin-top: 16px;
  display: flex;
  gap: 12px;
  align-items: stretch;
}

.admin-action-bar {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #e6e9f0;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
}

.admin-action-bar .btn {
  min-width: 148px !important;
  min-height: 44px;
  padding-inline: 18px;
  line-height: 1.15;
}

.admin-action-bar .btn.primary {
  box-shadow: 0 8px 18px rgba(208, 139, 13, 0.18);
}

.admin-action-bar--danger .btn.danger {
  min-width: 168px !important;
  box-shadow: 0 8px 18px rgba(185, 28, 28, 0.18);
}

.admin-action-bar--triple {
  flex-wrap: nowrap;
}

.admin-action-bar--triple .btn {
  min-width: 176px !important;
}

.admin-action-bar--inline {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.admin-toolbar-equal {
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
  gap: 12px;
  width: 100%;
  flex-wrap: nowrap;
}

.admin-toolbar-equal__slot {
  display: flex;
  flex: 0 0 220px;
  width: auto;
  min-width: 0;
}

.admin-toolbar-equal__slot .btn {
  width: 100%;
  min-width: 220px;
  min-height: 48px;
  height: 48px;
  padding: 8px 12px;
  border-radius: 14px;
  line-height: 1.08;
  text-align: center;
  justify-content: center;
  align-self: stretch;
  gap: 8px;
  overflow: hidden;
  white-space: normal;
}

.admin-toolbar-equal__slot .btn-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.admin-toolbar-equal__slot .btn-label {
  display: inline-block;
}

.admin-toolbar-equal__slot.primary .btn {
  box-shadow: 0 8px 18px rgba(25, 118, 210, 0.18);
}

.admin-toolbar-equal__slot:not(.primary) .btn {
  font-size: 12px !important;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.admin-confirm-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(15, 23, 42, 0.46);
  backdrop-filter: blur(1.5px);
  z-index: 1100;
}

.admin-confirm-dialog {
  width: min(100%, 460px);
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
  padding: 1.4rem 1.5rem;
}

.admin-confirm-title {
  margin: 0 0 0.7rem;
  font-size: clamp(1.25rem, 1.7vw, 1.7rem);
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.02em;
}

.admin-confirm-body {
  margin: 0;
  color: #475569;
  line-height: 1.6;
}

.admin-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.15rem;
}

.admin-confirm-field {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 1rem;
}

.admin-confirm-field label {
  font-weight: 600;
  color: #334155;
}

.admin-confirm-field input,
.admin-confirm-field select,
.admin-confirm-field textarea {
  width: 100%;
  min-height: 44px;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  background: #fff;
  color: #0f172a;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.admin-confirm-field input:focus,
.admin-confirm-field select:focus,
.admin-confirm-field textarea:focus {
  outline: none;
  border-color: #16a34a;
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.12);
  background: #f8fff9;
}

.password-confirm-panel {
  max-width: 430px;
  border-color: #dbeafe;
}

.password-confirm-input {
  width: 100%;
  min-height: 46px;
  border: 1.5px solid #b7d6bf;
  border-radius: 10px;
  background: #f8fffa;
  padding: 0.72rem 0.8rem;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.password-confirm-input:focus {
  outline: none;
  border-color: #16a34a;
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.12);
  background: #ffffff;
}

.password-confirm-error {
  min-height: 1.2rem;
  color: #dc2626;
  font-size: 0.9rem;
  font-weight: 600;
}

.admin-action-link {
  background: none;
  border: none;
  padding: 0;
  color: #2563eb;
  cursor: pointer;
  text-decoration: underline;
  font: inherit;
}

.admin-table-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  border-bottom: 1px solid #e6e9f0;
  padding: 8px 4px;
}

.admin-table-actions .btn {
  min-width: 0 !important;
  height: 32px;
  padding: 0 12px;
  font-size: 12px !important;
  border-radius: 6px;
}

.admin-table-actions .admin-action-link {
  height: 32px;
  min-width: 0;
  padding: 0 12px;
}

.action-form {
  display: inline;
  margin: 0;
}

.action-btn {
  height: 34px;
  padding: 0 14px;
  font-size: 13px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #f7f7fa;
  color: #2c3e50;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-weight: 500;
  white-space: nowrap;
}

.action-btn:hover {
  background: #e8ebf0;
  border-color: #bcc1ca;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.action-btn.action-edit {
  color: var(--primary);
  border-color: rgba(0, 82, 204, 0.2);
  background: rgba(0, 82, 204, 0.04);
}

.action-btn.action-edit:hover {
  background: rgba(0, 82, 204, 0.1);
  border-color: rgba(0, 82, 204, 0.4);
  color: var(--primary);
}

.action-btn.action-approve {
  color: #27ae60;
  border-color: rgba(39, 174, 96, 0.2);
  background: rgba(39, 174, 96, 0.04);
}

.action-btn.action-approve:hover {
  background: rgba(39, 174, 96, 0.1);
  border-color: rgba(39, 174, 96, 0.4);
}

.action-btn.action-reject {
  color: #e74c3c;
  border-color: rgba(231, 76, 60, 0.2);
  background: rgba(231, 76, 60, 0.04);
}

.action-btn.action-reject:hover {
  background: rgba(231, 76, 60, 0.1);
  border-color: rgba(231, 76, 60, 0.4);
}

.action-btn.action-delete {
  color: #e74c3c;
  border-color: rgba(231, 76, 60, 0.2);
  background: rgba(231, 76, 60, 0.04);
}

.action-btn.action-delete:hover {
  background: rgba(231, 76, 60, 0.1);
  border-color: rgba(231, 76, 60, 0.4);
}

.admin-compact-button {
  min-width: 0 !important;
  height: 28px !important;
  padding: 0 10px !important;
  font-size: 12px !important;
}

.admin-action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 28px;
  padding: 0;
  border-radius: 6px;
  border: 1px solid #fca5a5;
  background: #fff5f5;
  color: #dc2626;
  cursor: pointer;
  line-height: 1;
}

.admin-review-panel {
  margin-bottom: 12px;
  border: 2px solid #ffc107;
  border-radius: 8px;
  background: #fff8db;
  padding: 14px;
}

.admin-review-panel__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.admin-review-panel__title {
  color: #856404;
  font-size: 14px;
  font-weight: 700;
}

.admin-review-panel__badge {
  margin-left: auto;
  border-radius: 999px;
  background: #ff9800;
  color: #fff;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
}

.admin-review-panel__list {
  max-height: 120px;
  overflow-y: auto;
  color: #856404;
  font-size: 12px;
}

.admin-review-panel__item {
  margin: 6px 0;
  padding: 4px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.admin-review-panel__more {
  margin: 8px 0;
  color: #666;
  font-style: italic;
}

.admin-review-panel__footer {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #ffc107;
  color: #666;
  font-size: 12px;
}

.form-actions .btn {
  width: 140px !important;
  text-align: center;
  box-sizing: border-box;
}

.btn.primary,
.btn.ghost {
  border: 2px solid transparent;
}

.btn.primary {
  border-color: #d08b0d;
}

.btn.ghost {
  border-color: var(--primary);
}

.btn-equal {
  min-width: 120px;
  text-align: center;
  font-size: 15px;
  font-family: inherit;
}

.btn-row {
  display: flex;
  gap: 12px;
  align-items: stretch;
}

.about-detail-actions {
  justify-content: flex-end;
}

.btn-row .btn {
  width: 140px;
  height: 44px;
  line-height: 1;
  font-size: 15px;
  font-family: inherit;
}

.student-auth-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.student-auth-actions .btn {
  width: 100% !important;
  min-height: 44px;
  padding-inline: 14px;
  line-height: 1.2;
}

.news-title {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e1e5ee;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

.news-info {
  flex: 1;
  min-width: 0;
}

.news-item-title {
  font-size: 14px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 4px;
  line-height: 1.4;
  word-break: break-word;
}

.news-item-summary {
  font-size: 13px;
  color: #666;
  margin-bottom: 6px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-item-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.meta-badge {
  display: inline-block;
  font-size: 12px;
  padding: 4px 8px;
  background: #e8f0f8;
  color: #0052cc;
  border-radius: 4px;
  font-weight: 500;
}

@media (max-width: 768px) {
  .page-header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-header-inner .btn {
    width: 100%;
    justify-content: center;
  }

  .page-header h1 {
    font-size: 22px;
  }

  .page-header p {
    font-size: 13px;
  }

  .admin-table-actions {
    flex-direction: column;
    gap: 4px;
    padding: 8px 0;
  }

  .action-btn {
    width: 100%;
    justify-content: center;
  }

  .news-title {
    gap: 8px;
  }

  .thumb {
    width: 56px;
    height: 56px;
  }

  .news-item-title {
    font-size: 13px;
  }

  .news-item-summary {
    font-size: 12px;
    -webkit-line-clamp: 1;
  }

  .meta-badge {
    font-size: 11px;
    padding: 3px 6px;
  }

  .data-table th,
  .data-table td {
    padding: 12px 10px;
    font-size: 13px;
  }
}

@media (min-width: 900px) {
  .header-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .site-nav {
    flex-wrap: nowrap;
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 12px 0 14px;
  }

  .header-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 12px;
  }

  .brand {
    grid-column: 1 / -1;
    align-items: center;
    width: 100%;
  }

  .brand__name {
    font-size: 18px;
    line-height: 1.2;
    width: 100%;
  }

  .brand__tag {
    margin-top: 2px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 96px;
    min-height: 42px;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  }

  .nav-toggle__label--desktop {
    display: none;
  }

  .nav-toggle__label--mobile {
    display: inline;
  }

  .site-nav {
    display: none;
    width: 100%;
    margin-top: 6px;
    gap: 10px;
    padding: 14px 12px;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 22px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  }

  .site-nav.open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 48px;
    font-size: 15px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
  }

  .admin-link {
    display: none;
  }

  .hero {
    padding: 20px 0 8px;
  }

  .hero h1 {
    font-size: 22px;
  }

  .hero-title {
    display: none;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .news-card {
    grid-template-columns: 1fr;
  }

  .news-thumb {
    height: 160px;
  }

  .news-mini {
    min-width: 240px;
    grid-template-columns: 60px 1fr;
  }

  .news-mini__thumb {
    width: 60px;
    height: 50px;
  }

  .program-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .program-view {
    width: 100%;
  }

  .program-view .btn {
    flex: 1;
  }

  .btn-row,
  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .footer-admin .btn-row {
    flex-direction: row;
    flex-wrap: nowrap;
    width: 100%;
    align-items: stretch;
    gap: 8px;
  }

  .footer-admin .btn-row .btn,
  .footer-admin .btn-row form {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
  }

  .footer-admin .btn-row .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: normal;
    word-break: break-word;
    line-height: 1.2;
    padding-inline: 8px;
    text-align: center;
  }

  .footer-admin .btn-row form .btn {
    width: 100%;
  }

  .admin-action-bar {
    justify-content: stretch;
  }

  .admin-action-bar--triple {
    flex-wrap: wrap;
  }

  .btn-row .btn,
  .form-actions .btn {
    width: 100% !important;
  }

  .admin-action-bar .btn {
    min-width: 0 !important;
  }

  .admin-toolbar-equal {
    flex-wrap: wrap;
  }

  .admin-toolbar-equal__slot {
    width: 100%;
    flex: 1 1 100%;
  }

  .admin-toolbar-equal__slot .btn {
    min-width: 0;
  }

  .admin-confirm-actions,
  .admin-table-actions {
    flex-wrap: wrap;
  }

  .admin-review-panel__header {
    flex-wrap: wrap;
  }

  .admin-review-panel__badge {
    margin-left: 0;
  }

  .student-auth-actions {
    grid-template-columns: 1fr;
  }
}

.program-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
}

.program-card p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;          /* thêm dòng này */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.program-card .btn {
  white-space: nowrap;
  align-self: center;
}

/* ===== INPUT/TEXTBOX STANDARDIZATION (Simple & Clean Style) ===== */
/* Unified input style across the entire project: Light gray border, white background, minimal focus effect */

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="url"],
input[type="number"],
input[type="search"],
input[type="date"],
input[type="datetime-local"],
input[type="month"],
input[type="time"],
input[type="week"],
input[type="color"],
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background-color: #ffffff;
  color: #1f2937;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.5;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="password"]::placeholder,
input[type="tel"]::placeholder,
input[type="url"]::placeholder,
input[type="number"]::placeholder,
input[type="search"]::placeholder,
textarea::placeholder {
  color: #9ca3af;
  font-style: normal;
}

input[type="text"]:hover,
input[type="email"]:hover,
input[type="password"]:hover,
input[type="tel"]:hover,
input[type="url"]:hover,
input[type="number"]:hover,
input[type="search"]:hover,
input[type="date"]:hover,
input[type="datetime-local"]:hover,
input[type="month"]:hover,
input[type="time"]:hover,
input[type="week"]:hover,
input[type="color"]:hover,
select:hover,
textarea:hover {
  border-color: #9ca3af;
  background-color: #ffffff;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
input[type="date"]:focus,
input[type="datetime-local"]:focus,
input[type="month"]:focus,
input[type="time"]:focus,
input[type="week"]:focus,
input[type="color"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #16a34a;
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.1);
  background-color: #ffffff;
}

input[type="text"]:disabled,
input[type="email"]:disabled,
input[type="password"]:disabled,
input[type="tel"]:disabled,
input[type="url"]:disabled,
input[type="number"]:disabled,
input[type="search"]:disabled,
input[type="date"]:disabled,
input[type="datetime-local"]:disabled,
input[type="month"]:disabled,
input[type="time"]:disabled,
input[type="week"]:disabled,
input[type="color"]:disabled,
select:disabled,
textarea:disabled {
  background-color: #f3f4f6;
  color: #9ca3af;
  cursor: not-allowed;
  border-color: #d1d5db;
}

textarea {
  min-height: 100px;
  resize: vertical;
}

/* ===== INPUT VALIDATION STATES ===== */
input:invalid:not(:placeholder-shown),
textarea:invalid:not(:placeholder-shown),
select:invalid:not(:placeholder-shown) {
  border-color: #dc2626;
  background-color: #fef2f2;
}

input:invalid:focus,
textarea:invalid:focus,
select:invalid:focus {
  border-color: #b91c1c;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.1);
}

input:valid:not(:placeholder-shown),
textarea:valid:not(:placeholder-shown),
select:valid:not(:placeholder-shown) {
  border-color: #16a34a;
  background-color: #f0fdf4;
}

input:valid:focus,
textarea:valid:focus,
select:valid:focus {
  border-color: #15803d;
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.1);
}

/* ===== COMPACT INPUT FOR TABLES ===== */
/* Reduce height of inputs/selects in table cells for compact layout */
table input[type="text"],
table input[type="number"],
table input[type="email"],
table input[type="password"],
table select,
table textarea,
td input[type="text"],
td input[type="number"],
td input[type="email"],
td select,
td textarea {
  height: 28px;
  padding: 2px 6px;
  font-size: 14px;
  line-height: 1.4;
}

table textarea,
td textarea {
  height: auto;
  min-height: 56px;
  padding: 4px 6px;
}

table input[type="text"]:focus,
table input[type="number"]:focus,
table input[type="email"]:focus,
table select:focus,
table textarea:focus,
td input[type="text"]:focus,
td input[type="number"]:focus,
td input[type="email"]:focus,
td select:focus,
td textarea:focus {
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.1);
}

@media (max-width: 768px) {
  .program-card {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }
}

.list {
  display: grid;
  gap: 16px;
}

.list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--card);
  padding: 16px 18px;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(9, 30, 66, 0.06);
}

.list-item--two-col {
  align-items: flex-start;
}

.list-item__main h3 {
  margin: 0 0 6px;
}

.list-item__main p {
  margin: 0;
}

.list-item__meta {
  min-width: 180px;
  text-align: right;
}

.list-item__meta .badge {
  display: block;
}

.status-pill {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
}

.status-live {
  color: #0b5b2d;
  background: #e7f6ed;
  border: 1px solid rgba(11, 91, 45, 0.2);
}

.status-upcoming {
  color: #8a5b00;
  background: #fff2d9;
  border: 1px solid rgba(243, 167, 18, 0.4);
}

.status-expired {
  color: #7a1d2a;
  background: #ffe8ec;
  border: 1px solid rgba(178, 34, 52, 0.3);
}

@media (max-width: 768px) {
  .list-item--two-col {
    flex-direction: column;
    align-items: flex-start;
  }

  .list-item__meta {
    text-align: left;
  }
}

.quick-notice {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
  background: linear-gradient(135deg, #fff7e2, #fff3d6);
  border: 2px solid rgba(243, 167, 18, 0.45);
  border-left: 8px solid var(--accent);
  border-radius: 14px;
  padding: 16px 18px;
  margin: 16px 0 24px;
  box-shadow: 0 8px 18px rgba(9, 30, 66, 0.08);
  animation: notice-in 420ms ease-out both, notice-glow 2.8s ease-in-out 0.6s infinite;
}

.quick-notice__badge {
  font-weight: 700;
  color: #9c5b00;
  background: #fff1c5;
  padding: 6px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.6px;
  white-space: nowrap;
}

.quick-notice__content h3 {
  margin: 0 0 6px;
}

.quick-notice__content p {
  margin: 0;
}

@keyframes notice-in {
  0% { opacity: 0; transform: translateY(6px) scale(0.98); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes notice-glow {
  0% { box-shadow: 0 8px 18px rgba(9, 30, 66, 0.08); border-color: rgba(243, 167, 18, 0.45); }
  50% { box-shadow: 0 12px 26px rgba(243, 167, 18, 0.22); border-color: rgba(243, 167, 18, 0.75); }
  100% { box-shadow: 0 8px 18px rgba(9, 30, 66, 0.08); border-color: rgba(243, 167, 18, 0.45); }
}

@media (prefers-reduced-motion: reduce) {
  .quick-notice {
    animation: none;
  }
}

@media (max-width: 768px) {
  .quick-notice {
    grid-template-columns: 1fr;
  }
}

.tabs {
  background: var(--card);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 6px 16px rgba(9, 30, 66, 0.06);
}

.tab-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.tab-btn {
  border: 1px solid #d7dce5;
  background: #f6f8fc;
  color: var(--text);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
}

.tab-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.btn.danger {
  background: #dc3545;
  border-color: #dc3545;
  color: #fff;
}

.btn.danger:hover {
  background: #bb2d3b;
  border-color: #bb2d3b;
}

.tab-panel {
  display: none;
  animation: tab-fade 240ms ease;
}

.tab-panel.active {
  display: block;
}

@keyframes tab-fade {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.table-scroll {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
  .data-table,
  .graduation-history-table,
  .retake-table,
  .plan-table,
  .grade-edit-audit-table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

.data-table input[type="number"] {
  width: 56px;
  padding: 4px 6px;
  font-size: 12px;
}

.grade-table th,
.grade-table td {
  white-space: nowrap;
  width: auto;
}

.grade-table .col-stt { width: auto; min-width: 38px; text-align: center; }
.grade-table .col-code { width: auto; min-width: 74px; }
.grade-table .col-name { min-width: 150px; }
.grade-table .col-birth { width: auto; min-width: 80px; }
.grade-table .col-score { width: auto; min-width: 64px; }
.grade-table .col-summary { width: auto; min-width: 78px; }

.grade-table {
  width: 100%;
  font-size: calc(10.5px * var(--grade-font-scale, 1));
  table-layout: auto;
}

.grade-table th {
  white-space: normal;
  padding: 4px 3px;
  text-align: center;
  vertical-align: middle;
  line-height: 1.2;
}

.grade-table td {
  padding: 3px 3px;
}

.grade-table .col-name { min-width: 144px; }
.grade-table .col-code { min-width: 68px; }
.grade-table .col-birth { min-width: 82px; }
.grade-table td.col-birth,
.grade-table td.col-score,
.grade-table td.col-summary {
  text-align: center;
}

.divider {
  height: 1px;
  background: #e7ebf2;
  margin: 16px 0;
}


.admin-students .btn {
    min-width: 140px;
}

.admin-students .form-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}



.admin-students .form-actions.buttons-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.admin-students .form-actions.buttons-row .btn {
    min-width: 170px;
    text-align: center;
}

.admin-inline-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.table-scroll--panel {
  max-height: 70vh;
  overflow: auto;
  border: 1px solid #dee2e6;
  border-radius: 10px;
  background: #fff;
}

.data-table--grid {
  width: 100%;
  border-collapse: separate !important;
  border-spacing: 0;
}

.data-table--grid th,
.data-table--grid td {
  padding: 6px 10px;
  border-right: 1px solid #dee2e6;
  border-bottom: 1px solid #dee2e6;
  background-color: #fff;
  background-clip: padding-box;
}

.data-table--sticky thead th {
  position: -webkit-sticky;
  position: sticky !important;
  top: 0 !important;
  background-color: #f8f9fa !important;
  z-index: 40 !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  background-clip: padding-box;
  border-top: 1px solid #dee2e6;
}

/* ===== GRADE TABLE COMPACT INPUT ===== */
.grade-table input[type="number"],
.grade-table input[type="text"] {
  height: calc(24px * var(--grade-font-scale, 1));
  width: auto;
  min-width: 42px;
  max-width: 100%;
  padding: 1px 4px;
  font-size: calc(12px * var(--grade-font-scale, 1));
  line-height: 1.2;
  text-align: center;
}

.grade-font-size-control {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.grade-font-size-button {
  min-width: 36px !important;
  width: 36px;
  padding: 0 !important;
  font-size: 20px !important;
  line-height: 1;
}

.grade-font-size-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.grade-font-size-value {
  min-width: 48px;
  text-align: center;
  font-size: 12px;
  color: #475569;
}

.grade-table input[type="number"]:focus,
.grade-table input[type="text"]:focus {
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.1);
}

.score-low {
  background-color: #fef2f2 !important;
  border-color: #dc2626 !important;
}

.student-transcript__header {
  display: flex;
  gap: 2rem;
  margin-bottom: 1rem;
  padding: 10px 15px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.student-transcript__info h2 {
  margin-top: 0;
  margin-bottom: 18px;
  font-size: 1.3rem;
}

.student-transcript__row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 4px;
  line-height: 1.5;
}

.student-transcript__label {
  min-width: 100px;
  font-weight: 700;
  color: #666;
}

.student-transcript__section-title {
  margin: 1.2rem 0 0.8rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: #1f2937;
  text-align: center;
}

.student-transcript__term {
  margin-bottom: 1.2rem;
}

.student-transcript__term-header {
  margin-top: 1.4rem;
  margin-bottom: 0.6rem;
}

.student-transcript__semester-title {
  margin: 0;
  color: #0056b3;
  font-size: 1.7rem;
  font-weight: 700;
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 0.5rem;
}

.student-transcript__table {
  width: 100%;
  min-width: 1120px;
  border-collapse: collapse;
  margin-bottom: 1rem;
  background: #fff;
}

.student-transcript__table-wrap {
  overflow-x: auto;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
}

.student-transcript__table th,
.student-transcript__table td {
  border: 1px solid #ddd;
  padding: 2px 8px;
  line-height: 1.2;
  text-align: left;
}

.student-transcript__table th {
  background-color: #f8f9fa;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
}

.student-transcript__table td.text-center {
  text-align: center;
}

.student-transcript__warning-row {
  background: #fff8f0;
}

.student-transcript__warning-badge {
  margin-left: 6px;
  color: #dc2626;
  font-size: 11px;
  font-weight: 600;
}

.student-transcript__course-class {
  font-size: 12px;
  color: #555;
}

.student-transcript__actions {
  justify-content: center;
  text-align: center;
  padding: 2px 4px !important;
}

.grade-pass {
  color: green;
  font-weight: 700;
}

.grade-fail {
  color: red;
  font-weight: 700;
}

@media (max-width: 768px) {
  .student-transcript__header {
    flex-direction: column;
    gap: 1rem;
  }

  .student-transcript__row {
    flex-direction: column;
    gap: 0.2rem;
    line-height: 1.35;
    margin-bottom: 0.5rem;
  }

  .student-transcript__label {
    min-width: 0;
  }
}

.inline-form-error {
  min-height: 1rem;
  display: block;
  color: #b42318;
  font-size: 0.82rem;
}

@media print {
  @page {
    size: A4 portrait;
    margin: 8mm;
  }

  body:has(.student-transcript__page-header) {
    background: #fff !important;
  }

  body:has(.student-transcript__page-header) .site-header,
  body:has(.student-transcript__page-header) .site-footer,
  body:has(.student-transcript__page-header) .student-transcript__page-header,
  body:has(.student-transcript__page-header) .admin-confirm-overlay {
    display: none !important;
  }

  body:has(.student-transcript__page-header) .main-content {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body:has(.student-transcript__page-header) .student-transcript__header {
    margin: 0 0 5mm;
    padding: 3mm 4mm;
    border: 1px solid #cbd5e1;
    box-shadow: none;
    break-inside: avoid;
  }

  body:has(.student-transcript__page-header) .student-transcript__info h2 {
    margin-bottom: 2mm;
    font-size: 15pt;
  }

  body:has(.student-transcript__page-header) .student-transcript__row {
    display: inline-flex;
    min-width: 48%;
    margin-bottom: 1mm;
    font-size: 9pt;
    line-height: 1.25;
  }

  body:has(.student-transcript__page-header) .student-transcript__label {
    min-width: 30mm;
  }

  body:has(.student-transcript__page-header) .student-transcript__section-title {
    margin: 0 0 2mm;
    font-size: 13pt;
  }

  body:has(.student-transcript__page-header) .student-transcript__table-wrap {
    overflow: visible;
    border: 1px solid #cbd5e1;
  }

  body:has(.student-transcript__page-header) .student-transcript__table {
    min-width: 0;
    width: 100%;
    margin: 0;
    table-layout: auto;
    font-size: 7.5pt;
  }

  body:has(.student-transcript__page-header) .student-transcript__table th,
  body:has(.student-transcript__page-header) .student-transcript__table td {
    padding: 1.3mm 1.2mm;
    line-height: 1.15;
    overflow-wrap: anywhere;
  }

  body:has(.student-transcript__page-header) .student-transcript__table th {
    white-space: normal;
  }

  body:has(.student-transcript__page-header) .student-transcript__table td.text-center {
    text-align: center;
  }

  body:has(.student-transcript__page-header) .student-transcript__table thead {
    display: table-header-group;
  }

  body:has(.student-transcript__page-header) .student-transcript__table tr {
    break-inside: avoid;
  }

  body:has(.student-transcript__page-header) .student-transcript__actions,
  body:has(.student-transcript__page-header) .student-transcript__print-hide,
  body:has(.student-transcript__page-header) .student-transcript__table th:last-child,
  body:has(.student-transcript__page-header) .student-transcript__table td:last-child {
    display: none !important;
  }

  body:has(.student-transcript__page-header) .student-transcript__course-class {
    font-size: 7pt;
  }

  body:has(.student-transcript__page-header) .grade-pass,
  body:has(.student-transcript__page-header) .grade-fail {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

.assignment-page {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.assignment-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 1.25rem;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
}

.assignment-card h2,
.assignment-card h3 {
  margin-top: 0;
}

.assignment-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.assignment-heading p {
  margin: 0;
  color: #6b7280;
}

.assignment-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.assignment-summary-card {
  border: 1px solid #dbeafe;
  background: #f8fbff;
  border-radius: 10px;
  padding: 0.9rem 1rem;
}

.assignment-summary-card strong {
  display: block;
  font-size: 1.4rem;
  color: #1d4ed8;
}

.assignment-summary-card span {
  display: block;
  margin-top: 0.2rem;
  color: #475569;
  font-size: 13px;
}

.assignment-tabs {
  display: flex;
  gap: 0.75rem;
  margin: 1rem 0;
  flex-wrap: wrap;
}

.assignment-tab {
  border: 1px solid #d1d5db;
  background: #f8fafc;
  color: #374151;
  border-radius: 999px;
  padding: 0.6rem 1rem;
  min-width: 180px;
  font-weight: 600;
  cursor: pointer;
}

.assignment-tab.active {
  background: #0f766e;
  color: #fff;
  border-color: #0f766e;
  box-shadow: 0 6px 16px rgba(15, 118, 110, 0.18);
}

.assignment-tab-panels {
  margin-top: 0.25rem;
}

.assignment-tab-panel {
  display: none;
}

.assignment-tab-panel.active {
  display: block;
}

.assignment-panel-card {
  padding: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
}

.assignment-panel-card h3,
.assignment-list h3 {
  margin-bottom: 0.5rem;
}

.assignment-note {
  margin: 0 0 1rem;
  color: #6b7280;
  font-size: 13px;
}

.assignment-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.assignment-list--spaced {
  margin-top: 1rem;
}

.assignment-alert--spaced-top {
  margin-top: 1rem;
}

.assignment-alert--spaced-bottom {
  margin-bottom: 1rem;
}

.assignment-table-scroll {
  max-height: 320px;
  overflow: auto;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
}

.assignment-data-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 720px;
}

.assignment-data-table th,
.assignment-data-table td {
  padding: 8px 12px;
  line-height: 1.3;
  border: 1px solid #dee2e6;
}

.assignment-data-table th {
  background: #f8fafc;
  white-space: nowrap;
}

.assignment-form-grid {
  gap: 0.5rem 0.75rem;
}

.assignment-checklist {
  position: relative;
}

.assignment-checklist__toggle {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid #d1d5db;
  background: #fff;
  border-radius: 4px;
  min-height: 36px;
  padding: 7px 10px;
  cursor: pointer;
  color: #111827;
}

.assignment-checklist__value {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}

.assignment-checklist__caret {
  flex: 0 0 auto;
  color: #6b7280;
  transition: transform 0.15s ease;
}

.assignment-checklist.open .assignment-checklist__caret {
  transform: rotate(180deg);
}

.assignment-checklist__panel {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  margin-top: 4px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  max-height: 280px;
  overflow: auto;
  display: none;
  padding: 8px;
}

.assignment-checklist.open .assignment-checklist__panel {
  display: block;
}

.assignment-panel-card .assignment-form-grid label.assignment-checklist__item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 6px 4px;
  font-size: 13px;
  width: 100%;
  text-align: left;
  margin-bottom: 0;
  font-weight: 500;
  cursor: pointer;
}

.assignment-panel-card .assignment-form-grid label.assignment-checklist__item input[type="checkbox"] {
  margin: 0;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
}

.assignment-panel-card .assignment-form-grid label.assignment-checklist__item span {
  flex: 1 1 auto;
  text-align: left;
  line-height: 1.35;
}

.assignment-panel-card .assignment-form-grid label.assignment-all-scope {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin-bottom: 0;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.assignment-panel-card .assignment-form-grid label.assignment-all-scope input[type="checkbox"] {
  width: 16px !important;
  height: 16px;
  margin: 0;
  flex: 0 0 auto;
  padding: 0;
}

.team-availability-page .team-availability-card {
  max-width: 600px;
  margin: 0 auto;
}

.team-availability-page .team-availability-form {
  width: 100%;
}

.team-availability-page .team-availability-online {
  margin-top: 6px;
  font-size: 14px;
}

.team-availability-page .team-availability-slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin-top: 8px;
}

@media (max-width: 600px) {
  .team-availability-page .team-availability-slots-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.team-availability-page .slot-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px !important;
  border: 1.5px solid #e5e7eb !important;
  border-radius: 12px !important;
  background: #fff !important;
  font-size: 16px !important;
  min-height: 40px !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
  transition: border 0.2s, box-shadow 0.2s, background 0.2s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  justify-content: flex-start;
}
 .team-availability-page .slot-chip input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: #f3a712;
  border-radius: 6px;
  border: 1.5px solid #d1d5db;
  margin: 0 4px 0 0;
  flex-shrink: 0;
}
 .team-availability-page .slot-chip span {
  flex: 1;
  font-weight: 600;
  color: #1b1f24;
  white-space: nowrap;
  text-align: left;
}
 .team-availability-page .slot-chip input[type="checkbox"]:checked + span {
  color: #fff;
}
 .team-availability-page .slot-chip input[type="checkbox"]:checked {
  background: #f3a712;
  border-color: #f3a712;
}
 .team-availability-page .slot-chip input[type="checkbox"]:checked ~ span {
  color: #f3a712;
}
 .team-availability-page .slot-chip input[type="checkbox"]:checked ~ span, .team-availability-page .slot-chip:active {
  background: #f3a712 !important;
  color: #fff !important;
}
 .team-availability-page .slot-chip:active, .team-availability-page .slot-chip input[type="checkbox"]:focus + span {
  border-color: #f3a712 !important;
  box-shadow: 0 0 0 2px #f3a71233;
}
@media (max-width: 600px) {
  .slot-chip { font-size: 15px !important; min-height: 36px !important; padding: 8px 6px !important; }
  .slot-grid-responsive, .team-availability-slots-grid { gap: 7px !important; }
}
}

@media (max-width: 420px) {
  .team-availability-page .slot-chip {
    font-size: 14px;
  }

  .team-availability-page .team-availability-table {
    min-width: 320px;
  }
}
