/* Custom styles for Machera Health Learning LMS */

/* Global styles */
:root {
  --primary: #1a3d7c;
  --primary-light: #2d5ca9;
  --secondary: #20bf6b;
  --light: #f8fbff;
  --dark: #0f172a;
  --accent: #ff7846;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-600: #475569;
  --text-main: #000000;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #000000;
  line-height: 1.6;
  background-color: #fff;
}

/* Global transitions */
* {
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Section Spacing */
section {
  padding: 100px 0;
}

@media (max-width: 768px) {
  section {
    padding: 60px 0;
  }
}

/* Custom typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: #000000;
}

.display-4 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.lead {
  font-weight: 400;
  color: #000000;
  font-size: 1.15rem;
}

/* Enhanced Buttons */
.btn {
  border-radius: 10px;
  padding: 0.75rem 1.75rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.btn-primary {
  background: var(--primary);
  border: none;
  box-shadow: 0 4px 14px 0 rgba(26, 61, 124, 0.25);
}

.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(26, 61, 124, 0.3);
}

.btn-outline-primary {
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline-primary:hover {
  background: var(--primary);
  border-color: var(--primary);
}

/* Feature icons */
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  font-size: 1.8rem;
  border-radius: 50%;
  box-shadow: 0 10px 25px rgba(45, 92, 169, 0.2);
}

/* Course cards */
.card {
  transition: transform 0.3s ease, box-shadow 0.4s ease;
  border-radius: 10px;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12) !important;
}

.card-img-top {
  height: 200px;
  object-fit: cover;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.badge {
  font-weight: 500;
}

.rounded-pill {
  border-radius: 30px !important;
}

/* Hero section background */
header.bg-primary {
  background: linear-gradient(145deg, var(--primary) 0%, #4c7fd9 100%) !important;
  position: relative;
  overflow: hidden;
}

header.bg-primary::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  z-index: 0;
}

header.bg-primary::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  z-index: 0;
}

header.bg-primary .container {
  position: relative;
  z-index: 1;
}

/* Testimonial carousel styling */
.carousel-inner {
  border-radius: 15px;
}

.carousel-indicators {
  bottom: 0;
}

.carousel-indicators button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--primary);
  opacity: 0.5;
  margin: 0 5px;
}

.carousel-indicators button.active {
  opacity: 1;
}

/* Navbar styles */
.navbar {
  padding: 12px 0;
  transition: all 0.3s ease;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08) !important;
}

.navbar-brand {
  padding: 0;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: linear-gradient(135deg, #10213a 0%, #1a3d7c 55%, #8d5d4a 100%);
  color: #ffffff;
  box-shadow: 0 16px 32px rgba(16, 33, 58, 0.18);
  overflow: hidden;
}

.brand-mark__pulse {
  position: absolute;
  inset: auto auto 10px 10px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.brand-mark i {
  position: relative;
  font-size: 1.2rem;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name {
  font-family: 'Poppins', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #10213a;
}

.brand-tag {
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8d5d4a;
}

.nav-link {
  font-weight: 500;
  padding: 0.5rem 1rem;
  color: var(--dark);
  position: relative;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link.active {
  color: var(--primary);
  font-weight: 600;
}

.nav-link.active:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 3px;
  background-color: var(--primary);
  border-radius: 2px;
}

.navbar-toggler {
  border: none;
  padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: none;
  outline: none;
}

.dropdown-menu {
  border: none;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 0.7rem 0;
}

.dropdown-item {
  font-weight: 500;
  padding: 0.5rem 1.5rem;
  color: var(--dark);
}

.dropdown-item:hover, 
.dropdown-item:focus {
  background-color: rgba(45, 92, 169, 0.1);
  color: var(--primary);
}

.dropdown-divider {
  margin: 0.5rem 0;
}

.navbar-expand-lg .navbar-nav .dropdown-menu {
  margin-top: 10px;
}

/* Custom button styling */
.btn {
  border-radius: 8px;
  padding: 0.6rem 1.5rem;
  transition: all 0.3s ease;
  font-weight: 500;
}

.btn-lg {
  padding: 0.8rem 2rem;
  font-weight: 600;
}

.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 5px 15px rgba(45, 92, 169, 0.2);
}

.btn-primary:hover {
  background-color: #245091;
  border-color: #245091;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(45, 92, 169, 0.3);
}

.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline-primary:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* Footer styling */
.site-footer {
  position: relative;
  padding: 2rem 0 2.5rem;
  margin-top: 2rem;
  background:
    radial-gradient(circle at top left, rgba(255, 120, 70, 0.08), transparent 22%),
    linear-gradient(180deg, #f3f6fb 0%, #eef3fb 100%);
  border-top: 1px solid rgba(16, 33, 58, 0.08);
}

.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 92% 8%, rgba(26, 61, 124, 0.1), transparent 18%);
  pointer-events: none;
}

.site-footer .container {
  position: relative;
  z-index: 1;
}

.site-footer__top {
  padding: 2rem 0;
}

.site-footer__brand {
  display: inline-flex;
  margin-bottom: 1.5rem;
}

.site-footer__lead {
  max-width: 34rem;
  margin-bottom: 1.5rem;
  color: #5f6f85;
  line-height: 1.8;
}

.site-footer__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.site-footer__socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(16, 33, 58, 0.08);
  color: #10213a;
  text-decoration: none;
  box-shadow: 0 14px 28px rgba(16, 33, 58, 0.06);
}

