@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@600;700;800&family=Poppins:wght@400;500;600;700&display=swap');

:root {
  --brainx-bg-1: #3647ca;
  --brainx-bg-2: #7b63e6;
  --brainx-bg-3: #d9e1ff;
  --brainx-sky-1: #3f4fd1;
  --brainx-sky-2: #785fe3;
  --brainx-sky-3: #9b8ef0;
  --brainx-accent: #ff9f2f;
  --brainx-accent-strong: #ff7e1d;
  --brainx-ink: #1e2358;
  --brainx-soft-ink: #59608f;
  --brainx-card: rgba(255, 255, 255, 0.92);
  --brainx-border: rgba(110, 121, 197, 0.25);
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--brainx-ink);
  background:radial-gradient(circle at 18% 8%, rgba(255, 255, 255, 0.3), transparent 28%),
    radial-gradient(circle at 82% 10%, rgb(255 254 254), transparent 26%),
    linear-gradient(160deg, #e9eeff 0%, #ffffff 38%, #ffffff 100%);
  position: relative;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

body::before {
  background-image:
    radial-gradient(circle at 8% 14%, rgba(255, 255, 255, 0.9) 0 1.5px, transparent 2px),
    radial-gradient(circle at 26% 9%, rgba(255, 255, 255, 0.65) 0 1.4px, transparent 2px),
    radial-gradient(circle at 43% 17%, rgba(255, 247, 182, 0.75) 0 1.6px, transparent 2px),
    radial-gradient(circle at 67% 11%, rgba(255, 255, 255, 0.8) 0 1.6px, transparent 2px),
    radial-gradient(circle at 86% 19%, rgba(255, 244, 171, 0.72) 0 1.8px, transparent 2px),
    radial-gradient(circle at 72% 31%, rgba(255, 255, 255, 0.55) 0 1.2px, transparent 2px);
  opacity: 0.5;
}

body::after {
  background:
    radial-gradient(ellipse at 20% 100%, rgba(255, 255, 255, 0.65) 0%, rgba(255, 255, 255, 0) 46%),
    radial-gradient(ellipse at 55% 100%, rgba(255, 255, 255, 0.52) 0%, rgba(255, 255, 255, 0) 45%),
    radial-gradient(ellipse at 85% 100%, rgba(255, 255, 255, 0.58) 0%, rgba(255, 255, 255, 0) 48%);
  opacity: 0.55;
}

body .brainx-cloud-layer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 180px;
  pointer-events: none;
  z-index: -1;
  background-repeat: repeat-x;
  background-position: bottom center;
  background-size: auto 160px;
  opacity: 0.42;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 200'%3E%3Cg fill='%23ffffff'%3E%3Cellipse cx='140' cy='150' rx='130' ry='45'/%3E%3Cellipse cx='260' cy='138' rx='110' ry='42'/%3E%3Cellipse cx='390' cy='152' rx='150' ry='48'/%3E%3Cellipse cx='560' cy='142' rx='130' ry='44'/%3E%3Cellipse cx='690' cy='156' rx='125' ry='42'/%3E%3Cellipse cx='850' cy='144' rx='150' ry='48'/%3E%3Cellipse cx='1010' cy='154' rx='130' ry='44'/%3E%3C/g%3E%3C/svg%3E");
}

.navbar .navbar-brand.logo .brainx-main-logo {
  height: 74px;
  width: auto;
  max-width: none;
  object-fit: contain;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Baloo 2", "Poppins", sans-serif;
  color: var(--brainx-ink);
}

.btn.btn-primary,
.btn-primary,
button.btn-primary,
.enrollBtn {
  background: linear-gradient(135deg, var(--brainx-accent), var(--brainx-accent-strong));
  border-color: transparent;
  border-radius: 12px;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 12px 22px rgba(255, 126, 29, 0.26);
}

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

.brainx-shell {
  padding: 36px 0 70px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.brainx-shell > * {
  position: relative;
  z-index: 1;
}

.brainx-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 9% 13%, rgba(255, 255, 255, 0.55) 0 2px, transparent 2px),
    radial-gradient(circle at 27% 8%, rgba(255, 242, 170, 0.5) 0 2px, transparent 2px),
    radial-gradient(circle at 78% 17%, rgba(255, 255, 255, 0.45) 0 2px, transparent 2px),
    radial-gradient(circle at 91% 24%, rgba(255, 240, 165, 0.55) 0 2px, transparent 2px),
    radial-gradient(ellipse at 20% 93%, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 55%),
    radial-gradient(ellipse at 60% 95%, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0) 52%),
    radial-gradient(ellipse at 92% 90%, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0) 50%);
  opacity: 0.7;
  z-index: 0;
}

