/* ============================================
   PORTAL CSS  - EdTech Premium Design System
   Inspired by Coursera, Udemy, Scaler
   Primary:  #2563EB  |  Accent: #22C55E
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400&family=Poppins:wght@400;500;600;700;800;900&display=swap');

/* ─── CSS Variables ─────────────────────────── */
:root {
  --p-primary: #2563EB;
  --p-primary-dark: #1D4ED8;
  --p-primary-light: #3B82F6;
  --p-primary-pale: #EFF6FF;
  --p-accent: #22C55E;
  --p-accent-dark: #16A34A;
  --p-warning: #F59E0B;
  --p-danger: #EF4444;
  --p-bg: #F8FAFC;
  --p-surface: #FFFFFF;
  --p-text: #0F172A;
  --p-text-2: #475569;
  --p-text-muted: #94A3B8;
  --p-border: #E2E8F0;
  --p-border-2: #CBD5E1;
  --p-shadow-sm: 0 1px 3px rgba(0, 0, 0, .08), 0 1px 2px rgba(0, 0, 0, .06);
  --p-shadow-md: 0 4px 16px rgba(0, 0, 0, .08), 0 2px 4px rgba(0, 0, 0, .05);
  --p-shadow-lg: 0 20px 40px rgba(0, 0, 0, .08), 0 6px 12px rgba(0, 0, 0, .05);
  --p-shadow-xl: 0 40px 80px rgba(0, 0, 0, .12), 0 10px 20px rgba(0, 0, 0, .06);
  --p-radius-sm: 8px;
  --p-radius: 14px;
  --p-radius-lg: 20px;
  --p-radius-xl: 28px;
  --p-transition: all .22s cubic-bezier(.4, 0, .2, 1);
  --p-font-main: 'Inter', system-ui, sans-serif;
  --p-font-heading: 'Poppins', system-ui, sans-serif;
  --nav-h: 72px;
}

/* ─── Base Reset ────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body.portal-body {
  font-family: var(--p-font-main);
  background: var(--p-bg);
  color: var(--p-text);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.portal-body a {
  text-decoration: none;
  transition: var(--p-transition);
}

body.portal-body img {
  max-width: 100%;
  display: block;
}

/* ─── Utility Classes ───────────────────────── */
.p-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.p-section {
  padding: 96px 0;
}

.p-section-sm {
  padding: 64px 0;
}

.p-section-title {
  text-align: center;
  margin-bottom: 56px;
}

.p-section-label {
  display: inline-block;
  padding: 5px 16px;
  background: var(--p-primary-pale);
  color: var(--p-primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 30px;
  margin-bottom: 16px;
}

.p-section-label.green {
  background: #dcfce7;
  color: #16A34A;
}

.p-section-h {
  font-family: var(--p-font-heading);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  color: var(--p-text);
  line-height: 1.2;
  letter-spacing: -.5px;
}

.p-section-sub {
  font-size: 17px;
  color: var(--p-text-2);
  margin-top: 14px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.p-text-primary {
  color: var(--p-primary);
}

.p-text-accent {
  color: var(--p-accent);
}

.p-grid {
  display: grid;
  gap: 24px;
}

.p-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.p-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.p-flex {
  display: flex;
}

.p-center {
  align-items: center;
  justify-content: center;
}

.p-gap-3 {
  gap: 12px;
}

.p-gap-4 {
  gap: 16px;
}

.p-text-center {
  text-align: center;
}

/* ─── Scroll Animation ────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: .1s;
}

.reveal-delay-2 {
  transition-delay: .2s;
}

.reveal-delay-3 {
  transition-delay: .3s;
}

.reveal-delay-4 {
  transition-delay: .4s;
}

/* ─── Buttons ───────────────────────────────── */
.p-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 50px;
  font-family: var(--p-font-main);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--p-transition);
  white-space: nowrap;
}

.p-btn-primary {
  background: var(--p-primary);
  color: #fff;
  box-shadow: 0 4px 20px rgba(37, 99, 235, .3);
}

.p-btn-primary:hover {
  background: var(--p-primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37, 99, 235, .4);
}