.site-footer__socials a:hover {
  color: var(--primary);
  transform: translateY(-2px);
}

.site-footer__title {
  margin-bottom: 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8d5d4a;
}

.site-footer__links li + li {
  margin-top: 0.8rem;
}

.site-footer__links a,
.site-footer__legal a {
  color: #42546d;
  text-decoration: none;
}

.site-footer__links a:hover,
.site-footer__legal a:hover {
  color: var(--primary);
}

.site-footer__panel {
  padding: 1.5rem;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(16, 33, 58, 0.08);
  box-shadow: 0 20px 45px rgba(16, 33, 58, 0.06);
}

.site-footer__panel p {
  color: #5f6f85;
}

.site-footer__bottom {
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  border-top: 1px solid rgba(16, 33, 58, 0.08);
  color: #61728a;
}

.site-footer__legal {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 1.25rem;
}

/* Progress bar styling */
.progress {
  border-radius: 10px;
  background-color: #e9ecef;
}

.progress-bar {
  border-radius: 10px;
}

/* Call to action section */
.bg-primary.text-white {
  position: relative;
  background: linear-gradient(145deg, var(--primary) 0%, #4c7fd9 100%) !important;
  overflow: hidden;
}

.bg-primary.text-white::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../images/pattern-dots.png');
  opacity: 0.1;
  z-index: 0;
}

.bg-primary.text-white .container {
  position: relative;
  z-index: 1;
}

/* Login Page Styles */
.rounded-4 {
  border-radius: 16px !important;
}

.nav-pills .nav-link {
  border-radius: 8px;
  padding: 10px 20px;
  font-weight: 500;
  color: #555;
}

.nav-pills .nav-link.active, 
.nav-pills .show > .nav-link {
  background-color: var(--primary);
  color: white;
}

.divider-text {
  position: relative;
  display: inline-block;
  color: #777;
  font-size: 14px;
}

.divider-text:before,
.divider-text:after {
  content: "";
  position: absolute;
  top: 50%;
  width: 100px;
  height: 1px;
  background: #e0e0e0;
}

.divider-text:before {
  right: 100%;
  margin-right: 15px;
}

.divider-text:after {
  left: 100%;
  margin-left: 15px;
}

.social-btn {
  width: 44px;
  height: 44px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  border-radius: 8px;
  transition: all 0.2s;
}

.social-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.input-group-text {
  border: none;
}

.form-control:focus {
  box-shadow: 0 0 0 0.25rem rgba(45, 92, 169, 0.15);
  border-color: #6590d5;
}

.form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

/* Home page redesign: these styles give the landing page a cleaner and more elegant feel. */
.home-page {
  background:
    radial-gradient(circle at top left, rgba(255, 120, 70, 0.08), transparent 28%),
    linear-gradient(180deg, #f7f4ef 0%, #ffffff 30%, #f8fbff 100%);
  color: #132238;
}

.home-page section {
  position: relative;
}

.hero-elegant {
  padding: 72px 0 24px;
}

.hero-elegant::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 120, 70, 0.16), transparent 22%),
    radial-gradient(circle at 90% 10%, rgba(26, 61, 124, 0.12), transparent 24%);
  pointer-events: none;
}

.hero-elegant__content {
  min-height: min(760px, calc(100vh - 110px));
}

.hero-kicker,
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8d5d4a;
}

.hero-kicker::before,
.section-eyebrow::before {
  content: '';
  width: 44px;
  height: 1px;
  background: currentColor;
  opacity: 0.75;
}

.hero-title,
.section-heading {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #10213a;
}

.hero-copy,
.section-copy {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #55657c;
  max-width: 60ch;
}

