/* ============================================================
   Tamkien Theme v2 — Bold & Modern
   Royal Blue (logo) × Terracotta (Claude)
   Loaded after all template CSS; overrides the Vuexy landing look.
   ============================================================ */

:root {
  --tk-blue: #0f5ce4;
  --tk-blue-deep: #0344ab;
  --tk-blue-dark: #062a66;
  --tk-navy: #060f2e;
  --tk-navy-2: #0a1a4a;
  --tk-blue-soft: #e8f0fe;
  --tk-clay: #d97757;
  --tk-clay-dark: #bd5d3d;
  --tk-clay-soft: #fbeee7;
  --tk-ivory: #faf9f5;
  --tk-ink: #131c33;
  --tk-muted: #5b6579;
  --tk-radius: 1.25rem;
  --tk-shadow-sm: 0 2px 12px rgba(6, 15, 46, 0.08);
  --tk-shadow: 0 18px 44px rgba(6, 15, 46, 0.14);
  --tk-shadow-blue: 0 10px 30px rgba(15, 92, 228, 0.38);
  --tk-shadow-clay: 0 10px 30px rgba(217, 119, 87, 0.4);
  --tk-gradient: linear-gradient(120deg, var(--tk-blue-deep) 0%, var(--tk-blue) 60%, #2f79ff 100%);
}

/* ---------- Base ---------- */
body {
  font-family: 'Cairo', 'Public Sans', system-ui, -apple-system, sans-serif !important;
  color: var(--tk-ink);
}
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6,
.btn, .nav-link, .footer-title, .card-title {
  font-family: 'Cairo', 'Public Sans', system-ui, sans-serif !important;
}
::selection { background: var(--tk-clay); color: #fff; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--tk-ivory); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--tk-blue), var(--tk-clay));
  border-radius: 8px;
}

.tk-rtl-flip { display: inline-block; }
[dir="ltr"] .tk-rtl-flip { transform: scaleX(-1); }

/* ---------- Reveal on scroll ---------- */
.tk-reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .65s cubic-bezier(.22,.61,.36,1), transform .65s cubic-bezier(.22,.61,.36,1);
}
.tk-reveal.tk-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .tk-reveal { opacity: 1; transform: none; transition: none; }
  .tk-orb { animation: none !important; }
}

/* ---------- Navbar ---------- */
.layout-navbar .landing-navbar {
  background: rgba(255, 255, 255, 0.75) !important;
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid rgba(15, 92, 228, 0.10);
  border-radius: 1.1rem;
  margin-top: .65rem;
  box-shadow: var(--tk-shadow-sm);
  transition: box-shadow .25s ease, background .25s ease;
}
.landing-navbar .navbar-nav .nav-link {
  font-weight: 700 !important;
  color: var(--tk-ink);
  border-radius: .7rem;
  padding: .55rem 1rem !important;
  transition: color .2s ease, background .2s ease;
}

/* Desktop bar: labels such as "من نحن" or "تسجيل الدخول" broke onto two
   lines, because the pill (1090px wide at 1366px) cannot hold the menu with
   1rem link padding. Keep every label on one line, tighten the spacing, and
   when a long menu (a signed-in student has twelve links) still does not
   fit, move whole links to a second row instead of breaking words */
@media (min-width: 992px) {
  .layout-navbar .landing-navbar { padding-inline: 1rem !important; }
  .layout-navbar .landing-navbar .navbar-brand { margin-inline-end: 1rem !important; }
  .landing-navbar .navbar-nav .nav-link {
    white-space: nowrap;
    padding: .5rem .5rem !important;
  }
  /* the template's 10px gap beside every link, halved */
  .landing-navbar .landing-nav-menu > .navbar-nav .nav-link { margin-inline: 0 5px !important; }
  .landing-navbar .landing-nav-menu > .navbar-nav { flex-wrap: wrap; }
  .landing-navbar .btn { white-space: nowrap; }
}
/* Below 1400px the pill is only 1140px wide (912px below 1200px) */
@media (min-width: 992px) and (max-width: 1399.98px) {
  .landing-navbar .navbar-nav .nav-link { font-size: .875rem; }
}
@media (min-width: 992px) and (max-width: 1279.98px) {
  .landing-navbar .navbar-nav .nav-link {
    font-size: .8125rem;
    padding-inline: .35rem !important;
  }
  .layout-navbar .landing-navbar .app-brand-text { display: none; }
}