.p-btn-accent {
  background: var(--p-accent);
  color: #fff;
  box-shadow: 0 4px 20px rgba(34, 197, 94, .3);
}

.p-btn-accent:hover {
  background: var(--p-accent-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(34, 197, 94, .4);
}

.p-btn-ghost {
  background: rgba(255, 255, 255, .12);
  color: #fff;
  border-color: rgba(255, 255, 255, .3);
  backdrop-filter: blur(6px);
}

.p-btn-ghost:hover {
  background: rgba(255, 255, 255, .22);
  color: #fff;
  transform: translateY(-2px);
}

.p-btn-outline {
  background: transparent;
  color: var(--p-primary);
  border-color: var(--p-primary);
}

.p-btn-outline:hover {
  background: var(--p-primary);
  color: #fff;
}

.p-btn-sm {
  padding: 9px 20px;
  font-size: 13px;
}

.p-btn-lg {
  padding: 16px 38px;
  font-size: 16px;
}

.p-btn-xl {
  padding: 18px 48px;
  font-size: 17px;
}

/* ─── NAVBAR ────────────────────────────────── */
.p-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  height: var(--nav-h);
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--p-border);
  display: flex;
  align-items: center;
  transition: var(--p-transition);
}

.p-nav.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, .08);
}

.p-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  gap: 24px;
}

.p-nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--p-font-heading);
  font-size: 20px;
  font-weight: 800;
  color: var(--p-text);
  flex-shrink: 0;
}

.p-nav-logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--p-primary) 0%, #60A5FA 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, .3);
}

.p-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.p-nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--p-text-2);
  border-radius: var(--p-radius-sm);
  transition: var(--p-transition);
  cursor: pointer;
}

.p-nav-link:hover,
.p-nav-link.active {
  color: var(--p-primary);
  background: var(--p-primary-pale);
}

.p-nav-link i {
  font-size: 16px;
}

/* Mega Menu */
.p-nav-item {
  position: relative;
}

.p-nav-item:hover .p-mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.p-mega-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  background: #fff;
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius-lg);
  box-shadow: var(--p-shadow-xl);
  padding: 28px;
  width: 640px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transition: all .22s ease;
  z-index: 100;
}

.p-mega-menu-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px;
  border-radius: var(--p-radius);
  transition: var(--p-transition);
}

.p-mega-menu-item:hover {
  background: var(--p-primary-pale);
}

.p-mega-menu-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.p-mega-menu-item h6 {
  font-size: 14px;
  font-weight: 700;
  color: var(--p-text);
  margin: 0 0 2px;
}

.p-mega-menu-item p {
  font-size: 12px;
  color: var(--p-text-muted);
  margin: 0;
  line-height: 1.4;
}

.p-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.p-nav-hamburger {
  display: none;
  background: transparent;
  border: none;
  padding: 0;
  width: 32px;
  height: 24px;
  position: relative;
  cursor: pointer;
  z-index: 9005;
}

.p-hamburger-inner {
  display: block;
  width: 100%;
  height: 2.5px;
  background-color: var(--p-text);
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
  border-radius: 4px;
}

.p-hamburger-inner::before,
.p-hamburger-inner::after {
  content: "";
  display: block;
  width: 100%;
  height: 2.5px;
  background-color: var(--p-text);
  position: absolute;
  left: 0;
  transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
  border-radius: 4px;
}

.p-hamburger-inner::before {
  top: -9px;
}

.p-hamburger-inner::after {
  bottom: -9px;
}

/* Open State */
.p-nav-hamburger.is-active .p-hamburger-inner {
  background-color: transparent !important;
}

.p-nav-hamburger.is-active .p-hamburger-inner::before {
  top: 0;
  transform: rotate(45deg);
}

.p-nav-hamburger.is-active .p-hamburger-inner::after {
  bottom: 0;
  transform: rotate(-45deg);
}

/* ─── MOBILE NAV ────────────────────────────── */
.p-mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 9000;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.4s ease;
}

.p-mobile-nav.open {
  visibility: visible;
  pointer-events: auto;
}

