    
/* ════════════════════════════════════════════
   TOKENS
════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue: #2563eb;
  --blue-dk: #1d4ed8;
  --indigo: #4f46e5;
  --green: #059669;
  --amber: #f59e0b;
  --purple: #7c3aed;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --border: #e4e9f5;
  --text: #0f172a;
  --muted: #64748b;
  --grad: linear-gradient(135deg, #1d4ed8 0%, #4f46e5 100%);
  --r: 16px;
  --r-sm: 10px;
  --sh: 0 2px 12px rgba(15,23,42,.06);
  --sh-md: 0 6px 24px rgba(15,23,42,.09);
  --t: .2s ease;
}

body {
  background-color: #f5f7fb !important;
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  font-family: "Poppins", sans-serif;
  font-style: normal;
}

body a { text-decoration: none; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.apc-home .container { max-width: 1320px; padding-inline: 24px; }

/* ════════════════════════════════════════════
   HERO
════════════════════════════════════════════ */
.hero {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 42px;
  overflow: hidden;
  padding: 34px 42px;
  border-radius: 24px;
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 45%, #4f46e5 100%);
  box-shadow: 0 18px 45px rgba(37,99,235,.18);
  color: #fff;
  margin: 18px 0 28px;
}

.hero::before {
  content: "";
  position: absolute;
  width: 340px; height: 340px;
  right: -120px; top: -120px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
}

.hero::after {
  content: "";
  position: absolute;
  width: 180px; height: 180px;
  left: -70px; bottom: -70px;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
}

.hero__text { position: relative; z-index: 2; flex: 1; max-width: 620px; }

.hero__hello {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.15);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
}

.hero__member { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }

.hero__avatar {
  width: 74px; height: 74px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,.35);
  box-shadow: 0 10px 28px rgba(0,0,0,.18);
}

