 /* Si Educational - HTML/CSS */

/* Уйгаржин монгол бичиг — CMSUB (assets/fonts: CMSUB.woff, .ttf, .eot, .svg) */
@font-face {
  font-family: 'CMSUB';
  font-style: normal;
  font-weight: normal;
  font-display: swap;
  src: url('../fonts/CMSUB.eot');
  src: url('../fonts/CMSUB.eot?#iefix') format('embedded-opentype'),
       url('../fonts/CMSUB.woff') format('woff'),
       url('../fonts/CMSUB.ttf') format('truetype'),
       url('../fonts/CMSUB.svg#CMSUB') format('svg');
}

:root {

  --primary: linear-gradient(135deg, #2C8CFF 0%, #22CEE9 100%);
  --cream: #fcf5ef;
  --success: #6b9f36;
  --orange: #f9cd92;
  --gray-200: #e5e7eb;
  --gray-400: #9ca3af;
  --gray-700: #374151;
  --gray-900: #111827;
  --shadow-mentor: 0px 4px 20px rgba(110, 127, 185, 0.1);
  --container: min(1280px, 100% - 2rem);
}

*,
::after,
::before {
  box-sizing: border-box;
  border-color: var(--gray-200);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'Roboto Condensed', sans-serif;
  line-height: 1.5;
  color: var(--gray-900);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

section {
  padding: 3.5rem 0;
}

h1 {
  font-size: clamp(1.875rem, 5vw, 4.5rem);
  font-weight: 700;
  color: #000;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 0.5rem;
}

h2 {
  font-size: clamp(1.5rem, 4vw, 3rem);
  font-weight: 700;
  color: #000;
  letter-spacing: -0.025em;
  margin: 0 0 1rem;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.container {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Bootstrap-тэй төстэй alert загвар (frontend-д bootstrap байхгүй үед) */
.alert {
  position: relative;
  padding: 0.85rem 1rem;
  margin: 0.75rem 0;
  border: 1px solid transparent;
  border-radius: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.45;
}
.alert a { color: inherit; font-weight: 700; text-decoration: underline; }
.alert-success { color: #0f5132; background: #d1e7dd; border-color: #badbcc; }
.alert-warning { color: #664d03; background: #fff3cd; border-color: #ffecb5; }
.alert-danger  { color: #842029; background: #f8d7da; border-color: #f5c2c7; }
.alert-info    { color: #055160; background: #cff4fc; border-color: #b6effb; }

/* Үндсэн контент хэсэг — flex:1 тул footer хуудсын доор үлдэнэ */
main {
  width: 100%;
  flex: 1;
  padding-top: 5rem;
}
.main-inner {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 0.5rem;
  cursor: poRoboto Condensed;
  transition: all 0.3s;
  border: 2px solid transparent;
  text-decoration: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #2C8CFF 0%, #22CEE9 100%);
  color: #fff;
  border-color: transparent;
}

/* Disable state */
.btn:disabled,
.btn[disabled],
.btn-primary:disabled,
.btn-primary[disabled] {
  background: #e5e7eb !important;
  border-color: #e5e7eb !important;
  color: #9ca3af !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
}

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

.btn-outline:hover {
  background: linear-gradient(135deg, #2C8CFF 0%, #22CEE9 100%);
  color: #fff;
  border-color: transparent;
}

.btn-block {
  width: 100%;
  text-align: center;
}

.btn-lg {
  padding: 1rem 1.5rem;
  font-size: 1.125rem;
  border-radius: 9999px;
}

.btn-start {
  align-self: flex-end;
  padding: 1rem;
  font-weight: 700;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: #fff;
  padding: 1rem 0;
  transition: box-shadow 0.3s;
}

.header.sticky {
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}

/* Home-оос өөр хуудас дээр үндсэн цэний доод сүүдэр */
.header.header-with-shadow {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo-link {
  display: block;
}

.logo-img {
  width: auto;
  height: 2.5rem;
}

.nav-desktop {
  display: none;
}

@media (min-width: 1024px) {
  .nav-desktop {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-left: 3.5rem;
    flex: 1;
  }
  .nav-desktop a {
    color: var(--gray-900);
    text-decoration: none;
    font-weight: 500;
  }
  .nav-desktop a:hover {
    color: var(--primary);
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-actions .btn {
  display: none;
}

@media (min-width: 1024px) {
  .header-actions .btn {
    display: inline-block;
  }
}

.btn-mobile-menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: poRoboto Condensed;
}

@media (min-width: 1024px) {
  .btn-mobile-menu {
    display: none;
  }
}

.btn-mobile-menu span {
  display: block;
  width: 1.5rem;
  height: 2px;
  background: #000;
}

/* Mobile menu */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 45;
}

.mobile-menu-overlay.open {
  display: block;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 20rem;
  height: 100%;
  background: #fff;
  box-shadow: -10px 0 30px rgba(0,0,0,0.1);
  z-index: 50;
  transform: translateX(100%);
  transition: transform 0.3s;
  overflow-y: auto;
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
}

.btn-close {
  width: 2rem;
  height: 2rem;
  font-size: 1.5rem;
  line-height: 1;
  border: none;
  background: rgba(0,0,0,0.2);
  border-radius: 9999px;
  color: #fff;
  cursor: poRoboto Condensed;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1rem;
  gap: 0.5rem;
}

.mobile-nav .mobile-link {
  display: block;
  padding: 0.5rem 0;
  color: var(--gray-900);
  text-decoration: none;
  font-weight: 500;
}

.mobile-nav .btn {
  margin-top: 1rem;
  width: 100%;
}

/* Sign In / Sign Up modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 1rem;
}

.modal-overlay.open {
  display: flex;
}

.auth-modal {
  position: relative;
  width: 100%;
  max-width: 28rem;
  background: #fff;
  border-radius: 0.5rem;
  padding: 2.5rem 2rem 2rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.auth-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2rem;
  height: 2rem;
  border: none;
  background: none;
  font-size: 1.25rem;
  line-height: 1;
  color: #000;
  cursor: poRoboto Condensed;
  padding: 0;
  border-radius: 0.25rem;
}

.auth-modal-close:hover {
  color: #6A2D87;
}

/* Si лого – нил ягаан дөрвөлжин */
.auth-modal-logo {
  margin-bottom: 1.25rem;
}

.auth-modal-logo .logo-img {
  margin: 0 auto;
  height: 2.5rem;
  width: auto;
}

.auth-logo-si {
  display: flex;
  justify-content: center;
}

.auth-logo-si-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  background: #6A2D87;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  border-radius: 0.5rem;
}

/* Social Sign In товчууд */
.auth-social-row {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.auth-social-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  font-size: 0.9375rem;
  color: #333;
  background: #fff;
  border: 1px solid #D3D3D3;
  border-radius: 0.5rem;
  cursor: poRoboto Condensed;
  font-family: inherit;
  transition: border-color 0.2s, background 0.2s;
}

.auth-social-btn:hover {
  background: #f8f8f8;
  border-color: #b0b0b0;
}

.auth-social-btn img {
  flex-shrink: 0;
}

/* OR тусгаарлагч */
.auth-separator {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.auth-separator-line {
  flex: 1;
  height: 1px;
  background: #D3D3D3;
}

.auth-separator-text {
  font-size: 0.875rem;
  color: #333;
  font-weight: 500;
}

/* Нэвтрэх форм */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin-bottom: 1rem;
}

.auth-input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid #D3D3D3;
  border-radius: 0.5rem;
  font-family: inherit;
  transition: border-color 0.2s;
  background: #fff;
}

.auth-input:focus {
  outline: none;
  border-color: #6A2D87;
}

.auth-input::placeholder {
  color: #999;
}

.auth-name-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
}

.auth-name-grid > .guest-login-field {
  min-width: 0;
}

.auth-name-grid .auth-input {
  width: 100%;
  min-width: 0;
}

@media (max-width: 520px) {
  .auth-name-grid {
    grid-template-columns: 1fr;
  }
}

/* Sign In гол товч – нил ягаан */
.auth-submit-btn {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: #6A2D87;
  border: none;
  border-radius: 0.5rem;
  cursor: poRoboto Condensed;
  font-family: inherit;
  margin-top: 0.25rem;
  transition: background 0.2s;
}

.auth-submit-btn:hover {
  background: linear-gradient(135deg, #2C8CFF 0%, #22CEE9 100%);
  color: #fff;
}

.auth-submit {
  width: 100%;
  padding: 0.75rem;
  margin-top: 0.25rem;
}

/* Холбоосууд – нил ягаан өнгө */
.auth-link {
  color: #6A2D87;
  text-decoration: none;
  font-size: 0.875rem;
}

.auth-link:hover {
  text-decoration: underline;
  color: #8A4E9E;
}

.auth-link-forgot {
  display: inline-block;
  margin-bottom: 0.75rem;
}

.auth-switch,
.auth-terms {
  font-size: 0.875rem;
  color: #6A2D87;
  margin: 0.25rem 0 0;
}

.auth-terms {
  margin-bottom: 0.5rem;
}

/* Нэвтрээгүй: header доор цагаан зайгүй, саарал дэвсгэр шууд холбогдоно */
body.page-guest-login {
  background: #f5f5f5;
}

.page-guest-login main {
  padding: 0;
  background: #f5f5f5;
}

.page-guest-login .guest-login-main {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  margin: 0;
  padding: 1rem clamp(1.25rem, 4vw, 3rem) 3rem;
  background: #f5f5f5;
  overflow: hidden;
}

/* Дэвсгэр: бүдэг математик, физикийн томъёо */
.guest-auth-formulas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.guest-formula {
  position: absolute;
  font-family: 'Times New Roman', 'Cambria Math', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  line-height: 1.2;
  color: rgba(44, 140, 255, 0.14);
  opacity: 0.75;
  filter: blur(0.4px);
  white-space: nowrap;
  user-select: none;
}

.guest-formula sub,
.guest-formula sup {
  font-size: 0.72em;
  font-style: normal;
}

.guest-formula--1  { top: 8%;  left: 4%;   font-size: clamp(1.5rem, 2.8vw, 2.25rem); transform: rotate(-12deg); }
.guest-formula--2  { top: 22%; left: 18%;  font-size: clamp(1.25rem, 2.2vw, 1.85rem); transform: rotate(6deg); color: rgba(107, 114, 128, 0.16); }
.guest-formula--3  { top: 14%; right: 8%;  font-size: clamp(1.35rem, 2.4vw, 2rem);   transform: rotate(8deg); }
.guest-formula--4  { top: 38%; left: 6%;   font-size: clamp(1.4rem, 2.5vw, 2.1rem);  transform: rotate(-5deg); }
.guest-formula--5  { top: 52%; left: 12%;  font-size: clamp(1.1rem, 1.9vw, 1.6rem);  transform: rotate(4deg); color: rgba(107, 114, 128, 0.14); }
.guest-formula--6  { top: 46%; right: 14%; font-size: clamp(1.2rem, 2vw, 1.75rem);  transform: rotate(-8deg); }
.guest-formula--7  { top: 62%; left: 3%;   font-size: clamp(1.15rem, 2vw, 1.7rem);  transform: rotate(10deg); }
.guest-formula--8  { top: 68%; right: 6%;  font-size: clamp(1.3rem, 2.3vw, 1.95rem); transform: rotate(-6deg); color: rgba(107, 114, 128, 0.15); }
.guest-formula--9  { top: 78%; left: 22%;  font-size: clamp(1.25rem, 2.1vw, 1.8rem);  transform: rotate(7deg); }
.guest-formula--10 { top: 30%; right: 22%; font-size: clamp(1rem, 1.8vw, 1.5rem);   transform: rotate(-14deg); color: rgba(107, 114, 128, 0.13); }
.guest-formula--11 { top: 58%; right: 3%;  font-size: clamp(1.35rem, 2.4vw, 2rem);  transform: rotate(12deg); }
.guest-formula--12 { top: 72%; left: 38%;  font-size: clamp(0.95rem, 1.6vw, 1.4rem); transform: rotate(-4deg); color: rgba(107, 114, 128, 0.14); }
.guest-formula--13 { top: 18%; left: 42%;  font-size: clamp(1.1rem, 2vw, 1.65rem);  transform: rotate(-10deg); }
.guest-formula--14 { top: 84%; right: 28%; font-size: clamp(1rem, 1.7vw, 1.45rem); transform: rotate(5deg); }

@media (max-width: 960px) {
  .guest-formula--5,
  .guest-formula--10,
  .guest-formula--12,
  .guest-formula--13,
  .guest-formula--14 {
    display: none;
  }
}

.guest-auth-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
}

.page-guest-login .guest-auth-layout {
  margin-top: -2.5rem;
}

.guest-auth-promo {
  text-align: left;
  padding-right: clamp(0rem, 2vw, 2rem);
}

.guest-auth-promo-logo {
  margin: 0 0 1.125rem;
}

.guest-auth-promo-logo .logo-img {
  height: 3.75rem;
  width: auto;
}

.guest-auth-promo-title {
  margin: 0 0 1.5rem;
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #111827;
}

.guest-auth-promo-text {
  margin: 0;
  max-width: 36rem;
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  line-height: 1.7;
  color: #4b5563;
}

.guest-auth-promo::before {
  content: '';
  display: block;
  width: 3rem;
  height: 0.25rem;
  margin-bottom: 1.5rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #2c8cff 0%, #22cee9 100%);
}

.guest-auth-form-col {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
}

.guest-login-bg-dots {
  position: absolute;
  width: 220px;
  height: 220px;
  background-image: radial-gradient(circle, rgba(147, 112, 219, 0.45) 2px, transparent 2px);
  background-size: 14px 14px;
  pointer-events: none;
  z-index: 0;
}

.guest-login-bg-dots--tr {
  top: 12%;
  right: 4%;
}

.guest-login-bg-dots--bl {
  bottom: 14%;
  left: 8%;
}

.guest-auth-panels {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
}

@media (max-width: 960px) {
  .guest-auth-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 32rem;
  }

  .guest-auth-promo {
    text-align: center;
    padding-right: 0;
  }

  .guest-auth-promo-logo {
    display: flex;
    justify-content: center;
  }

  .guest-auth-promo::before {
    margin-left: auto;
    margin-right: auto;
  }

  .guest-auth-promo-text {
    margin-left: auto;
    margin-right: auto;
  }

  .guest-auth-form-col {
    justify-content: center;
  }
}

#guestAuthMain:not(.guest-auth-view-signup) #guestSignUpPanel,
#guestAuthMain.guest-auth-view-signup #guestLoginPanel,
#guestAuthMain.guest-auth-view-signup #guestForgotPanel,
#guestAuthMain.guest-auth-view-forgot #guestLoginPanel,
#guestAuthMain.guest-auth-view-forgot #guestSignUpPanel,
#guestAuthMain:not(.guest-auth-view-forgot) #guestForgotPanel {
  display: none !important;
}

.guest-auth-forgot-hint {
  margin: -0.5rem 0 1.125rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #6b7280;
  text-align: center;
}

.guest-login-success {
  color: #0a7a2e;
  font-size: 14px;
  margin: 0 0 12px;
  line-height: 1.45;
}

.guest-login-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 12px;
  padding: 2.5rem 2.25rem 2rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
  text-align: left;
}

.guest-login-card--signup {
  max-width: 480px;
}

.guest-auth-title {
  margin: 0 0 1.25rem;
  font-size: 1.25rem;
  font-weight: 600;
  text-align: center;
  color: #333;
}

.guest-signup-name-grid,
.guest-signup-class-grid,
.guest-signup-contact-grid {
  margin: 0;
}

.guest-signup-contact-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
}

.guest-login-logo {
  text-align: center;
  margin-bottom: 1.75rem;
}

.guest-login-logo .logo-img {
  height: 3rem;
  width: auto;
  margin: 0 auto;
}

.guest-login-error {
  color: #c00;
  font-size: 14px;
  margin: 0 0 12px;
}

.guest-login-form {
  margin-bottom: 0.75rem;
  gap: 1.125rem;
}

.guest-login-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.guest-login-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #4a4a4a;
}

.guest-login-input {
  padding: 0.7rem 0.9rem;
  font-size: 0.9375rem;
  border-radius: 8px;
}

.guest-login-remember {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: #4a4a4a;
  cursor: pointer;
  margin: 0.25rem 0 0.5rem;
  user-select: none;
}

.guest-login-remember input {
  width: 1rem;
  height: 1rem;
  accent-color: #1e5631;
  cursor: pointer;
}

.guest-login-submit {
  background: #1e5631;
  border-radius: 8px;
  margin-top: 0.5rem;
  padding: 0.8rem 1rem;
}

.guest-login-submit:hover {
  background: #164a28;
}

.guest-login-forgot {
  display: inline-block;
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
  color: #555;
}

.guest-login-forgot:hover {
  color: #1e5631;
}

.guest-login-switch {
  text-align: center;
  margin-top: 1.25rem;
  color: #555;
}

.guest-login-switch .auth-link {
  color: #1e5631;
  font-weight: 600;
}

.page-guest-login .header {
  display: none;
}

/* Hero - цайвар шаргал эхлэл хэсэг */
.hero {
  position: relative;
  padding-top: 7rem;
  padding-bottom: 5rem;
  background: var(--cream);
  background-color: #fcf5ef;
}

/* Технологийн логонууд - агуулгын эргэн тойронд дугуй хэлбэртэй */
.hero-logos {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.hero-logo-item {
  position: absolute;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem;
}

.hero-logo-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (min-width: 768px) {
  .hero-logo-item {
    width: 4rem;
    height: 4rem;
    padding: 0.5rem;
  }
}

.hero-logo-1 { top: 18%; left: 8%; }
.hero-logo-2 { top: 12%; right: 10%; }
.hero-logo-3 { top: 50%; right: 6%; transform: translateY(-50%); }
.hero-logo-4 { top: 50%; left: 5%; transform: translateY(-50%); }
.hero-logo-5 { bottom: 22%; left: 12%; }
.hero-logo-6 { bottom: 18%; right: 14%; }

@media (max-width: 767px) {
  .hero-logo-1 { top: 14%; left: 4%; width: 2.5rem; height: 2.5rem; }
  .hero-logo-2 { top: 10%; right: 6%; width: 2.5rem; height: 2.5rem; }
  .hero-logo-3 { top: 42%; right: 2%; width: 2.5rem; height: 2.5rem; }
  .hero-logo-4 { top: 42%; left: 2%; width: 2.5rem; height: 2.5rem; }
  .hero-logo-5 { bottom: 28%; left: 6%; width: 2.5rem; height: 2.5rem; }
  .hero-logo-6 { bottom: 24%; right: 8%; width: 2.5rem; height: 2.5rem; }
}

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

.hero-content {
  text-align: center;
  max-width: 56rem;
  margin: 0 auto 1rem;
}

.hero-content h1 {
  color: #000;
}

.hero-text {
  font-size: 1.125rem;
  line-height: 2;
  color: #000;
  margin: 0 0 1.5rem;
}

.hero-rating {
  display: inline-flex;
  align-items: center;
  gap: 2rem;
  padding: 1.5rem;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.08);
}

.hero-avatars {
  display: none;
}

@media (min-width: 640px) {
  .hero-avatars {
    display: flex;
    align-items: center;
  }
  .hero-avatars img {
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    border: 2px solid #fff;
    margin-left: -0.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }
  .hero-avatars img:first-child {
    margin-left: 0;
  }
}

.hero-stars {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.hero-stars strong {
  font-size: 1.5rem;
  color: #000;
}

.stars-img {
  width: 60%;
  max-width: 8rem;
}

.hero-stars span {
  font-size: 0.875rem;
  color: #000;
}

.hero-search {
  max-width: 56rem;
  margin: 3rem auto 0;
  padding: 1.5rem;
  background: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1);
}

.hero-search-grid {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 1.5rem;
  align-items: end;
}

@media (max-width: 768px) {
  .hero-search-grid {
    grid-template-columns: 1fr;
  }
}

.hero-dropdown label {
  display: block;
  font-size: 1rem;
  color: var(--gray-400);
  margin-bottom: 0.25rem;
}

.hero-select {
  width: 100%;
  padding: 0.5rem 2rem 0.5rem 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  border: 1px solid var(--gray-200);
  border-radius: 0.5rem;
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239ca3af'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  background-size: 1.25rem;
}

/* Form selects/options should use site font */
select,
select option {
  font-family: inherit;
}

/* Companies – урсгал хөдөлгөөнт лого */
.companies-title {
  font-size: 1.125rem;
  color: rgba(0,0,0,0.4);
  text-align: center;
  margin: 0 0 2.5rem;
  font-weight: 400;
}

.companies-marquee {
  overflow: hidden;
  padding: 0.5rem 0;
}

.companies-track {
  overflow: hidden;
}

.companies-track-inner {
  display: flex;
  align-items: center;
  gap: 4.5rem;
  width: max-content;
  animation: companies-marquee 25s linear infinite;
}

.companies-track-inner:hover {
  animation-play-state: paused;
}

.companies-track-inner img {
  height: 1.75rem;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

@keyframes companies-marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Section head */
.section-head {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .section-head {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* Courses */
.course-sections {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* Хичээлийн төрлийн гарчиг — бүдэг дэвсгэр, төрөл бүрт өөр доод өнгө (CSS var) */
.course-type-banner {
  --course-type-accent: #2563eb;
  margin: 0 0 1.15rem;
  padding: 0.75rem 1.15rem;
  border: none;
  border-bottom: 1px solid var(--course-type-accent);
  background: linear-gradient(180deg, #fdfdfd 0%, #f5f6f8 100%);
}

.course-type-banner__title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.02em;
  font-family: inherit;
  line-height: 1.35;
}

.course-grid--section {
  margin-bottom: 0;
}

.course-tabs {
  display: flex;
  gap: 1.25rem;
  padding: 0.25rem;
  background: #fff;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  overflow-x: auto;
}

.course-tab {
  padding: 0.75rem 1rem;
  font-size: 1.125rem;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: rgba(0,0,0,0.4);
  cursor: poRoboto Condensed;
  white-space: nowrap;
  font-family: inherit;
  transition: color 0.3s, border-color 0.3s;
}

.course-tab:hover {
  color: #000;
}

.course-tab.active {
  color: #000;
  border-bottom-color: #fde047;
}

.course-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.course-grid-empty {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--gray-400);
}

@media (min-width: 640px) {
  .course-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .course-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Хичээлийн дэлгэрэнгүй — left sidebar + контент */
.course-detail-section {
  padding: 2rem 0 4rem;
  min-height: 60vh;
}

.course-detail-layout {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 992px) {
  .course-detail-layout {
    flex-direction: row;
    align-items: flex-start;
    gap: 2.5rem;
  }
}

/* Sidebar — зургийн загвар: цагаан дэвсгэр, идэвхтэй = цэнхэр + цагаан текст */
.course-detail-sidebar {
  flex-shrink: 0;
  width: 100%;
  max-width: 100%;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.06);
  padding: 1.25rem 1rem;
  font-family: inherit;
}

@media (min-width: 992px) {
  .course-detail-sidebar {
    width: 280px;
    max-width: 280px;
  }
}

.course-detail-back {
  display: inline-block;
  font-size: 0.875rem;
  color: #475569;
  text-decoration: none;
  margin-bottom: 1.25rem;
  font-weight: 500;
}

.course-detail-back:hover {
  text-decoration: underline;
  color: #334155;
}

.course-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.course-sidebar-block {
  border-radius: 8px;
  padding: 0.25rem 0;
  margin-bottom: 0.15rem;
  transition: background 0.2s ease;
}

.course-sidebar-block:hover:not(.is-active) .course-sidebar-row {
  background: #f1f5f9;
}

.course-sidebar-block:last-child {
  margin-bottom: 0;
}

/* Идэвхтэй курс — бүдэг саарал дэвсгэр */
.course-sidebar-block.is-active .course-sidebar-row {
  background: #f1f5f9;
  color: #111827;
  border-radius: 8px;
  padding-left: 0.75rem;
  padding-right: 0.5rem;
  box-shadow: none;
  border: none;
}

.course-sidebar-block.is-active .course-sidebar-course-title {
  color: #111827;
  font-weight: 600;
}

.course-sidebar-block.is-active .course-sidebar-toggle {
  background: transparent;
  color: #111827;
}

.course-sidebar-block.is-active .course-sidebar-toggle:hover {
  background: transparent;
  color: #111827;
}

.course-sidebar-section {
  margin-bottom: 1.5rem;
  padding: 1rem 0;
  border: none;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

.course-sidebar-section:last-child {
  margin-bottom: 0;
  padding-top: 1.25rem;
  border-top: 1px solid #eee;
}

/* Combo (шүүх) болон задардаг цэсний хооронд зай бага, бүдэг зураас */
.course-sidebar-filters {
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.course-sidebar-courses {
  padding-top: 0.75rem;
  margin-top: 0;
}

/* Гарчиг — зурагт "Dashboard", "Editor" шиг бараан саарал */
.course-sidebar-section-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #334155;
  margin: 0 0 0.85rem;
  padding-bottom: 0.5rem;
  border: none;
}

.course-sidebar-courses .course-sidebar-section-title,
.course-sidebar-user-section .course-sidebar-section-title {
  color: #334155;
}

.course-sidebar-user-section {
  background: transparent;
}

.course-sidebar-user-section .course-sidebar-section-title {
  margin: 0 0 0.75rem;
  padding: 0.5rem 0.75rem;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 8px;
  display: block;
}

.course-sidebar-user-list {
  padding-left: 0;
}

.course-sidebar-user-list li {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.course-sidebar-filters .course-sidebar-section-title {
  margin-top: 0;
}

.course-sidebar-combos {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.course-sidebar-combo-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.course-sidebar-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #475569;
}

.course-sidebar-select {
  width: 100%;
  padding: 0.5rem 0.65rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 0.9375rem;
  color: #334155;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.course-sidebar-select:focus {
  outline: none;
  border-color: #cbd5e1;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.04);
}

.course-sidebar-courses-list {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

/* Задардаг цэсийн мөр — энгийн үедээ бүдэг дэвсгэр */
.course-sidebar-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.5rem;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  transition: background 0.2s ease;
  background: rgba(0, 0, 0, 0.03);
}

/* Идэвхгүй цэс — зурагт "Overview", "Filters" шиг цайвар саарал текст */
.course-sidebar-course-title {
  flex: 1;
  font-size: 0.9375rem;
  color: #64748b;
  padding: 0;
  min-width: 0;
  font-weight: 400;
}

/* Задардаг товч — зурагт байгаа шиг баруун талд дээш/доош сум */
.course-sidebar-toggle {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  padding: 0;
  border: none;
  border-radius: 4px;
  background: transparent;
  font-size: 0.65rem;
  line-height: 1;
  cursor: pointer;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.course-sidebar-toggle:hover {
  color: #475569;
}

/* Дэд цэс — зурагт "IT Consulting", "Cloud Solutions" шиг зүүн тийш давхарлагдсан, энгийн текст */
.course-sidebar-materials-list {
  list-style: none;
  margin: 0.25rem 0 0 0;
  padding: 0.35rem 0 0.5rem 1.25rem;
  border-left: none;
}

.course-sidebar-materials-list li {
  margin: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.course-sidebar-materials-list li:last-child {
  border-bottom: none;
}

.course-sidebar-mat-link {
  display: block;
  font-size: 0.8125rem;
  color: #64748b;
  text-decoration: none;
  padding: 0.3rem 0.4rem 0.3rem 0;
  margin: 0;
  border-radius: 0;
  transition: color 0.2s;
  border: none;
  background: transparent;
}

.course-sidebar-mat-link:hover {
  color: #334155;
}

/* Идэвхтэй материал — дэвсгэргүй, зөвхөн бараан текст (задраад гарсан цэснүүд дэвсгэргүй) */
.course-sidebar-mat-link.is-active {
  background: transparent;
  color: #1e293b;
  font-weight: 600;
  padding: 0.3rem 0.4rem 0.3rem 0;
  margin: 0;
  border-radius: 0;
}

.course-sidebar-empty {
  font-size: 0.8125rem;
  color: #94a3b8;
  margin: 0.5rem 0 0;
}

.course-sidebar-type {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 0.5rem;
  padding-bottom: 0.25rem;
}

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

.course-sidebar-list li {
  margin: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.course-sidebar-list li:last-child {
  border-bottom: none;
}

.course-sidebar-link {
  display: block;
  font-size: 0.9375rem;
  color: #64748b;
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  margin: 0.1rem 0;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.course-sidebar-link:hover {
  background: #f8fafc;
  color: #334155;
}

.course-sidebar-link.is-active {
  background: #2563eb;
  color: #fff;
  font-weight: 600;
}

.course-detail-content {
  flex: 1;
  min-width: 0;
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.06);
  padding: 1.75rem;
}

@media (min-width: 768px) {
  .course-detail-content {
    padding: 2.25rem;
  }
}

.course-detail-type {
  font-size: 0.875rem;
  font-weight: 600;
  color: #2C8CFF;
  margin: 0 0 0.5rem;
}

.course-detail-cover {
  margin: 0 0 1.25rem;
  border-radius: 0.5rem;
  overflow: hidden;
  background: var(--gray-200);
}

.course-detail-cover-img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  display: block;
}

.course-detail-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--gray-900);
  margin: 0 0 1.25rem;
  line-height: 1.25;
}

.course-detail-title-small {
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
}

.course-detail-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.course-detail-title-row .course-detail-title {
  margin: 0;
  flex: 1;
  min-width: 0;
}

.course-detail-title-row .course-detail-test-btn {
  flex-shrink: 0;
}

.course-detail-test-links-wrap .course-detail-test-link,
.course-detail-test-links-wrap .course-detail-result-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 6.5rem;
  height: 2.375rem;
  padding: 0 1.125rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  border-radius: 0.5rem;
  border-width: 2px;
  border-style: solid;
}

.course-detail-test-links-wrap .course-detail-result-link {
  background: #fff;
  color: #2c8cff;
  border-color: #2c8cff;
}

.course-detail-test-links-wrap .course-detail-result-link:hover {
  background: linear-gradient(135deg, #2c8cff 0%, #22cee9 100%);
  color: #fff;
  border-color: transparent;
}

.course-detail-date {
  font-size: 0.875rem;
  color: var(--gray-400);
  margin: 0 0 1.25rem;
}

.course-detail-body {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--gray-700);
}

.course-detail-body p {
  margin: 0 0 1rem;
}

.course-detail-body p:last-child {
  margin-bottom: 0;
}

.course-detail-materials {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-200);
}

.course-detail-materials-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.course-detail-material-item {
  padding: 1.25rem;
  background: #f9fafb;
  border-radius: 0.5rem;
  border: 1px solid var(--gray-200);
}

.course-detail-material-title {
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  color: var(--gray-900);
}

.course-detail-material-image-below-title {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-bottom: 1rem;
  border-radius: 0.375rem;
  overflow: hidden;
  background: var(--gray-200);
  box-sizing: border-box;
}

.course-detail-material-image-below-title img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  vertical-align: top;
  object-fit: contain;
}

.course-detail-material-image {
  flex-shrink: 0;
  width: 120px;
  height: 90px;
  border-radius: 0.375rem;
  overflow: hidden;
  background: var(--gray-200);
}

.course-detail-material-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.course-detail-material-body {
  flex: 1;
  min-width: 0;
}

.course-detail-material-desc {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--gray-700);
  margin-bottom: 0.5rem;
}

.course-detail-material-desc p {
  margin: 0 0 0.25rem;
}

.course-detail-material-desc ul,
.course-detail-material-desc ol {
  margin: 0.5rem 0 0.5rem 1.25rem;
  padding-left: 1rem;
}

.course-detail-material-desc ul {
  list-style-type: disc;
}

.course-detail-material-desc ol {
  list-style-type: decimal;
}

.course-detail-material-desc li {
  margin-bottom: 0.25rem;
}

/* LaTeX эхээс хөрвүүлсэн материал (MathJax) */
.course-detail-material-desc .material-latex-body {
  max-width: 100%;
  overflow-x: auto;
}
.course-detail-material-desc .material-latex-h2 {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 1rem 0 0.5rem;
  color: var(--gray-800);
}
.course-detail-material-desc .material-latex-h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0.75rem 0 0.35rem;
}
.course-detail-material-desc .material-latex-h4 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0.65rem 0 0.3rem;
  color: var(--gray-800);
}
.course-detail-material-desc .material-latex-h5 {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0.5rem 0 0.25rem;
}
.course-detail-material-desc .material-latex-p {
  margin: 0.35rem 0 0.5rem;
  line-height: 1.55;
}
.course-detail-material-desc .material-latex-quote {
  margin: 0.5rem 0 0.75rem;
  padding: 0.5rem 0.75rem;
  border-left: 4px solid var(--gray-300);
  background: var(--gray-50);
  font-style: italic;
}
.course-detail-material-desc .material-latex-center {
  text-align: center;
  margin: 0.5rem 0;
}
.course-detail-material-desc .material-latex-env {
  margin: 0.4rem 0;
  padding: 0.35rem 0.5rem;
  border: 1px dashed var(--gray-200);
  border-radius: 4px;
}
.course-detail-material-desc .material-latex-unknown-cmd {
  font-family: ui-monospace, monospace;
  font-size: 0.9em;
  color: var(--gray-600);
  background: var(--gray-100);
  padding: 0 0.2rem;
  border-radius: 2px;
}
.course-detail-material-desc .material-latex-tt {
  font-family: ui-monospace, monospace;
  font-size: 0.92em;
}
.course-detail-material-desc .material-latex-ul {
  list-style: disc;
  margin: 0.4rem 0 0.6rem 1.1rem;
  padding-left: 1rem;
}
.course-detail-material-desc .material-latex-ul .material-latex-ul {
  list-style: circle;
  margin-top: 0.35rem;
}
.course-detail-material-desc .material-latex-ol {
  list-style: decimal;
  margin: 0.4rem 0 0.6rem 1.1rem;
  padding-left: 1.25rem;
}
.course-detail-material-desc .material-latex-ol .material-latex-ol {
  list-style: lower-alpha;
  margin-top: 0.35rem;
}
.course-detail-material-desc .material-latex-item-label {
  font-weight: 600;
  margin-right: 0.25rem;
}

.course-detail-material-item .course-detail-pdf-embed {
  margin-top: 0.5rem;
}

.course-detail-files {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-200);
}