.p-mobile-nav-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.p-mobile-nav.open .p-mobile-nav-overlay {
  opacity: 1;
}

.p-mobile-nav-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 85%;
  max-width: 340px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
  padding: 80px 32px 40px;
  transform: translateX(105%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.p-mobile-nav.open .p-mobile-nav-panel {
  transform: translateX(0);
}

.p-mobile-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.p-mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--p-text);
  border-radius: var(--p-radius);
  transition: var(--p-transition);
}

.p-mobile-nav-link:hover {
  background: var(--p-primary-pale);
  color: var(--p-primary);
}

/* ─── ANNOUNCEMENT BAR ─────────────────────── */
.p-announce-bar {
  padding: 10px 24px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
  z-index: 9001;
}

.p-announce-bar a {
  padding: 3px 14px;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 20px;
  background: rgba(255, 255, 255, .2);
  font-weight: 800;
  font-size: 12px;
}

.p-announce-close {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, .2);
  border: none;
  color: inherit;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

/* ─── HERO ──────────────────────────────────── */
.p-hero {
  padding-top: calc(var(--nav-h) + 80px);
  padding-bottom: 100px;
  background: linear-gradient(135deg, #0F172A 0%, #1E3A8A 50%, #1D4ED8 100%);
  position: relative;
  overflow: hidden;
}

.p-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 800px 600px at 80% 40%, rgba(37, 99, 235, .4) 0%, transparent 70%),
    radial-gradient(ellipse 600px 400px at 20% 80%, rgba(99, 102, 241, .3) 0%, transparent 70%);
}

.p-hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

.p-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: 30px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .2);
  color: rgba(255, 255, 255, .9);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .5px;
  margin-bottom: 28px;
  backdrop-filter: blur(8px);
}

.p-hero-eyebrow .dot {
  width: 6px;
  height: 6px;
  background: var(--p-accent);
  border-radius: 50%;
  animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.5);
    opacity: .7;
  }
}

.p-hero-h1 {
  font-family: var(--p-font-heading);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 22px;
}

.p-hero-h1 .highlight {
  background: linear-gradient(135deg, #60A5FA, #A78BFA);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.p-hero-sub {
  font-size: 19px;
  color: rgba(255, 255, 255, .75);
  margin-bottom: 40px;
  line-height: 1.65;
}

.p-hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 52px;
}

.p-hero-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.p-hero-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, .75);
  font-size: 14px;
  font-weight: 500;
}

.p-hero-trust-item .avatars {
  display: flex;
}

.p-hero-trust-item .avatars img,
.p-hero-trust-item .avatars .av-placeholder {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .3);
  object-fit: cover;
  margin-left: -8px;
  background: linear-gradient(135deg, #60A5FA, #A78BFA);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #fff;
  font-weight: 700;
}

.p-hero-trust-item .avatars .av-placeholder:first-child {
  margin-left: 0;
}

.p-hero-trust-divider {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, .2);
}

.p-hero-rating i {
  color: var(--p-warning);
  font-size: 14px;
}

/* Hero Search Bar */
.p-hero-search {
  max-width: 680px;
  margin: 32px auto 0;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50px;
  display: flex;
  align-items: center;
  padding: 6px 6px 6px 22px;
  backdrop-filter: blur(12px);
  gap: 12px;
}

.p-hero-search input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: #fff;
  font-size: 15px;
  font-family: var(--p-font-main);
  min-width: 0;
}

.p-hero-search input::placeholder {
  color: rgba(255, 255, 255, .55);
}

.p-hero-search-icon {
  color: rgba(255, 255, 255, .6);
  font-size: 20px;
  flex-shrink: 0;
}

.p-hero-search-btn {
  background: var(--p-accent);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 12px 26px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--p-transition);
  box-shadow: 0 4px 16px rgba(34, 197, 94, .4);
}

.p-hero-search-btn:hover {
  background: var(--p-accent-dark);
  transform: translateY(-1px);
}