.hero-proof-card {
  height: 100%;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(16, 33, 58, 0.08);
  border-radius: 20px;
  box-shadow: 0 18px 45px rgba(16, 33, 58, 0.07);
  backdrop-filter: blur(8px);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.hero-proof-label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #8d5d4a;
}

.hero-proof-card:hover {
  transform: translateY(-6px);
  border-color: rgba(26, 61, 124, 0.18);
  box-shadow: 0 24px 52px rgba(16, 33, 58, 0.12);
}

.hero-visual {
  position: relative;
  padding-left: 2rem;
}

.hero-visual__panel {
  position: relative;
  padding: 1.2rem;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(246, 249, 255, 0.95));
  border: 1px solid rgba(26, 61, 124, 0.08);
}

.hero-visual__badge {
  position: absolute;
  top: -18px;
  left: 26px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.8rem 1rem;
  background: #10213a;
  color: #ffffff;
  border-radius: 999px;
  box-shadow: 0 18px 40px rgba(16, 33, 58, 0.24);
}

.hero-visual__image {
  min-height: 520px;
  max-height: 620px;
  object-fit: cover;
  border-radius: 24px;
}

.hero-visual__floating {
  position: absolute;
  max-width: 230px;
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 20px;
  box-shadow: 0 20px 45px rgba(16, 33, 58, 0.13);
}

.hero-visual__floating--top {
  top: 90px;
  right: -24px;
}

.hero-visual__floating--bottom {
  bottom: 28px;
  left: -24px;
}

.trust-strip {
  padding: 1.5rem 0 2.5rem;
}

