:root {
  --blue-900: #06366f;
  --blue-800: #094f9f;
  --blue-600: #497faf;
  --red: #ef3b3a;
  --mint: #d1edf1;
  --page: #efefef;
  --card: #ffffff;
  --line: #dddddd;
  --field: #e0e0e0;
  --text: #1c2740;
  --muted: #6e7a8c;
  --shadow: 0 12px 30px rgba(9, 79, 159, 0.08);
  --radius: 6px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px 1fr;
}

.sidebar {
  background: var(--blue-900);
  color: #fff;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 44px;
  height: 44px;
  display: block;
  border-radius: 50%;
  background: #fff;
  object-fit: contain;
  padding: 2px;
}

.brand strong,
.brand span {
  display: block;
}

.brand span {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.nav-list {
  display: grid;
  gap: 8px;
}

.nav-item {
  border: 1px solid transparent;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  text-align: left;
  padding: 11px 12px;
  border-radius: var(--radius);
}

.nav-item:hover,
.nav-item.active {
  background: #fff;
  color: var(--blue-800);
  border-color: rgba(255, 255, 255, 0.2);
}

.sidebar-note {
  margin-top: auto;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  padding: 14px;
  border-radius: var(--radius);
}

.sidebar-note span,
.sidebar-note strong,
.sidebar-note small {
  display: block;
}

.sidebar-note span,
.sidebar-note small {
  color: rgba(255, 255, 255, 0.7);
}

.sidebar-note strong {
  margin: 4px 0 8px;
}

.sidebar-note a {
  color: #fff;
  text-decoration: underline;
}

.main-panel {
  padding: 24px;
  min-width: 0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--blue-600);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 28px;
}

h2 {
  font-size: 19px;
  margin-bottom: 4px;
}

h3 {
  color: var(--blue-900);
  font-size: 16px;
}

.top-actions,
.filter-row,
.section-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.primary-button,
.ghost-button,
.danger-button {
  min-height: 38px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  padding: 0 14px;
  font-weight: 700;
}

.primary-button {
  background: var(--blue-800);
  color: #fff;
}

.primary-button:hover {
  background: var(--blue-900);
}

.ghost-button {
  background: #fff;
  color: var(--blue-800);
  border-color: var(--line);
}

.danger-button {
  background: #fff;
  color: var(--red);
  border-color: rgba(239, 59, 58, 0.35);
}

.full {
  width: 100%;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.metric,
.panel,
.login-card,
.phase-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.metric {
  padding: 18px;
}

.metric span {
  color: var(--muted);
  display: block;
  margin-bottom: 8px;
}

.metric strong {
  font-size: 30px;
  color: var(--blue-800);
}

.content-grid,
.portal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 16px;
}

.panel,
.login-card {
  padding: 22px;
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--field);
  padding-bottom: 14px;
  margin-bottom: 18px;
}

.panel-heading p {
  color: var(--muted);
  margin-bottom: 0;
}

input,
select,
textarea {
  width: 100%;
  min-height: 36px;
  border: 1px solid #cfd6df;
  border-radius: 3px;
  padding: 8px 10px;
  color: #494949;
  background: #fff;
  outline: none;
}

textarea {
  min-height: 72px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #66afe9;
  box-shadow: 0 0 0 3px rgba(102, 175, 233, 0.2);
}

label {
  color: #435063;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

label input,
label select,
label textarea {
  margin-top: 7px;
}

.form-section {
  padding: 16px 0;
  border-bottom: 1px solid #eef1f5;
}

.form-section:last-child {
  border-bottom: 0;
}

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

.wide {
  grid-column: 1 / -1;
}

.photo-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.photo-preview {
  width: 118px;
  height: 128px;
  border: 2px dashed #c8d1dc;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #6c7480;
  background: #fafcff;
}

.photo-preview img,
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.upload-control {
  display: grid;
  gap: 8px;
  max-width: 280px;
}

.upload-control small {
  color: var(--muted);
  text-transform: none;
  font-weight: 400;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 850px;
  background: #fff;
}

th,
td {
  text-align: left;
  border-bottom: 1px solid #edf0f4;
  padding: 14px 16px;
  vertical-align: middle;
}

th {
  color: #3f4d62;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0;
  background: #fbfcfe;
}

tr:last-child td {
  border-bottom: 0;
}

.profile-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 48px;
  height: 48px;
  border: 3px solid #e7e7e7;
  border-radius: 4px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--mint);
  color: var(--blue-900);
  font-weight: 800;
}

.profile-cell strong,
.profile-cell span {
  display: block;
}

.profile-cell span,
.program-cell span {
  color: var(--muted);
  font-size: 12px;
}

.key-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font-family: Consolas, monospace;
  color: var(--ink);
  cursor: pointer;
}

.key-visible {
  letter-spacing: 0;
  font-weight: 700;
  min-width: 92px;
  justify-content: center;
}

.action-row {
  display: flex;
  gap: 6px;
}

.action-row button {
  min-height: 32px;
  padding: 0 9px;
}

.mini-list,
.notice-list {
  display: grid;
  gap: 10px;
}