/* ─── TECH TICKER ──────────────────────────── */
.p-ticker-wrap {
  background: rgba(255, 255, 255, .06);
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 18px 0;
  overflow: hidden;
  position: relative;
  margin-top: 60px;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.p-ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 30s linear infinite;
}

.p-ticker-track:hover {
  animation-play-state: paused;
}

@keyframes ticker-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.p-ticker-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 32px;
  color: rgba(255, 255, 255, .55);
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  transition: var(--p-transition);
  cursor: default;
}

.p-ticker-item:hover {
  color: rgba(255, 255, 255, .9);
}

.p-ticker-item .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .25);
}

/* ─── PLACEMENT LOGOS ──────────────────────── */
.p-logos-section {
  background: #fff;
  padding: 52px 0;
  border-bottom: 1px solid var(--p-border);
}

.p-logos-label {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--p-text-muted);
  margin-bottom: 32px;
}

.p-logos-track-wrap {
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.p-logos-track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 28s linear infinite;
  align-items: center;
}

.p-logos-track:hover {
  animation-play-state: paused;
}

.p-logo-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 40px;
  opacity: .4;
  filter: grayscale(1);
  transition: var(--p-transition);
  cursor: default;
}

.p-logo-item:hover {
  opacity: 1;
  filter: grayscale(0);
}

.p-logo-item i {
  font-size: 30px;
}

.p-logo-item span {
  font-size: 16px;
  font-weight: 800;
  color: var(--p-text);
  font-family: var(--p-font-heading);
}

/* ─── STATS ROW ─────────────────────────────── */
.p-stats-section {
  background: linear-gradient(135deg, #0F172A 0%, #1E3A8A 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.p-stats-section::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, .2), transparent);
  top: -200px;
  right: -100px;
  pointer-events: none;
}

.p-stat-card {
  text-align: center;
  padding: 36px 24px;
  border-radius: var(--p-radius-xl);
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .08);
  transition: var(--p-transition);
  backdrop-filter: blur(10px);
}

.p-stat-card:hover {
  background: rgba(37, 99, 235, .15);
  border-color: rgba(37, 99, 235, .4);
  transform: translateY(-6px);
}

.p-stat-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 24px;
}

.p-counter {
  font-family: var(--p-font-heading);
  font-size: 44px;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, #93C5FD, #E0E7FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.p-stat-label {
  font-size: 14px;
  color: rgba(255, 255, 255, .55);
  font-weight: 600;
  margin-top: 8px;
  letter-spacing: .3px;
}

/* ─── COURSE CARDS ──────────────────────────── */
.p-course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.p-course-card {
  background: #fff;
  border-radius: var(--p-radius-lg);
  border: 1px solid var(--p-border);
  overflow: hidden;
  transition: var(--p-transition);
  display: flex;
  flex-direction: column;
  position: relative;
}

.p-course-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--p-shadow-lg);
  border-color: rgba(37, 99, 235, .2);
}

.p-course-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: linear-gradient(135deg, #EFF6FF, #DBEAFE);
}

.p-course-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.p-course-card:hover .p-course-thumb img {
  transform: scale(1.05);
}

.p-course-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  color: #93C5FD;
}

.p-course-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  border-radius: 30px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.p-badge-free {
  background: var(--p-accent);
  color: #fff;
}

.p-badge-paid {
  background: rgba(0, 0, 0, .55);
  color: #fff;
  backdrop-filter: blur(6px);
}

.p-badge-popular {
  background: var(--p-warning);
  color: #fff;
}

.p-badge-new {
  background: var(--p-primary);
  color: #fff;
}