.course-detail-files-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 1rem;
  color: var(--gray-900);
}

.course-detail-file-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.course-detail-file-item {
  margin-bottom: 1.5rem;
}

.course-detail-file-link {
  display: inline-block;
  font-size: 1rem;
  color: #2C8CFF;
  text-decoration: none;
  margin-bottom: 0.5rem;
}

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

.course-detail-pdf-embed {
  width: 100%;
  height: 480px;
  border: 1px solid var(--gray-200);
  border-radius: 0.375rem;
  margin-top: 0.25rem;
}

.course-card {
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s;
}

.course-card:hover {
  transform: translateY(-2px);
}

.course-card-image {
  aspect-ratio: 1;
  background: var(--gray-200);
  overflow: hidden;
}

.course-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

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

.course-card-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  flex: 1;
}

.course-card-body .course-card-detail-btn {
  margin-top: auto;
  align-self: stretch;
}

.course-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.course-card-title {
  font-size: 1rem;
  font-weight: 400;
  color: var(--gray-900);
  margin: 0;
}

.course-card-price {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--success);
  border: 2px solid var(--success);
  border-radius: 0.375rem;
  padding: 0.25rem 0.5rem;
}

.course-card-profession {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}

.course-card a {
  color: inherit;
  text-decoration: none;
}

