/* ===== الغمام — Theme inspired by Aanaab structure ===== */
/* Colors: Blue #1959D1, Teal #20AFA3, Navy #10243E, Gold #f2b84b */

:root {
  --primary: #1959D1;
  --primary-dark: #1248ae;
  --primary-light: #3189e8;
  --secondary: #20AFA3;
  --secondary-dark: #1a8e84;
  --navy: #10243e;
  --navy-2: #173552;
  --ink: #172033;
  --slate: #667085;
  --slate-light: #8794a7;
  --line: #d9e2ec;
  --line-light: #e8eef5;
  --mist: #edf5ff;
  --mist-2: #f6f9fd;
  --gold: #f2b84b;
  --white: #ffffff;
  --success: #16835a;
  --danger: #c23b4a;
  --shadow-sm: 0 2px 8px rgba(16, 36, 62, 0.06);
  --shadow-md: 0 8px 24px rgba(16, 36, 62, 0.10);
  --shadow-lg: 0 16px 48px rgba(16, 36, 62, 0.16);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --container: 1200px;
  --header-h: 80px;
}

/* ===== Reset (scoped) ===== */
.cft-theme *, .cft-theme *::before, .cft-theme *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.cft-theme {
  font-family: "IBM Plex Sans Arabic", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  direction: rtl;
}

.cft-theme a { color: inherit; text-decoration: none; }
.cft-theme img { max-width: 100%; display: block; }
.cft-theme button:not(.cft-login-submit):not(.cft-social-btn) { cursor: pointer; font: inherit; border: 0; background: none; }
.cft-theme input { font: inherit; }

.cft-theme .container {
  width: min(calc(100% - 32px), var(--container));
  margin-inline: auto;
}

/* ===== Header ===== */
.cft-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  height: var(--header-h);
  display: flex;
  align-items: center;
}

.cft-header .container {
  display: flex;
  align-items: center;
  gap: 24px;
  width: 100%;
}

.cft-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.cft-logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, var(--secondary) 100%);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(25,89,209,0.2);
}

.cft-logo-mark::before {
  content: "";
  position: absolute;
  width: 22px; height: 22px;
  top: 10px; left: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  box-shadow: 11px 5px 0 -4px rgba(255,255,255,0.9);
}

.cft-logo-mark::after {
  content: "";
  position: absolute;
  width: 22px; height: 5px;
  left: 9px; bottom: 7px;
  border-radius: 6px;
  background: var(--white);
  transform: rotate(22deg);
  transform-origin: left;
}

.cft-logo-text strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}

.cft-logo-text span {
  display: block;
  font-size: 0.65rem;
  color: var(--slate);
  font-weight: 600;
}

.cft-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-inline: auto;
}

.cft-nav a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--slate);
  transition: color 0.2s;
}

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

.cft-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.cft-search-box {
  width: 200px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--mist-2);
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s;
}

.cft-search-box:focus { border-color: var(--primary); }

.cft-lang-toggle {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.cft-lang-toggle:hover { border-color: var(--primary); color: var(--primary); }

.cft-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 20px;
  border-radius: var(--radius-2xl);
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
  transition: all 0.2s;
}

.cft-btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(25,89,209,0.25);
}

.cft-btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(25,89,209,0.3);
}

.cft-btn-secondary {
  background: var(--white);
  color: var(--navy);
  border: 1px solid var(--line);
}

.cft-btn-secondary:hover { border-color: var(--primary); color: var(--primary); }

.cft-btn-ghost {
  background: transparent;
  color: var(--primary);
  padding: 0 12px;
}

/* ===== Hero ===== */
.cft-hero {
  position: relative;
  overflow: hidden;
  padding: 60px 0 80px;
  background:
    radial-gradient(circle at 10% 20%, rgba(32,175,163,0.12), transparent 30%),
    radial-gradient(circle at 85% 10%, rgba(25,89,209,0.12), transparent 35%),
    linear-gradient(180deg, var(--mist-2) 0%, var(--white) 90%);
}

.cft-hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.cft-hero-copy h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: 0;
}