.trust-strip__item {
  height: 100%;
  padding: 1.5rem;
  text-align: center;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(16, 33, 58, 0.07);
  box-shadow: 0 16px 40px rgba(16, 33, 58, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.trust-strip__value {
  display: block;
  margin-bottom: 0.3rem;
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}

.trust-strip__item:hover {
  transform: translateY(-6px);
  border-color: rgba(26, 61, 124, 0.16);
  box-shadow: 0 24px 50px rgba(16, 33, 58, 0.1);
}

.info-card,
.journey-card,
.testimonial-card,
.empty-state-card {
  padding: 2rem;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(16, 33, 58, 0.08);
  border-radius: 28px;
  box-shadow: 0 20px 45px rgba(16, 33, 58, 0.07);
  transition: transform 0.32s ease, box-shadow 0.32s ease, border-color 0.32s ease, background-color 0.32s ease;
}

.info-card h3,
.journey-card h3,
.testimonial-card strong,
.empty-state-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
}

.info-card p,
.journey-card p,
.testimonial-card p,
.empty-state-card p {
  color: #607086;
}

.info-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin-bottom: 1.25rem;
  border-radius: 18px;
  font-size: 1.45rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover,
.journey-card:hover,
.testimonial-card:hover,
.empty-state-card:hover {
  transform: translateY(-8px);
  border-color: rgba(26, 61, 124, 0.14);
  box-shadow: 0 28px 56px rgba(16, 33, 58, 0.12);
}

.info-card:hover .info-card__icon {
  transform: scale(1.08) rotate(-4deg);
  box-shadow: 0 16px 30px rgba(16, 33, 58, 0.12);
}

.signature-band {
  background: linear-gradient(135deg, #132238 0%, #203a62 55%, #35548b 100%);
}

.signature-metrics {
  display: grid;
  gap: 1rem;
}

.signature-metrics > div {
  padding: 1.25rem 1.35rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.88);
  transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.signature-metrics strong,
.signature-metrics span {
  display: block;
}

.signature-metrics span {
  margin-top: 0.35rem;
  color: rgba(255, 255, 255, 0.68);
}

.signature-metrics > div:hover {
  transform: translateX(8px);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.16);
}

.course-showcase {
  overflow: hidden;
  border-radius: 30px;
  background: #ffffff;
  border: 1px solid rgba(16, 33, 58, 0.08);
  box-shadow: 0 22px 48px rgba(16, 33, 58, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.course-showcase__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.course-showcase__media img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.course-showcase:hover .course-showcase__media img {
  transform: scale(1.04);
}

.course-showcase:hover {
  transform: translateY(-10px);
  border-color: rgba(26, 61, 124, 0.14);
  box-shadow: 0 32px 60px rgba(16, 33, 58, 0.14);
}

.course-showcase__body {
  padding: 1.75rem;
}

.course-showcase__body h3 {
  font-size: 1.35rem;
  margin-bottom: 0.85rem;
}

.course-showcase__body p {
  color: #607086;
  margin-bottom: 0;
}

.course-showcase__price {
  font-size: 1.2rem;
  color: #10213a;
}

.empty-state-card {
  padding: 3rem 1.5rem;
}

.empty-state-card i {
  font-size: 3rem;
  color: var(--primary);
}

.journey-section {
  background: linear-gradient(180deg, rgba(232, 238, 251, 0.55), rgba(255, 255, 255, 0.4));
}

.journey-section__intro {
  max-width: 700px;
}

.journey-card__number {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #8d5d4a;
}

.journey-card:hover .journey-card__number {
  color: var(--primary);
}

.testimonial-card p {
  font-size: 1.05rem;
  line-height: 1.8;
}

.testimonial-card span {
  display: block;
  margin-top: 0.3rem;
  color: #8c98aa;
}

.cta-elegant {
  padding: 3rem 1.5rem;
  border-radius: 34px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.09), transparent 25%),
    linear-gradient(135deg, #10213a 0%, #1e3d68 55%, #8d5d4a 100%);
  box-shadow: 0 30px 60px rgba(16, 33, 58, 0.22);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.cta-elegant p {
  max-width: 620px;
}

.cta-elegant:hover {
  transform: translateY(-6px);
  box-shadow: 0 36px 72px rgba(16, 33, 58, 0.26);
}

@media (max-width: 991.98px) {
  .hero-elegant {
    padding-top: 48px;
  }

  .hero-elegant__content {
    min-height: auto;
  }

  .hero-visual {
    padding-left: 0;
  }

  .hero-visual__image {
    min-height: 420px;
  }

  .hero-visual__floating--top {
    right: 16px;
  }

  .hero-visual__floating--bottom {
    left: 16px;
  }
}

@media (max-width: 767.98px) {
  .brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 16px;
  }

  .brand-name {
    font-size: 1.15rem;
  }

  .brand-tag {
    font-size: 0.67rem;
  }

  .hero-title,
  .section-heading {
    font-size: clamp(2rem, 8vw, 2.7rem);
  }

  .hero-copy,
  .section-copy,
  .testimonial-card p {
    font-size: 1rem;
  }

  .hero-proof-card,
  .info-card,
  .journey-card,
  .testimonial-card,
  .empty-state-card {
    padding: 1.5rem;
    border-radius: 22px;
  }

  .hero-visual__panel {
    padding: 0.9rem;
    border-radius: 24px;
  }

  .hero-visual__image {
    min-height: 320px;
    max-height: 420px;
    border-radius: 18px;
  }

  .hero-visual__badge {
    position: static;
    margin-bottom: 0.9rem;
  }

  .hero-visual__floating {
    position: static;
    max-width: none;
    margin-top: 1rem;
  }

  .trust-strip {
    padding-top: 0.5rem;
  }

  .cta-elegant {
    padding: 2.25rem 1.25rem;
    border-radius: 26px;
  }

  .site-footer {
    padding-bottom: 2rem;
  }

  .site-footer__top {
    padding: 1rem 0;
  }

  .site-footer__panel {
    padding: 1.25rem;
    border-radius: 20px;
  }

  .site-footer__legal {
    justify-content: flex-start;
    gap: 0.9rem 1.25rem;
  }
}

/* Auth pages: these styles carry the homepage tone into sign-in and sign-up screens. */
.auth-page {
  background:
    radial-gradient(circle at top right, rgba(26, 61, 124, 0.12), transparent 24%),
    radial-gradient(circle at bottom left, rgba(255, 120, 70, 0.1), transparent 22%),
    linear-gradient(180deg, #f7f4ef 0%, #ffffff 38%, #f7fbff 100%);
}

.auth-shell {
  min-height: calc(100vh - 90px);
}

.auth-highlight-list {
  display: grid;
  gap: 1rem;
}

.auth-highlight-item,
.auth-demo-panel,
.auth-info-panel {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.2rem 1.25rem;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(16, 33, 58, 0.08);
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(16, 33, 58, 0.06);
  backdrop-filter: blur(8px);
}

.auth-highlight-item i,
.auth-info-panel i {
  font-size: 1.2rem;
  color: var(--primary);
}

.auth-highlight-item strong,
.auth-highlight-item span {
  display: block;
}

.auth-highlight-item span {
  color: #647489;
  margin-top: 0.2rem;
}

.auth-demo-panel {
  display: block;
}

.auth-demo-panel__title {
  margin-bottom: 0.5rem;
  font-weight: 700;
  color: #10213a;
}

.auth-card {
  overflow: hidden;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(16, 33, 58, 0.08);
  box-shadow: 0 28px 60px rgba(16, 33, 58, 0.1);
  backdrop-filter: blur(10px);
}

.auth-card__header {
  padding: 2rem 2rem 1.4rem;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.2), transparent 25%),
    linear-gradient(135deg, #10213a 0%, #1e3d68 60%, #8d5d4a 100%);
}

.auth-card__header h2,
.auth-card__header p,
.auth-card__header .section-eyebrow {
  color: #ffffff;
}

.auth-card__header .section-eyebrow {
  opacity: 0.82;
}

.auth-card__header .section-eyebrow::before {
  opacity: 0.45;
}

.auth-card__body {
  padding: 2rem;
}

.auth-card__footer {
  padding: 1.25rem 2rem 1.6rem;
  border-top: 1px solid rgba(16, 33, 58, 0.08);
  background: rgba(247, 250, 255, 0.9);
}

.auth-inline-link {
  color: var(--primary);
  text-decoration: none;
}

.auth-inline-link:hover {
  color: #245091;
}

.auth-input-group .input-group-text,
.auth-input {
  min-height: 56px;
  border-radius: 16px;
}

.auth-input-group {
  align-items: stretch;
}

.auth-input-group .input-group-text {
  border: 1px solid #dbe4f2;
  background: #f8fbff;
  color: #66758a;
  border-right: 0;
  padding-inline: 1rem;
}

.auth-input-group .form-control {
  border: 1px solid #dbe4f2;
  border-left: 0;
  padding-inline: 1rem;
}

.auth-input-group .btn {
  border-top-right-radius: 16px;
  border-bottom-right-radius: 16px;
}

.auth-input,
.auth-card .form-control,
.auth-card .form-select {
  border: 1px solid #dbe4f2;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: #fbfdff;
}

.auth-card .form-control:focus,
.auth-card .form-select:focus {
  border-color: #8fb0e8;
  box-shadow: 0 0 0 0.25rem rgba(45, 92, 169, 0.12);
  background: #ffffff;
}

.auth-alert {
  border-radius: 18px;
  border: 0;
}

.auth-info-panel {
  align-items: center;
  background: linear-gradient(180deg, #f7fbff, #eef5ff);
}

@media (max-width: 991.98px) {
  .auth-card__header,
  .auth-card__body,
  .auth-card__footer {
    padding-inline: 1.5rem;
  }
}

/* Student dashboard: these styles extend the elegant public design into the signed-in student area. */
.student-dashboard-page {
  background:
    radial-gradient(circle at top left, rgba(255, 120, 70, 0.08), transparent 22%),
    radial-gradient(circle at top right, rgba(26, 61, 124, 0.08), transparent 20%),
    linear-gradient(180deg, #f8f5f0 0%, #ffffff 32%, #f7fbff 100%);
}

.student-dashboard .breadcrumb-wrapper,
.student-dashboard nav[aria-label="breadcrumb"] .breadcrumb {
  margin-bottom: 0;
}

.student-hero__panel,
.student-hero__side,
.student-stat-card,
.student-section-card,
.student-course-card,
.student-empty-state {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(16, 33, 58, 0.08);
  box-shadow: 0 22px 48px rgba(16, 33, 58, 0.07);
}

.student-hero__panel,
.student-hero__side,
.student-section-card {
  border-radius: 32px;
}

.student-hero__panel {
  padding: 2rem;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.22), transparent 28%),
    linear-gradient(135deg, rgba(16, 33, 58, 0.98) 0%, rgba(30, 61, 104, 0.96) 58%, rgba(141, 93, 74, 0.9) 100%);
}

.student-hero__panel .section-eyebrow,
.student-hero__panel .section-eyebrow::before,
.student-hero__title,
.student-hero__copy,
.student-hero__mini-card strong,
.student-hero__mini-label {
  color: #ffffff;
}

.student-hero__panel .section-eyebrow {
  opacity: 0.82;
}

.student-hero__title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.student-hero__copy {
  max-width: 55ch;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
  line-height: 1.8;
}

.student-hero__mini-card {
  height: 100%;
  padding: 1.2rem 1.25rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.student-hero__mini-label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.student-hero__mini-card strong {
  font-size: 1.35rem;
}

.student-hero__side {
  padding: 2rem;
  height: 100%;
}

.student-card__eyebrow {
  margin-bottom: 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8d5d4a;
}

.student-hero__side-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.75rem;
  line-height: 1.2;
  color: #10213a;
}

.student-hero__side-copy {
  color: #5e6f86;
  line-height: 1.8;
}

.student-progress-ring {
  display: flex;
  justify-content: center;
}

.student-progress-ring__track {
  width: 136px;
  height: 136px;
  padding: 10px;
  border-radius: 50%;
  background: conic-gradient(var(--primary) calc(var(--progress, 0) * 1%), #e8eef9 0);
}

.student-progress-ring__fill {
  --progress: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #ffffff;
}

.student-progress-ring__fill span {
  font-family: 'Poppins', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #10213a;
}

.student-stat-card {
  height: 100%;
  padding: 1.6rem;
  border-radius: 28px;
}

.student-stat-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 1rem;
  border-radius: 18px;
  font-size: 1.35rem;
}

.student-stat-card__label {
  margin-bottom: 0.45rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8d5d4a;
}

.student-stat-card h3 {
  margin-bottom: 0.7rem;
  font-size: 1.4rem;
  color: #10213a;
}

.student-stat-card p {
  color: #62738a;
  line-height: 1.75;
}

.student-stat-card__email {
  font-size: 1.05rem !important;
  word-break: break-word;
}

.student-section-card {
  padding: 2rem;
}

.student-section-card__title {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  line-height: 1.15;
  color: #10213a;
}

.student-section-card__copy {
  color: #62738a;
  line-height: 1.8;
}

.student-course-card {
  padding: 1.5rem;
  border-radius: 28px;
}

.student-course-card__main h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  color: #10213a;
}

.student-course-card__main p {
  color: #647489;
  line-height: 1.75;
}

.student-course-card__meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.student-course-card__meta-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #8d5d4a;
}

