/* ═══════════════════════════════════════════════
   Tesmino Academy — Home / Landing Page
   Figma-accurate styles
═══════════════════════════════════════════════ */

/* ─── General Page ───────────────────────────── */
.academy-page {
  background: #f7f9fe;
  min-height: 100vh;
  direction: rtl;
}

/* ─── Header ─────────────────────────────────── */
.acad-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 249, 254, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid #e4e4e7;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px 16px;
  width: 100%;
}

.acad-header-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.acad-header-logo-icon {
  width: 40px; height: 40px;
  flex-shrink: 0;
}

.acad-header-search {
  flex: 1;
  min-width: 0;
}

.acad-search-input-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 10px;
  height: 40px;
  background: white;
  border: 1px solid #e4e4e7;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.2s;
}

.acad-search-input-wrap input {
  flex: 1;
  font-size: 14px;
  font-family: var(--font-base);
  color: #283249;
  text-align: right;
  direction: rtl;
  border: none;
  outline: none;
  background: transparent;
  min-width: 0;
}

.acad-search-input-wrap input::placeholder { color: #91A0C3; }

.acad-header-btn {
  width: 40px; height: 40px;
  background: #E71838;
  border: none;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s;
  text-decoration: none;
}
.acad-header-btn:hover { background: #C8152F; }

/* Desktop header */
@media (min-width: 1024px) {
  .acad-header {
    padding: 0 40px;
    height: 72px;
    gap: 32px;
  }
  .acad-header-logo { order: 2; }
  .acad-header-search { order: 1; max-width: 480px; }
  .acad-header-btn { order: 0; }
  .acad-header-nav { display: flex; gap: 4px; order: 3; flex: 1; justify-content: flex-start; }
}

.acad-header-nav { display: none; }

.acad-nav-link {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: #546999;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.15s;
  white-space: nowrap;
}
.acad-nav-link:hover { color: #283249; background: #f0f2f8; }
.acad-nav-link.active { color: #E71838; font-weight: 600; }

/* ─── Hero Section ───────────────────────────── */
.acad-hero {
  background: #f7f9fe;
  overflow: hidden;
  position: relative;
  padding: 40px 20px;
}

.acad-hero-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    linear-gradient(#d3d9e7 1px, transparent 1px),
    linear-gradient(90deg, #d3d9e7 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at center, transparent 20%, black 80%);
}

.acad-hero-inner {
  max-width: 390px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  position: relative;
  z-index: 1;
}

/* Visual block */
.acad-hero-visual {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-3deg) skewX(5deg);
}

.acad-hero-visual-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.acad-hero-visual-row {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.acad-hero-card {
  width: 56px; height: 56px;
  border-radius: 14px;
  border: 1px solid;
  background: white;
  display: flex; align-items: center; justify-content: center;
  box-shadow: -4px 8px 4px rgba(0,0,0,0.05);
}

.acad-hero-card.green  { border-color: #b9f8cf; box-shadow: inset 2px -3px 0 #dcfce7; }
.acad-hero-card.violet { border-color: #ede9fe; box-shadow: inset 2px -3px 0 #f5f3ff; }
.acad-hero-card.orange { border-color: #ffedd4; box-shadow: inset 2px -3px 0 #fff7ed; }

.acad-hero-center {
  width: 120px; height: 120px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(254,242,242,0.3) 0%, rgba(255,162,162,0.3) 100%);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}

.acad-hero-stats {
  display: flex;
  align-items: center;
  gap: 16px;
  background: white;
  border-radius: 14px;
  padding: 12px 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border: 1px solid #e4e4e7;
}

.acad-hero-stat {
  text-align: center;
  flex: 1;
}

.acad-hero-stat-val {
  font-size: 22px;
  font-weight: 900;
  color: #283249;
  font-family: var(--font-num);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.acad-hero-stat-lbl {
  font-size: 10px;
  color: #657AAA;
  margin-top: 2px;
}

.acad-hero-stat-divider {
  width: 1px;
  height: 36px;
  background: #e4e4e7;
  flex-shrink: 0;
}

/* Hero content */
.acad-hero-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
}

.acad-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border: 1px solid #D7E3FF;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #2E5FD4;
  background: white;
}

.acad-hero-title {
  font-size: 28px;
  font-weight: 800;
  color: #384666;
  text-align: center;
  line-height: 1.4;
  letter-spacing: -0.5px;
}

.acad-hero-title span { color: #E71838; }

.acad-hero-desc {
  font-size: 14px;
  color: #485A83;
  text-align: center;
  line-height: 1.7;
}

.acad-hero-btns {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

/* Desktop hero */
@media (min-width: 1024px) {
  .acad-hero { padding: 80px 40px; }
  .acad-hero-inner {
    max-width: 1280px;
    flex-direction: row;
    justify-content: space-between;
    gap: 60px;
  }
  .acad-hero-content { align-items: flex-end; text-align: right; flex: 1; }
  .acad-hero-title { text-align: right; font-size: 40px; }
  .acad-hero-desc { text-align: right; font-size: 16px; }
  .acad-hero-btns { flex-direction: row; flex-wrap: wrap; }
  .acad-hero-visual { flex-shrink: 0; }
  .acad-hero-badge { align-self: flex-end; }
}

/* ─── Section Common ─────────────────────────── */
.acad-section {
  padding: 56px 20px;
  background: #f7f9fe;
}

.acad-section-head {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 24px;
}

.acad-section-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border: 1px solid #d3d9e7;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #2E5FD4;
}

.acad-section-title {
  font-size: 26px;
  font-weight: 900;
  color: #283249;
  text-align: right;
  line-height: 1.4;
}

.acad-section-desc {
  font-size: 14px;
  color: #546999;
  text-align: right;
  line-height: 1.7;
}

.acad-see-all {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 24px;
  background: #485A83;
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font-base);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
  margin-top: 16px;
}
.acad-see-all:hover { background: #384666; }

/* ─── Learning Paths ─────────────────────────── */
.acad-paths-banner {
  background: linear-gradient(180deg, rgba(246,248,255,0.5) 0%, rgba(211,217,231,0.5) 100%);
  border: 1.5px solid white;
  border-radius: 24px;
  padding: 20px;
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: inset 0 0 24px white;
}

.acad-paths-cards { display: flex; flex-direction: column; gap: 12px; }

.acad-path-card {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  padding: 16px;
  background: white;
  border: 1px solid #e4e4e7;
  border-radius: 24px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.04), inset 0 -4px 0 #f2f4fb;
  text-decoration: none;
  transition: box-shadow 0.2s, transform 0.2s;
  cursor: pointer;
}

.acad-path-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08), inset 0 -4px 0 #f2f4fb;
}

.acad-path-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
  min-width: 0;
}

.acad-path-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #283249;
  text-align: right;
  line-height: 1.5;
}

.acad-path-card-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.acad-path-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  border: 1px solid #D7E3FF;
  border-radius: 8px;
  font-size: 12px;
  color: #657AAA;
}

.acad-path-thumb {
  width: 64px; height: 64px;
  border-radius: 12px;
  border: 1px solid #f4f4f5;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}

.acad-path-thumb img { width: 40px; height: 40px; }

/* ─── Courses & Webinars ─────────────────────── */
.acad-content-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.acad-tab {
  flex: 1;
  padding: 10px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-base);
  border: 1.5px solid #e4e4e7;
  background: white;
  color: #546999;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.acad-tab.active {
  border-color: #E71838;
  background: #fff0f2;
  color: #E71838;
}

.acad-cards-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.acad-cards-scroll::-webkit-scrollbar { display: none; }

.acad-course-card {
  min-width: 220px;
  background: white;
  border: 1px solid #e4e4e7;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.04), inset 0 -4px 0 #f2f4fb;
  text-decoration: none;
  flex-shrink: 0;
  transition: transform 0.2s, box-shadow 0.2s;
}

.acad-course-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08), inset 0 -4px 0 #f2f4fb;
}