.cft-hero-copy h1 span {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cft-hero-copy p {
  margin-top: 16px;
  font-size: 1.05rem;
  color: var(--slate);
  max-width: 540px;
}

.cft-hero-cta {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cft-hero-proof {
  margin-top: 24px;
  font-size: 0.85rem;
  color: var(--slate);
  font-weight: 600;
}

.cft-hero-proof strong {
  color: var(--primary);
  font-size: 1rem;
}

/* Stats */
.cft-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}

.cft-stat {
  text-align: center;
}

.cft-stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.cft-stat-label {
  margin-top: 4px;
  font-size: 0.85rem;
  color: var(--slate);
  font-weight: 600;
}

.cft-stat-sub {
  font-size: 0.75rem;
  color: var(--slate-light);
}

.cft-hero-visual {
  position: relative;
  height: 420px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--navy) 0%, var(--primary) 50%, var(--secondary) 100%);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.cft-hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(255,255,255,0.15), transparent 50%);
}

.cft-hero-visual::after {
  content: "";
  position: absolute;
  width: 60%; height: 60%;
  right: -15%; top: -10%;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 0 0 30px rgba(255,255,255,0.04), 0 0 0 60px rgba(255,255,255,0.02);
}

.cft-hero-float-card {
  position: absolute;
  background: rgba(255,255,255,0.95);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
  z-index: 4;
}

.cft-float-progress {
  bottom: 20px;
  left: 20px;
  width: 200px;
}

.cft-float-progress-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: var(--slate);
  font-weight: 600;
}

.cft-float-progress-top strong { color: var(--navy); font-size: 0.9rem; }

.cft-float-bar {
  height: 6px;
  margin-top: 10px;
  border-radius: 8px;
  background: var(--line-light);
  overflow: hidden;
}

.cft-float-bar span {
  display: block;
  width: 72%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.cft-float-lesson {
  top: 30px;
  right: -10px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--navy);
}

.cft-float-lesson-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--secondary);
  box-shadow: 0 0 8px rgba(32,175,163,0.6);
}

/* ===== Partners ===== */
.cft-partners {
  padding: 40px 0;
  text-align: center;
  border-top: 1px solid var(--line);
}

.cft-partners h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 24px;
}

.cft-partners-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  opacity: 0.6;
}

.cft-partners-row img {
  height: 40px;
  filter: grayscale(100%);
}

/* ===== Sections ===== */
.cft-section {
  padding: 80px 0;
}

.cft-section-soft {
  background: var(--mist-2);
}

.cft-section-head {
  text-align: center;
  margin-bottom: 48px;
}

.cft-section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--navy);
}

.cft-section-head h2 span {
  color: var(--primary);
}

.cft-section-head p {
  margin-top: 12px;
  color: var(--slate);
  font-size: 1rem;
  max-width: 600px;
  margin-inline: auto;
}

/* ===== Audience Cards (شريكك في التطوير) ===== */
.cft-audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cft-audience-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.3s;
}

.cft-audience-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.cft-audience-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.cft-audience-icon.indigo { background: rgba(25,89,209,0.1); color: var(--primary); }
.cft-audience-icon.teal { background: rgba(32,175,163,0.1); color: var(--secondary); }
.cft-audience-icon.gold { background: rgba(242,184,75,0.1); color: var(--gold); }

.cft-audience-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.cft-audience-card p {
  font-size: 0.9rem;
  color: var(--slate);
  margin-bottom: 16px;
}

.cft-audience-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cft-audience-links a {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-2xl);
  background: var(--mist);
  color: var(--primary);
  transition: all 0.2s;
}

.cft-audience-links a:hover {
  background: var(--primary);
  color: var(--white);
}

/* ===== Sectors (قطاعات) ===== */
.cft-sectors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.cft-sector-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  color: var(--white);
  background: linear-gradient(180deg, transparent 0%, rgba(16,36,62,0.9) 100%), linear-gradient(135deg, var(--primary), var(--secondary));
  transition: all 0.3s;
}

.cft-sector-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.cft-sector-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}

.cft-sector-card p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.85);
}

.cft-sector-stats {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.cft-sector-stat {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--white);
  background: rgba(255,255,255,0.15);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.cft-sector-link {
  margin-top: 16px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ===== Course Cards ===== */
.cft-courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cft-course-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}

.cft-course-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.cft-course-thumb {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, var(--mist), var(--mist-2));
  position: relative;
  overflow: hidden;
}