.student-course-card__meta strong {
  color: #10213a;
}

.student-course-card__progress .progress {
  height: 8px;
  margin-bottom: 0.55rem;
  background: #e7edf8;
}

.student-course-card__progress .progress-bar {
  background: linear-gradient(90deg, #1a3d7c 0%, #4d73b8 100%);
}

.student-course-card__actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.student-empty-state {
  padding: 3rem 1.5rem;
  border-radius: 28px;
}

.student-empty-state i {
  font-size: 3rem;
  color: var(--primary);
}

@media (max-width: 991.98px) {
  .student-hero__panel,
  .student-hero__side,
  .student-section-card {
    border-radius: 24px;
  }

  .student-course-card__actions {
    justify-content: flex-start;
  }
}

@media (max-width: 767.98px) {
  .student-hero__panel,
  .student-hero__side,
  .student-stat-card,
  .student-section-card,
  .student-course-card,
  .student-empty-state {
    padding: 1.35rem;
    border-radius: 22px;
  }

  .student-hero__title {
    font-size: clamp(2rem, 10vw, 2.5rem);
  }

  .student-section-card__title {
    font-size: 1.65rem;
  }

  .student-progress-ring__track {
    width: 116px;
    height: 116px;
  }

  .student-course-card__actions {
    flex-direction: column;
  }

  .student-course-card__actions .btn {
    width: 100%;
  }
}

/* Inner pages: these reusable sections keep public marketing pages visually consistent. */
.inner-page {
  background:
    radial-gradient(circle at top left, rgba(255, 120, 70, 0.08), transparent 24%),
    radial-gradient(circle at top right, rgba(26, 61, 124, 0.08), transparent 20%),
    linear-gradient(180deg, #f7f4ef 0%, #ffffff 34%, #f7fbff 100%);
}

.inner-hero {
  padding: 3rem 0 1.5rem;
}

.inner-hero__panel,
.inner-surface-card,
.editorial-surface,
.stats-surface,
.pricing-elegant-card,
.catalog-sidebar-card,
.mini-course-card,
.review-card,
.team-elegant-card {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(16, 33, 58, 0.08);
  box-shadow: 0 22px 48px rgba(16, 33, 58, 0.07);
}

.inner-hero__panel,
.inner-surface-card,
.editorial-surface,
.stats-surface,
.pricing-elegant-card,
.catalog-sidebar-card,
.mini-course-card,
.review-card {
  border-radius: 32px;
}

.inner-hero__panel,
.inner-surface-card,
.editorial-surface,
.stats-surface,
.catalog-sidebar-card,
.pricing-elegant-card {
  padding: 2rem;
}

.inner-hero__title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: #10213a;
}

.inner-hero__copy {
  max-width: 62ch;
  color: #5f6f85;
  font-size: 1.05rem;
  line-height: 1.85;
}

.content-narrow {
  max-width: 760px;
}

.editorial-media-card {
  overflow: hidden;
  border-radius: 32px;
  box-shadow: 0 22px 48px rgba(16, 33, 58, 0.12);
}

.editorial-media-card img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.editorial-check-list {
  display: grid;
  gap: 0.95rem;
}

.editorial-check-list > div {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  color: #5f6f85;
}

.editorial-check-list i {
  color: var(--primary);
  margin-top: 0.15rem;
}

.stats-surface__item strong {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  color: #10213a;
}

.stats-surface__item span {
  color: #6a788d;
}

.team-elegant-card {
  overflow: hidden;
  border-radius: 28px;
}

.team-elegant-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.team-elegant-card__body {
  padding: 1.5rem;
}

.team-elegant-card__body h3 {
  font-size: 1.2rem;
  margin-bottom: 0.35rem;
}

.team-elegant-card__role {
  color: #8d5d4a;
  font-weight: 600;
}

.inner-input {
  border: 1px solid #dbe4f2;
  border-radius: 16px;
  padding: 0.9rem 1rem;
  background: #fbfdff;
}

.inner-input:focus {
  border-color: #8fb0e8;
  box-shadow: 0 0 0 0.25rem rgba(45, 92, 169, 0.12);
  background: #ffffff;
}

.inner-alert {
  border-radius: 18px;
  border: 0;
}

.elegant-accordion .accordion-item {
  overflow: hidden;
  margin-bottom: 1rem;
  border: 1px solid rgba(16, 33, 58, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 36px rgba(16, 33, 58, 0.05);
}

.elegant-accordion .accordion-button {
  padding: 1.25rem 1.35rem;
  font-weight: 600;
  background: transparent;
  box-shadow: none;
}

.elegant-accordion .accordion-button:not(.collapsed) {
  color: #10213a;
  background: rgba(248, 251, 255, 0.85);
}

.elegant-accordion .accordion-button:focus {
  box-shadow: none;
}

.elegant-accordion .accordion-body {
  padding: 1.25rem 1.35rem 1.4rem;
}

.pricing-elegant-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.pricing-elegant-card__eyebrow {
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8d5d4a;
}

.pricing-elegant-card__top h2 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.pricing-elegant-card__price {
  display: flex;
  align-items: end;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.pricing-elegant-card__price strong {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  color: #10213a;
}

.pricing-elegant-card__price span {
  color: #6a788d;
}

.pricing-elegant-card__body {
  flex: 1;
}

.pricing-elegant-card__body p {
  color: #5f6f85;
}

.catalog-sidebar-card {
  overflow: hidden;
  padding: 0;
}

.catalog-sidebar-card__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.catalog-sidebar-card__body {
  padding: 1.5rem;
}

.course-rich-content {
  color: #506178;
  line-height: 1.85;
}

.course-rich-content img {
  max-width: 100%;
  height: auto;
  border-radius: 18px;
  margin: 1rem 0;
}

.course-rich-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}

.course-rich-content table td,
.course-rich-content table th {
  padding: 0.85rem;
  border: 1px solid #dce4ef;
}

.course-rich-content blockquote {
  margin: 1.5rem 0;
  padding: 0.9rem 1rem 0.9rem 1.25rem;
  border-left: 4px solid var(--primary);
  background: #f8fbff;
  border-radius: 0 16px 16px 0;
}

.mini-course-card {
  padding: 1.25rem;
}

.mini-course-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0;
}

.mini-course-card span {
  color: #5f6f85;
}

.review-stack {
  display: grid;
  gap: 1rem;
}

.review-card {
  padding: 1.25rem;
}

.review-card h3 {
  font-size: 1rem;
  margin-bottom: 0.15rem;
}

.review-card p {
  color: #607086;
}

.lesson-list-elegant {
  display: grid;
  gap: 0.75rem;
}

.lesson-list-elegant__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.1rem;
  background: rgba(248, 251, 255, 0.88);
  border: 1px solid rgba(16, 33, 58, 0.08);
  border-radius: 18px;
  color: #10213a;
}