.brainx-shell::after {
  content: "";
  position: absolute;
  left: -5%;
  right: -5%;
  bottom: -40px;
  height: 210px;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 18% 85%, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0) 56%),
    radial-gradient(ellipse at 50% 100%, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0) 58%),
    radial-gradient(ellipse at 82% 88%, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0) 55%);
  opacity: 0.42;
  z-index: 0;
}

.brainx-shell .dreamy-clouds {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -20px;
  height: 180px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
  background-repeat: repeat-x;
  background-position: bottom center;
  background-size: auto 170px;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1400 220'%3E%3Cg fill='%23ffffff' fill-opacity='.95'%3E%3Cellipse cx='120' cy='170' rx='130' ry='45'/%3E%3Cellipse cx='260' cy='160' rx='105' ry='38'/%3E%3Cellipse cx='380' cy='176' rx='145' ry='50'/%3E%3Cellipse cx='560' cy='164' rx='130' ry='43'/%3E%3Cellipse cx='705' cy='174' rx='120' ry='41'/%3E%3Cellipse cx='860' cy='162' rx='145' ry='47'/%3E%3Cellipse cx='1035' cy='176' rx='140' ry='49'/%3E%3Cellipse cx='1210' cy='166' rx='130' ry='44'/%3E%3C/g%3E%3C/svg%3E");
}

.brainx-shell .dreamy-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
  background:
    radial-gradient(circle at 12% 20%, rgba(255, 255, 255, 0.34), transparent 24%),
    radial-gradient(circle at 82% 17%, rgba(255, 229, 140, 0.28), transparent 23%),
    radial-gradient(circle at 55% 72%, rgba(255, 255, 255, 0.2), transparent 30%);
}

.brainx-panel {
  background: var(--brainx-card);
  border: 1px solid var(--brainx-border);
  border-radius: 20px;
  box-shadow: 0 18px 50px rgba(61, 76, 160, 0.15);
}

/* Home */
.brainx-home {
  position: relative;
  z-index: 1;
}

.brainx-home-hero {
  background:
    radial-gradient(circle at 78% 14%, rgba(255, 226, 118, 0.24), transparent 26%),
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.16), transparent 28%),
    linear-gradient(135deg, rgba(58, 74, 205, 0.97) 0%, rgba(114, 96, 226, 0.95) 55%, rgba(141, 126, 237, 0.94) 100%);
  color: #fff;
  border-radius: 28px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 45px rgba(65, 71, 162, 0.34);
}

.brainx-home-hero::after {
  content: "";
  position: absolute;
  inset: auto -14% -60% auto;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 201, 128, 0.33), transparent 66%);
}

.brainx-home-nav {
  display: none !important;
}

.brainx-home-brand {
  font-size: 38px;
  line-height: 1;
  font-weight: 800;
  color: #fff;
}

.brainx-home-brand span {
  color: #ffbc48;
}

.brainx-home-menu {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.brainx-home-menu a {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  font-size: 14px;
}

.footer .brainx-footer-logo {
  height: 68px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  margin-bottom: 10px;
}

.footer .newFooterlatest {
  display: none !important;
}

.brainx-home-hero h1 {
  color: #fff;
  font-size: 50px;
  line-height: 1.05;
  margin-bottom: 8px;
}

.brainx-home-hero h1 .accent {
  color: #ffd466;
}

.brainx-home-sub {
  color: rgba(255, 255, 255, 0.92);
  font-size: 18px;
  margin-bottom: 22px;
}

.brainx-home-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.brainx-home-cta .ghost-btn {
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.12);
}

.brainx-home-hero-art img {
  max-width: 100%;
  filter: drop-shadow(0 24px 28px rgba(38, 48, 120, 0.38));
}

.brainx-feature-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.brainx-feature-item {
  background: #fff;
  border: 1px solid var(--brainx-border);
  border-radius: 16px;
  padding: 14px;
  text-align: center;
}

.brainx-feature-item h5 {
  font-size: 17px;
  margin-bottom: 2px;
}

.brainx-feature-item p {
  margin: 0;
  color: var(--brainx-soft-ink);
  font-size: 13px;
}

.brainx-home-program {
  margin-top: 22px;
  padding: 22px;
}

.brainx-program-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: center;
}

.brainx-home-program h3 {
  font-size: 34px;
  margin-bottom: 12px;
}