.course-card a:hover .course-card-profession {
  color: var(--primary);
}

.course-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem;
  border: 2px solid var(--gray-200);
  border-radius: 0.375rem;
}

.course-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  color: var(--gray-700);
}

/* Mentors */
.mentor-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .mentor-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .mentor-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.mentor-card {
  position: relative;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
  border-radius: 0.5rem;
  overflow: hidden;
}

.mentor-card-image {
  min-height: 20rem;
  background: var(--gray-200);
  overflow: hidden;
}

.mentor-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mentor-card-body {
  padding: 1rem 0;
  text-align: center;
}

.mentor-card-name {
  display: inline-block;
  margin-top: -2rem;
  padding: 0.5rem 1rem;
  background: #fff;
  border: 1px solid #fff;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-mentor);
  font-size: 0.875rem;
  color: var(--gray-700);
  text-decoration: none;
}

.mentor-card-name:hover {
  color: var(--primary);
}

.mentor-card-role {
  margin-top: 0.75rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: rgba(0,0,0,0.8);
}

/* Testimonial */
.testimonial {
  background: var(--cream);
}

.testimonial-desc {
  font-size: 1.125rem;
  font-weight: 500;
  margin: 0 0 1.5rem;
}

.testimonial-slider {
  position: relative;
}

.testimonial-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 1rem;
  cursor: grab;
}

