/* =========================================================
   CORNWALL COLLEGE STUDENT PORTAL
========================================================= */

:root {
  --cc-red: #e30613;
  --cc-red-dark: #ba0010;
  --cc-yellow: #ffd400;
  --cc-charcoal: #171b22;
  --cc-white: #ffffff;
  --cc-background: #f3f6fa;
  --cc-text: #161b25;
  --cc-muted: #687386;
  --cc-border: #dfe4eb;
  --cc-green: #159b63;

  --page-width: 1600px;

  --shadow-small:
    0 8px 24px rgba(25, 32, 45, 0.08);

  --shadow-medium:
    0 20px 55px rgba(25, 32, 45, 0.15);
}


/* =========================================================
   RESET
========================================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--cc-text);
  background:
    radial-gradient(
      circle at 90% 10%,
      rgba(255, 212, 0, 0.1),
      transparent 25%
    ),
    linear-gradient(
      180deg,
      #f8fafc,
      var(--cc-background)
    );
  font-family:
    Inter,
    Arial,
    Helvetica,
    sans-serif;
}

body.modalOpen,
body.menuOpen {
  overflow: hidden;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}


/* =========================================================
   LOADER
========================================================= */

.pageLoader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 17px;
  color: var(--cc-charcoal);
  background: var(--cc-white);
  transition:
    visibility 0.35s ease,
    opacity 0.35s ease;
}

.pageLoader img {
  width: 90px;
  animation: crestPulse 1.2s ease-in-out infinite;
}

.pageLoader span {
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.pageLoader.isHidden {
  visibility: hidden;
  opacity: 0;
}

@keyframes crestPulse {
  50% {
    transform: scale(1.08);
  }
}


/* =========================================================
   HEADER
========================================================= */

.portalHeader {
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding: 11px clamp(20px, 4vw, 64px);
  border-bottom: 1px solid var(--cc-border);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 5px 18px rgba(17, 24, 39, 0.05);
  backdrop-filter: blur(18px);
}

.portalBrand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 16px;
}

.portalCrest {
  width: 60px;
  height: 66px;
  object-fit: contain;
}

