:root {
  --blue: #061f55;
  --dark-blue: #001f4d;
  --gold: #c58b10;
  --light-bg: #f6f8fb;
  --text: #071b4d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--light-bg);
}

.site-header {
  height: 84px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  height: 100%;
  max-width: 1550px;
  margin: auto;
  padding: 0 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand img {
  height: 72px;
}

.main-nav {
  display: flex;
  gap: 36px;
  align-items: center;
}

.main-nav a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 31px 0;
}

.main-nav a.active {
  border-bottom: 3px solid var(--gold);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.language {
  font-weight: 600;
}

.signin {
  background: var(--blue);
  color: white;
  text-decoration: none;
  padding: 13px 26px;
  border-radius: 7px;
  font-weight: 600;
}

.hero {
    min-height: 560px;

    background:
        linear-gradient(
            90deg,
            rgba(255,255,255,0.96) 0%,
            rgba(255,255,255,0.88) 34%,
            rgba(255,255,255,0.45) 55%,
            rgba(255,255,255,0.05) 100%
        ),
        url("../images/hero.png");

    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;

    display: flex;
    align-items: center;
}

.hero-content {
  margin-left: 10.5%;
  max-width: 590px;
}

.hero h1 {
  font-size: 52px;
  line-height: 1.08;
  margin: 0;
  color: var(--blue);
}

.hero h2 {
  font-size: 24px;
  color: var(--gold);
  margin: 20px 0 12px;
}

.hero h2 span {
  margin: 0 10px;
}

.hero p {
  font-size: 16px;
  line-height: 1.5;
}

.microsoft-btn {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  padding: 17px 28px;
  border-radius: 7px;
  font-size: 19px;
  font-weight: 700;
}

.ms-box {
  width: 24px;
  height: 24px;
  background: linear-gradient(90deg,#f25022 50%,#7fba00 50%);
  position: relative;
}

.ms-box::after {
  content: "";
  position: absolute;
  inset: 50% 0 0 0;
  background: linear-gradient(90deg,#00a4ef 50%,#ffb900 50%);
}

.hero small {
  display: block;
  margin-top: 16px;
  font-size: 13px;
}

.portal-cards {
  max-width: 1220px;
  margin: 22px auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.portal-card {
  background: #fff;
  border-radius: 8px;
  padding: 28px 24px;
  display: flex;
  gap: 22px;
  min-height: 155px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.09);
}

.portal-card .icon {
  width: 64px;
  height: 64px;
  min-width: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 32px;
}

.portal-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.portal-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

.portal-card a {
  display: inline-block;
  margin-top: 22px;
  text-decoration: none;
  font-weight: 700;
}

.applicant h3, .applicant a { color: #005ce6; }
.student h3, .student a { color: #007447; }
.staff h3, .staff a { color: #6b2bc4; }
.admin h3, .admin a { color: #f36b12; }

.applicant .icon { background: #dbeaff; color: #005ce6; }
.student .icon { background: #dff3e8; color: #007447; }
.staff .icon { background: #efe5ff; color: #6b2bc4; }
.admin .icon { background: #fff0df; color: #f36b12; }

.dashboard-section {
  max-width: 1220px;
  margin: 22px auto 28px;
  display: grid;
  grid-template-columns: 1fr 1.45fr 1.15fr 1.25fr;
  gap: 22px;
}

.panel,
.promo-card {
  background: white;
  border-radius: 8px;
  padding: 22px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.panel h3 {
  margin-top: 0;
}

.quick-links h3::after {
  content: "";
  display: block;
  width: 38px;
  height: 3px;
  background: var(--gold);
  margin-top: 8px;
}

.quick-links ul {
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.quick-links li {
  margin: 14px 0;
}

.quick-links a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.panel-head a,
.view-more,
.event-link {
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
}

.announcement {
  display: grid;
  grid-template-columns: 30px 1fr 80px;
  gap: 12px;
  border-bottom: 1px solid #e6eaf0;
  padding: 11px 0;
}

.announcement p {
  margin: 0;
  font-size: 13px;
}

.announcement span {
  font-size: 12px;
}

.events {
  background: var(--blue);
  color: white;
}

.events .panel-head a,
.event-link {
  color: white;
}

.event-item {
  display: flex;
  gap: 14px;
  margin: 16px 0;
}

.date {
  width: 46px;
  height: 52px;
  background: rgba(255,255,255,0.13);
  border-radius: 6px;
  text-align: center;
  padding-top: 6px;
  font-weight: 700;
}

.date span {
  font-size: 11px;
}

.event-item p {
  margin: 0;
  font-size: 13px;
}

.promo-card {
  background:
    linear-gradient(rgba(0,31,77,0.35), rgba(0,31,77,0.6)),
    url("assets/images/students.jpg");
  background-size: cover;
  background-position: center;
  color: white;
  display: flex;
  align-items: flex-end;
}

.promo-card h3 {
  font-size: 23px;
  line-height: 1.25;
}

.promo-card h3::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: var(--gold);
  margin-top: 14px;
}

.site-footer {
  background: linear-gradient(90deg, #00265c, #001943);
  color: white;
  padding: 28px 8% 10px;
}

.footer-grid {
  max-width: 1280px;
  margin: auto;
  display: grid;
  grid-template-columns:
      minmax(280px,2fr)
      repeat(3,minmax(140px,1fr))
      minmax(260px,1.7fr);
  gap: 40px;
}

.footer-logo {
  height: 70px;
  margin-bottom: 10px;
}

.site-footer a {
  display: block;
  color: white;
  text-decoration: none;
  margin: 8px 0;
  font-size: 14px;
}

.site-footer p {
  font-size: 14px;
  line-height: 1.5;
}

.footer-bottom {
  max-width: 1280px;
  margin: 18px auto 0;
  border-top: 1px solid rgba(255,255,255,0.18);
  display: flex;
  justify-content: flex-end;
  gap: 34px;
  padding-top: 10px;
}

@media (max-width: 1100px) {
  .main-nav {
    display: none;
  }

  .portal-cards,
  .dashboard-section,
  .footer-grid {
    grid-template-columns: 1fr;
    padding: 0 20px;
  }

  .hero-content {
    margin: 40px 24px;
  }

  .hero h1 {
    font-size: 38px;
  }
}

/* ==============================
   Applicant Portal Page
============================== */

.applicant-page-hero {
  min-height: 330px;
  background:
    linear-gradient(90deg, rgba(6,31,85,0.92), rgba(6,31,85,0.58)),
    url("../images/applicant-hero.jpg");
  background-size: cover;
  background-position: center;
  color: white;
  display: flex;
  align-items: center;
  padding: 60px 10.5%;
}

.applicant-page-hero h1 {
  font-size: 48px;
  margin: 0 0 14px;
}

.applicant-page-hero p {
  max-width: 720px;
  font-size: 17px;
  line-height: 1.6;
}

.applicant-page-hero small {
  display: block;
  margin-top: 16px;
  font-size: 13px;
}

.applicant-layout {
  max-width: 1220px;
  margin: 28px auto;
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 24px;
}

.applicant-sidebar,
.applicant-welcome,
.applicant-status-card,
.applicant-progress {
  background: white;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.applicant-sidebar {
  padding: 22px;
  height: fit-content;
}

.applicant-sidebar h3,
.applicant-welcome h2,
.applicant-progress h2 {
  margin-top: 0;
  color: var(--blue);
}

.applicant-sidebar a {
  display: block;
  padding: 13px 14px;
  margin: 8px 0;
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
  border-radius: 7px;
}

.applicant-sidebar a.active,
.applicant-sidebar a:hover {
  background: var(--blue);
  color: white;
}

.applicant-welcome {
  padding: 26px;
  margin-bottom: 22px;
}

.applicant-status-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.applicant-status-card {
  padding: 22px;
  border-top: 5px solid var(--gold);
}

.applicant-status-card h3 {
  margin: 0 0 12px;
  font-size: 15px;
  color: var(--blue);
}

.applicant-status-card p {
  margin: 0;
  font-size: 21px;
  font-weight: 700;
}

.status-blue { border-color: #005ce6; }
.status-green { border-color: #007447; }
.status-gold { border-color: var(--gold); }
.status-purple { border-color: #6b2bc4; }

.applicant-progress {
  margin-top: 24px;
  padding: 26px;
}

.application-step {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid #e6eaf0;
}

.application-step:last-child {
  border-bottom: none;
}

.application-step span {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #dbe3ef;
  color: var(--blue);
  display: grid;
  place-items: center;
  font-weight: 700;
}

.application-step.completed span {
  background: #007447;
  color: white;
}

.application-step.current span {
  background: var(--gold);
  color: white;
}

.application-step h4 {
  margin: 0 0 5px;
  color: var(--blue);
}

.application-step p {
  margin: 0;
  font-size: 14px;
  color: #4d5b75;
}

@media (max-width: 1100px) {
  .applicant-layout,
  .applicant-status-grid {
    grid-template-columns: 1fr;
    padding: 0 20px;
  }

  .applicant-page-hero {
    padding: 48px 24px;
  }

  .applicant-page-hero h1 {
    font-size: 38px;
  }
}
/* ==============================
   Student Portal Page
============================== */

.student-page-hero {
  min-height: 300px;
  background:
    linear-gradient(90deg, rgba(0,116,71,0.92), rgba(6,31,85,0.55)),
    url("../images/student-hero.jpg");
  background-size: cover;
  background-position: center;
  color: white;
  display: flex;
  align-items: center;
  padding: 60px 10.5%;
}

.student-page-hero h1 {
  font-size: 48px;
  margin: 0 0 14px;
}

.student-page-hero p {
  max-width: 760px;
  font-size: 17px;
  line-height: 1.6;
}

.student-layout {
  max-width: 1220px;
  margin: 28px auto;
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 24px;
}

.student-sidebar,
.student-welcome,
.student-status-card,
.student-panel {
  background: white;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.student-sidebar {
  padding: 22px;
  height: fit-content;
}

.student-sidebar h3,
.student-welcome h2,
.student-panel h3 {
  margin-top: 0;
  color: var(--blue);
}

.student-sidebar a {
  display: block;
  padding: 13px 14px;
  margin: 8px 0;
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
  border-radius: 7px;
}

.student-sidebar a.active,
.student-sidebar a:hover {
  background: #007447;
  color: white;
}

.student-welcome {
  padding: 26px;
  margin-bottom: 22px;
}

.student-status-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.student-status-card {
  padding: 22px;
  border-top: 5px solid #007447;
}

.student-status-card h3 {
  margin: 0 0 12px;
  font-size: 15px;
  color: var(--blue);
}

.student-status-card p {
  margin: 0;
  font-size: 21px;
  font-weight: 700;
}

.student-dashboard-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.student-panel {
  padding: 24px;
}

.student-list-item {
  padding: 14px 0;
  border-bottom: 1px solid #e6eaf0;
}

.student-list-item:last-child {
  border-bottom: none;
}

.student-list-item strong {
  display: block;
  color: var(--blue);
  margin-bottom: 5px;
}

.student-list-item span {
  font-size: 14px;
  color: #4d5b75;
}

.module-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #e6eaf0;
}

.module-item:last-child {
  border-bottom: none;
}

.module-item span {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  background: #dbe3ef;
  color: var(--blue);
}

.module-item.completed span {
  background: #007447;
  color: white;
}

.module-item.current span {
  background: var(--gold);
  color: white;
}

.module-item strong {
  color: var(--blue);
}

.module-item p {
  margin: 5px 0 0;
  font-size: 14px;
  color: #4d5b75;
}

.quick-services a {
  display: block;
  padding: 13px 0;
  color: var(--blue);
  text-decoration: none;
  font-weight: 700;
  border-bottom: 1px solid #e6eaf0;
}

.quick-services a:last-child {
  border-bottom: none;
}

@media (max-width: 1100px) {
  .student-layout,
  .student-status-grid,
  .student-dashboard-grid {
    grid-template-columns: 1fr;
    padding: 0 20px;
  }

  .student-page-hero {
    padding: 48px 24px;
  }

  .student-page-hero h1 {
    font-size: 38px;
  }
}

/* ==============================
   Staff Portal Page
============================== */

.staff-page-hero {
  min-height: 300px;
  background:
    linear-gradient(90deg, rgba(107,43,196,0.92), rgba(6,31,85,0.55)),
    url("../images/staff-hero.jpg");
  background-size: cover;
  background-position: center;
  color: white;
  display: flex;
  align-items: center;
  padding: 60px 10.5%;
}

.staff-page-hero h1 {
  font-size: 48px;
  margin: 0 0 14px;
}

.staff-page-hero p {
  max-width: 760px;
  font-size: 17px;
  line-height: 1.6;
}

.staff-layout {
  max-width: 1220px;
  margin: 28px auto;
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 24px;
}

.staff-sidebar,
.staff-welcome,
.staff-status-card,
.staff-panel {
  background: white;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.staff-sidebar {
  padding: 22px;
  height: fit-content;
}

.staff-sidebar h3,
.staff-welcome h2,
.staff-panel h3 {
  margin-top: 0;
  color: var(--blue);
}

.staff-sidebar a {
  display: block;
  padding: 13px 14px;
  margin: 8px 0;
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
  border-radius: 7px;
}

.staff-sidebar a.active,
.staff-sidebar a:hover {
  background: #6b2bc4;
  color: white;
}

.staff-welcome {
  padding: 26px;
  margin-bottom: 22px;
}

.staff-status-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.staff-status-card {
  padding: 22px;
  border-top: 5px solid #6b2bc4;
}

.staff-status-card h3 {
  margin: 0 0 12px;
  font-size: 15px;
  color: var(--blue);
}

.staff-status-card p {
  margin: 0;
  font-size: 21px;
  font-weight: 700;
}

.staff-dashboard-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.staff-panel {
  padding: 24px;
}

.staff-list-item {
  padding: 14px 0;
  border-bottom: 1px solid #e6eaf0;
}

.staff-list-item:last-child {
  border-bottom: none;
}

.staff-list-item strong {
  display: block;
  color: var(--blue);
  margin-bottom: 5px;
}

.staff-list-item span {
  font-size: 14px;
  color: #4d5b75;
}

.staff-action-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid #e6eaf0;
}

.staff-action-item:last-child {
  border-bottom: none;
}

.staff-action-item span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #dbe3ef;
  color: var(--blue);
  font-weight: 700;
}

.staff-action-item.urgent span {
  background: #f36b12;
  color: white;
}

.staff-action-item strong {
  color: var(--blue);
}

.staff-action-item p {
  margin: 5px 0 0;
  font-size: 14px;
  color: #4d5b75;
}

.quick-services a {
  display: block;
  padding: 13px 0;
  color: var(--blue);
  text-decoration: none;
  font-weight: 700;
  border-bottom: 1px solid #e6eaf0;
}

.quick-services a:last-child {
  border-bottom: none;
}

@media (max-width: 1100px) {
  .staff-layout,
  .staff-status-grid,
  .staff-dashboard-grid {
    grid-template-columns: 1fr;
    padding: 0 20px;
  }

  .staff-page-hero {
    padding: 48px 24px;
  }

  .staff-page-hero h1 {
    font-size: 38px;
  }
}
/* ==============================
   Librarian Portal Page
============================== */

.librarian-page-hero {
  min-height: 300px;
  background:
    linear-gradient(90deg, rgba(0,31,77,0.92), rgba(0,116,71,0.55)),
    url("../images/library-hero.jpg");
  background-size: cover;
  background-position: center;
  color: white;
  display: flex;
  align-items: center;
  padding: 60px 10.5%;
}

.librarian-page-hero h1 {
  font-size: 48px;
  margin: 0 0 14px;
}

.librarian-page-hero p {
  max-width: 760px;
  font-size: 17px;
  line-height: 1.6;
}

.librarian-layout {
  max-width: 1220px;
  margin: 28px auto;
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 24px;
}

.librarian-sidebar,
.librarian-welcome,
.librarian-status-card,
.librarian-panel {
  background: white;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.librarian-sidebar {
  padding: 22px;
  height: fit-content;
}

.librarian-sidebar h3,
.librarian-welcome h2,
.librarian-panel h3 {
  margin-top: 0;
  color: var(--blue);
}

.librarian-sidebar a {
  display: block;
  padding: 13px 14px;
  margin: 8px 0;
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
  border-radius: 7px;
}

.librarian-sidebar a.active,
.librarian-sidebar a:hover {
  background: #007447;
  color: white;
}

.librarian-welcome {
  padding: 26px;
  margin-bottom: 22px;
}

.librarian-status-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.librarian-status-card {
  padding: 22px;
  border-top: 5px solid #007447;
}

.librarian-status-card h3 {
  margin: 0 0 12px;
  font-size: 15px;
  color: var(--blue);
}

.librarian-status-card p {
  margin: 0;
  font-size: 21px;
  font-weight: 700;
}

.librarian-dashboard-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.librarian-panel {
  padding: 24px;
}

.librarian-list-item {
  padding: 14px 0;
  border-bottom: 1px solid #e6eaf0;
}

.librarian-list-item:last-child {
  border-bottom: none;
}

.librarian-list-item strong {
  display: block;
  color: var(--blue);
  margin-bottom: 5px;
}

.librarian-list-item span {
  font-size: 14px;
  color: #4d5b75;
}

.librarian-action-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid #e6eaf0;
}

.librarian-action-item:last-child {
  border-bottom: none;
}

.librarian-action-item span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #dbe3ef;
  color: var(--blue);
  font-weight: 700;
}

.librarian-action-item.urgent span {
  background: #f36b12;
  color: white;
}

.librarian-action-item strong {
  color: var(--blue);
}

.librarian-action-item p {
  margin: 5px 0 0;
  font-size: 14px;
  color: #4d5b75;
}

@media (max-width: 1100px) {
  .librarian-layout,
  .librarian-status-grid,
  .librarian-dashboard-grid {
    grid-template-columns: 1fr;
    padding: 0 20px;
  }

  .librarian-page-hero {
    padding: 48px 24px;
  }

  .librarian-page-hero h1 {
    font-size: 38px;
  }
}

/* ==============================
   Admin Portal Page
============================== */

.admin-page-hero {
  min-height: 300px;
  background:
    linear-gradient(90deg, rgba(243,107,18,0.92), rgba(6,31,85,0.62)),
    url("../images/admin-hero.jpg");
  background-size: cover;
  background-position: center;
  color: white;
  display: flex;
  align-items: center;
  padding: 60px 10.5%;
}

.admin-page-hero h1 {
  font-size: 48px;
  margin: 0 0 14px;
}

.admin-page-hero p {
  max-width: 760px;
  font-size: 17px;
  line-height: 1.6;
}

.admin-layout {
  max-width: 1220px;
  margin: 28px auto;
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 24px;
}

.admin-sidebar,
.admin-welcome,
.admin-status-card,
.admin-panel {
  background: white;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.admin-sidebar {
  padding: 22px;
  height: fit-content;
}

.admin-sidebar h3,
.admin-welcome h2,
.admin-panel h3 {
  margin-top: 0;
  color: var(--blue);
}

.admin-sidebar a {
  display: block;
  padding: 13px 14px;
  margin: 8px 0;
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
  border-radius: 7px;
}

.admin-sidebar a.active,
.admin-sidebar a:hover {
  background: #f36b12;
  color: white;
}

.admin-welcome {
  padding: 26px;
  margin-bottom: 22px;
}

.admin-status-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.admin-status-card {
  padding: 22px;
  border-top: 5px solid #f36b12;
}

.admin-status-card h3 {
  margin: 0 0 12px;
  font-size: 15px;
  color: var(--blue);
}

.admin-status-card p {
  margin: 0;
  font-size: 21px;
  font-weight: 700;
}

.admin-dashboard-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.admin-panel {
  padding: 24px;
}

.admin-list-item {
  padding: 14px 0;
  border-bottom: 1px solid #e6eaf0;
}

.admin-list-item:last-child {
  border-bottom: none;
}

.admin-list-item strong {
  display: block;
  color: var(--blue);
  margin-bottom: 5px;
}

.admin-list-item span {
  font-size: 14px;
  color: #4d5b75;
}

.admin-action-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid #e6eaf0;
}

.admin-action-item:last-child {
  border-bottom: none;
}

.admin-action-item span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #dbe3ef;
  color: var(--blue);
  font-weight: 700;
}

.admin-action-item.urgent span {
  background: #f36b12;
  color: white;
}

.admin-action-item strong {
  color: var(--blue);
}

.admin-action-item p {
  margin: 5px 0 0;
  font-size: 14px;
  color: #4d5b75;
}

@media (max-width: 1100px) {
  .admin-layout,
  .admin-status-grid,
  .admin-dashboard-grid {
    grid-template-columns: 1fr;
    padding: 0 20px;
  }

  .admin-page-hero {
    padding: 48px 24px;
  }

  .admin-page-hero h1 {
    font-size: 38px;
  }
}

/* =========================================
   Professional Services Portal
========================================= */

.professional-page-hero {
  min-height: 310px;
  padding: 60px 10.5%;
  display: flex;
  align-items: center;
  color: white;
  background:
    linear-gradient(
      90deg,
      rgba(0, 31, 77, 0.96),
      rgba(6, 49, 106, 0.74)
    ),
    url("../images/professional-services-hero.jpg");
  background-size: cover;
  background-position: center;
}

.professional-hero-content {
  max-width: 760px;
}

.portal-label,
.section-kicker {
  display: inline-block;
  margin-bottom: 12px;
  color: #e7b339;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}

.professional-page-hero h1 {
  margin: 0 0 14px;
  font-size: 46px;
  line-height: 1.1;
}

.professional-page-hero p {
  max-width: 720px;
  margin: 0;
  font-size: 17px;
  line-height: 1.65;
}

.signed-in-user {
  display: inline-block;
  margin-top: 20px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  font-size: 13px;
}

.professional-layout {
  max-width: 1320px;
  margin: 30px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 275px minmax(0, 1fr);
  gap: 24px;
}

.professional-sidebar {
  height: fit-content;
  padding: 22px;
  border-radius: 10px;
  background: white;
  box-shadow: 0 8px 26px rgba(0,0,0,0.08);
}

.professional-sidebar h3 {
  margin: 0 0 18px;
  color: var(--blue);
}

.professional-sidebar a {
  display: block;
  margin: 6px 0;
  padding: 13px 14px;
  border-radius: 7px;
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
}

.professional-sidebar a:hover,
.professional-sidebar a.active {
  color: white;
  background: var(--blue);
}

.professional-main {
  min-width: 0;
}

.professional-welcome {
  margin-bottom: 20px;
  padding: 26px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  border-radius: 10px;
  background: white;
  box-shadow: 0 8px 26px rgba(0,0,0,0.08);
}

.professional-welcome h2 {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 27px;
}

.professional-welcome p {
  margin: 0;
  line-height: 1.6;
}

.dashboard-date {
  flex-shrink: 0;
  padding: 11px 15px;
  border-radius: 7px;
  background: #edf2f8;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
}

.professional-status-grid {
  margin-bottom: 22px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.professional-status-card {
  min-height: 135px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-top: 5px solid var(--gold);
  border-radius: 10px;
  background: white;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.professional-status-card.status-blue {
  border-color: #1769e0;
}

.professional-status-card.status-green {
  border-color: #00845a;
}

.professional-status-card.status-gold {
  border-color: var(--gold);
}

.professional-status-card.status-purple {
  border-color: #752bd1;
}

.status-card-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #edf2fa;
  font-size: 22px;
}

.professional-status-card span,
.professional-status-card small {
  display: block;
}

.professional-status-card span {
  margin-bottom: 7px;
  color: #4b5d79;
  font-size: 13px;
  font-weight: 700;
}

.professional-status-card strong {
  display: block;
  margin-bottom: 5px;
  color: var(--blue);
  font-size: 26px;
}

.professional-status-card small {
  color: #69758a;
}

.professional-dashboard-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 22px;
}

.professional-panel {
  padding: 24px;
  border-radius: 10px;
  background: white;
  box-shadow: 0 8px 26px rgba(0,0,0,0.08);
}

.professional-panel-head {
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.professional-panel-head h3 {
  margin: 0;
  color: var(--blue);
}

.professional-panel-head a {
  color: var(--blue);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.professional-action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.professional-action-grid a {
  min-height: 125px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  border: 1px solid #e3e8f0;
  border-radius: 8px;
  color: var(--blue);
  text-decoration: none;
  transition: 0.2s ease;
}

.professional-action-grid a:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  box-shadow: 0 8px 18px rgba(0,0,0,0.07);
}

.professional-action-grid span {
  margin-bottom: 13px;
  font-size: 24px;
}

.professional-action-grid strong {
  margin-bottom: 7px;
}

.professional-action-grid small {
  color: #657188;
  line-height: 1.45;
}

.professional-task-list a {
  padding: 15px 0;
  display: grid;
  grid-template-columns: 10px 1fr 36px;
  align-items: center;
  gap: 13px;
  border-bottom: 1px solid #e6eaf0;
  color: var(--blue);
  text-decoration: none;
}

.professional-task-list a:last-child {
  border-bottom: none;
}

.professional-task-list strong,
.professional-task-list small {
  display: block;
}

.professional-task-list small {
  margin-top: 5px;
  color: #68758c;
  line-height: 1.4;
}

.task-priority {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.priority-high {
  background: #d9363e;
}

.priority-medium {
  background: #d09000;
}

.priority-low {
  background: #078353;
}

.task-count {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #edf2f8;
  font-size: 12px;
  font-weight: 800;
}

.professional-update {
  padding: 14px 0;
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 13px;
  border-bottom: 1px solid #e6eaf0;
}

.professional-update:last-child {
  border-bottom: none;
}

.update-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #edf2f8;
}

.professional-update strong,
.professional-update small {
  display: block;
}

.professional-update p {
  margin: 5px 0;
  color: #667289;
  font-size: 13px;
  line-height: 1.45;
}

.professional-update small {
  color: #8892a5;
}

.service-links-panel > a {
  padding: 13px 0;
  display: grid;
  grid-template-columns: 42px 1fr 18px;
  align-items: center;
  gap: 13px;
  border-bottom: 1px solid #e6eaf0;
  color: var(--blue);
  text-decoration: none;
}

.service-links-panel > a:last-child {
  border-bottom: none;
}

.service-links-panel > a > span {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: var(--blue);
  color: white;
  font-weight: 800;
}

.service-links-panel strong,
.service-links-panel small {
  display: block;
}

.service-links-panel small {
  margin-top: 4px;
  color: #69758a;
}

.service-links-panel b {
  font-size: 22px;
}

@media (max-width: 1100px) {
  .professional-layout {
    grid-template-columns: 1fr;
  }

  .professional-status-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .professional-dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 650px) {
  .professional-page-hero {
    min-height: 280px;
    padding: 44px 24px;
  }

  .professional-page-hero h1 {
    font-size: 36px;
  }

  .professional-status-grid,
  .professional-action-grid {
    grid-template-columns: 1fr;
  }

  .professional-welcome {
    flex-direction: column;
  }
}