/* =========================================================
   SOPAIC College Hub
   Music Hub-style shell, mobile-first dashboards, high contrast.
   ========================================================= */

:root {
  --lms-bg: #05070d;
  --lms-bg-2: #090e18;
  --lms-panel: rgba(255, 255, 255, 0.065);
  --lms-panel-strong: rgba(255, 255, 255, 0.1);
  --lms-border: rgba(255, 255, 255, 0.13);
  --lms-text: #f8fafc;
  --lms-muted: #c4cedc;
  --lms-cyan: #30C8D6;
  --lms-blue-soft: #5B3A7A;
  --lms-blue-pale: #7DD4DC;
  --lms-blue: #3A034B;
  --lms-blue-deep: #2D0240;
  --lms-gradient: linear-gradient(135deg, #30C8D6 0%, #3A034B 45%, #1C2B54 100%);
  --lms-gradient-cool: linear-gradient(135deg, #30C8D6 0%, #1C2B54 100%);
  --lms-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  --lms-radius: 16px;
  --lms-radius-sm: 10px;
  --lms-max: 1140px;
  --lms-page-pad-x: clamp(1rem, 4vw, 2.5rem);
  --lms-section-pad-y: clamp(3rem, 7vw, 6rem);
}

html {
  overflow-x: hidden;
}

body {
  background: var(--lms-bg);
  color: var(--lms-text);
  overflow-x: hidden;
}

body,
button,
input,
select,
textarea {
  letter-spacing: 0;
}

#app {
  min-height: 68vh;
}

#app > section:not(.lp-hero),
.section,
.lp-section,
.section-hero {
  padding-left: var(--lms-page-pad-x);
  padding-right: var(--lms-page-pad-x);
  max-width: 100%;
}

.lp-hero,
.dashboard-layout,
.fac-studio,
.auth-split {
  padding-left: var(--lms-page-pad-x);
  padding-right: var(--lms-page-pad-x);
  max-width: 100%;
}

.auth-left,
.auth-right,
.auth-form-wrap,
.auth-brand {
  min-width: 0;
  max-width: 100%;
}

.section,
.lp-section {
  padding-top: var(--lms-section-pad-y);
  padding-bottom: var(--lms-section-pad-y);
}

.container,
.container-sm,
.container-md,
.container-lg,
.container-xl,
.container-xxl {
  width: min(100%, var(--lms-max));
  max-width: var(--lms-max);
}

.site-header {
  height: auto;
  padding: 0;
  background: transparent;
  box-shadow: none;
  display: block;
}

.navbar-custom {
  background: rgba(6, 8, 16, 0.88);
  border-bottom: 1px solid rgba(48, 200, 214, 0.06);
  box-shadow: 0 14px 50px rgba(0, 0, 0, 0.40);
  min-height: 82px;
  padding: 0.72rem 0;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
}

.navbar-custom .container,
.navbar-custom .container-fluid {
  min-width: 0;
  max-width: 100%;
  flex-wrap: nowrap;
}

.navbar-brand.sopsd-brand {
  min-width: 0;
  max-width: min(68vw, 620px);
  color: #fff;
  text-decoration: none;
}

.sopsd-brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
  color: #fff;
  text-decoration: none;
}

/* Brand badge — the circular logo sits directly on the navbar,
   no container box, so it blends with any background. */
.nav-brand-badge {
  width: 60px;
  height: 60px;
  flex: 0 0 auto;
  display: block;
  border-radius: 0;
  object-fit: contain;
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.35));
  transition: transform 0.25s ease;
}

.navbar-brand.sopsd-brand:hover .nav-brand-badge,
.navbar-brand.sopsd-brand:focus-visible .nav-brand-badge {
  transform: scale(1.06) rotate(-3deg);
}

.sopsd-brand-text {
  min-width: 0;
  display: grid;
  gap: 0.08rem;
  line-height: 1.05;
}

.sopsd-brand-kicker {
  color: #30C8D6;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
}

.sopsd-brand-title,
.sopsd-brand-subtitle {
  color: #fff;
  font-family: Montserrat, Inter, sans-serif;
  letter-spacing: 0;
}

.sopsd-brand-title {
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0;
}

.sopsd-brand-subtitle {
  color: #2BD8DD;
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0;
}

.nav-brand-lockup .sopsd-brand-title {
  white-space: nowrap;
}

.navbar-toggler {
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  color: #fff !important;
  padding: 0.45rem 0.65rem;
  min-width: 44px;
  min-height: 44px;
  background: rgba(255, 255, 255, 0.08);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.18rem rgba(0, 194, 203, 0.26);
}

.navbar-toggler-icon {
  background-image: none;
  position: relative;
  width: 1.35rem;
  height: 1rem;
  color: #fff !important;
}

.navbar-toggler-icon,
.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
  display: block;
  border-top: 2px solid #fff !important;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
}

.navbar-toggler-icon::before {
  top: 0.42rem;
}

.navbar-toggler-icon::after {
  top: 0.84rem;
}

.navbar-custom .navbar-collapse {
  margin-top: 0.75rem;
}

.navbar-custom .navbar-nav {
  gap: 0.35rem;
}

.navbar-custom .nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  color: rgba(248, 250, 252, 0.86) !important;
  font-weight: 700;
  font-size: 0.94rem;
  padding: 0.75rem 0.8rem;
  border-radius: 999px;
  margin: 0;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link:focus {
  color: #fff !important;
  background: rgba(0, 194, 203, 0.12);
}

.navbar-custom .nav-link::after {
  display: none;
}

.nav-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 38px;
}

.nav-college-pill {
  align-items: center;
  gap: 0.45rem;
  margin-left: 0.6rem;
  padding-left: 0.75rem;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
  color: #d5dee9;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.nav-college-pill i {
  color: var(--lms-cyan);
}

.nav-icon-btn {
  position: relative;
  width: 42px;
  min-width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
}

.notification-count {
  position: absolute;
  top: -0.28rem;
  right: -0.28rem;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.28rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #3A034B 0%, #1C2B54 100%);
  color: #fff;
  border: 2px solid #060810;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
}

.notification-menu {
  width: min(92vw, 390px);
  padding: 0;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(10, 17, 30, 0.98), rgba(5, 8, 15, 0.98)),
    linear-gradient(135deg, rgba(56, 232, 255, 0.11), rgba(37, 99, 235, 0.08));
  color: #f8fafc;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.5);
}

.notification-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.notification-menu-head strong {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.92rem;
  color: #fff;
}

.notification-menu-head strong i {
  color: var(--lms-cyan);
}

.notification-menu-head button {
  border: 0;
  background: transparent;
  color: #9beeff;
  font-size: 0.8rem;
  font-weight: 800;
  white-space: nowrap;
}

.notification-menu-head button:hover,
.notification-menu-head button:focus {
  color: #fff;
}

.notification-list {
  max-height: min(60vh, 430px);
  overflow-y: auto;
}

.notification-row {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  color: inherit;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.9rem 0.95rem;
  text-align: left;
}

