
:root {
  --blue: #155eef;
  --electric: #2678ff;
  --navy: #102a56;
  --ink: #183153;
  --muted: #64748b;
  --pale: #eef5ff;
  --line: #dce7f5;
  --white: #fff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* HEADER AND BRAND */

.site-header {
  height: auto;
  min-height: 78px;
  padding: 18px clamp(20px, 6vw, 88px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.brand {
  display: inline-flex;
  align-items: center;
  font-weight: 900;
  letter-spacing: .09em;
  color: var(--navy);
  text-decoration: none;
  font-size: 18px;
  line-height: 1.2;
}

.brand img,
.brand-logo {
  display: block;
  width: 190px;
  max-width: 100%;
  max-height: 55px;
  object-fit: contain;
  object-position: left center;
}

.brand span {
  display: block;
  font-size: 10px;
  letter-spacing: .22em;
  color: var(--blue);
  margin-top: 5px;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.site-header nav a {
  font-size: 13px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 650;
}

.site-header nav .nav-button {
  padding: 10px 17px;
  border-radius: 8px;
  background: var(--blue);
  color: white;
}

/* HERO SECTION */

.hero {
  padding: 78px clamp(20px, 9vw, 130px);
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 55px;
  align-items: center;
  background: linear-gradient(115deg, #fff 50%, #f1f6ff 100%);
  min-height: 510px;
}

.eyebrow {
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .2em;
  color: var(--blue);
}

h1 {
  font-size: clamp(42px, 6vw, 70px);
  line-height: 1.06;
  letter-spacing: -.05em;
  color: var(--navy);
  margin: 15px 0 20px;
}

h1 span {
  color: var(--blue);
}

.hero-copy > p:not(.eyebrow) {
  max-width: 530px;
  color: var(--muted);
  font-size: 17px;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.button {
  display: inline-block;
  text-decoration: none;
  border-radius: 8px;
  padding: 12px 20px;
  font-weight: 750;
  font-size: 14px;
}

.primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 18px #155eef25;
}

.secondary {
  border: 1px solid #b8c9e4;
  color: var(--navy);
  background: #fff;
}

.hero-panel {
  min-height: 330px;
  border-radius: 24px;
  background: linear-gradient(145deg, #123d87, #155eef 65%, #3d8cff);
  color: white;
  padding: 28px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 55px #174c9c30;
}

.panel-chip {
  font-size: 10px;
  letter-spacing: .18em;
  font-weight: 800;
  opacity: .85;
}

.orbit {
  position: absolute;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%);
  width: 190px;
  height: 190px;
  border: 1px solid #ffffff70;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 86px;
  font-weight: 900;
  color: #fff;
}

.orbit:before,
.orbit:after {
  content: "";
  position: absolute;
  border: 1px solid #ffffff45;
  border-radius: 50%;
  inset: 18px;
}

.orbit:after {
  inset: -18px;
}

.orbit span {
  color: #a9d4ff;
}

.panel-bottom {
  position: absolute;
  bottom: 26px;
  left: 28px;
  display: grid;
}

.panel-bottom small {
  opacity: .8;
}

/* GENERAL SECTIONS */

.section {
  width: 100%;
  padding: 78px clamp(20px, 5vw, 75px);
  margin-left: auto;
  margin-right: auto;
}

.section-heading {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 38px;
}

.section-heading h2,
.feature-band h2,
.contact h2 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -.035em;
  color: var(--navy);
  margin: 8px 0;
}

.section-heading > p:last-child,
.contact > p {
  color: var(--muted);
}

/* COURSE CARDS */

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
  align-items: stretch;
}

.course-card {
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 24px;
  background: #fff;
  min-height: 290px;
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 24px #173a6a08;
  transition: transform .2s ease, box-shadow .2s ease;
}

.course-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 30px rgba(16, 42, 86, .12);
  border-color: #9dc3ff;
}

.course-icon,
.course-number {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--pale);
  color: var(--blue);
  font-weight: 900;
  font-size: 12px;
}

.course-number {
  margin-bottom: 12px;
}

.course-logo-area {
  width: 100%;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  margin-bottom: 12px;
}

.course-logo-area > * {
  max-width: 100%;
}

.course-logo-area svg {
  flex-shrink: 0;
  max-width: 65px;
  max-height: 70px;
}

.comptia-mark,
.microsoft-lockup,
.azure-lockup,
.security-lockup,
.cloud-lockup {
  overflow-wrap: anywhere;
}

.course-card h3 {
  font-size: 18px;
  color: var(--navy);
  margin: 17px 0 7px;
  line-height: 1.35;
}

.course-card p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.7;
  flex-grow: 1;
}