.brainx-price-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.brainx-price-main {
  font-size: 38px;
  color: var(--brainx-accent-strong);
}

.brainx-price-old {
  color: #7f86b2;
  text-decoration: line-through;
  font-size: 18px;
}

.brainx-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.brainx-list li {
  padding-left: 22px;
  position: relative;
  margin-bottom: 8px;
  color: #4a5285;
}

.brainx-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #46a66c;
  font-weight: 700;
}

.brainx-program-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.brainx-program-features span {
  background: #f3f6ff;
  border: 1px solid #dbe4ff;
  color: #404977;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
}

.brainx-program-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.brainx-program-cta .ghost-btn {
  border: 1px solid #cfd8ff;
  color: #32438f;
  border-radius: 12px;
  padding: 11px 16px;
  font-weight: 600;
  background: #fff;
}

.brainx-program-art {
  text-align: right;
}

.brainx-program-art img {
  width: 100%;
  max-width: 340px;
  max-height: 290px;
  object-fit: contain;
  filter: drop-shadow(0 20px 26px rgba(61, 75, 158, 0.22));
}

.brainx-course-grid .courses-card-body,
.brainx-course-grid .course-item-6 {
  border: 1px solid var(--brainx-border);
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(69, 82, 166, 0.12);
  overflow: hidden;
}

.brainx-home .category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px 14px;
  box-shadow: none !important;
  transition: transform 0.22s ease, background-color 0.22s ease;
}

.brainx-home .category-item .icon {
  width: 104px;
  height: 88px;
  border-radius: 14px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.brainx-home .category-item .icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 14px 26px rgba(72, 84, 170, 0.22);
  background: #fff;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.brainx-home .category-item:hover {
  transform: translateY(-4px);
  background-color: rgba(255, 255, 255, 0.7);
}

.brainx-home .category-item:hover .icon img {
  transform: scale(1.06);
  box-shadow: 0 18px 30px rgba(72, 84, 170, 0.3);
}

.brainx-home .category-item .icon i {
  font-size: 24px;
  color: #2f5be7;
}

.brainx-home .category-item .info {
  margin: 0;
}

/* Login */
.brainx-login {
  min-height: calc(100vh - 180px);
  background-image:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08)),
    url("../image/brainx/login-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 28px;
  overflow: hidden;
  position: relative;
}

.brainx-login::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 14%, rgba(255, 255, 255, 0.28), transparent 26%),
    radial-gradient(circle at 84% 18%, rgba(255, 233, 165, 0.2), transparent 24%);
  z-index: 0;
}

.brainx-login .container {
  position: relative;
  z-index: 1;
}

.brainx-login .sing-up-right {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--brainx-border);
  border-radius: 24px;
  box-shadow: 0 24px 45px rgba(59, 77, 167, 0.15);
  padding: 32px;
}

.brainx-login .sing-up-right h3 {
  font-size: 52px;
  line-height: 1;
  margin-bottom: 6px;
}

.brainx-login .sing-up-right h3 span {
  color: var(--brainx-accent-strong);
}

.brainx-login .form-control {
  border: 1px solid #c8d2ff;
  border-radius: 12px;
  min-height: 52px;
  padding-left: 46px;
}

.brainx-login .position-relative > i.fa-solid {
  left: 16px;
  top: 18px;
  color: #7580bf;
}

.brainx-login-visual {
  /* background: linear-gradient(155deg, #4a57ce, #8d7beb); */
  border-radius: 24px;
  padding: 22px;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  /* box-shadow: 0 24px 40px rgba(65, 72, 156, 0.28); */
}

.brainx-login-visual img {
  width: 100%;
  max-width: 520px;
}

/* Learner pages */
.wish-list-body.brainx-shell .profile-image {
  border: 3px solid #fff;
  box-shadow: 0 10px 20px rgba(67, 80, 166, 0.18);
}

.wish-list-body.brainx-shell .student-profile-info,
.wish-list-body.brainx-shell .wish-list-course,
.wish-list-body.brainx-shell .my-course-1-full-body-card,
.wish-list-body.brainx-shell .cart-table,
.wish-list-body.brainx-shell .cart-total {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--brainx-border);
  border-radius: 18px;
  box-shadow: 0 14px 35px rgba(70, 83, 165, 0.12);
}

.wish-list-body.brainx-shell .my-course-1-full-body h1,
.cart-page.brainx-shell .cart-heading-text h3 {
  font-size: 38px;
  margin-bottom: 14px;
}