/* Phones: the brand and the language/theme/sign-in icons need 381px in a
   319px pill (375px screen), so the icons dropped to a second row. Trim the
   icon padding and the brand gaps to keep one row, and below 370px keep
   the logo without its name */
@media (max-width: 575.98px) {
  .navbar.landing-navbar { flex-wrap: nowrap; }
  .layout-navbar .landing-navbar .navbar-brand { margin-inline-end: .25rem !important; }
  .layout-navbar .landing-navbar .navbar-brand .navbar-toggler { margin-inline-end: .5rem !important; }
  .landing-navbar .navbar-nav.flex-row > li { margin-inline: .25rem 0 !important; }
  .landing-navbar .navbar-nav.flex-row .nav-link { padding-inline: .5rem !important; }
}
@media (max-width: 369.98px) {
  .layout-navbar .landing-navbar .app-brand-text { display: none; }
}

/* Phones/tablets: backdrop-filter traps the fixed side menu inside the
   navbar pill, so drop it and use a solid bar instead */
@media (max-width: 991.98px) {
  .layout-navbar .landing-navbar {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(255, 255, 255, 0.97) !important;
  }

  .navbar.landing-navbar .landing-nav-menu {
    background: #fff !important;
    padding-top: 3.25rem;
    box-shadow: 0 0 40px rgba(6, 15, 46, 0.18);
  }

  .navbar.landing-navbar .landing-nav-menu .nav-link {
    padding: .8rem 1rem !important;
    margin-bottom: .15rem;
  }
}
.landing-navbar .navbar-nav .nav-link:hover { color: var(--tk-blue) !important; }
.landing-navbar .navbar-nav .nav-link.active {
  color: var(--tk-blue) !important;
  background: var(--tk-blue-soft);
}
.app-brand-text {
  background: linear-gradient(120deg, var(--tk-blue-deep), var(--tk-blue) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800 !important;
  font-size: 1.35rem;
}

/* Brand name beside the logo. «منصة أدرس التعليمية» is three times as wide
   as «تمكين» was (214px against 64px), so it pushed the sign-in button off
   phones, the icons to a second row on tablets and the menu to a second row
   at 1280-1399px. One line where the bar has room, two short lines
   («منصة أدرس» / «التعليمية») where it does not; centred on the logo either
   way. Below 1280px on desktop and below 370px it stays hidden (above) */
.layout-navbar .landing-navbar .app-brand-link { display: inline-flex; align-items: center; }
.layout-navbar .landing-navbar .app-brand-text { white-space: nowrap; line-height: 1.2; }
@media (min-width: 1280px) and (max-width: 1399.98px) {
  .layout-navbar .landing-navbar .app-brand-text {
    white-space: normal;
    font-size: 1.05rem;
    line-height: 1.15;
    max-width: 5.7em;
    margin-inline-start: .375rem !important;
    padding-inline-start: 0 !important;
  }
  /* the two-line name is still 32px wider than «تمكين»: take it from the gaps */
  .layout-navbar .landing-navbar .navbar-brand { margin-inline-end: .5rem !important; }
  .landing-navbar .navbar-nav .nav-link { padding-inline: .4rem !important; }
}
@media (max-width: 991.98px) {
  .layout-navbar .landing-navbar .app-brand-text { font-size: 1.05rem; }
}
@media (max-width: 575.98px) {
  .layout-navbar .landing-navbar .app-brand-text {
    white-space: normal;
    font-size: .85rem;
    line-height: 1.15;
    max-width: 5.7em;
    margin-inline-start: .25rem !important;
    padding-inline-start: .125rem !important;
  }
  .layout-navbar .landing-navbar .app-brand-logo img { width: 34px !important; }
}

/* ---------- Buttons ---------- */
.btn { border-radius: .85rem; font-weight: 700; }
.btn-primary {
  background: var(--tk-gradient) !important;
  border: 0 !important;
  box-shadow: var(--tk-shadow-blue);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.btn-primary:hover, .btn-primary:focus {
  transform: translateY(-2px);
  filter: brightness(1.07);
  box-shadow: 0 16px 36px rgba(15, 92, 228, 0.5);
}
.btn-primary:active { transform: translateY(0); }
.btn-lg { padding: .9rem 2.3rem; border-radius: 1rem; }

.tk-btn-ghost {
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
  transition: background .2s ease, border-color .2s ease, transform .18s ease;
}
.tk-btn-ghost:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}
.tk-btn-clay {
  background: linear-gradient(120deg, var(--tk-clay) 0%, var(--tk-clay-dark) 100%);
  color: #fff !important;
  border: 0;
  box-shadow: var(--tk-shadow-clay);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.tk-btn-clay:hover {
  transform: translateY(-2px);
  filter: brightness(1.07);
  box-shadow: 0 16px 36px rgba(217, 119, 87, 0.55);
}

/* ---------- Hero ---------- */
.tk-hero {
  position: relative;
  overflow: hidden;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 8.5rem 0 4rem;
  background: linear-gradient(160deg, var(--tk-navy) 0%, var(--tk-navy-2) 55%, #0c2a6e 100%);
}
.tk-hero > .container { width: 100%; }
.tk-hero-bg { position: absolute; inset: 0; pointer-events: none; }
.tk-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .55;
}
.tk-orb-1 {
  width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(15, 92, 228, 0.8), transparent 70%);
  top: -180px; inset-inline-start: -160px;
  animation: tk-float 11s ease-in-out infinite;
}
.tk-orb-2 {
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(217, 119, 87, 0.55), transparent 70%);
  bottom: -160px; inset-inline-end: -140px;
  animation: tk-float 13s ease-in-out infinite reverse;
}
.tk-orb-3 {
  width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(47, 121, 255, 0.6), transparent 70%);
  top: 26%; inset-inline-end: 16%;
  animation: tk-float 9s ease-in-out 1s infinite;
}
@keyframes tk-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(24px, -30px) scale(1.06); }
}
.tk-grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 30%, transparent 75%);
}