.course-link {
  display: inline-block;
  margin-top: 20px;
  color: var(--blue);
  font-weight: 750;
  font-size: 13px;
  text-decoration: none;
}

.course-link:hover {
  text-decoration: underline;
}

/* FEATURE AND CONTACT */

.feature-band {
  margin: 0 clamp(20px, 8vw, 112px);
  padding: 38px 42px;
  border-radius: 18px;
  background: #eef5ff;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 35px;
  align-items: center;
}

.feature-band > p {
  color: #536782;
}

.contact {
  text-align: center;
  padding: 78px 20px;
}

.contact .button {
  margin-top: 12px;
}

/* FOOTER */

footer {
  border-top: 1px solid var(--line);
  padding: 22px clamp(20px, 6vw, 88px);
  display: flex;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 12px;
}

/* STUDENT PAGES AND FORMS */

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 55px 22px;
}

.page h1 {
  font-size: 42px;
}

.muted {
  color: var(--muted);
}

.form-card,
.panel-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 25px;
  box-shadow: 0 8px 25px #173a6a08;
}

.form-wrap {
  max-width: 520px;
  margin: 35px auto;
}

.field {
  display: grid;
  gap: 6px;
  margin: 14px 0;
}

.field label {
  font-size: 13px;
  font-weight: 750;
  color: var(--navy);
}

input,
select,
textarea {
  font: inherit;
  padding: 11px 12px;
  border: 1px solid #cbd8e9;
  border-radius: 8px;
  width: 100%;
  color: var(--ink);
  background: #fff;
}

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

.full {
  width: 100%;
  border: 0;
  cursor: pointer;
}

.notice {
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--pale);
  color: var(--navy);
  font-size: 13px;
  margin: 15px 0;
}

/* STUDY RESOURCES */

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

.resource-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 13px;
  min-width: 0;
}

.resource-card h3 {
  margin: 8px 0;
  color: var(--navy);
  font-size: 17px;
}

.resource-card a {
  color: var(--blue);
  font-weight: 750;
  font-size: 13px;
}

.tag {
  font-size: 10px;
  color: var(--blue);
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .1em;
}

/* ADMIN TABLES */

.table-wrap {
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th,
td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  color: var(--navy);
  background: #f6f9ff;
}

.status {
  font-weight: 800;
  text-transform: capitalize;
}

/* CHATBOT */

.chat-launch {
  position: fixed;
  right: 22px;
  bottom: 22px;
  border: 0;
  border-radius: 50px;
  padding: 14px 19px;
  background: var(--blue);
  color: white;
  font-weight: 800;
  box-shadow: 0 8px 25px #155eef55;
  cursor: pointer;
  z-index: 20;
}

.chat-box {
  position: fixed;
  right: 22px;
  bottom: 82px;
  width: min(360px, calc(100vw - 32px));
  height: 440px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 20px 55px #102a5630;
  display: none;
  flex-direction: column;
  z-index: 20;
  overflow: hidden;
}

.chat-box.open {
  display: flex;
}

.chat-head {
  background: var(--blue);
  color: #fff;
  padding: 15px;
  font-weight: 800;
}

.chat-log {
  padding: 14px;
  overflow: auto;
  flex: 1;
  font-size: 13px;
}

.chat-msg {
  padding: 10px 12px;
  border-radius: 12px;
  background: #eef5ff;
  margin: 8px 0;
  max-width: 90%;
}

.chat-msg.user {
  margin-left: auto;
  background: #155eef;
  color: #fff;
}

.chat-form {
  display: flex;
  gap: 7px;
  padding: 10px;
  border-top: 1px solid var(--line);
}

.chat-form input {
  min-width: 0;
}

.chat-form button {
  background: var(--blue);
  color: white;
  border: 0;
  border-radius: 8px;
  padding: 0 13px;
}

.hidden {
  display: none !important;
}

/* TABLETS */

@media (max-width: 1050px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .hero {
    gap: 30px;
  }

  .feature-band {
    grid-template-columns: 1fr;
  }
}

/* MOBILE PHONES */

@media (max-width: 650px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header nav {
    gap: 13px;
  }

  .cards,
  .resource-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero-panel {
    min-height: 280px;
  }

  .feature-band {
    padding: 26px;
  }

  .page h1 {
    font-size: 34px;
  }

  .section {
    padding: 45px 18px;
  }

  .course-card {
    padding: 22px;
  }
}