.mini-item,
.notice-item {
  border: 1px solid #edf0f4;
  border-radius: var(--radius);
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mini-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.mini-profile .avatar {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
}

.mini-profile div {
  min-width: 0;
}

.mini-item span,
.notice-item span {
  color: var(--muted);
  font-size: 12px;
}

.notice-form {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.compact-table table {
  min-width: 720px;
}

.compact-table td {
  padding: 8px;
}

.compact-table input {
  min-height: 34px;
}

.login-card {
  align-self: start;
}

.login-logo {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  background: var(--blue-800);
  color: #fff;
  border-radius: 50%;
  font-weight: 800;
  margin-bottom: 16px;
}

.login-card p,
.login-card small {
  color: var(--muted);
}

.login-card form {
  display: grid;
  gap: 14px;
}

.student-profile .profile-head {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 18px;
}

.student-profile .avatar {
  width: 76px;
  height: 76px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.info-box {
  border: 1px solid #edf0f4;
  border-radius: var(--radius);
  padding: 12px;
}

.info-box span {
  color: var(--muted);
  display: block;
  margin-bottom: 5px;
  font-size: 12px;
}

.empty-state {
  min-height: 320px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
}

.empty-state strong {
  color: var(--text);
  display: block;
  margin-bottom: 5px;
}

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

.phase-card {
  padding: 20px;
  border-top: 4px solid var(--blue-800);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.phase-card:hover,
.phase-card:focus,
.phase-card.active {
  border-top-color: var(--blue);
  box-shadow: 0 16px 36px rgba(9, 43, 95, 0.16);
  outline: none;
  transform: translateY(-2px);
}

.phase-card p {
  color: var(--muted);
  margin-bottom: 0;
}

.phase-module-panel {
  margin-top: 18px;
}

.phase-list {
  display: grid;
  gap: 10px;
}

.phase-row {
  display: grid;
  gap: 4px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
}

.phase-row span,
.phase-empty {
  color: var(--muted);
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  background: var(--blue-900);
  color: #fff;
  border-radius: var(--radius);
  padding: 12px 14px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.student-login-page {
  min-height: 100vh;
  background: #efefef;
  color: #000;
  font-family: Arial, Helvetica, sans-serif;
}

.student-alert {
  min-height: 115px;
  background: #dddddd;
  color: #6c0707;
  display: grid;
  place-content: center;
  text-align: center;
  font-weight: 700;
  line-height: 1.4;
  padding: 16px;
}

.student-alert p {
  margin: 0;
}

.student-login-wrap {
  min-height: calc(100vh - 115px);
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 22px;
  padding: 37px 16px 60px;
}

.classic-login-card {
  width: 100%;
  max-width: 378px;
  border: 1px solid #dddddd;
  background: #ffffff;
  padding: 16px;
}

.classic-brand {
  display: grid;
  grid-template-columns: 106px 1px 1fr;
  align-items: center;
  gap: 14px;
  min-height: 98px;
}

.classic-logo-img {
  width: 88px;
  height: 88px;
  display: block;
  margin: 0 auto;
  border-radius: 50%;
  object-fit: contain;
}

.classic-divider {
  width: 1px;
  height: 85px;
  background: #e0e0e0;
}

.classic-title h1 {
  margin: 0 0 10px;
  color: #16324f;
  font-size: 18px;
  line-height: 1.2;
}

.classic-title p {
  margin: 0;
  color: #555;
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}

.signin-copy {
  text-align: center;
  margin: 12px 0 30px;
  color: #000;
  font-size: 14px;
}

.classic-form {
  display: grid;
  gap: 10px;
}

.classic-form input {
  height: 35px;
  border: 2px solid #d1edf1;
  border-radius: 0;
  color: #494949;
  font-size: 14px;
  font-weight: 700;
}

.classic-form input::placeholder {
  color: #d4d4d4;
}

.classic-form input:focus {
  border-color: #66afe9;
  box-shadow: 0 0 8px rgba(102, 175, 233, 0.45);
}

.classic-form button {
  height: 51px;
  border: 0;
  border-radius: 3px;
  background: #ef3b3a;
  color: #fff;
  font-weight: 700;
  margin-top: 1px;
}

.classic-form button:hover {
  background: #d82f2e;
}

.classic-help {
  display: block;
  margin-top: 31px;
  color: #009cff;
  text-align: center;
  text-decoration: none;
  font-size: 13px;
}

.classic-error {
  min-height: 18px;
  margin: 14px 0 0;
  color: #ef3b3a;
  text-align: center;
  font-weight: 700;
}

.classic-profile {
  width: 100%;
  max-width: 620px;
  background: #fff;
  border: 1px solid #dddddd;
  padding: 18px;
}

.classic-profile h2 {
  color: #094f9f;
}

.classic-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.classic-profile-grid span {
  border: 1px solid #e0e0e0;
  padding: 10px;
  color: #555;
}

.classic-profile-grid strong {
  display: block;
  color: #111;
  margin-top: 4px;
}

.classic-profile,
.classic-profile-grid,
#studentProfile {
  display: none !important;
}

.portal-open {
  background: #ffffff;
}

.portal-open .student-login-wrap {
  min-height: 100vh;
  display: block;
  padding: 0;
}

.student-portal-screen {
  width: 100%;
  min-height: 100vh;
  background: #fff;
  color: #333;
  font-family: Arial, Helvetica, sans-serif;
}

.portal-topbar {
  height: 58px;
  border: 1px solid #29215f;
  border-radius: 3px;
  margin: 8px 4px 0;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 5px 16px;
  background: #fff;
  overflow: hidden;
}

.portal-logo-wrap {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 190px;
}

.portal-logo-wrap img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.portal-logo-wrap strong {
  display: block;
  color: #17146a;
  font-size: 30px;
  line-height: 25px;
  font-weight: 800;
}

.portal-logo-wrap span {
  display: block;
  color: #888;
  letter-spacing: 5px;
  font-size: 13px;
}

.portal-menu {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
}

.portal-menu button {
  border: 0;
  background: transparent;
  color: #1f1764;
  text-decoration: none;
  font-size: 15px;
  padding: 0;
  flex: 0 0 auto;
}

.portal-menu button::before {
  content: "■";
  color: #1f1764;
  font-size: 11px;
  margin-right: 5px;
}

.portal-menu strong {
  color: #f40000;
  font-size: 13px;
}

.portal-user-icons {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  position: relative;
  z-index: 2;
}

.portal-round {
  display: none;
}

.portal-account-menu {
  display: none;
}

.bell {
  position: relative;
  color: #17146a;
  font-weight: 700;
  border: 0;
  background: transparent;
}

.bell::before {
  content: "";
  position: absolute;
  right: -7px;
  top: -7px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ff1d25;
}

.bell::after {
  content: attr(class);
  display: none;
}

.user-dot {
  min-height: 26px;
  border: 0;
  border-radius: 14px;
  background: #5eb64d;
  color: #fff;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 700;
}

.portal-body {
  display: grid;
  grid-template-columns: 224px 1fr;
  min-height: calc(100vh - 66px);
}

.portal-side {
  padding: 22px 3px 0;
  border-right: 1px solid #e4e4e4;
  background: #fff;
}

.portal-side button,
.portal-side a {
  width: 220px;
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-radius: 2px;
  background: #2d2869;
  color: #dedcf2;
  margin-bottom: 4px;
  padding: 0 10px;
  text-align: left;
  text-decoration: none;
  font-size: 12px;
}

.portal-side a,
.portal-side .side-link {
  justify-content: flex-start;
  background: #fff;
  color: #555;
  border: 1px solid #dadada;
  border-top: 0;
  margin: 0;
  padding-left: 24px;
}

.portal-side .active-link {
  border-bottom: 1px solid #2d2869;
  color: #111;
  background: #f8f8f8;
}

.portal-content {
  min-width: 0;
  padding: 0 12px 14px;
}

.portal-section-title {
  height: 27px;
  background: #28205f;
  color: #fff;
  display: flex;
  align-items: center;
  padding-left: 10px;
  font-size: 12px;
}

.student-info-card {
  min-height: 532px;
  border: 1px solid #e3e3e3;
  border-top: 0;
  padding: 12px 10px 34px;
  display: grid;
  grid-template-columns: 250px minmax(280px, 1fr) minmax(260px, 1fr);
  gap: 20px;
  align-items: start;
}

.student-photo {
  width: 140px;
  height: 144px;
  border: 1px solid #888;
  border-radius: 5px;
  overflow: hidden;
  margin: 0 auto;
  background: #1da2d8;
  display: grid;
  place-items: center;
}

.student-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.student-photo img.student-photo-logo {
  object-fit: contain;
  padding: 12px;
  background: #ffffff;
}

.student-summary-card {
  grid-column: 1 / -1;
  width: 100%;
  margin-bottom: 18px;
  border: 1px solid #d7d7d7;
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.registration-summary-view .portal-section-title {
  display: none;
}

.student-registration-panel {
  grid-column: 1 / -1;
  width: 100%;
  border: 1px solid #d7d7d7;
  border-radius: 3px;
  background: #fff;
  overflow: hidden;
}

.student-registration-title {
  min-height: 43px;
  padding: 0 13px;
  background: #28205f;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 16px;
}

.student-registration-title select {
  width: 180px;
  min-height: 24px;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: #222;
  padding: 2px 8px;
}

.student-registration-details {
  padding: 14px;
}

.student-summary-title {
  min-height: 44px;
  background: #28205f;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 12px;
  font-size: 16px;
}

.student-summary-title button {
  min-height: 28px;
  border: 0;
  border-radius: 3px;
  background: #57c244;
  color: #fff;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.student-summary-body {
  display: grid;
  grid-template-columns: 210px minmax(280px, 1fr);
  gap: 38px;
  align-items: start;
  padding: 14px;
  min-height: 248px;
}

.student-summary-photo {
  width: 188px;
  height: 192px;
  border: 1px solid #888;
  border-radius: 8px;
  overflow: hidden;
  background: #1da2d8;
  display: grid;
  place-items: center;
}

.student-summary-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.student-summary-lines {
  padding-top: 4px;
  max-width: 560px;
}

.student-summary-lines p {
  margin: 0 0 9px;
  display: grid;
  grid-template-columns: 145px 14px minmax(0, 1fr);
  gap: 4px;
  color: #555;
  font-size: 13px;
  line-height: 1.25;
}

.student-summary-lines b {
  font-weight: 700;
  color: #444;
}

.student-summary-lines em {
  color: #666;
  font-style: italic;
}

.student-no-photo {
  color: #6c7480;
  font-size: 12px;
}

.info-lines {
  padding-top: 14px;
}

.info-lines p,
.detail-box p,
.address-box p {
  margin: 0 0 8px;
  display: grid;
  grid-template-columns: 160px 16px 1fr;
  gap: 4px;
  font-size: 10px;
  line-height: 1.25;
}

.info-lines b,
.detail-box b,
.address-box b {
  font-weight: 700;
  color: #444;
}

.info-lines em,
.detail-box em,
.address-box em {
  color: #666;
  font-style: italic;
}

.detail-box {
  border: 1px solid #d7d7d7;
  border-radius: 3px;
  min-height: 104px;
  padding: 24px 10px 10px;
}

.detail-left {
  grid-column: 1 / span 2;
}

.detail-right {
  grid-column: 3;
}

.portal-tabs {
  grid-column: 1 / -1;
  border-bottom: 1px solid #d9d9d9;
  margin: 2px 10px 0;
  display: flex;
  gap: 0;
}

.portal-tabs button {
  height: 30px;
  background: #fff;
  border: 0;
  border-top: 2px solid transparent;
  padding: 0 10px;
  color: #0c5fa5;
  font-size: 10px;
}

.portal-tabs button.active {
  color: #333;
  border-top-color: #28205f;
  border-left: 1px solid #d9d9d9;
  border-right: 1px solid #d9d9d9;
}

.address-box {
  grid-column: 1 / -1;
  border: 1px solid #d7d7d7;
  border-radius: 3px;
  margin: -6px 10px 0;
}

.address-box h3 {
  margin: 0 0 10px;
  height: 27px;
  border-bottom: 1px solid #d7d7d7;
  color: #111;
  font-size: 10px;
  display: flex;
  align-items: center;
  padding-left: 10px;
}

.address-box p {
  padding: 0 10px;
  grid-template-columns: 200px 16px 1fr;
}

.portal-table {
  width: calc(100% - 20px);
  min-width: 640px;
  margin: 0 10px 12px;
  border-collapse: collapse;
}

.portal-table th,
.portal-table td {
  border: 1px solid #dddddd;
  padding: 8px;
  font-size: 11px;
}

.portal-table th {
  background: #f5f5f5;
}

.portal-wide-panel {
  grid-column: 1 / -1;
  border: 1px solid #d7d7d7;
  border-radius: 3px;
  padding: 14px;
  min-height: 300px;
}

.portal-wide-panel h3 {
  color: #28205f;
  margin-bottom: 14px;
}

.portal-row-card {
  display: grid;
  grid-template-columns: 180px 1fr 110px;
  gap: 10px;
  align-items: center;
  border: 1px solid #e1e1e1;
  padding: 10px;
  margin-bottom: 8px;
  font-size: 12px;
}

.portal-row-card em {
  color: #0c5fa5;
  font-style: normal;
  text-align: right;
}

.portal-wide-panel > button,
.portal-password-form button {
  min-height: 34px;
  border: 0;
  border-radius: 3px;
  background: #28205f;
  color: #fff;
  padding: 0 12px;
  margin-right: 8px;
  margin-bottom: 8px;
}

.portal-password-form {
  grid-column: 1 / -1;
  width: 100%;
  max-width: 460px;
  border: 1px solid #d7d7d7;
  border-radius: 3px;
  padding: 16px;
}

.portal-password-form label {
  display: block;
  margin-bottom: 12px;
  color: #444;
  text-transform: none;
  font-size: 12px;
}

.portal-password-form p {
  color: #0c5fa5;
  font-weight: 700;
  margin: 8px 0 0;
}

.curriculum-report {
  grid-column: 1 / -1;
  border: 1px solid #e3e3e3;
  border-radius: 3px;
  background: #fff;
  overflow: hidden;
  min-height: 360px;
}

.curriculum-header {
  min-height: 44px;
  background: #28205f;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
}

.curriculum-header h3 {
  margin: 0;
  color: #fff;
  font-size: 16px;
  font-weight: 400;
}

.curriculum-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.curriculum-header button,
.curriculum-actions button {
  border: 0;
  border-radius: 3px;
  background: #ef4b43;
  color: #fff;
  min-height: 26px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 700;
}

.curriculum-actions button[type="submit"] {
  background: #15803d;
}

.curriculum-actions button#addCurriculumCourse {
  background: #497faf;
}

.curriculum-info-table,
.curriculum-course-table {
  width: calc(100% - 28px);
  margin: 14px;
  border-collapse: collapse;
  table-layout: fixed;
}

.curriculum-info-table td,
.curriculum-course-table th,
.curriculum-course-table td {
  border: 1px solid #d9d9d9;
  padding: 8px;
  font-size: 12px;
}

.curriculum-info-table input,
.curriculum-course-table input {
  min-height: 24px;
  border: 1px solid transparent;
  background: transparent;
  padding: 3px 5px;
  font-size: 12px;
}

.curriculum-info-table input:focus,
.curriculum-course-table input:focus {
  border-color: #66afe9;
  background: #fff;
}

.curriculum-info-table td:nth-child(2),
.curriculum-info-table td:nth-child(5) {
  width: 28px;
  text-align: center;
}

.curriculum-info-table td:nth-child(1),
.curriculum-info-table td:nth-child(4) {
  width: 29%;
}

.curriculum-report h4 {
  margin: 18px 0 12px;
  text-align: center;
  color: #111;
  font-size: 16px;
}

.curriculum-course-table {
  margin-top: 0;
}

.curriculum-course-table th {
  background: #f5f5f5;
  font-weight: 700;
}

.remove-course {
  float: right;
  min-height: 24px;
  border: 1px solid rgba(239, 59, 58, 0.35);
  border-radius: 3px;
  background: #fff;
  color: #ef3b3a;
  font-size: 11px;
}

.curriculum-save-message {
  margin: 0 14px 14px;
  color: #15803d;
  font-weight: 700;
}

.curriculum-save-message.error {
  color: #ef3b3a;
}

.admin-login-page {
  min-height: 100vh;
  background: #efefef;
  display: grid;
  place-items: center;
  font-family: Arial, Helvetica, sans-serif;
}

.admin-login-wrap {
  width: 100%;
  padding: 24px;
  display: grid;
  place-items: center;
}

.admin-login-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border: 1px solid #dddddd;
  border-top: 5px solid #094f9f;
  border-radius: 6px;
  box-shadow: 0 16px 38px rgba(9, 79, 159, 0.12);
  padding: 24px;
}

.admin-login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.admin-login-brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.admin-login-brand strong,
.admin-login-brand span {
  display: block;
}

.admin-login-brand strong {
  color: #094f9f;
  font-size: 24px;
}

.admin-login-brand span {
  color: #6e7a8c;
  margin-top: 3px;
}

.admin-login-card h1 {
  margin: 0 0 6px;
  color: #1c2740;
}

.admin-login-card p {
  color: #6e7a8c;
  margin-bottom: 18px;
}

.admin-login-form {
  display: grid;
  gap: 14px;
}

.admin-login-form label {
  text-transform: none;
  font-size: 13px;
}

.admin-login-form button {
  min-height: 42px;
  border: 0;
  border-radius: 4px;
  background: #094f9f;
  color: #fff;
  font-weight: 700;
}

.admin-login-error {
  min-height: 18px;
  color: #ef3b3a !important;
  font-weight: 700;
  margin: 12px 0 6px !important;
}

.admin-login-card small,
.admin-login-card a {
  display: block;
  color: #6e7a8c;
  margin-top: 10px;
}

.admin-login-card a {
  color: #094f9f;
  text-decoration: none;
  font-weight: 700;
}

.rud-home-page {
  margin: 0;
  background: #fff;
  color: #222;
  font-family: Arial, Helvetica, sans-serif;
}

.rud-container {
  width: min(1110px, calc(100% - 24px));
  margin: 0 auto;
}

.rud-top-strip {
  background: #272260;
  color: #fff;
  font-size: 16px;
}

.rud-top-strip .rud-container,
.rud-logo-row .rud-container,
.rud-main-nav .rud-container {
  display: flex;
  align-items: center;
}

.rud-top-strip .rud-container {
  justify-content: space-between;
  gap: 24px;
  min-height: 33px;
}

.rud-top-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.rud-socials {
  display: flex;
  align-items: center;
  gap: 18px;
}

.rud-socials a {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #272260;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.rud-socials a i,
.rud-footer-socials a i {
  display: none;
}

.rud-socials a::before,
.rud-footer-socials a::before {
  content: attr(data-icon);
  display: block;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  line-height: 1;
}

.rud-socials a[aria-label="Instagram"]::before,
.rud-footer-socials a[aria-label="Instagram"]::before {
  font-size: 14px;
  line-height: 0.85;
}

.rud-socials a[aria-label="YouTube"]::before,
.rud-footer-socials a[aria-label="YouTube"]::before {
  font-size: 10px;
  transform: translateX(1px);
}

.rud-top-strip a,
.rud-main-nav a,
.rud-footer a {
  color: inherit;
  text-decoration: none;
}

.rud-top-strip .rud-socials a {
  color: #272260;
}

.rud-footer .rud-footer-socials a {
  color: #073e68;
}

.rud-top-strip .student-link {
  color: #fff;
  font-weight: 400;
}

.rud-logo-row {
  background: #fff;
  border-bottom: 0;
  overflow: hidden;
}

.rud-logo-row .rud-container {
  min-height: 96px;
  justify-content: space-between;
  gap: 0;
  position: relative;
  max-width: 1110px;
}

.rud-brand-image {
  display: flex;
  align-items: center;
  min-height: 96px;
  flex: 1 1 auto;
  background: #fff;
  padding-right: 34px;
}

.rud-logo-row img {
  max-width: 560px;
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  transform: translateX(-8px);
}

.rud-header-actions {
  min-height: 96px;
  min-width: 505px;
  background: #312b6e;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  padding: 0 12px 0 58px;
  position: relative;
}

.rud-header-actions::before {
  content: "";
  position: absolute;
  left: -55px;
  top: 0;
  width: 0;
  height: 0;
  border-top: 96px solid #312b6e;
  border-left: 55px solid transparent;
}

.rud-action-circle {
  width: 61px;
  height: 61px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  text-decoration: none;
  font-size: 26px;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.rud-search {
  background: #c61920;
}

.rud-grad,
.rud-whatsapp {
  background: #26af68;
}

.rud-admission-btn {
  background: #ffd51a;
  color: #000;
  min-width: 224px;
  text-align: center;
  padding: 17px 20px;
  border-radius: 34px;
  font-weight: 700;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  position: relative;
  z-index: 1;
}

.rud-mobile-menu {
  display: none;
}

.rud-main-nav {
  background: #e5f3ed;
  color: #000;
  position: relative;
  z-index: 5;
}

.rud-main-nav .rud-container {
  min-height: 52px;
  flex-wrap: nowrap;
  justify-content: space-between;
  gap: 0;
}

.rud-main-nav a {
  padding: 17px 12px;
  font-weight: 400;
  font-size: 18px;
  font-family: Georgia, "Times New Roman", serif;
  white-space: nowrap;
}

.rud-main-nav a:hover {
  background: rgba(39, 34, 96, 0.08);
}

.rud-nav-item {
  position: relative;
}

.rud-nav-item > a {
  display: block;
}

.rud-academics-menu {
  position: absolute;
  left: 50vw;
  top: 100%;
  transform: translateX(-50vw);
  width: 100vw;
  background: #272260;
  padding: 13px 12px;
  display: none;
  flex-wrap: wrap;
  gap: 9px 10px;
  z-index: 20;
}

.rud-nav-item:hover .rud-academics-menu {
  display: flex;
}

.rud-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 245px;
  max-width: 420px;
  background: #272260;
  padding: 12px;
  display: none;
  z-index: 20;
}

.rud-admin-menu {
  min-width: 345px;
}

.rud-nav-item:hover .rud-dropdown-menu {
  display: grid;
}

.rud-dropdown-menu a,
.rud-academics-menu a {
  color: #fff;
  border: 1px solid #fff;
  padding: 10px 15px;
  font-size: 16px;
  font-weight: 700;
  font-family: Georgia, "Times New Roman", serif;
  background: transparent;
  line-height: 1.1;
}

.rud-dropdown-menu a + a {
  margin-top: 9px;
}

.rud-admission-menu {
  min-width: 320px;
}

.rud-faculties-menu {
  min-width: 420px;
  max-height: 520px;
  overflow-y: auto;
}

.rud-news-notice-menu {
  min-width: 330px;
}

.rud-dropdown-menu a:hover,
.rud-academics-menu a:hover {
  background: rgba(255, 255, 255, 0.1);
}

.rud-hero {
  min-height: 458px;
  border-top: 5px solid #ed1c24;
  border-bottom: 3px solid #ed1c24;
  color: #fff;
  position: relative;
  overflow: hidden;
  background: #272260;
}

.rud-slide {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  opacity: 0;
  animation: rudHeroSlider 20s infinite;
}

.rud-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(24, 25, 42, 0.42);
}

.rud-slide-1 {
  background-image: url("https://www.royal.edu.bd/wp-content/uploads/2024/02/rud-home-banner-4th-slide.jpg");
}

.rud-slide-2 {
  background-image: url("https://www.royal.edu.bd/wp-content/uploads/2024/02/rud-home-banner-bba-less-opacity.jpg");
  animation-delay: 5s;
}

.rud-slide-3 {
  background-image: url("https://www.royal.edu.bd/wp-content/uploads/2024/02/rud-home-banner-mba-opacity.jpg");
  animation-delay: 10s;
}

.rud-slide-4 {
  background-image: url("https://www.royal.edu.bd/wp-content/uploads/2024/02/rud-home-banner-msc-cse-lss-opacity.jpg");
  animation-delay: 15s;
}

.rud-slide-text {
  position: absolute;
  z-index: 2;
  left: 13.4%;
  top: 39%;
  transform: translateY(-50%);
  font-family: Georgia, "Times New Roman", serif;
}

.rud-slide-text h1 {
  margin: 0;
  color: #fff;
  font-size: 49px;
  line-height: 1.1;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
}

.rud-slide-text p {
  margin: 10px 0 0;
  color: #ed1c24;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.1;
}

.rud-slider-dots {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 52px;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
}

.rud-slider-dots span {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 3px solid #fff;
  background: #272260;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.rud-slider-dots span:nth-child(1) {
  background: #ed1c24;
}

@keyframes rudHeroSlider {
  0%,
  20% {
    opacity: 1;
  }
  25%,
  100% {
    opacity: 0;
  }
}

.rud-welcome a,
.rud-more-link,
.rud-portal-links a {
  display: inline-block;
  background: #ec1d25;
  color: #fff;
  padding: 11px 18px;
  border-radius: 3px;
  text-decoration: none;
  font-weight: 700;
}

.rud-admission-notice {
  background: #272260;
  color: #fff;
  border-bottom: 0;
  padding: 0;
  overflow: hidden;
}

.rud-news-grid h2,
.rud-welcome h2,
.rud-programs h2 {
  color: #27205e;
}

.rud-admission-notice .rud-container {
  width: 100%;
  max-width: none;
  display: grid;
  grid-template-columns: 225px 1fr;
  align-items: stretch;
}

.rud-admission-notice h2 {
  margin: 0;
  min-height: 50px;
  background: #ed1c24;
  color: #fff;
  display: grid;
  place-items: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
}

.rud-notice-text {
  min-width: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.rud-admission-notice p {
  margin: 0;
  line-height: 1;
  white-space: nowrap;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: 15px;
  display: block;
  padding-left: 100%;
  animation: rudNoticeTicker 24s linear infinite;
}

.rud-notice-text:hover p {
  animation-play-state: paused;
}

@keyframes rudNoticeTicker {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

.rud-news-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding: 42px 0;
}

.rud-news-grid article {
  border: 1px solid #e4e4e4;
  padding: 22px;
  border-top: 4px solid #27205e;
}

.rud-news-grid ul {
  padding-left: 18px;
  line-height: 2;
}

.rud-news-grid a {
  color: #222;
}

.rud-more-link {
  color: #fff !important;
}

.rud-news-board {
  background: #f4f4f4;
  padding: 33px 0 50px;
  font-family: Georgia, "Times New Roman", serif;
}

.rud-board-tabs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin-bottom: 22px;
}

.rud-board-tabs a {
  border: 1px solid #272260;
  color: #272260;
  background: #fff;
  padding: 15px 18px;
  text-decoration: none;
  font-size: 22px;
  font-weight: 700;
}

.rud-board-tabs a.active {
  background: #272260;
  color: #fff;
}

.rud-news-board h2 {
  color: #ed1c24;
  font-size: 42px;
  margin: 0 0 36px;
}

.rud-notice-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 24px;
}

.rud-notice-card {
  min-height: 140px;
  background: #fff;
  display: grid;
  grid-template-columns: 124px 1fr;
  align-items: center;
  padding: 16px 18px;
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.04);
}

.rud-date {
  min-height: 70px;
  border-right: 1px solid #999;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
}

.rud-date strong {
  font-size: 38px;
  line-height: 1;
}

.rud-date span {
  display: block;
  font-size: 20px;
  line-height: 1;
}

.rud-notice-card h3 {
  color: #000;
  font-size: 25px;
  line-height: 1.12;
  margin: 0 0 8px;
}

.rud-notice-card div:last-child {
  padding-left: 16px;
}

.rud-notice-card a {
  color: #ed1c24;
  text-decoration: none;
  font-size: 21px;
  border-bottom: 1px solid #ed1c24;
}

.rud-notice-card a::after {
  content: "›";
  margin-left: 10px;
  font-size: 34px;
  line-height: 0;
  vertical-align: -4px;
}

.rud-view-all-notice {
  text-align: center;
  margin-top: 28px;
}

.rud-view-all-notice a {
  color: #000;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
}

.rud-view-all-notice span {
  color: #272260;
  font-size: 16px;
  margin-left: 8px;
}

.rud-welcome {
  background: #f4f4f4;
  padding: 46px 0 30px;
  font-family: Georgia, "Times New Roman", serif;
}

.rud-welcome .rud-container {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
  gap: 42px;
  align-items: center;
}

.rud-welcome p {
  line-height: 1.55;
  font-size: 12px;
}

.rud-welcome h2,
.rud-founder h2 {
  color: #ed1c24;
  font-size: 26px;
  line-height: 1.1;
  margin: 0 0 18px;
}

.rud-welcome a,
.rud-founder a {
  background: #ed1c24;
  color: #fff;
  border-radius: 20px;
  padding: 9px 18px;
  font-size: 12px;
  text-decoration: none;
  font-weight: 700;
}

.rud-welcome-photo {
  position: relative;
  padding-top: 54px;
}

.rud-welcome-photo img {
  width: 100%;
  border-radius: 8px;
  display: block;
}

.rud-stats {
  position: absolute;
  left: 0;
  top: 0;
  background: #ed1c24;
  color: #fff;
  display: flex;
  min-width: 256px;
  min-height: 64px;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.rud-stats strong {
  padding: 0 28px;
  font-size: 27px;
  line-height: 1;
}

.rud-stats strong + strong {
  border-left: 1px solid #fff;
}

.rud-stats span {
  display: block;
  font-size: 14px;
  margin-top: 8px;
}

.rud-founder,
.rud-chairman {
  background: #f4f4f4;
  padding: 30px 0 38px;
  font-family: Georgia, "Times New Roman", serif;
}

.rud-founder .rud-container,
.rud-chairman .rud-container {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
  gap: 42px;
  align-items: center;
}

.rud-chairman {
  background: #fff;
  padding: 32px 0 48px;
}

.rud-chairman .rud-container {
  grid-template-columns: minmax(360px, 0.9fr) minmax(360px, 1fr);
  gap: 28px;
}

.rud-founder p,
.rud-chairman p {
  line-height: 1.55;
  font-size: 14px;
}

.rud-founder figure,
.rud-chairman figure {
  margin: 0;
  text-align: center;
}

.rud-founder figure img,
.rud-chairman figure img {
  width: 100%;
  border-radius: 4px;
  display: block;
}

.rud-chairman figure img {
  height: 318px;
  object-fit: cover;
}

.rud-founder figcaption,
.rud-chairman figcaption {
  margin-top: 10px;
  color: #000;
}

.rud-founder figcaption strong,
.rud-founder figcaption span,
.rud-chairman figcaption strong,
.rud-chairman figcaption span {
  display: block;
}

.rud-founder figcaption span,
.rud-chairman figcaption span {
  color: #ed1c24;
  font-size: 11px;
  font-style: italic;
}

.rud-chairman h2 {
  color: #ed1c24;
  font-size: 30px;
  line-height: 1.1;
  margin: 0 0 18px;
}

.rud-chairman a {
  background: #ed1c24;
  color: #fff;
  border-radius: 20px;
  padding: 10px 24px;
  font-size: 13px;
  text-decoration: none;
  font-weight: 700;
  display: inline-block;
  margin-top: 8px;
}

.rud-portal-links {
  background: #f4f4f4;
  padding: 50px 0 48px;
  font-family: Georgia, "Times New Roman", serif;
}

.rud-portal-links .rud-container {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(330px, 0.9fr);
  gap: 38px;
  align-items: start;
}

.rud-portal-links h2 {
  margin: 0;
  padding: 0 36px 0 0;
  color: #000;
  font-size: 40px;
  line-height: 1.24;
  font-weight: 700;
  border-right: 1px solid #111;
}

.rud-portal-login-list {
  display: grid;
  gap: 62px;
}

.rud-portal-links article {
  min-height: auto;
  background: transparent;
  color: #000;
  padding: 0;
  display: block;
}

.rud-portal-links article h3 {
  margin: 0 0 46px;
  color: #000;
  font-size: 34px;
  line-height: 1;
  font-weight: 700;
}

.rud-portal-links article a {
  min-width: 230px;
  text-align: center;
  background: #ed1c24;
  color: #fff;
  border-radius: 34px;
  padding: 17px 34px;
  font-size: 22px;
  line-height: 1;
  text-decoration: none;
  font-weight: 700;
}

.rud-campus-slider {
  position: relative;
  width: min(1164px, calc(100% - 44px));
  height: clamp(190px, 25vw, 304px);
  margin: 0 auto 38px;
  overflow: hidden;
  border-radius: 12px;
  background: #f4f4f4;
}

.rud-campus-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 700ms ease, transform 700ms ease;
  pointer-events: none;
}

.rud-campus-slide.is-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.rud-campus-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.rud-campus-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 50px;
  height: 68px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 60px;
  line-height: 1;
  cursor: pointer;
}