.tk-hero-inner { max-width: 940px; margin: 0 auto; }
.tk-hero-chip {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: #ffd9c9;
  background: rgba(217, 119, 87, 0.16);
  border: 1px solid rgba(217, 119, 87, 0.4);
  border-radius: 2rem;
  padding: .5rem 1.25rem;
  font-weight: 700;
  font-size: .95rem;
  margin-bottom: 1.5rem;
}
.tk-hero-title {
  color: #fff;
  font-size: clamp(2.5rem, 6.5vw, 4.6rem);
  font-weight: 800 !important;
  line-height: 1.3;
  margin-bottom: 1.3rem;
  background: linear-gradient(120deg, #ffffff 25%, #9ec0f5 60%, var(--tk-clay) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: tk-shine 7s linear infinite;
}
@keyframes tk-shine {
  0% { background-position: 0% center; }
  50% { background-position: 100% center; }
  100% { background-position: 0% center; }
}
.tk-hero-sub {
  color: #aebadb;
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  max-width: 720px;
  margin: 0 auto 2.4rem;
}
.tk-hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.6rem;
}
.tk-btn-glow { position: relative; }

.tk-hero-highlights {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .8rem 1rem;
}
.tk-hero-highlights li {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: #cdd9f2;
  font-weight: 600;
  font-size: .95rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 2rem;
  padding: .5rem 1.15rem;
  backdrop-filter: blur(6px);
}
.tk-hero-highlights li i { color: var(--tk-clay); font-size: 1.1rem; }

.tk-hero-media { margin-top: 3.6rem; }
.tk-hero-frame {
  max-width: 1060px;
  margin: 0 auto;
  border-radius: 1.6rem;
  padding: .6rem;
  background: linear-gradient(140deg, rgba(15, 92, 228, 0.7), rgba(217, 119, 87, 0.6));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 90px rgba(15, 92, 228, 0.35),
    0 40px 100px rgba(3, 10, 34, 0.6);
}
.tk-hero-frame img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: 1.15rem;
  display: block;
}

/* Scroll-down hint */
.tk-scroll-hint {
  position: absolute;
  bottom: 1.6rem;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.55);
  font-size: 1.6rem;
  line-height: 1;
  animation: tk-bob 2.2s ease-in-out infinite;
  z-index: 2;
}
[dir="rtl"] .tk-scroll-hint { transform: translateX(50%); }
@keyframes tk-bob {
  0%, 100% { translate: 0 0; opacity: .55; }
  50% { translate: 0 10px; opacity: 1; }
}