.lesson-list-elegant__main {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.lesson-list-elegant__main i {
  color: var(--primary);
  font-size: 1.25rem;
}

.lesson-list-elegant__main strong,
.lesson-list-elegant__main span {
  display: block;
}

.lesson-list-elegant__main span {
  color: #6b7a8f;
  font-size: 0.92rem;
}

@media (max-width: 767.98px) {
  .inner-hero {
    padding-top: 2rem;
  }

  .inner-hero__panel,
  .inner-surface-card,
  .editorial-surface,
  .stats-surface,
  .pricing-elegant-card,
  .catalog-sidebar-card,
  .mini-course-card,
  .review-card {
    padding: 1.35rem;
    border-radius: 22px;
  }

  .editorial-media-card,
  .team-elegant-card {
    border-radius: 24px;
  }

  .editorial-media-card img {
    min-height: 280px;
  }

  .lesson-list-elegant__item {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 767.98px) {
  .auth-shell {
    min-height: auto;
  }

  .auth-card {
    border-radius: 24px;
  }

  .auth-card__header,
  .auth-card__body,
  .auth-card__footer {
    padding: 1.35rem;
  }

  .auth-highlight-item,
  .auth-demo-panel,
  .auth-info-panel {
    padding: 1rem;
    border-radius: 18px;
  }
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .navbar .btn {
    margin-top: 10px;
  }
  
  header.bg-primary {
    text-align: center;
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
  
  header.bg-primary img {
    margin-top: 2rem;
  }
}

@media (max-width: 768px) {
  .feature-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  .display-4 {
    font-size: 2.5rem;
  }
  
  .card-img-top {
    height: 180px;
  }
}

.btn-accent {
  background-color: var(--accent);
  border-color: var(--accent);
  color: white !important;
}

.btn-accent:hover {
  background-color: #e86835;
  border-color: #e86835;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 120, 70, 0.3);
}

.home-page .hero-section {
  padding: 120px 0 100px;
  background: radial-gradient(circle at top right, #1e40af, #1a3d7c);
  color: white;
}

.home-page .hero-section h1,
.home-page .hero-section .display-3 {
  color: white !important;
}

.home-page .hero-section .lead {
  color: rgba(255, 255, 255, 0.9) !important;
}

.home-page .hero-section .text-white {
  color: white !important;
}

.home-page .hero-section .btn-outline-light {
  color: white !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
}

.home-page .hero-section .btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.1) !important;
  color: white !important;
}

/* Home Page Layout System */
.home-page .section-header {
  max-width: 650px;
  margin-bottom: 60px;
}

.home-page .section-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  line-height: 1.1;
}

.home-page .section-subtitle {
  font-size: 1.125rem;
  color: #000000;
  line-height: 1.6;
}

/* Feature Grid Refinement */
.feature-card {
  padding: 40px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--gray-200);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
  border-color: var(--primary-light);
}