.notification-row:hover,
.notification-row:focus {
  background: rgba(56, 189, 248, 0.11);
}

.notification-row:focus {
  outline: 2px solid #9ee7ee;
  outline-offset: -2px;
}

.notification-row.is-unread {
  background: rgba(56, 189, 248, 0.08);
}

.notification-row.is-unread .notification-row-icon {
  background: var(--lms-gradient-cool);
  color: #fff;
}

.notification-row.is-read {
  opacity: 0.78;
}

.notification-row-icon {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  color: var(--lms-cyan);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.notification-row-body {
  min-width: 0;
  display: grid;
  gap: 0.2rem;
}

.notification-row-body strong {
  color: #fff;
  font-size: 0.9rem;
  line-height: 1.25;
}

.notification-row-body span {
  color: #cbd5e1;
  font-size: 0.82rem;
  line-height: 1.45;
}

.notification-row-body small {
  color: #8cefff;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.notification-empty {
  min-height: 132px;
  padding: 1.2rem;
  display: grid;
  place-items: center;
  gap: 0.55rem;
  color: #cbd5e1;
  text-align: center;
  font-weight: 700;
}

.notification-empty i {
  color: var(--lms-cyan);
  font-size: 1.4rem;
}

.btn,
.btn-sm,
.btn-lg,
.btn-primary,
.btn-outline,
.btn-primary-custom,
.btn-outline-custom,
.btn-ghost {
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0;
}

.btn-primary,
.btn-primary-custom {
  background: var(--lms-gradient-cool);
  border: 0;
  color: #fff;
  box-shadow: 0 0 24px rgba(0, 194, 203, 0.28);
}

.btn-primary:hover,
.btn-primary-custom:hover {
  color: #fff;
  transform: translateY(-1px);
}

.btn-outline,
.btn-outline-custom {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.42);
  color: #fff;
}

.btn-outline:hover,
.btn-outline-custom:hover {
  background: rgba(0, 194, 203, 0.15);
  border-color: var(--lms-cyan);
  color: #fff;
}

.preloader,
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: #05070d;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-content,
.preloader-inner {
  width: min(84vw, 460px);
  text-align: center;
}

.preloader-brand {
  margin: 0 auto 1.35rem;
}

.preloader-brand-text {
  display: grid;
  gap: 0.35rem;
  justify-items: center;
  text-align: center;
}

.preloader-brand-text .sopsd-brand-title {
  font-size: clamp(1.15rem, 5vw, 1.7rem);
}

.loading-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  overflow: hidden;
}

.loading-progress {
  height: 100%;
  width: 52%;
  border-radius: inherit;
  background: linear-gradient(135deg, #30C8D6 0%, #3A034B 50%, #1C2B54 100%);
  animation: lmsLoad 1.2s ease-in-out infinite alternate;
}

@keyframes lmsLoad {
  from { transform: translateX(-80%); }
  to { transform: translateX(190%); }
}

.audience-nav {
  display: none !important;
}

.site-footer {
  background:
    linear-gradient(180deg, rgba(5, 7, 13, 0.99), rgba(7, 12, 22, 1)),
    linear-gradient(135deg, rgba(56, 232, 255, 0.08), rgba(37, 99, 235, 0.06));
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding: clamp(2.2rem, 5vw, 3.8rem) 0 1.6rem;
}

.footer-institution {
  display: grid;
  gap: 1.4rem;
}

.footer-brand-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
  align-items: center;
  padding-bottom: 1.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand-copy {
  display: grid;
  gap: 0.85rem;
  min-width: 0;
}

.footer-wordmark,
.auth-wordmark,
.portal-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.footer-wordmark-icon,
.auth-wordmark-icon,
.portal-wordmark-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  color: #06111d;
  background: var(--lms-gradient);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28), 0 0 22px rgba(56, 232, 255, 0.18);
}

.auth-wordmark-icon,
.portal-wordmark-icon {
  width: 38px;
  height: 38px;
  flex-basis: 38px;
  border-radius: 10px;
}

.footer-brand-strip .footer-desc {
  max-width: 720px;
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
}

.footer-brand-side {
  display: grid;
  gap: 0.9rem;
}

.footer-campus-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.footer-campus-badges span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 36px;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.065);
  color: #f8fafc;
  font-size: 0.84rem;
  font-weight: 800;
}

.footer-campus-badges i {
  color: var(--lms-cyan);
}

.site-footer .social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0;
}

.site-footer .social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  text-decoration: none;
}

.site-footer .social-links a:hover,
.site-footer .social-links a:focus {
  color: #061018;
  background: var(--lms-gradient);
  border-color: transparent;
}

.site-footer .footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.3rem;
  padding: 0;
}

.footer-links,
.footer-contact-card,
.footer-newsletter {
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.footer-links strong,
.footer-contact-card strong,
.footer-newsletter strong {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 900;
  margin-bottom: 0.85rem;
}

.footer-links strong i,
.footer-contact-card strong i,
.footer-newsletter strong i {
  color: var(--lms-cyan);
}

.footer-links a,
.footer-contact-card a,
.footer-contact-card span,
.footer-legal a {
  display: flex;
  align-items: center;
  gap: 0.52rem;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.92rem;
  line-height: 1.45;
  margin-bottom: 0.55rem;
}

.footer-links a i,
.footer-contact-card a i,
.footer-contact-card span i,
.footer-legal a i {
  width: 18px;
  color: var(--lms-cyan);
  text-align: center;
  flex: 0 0 18px;
}

.footer-links a:hover,
.footer-contact-card a:hover,
.footer-legal a:hover {
  color: #fff;
}

.footer-newsletter .footer-desc {
  margin: 0 0 0.9rem;
  font-size: 0.92rem;
  line-height: 1.6;
}

.footer-newsletter-form {
  display: grid;
  gap: 0.7rem;
}

.footer-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
  padding: 0.2rem 0.3rem 0.2rem 0.85rem;
}

.footer-input-wrap i {
  color: var(--lms-cyan);
}

.footer-input-wrap input {
  border: 0 !important;
  background: transparent !important;
  min-width: 0;
  width: 100%;
  padding: 0.6rem 0.2rem !important;
}

.footer-newsletter-form .btn {
  justify-content: center;
}

.site-footer .footer-alert {
  margin-bottom: 0.75rem;
  border-radius: 10px;
}

.site-footer .footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1.15rem 0 0;
  margin-top: 0.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer .footer-bottom p {
  margin: 0;
  color: #cbd5e1 !important;
  font-size: 0.88rem;
}

.footer-owner {
  margin-top: 0.25rem !important;
  color: #98a7ba !important;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.footer-legal a {
  margin-bottom: 0;
}

/* Public page contrast guardrails: keep legacy white surfaces in the same premium dark system. */
.bg-light,
.lp-section-light,
.section {
  background: #07101d !important;
}