.brandText {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brandText strong {
  color: #111318;
  font-size: clamp(1.2rem, 2.2vw, 2rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.brandText span {
  padding-left: 18px;
  border-left: 3px solid var(--cc-yellow);
  color: #3d4b64;
  font-size: clamp(0.9rem, 1.5vw, 1.4rem);
  font-weight: 800;
  text-transform: uppercase;
}

.headerActions {
  display: flex;
  align-items: center;
  gap: 11px;
}

.mainWebsiteButton,
.portalSignInButton {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  border-radius: 13px;
  font-size: 0.86rem;
  font-weight: 900;
  transition: 0.2s ease;
}

.mainWebsiteButton {
  border: 1px solid var(--cc-border);
  color: var(--cc-charcoal);
  background: var(--cc-white);
}

.mainWebsiteButton:hover {
  color: var(--cc-red);
  border-color: rgba(227, 6, 19, 0.35);
}

.portalSignInButton {
  border: 0;
  color: var(--cc-white);
  background: var(--cc-red);
  box-shadow:
    0 9px 20px rgba(227, 6, 19, 0.2);
}

.portalSignInButton:hover {
  background: var(--cc-red-dark);
  transform: translateY(-2px);
}

.portalSignInButton.isSignedIn {
  background: var(--cc-green);
  box-shadow:
    0 9px 20px rgba(21, 155, 99, 0.2);
}

.mobileMenuButton {
  display: none;
  width: 47px;
  height: 47px;
  border: 0;
  border-radius: 13px;
  color: var(--cc-white);
  background: var(--cc-charcoal);
}


/* =========================================================
   MOBILE NAVIGATION
========================================================= */

.mobileNavigation {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 3000;
  width: min(340px, 88vw);
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 22px;
  color: var(--cc-white);
  background: var(--cc-charcoal);
  box-shadow:
    -20px 0 60px rgba(0, 0, 0, 0.26);
  transform: translateX(110%);
  transition: transform 0.28s ease;
}

.mobileNavigation.isOpen {
  transform: translateX(0);
}

.mobileNavigationHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 25px;
  padding-bottom: 18px;
  border-bottom:
    1px solid rgba(255, 255, 255, 0.12);
}

.mobileNavigationHeader strong {
  font-size: 1.12rem;
}

.mobileNavigationHeader button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  color: var(--cc-white);
  background: rgba(255, 255, 255, 0.1);
}

.mobileNavigation > a,
.mobileNavigation > button {
  padding: 15px 13px;
  border: 0;
  border-bottom:
    1px solid rgba(255, 255, 255, 0.08);
  color: var(--cc-white);
  background: transparent;
  font-weight: 700;
  text-align: left;
}

.mobileNavigation > a:hover,
.mobileNavigation > button:hover {
  color: var(--cc-yellow);
}

.mobileNavigation > button {
  margin-top: auto;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  text-align: center;
}

.mobileMenuOverlay {
  position: fixed;
  inset: 0;
  z-index: 2990;
  visibility: hidden;
  background: rgba(8, 12, 18, 0.62);
  opacity: 0;
  transition: 0.25s ease;
}

.mobileMenuOverlay.isOpen {
  visibility: visible;
  opacity: 1;
}


/* =========================================================
   MAIN CONTENT
========================================================= */

.portalMain {
  width: min(
    var(--page-width),
    calc(100% - 40px)
  );
  margin: 0 auto;
  padding: 48px 0 60px;
}


/* =========================================================
   WELCOME
========================================================= */

.welcomeSection {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 28px;
}

.welcomeEyebrow,
.sectionEyebrow,
.modalEyebrow {
  display: block;
  margin-bottom: 8px;
  color: var(--cc-red);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.welcomeSection h1 {
  max-width: 900px;
  margin: 0;
  color: #11151c;
  font-size: clamp(2.3rem, 5vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.welcomeSection p {
  margin: 13px 0 0;
  color: var(--cc-muted);
  font-size: clamp(1rem, 2vw, 1.3rem);
}

.welcomeDate {
  min-width: 250px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px 18px;
  border: 1px solid var(--cc-border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-small);
}

.welcomeDate > i {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--cc-white);
  background: var(--cc-red);
}

.welcomeDate div {
  display: flex;
  flex-direction: column;
}

.welcomeDate small {
  color: var(--cc-muted);
}

.welcomeDate strong {
  margin-top: 3px;
  font-size: 0.9rem;
}


/* =========================================================
   SEARCH
========================================================= */

.searchSection {
  margin-bottom: 38px;
}

.applicationSearch {
  width: min(760px, 100%);
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 18px;
  border: 1px solid #ced6e1;
  border-radius: 16px;
  background: var(--cc-white);
  box-shadow: var(--shadow-small);
  transition: 0.2s ease;
}

.applicationSearch:focus-within {
  border-color: var(--cc-red);
  box-shadow:
    0 0 0 4px rgba(227, 6, 19, 0.09),
    var(--shadow-small);
}

.applicationSearch > i {
  color: #8993a3;
}

.applicationSearch input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--cc-text);
  background: transparent;
  font-size: 1rem;
}

.applicationSearch input::placeholder {
  color: #9ca5b4;
}

.applicationSearch button {
  display: none;
  width: 35px;
  height: 35px;
  flex: 0 0 35px;
  border: 0;
  border-radius: 50%;
  color: var(--cc-muted);
  background: #eef1f5;
}

.applicationSearch button.isVisible {
  display: grid;
  place-items: center;
}

.signInNotice {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 13px 0 0;
  color: var(--cc-muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.signInNotice i {
  color: var(--cc-red);
}

.signInNotice.isUnlocked {
  color: var(--cc-green);
}

.signInNotice.isUnlocked i {
  color: var(--cc-green);
}


/* =========================================================
   SECTION HEADINGS
========================================================= */

.recentSection,
.applicationsSection {
  margin-bottom: 44px;
}

.sectionHeading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.sectionHeading h2 {
  margin: 0;
  font-size: clamp(1.4rem, 2vw, 2rem);
  letter-spacing: -0.035em;
}

.textButton {
  padding: 8px;
  border: 0;
  color: var(--cc-red);
  background: transparent;
  font-weight: 900;
}

.applicationTotal {
  color: var(--cc-muted);
  font-size: 0.85rem;
  font-weight: 700;
}


/* =========================================================
   RECENTLY USED
========================================================= */

.recentApplications {
  display: grid;
  grid-template-columns:
    repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.recentCard {
  min-height: 104px;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 16px;
  border: 1px solid var(--cc-border);
  border-radius: 17px;
  background: var(--cc-white);
  box-shadow: var(--shadow-small);
  text-align: left;
  transition: 0.2s ease;
}

.recentCard:hover {
  border-color: rgba(227, 6, 19, 0.3);
  box-shadow: var(--shadow-medium);
  transform: translateY(-3px);
}

.recentCardIcon {
  width: 65px;
  height: 65px;
  flex: 0 0 65px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: var(--cc-white);
  font-size: 1.65rem;
}

.recentCardText {
  min-width: 0;
}

.recentCardText strong {
  display: block;
  margin-bottom: 5px;
  font-size: 1rem;
}

.recentCardText span {
  color: var(--cc-muted);
  font-size: 0.8rem;
}


/* =========================================================
   APPLICATION GRID
========================================================= */

.applicationGrid {
  display: grid;
  grid-template-columns:
    repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.applicationCard {
  position: relative;
  min-height: 215px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 21px;
  border: 1px solid var(--cc-border);
  border-radius: 19px;
  background: var(--cc-white);
  box-shadow: var(--shadow-small);
  transition: 0.22s ease;
}

.applicationCard::after {
  position: absolute;
  right: -35px;
  bottom: -42px;
  width: 125px;
  height: 125px;
  border-radius: 50%;
  background: var(--card-soft-color);
  content: "";
  pointer-events: none;
}

.applicationCard:hover {
  border-color: rgba(227, 6, 19, 0.3);
  box-shadow: var(--shadow-medium);
  transform: translateY(-5px);
}

.applicationCardTop {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 13px;
}

.applicationIcon {
  width: 66px;
  height: 66px;
  flex: 0 0 66px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  color: var(--cc-white);
  background: var(--card-color);
  box-shadow:
    0 10px 20px var(--card-shadow-color);
  font-size: 1.75rem;
}

.applicationStatus {
  padding: 6px 9px;
  border-radius: 20px;
  color: var(--cc-green);
  background: rgba(21, 155, 99, 0.1);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.applicationStatus.comingSoon {
  color: #956600;
  background: rgba(255, 212, 0, 0.2);
}

.applicationCard h3 {
  position: relative;
  z-index: 2;
  margin: 18px 0 7px;
  font-size: 1.12rem;
  letter-spacing: -0.025em;
}

.applicationCard p {
  position: relative;
  z-index: 2;
  margin: 0 0 18px;
  color: var(--cc-muted);
  font-size: 0.87rem;
  line-height: 1.5;
}

.launchApplication {
  position: relative;
  z-index: 2;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  padding: 0;
  border: 0;
  color: var(--cc-red);
  background: transparent;
  font-weight: 900;
}

.launchApplication i {
  transition: transform 0.2s ease;
}

.launchApplication:hover i {
  transform: translateX(5px);
}


/* =========================================================
   LOCKED APPLICATIONS
========================================================= */

.applicationCard.isLocked {
  border-color: #dde1e6;
  background: #eef0f3;
  box-shadow: none;
}

.applicationCard.isLocked::after {
  background: rgba(80, 85, 94, 0.05);
}

.applicationCard.isLocked .applicationIcon,
.applicationCard.isLocked h3,
.applicationCard.isLocked p,
.applicationCard.isLocked .applicationStatus {
  filter: grayscale(1);
  opacity: 0.48;
}

.applicationCard.isLocked .launchApplication {
  color: #707783;
}

.applicationCard.isLocked .launchApplication::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  content: "\f023";
}

.applicationCard.isLocked:hover {
  border-color: #c9ced6;
  box-shadow: var(--shadow-small);
  transform: translateY(-3px);
}

.recentCard.isLocked {
  background: #eef0f3;
  box-shadow: none;
}

.recentCard.isLocked .recentCardIcon,
.recentCard.isLocked .recentCardText {
  filter: grayscale(1);
  opacity: 0.5;
}


/* =========================================================
   NO RESULTS
========================================================= */

.noResults {
  display: none;
  padding: 65px 20px;
  border: 1px dashed #cbd2dc;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  text-align: center;
}

.noResults.isVisible {
  display: block;
}

.noResults > i {
  margin-bottom: 14px;
  color: var(--cc-red);
  font-size: 2.3rem;
}

.noResults h3 {
  margin: 0 0 7px;
}

.noResults p {
  margin: 0 0 20px;
  color: var(--cc-muted);
}

.noResults button {
  padding: 12px 18px;
  border: 0;
  border-radius: 11px;
  color: var(--cc-white);
  background: var(--cc-red);
  font-weight: 900;
}


/* =========================================================
   ANNOUNCEMENT
========================================================= */

.announcementBanner {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  overflow: hidden;
  padding: 26px;
  border-radius: 22px;
  color: var(--cc-white);
  background:
    linear-gradient(
      125deg,
      var(--cc-red),
      #be0010
    );
  box-shadow:
    0 20px 50px rgba(227, 6, 19, 0.2);
}

.announcementBanner::after {
  position: absolute;
  right: 100px;
  bottom: -105px;
  width: 260px;
  height: 260px;
  border: 50px solid rgba(255, 212, 0, 0.14);
  border-radius: 50%;
  content: "";
}

.announcementIcon {
  width: 67px;
  height: 67px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: var(--cc-charcoal);
  background: var(--cc-yellow);
  font-size: 1.7rem;
}

.announcementContent {
  position: relative;
  z-index: 2;
}

.announcementContent span {
  color: var(--cc-yellow);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.announcementContent h2 {
  margin: 6px 0;
  font-size: clamp(1.2rem, 2vw, 1.65rem);
}

.announcementContent p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.9rem;
  line-height: 1.5;
}

.announcementBanner > a {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 16px;
  border-radius: 11px;
  color: var(--cc-charcoal);
  background: var(--cc-yellow);
  font-size: 0.84rem;
  font-weight: 900;
}


/* =========================================================
   FOOTER
========================================================= */

.portalFooter {
  min-height: 105px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding: 25px clamp(20px, 4vw, 64px);
  color: rgba(255, 255, 255, 0.75);
  background: var(--cc-charcoal);
  font-size: 0.82rem;
}

.footerBrand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footerBrand img {
  width: 42px;
}

.portalFooter p {
  margin: 0;
}

.footerLinks {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footerLinks a:hover {
  color: var(--cc-yellow);
}


/* =========================================================
   MODALS
========================================================= */

.portalModal {
  position: fixed;
  inset: 0;
  z-index: 5000;
  visibility: hidden;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  transition: 0.22s ease;
}

.portalModal.isOpen {
  visibility: visible;
  opacity: 1;
}

.modalBackdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 15, 22, 0.72);
  backdrop-filter: blur(8px);
}

.signInModalCard,
.softwareModalCard {
  position: relative;
  z-index: 2;
  width: min(490px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 34px;
  border-top: 7px solid var(--cc-yellow);
  border-radius: 22px;
  background: var(--cc-white);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.34);
  transform: translateY(22px) scale(0.97);
  transition: transform 0.25s ease;
}

.portalModal.isOpen .signInModalCard,
.portalModal.isOpen .softwareModalCard {
  transform: translateY(0) scale(1);
}

.modalCloseButton {
  position: absolute;
  top: 17px;
  right: 17px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  color: var(--cc-charcoal);
  background: #eef1f5;
}

.signInCrest {
  width: 70px;
  margin-bottom: 18px;
}

.signInModalCard h2,
.softwareModalCard h2 {
  margin: 8px 0 10px;
  font-size: 2rem;
  letter-spacing: -0.04em;
}

.signInModalCard > p,
.softwareModalCard > p {
  margin: 0 0 22px;
  color: var(--cc-muted);
  line-height: 1.6;
}

.demoSecurityWarning {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 20px;
  padding: 12px;
  border: 1px solid rgba(227, 6, 19, 0.2);
  border-radius: 11px;
  color: #8d0a13;
  background: rgba(227, 6, 19, 0.06);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.45;
}


/* =========================================================
   SIGN-IN FORM
========================================================= */

#portalSignInForm label {
  display: block;
  margin: 15px 0 7px;
  font-size: 0.82rem;
  font-weight: 900;
}

.signInField {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 14px;
  border: 1px solid var(--cc-border);
  border-radius: 12px;
  background: #f8fafc;
}

.signInField:focus-within {
  border-color: var(--cc-red);
  box-shadow:
    0 0 0 4px rgba(227, 6, 19, 0.08);
}

.signInField > i {
  color: #87909d;
}

.signInField input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--cc-text);
  background: transparent;
}

.showPasswordButton {
  border: 0;
  color: var(--cc-muted);
  background: transparent;
}

.signInSubmitButton {
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 22px;
  border: 0;
  border-radius: 12px;
  color: var(--cc-white);
  background: var(--cc-red);
  font-weight: 900;
}

.signInSubmitButton:hover {
  background: var(--cc-red-dark);
}

.futureSsoNotice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0;
  padding: 13px;
  border-radius: 12px;
  color: #6f5500;
  background: rgba(255, 212, 0, 0.15);
  font-size: 0.78rem;
  line-height: 1.5;
}