.p-course-body {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.p-course-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.p-course-cat {
  padding: 3px 10px;
  background: var(--p-primary-pale);
  color: var(--p-primary);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
}

.p-course-level {
  padding: 3px 10px;
  background: #F1F5F9;
  color: var(--p-text-2);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

.p-course-title {
  font-family: var(--p-font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--p-text);
  margin-bottom: 10px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.p-course-instructor {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--p-text-2);
  margin-bottom: 14px;
}

.p-course-instructor i {
  font-size: 15px;
  color: var(--p-text-muted);
}

.p-course-stats {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: var(--p-text-2);
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.p-course-stats span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.p-course-stats i {
  font-size: 14px;
}

.p-course-rating {
  color: var(--p-warning) !important;
}

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

.p-course-price {
  font-family: var(--p-font-heading);
  font-size: 22px;
  font-weight: 800;
  color: var(--p-primary);
}

.p-course-price.free {
  color: var(--p-accent);
}

.p-course-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 20px;
  background: var(--p-primary);
  color: #fff;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  transition: var(--p-transition);
}

.p-course-action:hover {
  background: var(--p-primary-dark);
  color: #fff;
  transform: translateX(3px);
}

/* ─── FEATURES / WHY US ─────────────────────── */
.p-feature-card {
  background: #fff;
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius-lg);
  padding: 36px 28px;
  transition: var(--p-transition);
  height: 100%;
}

.p-feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--p-shadow-md);
  border-color: rgba(37, 99, 235, .2);
}

.p-feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 22px;
  transition: var(--p-transition);
}

.p-feature-card:hover .p-feature-icon {
  transform: scale(1.1) rotate(5deg);
}

.p-feature-icon.blue {
  background: #EFF6FF;
  color: var(--p-primary);
}

.p-feature-icon.green {
  background: #F0FDF4;
  color: var(--p-accent);
}

.p-feature-icon.amber {
  background: #FFFBEB;
  color: #D97706;
}

.p-feature-icon.purple {
  background: #FAF5FF;
  color: #7C3AED;
}

.p-feature-h {
  font-family: var(--p-font-heading);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
}

.p-feature-p {
  font-size: 14px;
  color: var(--p-text-2);
  line-height: 1.65;
}

/* ─── TESTIMONIALS ──────────────────────────── */
.p-testi-card {
  background: #fff;
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius-lg);
  padding: 36px 28px;
  position: relative;
  transition: var(--p-transition);
  height: 100%;
}

.p-testi-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--p-shadow-md);
  border-color: rgba(37, 99, 235, .15);
}

.p-testi-quote {
  font-size: 72px;
  line-height: .7;
  color: var(--p-primary-pale);
  font-family: serif;
  margin-bottom: 16px;
  color: var(--p-primary);
  opacity: .3;
}

.p-testi-text {
  font-size: 15px;
  color: var(--p-text-2);
  line-height: 1.75;
  margin-bottom: 24px;
  font-style: italic;
}

.p-testi-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 20px;
}

.p-testi-stars i {
  color: var(--p-warning);
  font-size: 15px;
}

.p-testi-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.p-testi-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--p-primary-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  color: var(--p-primary);
  background: var(--p-primary-pale);
  flex-shrink: 0;
}

.p-testi-name {
  font-weight: 700;
  font-size: 15px;
}

.p-testi-role {
  font-size: 13px;
  color: var(--p-text-muted);
}

.p-testi-company {
  font-size: 12px;
  font-weight: 600;
  color: var(--p-primary);
  margin-top: 2px;
}

/* ─── LEARNING PATHS / CATEGORIES ─────────── */
.p-path-card {
  border-radius: var(--p-radius-xl);
  padding: 36px 28px;
  color: #fff;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: var(--p-transition);
  display: block;
}

.p-path-card::after {
  content: '';
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  top: -50px;
  right: -50px;
}

.p-path-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--p-shadow-xl);
  color: #fff;
}

.p-path-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.p-path-h {
  font-family: var(--p-font-heading);
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.p-path-p {
  font-size: 13px;
  opacity: .8;
  line-height: 1.55;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.p-path-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 30px;
  background: rgba(255, 255, 255, .2);
  border: 1px solid rgba(255, 255, 255, .3);
  color: #fff;
  transition: var(--p-transition);
  position: relative;
  z-index: 1;
}

.p-path-link:hover {
  background: rgba(255, 255, 255, .35);
  color: #fff;
}

/* ─── HOW IT WORKS ──────────────────────────── */
.p-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 20px;
  position: relative;
}