.testimonial-track:active,
.testimonial-track.dragging {
  cursor: grabbing;
}

.testimonial-track.dragging {
  user-select: none;
}

.testimonial-track::-webkit-scrollbar {
  display: none;
}

.testimonial-item {
  flex: 0 0 100%;
  scroll-snap-align: start;
}

@media (min-width: 800px) {
  .testimonial-item {
    flex: 0 0 50%;
  }
}

@media (min-width: 1200px) {
  .testimonial-item {
    flex: 0 0 33.333%;
  }
}

.testimonial-card {
  background: #fff;
  margin: 1rem;
  padding: 2rem 3rem 2.5rem;
  text-align: center;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.testimonial-avatar {
  width: 4rem;
  height: 4rem;
  border-radius: 9999px;
  object-fit: cover;
  margin: 0 auto;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.testimonial-card .profession {
  font-size: 0.875rem;
  padding-top: 1rem;
  padding-bottom: 0.5rem;
  margin: 0;
  color: var(--gray-700);
}

.testimonial-card .name {
  font-size: 1.5rem;
  font-weight: 600;
  padding-bottom: 0.75rem;
  margin: 0;
}

.testimonial-card .stars {
  width: 30%;
  max-width: 6rem;
  margin: 0 auto 1.5rem;
}

.testimonial-card .detail {
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.75;
  margin: 0;
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.testimonial-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: var(--gray-400);
  border: none;
  padding: 0;
  cursor: poRoboto Condensed;
  transition: background 0.3s;
}

.testimonial-dot.active {
  background: var(--primary);
  transform: scale(1.2);
}

/* Contact */
.contact form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  max-width: 100%;
}

.form-row {
  display: flex;
  gap: 0.75rem;
  width: 100%;
  flex-wrap: wrap;
}

.form-group {
  flex: 1;
  min-width: 200px;
}

.form-group.full {
  width: 100%;
}

.form-group label {
  display: block;
  padding-bottom: 0.75rem;
  font-size: 1rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.625rem 1rem;
  font-size: 1rem;
  border: 1px solid var(--gray-200);
  border-radius: 1rem;
  font-family: inherit;
  transition: border-color 0.3s, outline 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-group textarea {
  min-height: 6rem;
  margin-top: 0.5rem;
  resize: vertical;
}

.form-submit {
  width: 100%;
  margin-top: 0.5rem;
}

.contact .btn:disabled {
  background: var(--gray-400);
  color: #fff;
  border-color: var(--gray-400);
  cursor: not-allowed;
}

.form-thanks {
  display: none;
  margin-top: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--primary);
  color: #fff;
  border-radius: 9999px;
  font-size: 1.125rem;
  align-items: center;
  gap: 0.5rem;
}

.form-thanks.show {
  display: flex;
}

/* Newsletter */
.newsletter {
  margin-bottom: -16rem;
}

.newsletter-inner {
  position: relative;
  z-index: 10;
  padding: 4rem 1.5rem;
  background: var(--orange);
  border-radius: 0.5rem;
  background-image: url('public/images/newsletter/hands.svg');
  background-repeat: no-repeat;
  background-position: right bottom;
  background-size: contain;
}

.newsletter-content h3 {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.newsletter-content p {
  font-size: 1.125rem;
  font-weight: 500;
  margin: 0 0 1.75rem;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.newsletter-input {
  flex: 1;
  min-width: 200px;
  padding: 1rem;
  font-size: 1rem;
  border: none;
  border-radius: 0.5rem;
  background: #fff;
  font-family: inherit;
}

.newsletter-input:focus {
  outline: 2px solid var(--primary);
}

.newsletter-img-wrap {
  display: none;
}

@media (min-width: 640px) {
  .newsletter-img-wrap {
    display: block;
    float: right;
    margin-top: -8rem;
  }
  .newsletter-img {
    width: auto;
    height: 8rem;
  }
}

/* Footer */
.footer {
  background: var(--primary);
  padding-top: 15rem;
  padding-bottom: 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-top: 3rem;
  padding-bottom: 2.5rem;
}

@media (min-width: 640px) {
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-top {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
  }
}

.footer-logo {
  width: 3rem;
  height: 4rem;
  margin-bottom: 1.25rem;
}

.footer-brand p {
  color: #fff;
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.75;
  margin: 0 0 1.25rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: rgba(255,255,255,0.2);
  color: #fff;
  text-decoration: none;
  font-size: 1.25rem;
  transition: background 0.3s, color 0.3s;
}

.footer-social a:hover {
  background: var(--cream);
  color: var(--primary);
}

.footer-links-wrap {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-col-title {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 2rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 0.75rem;
}

.footer-col a {
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  text-decoration: none;
}

.footer-col a:hover {
  color: #fff;
}

.footer-newsletter h3 {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 1.5rem;
}

.footer-email-wrap {
  position: relative;
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: 24rem;
}

.footer-email {
  width: 100%;
  padding: 1rem 3rem 1rem 1rem;
  font-size: 0.875rem;
  color: #fff;
  background: rgba(255,255,255,0.15);
  border: none;
  border-radius: 0.375rem;
  font-family: inherit;
}

.footer-email::placeholder {
  color: rgba(255,255,255,0.7);
}

.footer-email:focus {
  outline: none;
  background: rgba(255,255,255,0.2);
}

.footer-send {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  padding: 0 0.5rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.25rem;
  cursor: poRoboto Condensed;
}

.footer-bottom {
  padding: 0.75rem 1rem;
}

.footer-bottom p {
  text-align: center;
  margin: 0;
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
}

.footer-bottom a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: #fff;
}

/* Scroll to top */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  background: var(--primary);
  color: #fff;
  border: none;
  font-size: 1.25rem;
  cursor: poRoboto Condensed;
  box-shadow: 0 4px 12px rgba(97, 31, 105, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  z-index: 30;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background: linear-gradient(135deg, #2C8CFF 0%, #22CEE9 100%);
  color: #fff;
}

/* ----- Profile page ----- */
.profile-page-section .profile-page-content {
  width: 100%;
  max-width: 100%;
}

.profile-page-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0 0 1.5rem;
  letter-spacing: -0.02em;
}

.profile-card {
  width: 100%;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.profile-card-message {
  padding: 1.5rem 2rem;
}

.profile-message-text {
  margin: 0;
  color: var(--gray-700);
  font-size: 1rem;
}

.profile-message-text a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
}

.profile-message-text a:hover {
  text-decoration: underline;
}

.profile-alert {
  padding: 0.875rem 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
  line-height: 1.4;
}

.profile-alert-error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.profile-alert-success {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.profile-form {
  margin: 0;
}

.profile-form-group {
  margin-bottom: 1.25rem;
}

.profile-form-group:last-of-type {
  margin-bottom: 1.75rem;
}

.profile-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.375rem;
}

.profile-input {
  display: block;
  width: 100%;
  padding: 0.625rem 0.875rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--gray-900);
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}

.profile-input::placeholder {
  color: var(--gray-400);
}

.profile-input:hover {
  border-color: #94a3b8;
}

.profile-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.profile-hint {
  display: block;
  font-size: 0.8125rem;
  color: var(--gray-400);
  margin-top: 0.25rem;
}

.profile-form-actions {
  margin-top: 0.5rem;
}

.profile-section-title {
  margin: 0 0 12px;
  font-size: 1.05rem;
  font-weight: 800;
  color: #1e293b;
}

.profile-card-gemini {
  margin-top: 20px;
}

.profile-gemini-intro {
  margin: 0 0 16px;
  line-height: 1.5;
}

.profile-gemini-intro a {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
}

.profile-gemini-intro a:hover {
  text-decoration: underline;
}

.profile-api-key-wrap {
  position: relative;
  display: block;
}

.profile-api-key-wrap .profile-input-api-key {
  width: 100%;
  padding-right: 44px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
}

.profile-api-key-eye {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.profile-api-key-eye:hover {
  color: #334155;
  background: #f1f5f9;
}

.profile-api-key-eye:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

.profile-api-key-eye-icons {
  position: relative;
  display: block;
  width: 20px;
  height: 20px;
}

.profile-api-key-eye-icons svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.profile-api-key-eye[aria-pressed="false"] .profile-api-key-eye-open {
  opacity: 1;
}

.profile-api-key-eye[aria-pressed="false"] .profile-api-key-eye-slash {
  opacity: 0;
}

.profile-api-key-eye[aria-pressed="true"] .profile-api-key-eye-open {
  opacity: 0;
}

.profile-api-key-eye[aria-pressed="true"] .profile-api-key-eye-slash {
  opacity: 1;
}

.profile-submit-btn {
  padding: 0.625rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  min-width: 140px;
}

/* Reusable empty state (no-data) */
.study-empty-state {
  border: 1px solid #dbe5ef;
  border-radius: 14px;
  background: #f8fafc;
  padding: 2rem 1rem;
  text-align: center;
  color: #64748b;
}
.study-empty-state-icon {
  width: 42px;
  height: 42px;
  margin: 0 auto 10px;
  border: 2px solid #cbd5e1;
  border-radius: 8px;
  position: relative;
}
.study-empty-state-icon::before,
.study-empty-state-icon::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  height: 2px;
  background: #cbd5e1;
}
.study-empty-state-icon::before { top: 14px; }
.study-empty-state-icon::after { top: 22px; }
.study-empty-state-title {
  font-weight: 700;
  color: #475569;
  margin-bottom: 4px;
}
.study-empty-state-desc {
  font-size: 0.92rem;
  color: #94a3b8;
}