.rud-campus-prev {
  left: 68px;
}

.rud-campus-next {
  right: 68px;
}

.rud-campus-arrow:hover {
  color: #fff;
}

.rud-apply-banner {
  min-height: 468px;
  margin: 0 0 42px;
  background:
    linear-gradient(rgba(27, 47, 94, 0.6), rgba(27, 47, 94, 0.6)),
    url("https://www.royal.edu.bd/wp-content/themes/rudtheme/images/campus-life/campus2.png") center/cover no-repeat;
  display: grid;
  place-items: center;
  font-family: Georgia, "Times New Roman", serif;
  text-align: center;
}

.rud-apply-overlay img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  display: block;
  margin: 0 auto 28px;
}

.rud-apply-overlay h2 {
  margin: 0;
  color: #fff;
  font-size: 38px;
  line-height: 1.18;
  font-weight: 700;
}

.rud-apply-overlay a {
  display: inline-block;
  margin-top: 46px;
  min-width: 164px;
  background: #ed1c24;
  color: #fff;
  border-radius: 28px;
  padding: 16px 30px;
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
}

.rud-programs {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 0 44px;
  font-family: Georgia, "Times New Roman", serif;
}

.rud-programs h2 {
  margin: 0 0 32px;
  color: #ed1c24;
  font-size: 34px;
  line-height: 1;
}