.p-step-num {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--p-primary), var(--p-primary-light));
  color: #fff;
  font-family: var(--p-font-heading);
  font-size: 26px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 10px 30px rgba(37, 99, 235, .3);
}

.p-step-h {
  font-family: var(--p-font-heading);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
}

.p-step-p {
  font-size: 14px;
  color: var(--p-text-2);
  line-height: 1.65;
}

/* ─── MENTOR CARDS ─────────────────────────── */
.p-mentor-card {
  background: #fff;
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: var(--p-transition);
}

.p-mentor-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--p-shadow-md);
}

.p-mentor-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--p-primary-pale);
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 28px;
  color: var(--p-primary);
  background: var(--p-primary-pale);
}

.p-mentor-name {
  font-family: var(--p-font-heading);
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 5px;
}

.p-mentor-role {
  font-size: 13px;
  color: var(--p-text-muted);
  margin-bottom: 14px;
}

/* ─── CTA BANNER ────────────────────────────── */
.p-cta-banner {
  background: linear-gradient(135deg, var(--p-primary) 0%, #1D4ED8 40%, #4F46E5 100%);
  border-radius: var(--p-radius-xl);
  padding: 72px 56px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.p-cta-banner::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  top: -150px;
  right: -100px;
}

.p-cta-banner::after {
  content: '';
  position: absolute;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .04);
  bottom: -100px;
  left: -60px;
}

.p-cta-h {
  font-family: var(--p-font-heading);
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 900;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.p-cta-p {
  font-size: 17px;
  opacity: .85;
  max-width: 560px;
  margin: 0 auto 36px;
  position: relative;
  z-index: 1;
}

.p-cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* ─── FAQ ───────────────────────────────────── */
.p-faq-item {
  background: #fff;
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: var(--p-transition);
}

.p-faq-item:hover {
  border-color: rgba(37, 99, 235, .2);
}

.p-faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  user-select: none;
  gap: 12px;
  transition: var(--p-transition);
}

.p-faq-q:hover {
  color: var(--p-primary);
}

.p-faq-q .icon {
  font-size: 22px;
  flex-shrink: 0;
  transition: transform .3s ease;
}

.p-faq-item.open .p-faq-q {
  color: var(--p-primary);
  background: var(--p-primary-pale);
}

.p-faq-item.open .p-faq-q .icon {
  transform: rotate(45deg);
}

.p-faq-a {
  display: none;
  padding: 0 24px 22px;
  font-size: 14px;
  color: var(--p-text-2);
  line-height: 1.7;
}

.p-faq-item.open .p-faq-a {
  display: block;
}

/* ─── CERTIFICATE PREVIEW ───────────────────── */
.p-cert-card {
  background: linear-gradient(135deg, #FFF7ED, #FEF3C7);
  border: 2px solid #FDE68A;
  border-radius: var(--p-radius-xl);
  padding: 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.p-cert-card::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 2px solid #FDE68A;
  border-radius: calc(var(--p-radius-xl) - 4px);
  opacity: .4;
  pointer-events: none;
}

.p-cert-title {
  font-family: var(--p-font-heading);
  font-size: 28px;
  font-weight: 900;
  color: #92400E;
  margin-bottom: 8px;
}

.p-cert-sub {
  font-size: 14px;
  color: #B45309;
  margin-bottom: 24px;
  opacity: .8;
}

.p-cert-name {
  font-family: var(--p-font-heading);
  font-size: 26px;
  font-weight: 800;
  color: var(--p-primary);
  margin-bottom: 6px;
}

.p-cert-course {
  font-size: 15px;
  color: var(--p-text-2);
  margin-bottom: 24px;
}

.p-cert-stamp {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--p-primary), var(--p-primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 28px;
  margin: 0 auto;
  box-shadow: 0 8px 20px rgba(37, 99, 235, .3);
}

/* ─── FOOTER ────────────────────────────────── */
.p-footer {
  background: #0F172A;
  color: rgba(255, 255, 255, .65);
  padding: 72px 0 0;
}

.p-footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.p-footer-brand-desc {
  font-size: 14px;
  line-height: 1.75;
  margin-top: 16px;
  opacity: .75;
}

.p-footer-social {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.p-footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, .7);
  font-size: 18px;
  transition: var(--p-transition);
}