.futureSsoNotice i {
  margin-top: 2px;
}

.signInHelpLink {
  display: block;
  color: var(--cc-red);
  font-size: 0.82rem;
  font-weight: 900;
  text-align: center;
}


/* =========================================================
   SOFTWARE MODAL
========================================================= */

.modalSoftwareIcon {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 20px;
  color: var(--cc-white);
  background: var(--cc-red);
  font-size: 2rem;
}

.modalNotice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 23px;
  padding: 15px;
  border: 1px solid rgba(255, 212, 0, 0.5);
  border-radius: 13px;
  background: rgba(255, 212, 0, 0.13);
}

.modalNotice i {
  margin-top: 2px;
  color: #9a7000;
}

.modalNotice p {
  margin: 0;
  color: #6f5500;
  font-size: 0.85rem;
  line-height: 1.5;
}

.modalActions {
  display: flex;
  justify-content: flex-end;
  gap: 11px;
  margin-top: 25px;
}

.secondaryButton,
.primaryButton {
  min-height: 47px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 17px;
  border-radius: 11px;
  font-weight: 900;
}

.secondaryButton {
  border: 1px solid var(--cc-border);
  color: var(--cc-text);
  background: var(--cc-white);
}

.primaryButton {
  border: 0;
  color: var(--cc-white);
  background: var(--cc-red);
}