/* ---------- Sections ---------- */
.tk-section { padding: 5.5rem 0; }
.tk-section-light { background: #fff; }
.tk-section-tint {
  background:
    radial-gradient(800px 300px at 90% 0%, rgba(217, 119, 87, 0.05), transparent 60%),
    var(--tk-ivory);
}
.tk-section-head { text-align: center; max-width: 720px; margin: 0 auto; }
.tk-chip {
  display: inline-block;
  color: var(--tk-clay-dark);
  background: var(--tk-clay-soft);
  border: 1px solid rgba(217, 119, 87, 0.28);
  border-radius: 2rem;
  padding: .45rem 1.3rem;
  font-weight: 700;
  font-size: .9rem;
  margin-bottom: 1rem;
}
.tk-section-title {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800 !important;
  color: var(--tk-ink);
  line-height: 1.5;
  margin-bottom: .9rem;
}
.tk-title-line {
  display: block;
  width: 68px;
  height: 4px;
  border-radius: 4px;
  margin: 0 auto;
  background: linear-gradient(90deg, var(--tk-blue), var(--tk-clay));
}

/* ---------- Stage cards (education types) ---------- */
.tk-stage-card {
  display: block;
  border-radius: var(--tk-radius);
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(6, 15, 46, 0.07);
  box-shadow: var(--tk-shadow-sm);
  text-decoration: none;
  height: 100%;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.tk-stage-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--tk-shadow);
  border-color: rgba(15, 92, 228, 0.25);
}
.tk-stage-media {
  position: relative;
  aspect-ratio: 16 / 9.5;
  overflow: hidden;
  background: var(--tk-blue-soft);
}
.tk-stage-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.tk-stage-card:hover .tk-stage-media img { transform: scale(1.06); }
.tk-stage-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(6, 42, 102, 0.45), transparent 55%);
  opacity: 0;
  transition: opacity .3s ease;
}
.tk-stage-card:hover .tk-stage-overlay { opacity: 1; }
.tk-stage-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  padding: 1.15rem 1.35rem;
}
.tk-stage-title {
  margin: 0;
  font-weight: 800;
  color: var(--tk-ink);
  transition: color .2s ease;
}
.tk-stage-card:hover .tk-stage-title { color: var(--tk-blue); }
.tk-stage-arrow {
  flex-shrink: 0;
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--tk-blue);
  background: var(--tk-blue-soft);
  font-size: 1.2rem;
  transition: background .22s ease, color .22s ease, transform .22s ease;
}
.tk-stage-card:hover .tk-stage-arrow {
  background: var(--tk-clay);
  color: #fff;
  transform: translateX(-4px);
}
[dir="ltr"] .tk-stage-card:hover .tk-stage-arrow { transform: translateX(4px); }

/* ---------- Course cards ---------- */
.tk-course-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--tk-radius);
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(6, 15, 46, 0.07);
  box-shadow: var(--tk-shadow-sm);
  text-decoration: none;
  height: 100%;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.tk-course-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--tk-shadow);
  border-color: rgba(15, 92, 228, 0.25);
}
.tk-course-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--tk-blue-soft);
}
.tk-course-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.tk-course-card:hover .tk-course-media img { transform: scale(1.06); }
.tk-course-tag {
  position: absolute;
  top: .8rem;
  inset-inline-start: .8rem;
  background: rgba(6, 15, 46, 0.75);
  color: #fff;
  backdrop-filter: blur(6px);
  border-radius: 2rem;
  padding: .3rem .9rem;
  font-size: .78rem;
  font-weight: 700;
}
.tk-course-body { padding: 1.1rem 1.25rem 1.3rem; }
.tk-course-subject {
  display: inline-block;
  color: var(--tk-clay-dark);
  background: var(--tk-clay-soft);
  border-radius: 2rem;
  padding: .2rem .8rem;
  font-size: .78rem;
  font-weight: 700;
  margin-bottom: .6rem;
}
.tk-course-title {
  margin: 0 0 .55rem;
  font-weight: 800;
  color: var(--tk-ink);
  font-size: 1.02rem;
  line-height: 1.55;
  transition: color .2s ease;
}
.tk-course-card:hover .tk-course-title { color: var(--tk-blue); }
.tk-course-teacher {
  display: flex;
  align-items: center;
  gap: .45rem;
  color: var(--tk-muted);
  font-size: .9rem;
  font-weight: 600;
}
.tk-course-teacher i { color: var(--tk-blue); font-size: 1.15rem; }