.feature-card,
.faq-sidebar,
.pricing-program-card,
.pricing-category,
.series-card,
.course-detail-card,
.resource-card,
.verify-info,
.contact-info,
.contact-form-wrap,
.auth-card,
.faq-category,
.faq-item,
.download-card,
.nl-highlight-card,
.modal-box,
.reg-form-card,
.reg-step-card {
  background: rgba(255, 255, 255, 0.065) !important;
  border: 1px solid rgba(255, 255, 255, 0.13) !important;
  color: var(--lms-text) !important;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.28) !important;
}

.feature-card h1,
.feature-card h2,
.feature-card h3,
.pricing-program-card h3,
.pricing-category h3,
.series-card h3,
.course-detail-card h2,
.course-detail-card h3,
.resource-card h3,
.resource-title,
.verify-info h2,
.contact-info h2,
.contact-form-wrap h2,
.faq-category h2,
.faq-question,
.download-card h3,
.modal-box h3 {
  color: #f8fafc !important;
}

.feature-card p,
.pricing-program-card p,
.series-card p,
.course-detail-card p,
.course-detail-card li,
.course-meta-list dd,
.resource-card p,
.verify-info li,
.contact-info p,
.faq-answer,
.download-card p,
.modal-box p {
  color: var(--lms-muted) !important;
}