.rud-program-slider {
  overflow: hidden;
}

.rud-program-track {
  display: flex;
  gap: 12px;
  transition: transform 600ms ease;
}

.rud-program-card {
  flex: 0 0 calc((100% - 24px) / 3);
  background: #fff;
}

.rud-program-card img {
  width: 100%;
  height: 282px;
  display: block;
  object-fit: cover;
}

.rud-program-card div {
  min-height: 134px;
  padding: 24px 24px 22px;
}

.rud-program-card h3 {
  margin: 0 0 18px;
  color: #000;
  font-size: 23px;
  line-height: 1.05;
  font-weight: 700;
}

.rud-program-card a {
  text-decoration: none;
}

.rud-program-card div a {
  color: #ed1c24;
  font-size: 17px;
}

.rud-program-card div a::after {
  content: "›";
  margin-left: 10px;
  font-size: 32px;
  line-height: 0;
  vertical-align: -5px;
}

.rud-program-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
}

.rud-program-controls button {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: #ed1c24;
  color: #fff;
  font-size: 24px;
  line-height: 22px;
  font-weight: 700;
  cursor: pointer;
}

.rud-program-controls span {
  width: 16px;
  height: 6px;
  border-radius: 99px;
  background: #d9d9d9;
}

.rud-program-controls span.is-active {
  width: 42px;
  background: #27205e;
}