/* ---------- Teacher cards ---------- */
.tk-teacher-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .9rem;
  padding: 2rem 1.4rem;
  border-radius: var(--tk-radius);
  background: #fff;
  border: 1px solid rgba(6, 15, 46, 0.07);
  box-shadow: var(--tk-shadow-sm);
  text-decoration: none;
  height: 100%;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.tk-teacher-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--tk-shadow);
  border-color: rgba(217, 119, 87, 0.35);
}
.tk-teacher-ring {
  width: 128px; height: 128px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(140deg, var(--tk-blue), var(--tk-clay));
  transition: transform .25s ease;
}
.tk-teacher-card:hover .tk-teacher-ring { transform: scale(1.05) rotate(3deg); }
.tk-teacher-ring img {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  display: block;
  background: var(--tk-blue-soft);
}
.tk-teacher-name {
  margin: 0;
  font-weight: 800;
  color: var(--tk-ink);
}
.tk-teacher-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: var(--tk-blue);
  font-weight: 700;
  font-size: .9rem;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .22s ease, transform .22s ease;
}
.tk-teacher-card:hover .tk-teacher-link { opacity: 1; transform: none; }

/* ---------- FAQ ---------- */
.tk-faq-wrap { max-width: 820px; margin: 0 auto; }
.tk-accordion .accordion-item {
  border-radius: 1rem !important;
  border: 1px solid rgba(6, 15, 46, 0.08) !important;
  background: #fff;
  box-shadow: var(--tk-shadow-sm) !important;
  margin-bottom: .9rem;
  overflow: hidden;
}
.tk-accordion .accordion-button {
  font-weight: 700;
  font-size: 1.02rem;
  padding: 1.15rem 1.4rem;
  color: var(--tk-ink);
  background: #fff;
  box-shadow: none !important;
}
.tk-accordion .accordion-button:not(.collapsed) {
  color: var(--tk-blue-deep);
  background: var(--tk-blue-soft);
}
.tk-accordion .accordion-body {
  color: var(--tk-muted);
  line-height: 1.9;
  padding: 1.1rem 1.4rem 1.3rem;
}

/* ---------- CTA ---------- */
.landing-cta { background: transparent !important; padding-top: 0 !important; }
.tk-cta {
  position: relative;
  overflow: hidden;
  border-radius: 1.8rem;
  padding: 4rem 2rem;
  text-align: center;
  background: var(--tk-gradient);
  box-shadow: 0 26px 70px rgba(6, 42, 102, 0.4);
}
.tk-cta-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}
.tk-cta-orb-1 {
  width: 340px; height: 340px;
  background: rgba(217, 119, 87, 0.6);
  bottom: -140px; inset-inline-end: -80px;
}
.tk-cta-orb-2 {
  width: 260px; height: 260px;
  background: rgba(255, 255, 255, 0.16);
  top: -110px; inset-inline-start: -60px;
}
.tk-cta-content { position: relative; }
.tk-cta-title {
  color: #fff;
  font-weight: 800 !important;
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  margin-bottom: .6rem;
}
.tk-cta-sub {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.12rem;
  margin-bottom: 1.8rem;
}

