/* ============================================
   Landing-page specific design system
   Coursera-inspired bold promo layout
============================================ */

/* Reset overrides for landing */
.home body, body.home { background: #fff; }

/* Container variant - slightly wider on big screens */
.container-xl { max-width: 1360px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 700px) { .container-xl { padding: 0 20px; } }

/* Section spacing on landing */
.hsec { padding: 56px 0; }
.hsec-sm { padding: 36px 0; }
.hsec-head { margin-bottom: 28px; }
.hsec-head h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 6px; letter-spacing: -0.02em; }
.hsec-head p { color: var(--gray-600); font-size: 15.5px; }
.hsec-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; font-size: 14.5px; color: var(--primary);
}
.hsec-link:hover { gap: 10px; }

/* ============ MEGA HERO ROW (3-panel slider style) ============ */
.mega-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin: 22px 0 56px;
}
.mega-panel {
  position: relative;
  border-radius: 28px;
  padding: 48px;
  overflow: hidden;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-decoration: none;
}
.mega-panel > * { position: relative; z-index: 1; }
.mega-panel .visual { z-index: 0; }
.mega-panel.peach { background: #fde8d4; color: var(--gray-900); }
.mega-panel.navy { background: linear-gradient(135deg, #0a3c8c 0%, #1e40af 100%); color: #fff; }
.mega-panel.blue { background: linear-gradient(135deg, #1e40af, #2563eb); color: #fff; }
.mega-panel.dark { background: linear-gradient(135deg, #0c1f3f, #1e3a5f); color: #fff; }

.mega-panel .brand-bar {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}
.mega-panel .brand-bar span { opacity: 0.6; }
.mega-panel h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  line-height: 1.15;
  margin-bottom: 16px;
  max-width: 460px;
  letter-spacing: -0.02em;
}
.mega-panel.navy h2, .mega-panel.blue h2, .mega-panel.dark h2 { color: #fff; }
.mega-panel .lead {
  font-size: 15.5px;
  margin-bottom: 24px;
  max-width: 480px;
  opacity: 0.95;
}
.mega-panel.peach .lead { color: var(--gray-700); }
.mega-panel .visual {
  position: absolute;
  right: -10px;
  bottom: -10px;
  width: 50%;
  max-width: 360px;
  pointer-events: none;
}
.mega-panel .visual img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 18px;
}
.mega-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--gray-900); color: #fff;
  font-weight: 600; font-size: 14.5px;
  width: max-content;
  transition: var(--transition);
}
.mega-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0,0,0,0.18); }
.mega-panel.navy .mega-cta, .mega-panel.blue .mega-cta, .mega-panel.dark .mega-cta {
  background: #fff; color: var(--gray-900);
}
.mega-cta-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 14.5px;
  color: #fff;
}

@media (max-width: 900px) {
  .mega-hero { grid-template-columns: 1fr; }
  .mega-panel { padding: 32px 28px; min-height: 280px; }
  .mega-panel .visual { width: 38%; }
}
@media (max-width: 500px) {
  .mega-panel .visual { opacity: 0.45; }
}

/* ============ FEATURED COLLECTION (purple panel + course tiles) ============ */
.collection {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  background: linear-gradient(135deg, #c7b7ff 0%, #b39dff 50%, #9d80ff 100%);
  border-radius: 28px;
  padding: 32px;
  align-items: stretch;
  position: relative;
  overflow: hidden;
}
.collection::before {
  content: "";
  position: absolute;
  top: -120px; right: -120px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  pointer-events: none;
}
.collection-intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
}
.collection-intro h3 {
  font-size: 24px;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.collection-intro p {
  font-size: 14.5px;
  opacity: 0.95;
  margin-bottom: 20px;
}
.collection-intro p a {
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}
.collection-cta {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 22px;
  background: #fff;
  color: var(--primary);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  width: max-content;
  transition: var(--transition);
}
.collection-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,0.2); }