.cft-course-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cft-course-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: var(--secondary);
  color: var(--white);
}

.cft-course-badge.free { background: var(--success); }

.cft-course-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.cft-course-cat {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 6px;
}

.cft-course-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
  margin-bottom: 8px;
}

.cft-course-meta {
  display: flex;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--slate);
  margin-bottom: 12px;
}

.cft-course-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.cft-course-instructor {
  font-size: 0.82rem;
  color: var(--slate);
  font-weight: 600;
  margin-bottom: 12px;
}

.cft-course-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--line-light);
}

.cft-course-price {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary);
}

.cft-course-price.free { color: var(--success); }

.cft-course-btn {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  background: var(--mist);
  transition: all 0.2s;
}

.cft-course-btn:hover {
  background: var(--primary);
  color: var(--white);
}

/* Load more */
.cft-load-more {
  text-align: center;
  margin-top: 40px;
}

/* ===== Course Page ===== */
.cft-breadcrumb {
  padding: 16px 0;
  font-size: 0.85rem;
  color: var(--slate);
}

.cft-breadcrumb a { color: var(--primary); font-weight: 600; }
.cft-breadcrumb span { margin: 0 6px; }

.cft-course-hero {
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.cft-course-hero h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 12px;
}

.cft-course-hero-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 16px;
}

.cft-course-hero-meta span {
  font-size: 0.85rem;
  color: var(--slate);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cft-course-hero-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cft-course-hero-price {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
}

.cft-course-video {
  margin: 32px 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--navy);
}

.cft-course-video iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.cft-course-section-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--navy);
  margin: 40px 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--mist);
}

/* Accordion */
.cft-accordion-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  overflow: hidden;
}

.cft-accordion-header {
  padding: 16px 20px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--white);
  transition: background 0.2s;
}

.cft-accordion-header:hover { background: var(--mist-2); }

.cft-accordion-icon {
  width: 20px; height: 20px;
  transition: transform 0.2s;
}

.cft-accordion-item.active .cft-accordion-icon { transform: rotate(180deg); }

.cft-accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s;
}

.cft-accordion-item.active .cft-accordion-body { max-height: 600px; }

.cft-accordion-body-inner {
  padding: 16px 20px;
  font-size: 0.88rem;
  color: var(--slate);
}

.cft-lesson-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-light);
  font-size: 0.85rem;
}

.cft-lesson-item:last-child { border-bottom: 0; }

.cft-lesson-duration {
  margin-inline-start: auto;
  font-size: 0.78rem;
  color: var(--slate-light);
}

/* Instructor card */
.cft-instructor-card {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 20px;
  background: var(--mist-2);
  border-radius: var(--radius-lg);
  margin: 24px 0;
}

.cft-instructor-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  flex-shrink: 0;
  overflow: hidden;
}

.cft-instructor-info h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
}

.cft-instructor-info p {
  font-size: 0.85rem;
  color: var(--slate);
}

/* Certificate */
.cft-certificate-box {
  background: linear-gradient(135deg, var(--mist) 0%, var(--mist-2) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
}

.cft-certificate-icon {
  width: 48px; height: 48px;
  margin: 0 auto 12px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

/* FAQ */
.cft-faq-item {
  border-bottom: 1px solid var(--line);
}

.cft-faq-q {
  padding: 16px 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cft-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s;
  font-size: 0.88rem;
  color: var(--slate);
}

.cft-faq-item.active .cft-faq-a { max-height: 200px; padding-bottom: 16px; }

/* Related courses */
.cft-related {
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

/* ===== Login Page ===== */
.cft-login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--mist-2) 0%, var(--white) 100%);
  padding: 20px;
}