.primaryButton.isDisabled {
  pointer-events: none;
  color: #8b939e;
  background: #e3e7ec;
}


/* =========================================================
   TOAST
========================================================= */

.portalToast {
  position: fixed;
  right: 25px;
  bottom: 25px;
  z-index: 6000;
  visibility: hidden;
  display: flex;
  align-items: center;
  gap: 11px;
  max-width: 360px;
  padding: 15px 18px;
  border-radius: 13px;
  color: var(--cc-white);
  background: var(--cc-charcoal);
  box-shadow: var(--shadow-medium);
  opacity: 0;
  transform: translateY(20px);
  transition: 0.25s ease;
}

.portalToast.isVisible {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.portalToast i {
  color: var(--cc-yellow);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1150px) {
  .applicationGrid {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));
  }
}


@media (max-width: 900px) {
  .portalHeader {
    min-height: 76px;
    padding: 9px 20px;
  }

  .portalCrest {
    width: 50px;
    height: 56px;
  }

  .brandText {
    display: block;
  }

  .brandText strong,
  .brandText span {
    display: block;
  }

  .brandText strong {
    font-size: 1.2rem;
  }

  .brandText span {
    margin-top: 3px;
    padding: 0;
    border: 0;
    color: var(--cc-red);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
  }

  .mainWebsiteButton {
    display: none;
  }

  .mobileMenuButton {
    display: grid;
    place-items: center;
  }

  .welcomeSection {
    align-items: flex-start;
  }

  .welcomeDate {
    min-width: auto;
  }

  .recentApplications {
    grid-template-columns: 1fr;
  }

  .applicationGrid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .announcementBanner {
    grid-template-columns: auto 1fr;
  }

  .announcementBanner > a {
    grid-column: 1 / -1;
    width: fit-content;
  }

  .portalFooter {
    flex-wrap: wrap;
  }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 620px) {
  .portalHeader {
    gap: 10px;
    padding: 8px 14px;
  }

  .portalBrand {
    gap: 10px;
  }

  .portalCrest {
    width: 44px;
    height: 50px;
  }

  .brandText {
    min-width: 0;
  }

  .brandText strong {
    overflow: hidden;
    font-size: 0.93rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .brandText span {
    font-size: 0.6rem;
  }

  .portalSignInButton {
    min-height: 43px;
    padding: 0 13px;
  }

  .portalSignInButton span {
    display: none;
  }

  .mobileMenuButton {
    width: 43px;
    height: 43px;
  }

  .portalMain {
    width: calc(100% - 28px);
    padding: 30px 0 45px;
  }

  .welcomeSection {
    display: block;
  }

  .welcomeSection h1 {
    font-size: 2.45rem;
  }

  .welcomeDate {
    width: 100%;
    margin-top: 22px;
  }

  .applicationSearch {
    min-height: 54px;
  }

  .sectionHeading {
    align-items: center;
  }

  .applicationGrid {
    grid-template-columns: 1fr;
  }

  .applicationCard {
    min-height: 195px;
  }

  .announcementBanner {
    display: block;
    padding: 23px;
  }

  .announcementContent {
    margin: 17px 0;
  }

  .announcementBanner > a {
    width: 100%;
    justify-content: center;
  }

  .portalFooter {
    flex-direction: column;
    align-items: flex-start;
  }

  .footerLinks {
    flex-wrap: wrap;
  }

  .signInModalCard,
  .softwareModalCard {
    padding: 28px 21px 22px;
  }

  .modalActions {
    flex-direction: column-reverse;
  }

  .secondaryButton,
  .primaryButton {
    width: 100%;
  }

  .portalToast {
    right: 14px;
    bottom: 14px;
    left: 14px;
    max-width: none;
  }
}


/* =========================================================
   ACCESSIBILITY
========================================================= */

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(227, 6, 19, 0.35);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
/* =========================================================
   EXTRA-SMALL PHONES — 380PX AND BELOW
========================================================= */

@media (max-width: 380px) {
  .portalHeader {
    min-height: 68px;
    gap: 7px;
    padding: 7px 10px;
  }

  .portalBrand {
    flex: 1;
    gap: 7px;
    overflow: hidden;
  }

  .portalCrest {
    width: 38px;
    height: 44px;
    flex: 0 0 38px;
  }

  .brandText {
    min-width: 0;
  }

  .brandText strong {
    font-size: 0.78rem;
    letter-spacing: -0.02em;
  }

  .brandText span {
    margin-top: 2px;
    font-size: 0.52rem;
  }

  .headerActions {
    flex: 0 0 auto;
    gap: 6px;
  }

  .portalSignInButton,
  .mobileMenuButton {
    width: 38px;
    height: 38px;
    min-height: 38px;
    padding: 0;
    border-radius: 10px;
  }

  .portalMain {
    width: calc(100% - 20px);
    padding-top: 24px;
  }

  .welcomeSection h1 {
    font-size: 2rem;
    line-height: 1.03;
  }

  .welcomeSection p {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .applicationCard {
    min-height: 185px;
    padding: 18px;
  }

  .applicationIcon {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
    font-size: 1.5rem;
  }

  .signInModalCard,
  .softwareModalCard {
    padding: 25px 17px 19px;
  }

  .signInModalCard h2,
  .softwareModalCard h2 {
    padding-right: 38px;
    font-size: 1.65rem;
  }

  .portalFooter {
    padding-right: 18px;
    padding-left: 18px;
  }
}
/* =========================================
   STUDENT HANDBOOK MODAL
========================================= */

.handbookModal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.handbookModal.active {
  display: flex;
}

.handbookBackdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .72);
  backdrop-filter: blur(5px);
}