.collection-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.col-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
  z-index: 1;
}
.col-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0,0,0,0.15); }
.col-card-thumb {
  aspect-ratio: 1/1;
  display: grid; place-items: center;
  position: relative;
  overflow: hidden;
}
.col-card-thumb.tint-magenta { background: linear-gradient(135deg, #ff3d7f 0%, #6b1aff 100%); }
.col-card-thumb.tint-google { background: #f8fafc; }
.col-card-thumb.tint-microsoft { background: linear-gradient(135deg, #0078d4 0%, #5b3fd9 50%, #e91d8e 100%); }
.col-card-thumb.tint-gws { background: #fff; }
.col-card-thumb img.icon { width: 50%; height: auto; }
.col-card-thumb i.huge { font-size: 80px; color: #fff; }
.col-card-thumb .corner { position: absolute; padding: 8px; color: #fff; }
.col-card-thumb .corner.tl { top: 12px; left: 12px; }
.col-card-thumb .corner.tr { top: 12px; right: 12px; }
.col-card-thumb .corner.bl { bottom: 12px; left: 12px; }
.col-card-body {
  padding: 14px 16px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.col-card-body .by {
  display: flex; align-items: center; gap: 6px;
  font-size: 12.5px; color: var(--gray-700); font-weight: 600;
  margin-bottom: 8px;
}
.col-card-body .by img, .col-card-body .by .ico { width: 16px; height: 16px; border-radius: 3px; flex-shrink: 0; }
.col-card-body h4 {
  font-size: 15px; font-weight: 700;
  color: var(--gray-900); line-height: 1.3;
  margin: 0 0 14px;
  min-height: 38px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.col-card-body .meta { margin-top: auto; }
.col-card-body .meta {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12.5px; color: var(--gray-600);
}
.col-card-body .meta .stars { color: #f59e0b; }

@media (max-width: 1100px) { .collection-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) {
  .collection { grid-template-columns: 1fr; padding: 28px; }
  .collection-intro { text-align: left; }
}
@media (max-width: 480px) { .collection-cards { grid-template-columns: 1fr; } }

/* ============ 3-COLUMN CAREER PREP ============ */
.career-prep {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}
.career-col {
  background: #f0f4ff;
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.career-col h3 {
  font-size: 18px;
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.career-col h3 a {
  color: var(--gray-900);
  display: flex; align-items: center; gap: 6px;
  width: 100%;
  font-weight: 700;
}
.career-col h3 i { color: var(--primary); font-size: 13px; transition: transform 0.2s; }
.career-col h3 a:hover i { transform: translateX(4px); }
.career-col-list { display: flex; flex-direction: column; gap: 10px; }
.career-item {
  background: #fff;
  border-radius: 14px;
  padding: 14px;
  display: flex;
  gap: 14px;
  align-items: center;
  transition: var(--transition);
}
.career-col-list { display: flex; flex-direction: column; gap: 12px; flex: 1; }
.career-item:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0,0,0,0.06); }
.career-item .thumb {
  width: 60px; height: 60px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}
.career-item .info { flex: 1; min-width: 0; }
.career-item .provider {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--gray-700); font-weight: 600;
  margin: 0 0 4px;
}
.career-item .provider .ico {
  width: 16px; height: 16px;
  border-radius: 3px;
  display: grid; place-items: center;
  font-size: 9px;
  color: #fff;
  font-weight: 800;
  flex-shrink: 0;
}
.career-item h4 {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.3;
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.career-item .badge-line {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; color: var(--gray-600);
  margin: 0;
}
.career-item .badge-line .stars { color: #f59e0b; }

@media (max-width: 960px) { .career-prep { grid-template-columns: 1fr; } }

/* ============ BRAND PILLS STRIP ============ */
.brand-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
  margin-bottom: 8px;
}
.brand-strip::-webkit-scrollbar { height: 4px; }
.brand-strip::-webkit-scrollbar-thumb { background: var(--gray-200); border-radius: 4px; }
.brand-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 20px;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  color: var(--gray-900);
  white-space: nowrap;
  flex-shrink: 0;
  transition: var(--transition);
}
.brand-pill:hover { border-color: var(--gray-400); transform: translateY(-1px); box-shadow: 0 4px 10px rgba(0,0,0,0.04); }
.brand-pill .logo {
  width: 22px; height: 22px;
  border-radius: 4px;
  display: grid; place-items: center;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
}

/* ============ 3 ACTION PANELS ============ */
.action-panels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}
.action-panel {
  background: #ede7fb;
  border-radius: 18px;
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  min-height: 120px;
  color: var(--gray-900);
  text-decoration: none;
}
.action-panel > div:first-child { flex: 1; min-width: 0; }
.action-panel:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(99,102,241,0.18); }
.action-panel h3 {
  font-size: 18px;
  color: var(--gray-900);
  margin: 0;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.action-panel .ill {
  width: 70px;
  height: 60px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.action-panel .ill svg { width: 100%; height: 100%; }

@media (max-width: 900px) { .action-panels { grid-template-columns: 1fr; } }

/* ============ CATEGORY CHIPS ============ */
.cat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.cat-chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 18px;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  font-weight: 600; font-size: 14px;
  color: var(--gray-900);
  transition: var(--transition);
}
.cat-chip i {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  font-size: 13px;
}
.cat-chip:hover { background: var(--gray-50); border-color: var(--gray-400); }

/* ============ Mid hero (split announcement) ============ */
.split-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 0;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 28px;
  overflow: hidden;
  margin: 24px 0 40px;
  align-items: stretch;
  min-height: 420px;
  position: relative;
}
.split-hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 6px;
  background: linear-gradient(90deg, #4f46e5, #ec4899, #f59e0b);
  z-index: 1;
}
.split-hero-left {
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.split-hero-left h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 14px 0 14px;
}
.split-hero-left p {
  font-size: 17px;
  color: var(--gray-600);
  margin: 0 0 26px;
  max-width: 460px;
  line-height: 1.55;
}
.split-hero-right {
  background: linear-gradient(135deg, #eef2ff 0%, #ddd6fe 60%, #fce7f3 100%);
  position: relative;
  min-height: 420px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.split-hero-right::after {
  content: "";
  position: absolute;
  top: -80px; right: -80px;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  z-index: 0;
}
.split-hero-right img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
}
@media (max-width: 900px) {
  .split-hero { grid-template-columns: 1fr; min-height: auto; }
  .split-hero-left { padding: 36px 24px; }
  .split-hero-right { min-height: 240px; }
}

/* ============ Modern course card (replacement for landing) ============ */
.x-courses {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}
.x-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 18px;
  overflow: hidden;
  transition: var(--transition);
  display: flex; flex-direction: column;
}
.x-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(0,0,0,0.08); border-color: transparent; }
.x-card .thumb { aspect-ratio: 16/10; overflow: hidden; }
.x-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.x-card .b { padding: 16px 18px 18px; flex: 1; display: flex; flex-direction: column; }
.x-card .by {
  display: flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 600; color: var(--gray-700);
  margin-bottom: 8px;
}
.x-card .by .ico {
  width: 18px; height: 18px;
  border-radius: 4px;
  display: grid; place-items: center;
  font-size: 9px; color: #fff; font-weight: 800;
}
.x-card h4 {
  font-size: 15.5px; font-weight: 700;
  color: var(--gray-900); line-height: 1.3;
  margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.x-card .badge-line {
  display: flex; align-items: center; gap: 12px;
  font-size: 12.5px; color: var(--gray-600);
  margin-top: auto;
}
.x-card .badge-line .stars { color: #f59e0b; }
.x-card .type {
  font-size: 12.5px; color: var(--gray-600);
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--gray-100);
}

/* ============ Quote band ============ */
.quote-band {
  background: #0a0c14;
  color: #fff;
  border-radius: 24px;
  padding: 56px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.quote-band::before {
  content: "\201C";
  position: absolute;
  top: -40px; left: 24px;
  font-size: 200px;
  font-family: Georgia, serif;
  color: rgba(255,255,255,0.06);
  line-height: 1;
}
.quote-band p {
  font-size: 22px;
  line-height: 1.5;
  max-width: 760px;
  margin: 0 auto 24px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.quote-band .who { display: flex; align-items: center; gap: 12px; justify-content: center; }
.quote-band .who .avatar { background: #fff; color: var(--primary); }

/* ============ Big CTA card ============ */
.big-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: linear-gradient(135deg, #fef3c7 0%, #fce7f3 100%);
  border-radius: 28px;
  overflow: hidden;
}
.big-cta-left { padding: 56px; display: flex; flex-direction: column; justify-content: center; }
.big-cta-left h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 14px; letter-spacing: -0.025em; }
.big-cta-left p { font-size: 16px; color: var(--gray-700); margin-bottom: 24px; }
.big-cta-right { background: url('https://images.unsplash.com/photo-1522202176988-66273c2fd55f?w=900&q=80') center/cover; min-height: 320px; }
@media (max-width: 900px) {
  .big-cta { grid-template-columns: 1fr; }
  .big-cta-left { padding: 36px 28px; }
}