.rud-events {
  max-width: 1095px;
  margin: 0 auto;
  padding: 8px 0 48px;
  font-family: Georgia, "Times New Roman", serif;
}

.rud-events h2 {
  margin: 0 0 18px;
  color: #ed1c24;
  font-size: 24px;
  line-height: 1;
}

.rud-events-grid {
  display: grid;
  grid-template-columns: 160px minmax(300px, 1fr) 160px;
  gap: 16px;
  align-items: start;
}

.rud-events-side {
  display: grid;
  gap: 28px;
}

.rud-event-card img,
.rud-event-feature img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.rud-event-card img {
  height: 100px;
}

.rud-event-feature img {
  height: 250px;
}

.rud-event-card a,
.rud-event-feature a {
  text-decoration: none;
}

.rud-event-card time,
.rud-event-feature time {
  display: block;
  margin: 12px 0 12px;
  color: #222;
  font-size: 8px;
}

.rud-event-card time::before,
.rud-event-feature time::before {
  content: "⊞";
  margin-right: 4px;
  color: #333;
}

.rud-event-card h3,
.rud-event-feature h3 {
  margin: 0;
  color: #000;
  font-weight: 700;
}

.rud-event-card h3 {
  font-size: 14px;
  line-height: 1.1;
}

.rud-event-feature {
  text-align: center;
}

.rud-event-feature h3 {
  font-size: 22px;
  line-height: 1.18;
}

.rud-event-more {
  display: inline-block;
  margin-top: 14px;
  color: #ed1c24;
  font-size: 12px;
}

.rud-event-more::after {
  content: "›";
  margin-left: 8px;
  font-size: 22px;
  line-height: 0;
  vertical-align: -4px;
}

.rud-view-all-news {
  display: block;
  margin-top: 20px;
  color: #000;
  font-size: 12px;
  font-weight: 700;
}

.rud-view-all-news span {
  margin-left: 8px;
}

.rud-footer {
  position: relative;
  background:
    linear-gradient(rgba(5, 62, 105, 0.9), rgba(5, 62, 105, 0.9)),
    url("https://www.royal.edu.bd/wp-content/themes/rudtheme/images/footer-bg.jpg") center/cover no-repeat;
  color: #fff;
  margin-top: 72px;
  min-height: 620px;
  padding: 190px 0 56px;
  overflow: hidden;
  font-family: Arial, Helvetica, sans-serif;
}

.rud-footer::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -245px;
  width: 1920px;
  height: 410px;
  transform: translateX(-50%);
  background: #fff;
  border-radius: 0 0 50% 50%;
  z-index: 0;
}

.rud-footer-logo {
  position: absolute;
  top: 14px;
  left: 50%;
  width: 184px;
  height: 184px;
  transform: translateX(-50%);
  z-index: 2;
  object-fit: contain;
}

.rud-footer .rud-container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.8fr 1fr 1.05fr 1.75fr;
  gap: 58px;
  max-width: 1140px;
}

.rud-footer h3 {
  margin: 0 0 30px;
  color: #fff;
  font-size: 23px;
  line-height: 1.22;
  font-weight: 700;
}

.rud-footer-contact h3 {
  font-size: 38px;
  line-height: 1.15;
}

.rud-footer-contact p {
  margin: 30px 0;
}

.rud-footer-contact p small,
.rud-footer-contact p strong {
  display: block;
  color: #fff;
}

.rud-footer-contact p small {
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
}

.rud-footer-contact p strong {
  max-width: 390px;
  font-size: 21px;
  line-height: 1.28;
  font-weight: 700;
}

.rud-footer-socials {
  display: flex;
  gap: 18px;
  margin-top: 92px;
}

.rud-footer a {
  color: #fff;
}

.rud-footer-socials a {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #073e68;
  font-size: 15px;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
}

.rud-footer-links a {
  display: block;
  margin-bottom: 24px;
  color: #fff;
  font-size: 20px;
  line-height: 1.28;
  font-weight: 400;
}

.rud-copy {
  position: relative;
  z-index: 1;
  max-width: 1140px;
  margin: 76px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  text-align: right;
  font-size: 18px;
  font-weight: 700;
}

.rud-popup {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.78);
  display: grid;
  place-items: start center;
  padding-top: 38px;
}

.rud-popup.is-hidden {
  display: none;
}

.rud-popup-card {
  width: min(553px, calc(100vw - 44px));
  background: transparent;
}

.rud-popup-card img {
  width: 100%;
  display: block;
}

.rud-popup-close,
.rud-popup-search {
  position: fixed;
  top: 8px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 34px;
  line-height: 1;
  z-index: 10000;
}

.rud-popup-search {
  right: 48px;
  font-size: 26px;
}

.rud-popup-close {
  right: 11px;
}

@media (max-width: 900px) {
  .rud-container {
    width: min(100% - 24px, 720px);
  }

  .rud-news-grid,
  .rud-notice-cards,
  .rud-welcome .rud-container,
  .rud-founder .rud-container,
  .rud-chairman .rud-container,
  .rud-portal-links .rud-container,
  .rud-footer .rud-container {
    grid-template-columns: 1fr;
  }

  .rud-portal-links h2 {
    border-right: 0;
    padding-right: 0;
    font-size: 32px;
  }

  .rud-portal-login-list {
    gap: 34px;
  }

  .rud-apply-banner {
    min-height: 360px;
  }

  .rud-apply-overlay h2 {
    font-size: 30px;
  }

  .rud-programs {
    width: calc(100% - 32px);
  }

  .rud-program-card {
    flex-basis: calc((100% - 12px) / 2);
  }

  .rud-events {
    width: calc(100% - 32px);
  }

  .rud-events-grid {
    grid-template-columns: 1fr;
  }

  .rud-events-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rud-footer .rud-container {
    max-width: calc(100% - 48px);
    gap: 28px;
  }

  .rud-footer-contact h3 {
    font-size: 32px;
  }

  .rud-footer-links a {
    font-size: 17px;
  }

  .rud-logo-row .rud-container {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
  }

  .rud-brand-image {
    min-height: auto;
    padding-right: 0;
  }

  .rud-logo-row img {
    max-width: min(100%, 560px);
    transform: none;
  }

  .rud-header-actions {
    min-width: 100%;
    min-height: 78px;
    justify-content: center;
    padding: 12px;
    gap: 12px;
  }

  .rud-header-actions::before {
    display: none;
  }

  .rud-academics-menu {
    left: 0;
    right: 0;
    transform: none;
    width: min(100vw, 720px);
  }

  .rud-main-nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .rud-main-nav .rud-container {
    width: max-content;
    min-width: 100%;
    justify-content: flex-start;
  }

  .rud-dropdown-menu,
  .rud-academics-menu {
    position: fixed;
    left: 12px;
    right: 12px;
    top: auto;
    width: auto;
    max-width: none;
    max-height: min(70vh, 460px);
    overflow-y: auto;
  }
}