.acad-course-thumb {
  height: 130px;
  background: linear-gradient(135deg, #f0f2f8 0%, #e4e8f5 100%);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}

.acad-course-play {
  width: 44px; height: 44px;
  background: #E71838;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(231,24,56,0.4);
}

.acad-course-type-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

.acad-course-body { padding: 14px; }

.acad-course-title {
  font-size: 13px;
  font-weight: 700;
  color: #283249;
  line-height: 1.5;
  margin-bottom: 8px;
  text-align: right;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.acad-course-instructor {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.acad-instructor-avatar {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: #fff0f2;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #E71838;
  flex-shrink: 0;
}

.acad-instructor-name {
  font-size: 12px;
  color: #546999;
}

.acad-course-footer {
  border-top: 1px solid #f4f4f5;
  padding-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.acad-course-price {
  font-size: 14px;
  font-weight: 800;
  color: #E71838;
  font-family: var(--font-num);
}

.acad-course-price.free { color: #10B981; }

.acad-course-price-lbl {
  font-size: 11px;
  font-weight: 400;
  color: #91A0C3;
}

/* ─── Topics ─────────────────────────────────── */
.acad-topics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.acad-topic-card {
  background: white;
  border: 1px solid #e4e4e7;
  border-radius: 16px;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  box-shadow: inset 0 -4px 0 #f2f4fb;
}

.acad-topic-card:hover {
  border-color: #E71838;
  background: #fff0f2;
  transform: translateY(-2px);
}

.acad-topic-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: #f7f9fe;
  display: flex; align-items: center; justify-content: center;
}

.acad-topic-name {
  font-size: 12px;
  font-weight: 600;
  color: #283249;
  text-align: center;
  line-height: 1.4;
}

/* ─── Articles ───────────────────────────────── */
.acad-article-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: white;
  border: 1px solid #e4e4e7;
  border-radius: 20px;
  box-shadow: inset 0 -4px 0 #f2f4fb;
  text-decoration: none;
  margin-bottom: 10px;
  transition: transform 0.2s;
}

.acad-article-card:hover { transform: translateY(-1px); }

.acad-article-thumb {
  width: 72px; height: 72px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f0f2f8, #e4e8f5);
  flex-shrink: 0;
  overflow: hidden;
}

.acad-article-thumb img { width: 100%; height: 100%; object-fit: cover; }

.acad-article-body { flex: 1; min-width: 0; }

.acad-article-title {
  font-size: 13px;
  font-weight: 700;
  color: #283249;
  line-height: 1.5;
  text-align: right;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
}

.acad-article-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.acad-article-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #91A0C3;
}

/* ─── Tips (Reels) ───────────────────────────── */
.acad-tips-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.acad-tips-scroll::-webkit-scrollbar { display: none; }

.acad-tip-card {
  min-width: 140px;
  height: 200px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(40,50,73,0.2) 0%, rgba(40,50,73,0.8) 100%),
              linear-gradient(135deg, #485A83, #283249);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 12px;
  flex-shrink: 0;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.acad-tip-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.25);
  backdrop-filter: blur(4px);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

.acad-tip-title {
  font-size: 12px;
  font-weight: 600;
  color: white;
  line-height: 1.4;
  text-align: right;
}

.acad-tip-duration {
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  margin-top: 4px;
  font-family: var(--font-num);
}

/* ─── Books ──────────────────────────────────── */
.acad-books-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.acad-books-scroll::-webkit-scrollbar { display: none; }

.acad-book-card {
  min-width: 150px;
  background: white;
  border: 1px solid #e4e4e7;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: inset 0 -4px 0 #f2f4fb;
  flex-shrink: 0;
  text-decoration: none;
  transition: transform 0.2s;
}

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

.acad-book-cover {
  height: 120px;
  background: linear-gradient(135deg, #E71838, #FF6B7A);
  display: flex; align-items: center; justify-content: center;
}

.acad-book-body { padding: 12px; }

.acad-book-title {
  font-size: 13px;
  font-weight: 700;
  color: #283249;
  text-align: right;
  line-height: 1.4;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.acad-book-price {
  font-size: 13px;
  font-weight: 800;
  color: #E71838;
  font-family: var(--font-num);
}

.acad-book-price.free { color: #10B981; }

/* ─── Lead Form ──────────────────────────────── */
.acad-lead {
  background: linear-gradient(135deg, #283249 0%, #485A83 100%);
  padding: 56px 20px;
  position: relative;
  overflow: hidden;
}

.acad-lead::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}

.acad-lead::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}

.acad-lead-inner {
  max-width: 480px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.acad-lead-title {
  font-size: 24px;
  font-weight: 900;
  color: white;
  text-align: center;
  margin-bottom: 8px;
  line-height: 1.4;
}

.acad-lead-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  text-align: center;
  line-height: 1.7;
  margin-bottom: 28px;
}

.acad-lead-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.acad-lead-input {
  width: 100%;
  padding: 13px 16px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  font-size: 14px;
  font-family: var(--font-base);
  color: white;
  text-align: right;
  direction: rtl;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.acad-lead-input::placeholder { color: rgba(255,255,255,0.5); }
.acad-lead-input:focus { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.18); }

.acad-lead-submit {
  width: 100%;
  padding: 13px;
  background: #E71838;
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font-base);
  cursor: pointer;
  transition: background 0.2s;
}
.acad-lead-submit:hover { background: #C8152F; }

/* ─── Bottom Nav (Mobile) ────────────────────── */
.acad-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 72px;
  background: white;
  border-top: 1px solid #e4e4e7;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 8px;
  z-index: 200;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
}

@media (min-width: 1024px) {
  .acad-bottom-nav { display: none; }
  .academy-page { padding-bottom: 0; }
}

.academy-page { padding-bottom: 80px; }

.acad-bottom-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 500;
  color: #91A0C3;
  cursor: pointer;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 12px;
  transition: color 0.15s;
  border: none;
  background: none;
  font-family: var(--font-base);
}

.acad-bottom-item.active { color: #E71838; }
.acad-bottom-item svg { width: 22px; height: 22px; }

.acad-bottom-fab {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: #E71838;
  color: white;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(231,24,56,0.35);
  cursor: pointer;
  border: none;
  transition: background 0.2s, transform 0.2s;
  margin-bottom: 20px;
  text-decoration: none;
}

.acad-bottom-fab:hover { background: #C8152F; transform: scale(1.05); }

/* ─── Desktop grid adjustments ───────────────── */
@media (min-width: 1024px) {
  .acad-section { padding: 72px 40px; }

  .acad-section-inner {
    max-width: 1280px;
    margin: 0 auto;
  }

  .acad-paths-cards { display: grid; grid-template-columns: repeat(3, 1fr); }
  .acad-topics-grid { grid-template-columns: repeat(6, 1fr); }
  .acad-cards-scroll { overflow-x: visible; flex-wrap: wrap; }
  .acad-course-card { min-width: 0; flex: 0 0 calc(25% - 9px); }
  .acad-tips-scroll { overflow-x: visible; flex-wrap: wrap; }
  .acad-tip-card { min-width: 0; flex: 0 0 calc(16.666% - 9px); }
  .acad-books-scroll { overflow-x: visible; flex-wrap: wrap; }
  .acad-book-card { min-width: 0; flex: 0 0 calc(20% - 10px); }

  .acad-section-head {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