.wish-list-body.brainx-shell .btn-profile-menu {
  border-radius: 12px;
  margin-bottom: 8px;
}

.wish-list-body.brainx-shell .btn-profile-menu.active {
  background: linear-gradient(135deg, #4b61d6, #6f77e0);
  color: #fff;
}

.wish-list-body.brainx-shell .my-course-1-text-heading h3 {
  font-size: 28px;
}

.wish-list-body.brainx-shell .my-course-1-skill .skill-bar-container {
  background: #dae3ff;
}

.wish-list-body.brainx-shell .my-course-1-skill .skill-bar {
  background: linear-gradient(90deg, #53c38c, #48a971);
}

.cart-page.brainx-shell .cart-table-image img {
  border-radius: 12px;
}

.cart-page.brainx-shell .input-group .form-control {
  border-radius: 12px 0 0 12px;
}

/* Student dashboard */
.brainx-student-wrap {
  max-width: 1080px;
  margin: 0 auto;
}

.brainx-student-hero {
  background:
    radial-gradient(circle at 78% 14%, rgba(255, 223, 120, 0.23), transparent 28%),
    linear-gradient(135deg, #4c5fd3, #7f68e7);
  border-radius: 24px;
  color: #fff;
  padding: 22px;
  box-shadow: 0 20px 44px rgba(66, 76, 171, 0.3);
}

.brainx-student-hero h2,
.brainx-student-hero p {
  color: #fff;
}

.brainx-progress-pill {
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  height: 34px;
  position: relative;
  overflow: hidden;
  max-width: 380px;
}

.brainx-progress-pill .fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: linear-gradient(90deg, #6cd39a, #37b877);
  border-radius: 999px;
}

.brainx-progress-pill strong {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #fff;
}

.brainx-student-hero img {
  max-width: 260px;
  width: 100%;
}

.brainx-stats-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.brainx-stat-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--brainx-border);
  border-radius: 14px;
  padding: 16px;
  text-align: center;
}

.brainx-stat-card h5 {
  margin-bottom: 3px;
}

.brainx-stat-card p {
  margin: 0;
  color: #6d75a6;
  font-size: 13px;
}

.brainx-continue-block {
  margin-top: 16px;
  padding: 22px;
}

.brainx-continue-feature {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 16px;
  align-items: center;
}

.brainx-continue-feature img {
  width: 100%;
  border-radius: 12px;
}

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

.brainx-lesson-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  background: #f3f6ff;
  border-radius: 10px;
  padding: 10px 12px;
  border: 1px solid #dbe2ff;
}

.brainx-lesson-row span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Subscription */
.brainx-subscription-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px;
  background:
    radial-gradient(circle at 84% 18%, rgba(255, 222, 130, 0.2), transparent 24%),
    radial-gradient(circle at 16% 8%, rgba(255, 255, 255, 0.26), transparent 28%),
    rgba(255, 255, 255, 0.9);
}

.brainx-subscription-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.brainx-sub-card {
  background: #f8f9ff;
  border-radius: 14px;
  border: 1px solid #dde4ff;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

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

.brainx-profile-mini img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}

.brainx-sub-links {
  display: grid;
  gap: 8px;
}

.brainx-sub-links a {
  padding: 10px 12px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #e3e8ff;
}