.p-footer-social a:hover {
  background: var(--p-primary);
  color: #fff;
  transform: translateY(-2px);
}

.p-footer-col-h {
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  margin-bottom: 20px;
  letter-spacing: .5px;
}

.p-footer-link {
  display: block;
  font-size: 14px;
  color: rgba(255, 255, 255, .6);
  margin-bottom: 12px;
  transition: var(--p-transition);
}

.p-footer-link:hover {
  color: #fff;
  padding-left: 4px;
}

.p-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 24px;
  margin-top: 56px;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, .4);
}

/* ─── MOBILE STICKY BAR ─────────────────────── */
.p-mobile-sticky {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 7000;
  background: #fff;
  border-top: 1px solid var(--p-border);
  padding: 12px 16px;
  gap: 10px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, .1);
}

.p-mobile-sticky-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: var(--p-transition);
  text-decoration: none;
}

.p-mobile-sticky-btn.primary {
  background: var(--p-primary);
  color: #fff;
}

.p-mobile-sticky-btn.whatsapp {
  background: #25D366;
  color: #fff;
}

.p-mobile-sticky-btn:active {
  transform: scale(.97);
}

/* ─── SKELETON LOADER ───────────────────────── */
.p-skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 8px;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.p-skeleton-card {
  background: #fff;
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius-lg);
  overflow: hidden;
}

/* ─── SEARCH FILTER BAR ─────────────────────── */
.p-filter-bar {
  background: #fff;
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius-xl);
  padding: 24px 28px;
  box-shadow: var(--p-shadow-sm);
  margin-bottom: 40px;
}

.p-filter-input {
  flex: 1;
  position: relative;
}

.p-filter-input input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  border: 1.5px solid var(--p-border);
  border-radius: 50px;
  font-family: var(--p-font-main);
  font-size: 14px;
  color: var(--p-text);
  outline: none;
  transition: var(--p-transition);
}

.p-filter-input input:focus {
  border-color: var(--p-primary-light);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .1);
}

.p-filter-input .icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: var(--p-text-muted);
}

.p-filter-select {
  padding: 12px 16px;
  border: 1.5px solid var(--p-border);
  border-radius: 50px;
  font-family: var(--p-font-main);
  font-size: 14px;
  color: var(--p-text);
  outline: none;
  transition: var(--p-transition);
  background: #fff;
  cursor: pointer;
  min-width: 150px;
}

.p-filter-select:focus {
  border-color: var(--p-primary-light);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .1);
}

/* ─── PORTAL NAV VARS (back-compat) ─────────── */
/* Keep some old .portal-xxx classes working */
.portal-nav {
  display: none;
}

/* ─── RESPONSIVE ────────────────────────────── */
@media (max-width: 1024px) {
  .p-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .p-footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .p-mega-menu {
    display: none;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-h: 64px;
  }

  .p-nav-links,
  .p-nav-actions .p-btn {
    display: none;
  }

  .p-nav-hamburger {
    display: flex;
  }

  .p-grid-3 {
    grid-template-columns: 1fr;
  }

  .p-grid-4 {
    grid-template-columns: 1fr;
  }

  .p-course-grid {
    grid-template-columns: 1fr;
  }

  .p-footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .p-cta-banner {
    padding: 48px 28px;
  }

  .p-hero-h1 {
    letter-spacing: -1px;
  }

  .p-mobile-sticky {
    display: flex;
  }

  .p-section {
    padding: 64px 0;
  }

  .p-hero {
    padding-bottom: 80px;
  }
}

@media (max-width: 480px) {
  .p-hero-search {
    flex-wrap: wrap;
    border-radius: var(--p-radius-xl);
    padding: 12px;
  }

  .p-hero-search input {
    min-width: 100%;
  }

  .p-hero-search-btn {
    width: 100%;
    justify-content: center;
  }

  .p-container {
    padding: 0 16px;
  }
}