.handbookModalCard {
  position: relative;
  z-index: 2;
  width: min(1100px, 96vw);
  height: min(850px, 92vh);
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
  display: flex;
  flex-direction: column;
}

.handbookHeader {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 20px;
  background: #8b1018;
  color: #fff;
  border-bottom: 5px solid #ffd400;
}

.handbookHeader span {
  display: block;
  margin-bottom: 3px;
  color: #ffd400;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.handbookHeader h2 {
  margin: 0;
  font-size: 20px;
}

.handbookClose {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 0;
  border-radius: 50%;
  background: #ffd400;
  color: #8b1018;
  font-size: 20px;
  cursor: pointer;
}

.handbookViewer {
  flex: 1;
  min-height: 0;
  background: #eee;
}

.handbookViewer iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 700px) {

  .handbookModal {
    padding: 8px;
  }

  .handbookModalCard {
    width: 100%;
    height: 94vh;
    border-radius: 14px;
  }

  .handbookHeader {
    padding: 12px 14px;
  }

  .handbookHeader h2 {
    font-size: 16px;
  }

  .handbookClose {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }
}
/* HANDBOOK HEADER BUTTONS */

.handbookHeaderButtons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.handbookFullscreen {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #ffffff;
  color: #8b1018;
  font-size: 17px;
  cursor: pointer;
}

.handbookFullscreen:hover {
  background: #ffd400;
}

/* FULLSCREEN MODE */

.handbookModal.isFullscreen {
  padding: 0 !important;
}

.handbookModal.isFullscreen .handbookModalCard {
  width: 100vw !important;
  height: 100vh !important;
  max-width: none !important;
  max-height: none !important;
  border-radius: 0 !important;
}