/* ---------- Footer ---------- */
.landing-footer .footer-top {
  background: linear-gradient(150deg, var(--tk-navy) 0%, var(--tk-navy-2) 60%, #0c2a6e 100%) !important;
  border-radius: 2rem 2rem 0 0;
}
.landing-footer .footer-bg { display: none; }
.landing-footer .footer-title { color: #fff !important; font-weight: 800; }
.landing-footer .footer-title::after {
  content: "";
  display: block;
  width: 34px;
  height: 3px;
  border-radius: 3px;
  margin-top: .55rem;
  background: var(--tk-clay);
}
.landing-footer .footer-link,
.landing-footer .footer-text { color: rgba(255, 255, 255, 0.72) !important; }
.landing-footer .footer-link { transition: color .18s ease, padding-inline-start .18s ease; }
.landing-footer .footer-link:hover {
  color: var(--tk-clay) !important;
  padding-inline-start: .3rem;
}
.landing-footer .footer-bottom { background: #040b22 !important; }
.landing-footer .footer-bottom-text { color: rgba(255, 255, 255, 0.6) !important; }

/* ---------- Badges (rest of site) ---------- */
.badge.bg-label-primary {
  background: var(--tk-clay-soft) !important;
  color: var(--tk-clay-dark) !important;
  border: 1px solid rgba(217, 119, 87, .25);
  border-radius: 2rem;
  padding: .55em 1.2em;
  font-weight: 700;
}

/* ---------- Generic cards (inner pages) ---------- */
.card {
  border-radius: var(--tk-radius) !important;
  transition: transform .22s ease, box-shadow .22s ease;
}

/* ---------- Forms ---------- */
.form-control, .form-select {
  border-radius: .75rem;
  border-color: rgba(6, 15, 46, 0.14);
}
.form-control:focus, .form-select:focus {
  border-color: var(--tk-blue);
  box-shadow: 0 0 0 .2rem rgba(15, 92, 228, 0.14);
}

/* ---------- Auth pages ---------- */
.authentication-wrapper .authentication-inner .card {
  border-radius: 1.4rem !important;
  box-shadow: var(--tk-shadow) !important;
}

/* ---------- Swiper / misc ---------- */
.swiper-pagination-bullet-active { background: var(--tk-clay) !important; }

/* ---------- Section title fallback (inner pages using old markup) ---------- */
.section-title-img { display: none; }

/* ---------- Dark mode ---------- */
html[data-style="dark"] .layout-navbar .landing-navbar,
html.dark-style .layout-navbar .landing-navbar {
  background: rgba(8, 16, 40, 0.82) !important;
  border-color: rgba(255, 255, 255, 0.07);
}
html[data-style="dark"] .landing-navbar .navbar-nav .nav-link,
html.dark-style .landing-navbar .navbar-nav .nav-link { color: #dbe4f5; }
html[data-style="dark"] .landing-navbar .navbar-nav .nav-link.active,
html.dark-style .landing-navbar .navbar-nav .nav-link.active { background: rgba(15, 92, 228, 0.18); }
html[data-style="dark"] .tk-section-light, html.dark-style .tk-section-light { background: #0b1330; }
html[data-style="dark"] .tk-section-tint, html.dark-style .tk-section-tint { background: #0e1839; }
html[data-style="dark"] .tk-section-title, html.dark-style .tk-section-title { color: #eef2fb; }
html[data-style="dark"] .tk-stage-card, html.dark-style .tk-stage-card,
html[data-style="dark"] .tk-course-card, html.dark-style .tk-course-card,
html[data-style="dark"] .tk-teacher-card, html.dark-style .tk-teacher-card,
html[data-style="dark"] .tk-accordion .accordion-item, html.dark-style .tk-accordion .accordion-item,
html[data-style="dark"] .tk-accordion .accordion-button, html.dark-style .tk-accordion .accordion-button {
  background: #111c44;
  border-color: rgba(255, 255, 255, 0.08) !important;
}
html[data-style="dark"] .tk-stage-title, html.dark-style .tk-stage-title,
html[data-style="dark"] .tk-course-title, html.dark-style .tk-course-title,
html[data-style="dark"] .tk-teacher-name, html.dark-style .tk-teacher-name,
html[data-style="dark"] .tk-accordion .accordion-button, html.dark-style .tk-accordion .accordion-button {
  color: #e8edf9;
}

/* ============================================================
   Inner pages — page hero, search, pagination, empty states
   ============================================================ */

/* ---------- Page hero band ---------- */
.tk-page-hero {
  position: relative;
  overflow: hidden;
  padding: 8.5rem 0 3.8rem;
  background: linear-gradient(160deg, var(--tk-navy) 0%, var(--tk-navy-2) 55%, #0c2a6e 100%);
  text-align: center;
}
.tk-page-hero .tk-grid-lines { position: absolute; inset: 0; }
.tk-page-hero-title {
  color: #fff;
  font-weight: 800 !important;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  margin-bottom: .6rem;
  background: linear-gradient(120deg, #ffffff 35%, #9ec0f5 80%, var(--tk-clay) 130%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.tk-page-hero-sub {
  color: #aebadb;
  font-size: 1.08rem;
  max-width: 560px;
  margin: 0 auto;
}

/* ---------- Glass search ---------- */
.tk-search {
  display: flex;
  align-items: center;
  gap: .5rem;
  max-width: 520px;
  margin: 1.8rem auto 0;
  padding: .45rem;
  border-radius: 3rem;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.tk-search .form-control {
  background: transparent;
  border: 0 !important;
  box-shadow: none !important;
  color: #fff;
  padding-inline: 1.2rem;
}
.tk-search .form-control::placeholder { color: #93a3c9; }
.tk-search .btn {
  border-radius: 2rem !important;
  padding: .6rem 1.4rem;
  flex-shrink: 0;
}

/* ---------- Inner content section ---------- */
.tk-page-body {
  padding: 4rem 0 5rem;
  background:
    radial-gradient(800px 300px at 90% 0%, rgba(217, 119, 87, 0.05), transparent 60%),
    var(--tk-ivory);
}
.tk-results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .8rem;
  margin-bottom: 1.8rem;
}
.tk-results-title { font-weight: 800; margin: 0; color: var(--tk-ink); }
.tk-results-count {
  color: var(--tk-clay-dark);
  background: var(--tk-clay-soft);
  border-radius: 2rem;
  padding: .35rem 1.05rem;
  font-weight: 700;
  font-size: .88rem;
}

/* ---------- Course/library/pos card extras ---------- */
.tk-course-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  flex-wrap: wrap;
  margin-top: .8rem;
  padding-top: .8rem;
  border-top: 1px dashed rgba(6, 15, 46, 0.12);
}
.tk-meta-item {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--tk-muted);
  font-size: .88rem;
  font-weight: 600;
}
.tk-meta-item i { color: var(--tk-blue); font-size: 1.05rem; }
.tk-price {
  color: #fff;
  background: linear-gradient(120deg, var(--tk-clay), var(--tk-clay-dark));
  border-radius: 2rem;
  padding: .3rem 1rem;
  font-weight: 800;
  font-size: .88rem;
  box-shadow: 0 4px 14px rgba(217, 119, 87, 0.35);
}
.tk-card-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  width: 100%;
  margin-top: 1rem;
  padding: .65rem 1rem;
  border-radius: .85rem;
  font-weight: 700;
  color: var(--tk-blue);
  background: var(--tk-blue-soft);
  border: 0;
  text-decoration: none;
  transition: background .2s ease, color .2s ease, transform .18s ease;
}
.tk-card-action:hover {
  color: #fff;
  background: var(--tk-blue);
  transform: translateY(-2px);
}

/* ---------- Empty state ---------- */
.tk-empty {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--tk-muted);
  font-weight: 600;
}
.tk-empty i {
  display: block;
  font-size: 3rem;
  color: var(--tk-clay);
  margin-bottom: 1rem;
}

/* ---------- Pagination ---------- */
.pagination.pagination-rounded .page-link {
  border-radius: .8rem !important;
  border: 1px solid rgba(6, 15, 46, 0.1);
  color: var(--tk-ink);
  font-weight: 700;
  min-width: 42px;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.pagination.pagination-rounded .page-link:hover {
  background: var(--tk-blue-soft);
  color: var(--tk-blue);
  border-color: rgba(15, 92, 228, 0.3);
}
.pagination.pagination-rounded .page-item.active .page-link {
  background: var(--tk-gradient) !important;
  border-color: transparent;
  color: #fff !important;
  box-shadow: 0 6px 16px rgba(15, 92, 228, 0.4);
}

/* ---------- About page ---------- */
.tk-about-body {
  max-width: 860px;
  margin: 0 auto;
}

/* ---------- Dark mode for inner pages ---------- */
html[data-style="dark"] .tk-page-body, html.dark-style .tk-page-body { background: #0e1839; }
html[data-style="dark"] .tk-results-title, html.dark-style .tk-results-title { color: #eef2fb; }
html[data-style="dark"] .pagination.pagination-rounded .page-link,
html.dark-style .pagination.pagination-rounded .page-link {
  background: #111c44;
  border-color: rgba(255, 255, 255, 0.1);
  color: #dbe4f5;
}

/* ============================================================
   Auth pages (register / login) — tk-auth split layout
   ============================================================ */
.tk-auth {
  display: flex;
  min-height: 100vh;
  background: var(--tk-ivory);
}

/* Side brand panel */
.tk-auth-side {
  position: relative;
  overflow: hidden;
  flex: 0 0 38%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 3rem 2.5rem;
  background: linear-gradient(165deg, var(--tk-navy) 0%, var(--tk-navy-2) 55%, #0c2a6e 100%);
}
.tk-auth-side .tk-orb { position: absolute; }
.tk-auth-brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  text-decoration: none;
  margin-bottom: 2rem;
}
.tk-auth-brand img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.9);
  padding: .5rem;
  box-shadow: 0 10px 30px rgba(3, 10, 34, 0.4);
}
.tk-auth-brand-name {
  color: #fff;
  font-weight: 800;
  font-size: 1.6rem;
}
.tk-auth-side-title {
  position: relative;
  color: #fff;
  font-weight: 800 !important;
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  line-height: 1.6;
  margin-bottom: .8rem;
  background: linear-gradient(120deg, #ffffff 35%, #9ec0f5 80%, var(--tk-clay) 130%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.tk-auth-side-sub {
  position: relative;
  color: #aebadb;
  max-width: 380px;
  margin: 0 auto;
}
.tk-auth-biglogo {
  position: relative;
  display: block;
}
.tk-auth-biglogo img {
  max-width: min(320px, 80%);
  height: auto;
  filter: drop-shadow(0 12px 32px rgba(3, 10, 34, 0.45));
}

/* Form area */
.tk-auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
}
.tk-auth-card {
  width: 100%;
  max-width: 760px;
  background: #fff;
  border: 1px solid rgba(6, 15, 46, 0.07);
  border-radius: 1.5rem;
  box-shadow: var(--tk-shadow);
  padding: 2.6rem 2.4rem;
}
.tk-auth-title {
  font-weight: 800 !important;
  color: var(--tk-ink);
  margin-bottom: .4rem;
}
.tk-auth-sub {
  color: var(--tk-muted);
  margin-bottom: 2rem;
}
.tk-auth-card .form-label { font-weight: 700; color: var(--tk-ink); }
.tk-auth-card .form-control,
.tk-auth-card .form-select {
  padding: .7rem 1rem;
  border-radius: .8rem;
}
.tk-auth-card .input-group .form-control { border-start-end-radius: 0; border-end-end-radius: 0; }
.tk-auth-card .input-group-text {
  border-radius: 0 .8rem .8rem 0;
  border-color: rgba(6, 15, 46, 0.14);
}
[dir="rtl"] .tk-auth-card .input-group-text { border-radius: .8rem 0 0 .8rem; }
.tk-auth-card .select2-container .select2-selection--single {
  border-radius: .8rem !important;
  min-height: 46px;
}
.tk-auth-footer {
  text-align: center;
  margin-top: 1.6rem;
  color: var(--tk-muted);
  font-weight: 600;
}
.tk-auth-footer a { color: var(--tk-clay-dark); font-weight: 800; }
.tk-auth-footer a:hover { color: var(--tk-clay); }
.tk-auth-back {
  position: absolute;
  top: 1.4rem;
  inset-inline-start: 1.6rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: #cdd9f2;
  font-weight: 700;
  font-size: .92rem;
  text-decoration: none;
  transition: color .18s ease;
}
.tk-auth-back:hover { color: var(--tk-clay); }

@media (max-width: 991.98px) {
  .tk-auth { flex-direction: column; }
  .tk-auth-side { flex: none; padding: 4.5rem 1.5rem 2.5rem; }
  .tk-auth-main { padding: 2rem 1rem 3rem; }
  .tk-auth-card { padding: 1.8rem 1.4rem; }
}

/* Dark mode */
html[data-style="dark"] .tk-auth, html.dark-style .tk-auth { background: #0e1839; }
html[data-style="dark"] .tk-auth-card, html.dark-style .tk-auth-card {
  background: #111c44;
  border-color: rgba(255, 255, 255, 0.08);
}
html[data-style="dark"] .tk-auth-title, html.dark-style .tk-auth-title,
html[data-style="dark"] .tk-auth-card .form-label, html.dark-style .tk-auth-card .form-label {
  color: #e8edf9;
}

/* ============================================================
   Mobile safety net — keeps every front page (incl. student
   profile/courses) from overflowing sideways on phones.
   ============================================================ */
@media (max-width: 767.98px) {
  html, body { max-width: 100%; overflow-x: hidden; }

  .container, .container-xxl, .container-xl, .container-lg { padding-inline: 1rem !important; }

  /* Media never pushes the layout wider than the screen */
  img, video, iframe, .ratio { max-width: 100% !important; height: auto; }

  /* Wide tables scroll inside their own box instead of the page */
  .table-responsive, .table { width: 100%; }
  table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; }

  /* Kill oversized horizontal margins that overflow on small screens */
  .mx-5 { margin-inline: 1rem !important; }

  /* Profile header stacks cleanly */
  .user-profile-header { text-align: center; }
  .user-profile-header .flex-grow-1 { width: 100%; }

  /* Pills/tabs wrap instead of stretching off-screen */
  .nav-pills { flex-wrap: wrap; row-gap: .4rem; }
  .nav-pills .nav-link { padding-block: .5rem; }

  /* Cards and rows use the full width, comfortable tap targets */
  .card { border-radius: .9rem; }
  .btn { min-height: 42px; }

  /* Course/video grids collapse to one column */
  [class*="col-xl-"], [class*="col-lg-"], [class*="col-md-"] { margin-bottom: .25rem; }
}

/* Language switcher pill in navbar */
.tk-lang-toggle { display: inline-flex !important; align-items: center; gap: .35rem; }
.tk-lang-code { font-weight: 800; font-size: .82rem; }