.catalog-filter-bar,
.pricing-table th,
.pricing-table td,
.course-detail-body,
.modal-header {
  background: rgba(5, 12, 24, 0.92) !important;
  color: #f8fafc !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

.faq-sidebar .faq-nav-link { color: var(--lms-text); }
.faq-sidebar .faq-nav-link:hover,
.faq-sidebar .faq-nav-link:focus-visible { color: var(--primary); }

/* Policy documents retain their light reading surface. */
.terms-box {
  --text: #1a1a2e;
  --text-muted: #5f6b7c;
  --primary: #0e7490;
}

/* Bootstrap ships `code` in #d63384, which lands at 4.24:1 on our dark
   surfaces — just under AA. Give inline code a tinted chip instead. */
code:not([class]) {
  color: #9ee7ee;
  background: rgba(158, 231, 238, 0.10);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

/* …and keep it legible on the light-surface scopes above. */
.terms-box code:not([class]) {
  color: #0b5b66;
  background: rgba(14, 116, 144, 0.10);
}

.pricing-table tbody tr:hover td {
  background: rgba(56, 189, 248, 0.12) !important;
}

.filter-btn,
.course-code-sm,
.course-code {
  background: rgba(56, 189, 248, 0.12) !important;
  border-color: rgba(56, 189, 248, 0.28) !important;
  color: #E6F7F9 !important;
}

.filter-btn:hover,
.filter-btn.active,
.filter-btn[aria-pressed="true"] {
  background: var(--lms-gradient-cool) !important;
  border-color: transparent !important;
  color: #fff !important;
}

.course-detail-header,
.pricing-category h3 {
  background: linear-gradient(135deg, #06101d 0%, #0f2f63 100%) !important;
}

/* ── Tuition page contrast fixes ──────────────────────────
   theme.css gives .info-banner a pale sky-blue background, but the dark
   theme sets near-white body text — white-on-white. Restyle as a dark
   glass panel with readable light text. */
.info-banner {
  background: rgba(48, 200, 214, 0.08) !important;
  border: 1px solid rgba(48, 200, 214, 0.28) !important;
  color: var(--lms-text) !important;
}
.info-banner-title { color: #4bdce7 !important; }
.info-banner ul,
.info-banner li { color: var(--lms-muted) !important; }
.info-banner li strong { color: #f8fafc !important; }

/* Navy-on-dark price and pale duration pill inside the glass cards */
.pricing-program-price { color: #4bdce7 !important; }
.pricing-duration {
  background: rgba(48, 200, 214, 0.14) !important;
  color: #9beef4 !important;
}

/* Containers that receive a glass border here but have no padding of
   their own in theme.css — keep text clear of the border on all sides. */
.contact-info,
.contact-form-wrap,
.faq-category {
  padding: 1.75rem !important;
}

/* ── "Ready to get started?" CTA (pricing, about) ─────────
   theme.css paints a bright navy→teal gradient whose right half drowns
   both the muted paragraph text and the white outline button. Restyle as
   a dark glass panel with the site's standard gradient buttons. */
.cta-section {
  background:
    linear-gradient(135deg, rgba(48, 200, 214, 0.14), rgba(28, 43, 84, 0.42)),
    rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(48, 200, 214, 0.3);
  border-radius: var(--lms-radius);
  padding: 3.25rem 1.75rem !important;
  text-align: center;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.28);
}
.cta-section h2 { color: #fff !important; }
.cta-section p  { color: #d4dde8 !important; max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-section .btn { margin: 0.35rem 0.4rem 0; }
.cta-section .btn-white {
  background: var(--lms-gradient-cool) !important;
  border: 0 !important;
  color: #fff !important;
  border-radius: 999px;
  font-weight: 800;
  box-shadow: 0 0 24px rgba(0, 194, 203, 0.28);
}
.cta-section .btn-white:hover {
  color: #fff !important;
  transform: translateY(-1px);
}
.cta-section .btn-outline-white {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(48, 200, 214, 0.55) !important;
  color: #e6f7f9 !important;
  border-radius: 999px;
  font-weight: 800;
}
.cta-section .btn-outline-white:hover {
  background: rgba(48, 200, 214, 0.16) !important;
  color: #fff !important;
  transform: translateY(-1px);
}

.course-meta-list dt {
  color: #e0f2fe !important;
}

.badge-foundations,
.badge-frontend,
.badge-backend,
.badge-devops,
.badge-ai,
.badge-fullstack,
.course-price-badge,
.course-price-badge.free {
  background: rgba(56, 189, 248, 0.14) !important;
  color: #E6F7F9 !important;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.lp-hero {
  min-height: min(760px, calc(100vh - 82px));
  padding: 6.5rem 0 5rem;
  background:
    linear-gradient(135deg, rgba(5, 7, 13, 0.94), rgba(9, 14, 24, 0.94)),
    linear-gradient(135deg, rgba(56, 232, 255, 0.22), rgba(37, 99, 235, 0.18));
}

.lp-hero-inner {
  width: min(100%, 920px);
}

.lp-hero-title {
  font-size: clamp(2.35rem, 14vw, 4.75rem);
  line-height: 0.98;
  font-family: Montserrat, Inter, sans-serif;
  font-weight: 900;
  text-wrap: balance;
}

.lp-title-mobile {
  display: none;
}

.lp-hero-sub {
  max-width: 760px;
  color: #d7dfeb;
}

.hero-signal-panel {
  width: min(100%, 430px);
  margin: 0 auto;
  display: grid;
  gap: 1rem;
  padding: clamp(1.1rem, 3vw, 1.5rem);
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: var(--lms-shadow);
  text-align: left;
}

.hero-signal-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.hero-signal-header > span {
  width: 46px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  color: #06111d;
  background: var(--lms-gradient);
  box-shadow: 0 0 26px rgba(56, 232, 255, 0.18);
}

.hero-signal-header strong,
.hero-signal-header small {
  display: block;
}

.hero-signal-header strong {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 900;
}

.hero-signal-header small {
  color: #cbd5e1;
  margin-top: 0.25rem;
}

.hero-signal-code {
  display: grid;
  gap: 0.55rem;
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid rgba(56, 189, 248, 0.14);
  background: rgba(5, 12, 24, 0.78);
  color: #E6F7F9;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.84rem;
}

.hero-signal-code b {
  color: #7dd3fc;
  font-weight: 800;
}

.hero-signal-grid {
  display: grid;
  gap: 0.55rem;
}

.hero-signal-grid span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 36px;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.06);
  color: #f8fafc;
  font-weight: 800;
}

.lp-hero-badge {
  border-color: rgba(0, 194, 203, 0.4);
  color: #75f6ff;
  background: rgba(0, 194, 203, 0.09);
}

.lp-stats-grid,
.lp-features-grid,
.courses-grid,
.pricing-programs-grid,
.pricing-categories {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.lp-stat-card,
.lp-path-card,
.lp-feature-card,
.course-card,
.pricing-card,
.dashboard-card,
.card-custom,
.fac-tab-container {
  background: var(--lms-panel);
  border: 1px solid var(--lms-border);
  border-radius: var(--lms-radius);
  color: var(--lms-text);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.lp-section-title,
.pricing-section-title,
.fac-tab-title,
.dashboard-header h1,
.dashboard-main h1,
.dashboard-main h2 {
  color: #fff;
}

.lp-section-sub,
.pricing-section-sub,
.fac-tab-desc,
.text-muted {
  color: var(--lms-muted) !important;
}

.dashboard-layout,
.fac-studio {
  min-height: 100vh;
  height: auto;
  overflow: visible;
  background:
    linear-gradient(135deg, rgba(5, 7, 13, 0.98), rgba(9, 14, 24, 0.96)),
    linear-gradient(135deg, rgba(56, 232, 255, 0.15), rgba(37, 99, 235, 0.11));
  color: #fff;
  display: block;
  padding: 1rem;
}

.dashboard-layout .sidebar,
.fac-sidebar {
  position: static;
  width: 100%;
  max-width: none;
  min-height: auto;
  height: auto;
  max-height: none;
  background: var(--lms-panel);
  border: 1px solid var(--lms-border);
  border-radius: var(--lms-radius);
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: var(--lms-shadow);
}

.sidebar-header,
.fac-sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0;
  margin-bottom: 1rem;
}

.portal-wordmark {
  width: 100%;
}

.portal-wordmark .sopsd-brand-subtitle {
  font-size: 0.78rem;
}

.auth-wordmark {
  justify-content: center;
  margin-bottom: 1.25rem;
  text-align: left;
}

.sidebar-nav,
#adm-nav,
.fac-stab-nav,
.fac-sidebar nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  overflow: visible;
  padding: 0;
}

.sidebar-label,
.fac-sidebar-label {
  width: 100%;
  margin: 0.65rem 0 0.25rem;
  color: #78f4ff;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sidebar-link,
.fac-stab,
.adm-nav-item,
.fac-course-item {
  display: inline-flex;
  width: auto;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.86);
  padding: 0.58rem 0.9rem;
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
}

.sidebar-link.active,
.sidebar-link:hover,
.fac-stab.active,
.fac-stab:hover,
.adm-nav-item.active,
.adm-nav-item:hover,
.fac-course-item.active,
.fac-course-item:hover {
  background: var(--lms-gradient-cool);
  color: #fff;
  border-color: transparent;
}

.dashboard-main,
.fac-main {
  width: 100%;
  margin: 0;
  min-width: 0;
  overflow: visible;
}

.dashboard-header,
.fac-topbar,
.fac-tab-header {
  background: var(--lms-panel);
  border: 1px solid var(--lms-border);
  border-radius: var(--lms-radius);
  padding: 1rem;
  margin-bottom: 1rem;
}

.part-student-snapshot {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.part-student-snapshot article,
.part-student-snapshot a {
  min-width: 0;
}

.part-student-snapshot article {
  padding: 1rem;
  border: 1px solid var(--lms-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.065);
}

.part-student-snapshot span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--lms-muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.part-student-snapshot span i {
  color: var(--lms-cyan);
}

.part-student-snapshot strong {
  display: block;
  margin-top: 0.35rem;
  color: #fff;
  font-size: 1.35rem;
  line-height: 1.15;
}

.part-student-snapshot > .btn {
  min-height: 100%;
  align-items: center;
  justify-content: center;
}

.part-classroom-overview {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: clamp(1rem, 3vw, 1.35rem);
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(56, 232, 255, 0.1), rgba(37, 99, 235, 0.08)),
    rgba(255, 255, 255, 0.055);
}

.part-classroom-overview h3 {
  margin: 0;
  color: #fff;
  font-size: 1.2rem;
}

.part-classroom-overview p {
  margin: 0.35rem 0 0;
}

.part-classroom-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.part-classroom-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 32px;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #E6F7F9;
  font-size: 0.8rem;
  font-weight: 800;
}

.tab-panel,
.fac-stab-panel,
.adm-section {
  background: var(--lms-panel);
  border: 1px solid var(--lms-border);
  border-radius: var(--lms-radius);
  padding: 1rem;
  box-shadow: var(--lms-shadow);
}

.fac-tab-container {
  padding: 1rem;
}

.table-responsive,
[style*="overflow-x:auto"] {
  border-radius: var(--lms-radius-sm);
}

.table-responsive > table { min-width: 640px; }

/* UAT: the document owns portal scrolling; individual data tables may scroll horizontally. */
.adm-overview-tables {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: start;
}
.adm-overview-tables > div { min-width: 0; }
.adm-overview-tables table { min-width: 0; table-layout: fixed; }
.adm-overview-tables th, .adm-overview-tables td { overflow-wrap: anywhere; }
.adm-overview-tables th { opacity: 1 !important; color: #c9d7dc; }
.series-card .series-title, .card .card-title { color: #f7fbfc; }
.series-card .series-body { color: #c9d7dc; }
.faq-section-title:target { color: #9ee7ee; outline: 2px solid #9ee7ee; outline-offset: 6px; }
.faq-sidebar .faq-nav-link[aria-current="location"] { color: #9ee7ee; font-weight: 700; text-decoration: underline; }
.catalog-filter-bar .filter-btn[aria-pressed="true"],
#adm-nav .adm-nav-item.active, #adm-nav .adm-nav-item:hover,
.sidebar-nav .sidebar-link:is(.active, :hover, :focus-visible),
.fac-course-list .fac-course-item:is(.active, :hover, :focus-visible) {
  background: #9ee7ee !important;
  color: #082029 !important;
}
.fac-course-list .fac-course-item:is(.active, :hover, :focus-visible) :is(.fac-ci-title, .fac-ci-meta) { color: #082029; }

.part-studio .dashboard-main { background: transparent; color: #f7fbfc; }
.part-studio .dashboard-header, .fac-course-header, .fac-sub-tabs,
.fac-section-card, .fac-topic-item, .fac-week-card, .fac-resource-item {
  background: #111b23;
  color: #f7fbfc;
  --text: #f7fbfc;
  --text-muted: #c0cdd4;
  --primary: #9ee7ee;
  --bg-subtle: #1c303a;
}
.fac-main { --bg-subtle: #1c303a; --border-color: #334751; }
.fac-sub-tabs { flex-wrap: wrap; overflow: visible; padding: 0.5rem; gap: 0.25rem; }
.fac-sub-tab { white-space: normal; text-align: left; border-radius: 4px; }
.fac-sub-tab.active { background: #223d48; color: #dffbff; }
.fac-accordion-item.open .fac-accordion-body { max-height: none; overflow: visible; }
.fac-badge-open { color: #86efac; }
.fac-badge-closed { color: #fca5a5; }
.fac-badge-waitlist { color: #fde68a; }
.part-studio .card, .part-studio .card:hover { background: #111b23; }
.part-studio .sop-table th { background: #182a34; color: #e6f0f4; }
.part-studio .sop-table td { color: #e6f0f4; }
.part-studio .sop-table tr:hover td { background: #20353e; }
.part-studio #part-course-selector-bar { background: #111b23 !important; }
.part-profile-form { min-width: 0; width: 100%; }
.profile-photo-editor { display: flex; flex-wrap: wrap; align-items: start; gap: 1.25rem; padding: 1rem 0; margin-bottom: 1rem; border-bottom: 1px solid #334751; }
.profile-photo-preview { width: 112px; height: 112px; flex: 0 0 112px; display: grid; place-items: center; background: #172d38; border-radius: 50%; overflow: hidden; }
.profile-photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.profile-photo-preview i { font-size: 2rem; color: #9ee7ee; }
.profile-photo-preview [hidden] { display: none !important; }
.profile-photo-editor form { flex: 1 1 240px; min-width: 0; }
.profile-photo-editor input { display: block; width: 100%; max-width: 440px; color: #f7fbfc; }
.profile-photo-editor label { font-weight: 700; }
.profile-photo-editor p { font-size: 0.85rem; margin: 0.5rem 0; }
.profile-photo-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
#app { padding-bottom: 5rem; }

@media (max-width: 767.98px) {
  .adm-overview-tables { grid-template-columns: minmax(0, 1fr); }
  .fac-course-header { padding: 1rem; }
  .fac-course-header-right { flex-wrap: wrap; flex-shrink: 1; }
  .fac-form-row, .part-profile-form .form-row-2 { grid-template-columns: minmax(0, 1fr) !important; }
}

.form-control,
.form-select,
input,
select,
textarea {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.38) !important;
  color: #fff !important;
  border-radius: 10px !important;
}

.rich-text-source {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.sopsd-richtext-shell {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.075);
}

.sopsd-richtext-shell .ql-toolbar.ql-snow {
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(5, 12, 24, 0.96);
}

.sopsd-richtext-shell .ql-container.ql-snow {
  border: 0;
  color: #f8fafc;
  font-family: Inter, Arial, sans-serif;
  font-size: 0.95rem;
}

.sopsd-richtext-shell .ql-editor {
  color: #f8fafc;
  line-height: 1.65;
}

.sopsd-richtext-shell .ql-editor.ql-blank::before {
  color: rgba(255, 255, 255, 0.54);
  font-style: normal;
}

.sopsd-richtext-shell .ql-snow .ql-stroke {
  stroke: #E6F7F9;
}

.sopsd-richtext-shell .ql-snow .ql-fill,
.sopsd-richtext-shell .ql-snow .ql-stroke.ql-fill {
  fill: #E6F7F9;
}

.sopsd-richtext-shell .ql-snow .ql-picker,
.sopsd-richtext-shell .ql-snow .ql-picker-label {
  color: #E6F7F9;
}

.sopsd-richtext-shell .ql-snow .ql-picker-options {
  background: #08111f;
  border-color: rgba(255, 255, 255, 0.18);
}

option {
  background: #111827;
  color: #fff;
}

input::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.54) !important;
}

/* sm */
@media (min-width: 576px) {
  .lp-stats-grid,
  .lp-features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* md */
@media (min-width: 768px) {
  .container,
  .container-md {
    width: min(100%, var(--lms-max));
  }

  .lp-hero-title {
    font-size: clamp(3.6rem, 9vw, 5.6rem);
  }

  .courses-grid,
  .pricing-programs-grid,
  .pricing-categories {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

/* lg: hamburger opens into horizontal nav at and above this size */
@media (min-width: 992px) {
  .navbar-custom .navbar-collapse {
    margin-top: 0;
  }

  .navbar-custom .navbar-nav {
    align-items: center;
  }

  .lp-features-grid,
  .courses-grid,
  .pricing-categories {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .lp-stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dashboard-layout,
  .fac-studio {
    padding: 1.35rem;
  }

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

  .footer-brand-strip {
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  }

  .footer-brand-side {
    justify-items: end;
  }

  .part-student-snapshot {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

/* xl */
@media (min-width: 1200px) {
  :root { --lms-max: 1180px; }
  .dashboard-layout,
  .fac-studio {
    padding: 1.6rem;
  }

  .site-footer .footer-top {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .footer-newsletter {
    grid-column: span 1;
  }
}

/* xxl */
@media (min-width: 1400px) {
  :root { --lms-max: 1320px; }
  .dashboard-layout,
  .fac-studio {
    padding: 2rem;
  }
}

/* xxxl */
@media (min-width: 1600px) {
  :root { --lms-max: 1480px; }
  .lp-hero-inner {
    width: min(100%, 1120px);
  }

  .site-footer .footer-top {
    gap: 1.15rem;
  }
}

/* 4xl / wide desktops */
@media (min-width: 1920px) {
  :root { --lms-max: 1680px; }
  .lp-hero-title {
    font-size: 6.4rem;
  }
}

@media (max-width: 991.98px) {
  .navbar-custom .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0.5rem;
    right: 0.5rem;
    z-index: 1050;
    background: rgb(6, 8, 16);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid rgba(48, 200, 214, 0.15);
    border-radius: 16px;
    padding: 0.6rem;
    margin-top: 0.35rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55), 0 0 30px rgba(48, 200, 214, 0.06);
    max-height: calc(100dvh - 80px);
    overflow-y: auto;
  }

  .navbar-custom .navbar-nav {
    gap: 2px;
  }

  .navbar-custom .nav-link {
    width: 100%;
    justify-content: flex-start;
    padding: 0.7rem 1rem;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: background 0.15s ease;
  }

  .navbar-custom .nav-link:hover,
  .navbar-custom .nav-link:focus {
    background: rgba(48, 200, 214, 0.1);
  }

  .navbar-custom .nav-link i {
    width: 1.4rem;
    text-align: center;
    color: #30C8D6;
    font-size: 0.9rem;
  }

  .navbar-custom .navbar-nav .nav-item:last-child .nav-link,
  .navbar-custom .navbar-nav .nav-action-btn:first-of-type {
    margin-top: 0.3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 0.85rem;
  }

  .nav-action-btn {
    width: 100%;
    justify-content: center;
    border-radius: 10px;
    margin-top: 2px;
  }

  .nav-action-btn.btn-primary {
    background: linear-gradient(135deg, #30C8D6, #239BA6);
    border: none;
    font-weight: 700;
  }
}

@media (max-width: 575.98px) {
  .nav-brand-lockup .nav-brand-badge {
    width: 48px;
    height: 48px;
  }

  .nav-brand-lockup .sopsd-brand-title {
    font-size: 0.9rem;
  }

  .nav-brand-lockup .sopsd-brand-subtitle {
    display: none;
  }

  .navbar-custom {
    min-height: 72px;
  }

  .lp-hero {
    min-height: auto;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    padding-top: 3.5rem;
    padding-bottom: 2.75rem;
    overflow: hidden;
  }

  .lp-hero-inner,
  .lp-hero .row,
  .lp-hero [class*="col-"] {
    min-width: 0;
    max-width: 100%;
  }

  .lp-hero-inner {
    width: 100%;
    padding-left: 0;
    padding-right: 0;
  }

  .lp-hero .row {
    --bs-gutter-x: 0;
    margin-left: 0;
    margin-right: 0;
  }

  .lp-hero-title {
    width: 100%;
    max-width: calc(100vw - 1.5rem);
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(2.35rem, 11vw, 2.9rem);
    line-height: 1.04;
    overflow-wrap: normal;
    word-break: normal;
    text-align: center;
  }

  .lp-title-desktop {
    display: none;
  }

  .lp-title-mobile {
    display: inline;
  }

  .lp-hero-sub {
    max-width: calc(100vw - 1.5rem);
    margin-left: auto;
    margin-right: auto;
    font-size: 0.96rem;
    line-height: 1.62;
    text-align: center;
  }

  .lp-hero-actions {
    width: 100%;
    max-width: calc(100vw - 1.5rem);
    margin-left: auto;
    margin-right: auto;
  }

  .lp-hero-actions .btn {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .lp-trust-bar {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 0.45rem;
    width: 100%;
    max-width: calc(100vw - 1.5rem);
    margin-left: auto;
    margin-right: auto;
    font-size: 0.78rem;
  }

  .lp-trust-divider {
    display: none;
  }

  .dashboard-layout,
  .fac-studio {
    padding: 0.65rem;
  }

  .tab-panel,
  .fac-stab-panel,
  .adm-section,
  .dashboard-header,
  .fac-topbar,
  .fac-tab-header {
    padding: 0.85rem;
  }

  .footer-campus-badges span {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-brand-badge {
    transition: none;
  }

  .navbar-brand.sopsd-brand:hover .nav-brand-badge,
  .navbar-brand.sopsd-brand:focus-visible .nav-brand-badge {
    transform: none;
  }
}

/* =========================================================
   SOPAIC Premium Tech College Visual Reset
   Graphite, aqua, and steel tones chosen to blend with the
   original circular school logo without repeating it.
   ========================================================= */

:root {
  --lms-bg: #060a0d;
  --color-surface-alt: #182630;
  --lms-bg-2: #0d1418;
  --lms-panel: rgba(17, 26, 32, 0.82);
  --lms-panel-strong: rgba(22, 34, 42, 0.92);
  --lms-border: rgba(158, 231, 238, 0.16);
  --lms-text: #f7fbfc;
  --lms-muted: #b8c8ce;
  --lms-cyan: #9ee7ee;
  --lms-blue-soft: #7ab8ff;
  --lms-blue-pale: #b8d8ff;
  --lms-blue: #3b82f6;
  --lms-blue-deep: #1e5fbf;
  --lms-gradient: linear-gradient(135deg, #9ee7ee 0%, #63c7d3 48%, #3b82f6 100%);
  --lms-gradient-cool: linear-gradient(135deg, #9ee7ee 0%, #4f9ecf 100%);
  --lms-shadow: 0 24px 70px rgba(0, 0, 0, 0.48);
  --lms-radius: 14px;
  --lms-radius-sm: 9px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  background:
    radial-gradient(circle at 15% 8%, rgba(83, 177, 188, 0.16), transparent 32rem),
    radial-gradient(circle at 88% 18%, rgba(59, 130, 246, 0.11), transparent 34rem),
    linear-gradient(180deg, #05080b 0%, #081015 42%, #060a0d 100%);
  color: var(--lms-text);
}

.navbar-custom {
  min-height: 76px;
  background: rgba(6, 8, 16, 0.88);
  border-bottom: 1px solid rgba(48, 200, 214, 0.06);
  box-shadow: 0 14px 50px rgba(0, 0, 0, 0.40);
}

.navbar-custom .container,
.navbar-custom .container-fluid {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  flex-wrap: nowrap;
}

.navbar-brand.sopsd-brand {
  min-width: 0;
  max-width: calc(100vw - 96px);
  overflow: hidden;
}

.nav-brand-lockup {
  gap: 0.72rem;
  min-width: 0;
  max-width: 100%;
}

.nav-brand-lockup .nav-brand-badge {
  width: 60px;
  height: 60px;
}

.nav-brand-lockup .sopsd-brand-text {
  min-width: 0;
  max-width: 230px;
  overflow: hidden;
}

.nav-brand-lockup .sopsd-brand-title,
.nav-brand-lockup .sopsd-brand-subtitle {
  display: block;
  max-width: 100%;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  letter-spacing: 0;
}

.sopsd-brand-kicker {
  color: #30C8D6;
}

@media (min-width: 992px) {
  .navbar-brand.sopsd-brand {
    flex-shrink: 0;
  }

  .navbar-custom .navbar-nav {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .nav-brand-lockup .sopsd-brand-title {
    font-size: 0.86rem;
  }

  .nav-brand-lockup .sopsd-brand-subtitle {
    font-size: 0.74rem;
  }

  .navbar-custom .navbar-nav {
    gap: 0.15rem;
  }

  .navbar-custom .navbar-nav > .ms-lg-2 {
    margin-left: 0 !important;
  }

  .navbar-custom .nav-link {
    font-size: 0.8rem;
    padding: 0.6rem 0.3rem;
    gap: 0.3rem;
    white-space: nowrap;
  }

  .navbar-custom .nav-action-btn {
    font-size: 0.8rem;
    padding: 0.45rem 0.5rem;
    white-space: nowrap;
  }
}

.navbar-toggler {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: #fff !important;
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.32);
}

.navbar-toggler-icon,
.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
  border-top-color: #ffffff !important;
}

.nav-college-pill {
  background: rgba(158, 231, 238, 0.09);
  border-color: rgba(158, 231, 238, 0.2);
  color: #dffbff;
}

.navbar-custom .nav-link {
  color: #d9e5e8;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link:focus {
  color: #ffffff;
  background: rgba(158, 231, 238, 0.09);
}

.btn-primary,
.btn-primary-custom,
.lp-btn-glow {
  background: var(--lms-gradient) !important;
  border-color: transparent !important;
  color: #031014 !important;
  box-shadow: 0 18px 38px rgba(63, 163, 185, 0.26);
}

.btn-primary i,
.btn-primary-custom i,
.lp-btn-glow i {
  color: #05212a;
}

.btn-outline,
.btn-outline-custom,
.lp-btn-glass {
  color: #ecfeff !important;
  background: rgba(255, 255, 255, 0.035) !important;
  border-color: rgba(226, 246, 249, 0.28) !important;
}

.btn-outline:hover,
.btn-outline-custom:hover,
.lp-btn-glass:hover {
  background: rgba(158, 231, 238, 0.1) !important;
  border-color: rgba(158, 231, 238, 0.42) !important;
  color: #ffffff !important;
}

.lp-hero {
  min-height: min(780px, calc(100vh - 76px));
  background:
    linear-gradient(115deg, rgba(5, 9, 12, 0.96), rgba(9, 18, 23, 0.93)),
    radial-gradient(circle at 82% 42%, rgba(92, 192, 207, 0.2), transparent 26rem),
    radial-gradient(circle at 18% 28%, rgba(59, 130, 246, 0.11), transparent 28rem);
}

.lp-hero .row,
.lp-hero [class*="col-"],
.auth-split,
.auth-left,
.auth-right,
.auth-form-wrap {
  min-width: 0;
  max-width: 100%;
}

.lp-hero-title {
  color: #ffffff;
  letter-spacing: 0;
  text-shadow: 0 22px 46px rgba(0, 0, 0, 0.3);
}

.lp-gradient-text {
  background: linear-gradient(135deg, #9ee7ee 0%, #69cbd8 42%, #7ab8ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.lp-hero-sub {
  color: #c9d7dc;
}

.lp-hero-badge,
.lp-section-tag,
.lp-tag-teal {
  color: #bdf5fa;
  background: rgba(158, 231, 238, 0.08);
  border-color: rgba(158, 231, 238, 0.24);
}

.hero-signal-panel,
.lp-stat-card,
.lp-path-card,
.lp-feature-card,
.course-card,
.pricing-card,
.dashboard-card,
.card-custom,
.fac-tab-container,
.tab-panel,
.fac-stab-panel,
.adm-section,
.part-classroom-overview {
  background:
    linear-gradient(180deg, rgba(24, 35, 43, 0.9), rgba(13, 20, 25, 0.9)),
    rgba(255, 255, 255, 0.03);
  border-color: rgba(158, 231, 238, 0.15);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.34);
}

.hero-signal-header > span,
.footer-wordmark-icon,
.auth-wordmark-icon,
.portal-wordmark-icon,
.lp-stat-icon,
.lp-path-icon,
.lp-feature-icon,
.metric-icon {
  background: var(--lms-gradient);
  color: #031014;
}

.hero-signal-code {
  background: rgba(4, 10, 15, 0.82);
  border-color: rgba(158, 231, 238, 0.14);
}

.hero-signal-code b {
  color: #9ee7ee;
}

.hero-signal-grid span,
.footer-campus-badges span,
.part-classroom-meta span {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(226, 246, 249, 0.12);
}

.site-footer {
  background:
    linear-gradient(180deg, rgba(6, 10, 13, 0.99), rgba(4, 8, 11, 1)),
    radial-gradient(circle at 85% 12%, rgba(92, 192, 207, 0.12), transparent 30rem);
}

.auth-split {
  overflow: hidden;
  background:
    radial-gradient(circle at 16% 22%, rgba(92, 192, 207, 0.16), transparent 24rem),
    linear-gradient(135deg, #060a0d, #0d1418);
}

.auth-left {
  background: transparent;
}

.auth-brand p,
.auth-subtitle,
.text-muted {
  color: #c2d0d5 !important;
}

.form-control,
.form-select,
input,
select,
textarea {
  background: rgba(255, 255, 255, 0.07) !important;
  border-color: rgba(226, 246, 249, 0.18) !important;
  color: #ffffff !important;
}

.form-control:focus,
.form-select:focus,
input:focus,
select:focus,
textarea:focus {
  border-color: rgba(158, 231, 238, 0.65) !important;
  box-shadow: 0 0 0 0.2rem rgba(158, 231, 238, 0.16) !important;
}

.access-toggle,
.accessibility-toggle {
  background: var(--lms-gradient) !important;
  color: #031014 !important;
}

@media (max-width: 991.98px) {
  .lp-hero {
    min-height: auto;
  }
}

@media (max-width: 575.98px) {
  :root {
    --lms-page-pad-x: 0.85rem;
  }

  .navbar-custom {
    min-height: 72px;
    padding: 0.45rem 0;
  }

  .navbar-brand.sopsd-brand {
    max-width: calc(100vw - 82px);
  }

  .nav-brand-lockup {
    gap: 0.56rem;
  }

  .nav-brand-lockup .nav-brand-badge {
    width: 48px;
    height: 48px;
  }

  .nav-brand-lockup .sopsd-brand-kicker {
    font-size: 0.66rem;
  }

  .nav-brand-lockup .sopsd-brand-title {
    font-size: 0.82rem;
  }

  .nav-brand-lockup .sopsd-brand-subtitle {
    display: block;
    font-size: 0.76rem;
  }

  .lp-hero {
    padding-top: 3.25rem;
    padding-bottom: 2.4rem;
  }

  .lp-hero .container,
  .lp-hero-inner,
  .lp-hero .row,
  .lp-hero [class*="col-"] {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-left: 0;
    margin-right: 0;
  }

  .lp-hero-title {
    max-width: 100%;
    font-size: clamp(2rem, 11vw, 2.55rem);
    line-height: 1.07;
  }

  .lp-hero-sub,
  .auth-subtitle {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .lp-hero-actions {
    width: 100%;
    max-width: 100%;
  }

  .lp-hero-actions .btn {
    width: 100%;
    white-space: normal;
    min-height: 52px;
  }

  .hero-signal-panel {
    width: 100%;
    margin-top: 1.5rem;
  }

  .auth-split {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .auth-right {
    width: 100%;
    padding: 1rem 0.2rem;
  }

  .auth-form-wrap {
    width: 100%;
    max-width: 100%;
  }
}

/* =========================================================
   SOPAIC Institutional Footer
   ========================================================= */

.site-footer {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 4.5rem) 0 1.25rem;
  background:
    linear-gradient(180deg, rgba(7, 12, 16, 0.98), rgba(3, 7, 10, 1)),
    radial-gradient(circle at 18% 0%, rgba(158, 231, 238, 0.12), transparent 32rem),
    radial-gradient(circle at 92% 22%, rgba(59, 130, 246, 0.1), transparent 34rem);
  border-top: 1px solid rgba(158, 231, 238, 0.18);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(158, 231, 238, 0.65), transparent);
  opacity: 0.7;
}

.footer-institution {
  display: grid;
  gap: clamp(1.15rem, 3vw, 2rem);
}

.footer-campus-panel,
.footer-briefing {
  display: grid;
  gap: 1.25rem;
  padding: clamp(1.15rem, 3vw, 1.65rem);
  border: 1px solid rgba(158, 231, 238, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(17, 29, 36, 0.82), rgba(8, 14, 19, 0.9)),
    rgba(255, 255, 255, 0.025);
  box-shadow: 0 22px 62px rgba(0, 0, 0, 0.28);
}

.footer-campus-copy {
  min-width: 0;
}

.footer-kicker {
  display: block;
  max-width: 38rem;
  padding: 0;
  margin-bottom: 0.85rem;
  color: #bdf5fa;
  font-size: 1rem;
  line-height: 1.45;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

.footer-campus-copy h2 {
  margin: 0;
  max-width: 820px;
  color: #ffffff;
  font-size: clamp(1.45rem, 3.3vw, 2.35rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.footer-campus-copy p,
.footer-briefing p {
  margin: 0.8rem 0 0;
  max-width: 780px;
  color: #c7d7dc;
  line-height: 1.75;
}

.footer-campus-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}

.footer-action {
  display: flex;
  align-items: center;
  gap: 0.72rem;
  min-height: 48px;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(158, 231, 238, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: #eefaff;
  text-decoration: none;
  font-weight: 850;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.footer-action i {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 34px;
  border-radius: 8px;
  background: rgba(158, 231, 238, 0.12);
  color: var(--lms-cyan);
}

.footer-action:hover,
.footer-action:focus {
  color: #ffffff;
  background: rgba(158, 231, 238, 0.09);
  border-color: rgba(158, 231, 238, 0.34);
  transform: translateY(-1px);
}

.footer-directory {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}

.footer-directory .footer-links,
.footer-directory .footer-contact-card {
  padding-top: 0.2rem;
  min-width: 0;
}

.footer-links strong,
.footer-contact-card strong,
.footer-briefing strong {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.78rem;
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0;
}

.footer-links strong i,
.footer-contact-card strong i,
.footer-briefing strong i {
  color: var(--lms-cyan);
}

.footer-links a,
.footer-contact-card a,
.footer-contact-card span,
.footer-legal a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 0.52rem;
  color: #bfccd2;
  text-decoration: none;
  font-size: 0.93rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.footer-links a::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: 0 0 5px;
  border-radius: 999px;
  background: rgba(158, 231, 238, 0.62);
}

.footer-contact-card a i,
.footer-contact-card span i {
  width: 18px;
  flex: 0 0 18px;
  color: var(--lms-cyan);
  text-align: center;
}

.footer-links a:hover,
.footer-links a:focus,
.footer-contact-card a:hover,
.footer-contact-card a:focus,
.footer-legal a:hover,
.footer-legal a:focus {
  color: #ffffff;
}

.footer-briefing {
  align-items: center;
}

.footer-briefing p {
  margin-top: 0.35rem;
  max-width: 620px;
  font-size: 0.94rem;
}

.footer-briefing-form {
  min-width: 0;
}

.footer-newsletter-form {
  display: grid;
  gap: 0.65rem;
}

.footer-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  min-height: 46px;
  padding: 0.2rem 0.32rem 0.2rem 0.85rem;
  border: 1px solid rgba(158, 231, 238, 0.2);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.2);
}

.footer-input-wrap i {
  color: var(--lms-cyan);
}

.footer-input-wrap input {
  min-width: 0;
  width: 100%;
  border: 0 !important;
  background: transparent !important;
  color: #ffffff !important;
  padding: 0.55rem 0.2rem !important;
}

.footer-newsletter-form .btn {
  min-height: 44px;
  justify-content: center;
}

.site-footer .footer-alert {
  margin: 0 0 0.65rem;
  border-radius: 10px;
}

.site-footer .footer-bottom {
  display: grid;
  gap: 1rem;
  align-items: center;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(158, 231, 238, 0.13);
}

.site-footer .footer-bottom p {
  margin: 0;
  color: #c3d1d7 !important;
  font-size: 0.88rem;
}

.footer-owner {
  margin-top: 0.28rem !important;
  color: #8fa2ab !important;
}

.footer-social-legal {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.site-footer .social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0;
}

.site-footer .social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(158, 231, 238, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #e7f9fc;
  text-decoration: none;
}

.site-footer .social-links a:hover,
.site-footer .social-links a:focus {
  color: #031014;
  background: var(--lms-gradient);
  border-color: transparent;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.footer-legal a {
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .footer-campus-panel,
  .footer-briefing {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  }

  .footer-directory {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.45rem 2rem;
  }

  .footer-newsletter-form {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .site-footer .footer-bottom {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .footer-social-legal {
    align-items: flex-end;
  }
}

@media (min-width: 1200px) {
  .footer-directory {
    grid-template-columns: minmax(140px, 0.72fr) minmax(140px, 0.72fr) minmax(160px, 0.82fr) minmax(310px, 1.35fr);
    gap: 2.2rem;
  }
}

@media (max-width: 575.98px) {
  .footer-action {
    min-height: 46px;
  }

  .footer-input-wrap {
    border-radius: 8px;
  }

  .footer-newsletter-form .btn {
    width: 100%;
  }
}

/* Keep the longer school name and subject heading within narrow layouts. */
#adm-section-audit-log .sop-table th {
  background: var(--lms-cyan);
  color: #082029;
}

.nav-mobile-tools {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}

.nav-accessibility-btn {
  width: 44px;
  height: 44px;
  border: 1px solid var(--lms-border);
  border-radius: 6px;
  background: #182630;
  color: #f7fbfc;
  font-size: 1.25rem;
}

.nav-accessibility-btn:focus-visible {
  outline: 2px solid var(--lms-cyan);
  outline-offset: 3px;
}

@media (max-width: 991.98px) {
  .navbar-brand.sopsd-brand {
    max-width: calc(100% - 110px);
    margin-right: 0.5rem;
  }

  .nav-mobile-tools .navbar-toggler {
    width: 44px;
    height: 44px;
    padding: 0;
  }

  #a11y-widget #a11y-trigger { display: none; }

  #a11y-widget #a11y-panel {
    position: fixed;
    top: 100px;
    bottom: auto;
    right: 16px;
    max-height: calc(100dvh - 116px);
  }
}

@media (max-width: 575.98px) {
  .contact-info,
  .contact-form-wrap { padding: 1rem !important; }
}

.lp-hero-title.school-subject-title {
  font-size: 3.25rem;
  line-height: 1.14;
  letter-spacing: 0;
}

.hero-signal-code .code-line {
  display: grid;
  gap: 0.2rem;
  white-space: normal;
  overflow-wrap: anywhere;
  font-family: Inter, sans-serif;
  line-height: 1.55;
}

.section-hero h1,
.ov-title,
.auth-brand h2,
.cert-school {
  overflow-wrap: anywhere;
  letter-spacing: 0;
}

@media (max-width: 575.98px) {
  .lp-hero-title.school-subject-title,
  .section-hero h1,
  .ov-title {
    font-size: 2rem;
    line-height: 1.2;
  }

  .auth-brand h2 {
    font-size: 1.35rem;
    line-height: 1.3;
  }
}