.feature-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

/* Course Card Enhancement */
.course-card {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  background: #fff;
  height: 100%;
}

.course-card .card-img-wrapper {
  position: relative;
  overflow: hidden;
  padding-top: 60%;
}

.course-card .card-img-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.course-card:hover .card-img-wrapper img {
  transform: scale(1.05);
}

.course-card .card-body {
  padding: 24px;
  color: #000000;
}

/* Trust Section Refinement */
.trust-logo {
  filter: grayscale(1) opacity(0.6);
  transition: all 0.3s ease;
  max-height: 40px;
}

.trust-logo:hover {
  filter: grayscale(0) opacity(1);
}

/* CTA Section 2.0 */
.cta-banner {
  background: var(--dark);
  border-radius: 32px;
  padding: 80px 60px;
  position: relative;
  overflow: hidden;
}

.cta-banner::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(26, 61, 124, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

/* CTA Banner Fix */
.cta-banner h2 {
  color: #ffffff !important;
}

.cta-banner .lead {
  color: rgba(255, 255, 255, 0.8) !important;
}

.cta-banner .btn-outline-light {
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
}

.cta-banner .btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
}

/* Custom Gradients */
.bg-gradient-soft {
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.home-page .carousel-control-prev-icon,
.home-page .carousel-control-next-icon {
  filter: invert(52%) sepia(11%) saturate(2879%) hue-rotate(183deg) brightness(93%) contrast(95%);
}

/* Tablet and below: center hero content and reduce visual weight. */
@media (max-width: 991.98px) {
  .home-page .hero-section {
    text-align: center;
  }

  .home-page .hero-chip {
    justify-content: center;
  }

  .home-page .hero-section::before {
    width: 300px;
    height: 300px;
    top: -120px;
    right: -110px;
  }
}

/* Mobile: reduce heading size and image height to keep spacing balanced. */
@media (max-width: 767.98px) {
  .home-page .display-4 {
    font-size: 2.1rem;
  }

  .home-page .hero-section .btn-lg {
    width: 100%;
  }

  .home-page .course-card .card-img-top {
    height: 190px;
  }

  .home-page .process-step {
    padding: 1.25rem;
  }
}