.brainx-upgrade-card {
  background: linear-gradient(135deg, #f6f8ff, #edf2ff);
  border: 1px solid #dbe4ff;
  border-radius: 14px;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Certificate */
.brainx-certificate-page {
  max-width: 860px;
  margin: 0 auto;
}

.brainx-certificate-print-wrap {
  display: flex;
  justify-content: center;
}

.brainx-certificate-template {
  position: relative;
  width: min(760px, 100%);
  aspect-ratio: 3 / 4;
  background-image: url("../image/brainx/certificate-template.jpg");
  background-size: contain;
  background-position: center top;
  background-repeat: no-repeat;
  background-color: #f4f1ff;
  border-radius: 16px;
  box-shadow: 0 22px 44px rgba(66, 78, 164, 0.25);
  overflow: hidden;
}

.brainx-certificate-template::before {
  content: "";
  position: absolute;
  inset: 28% 11% 22% 11%;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 14px;
}

.brainx-cert-student-name,
.brainx-cert-course-title,
.brainx-cert-date,
.brainx-cert-link {
  position: absolute;
  z-index: 2;
  text-align: center;
  width: 74%;
  left: 13%;
  color: #1c2d6f;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

.brainx-cert-student-name {
  top: 44.5%;
  font-family: "Baloo 2", "Poppins", sans-serif;
  font-weight: 800;
  font-size: clamp(24px, 4.2vw, 48px);
}

.brainx-cert-course-title {
  top: 56.2%;
  font-family: "Baloo 2", "Poppins", sans-serif;
  font-weight: 700;
  font-size: clamp(16px, 2.7vw, 30px);
}

.brainx-cert-date {
  top: 69.9%;
  left: 54%;
  width: 31%;
  text-align: left;
  font-size: clamp(11px, 1.7vw, 20px);
  font-weight: 600;
}

.brainx-cert-link {
  bottom: 21.2%;
  left: 57%;
  width: 29%;
  text-align: right;
  font-size: clamp(8px, 1.15vw, 13px);
  color: #3a4c89;
}

@media print {
  body * {
    visibility: hidden;
  }

  #printable-certificate,
  #printable-certificate * {
    visibility: visible;
  }

  #printable-certificate {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    box-shadow: none;
  }
}

/* Responsive */
@media (max-width: 991px) {
  .brainx-home-hero h1 {
    font-size: 40px;
  }

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

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

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

  .brainx-sub-card,
  .brainx-upgrade-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .brainx-login .sing-up-right {
    margin-top: 20px;
  }

  .brainx-program-wrap {
    grid-template-columns: 1fr;
  }

  .brainx-program-art {
    text-align: center;
  }

  .brainx-program-art img {
    max-width: 300px;
    max-height: 250px;
  }
}

@media (max-width: 767px) {
  .navbar .navbar-brand.logo .brainx-main-logo {
    height: 60px;
  }

  .footer .brainx-footer-logo {
    height: 56px;
  }

  .brainx-shell {
    padding: 20px 0 50px;
  }

  .brainx-home-hero {
    padding: 20px;
    border-radius: 20px;
  }

  .brainx-home-brand {
    font-size: 31px;
  }

  .brainx-home-hero h1 {
    font-size: 32px;
  }

  .brainx-home-sub {
    font-size: 15px;
  }

  .brainx-home-cta {
    flex-direction: column;
  }

  .brainx-home-cta .btn,
  .brainx-home-cta .ghost-btn {
    width: 100%;
    text-align: center;
  }

  .brainx-home-program .btn {
    width: 100%;
  }

  .brainx-program-cta .ghost-btn {
    width: 100%;
    text-align: center;
  }

  .brainx-course-grid .time-rate {
    flex-wrap: wrap;
    gap: 8px;
  }

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

  .brainx-stats-grid {
    grid-template-columns: 1fr;
  }

  .brainx-student-hero {
    padding: 16px;
    border-radius: 18px;
  }

  .brainx-progress-pill {
    max-width: 100%;
  }

  .brainx-continue-block {
    padding: 16px;
  }

  .brainx-continue-block > .d-flex {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 8px;
  }

  .brainx-subscription-page {
    padding: 16px;
  }

  .brainx-subscription-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .brainx-subscription-header .brainx-home-menu {
    width: 100%;
    gap: 10px;
    flex-wrap: wrap;
  }

  .brainx-subscription-header .brainx-home-menu a {
    font-size: 14px;
    line-height: 1.2;
    padding: 4px 0;
  }

  .brainx-sub-card .text-end {
    width: 100%;
    text-align: left !important;
  }

  .brainx-profile-mini {
    align-items: flex-start;
  }

  .brainx-login .sing-up-right {
    padding: 22px;
  }

  .brainx-login .sing-up-right h3 {
    font-size: 40px;
  }

  .brainx-certificate-template {
    border-radius: 12px;
  }
}

@media (max-width: 575px) {
  .brainx-shell {
    padding: 16px 0 38px;
  }

  .brainx-home-hero h1 {
    font-size: 28px;
  }

  .brainx-home-program h3 {
    font-size: 28px;
  }

  .brainx-price-main {
    font-size: 30px;
  }

  .brainx-stat-card {
    padding: 14px;
  }

  .brainx-profile-mini img {
    width: 56px;
    height: 56px;
  }

  .brainx-sub-links a {
    font-size: 14px;
  }

  .brainx-login .sing-up-right {
    padding: 18px;
  }

  .brainx-login .sing-up-right h3 {
    font-size: 34px;
  }

  .brainx-login .form-control {
    min-height: 48px;
    padding-left: 42px;
  }

  .brainx-login .position-relative > i.fa-solid {
    top: 16px;
  }
}