@media (max-width: 760px) {
  .rud-home-page {
    overflow-x: hidden;
  }

  .rud-container {
    width: 100%;
  }

  .rud-top-strip {
    width: 100%;
  }

  .rud-top-strip .rud-container {
    align-items: center;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    min-height: 112px;
    padding: 8px 0;
  }

  .rud-top-links {
    width: 100%;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    text-align: center;
  }

  .rud-top-links a {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
    line-height: 1.08;
  }

  .rud-top-links,
  .rud-socials,
  .rud-header-actions {
    flex-wrap: wrap;
  }

  .rud-socials {
    gap: 15px;
    justify-content: center;
  }

  .rud-socials a {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }

  .rud-socials a i,
  .rud-footer-socials a i {
    display: block;
  }

  .rud-socials a::before,
  .rud-footer-socials a::before {
    display: none;
  }

  .rud-logo-row {
    background: #e5f3ed;
  }

  .rud-logo-row .rud-container {
    width: 100%;
    max-width: none;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 0;
  }

  .rud-brand-image {
    justify-content: flex-start;
    width: calc(100% - 68px);
    min-height: 66px;
    padding: 0 0 0 13px;
    background: #e5f3ed;
  }

  .rud-logo-row img {
    max-width: min(100%, 315px);
    transform: none;
  }

  .rud-header-actions {
    order: -1;
    min-width: 100%;
    min-height: 61px;
    padding: 11px 10px;
    width: 100%;
    justify-content: center;
    gap: 8px;
    background: #fff;
  }

  .rud-header-actions::before {
    display: none;
  }

  .rud-action-circle {
    width: 49px;
    height: 49px;
    font-size: 24px;
  }

  .rud-admission-btn {
    flex: 1 1 auto;
    min-width: 210px;
    max-width: 255px;
    padding: 16px 10px;
    border-radius: 30px;
    font-size: 18px;
  }

  .rud-mobile-menu {
    width: 68px;
    min-height: 66px;
    border: 0;
    background: #e5f3ed;
    display: grid;
    place-content: center;
    gap: 5px;
    padding: 0 20px 0 0;
  }

  .rud-mobile-menu span {
    width: 36px;
    height: 5px;
    background: #272260;
    display: block;
  }

  .rud-main-nav {
    display: none;
  }

  .rud-nav-open .rud-main-nav {
    display: block;
    background: #272260;
    max-height: 68vh;
    overflow-y: auto;
  }

  .rud-nav-open .rud-main-nav .rud-container {
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .rud-nav-open .rud-main-nav a,
  .rud-nav-open .rud-nav-item > a {
    width: 100%;
    padding: 13px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    background: #272260;
    font-size: 18px;
    text-align: left;
    white-space: normal;
  }

  .rud-nav-open .rud-dropdown-menu,
  .rud-nav-open .rud-academics-menu {
    position: static;
    width: 100%;
    max-width: none;
    max-height: none;
    display: grid;
    transform: none;
    padding: 0 16px 12px;
    background: #272260;
    overflow: visible;
  }

  .rud-nav-open .rud-dropdown-menu a,
  .rud-nav-open .rud-academics-menu a {
    margin-top: 7px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.75);
    font-size: 15px;
  }

  .rud-hero {
    min-height: 118px;
    border-top-width: 6px;
    border-bottom-width: 4px;
  }

  .rud-slide {
    background-position: center;
  }

  .rud-slider-dots {
    bottom: 18px;
    gap: 6px;
  }

  .rud-slider-dots span {
    width: 18px;
    height: 18px;
    border-width: 3px;
  }

  .rud-slide-text h1 {
    font-size: 25px;
    line-height: 1.08;
  }

  .rud-slide-text p {
    font-size: 10px;
    line-height: 1.12;
  }

  .rud-slide-text {
    left: 13.5%;
    right: 7%;
    top: 48%;
  }

  .rud-admission-notice .rud-container {
    grid-template-columns: 1fr;
  }

  .rud-admission-notice h2 {
    min-height: 43px;
    font-size: 25px;
  }

  .rud-notice-text {
    min-height: 43px;
  }

  .rud-admission-notice p {
    font-size: 18px;
  }

  .rud-news-board {
    padding: 80px 0 52px;
  }

  .rud-board-tabs {
    justify-content: center;
    overflow-x: auto;
    gap: 8px;
    margin-bottom: 38px;
  }

  .rud-board-tabs a {
    flex: 0 0 auto;
    padding: 20px 24px;
    font-size: 31px;
  }

  .rud-news-board h2 {
    width: calc(100% - 24px);
    margin: 0 auto 70px;
    font-size: 42px;
    line-height: 1.1;
  }

  .rud-notice-cards {
    width: calc(100% - 24px);
    margin: 0 auto;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .rud-notice-card {
    grid-template-columns: 82px 1fr;
    min-height: 144px;
    padding: 20px 24px;
    width: 100%;
    overflow: hidden;
  }

  .rud-notice-card h3 {
    font-size: 25px;
    overflow-wrap: anywhere;
  }

  .rud-notice-card div:last-child {
    min-width: 0;
  }

  .rud-notice-card a {
    font-size: 21px;
  }

  .rud-date strong {
    font-size: 40px;
  }

  .rud-date span {
    font-size: 21px;
  }

  .rud-welcome,
  .rud-founder,
  .rud-chairman,
  .rud-portal-links {
    padding: 28px 0;
  }

  .rud-welcome-photo {
    padding-top: 18px;
  }

  .rud-stats {
    position: static;
    width: 100%;
    transform: none;
    margin-bottom: 12px;
  }

  .rud-chairman figure img {
    height: auto;
  }

  .rud-portal-links h2 {
    font-size: 28px;
    line-height: 1.18;
  }

  .rud-portal-links article h3 {
    margin-bottom: 18px;
    font-size: 28px;
  }

  .rud-portal-links article a {
    min-width: 188px;
    padding: 15px 24px;
  }

  .rud-campus-slider {
    width: calc(100% - 20px);
    height: 190px;
    border-radius: 8px;
  }

  .rud-campus-arrow {
    width: 38px;
    height: 38px;
    font-size: 38px;
  }

  .rud-apply-banner {
    min-height: 300px;
    background-position: center;
  }

  .rud-apply-overlay img {
    width: 88px;
  }

  .rud-apply-overlay h2 {
    font-size: 26px;
    line-height: 1.15;
  }

  .rud-program-card {
    flex-basis: 100%;
  }

  .rud-program-card img {
    height: 230px;
  }

  .rud-programs h2 {
    font-size: 30px;
  }

  .rud-program-card h3 {
    font-size: 20px;
  }

  .rud-events-side {
    grid-template-columns: 1fr;
  }

  .rud-event-feature img {
    height: 220px;
  }

  .rud-event-feature h3 {
    font-size: 22px;
  }

  .rud-event-small img {
    height: 155px;
  }

  .rud-footer {
    min-height: auto;
    padding-top: 120px;
  }

  .rud-footer-logo {
    top: 34px;
    width: 104px;
    height: 104px;
  }

  .rud-copy {
    text-align: center;
    margin-left: 24px;
    margin-right: 24px;
    font-size: 14px;
  }

  .rud-footer-socials {
    margin-top: 36px;
  }

  .rud-popup-card {
    width: calc(100vw - 28px);
  }
}

@media (max-width: 420px) {
  .rud-header-actions {
    padding: 10px 8px;
    gap: 6px;
  }

  .rud-action-circle {
    width: 48px;
    height: 48px;
  }

  .rud-admission-btn {
    min-width: 145px;
    max-width: 150px;
    font-size: 16px;
    padding: 16px 8px;
  }
}

@media print {
  .portal-topbar,
  .portal-side,
  .portal-section-title,
  .curriculum-header button {
    display: none !important;
  }

  .portal-body {
    display: block;
  }

  .portal-content {
    padding: 0;
  }

  .student-info-card,
  .curriculum-report {
    border: 0;
    min-height: auto;
  }
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

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

  .metric-grid,
  .content-grid,
  .portal-grid,
  .phase-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .main-panel,
  .sidebar {
    padding: 16px;
  }

  .topbar,
  .panel-heading,
  .photo-row {
    align-items: stretch;
    flex-direction: column;
  }

  .form-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .top-actions,
  .filter-row {
    width: 100%;
  }

  .top-actions button,
  .filter-row input,
  .filter-row select {
    flex: 1 1 100%;
  }

  .classic-brand {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .classic-divider {
    display: none;
  }

  .classic-profile-grid {
    grid-template-columns: 1fr;
  }

  .portal-open {
    background: #fff;
  }

  .portal-open .student-login-wrap {
    overflow-x: hidden;
  }

  .portal-topbar {
    height: 74px;
    margin: 12px 14px;
    padding: 0 13px;
    border: 2px solid #29215f;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    align-items: center;
    gap: 12px;
    white-space: normal;
  }

  .portal-logo-wrap {
  cursor: pointer;
    min-width: 0;
    flex: 1;
    gap: 8px;
  }

  .portal-logo-wrap img {
    width: 43px;
    height: 43px;
  }

  .portal-logo-wrap div {
    border-left: 2px solid #cfcfcf;
    padding-left: 10px;
  }

  .portal-logo-wrap strong {
    font-size: 31px;
    line-height: 27px;
  }

  .portal-logo-wrap span {
    font-size: 14px;
    letter-spacing: 4px;
  }

  .portal-round {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #2b2467;
    color: #fff;
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
  }

  .portal-side-toggle {
    font-size: 22px;
  }

  .portal-quick-toggle {
    background: #5945a4;
  }

  .quick-open .portal-quick-toggle,
  .side-open .portal-quick-toggle {
    transform: rotate(180deg);
  }

  .side-open .portal-side-toggle {
    font-size: 0;
  }

  .side-open .portal-side-toggle::before {
    content: "×";
    font-size: 28px;
  }

  .portal-user-icons {
    gap: 0;
  }

  .portal-user-icons .bell {
    display: none;
  }

  .portal-user-icons .user-dot {
    width: 44px;
    height: 44px;
    background: #65bd52;
    color: #fff;
    font-size: 0;
  }

  .portal-user-icons .user-dot::before {
    content: "●";
    font-size: 26px;
  }

  .portal-user-icons .user-dot::after {
    content: "⌄";
    position: absolute;
    right: -18px;
    top: 13px;
    color: #2b73b4;
    font-size: 16px;
  }

  .portal-account-menu {
    position: absolute;
    right: 0;
    top: 53px;
    width: 230px;
    display: none;
    background: #fff;
    border: 1px solid #d4d4d4;
    border-radius: 5px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
    z-index: 20;
  }

  .account-open .portal-account-menu {
    display: block;
  }

  .portal-account-menu button {
    width: 100%;
    min-height: 44px;
    border: 0;
    border-bottom: 1px solid #e5e5e5;
    background: #fff;
    color: #333;
    text-align: left;
    padding: 0 22px;
    font-size: 16px;
  }

  .portal-account-menu button:last-child {
    border-bottom: 0;
  }

  .portal-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: 99px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 18px 14px 16px;
    background: #29215f;
    color: #d4d0de;
    z-index: 10;
  }

  .quick-open .portal-menu {
    display: flex;
  }

  .portal-menu button {
    width: 100%;
    min-height: 40px;
    color: #d4d0de;
    text-align: left;
    font-size: 16px;
  }

  .portal-menu button::before {
    content: "■";
    width: 30px;
    height: 30px;
    margin-right: 8px;
    display: inline-grid;
    place-items: center;
    background: #f00;
    color: #fff;
    font-size: 12px;
    vertical-align: middle;
  }

  .portal-menu strong {
    width: 100%;
    margin-top: 16px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    text-align: center;
    font-size: 18px;
    text-transform: uppercase;
  }

  .portal-body {
    display: block;
    min-height: auto;
    position: relative;
  }

  .portal-side {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: min(220px, 78vw);
    padding: 132px 14px 24px;
    background: #29215f;
    border-right: 0;
    box-shadow: 18px 0 28px rgba(0, 0, 0, 0.26);
    transform: translateX(-105%);
    transition: transform 240ms ease;
    z-index: 9;
  }

  .side-open .portal-side {
    transform: translateX(0);
  }

  .student-info-card {
    grid-template-columns: 1fr;
  }

  .portal-side,
  .portal-side button,
  .portal-side a {
    width: 100%;
  }

  .portal-side button,
  .portal-side a {
    min-height: 58px;
    padding: 0 14px;
    border-bottom: 1px solid rgba(20, 16, 72, 0.72);
    background: #29215f;
    color: #d4d0de;
    font-size: 16px;
    line-height: 1.25;
  }

  .portal-side .side-link {
    min-height: 44px;
    border: 0;
    border-bottom: 2px solid #29215f;
    background: #fff;
    color: #555;
    font-size: 15px;
  }

  .portal-side .active-link {
    background: #fff;
    color: #555;
  }

  .portal-tabs {
    display: flex;
    width: 100%;
    gap: 0;
    overflow-x: auto;
  }

  .portal-tabs button {
    flex: 1 0 auto;
    min-height: 42px;
    padding: 0 12px;
    font-size: 13px;
    white-space: nowrap;
  }

  .portal-content {
    padding: 0 14px 34px;
  }

  .portal-section-title {
    height: 46px;
    margin-top: 0;
    padding-left: 16px;
    border-radius: 5px 5px 0 0;
    font-size: 18px;
    background: #29215f;
  }

  .student-info-card {
    min-height: auto;
    padding: 22px 16px 38px;
    gap: 18px;
    border: 1px solid #e0e0e0;
    border-top: 0;
  }

  .student-photo {
    width: 180px;
    max-width: 100%;
    height: auto;
    aspect-ratio: 1 / 1.05;
    border: 2px solid #999;
    border-radius: 8px;
  }

  .student-summary-title {
    min-height: 46px;
    padding: 8px 10px;
    font-size: 17px;
  }

  .student-summary-title button {
    min-height: 36px;
    padding: 0 12px;
    font-size: 12px;
  }

  .student-summary-body {
    grid-template-columns: 1fr;
    gap: 14px;
    justify-items: center;
    padding: 18px 14px 22px;
    min-height: 0;
  }

  .student-summary-photo {
    width: 180px;
    max-width: 100%;
    height: auto;
    aspect-ratio: 1 / 1.05;
    border: 2px solid #999;
  }

  .student-summary-lines {
    width: 100%;
    max-width: 420px;
    padding-top: 0;
  }

  .student-summary-lines p {
    grid-template-columns: minmax(118px, 0.95fr) 16px minmax(0, 1.15fr);
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.25;
  }

  .student-registration-title {
    min-height: 48px;
    padding: 8px 10px;
    font-size: 16px;
  }

  .student-registration-title select {
    width: min(180px, 58vw);
    min-height: 34px;
  }

  .student-no-photo {
    font-size: 15px;
  }

  .info-lines {
    padding-top: 0;
  }

  .info-lines p,
  .detail-box p,
  .address-box p {
    grid-template-columns: minmax(112px, 0.95fr) 16px minmax(0, 1.15fr);
    align-items: start;
    gap: 4px;
    margin-bottom: 11px;
    font-size: 14px;
    line-height: 1.25;
  }

  .info-lines p {
    text-align: center;
  }

  .info-lines b,
  .detail-box b,
  .address-box b {
    color: #555;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  }

  .address-box {
    width: 100%;
    overflow-x: auto;
  }

  .address-box h3 {
    font-size: 14px;
    white-space: normal;
  }

  .portal-table {
    min-width: 620px;
    font-size: 13px;
  }

  .portal-table th,
  .portal-table td {
    padding: 9px 8px;
    white-space: normal;
    word-break: normal;
  }

  .info-lines em,
  .detail-box em,
  .address-box em {
    color: #666;
    font-size: 14px;
    line-height: 1.28;
  }

  .detail-box {
    min-height: auto;
    padding: 24px 16px 16px;
    border-radius: 6px;
  }

  .detail-left,
  .detail-right,
  .portal-tabs,
  .address-box {
    grid-column: 1;
  }

  .portal-tabs {
    display: flex;
    overflow-x: auto;
  }

  .portal-tabs button {
    flex: 0 0 auto;
    font-size: 13px;
  }

  .address-box {
    padding: 20px;
  }

  .address-box h3 {
    font-size: 14px;
  }

  .portal-wide-panel,
  .curriculum-report {
    font-size: 14px;
    overflow-x: auto;
  }
}

/* Final responsive polish: keeps the public home page and student portal usable from 320px to desktop. */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

.rud-home-page,
.student-login-page {
  overflow-x: hidden;
}

.rud-home-page *,
.student-login-page * {
  box-sizing: border-box;
}

.rud-program-slider,
.rud-notice-text {
  overflow: hidden;
}

@media (max-width: 767px) {
  .rud-home-page {
    font-size: 16px;
  }

  .rud-home-page .rud-container {
    width: 100%;
    max-width: 100%;
  }

  .rud-top-strip .rud-container {
    min-height: auto;
    padding: 12px 16px 14px;
    gap: 10px;
  }

  .rud-top-links {
    gap: 7px;
  }

  .rud-top-links a {
    font-size: clamp(1rem, 4.8vw, 1.35rem);
  }

  .rud-socials a,
  .rud-footer-socials a {
    width: 34px;
    height: 34px;
    color: #272260;
  }

  .rud-header-actions {
    flex-wrap: nowrap;
    justify-content: space-between;
    padding: 10px clamp(10px, 3vw, 18px);
    gap: 8px;
  }

  .rud-action-circle {
    width: clamp(48px, 14vw, 62px);
    height: clamp(48px, 14vw, 62px);
    flex: 0 0 auto;
    font-size: clamp(1.35rem, 6vw, 1.8rem);
  }

  .rud-admission-btn {
    min-width: 0;
    max-width: none;
    flex: 1 1 auto;
    padding: 16px 10px;
    font-size: clamp(0.95rem, 4.4vw, 1.15rem);
    white-space: nowrap;
  }

  .rud-brand-image {
    width: calc(100% - 76px);
    padding-left: 14px;
  }

  .rud-logo-row img {
    max-width: min(100%, 365px);
  }

  .rud-mobile-menu {
    width: 76px;
    padding: 0 18px 0 0;
  }

  .rud-mobile-menu span {
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .rud-nav-open .rud-mobile-menu span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
  }

  .rud-nav-open .rud-mobile-menu span:nth-child(2) {
    opacity: 0;
  }

  .rud-nav-open .rud-mobile-menu span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
  }

  .rud-main-nav {
    max-width: 100vw;
  }

  .rud-hero {
    min-height: clamp(170px, 42vw, 280px);
  }

  .rud-slide-text {
    left: 8%;
    right: 8%;
    top: 48%;
  }

  .rud-slide-text h1 {
    font-size: clamp(1.55rem, 7vw, 2.35rem);
  }

  .rud-slide-text p {
    font-size: clamp(0.95rem, 4.8vw, 1.55rem);
  }

  .rud-admission-notice h2 {
    min-height: 54px;
    font-size: clamp(1.35rem, 6vw, 2rem);
  }

  .rud-notice-text {
    min-height: 50px;
  }

  .rud-admission-notice p {
    font-size: clamp(0.95rem, 4vw, 1.2rem);
  }

  .rud-news-board {
    padding: 46px 0;
  }

  .rud-board-tabs {
    width: calc(100% - 28px);
    margin: 0 auto 34px;
    overflow: visible;
  }

  .rud-board-tabs a {
    flex: 1 1 0;
    min-height: 58px;
    display: grid;
    place-items: center;
    padding: 10px 8px;
    font-size: clamp(1.2rem, 5.4vw, 1.8rem);
    text-align: center;
  }

  .rud-news-board h2 {
    width: calc(100% - 28px);
    margin-bottom: 28px;
    font-size: clamp(2rem, 9vw, 2.8rem);
  }

  .rud-notice-cards {
    width: calc(100% - 28px);
    gap: 18px;
  }

  .rud-notice-card {
    grid-template-columns: minmax(72px, 22%) 1fr;
    min-height: 132px;
    padding: 18px 16px;
  }

  .rud-notice-card h3 {
    font-size: clamp(1.25rem, 5.8vw, 1.85rem);
    overflow-wrap: normal;
  }

  .rud-notice-card a {
    font-size: clamp(1.05rem, 4.8vw, 1.4rem);
  }

  .rud-date strong {
    font-size: clamp(2rem, 9vw, 2.65rem);
  }

  .rud-date span {
    font-size: clamp(1rem, 5vw, 1.35rem);
  }

  .rud-welcome,
  .rud-founder,
  .rud-chairman,
  .rud-portal-links,
  .rud-programs,
  .rud-events {
    width: 100%;
    padding-left: 14px;
    padding-right: 14px;
  }

  .rud-program-card,
  .rud-event-small,
  .rud-event-feature {
    max-width: 100%;
  }

  .rud-footer {
    margin-top: 0;
    padding: 150px 24px 26px;
    min-height: auto;
    border-radius: 52% 52% 0 0 / 7% 7% 0 0;
    background:
      linear-gradient(rgba(5, 62, 105, 0.92), rgba(5, 62, 105, 0.94)),
      url("https://www.royal.edu.bd/wp-content/themes/rudtheme/images/footer-bg.jpg") center/cover no-repeat;
  }

  .rud-footer::before {
    border-radius: 52% 52% 0 0 / 7% 7% 0 0;
  }

  .rud-footer-logo {
    top: 28px;
    width: clamp(112px, 34vw, 170px);
    height: clamp(112px, 34vw, 170px);
  }

  .rud-footer .rud-container {
    max-width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .rud-footer-contact h3 {
    font-size: clamp(2rem, 8.5vw, 3.05rem);
  }

  .rud-footer-contact p {
    margin: 22px 0;
  }

  .rud-footer-contact p strong {
    max-width: 100%;
    font-size: clamp(1.15rem, 5vw, 1.55rem);
    line-height: 1.32;
    overflow-wrap: anywhere;
  }

  .rud-footer-links h3 {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }

  .rud-footer-links a {
    margin-bottom: 18px;
    font-size: clamp(1.15rem, 5.4vw, 1.55rem);
  }

  .rud-copy {
    margin: 28px 0 0;
    padding-top: 20px;
    text-align: left;
    font-size: 0.95rem;
  }

  .student-login-page .portal-side-toggle {
    font-size: 22px;
  }

  .student-login-page.side-open .portal-side-toggle {
    font-size: 0;
  }

  .student-login-page.side-open .portal-side-toggle::before {
    content: "X";
    font-size: 25px;
    line-height: 1;
  }

  .student-login-page.account-open .portal-account-menu {
    display: block;
  }

  .student-login-page .portal-account-menu button {
    cursor: pointer;
  }

  .student-login-page .portal-table,
  .student-login-page .curriculum-info-table,
  .student-login-page .curriculum-course-table {
    min-width: 620px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .rud-container {
    width: min(100% - 40px, 900px);
  }

  .rud-logo-row .rud-container {
    flex-direction: column;
    align-items: stretch;
  }

  .rud-brand-image {
    justify-content: center;
    padding: 18px 0;
  }

  .rud-header-actions {
    min-width: 100%;
    justify-content: center;
  }

  .rud-header-actions::before {
    display: none;
  }

  .rud-main-nav .rud-container {
    overflow-x: auto;
    justify-content: flex-start;
  }

  .rud-notice-cards,
  .rud-footer .rud-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rud-footer-contact {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1024px) {
  .rud-home-page {
    overflow-x: hidden;
  }
}

/* Footer logo sits halfway on the white curve and halfway inside the blue footer. */
.rud-footer {
  margin-top: 138px;
  overflow: visible;
}

.rud-footer-logo {
  top: -96px;
  left: 50%;
  display: block;
  max-width: calc(100vw - 40px);
  object-fit: contain;
  z-index: 3;
}

@media (max-width: 767px) {
  .rud-footer {
    margin-top: 220px;
    padding-top: 286px;
    border-radius: 50% 50% 0 0 / 4% 4% 0 0;
    overflow: visible;
  }

  .rud-footer-logo {
    width: clamp(270px, 82vw, 304px);
    height: clamp(270px, 82vw, 304px);
    top: calc(clamp(270px, 82vw, 304px) / -2);
    max-width: calc(100vw - 40px);
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .rud-footer {
    margin-top: 118px;
    padding-top: 156px;
  }

  .rud-footer-logo {
    top: -78px;
    width: 156px;
    height: 156px;
  }
}

/* Student portal account dropdown and session UI fixes. */
.student-login-page .portal-account-menu {
  right: 0;
  top: 34px;
  width: 150px;
  background: #fff;
  border: 1px solid #d6d6d6;
  border-radius: 3px;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  z-index: 100;
}

.student-login-page.account-open .portal-account-menu {
  display: block;
}

.student-login-page .portal-account-menu button {
  width: 100%;
  min-height: 31px;
  display: flex;
  align-items: center;
  gap: 5px;
  border: 0;
  border-bottom: 1px solid #e8e8e8;
  background: #fff;
  color: #555;
  padding: 0 12px;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
}

.student-login-page .portal-account-menu button:last-child {
  border-bottom: 0;
  min-height: 38px;
}

.student-login-page .portal-account-menu button:hover {
  background: #f5f5f5;
}

.student-login-page .portal-account-menu button::before {
  width: 12px;
  color: #444;
  font-family: "Font Awesome 6 Free", Arial, sans-serif;
  font-size: 11px;
  font-weight: 900;
}

.student-login-page .portal-account-menu button[data-portal-view="personal"]::before {
  content: "\f007";
}

.student-login-page .portal-account-menu button[data-portal-view="password"]::before {
  content: "\f023";
}

.student-login-page .portal-account-menu button[data-portal-view="logout"]::before {
  content: "\f2f5";
}

.student-login-page .portal-topbar {
  overflow: visible;
  position: relative;
  z-index: 50;
}

.student-login-page .portal-user-icons {
  position: relative;
  z-index: 80;
}

@media (max-width: 767px) {
  .student-login-page .portal-account-menu {
    position: absolute;
    top: 54px;
    right: -10px;
    width: 190px;
    max-width: calc(100vw - 34px);
    overflow: visible;
  }

  .student-login-page .portal-account-menu button {
    min-height: 44px;
    font-size: 15px;
    padding: 0 16px;
  }

  .student-login-page .portal-account-menu button:last-child {
    min-height: 46px;
  }
}

.qr-login-button {
  min-width: 62px;
  padding: 8px 12px;
  font-weight: 800;
}

.qr-modal[hidden] {
  display: none;
}

.qr-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 14, 45, 0.55);
}

.qr-card {
  position: relative;
  width: min(100%, 390px);
  border-radius: 8px;
  background: #fff;
  padding: 24px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  text-align: center;
}

.qr-card h2 {
  margin: 0 0 8px;
  color: #241b63;
  font-size: 24px;
}

.qr-card p {
  margin: 0 0 16px;
  color: #5d6474;
  font-size: 14px;
}

.qr-card img {
  width: 240px;
  height: 240px;
  max-width: 100%;
  object-fit: contain;
  border: 1px solid #e3e6ee;
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}

.qr-card input {
  width: 100%;
  margin: 14px 0;
  border: 1px solid #d9deea;
  border-radius: 6px;
  padding: 11px 12px;
  font-size: 13px;
}

.qr-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #f2f3f7;
  color: #1f1f32;
  cursor: pointer;
  font-weight: 800;
}