.hero__title { margin: 0; font-size: 32px; font-weight: 700; line-height: 1.15; color: #fff; }
.hero__sub { margin-top: 6px; font-size: 15px; line-height: 1.7; color: rgba(255,255,255,.90); }

.hero__features { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero__features span {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  font-size: 13px; font-weight: 600;
}

.hero__stats { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.hero__stats div {
  min-width: 88px; padding: 8px 10px; border-radius: 12px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(10px);
  text-align: center;
  transition: .25s;
}
.hero__stats div:hover { background: rgba(255,255,255,.16); transform: translateY(-2px); }
.hero__stats strong { display: block; margin: 3px 0; font-size: 18px; font-weight: 500; line-height: 1.1; color: #fff; }
.hero__stats span { display: block; font-size: 11px; line-height: 1.2; color: rgba(255,255,255,.85); }

.hero__actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }

.btn-hero-primary {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 12px 24px; border-radius: 12px;
  background: #fff; color: #2563eb;
  text-decoration: none; font-size: 14px; font-weight: 700;
  transition: .25s; box-shadow: 0 8px 18px rgba(0,0,0,.12);
}
.btn-hero-primary:hover { background: #eff6ff; color: #1d4ed8; transform: translateY(-2px); }

.btn-hero-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 12px 24px; border-radius: 12px;
  background: rgba(255,255,255,.12); color: #fff;
  border: 1px solid rgba(255,255,255,.25);
  text-decoration: none; font-size: 14px; font-weight: 700; transition: .25s;
}
.btn-hero-ghost:hover { background: rgba(255,255,255,.18); transform: translateY(-2px); }

.hero__illustration-wrap { position: relative; z-index: 2; flex-shrink: 0; }
.hero__illustration { width: 500px; max-width: 100%; height: auto; }

.bubble {
  position: absolute; padding: 7px 14px; border-radius: 999px;
  background: #fff; color: #111827; font-size: 12px; font-weight: 700;
  box-shadow: 0 10px 22px rgba(0,0,0,.12);
  animation: float 4s ease-in-out infinite;
}
.bubble--1 { top: -14px; left: -12px; }
.bubble--2 { top: -40px; left: 75px; }
.bubble--3 { top: -12px; left: 160px; }
.bubble--4 { top: -42px; left: 250px; }
.bubble--5 { top: -10px; left: 330px; }

@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media(max-width:992px){
  .hero { padding: 28px; flex-direction: column; text-align: center; }
  .hero__member { justify-content: center; }
  .hero__stats { justify-content: center; }
  .hero__actions { justify-content: center; }
  .hero__features { justify-content: center; }
}
@media(max-width:768px){
  .hero__title { font-size: 26px; }
  .hero__avatar { width: 60px; height: 60px; }
  .hero__illustration { width: 260px; }
  .bubble { display: none; }
}
@media(max-width:576px){
  .hero { padding: 22px; border-radius: 18px; }
  .hero__stats { display: grid; grid-template-columns: repeat(3,1fr); width: 100%; }
  .hero__stats div { min-width: auto; }
}

/* ════════════════════════════════════════════
   LIVE STATS TICKER
════════════════════════════════════════════ */
.live-bar {
  display: flex; align-items: center; gap: 18px;
  background: var(--surface);
  border: 1px solid #a6bcef;
  border-radius: var(--r);
  padding: 14px 22px;
  box-shadow: var(--sh);
  margin-bottom: 28px;
}
.live-bar__pulse {
  width: 9px; height: 9px; border-radius: 50%; background: #22c55e; flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34,197,94,.6); }
  70% { box-shadow: 0 0 0 8px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}
.live-bar__items { display: flex; flex-wrap: wrap; gap: 0; flex: 1; }
.live-bar__item {
  display: flex; align-items: center; gap: 6px;
  flex: 1 1 120px; padding: 4px 16px;
  border-right: 1px solid var(--border);
  font-size: 13px; color: var(--muted); white-space: nowrap;
}
.live-bar__item:last-child { border-right: none; }
.live-bar__item strong { font-size: 15px; font-weight: 600; color: var(--blue); }
.live-bar__item--live strong { color: #16a34a; }
.live-bar__icon { font-size: 15px; }

/* ════════════════════════════════════════════
   MAIN GRID
════════════════════════════════════════════ */
.home-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }
.home-col-left, .home-col-right { display: flex; flex-direction: column; gap: 24px; }

/* ════════════════════════════════════════════
   CARD
════════════════════════════════════════════ */
.ah-card {
  background: var(--surface);
  border: 1px solid #a6bcef;
  border-radius: var(--r);
  padding: 20px 22px;
  box-shadow: var(--sh);
}
.ah-card__hd {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--border);
}
.ah-card__title { font-size: 16px; font-weight: 600; }

.viewall {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px;
  background: #f8fbff; border: 1px solid #dbeafe;
  color: #2563eb; font-size: 13px; font-weight: 700;
  text-decoration: none; transition: all .25s ease;
}
.viewall::after { content: "→"; font-size: 14px; transition: transform .25s ease; }
.viewall:hover { background: #2563eb; color: #fff; border-color: #2563eb; transform: translateY(-2px); box-shadow: 0 8px 18px rgba(37,99,235,.20); }
.viewall:hover::after { transform: translateX(4px); }
.viewall:active { transform: translateY(0); box-shadow: none; }

.flag-xs { width: 18px; height: 13px; object-fit: cover; border-radius: 2px; }

/* ════════════════════════════════════════════
   LEARNING POSTS — NEW premium compact cards
════════════════════════════════════════════ */
.lp-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lp-card {
  border: 1px solid #e7ebf5;
  border-radius: 14px;
  padding: 14px 16px;
  background: #fbfcff;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.lp-card:hover {
  border-color: #c7d5f7;
  box-shadow: 0 8px 22px rgba(37,99,235,.08);
  transform: translateY(-1px);
}

.lp-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.lp-card__avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #eef2ff;
  flex-shrink: 0;
}

.lp-card__who { flex: 1; min-width: 0; }

.lp-card__user {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  line-height: 1.2;
}

.lp-card__lang {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  margin-top: 1px;
}

.lp-card__time {
  font-size: 11.5px;
  color: #94a3b8;
  white-space: nowrap;
  flex-shrink: 0;
}

.lp-card__body {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.lp-card__text { flex: 1; min-width: 0; }

.lp-card__title-text {
  font-size: 15px;
  font-weight: 700;
  color: #1e2433;
  margin-bottom: 4px;
  line-height: 1.3;
}

.lp-card__media {
  width: 92px;
  height: 68px;
  min-width: 92px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  background: #f8fafc;
  flex-shrink: 0;
}

.lp-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lp-card__media--link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-decoration: none;
  color: var(--blue);
  font-size: 11.5px;
  font-weight: 700;
  transition: .2s;
}
.lp-card__media--link:hover { background: #eff6ff; color: var(--blue-dk); }
.lp-card__media-icon { font-size: 18px; }

.lp-card__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed #e2e8f5;
}

.lp-card__stats {
  display: flex;
  gap: 14px;
  font-size: 12.5px;
  color: #64748b;
  font-weight: 600;
}

.lp-card__read {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  transition: .2s;
}
.lp-card__read::after { content: "→"; transition: transform .2s ease; }
.lp-card__read:hover { background: #2563eb; color: #fff; }
.lp-card__read:hover::after { transform: translateX(3px); }

@media(max-width:576px){
  .lp-card__body { flex-direction: column; }
  .lp-card__media { width: 100%; height: 140px; min-width: 100%; }
}

/* ─── CKEditor content inside post preview ─── */
.post-preview {
  max-height: 90px;
  overflow: hidden;
  position: relative;
  line-height: 1.6;
  font-size: 13.5px;
  color: #475569;
}
.post-preview::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 40px;
  background: linear-gradient(rgba(251,252,255,0), rgba(251,252,255,1));
}
.post-preview h1, .post-preview h2, .post-preview h3,
.post-preview h4, .post-preview h5, .post-preview h6 {
  margin-top: .5rem; margin-bottom: .35rem; font-size: 14px;
}
.post-preview p { margin-bottom: .4rem; }
.post-preview ul, .post-preview ol { padding-left: 1.2rem; margin-bottom: .5rem; }
.post-preview blockquote {
  border-left: 3px solid var(--blue);
  padding-left: 10px; color: #6b7280; margin: .5rem 0;
}
.post-preview img { max-width: 100%; height: auto; border-radius: 8px; }
.post-preview a { color: var(--blue); text-decoration: none; }
.post-preview a:hover { text-decoration: underline; }

/* ════════════════════════════════════════════
   NEW MEMBERS
════════════════════════════════════════════ */
.member-grid { display: flex; flex-wrap: wrap; gap: 16px; }
.member-tile { flex: 1 1 120px; text-align: center; }
.member-tile__avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; margin: 0 auto 8px; border: 2px solid #edf2ff; }
.member-tile__name { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 14px; font-weight: 600; }
.member-tile__joined { display: block; font-size: 13px; color: var(--muted); margin: 3px 0 8px; }
.member-tile__follow {
  display: inline-block; font-size: 12px; font-weight: 600; color: var(--blue);
  border: 1px solid var(--border); border-radius: 999px; padding: 5px 14px; transition: var(--t);
}
.member-tile__follow:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.member-tile__follow--danger { color: #dc2626; }
.member-tile__follow--danger:hover { background: #dc2626; color: #fff; border-color: #dc2626; }

/* ════════════════════════════════════════════
   STAT GRID
════════════════════════════════════════════ */
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat-tile { background: #f6f8ff; border: 1px solid var(--border); border-radius: var(--r-sm); padding: 16px 10px; text-align: center; transition: var(--t); }
.stat-tile:hover { background: #eef2ff; }
.stat-tile strong { display: block; font-size: 20px; font-weight: 800; }
.stat-tile span { font-size: 14px; color: var(--muted); font-weight: 500; }

/* ════════════════════════════════════════════
   TOP CONTRIBUTORS
════════════════════════════════════════════ */
.contributor-grid { display: flex; flex-wrap: wrap; gap: 16px; }
.contributor-tile { flex: 1 1 100px; text-align: center; }
.contributor-tile__medal { display: block; font-size: 18px; margin-bottom: 4px; }
.contributor-tile__avatar { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; margin: 0 auto 6px; }
.contributor-tile__name { display: flex; align-items: center; justify-content: center; gap: 5px; font-size: 14px; font-weight: 600; }
.contributor-tile__points { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }

/* ════════════════════════════════════════════
   RANK ROW (trending clubs)
════════════════════════════════════════════ */
.rank-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.rank-row:last-child { border-bottom: none; padding-bottom: 0; }
.rank-row__num {
  width: 22px; height: 22px; border-radius: 50%; background: #eef2ff; color: var(--blue);
  display: flex; align-items: center; justify-content: center; font-size: 11.5px; font-weight: 600; flex-shrink: 0;
}
.rank-row__icon { width: 42px; height: 42px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.rank-row__icon--ph { display: flex; align-items: center; justify-content: center; background: #eef4ff; font-size: 18px; }
.rank-row__body { flex: 1; min-width: 0; }
.rank-row__name { display: block; font-size: 14px; font-weight: 600; }
.rank-row__sub { font-size: 13px; color: var(--muted); }

/* ════════════════════════════════════════════
   EVENTS
════════════════════════════════════════════ */
.event-row { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.event-row:last-child { border-bottom: none; padding-bottom: 0; }
.event-row__date {
  width: 50px; flex-shrink: 0; text-align: center; background: #ffedc2; border-radius: var(--r-sm); padding: 6px 0;
}
.event-row__date span { display: block; font-size: 18px; font-weight: 800; color: #b91c1c; }
.event-row__date small { font-size: 10.5px; font-weight: 600; color: #b91c1c; letter-spacing: .5px; }
.event-row__body { flex: 1; min-width: 0; }
.event-row__title { display: block; font-size: 15.5px; font-weight: 600; margin-bottom: 3px; }
.event-row__meta { display: block; font-size: 12px; color: var(--muted); }

/* ════════════════════════════════════════════
   ACADEMY COURSES — new dedicated row
════════════════════════════════════════════ */
.course-row {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.course-row:last-child { border-bottom: none; padding-bottom: 0; }

.course-row__thumb {
  width: 64px;
  height: 56px;
  min-width: 64px;
  border-radius: 10px;
  overflow: hidden;
  background: #eef4ff;
}
.course-row__thumb img { width: 100%; height: 100%; object-fit: cover; }
.course-row__thumb--ph {
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}

.course-row__body { flex: 1; min-width: 0; }
.course-row__title { font-size: 12.5px;; color: #6a6b6f !important; margin-bottom: 2px; }
.course-row__lang { font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }

.course-row__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.course-row__stats {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
}
.course-row__read {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
}
.course-row__read:hover { color: var(--blue-dk); text-decoration: underline; }

/* ════════════════════════════════════════════
   NEXT LEVEL PROGRESS
════════════════════════════════════════════ */
.next-progress { margin-top: 10px; }
.next-progress__level { font-size: 30px; font-weight: 800; color: #2563eb; margin-bottom: 18px; }
.next-progress__stats {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 10px; margin-bottom: 22px; font-size: 13px; color: #6b7280; font-weight: 600;
}
.progress-track { width: 100%; height: 12px; border-radius: 999px; background: #e5e7eb; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #2563eb, #4f46e5); transition: width .5s ease; }

.next-progress__challenge {
  display: flex; align-items: center; gap: 16px;
  background: #f8fafc; border: 1px solid #e5e7eb; border-radius: 14px; padding: 16px;
}
.next-progress__icon {
  width: 42px; height: 42px; border-radius: 50%; background: #fff7e8;
  display: flex; align-items: center; justify-content: center; font-size: 26px; flex-shrink: 0;
}
.next-progress__challenge strong { display: block; font-size: 15px; font-weight: 600; color: #111827; margin-bottom: 2px; }
.next-progress__challenge div div { font-size: 14px; color: #16a34a; font-weight: 600; }
.next-progress__challenge .btn { margin-left: auto; min-width: 64px; border-radius: 10px; font-size: 14px; font-weight: 600; padding: 9px 18px; }

@media(max-width:768px){
  .next-progress__level { font-size: 24px; }
  .next-progress__challenge { gap: 12px; padding: 14px; }
  .next-progress__icon { width: 38px; height: 38px; font-size: 22px; }
  .next-progress__challenge strong { font-size: 14px; }
}

/* ════════════════════════════════════════════
   GENERIC
════════════════════════════════════════════ */
.btn-inline { display: inline-block; background: var(--blue); color: #fff; border-radius: 999px; padding: 9px 20px; font-size: 13px; font-weight: 600; transition: var(--t); }
.btn-inline:hover { background: var(--blue-dk); color: #fff; transform: translateY(-1px); }
.link-btn { display: inline-block; font-size: 12.5px; font-weight: 600; color: var(--blue); }
.link-btn:hover { color: var(--blue-dk); }
.mt-2 { margin-top: 8px !important; }
.mt-4 { margin-top: 16px !important; }
.empty-state { text-align: center; padding: 24px 10px; color: var(--muted); }
.empty-state__icon { font-size: 34px; margin-bottom: 8px; }
.empty-state p { font-size: 13px; margin-bottom: 12px; }

/* ════════════════════════════════════════════
   LATEST BADGES & CERTIFICATIONS
════════════════════════════════════════════ */
.apc-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 2px 12px rgba(15,23,42,.06);
}
.apc-card__hd {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid #eef2f7;
}
.apc-card__title { font-size: 16px; font-weight: 700; color: #111827; }
.apc-card--accent-green { border-top: 4px solid #10b981; }
.apc-card--accent-purple { border-top: 4px solid #7c3aed; }

.badge-home, .cert-home {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0; border-bottom: 1px solid #f1f5f9;
}
.badge-home:last-child, .cert-home:last-child { border-bottom: none; padding-bottom: 0; }

.badge-home__avatar, .cert-home__avatar {
  width: 48px; height: 48px; border-radius: 50%; object-fit: cover;
  border: 2px solid #eef2ff; flex-shrink: 0;
}
.badge-home__content, .cert-home__content { flex: 1; min-width: 0; }
.badge-home__user, .cert-home__user {
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 5px; font-size: 14px; font-weight: 600; color: #111827;
}
.badge-home__badge { font-size: 14px; color: #2563eb; font-weight: 600; }
.cert-home__title { font-size: 14px; color: #7c3aed; font-weight: 600; }
.badge-home__date, .cert-home__date { margin-top: 4px; font-size: 12px; color: #6b7280; }

.badge-home:hover, .cert-home:hover {
  background: #f8fafc; border-radius: 12px; padding-left: 10px; padding-right: 10px; transition: .25s;
}

@media(max-width:768px){
  .badge-home, .cert-home { gap: 12px; }
  .badge-home__avatar, .cert-home__avatar { width: 42px; height: 42px; }
  .badge-home__user, .cert-home__user { font-size: 13px; }
  .badge-home__badge, .cert-home__title { font-size: 13px; }
}

/* ════════════════════════════════════════════
   SUGGESTED PARTNERS
════════════════════════════════════════════ */
.partner-home { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid #eef2f7; align-items: flex-start; }
.partner-home:last-child { border-bottom: none; }
.partner-home__avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2px solid #edf2f7; flex-shrink: 0; }
.partner-home__content { flex: 1; min-width: 0; }
.partner-home__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.partner-home__user { display: flex; align-items: center; gap: 6px; font-size: 17px; font-weight: 450; color: #111827; }
.partner-home__languages { display: flex; gap: 14px; align-items: center; margin-bottom: 10px; font-size: 15px; font-weight: 600; }
.partner-home__native { color: #2eb761; }
.partner-home__learning { color: #2563eb; }

.partner-home__actions { display: flex; justify-content: flex-start; align-items: center; gap: 8px; margin-top: 8px; padding: 10px; }
.partner-home__btn {
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 auto; padding: 0 16px; height: 36px;
  border-radius: 10px; text-decoration: none; font-size: 13px; font-weight: 600; transition: .25s;
}
.partner-home__btn--profile { border: 1px solid #dbeafe; background: #fff; color: #2563eb; }
.partner-home__btn--profile:hover { background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8; }
.partner-home__btn--add { background: #f3f3f3; border: 1px solid #2563eb; color: #797979; }
.partner-home__btn--add:hover { background: #1d4ed8; border-color: #1d4ed8; color: #fff; transform: translateY(-1px); }

.partner-home__match { padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.partner-home__match--100 { background: #dcfce7; color: #15803d; }
.partner-home__match--50 { background: #fef3c7; color: #b45309; }
.partner-home__match--25, .partner-home__match--0 { background: #fee2e2; color: #dc2626; }
.partner-home__interest {
  display: inline-flex; margin-bottom: 10px; padding: 4px 10px; border-radius: 999px;
  background: #ecfdf5; color: #15803d; font-size: 11px; font-weight: 600;
}

/* ════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════ */
@media (max-width: 992px) {
  .home-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .live-bar { flex-wrap: wrap; }
  .live-bar__item { flex: 1 1 45%; border-right: none; border-bottom: 1px solid var(--border); padding: 8px 4px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .ah-card { padding: 16px; }
}

@media (max-width: 576px) {
  .apc-home .container { padding-inline: 12px; }
  .stat-grid { grid-template-columns: 1fr; }
}    


    
/* ==========================================================
   LATEST COACHING POSTS
========================================================== */

.latest-coaching{
    margin:24px 0 30px;
    padding:24px;

    background:#fff;

    border:1px solid rgba(15,23,42,.08);
    border-radius:22px;

    box-shadow:0 8px 30px rgba(15,23,42,.05);
}


/* ==========================================================
   HEADER
========================================================== */

.latest-coaching__header{
    display:flex;
    align-items:center;
    justify-content:space-between;

    gap:20px;

    margin-bottom:20px;
}


.latest-coaching__eyebrow{
    display:inline-block;

    margin-bottom:5px;

    font-size:12px;
    font-weight:800;

    letter-spacing:.04em;
    text-transform:uppercase;

    color:#2563eb;
}


.latest-coaching__title{
    margin:0;

    font-size:24px;
    font-weight:800;

    color:#111827;
}


.latest-coaching__view-all{
    display:inline-flex;
    align-items:center;
    gap:7px;

    flex-shrink:0;

    font-size:14px;
    font-weight:700;

    color:#2563eb;
    text-decoration:none;

    transition:transform .2s ease;
}


.latest-coaching__view-all:hover{
    color:#1d4ed8;

    transform:translateX(2px);
}


/* ==========================================================
   GRID
========================================================== */

.latest-coaching__grid{
    display:grid;

    grid-template-columns:repeat(4,minmax(0,1fr));

    gap:16px;
}


/* ==========================================================
   CARD
========================================================== */

.latest-coaching__card{
    display:flex;
    flex-direction:column;

    min-width:0;

    overflow:hidden;

    background:#fff;

    border:1px solid rgba(15,23,42,.09);
    border-radius:18px;

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;
}


.latest-coaching__card:hover{
    transform:translateY(-4px);

    border-color:rgba(37,99,235,.22);

    box-shadow:0 14px 30px rgba(15,23,42,.10);
}


/* ==========================================================
   IMAGE
========================================================== */

.latest-coaching__image-link{
    display:block;

    overflow:hidden;

    height:145px;

    background:#f1f5f9;
}


.latest-coaching__image{
    display:block;

    width:100%;
    height:145px;

    object-fit:cover;

    transition:transform .35s ease;
}


.latest-coaching__card:hover .latest-coaching__image{
    transform:scale(1.05);
}


.latest-coaching__image--placeholder{
    display:flex;
    align-items:center;
    justify-content:center;

    font-size:36px;

    background:
        linear-gradient(
            135deg,
            #eff6ff,
            #f8fafc
        );
}


/* ==========================================================
   CONTENT
========================================================== */

.latest-coaching__content{
    display:flex;
    flex:1;
    flex-direction:column;

    padding:15px;
}


.latest-coaching__post-title{
    margin:0 0 9px;

    font-size:16px;
    line-height:1.4;
    font-weight:800;
}


.latest-coaching__post-title a{
    color:#5d6575;

    text-decoration:none;
}


.latest-coaching__post-title a:hover{
    color:#2563eb;
}


.latest-coaching__excerpt{
    margin:0 0.15px;

    font-size:13px;
    line-height:1.55;

    color:#64748b;

    display:-webkit-box;

    -webkit-box-orient:vertical;
    -webkit-line-clamp:3;

    overflow:hidden;
}


.latest-coaching__footer{
    display:flex;
    align-items:center;
    justify-content:space-between;

    gap:10px;

    margin-top:auto;
    padding-top:12px;

    border-top:1px solid rgba(15,23,42,.07);
}


.latest-coaching__meta{
    font-size:11px;
    font-weight:600;

    color:#94a3b8;

    white-space:nowrap;
}


.latest-coaching__read{
    display:inline-flex;
    align-items:center;
    gap:5px;

    font-size:12px;
    font-weight:800;

    color:#2563eb;

    text-decoration:none;

    white-space:nowrap;
}


.latest-coaching__read:hover{
    color:#1d4ed8;
}


.latest-coaching__empty{
    grid-column:1 / -1;

    padding:30px;

    text-align:center;

    color:#64748b;
}


/* ==========================================================
   TABLET
========================================================== */

@media(max-width:991px){

    .latest-coaching__grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

}


/* ==========================================================
   MOBILE — SHOW ONLY 2 POSTS
========================================================== */

@media(max-width:767px){

    .latest-coaching{
        margin:18px 0 24px;
        padding:17px;

        border-radius:18px;
    }


    .latest-coaching__header{
        margin-bottom:15px;
    }


    .latest-coaching__title{
        font-size:20px;
    }


    .latest-coaching__grid{
        grid-template-columns:repeat(2,minmax(0,1fr));

        gap:10px;
    }


    .latest-coaching__card--desktop-only{
        display:none;
    }


    .latest-coaching__image-link,
    .latest-coaching__image{
        height:105px;
    }


    .latest-coaching__content{
        padding:11px;
    }


    .latest-coaching__post-title{
        margin-bottom:7px;

        font-size:13px;
        line-height:1.35;

        display:-webkit-box;

        -webkit-box-orient:vertical;
        -webkit-line-clamp:2;

        overflow:hidden;
    }


    .latest-coaching__excerpt{
        margin-bottom:10px;

        font-size:11px;
        line-height:1.45;

        -webkit-line-clamp:3;
    }


    .latest-coaching__footer{
        align-items:flex-start;
        flex-direction:column;

        gap:7px;

        padding-top:9px;
    }


    .latest-coaching__meta{
        font-size:10px;
    }


    .latest-coaching__read{
        font-size:11px;
    }

}    
    