.cft-login-card {
  width: 100%;
  max-width: 440px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.cft-login-logo {
  text-align: center;
  margin-bottom: 32px;
}

.cft-login-logo .cft-logo-mark {
  margin: 0 auto;
}

.cft-login-title {
  text-align: center;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
}

.cft-login-subtitle {
  text-align: center;
  font-size: 0.9rem;
  color: var(--slate);
  margin-bottom: 28px;
}

/* Social login buttons */
.cft-social-login {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.cft-social-btn {
  flex: 1;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy);
  background: var(--white);
  transition: all 0.2s;
  cursor: pointer;
}

.cft-social-btn:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.cft-social-btn.google:hover { border-color: #4285f4; color: #4285f4; }
.cft-social-btn.apple:hover { border-color: #000; color: #000; }

.cft-social-icon {
  width: 20px; height: 20px;
}

/* Divider */
.cft-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
}

.cft-divider::before, .cft-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.cft-divider span {
  font-size: 0.82rem;
  color: var(--slate);
}

/* Email input */
.cft-login-field {
  margin-bottom: 20px;
}

.cft-login-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}

.cft-login-field input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
  background: var(--mist-2);
}

.cft-login-field input:focus {
  border-color: var(--primary);
  background: var(--white);
}

.cft-login-terms {
  font-size: 0.8rem;
  color: var(--slate);
  text-align: center;
  margin-bottom: 20px;
}

.cft-login-terms a { color: var(--primary); font-weight: 600; }

.cft-login-submit {
  width: 100%;
  height: 48px;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(25,89,209,0.25);
}

.cft-login-submit:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

/* OTP */
.cft-otp-page { display: none; }

.cft-otp-inputs {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 24px;
}

.cft-otp-digit {
  width: 50px;
  height: 56px;
  text-align: center;
  font-size: 1.3rem;
  font-weight: 800;
  border: 2px solid var(--line);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color 0.2s;
  background: var(--mist-2);
}

.cft-otp-digit:focus {
  border-color: var(--primary);
  background: var(--white);
}

.cft-otp-digit.filled {
  border-color: var(--secondary);
  background: rgba(32,175,163,0.05);
}

/* ===== Footer ===== */
.cft-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 48px 0 24px;
}

.cft-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.cft-footer-brand p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-top: 12px;
  max-width: 300px;
}

.cft-footer-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.cft-footer-social a {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
  transition: all 0.2s;
}

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

.cft-footer-col h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 14px;
}

.cft-footer-col a {
  display: block;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  padding: 4px 0;
  transition: color 0.2s;
}

.cft-footer-col a:hover { color: var(--white); }

.cft-footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .cft-hero .container { grid-template-columns: 1fr; }
  .cft-hero-visual { display: none; }
  .cft-audience-grid { grid-template-columns: 1fr; }
  .cft-sectors-grid { grid-template-columns: repeat(2, 1fr); }
  .cft-courses-grid { grid-template-columns: repeat(2, 1fr); }
  .cft-footer-grid { grid-template-columns: 1fr 1fr; }
  .cft-stats { grid-template-columns: repeat(2, 1fr); }
  .cft-nav { display: none; }
}

@media (max-width: 640px) {
  .cft-sectors-grid { grid-template-columns: 1fr; }
  .cft-courses-grid { grid-template-columns: 1fr; }
  .cft-footer-grid { grid-template-columns: 1fr; }
  .cft-stats { grid-template-columns: 1fr 1fr; }
  .cft-header .container { gap: 12px; }
  .cft-search-box { display: none; }
  .cft-social-login { flex-direction: column; }
  .cft-otp-digit { width: 40px; height: 48px; font-size: 1.1rem; }
  .cft-login-card { padding: 24px; }
}

/* ===== WhatsApp Float ===== */
.cft-whatsapp-float {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 90;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  cursor: pointer;
  transition: transform 0.2s;
}

.cft-whatsapp-float:hover { transform: scale(1.05); }

.cft-whatsapp-float svg {
  width: 28px; height: 28px;
  fill: var(--white);
}

/* ===== Animation ===== */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.05); opacity: 0.8; }
}

/* FIX: Override .cft-theme button { background: none } for login submit buttons */
.cft-theme .cft-login-submit,
.cft-login-page .cft-login-submit {
  background: #1959D1 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 14px 24px !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  width: 100% !important;
  display: block !important;
  box-shadow: 0 4px 12px rgba(25,89,209,0.25) !important;
  transition: all 0.2s !important;
}

.cft-theme .cft-login-submit:hover,
.cft-login-page .cft-login-submit:hover {
  background: #1248ae !important;
  transform: translateY(-1px);
}
