:root {
  --purple: #6b4d9e;
  --gold: #f7b731;
  --mint: #efe6ff;
  --cream: #fff6db;
  --white: #ffffff;
  --text: #2c3e50;
  --shadow: 0 18px 40px rgba(44, 62, 80, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Bricolage Grotesque", "Inter", sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.payment-methods-image {
  opacity: 1;
  image-rendering: auto;
}

.footer-logos-full {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: nowrap;
  gap: 24px;
  width: 100vw !important;
  margin-top: 24px;
  margin-left: calc(50% - 50vw) !important;
  padding: 0 100px !important;
  grid-column: 1 / -1;
}

.footer-logos-full .footer-logo {
  height: auto;
  width: auto;
  max-width: 260px;
}

.footer-logos-full .footer-logo-cpd {
  max-width: 220px;
}

.footer-cpd-badge {
  margin-top: 16px;
}

.footer-business-skill {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.footer-payment-inline {
  width: auto;
  height: auto;
  max-width: 320px;
}

.footer-logos-full .payment-methods-image {
  max-width: 320px;
}

@media (max-width: 768px) {
  .footer-logos-full {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .footer-logos-full .footer-logo {
    max-width: 240px;
  }
}

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(44, 62, 80, 0.08);
  z-index: 10;
}

.nav-wrap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 18px 0;
}

.logo {
  font-family: "Bricolage Grotesque", "Inter", sans-serif;
  font-weight: 700;
  display: flex;
  gap: 10px;
  align-items: center;
  letter-spacing: 1px;
}

.logo-image {
  width: 96px;
  height: 96px;
  object-fit: contain;
  border-radius: 8px;
}

.crown {
  font-size: 1.4rem;
}

.nav {
  position: relative;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(44, 62, 80, 0.2);
  padding: 8px 12px;
  border-radius: 8px;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 22px;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-menu li {
  position: relative;
}

.nav-menu a,
.dropdown-toggle {
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 0;
  font-family: inherit;
}

.dropdown-menu {
  list-style: none;
  margin: 10px 0 0;
  padding: 12px;
  position: absolute;
  background: var(--white);
  box-shadow: var(--shadow);
  border-radius: 12px;
  min-width: 190px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: 0.2s ease;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu,
.dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  margin-bottom: 8px;
}

.dropdown-menu li:last-child {
  margin-bottom: 0;
}

.cta-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.btn {
  padding: 12px 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  border: 2px solid transparent;
  transition: 0.2s ease;
}

.btn-primary {
  background: var(--purple);
  color: var(--white);
}

.btn-secondary {
  background: var(--gold);
  color: #3d2a00;
}


.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.hero {
  padding: 80px 0 100px;
  background: linear-gradient(135deg, #fff6db, #efe6ff);
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 48px;
  align-items: center;
}

.hero-content h1 {
  font-family: "Bricolage Grotesque", "Inter", sans-serif;
  font-size: clamp(2.4rem, 3vw, 3.4rem);
  margin: 12px 0 18px;
}

.subtitle {
  font-size: 1.1rem;
  max-width: 520px;
}

.eyebrow {
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--purple);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 24px 0;
}

.hero-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.hero-meta div {
  background: rgba(255, 255, 255, 0.65);
  padding: 12px 16px;
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.hero-media {
  position: relative;
  display: grid;
  place-items: center;
}

.hero-card {
  background: var(--white);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  max-width: 420px;
}

.hero-card img {
  height: 260px;
  object-fit: cover;
}

.hero-card-info {
  padding: 18px;
}

.hero-floating {
  position: absolute;
  width: 120px;
  height: 120px;
  background: var(--gold);
  border-radius: 50%;
  top: -30px;
  right: 10px;
  opacity: 0.8;
}

.featured {
  padding: 80px 0;
  background: var(--white);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  flex-direction: column;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.filter-tab {
  border: 1px solid rgba(44, 62, 80, 0.2);
  background: var(--white);
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.2s ease;
}

.filter-tab.active {
  background: var(--purple);
  color: var(--white);
  border-color: var(--purple);
}

.filter-search input {
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(44, 62, 80, 0.2);
  min-width: 220px;
  font-family: inherit;
  text-align: center;
}

.filter-status {
  font-weight: 600;
  color: rgba(44, 62, 80, 0.8);
  margin-bottom: 30px;
  text-align: center;
}

.load-more-wrap {
  margin-top: 28px;
  display: flex;
  justify-content: center;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  font-family: "Bricolage Grotesque", "Inter", sans-serif;
  font-size: clamp(2rem, 2.4vw, 2.8rem);
  margin-bottom: 10px;
}

.category {
  margin-bottom: 50px;
}

.category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.course-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(44, 62, 80, 0.1);
  transition: 0.3s ease;
  border: 1px solid rgba(44, 62, 80, 0.08);
  position: relative;
}

.course-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.course-card:hover .course-card-arrow {
  transform: translate(0, 0) scale(1.1);
}

.course-card-image-container {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
}

.course-card-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.course-card-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 75%;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(0, 0, 0, 0.8) 45%,
    rgba(0, 0, 0, 0.5) 70%,
    rgba(0, 0, 0, 0) 100%
  );
  pointer-events: none;
}

.course-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 76px 20px 24px;
  color: white;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.course-card-content .tag {
  background: rgba(255, 255, 255, 0.25);
  color: white;
  backdrop-filter: blur(10px);
  margin: 0;
  padding: 0;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.3s ease, max-height 0.3s ease, margin 0.3s ease, padding 0.3s ease;
}

.course-card:hover .course-card-content .tag {
  opacity: 1;
  max-height: 32px;
  margin-bottom: 8px;
  padding: 4px 10px;
}

.course-card-content h4 {
  color: white;
  font-size: 1.1rem;
  margin: 0 0 6px;
  line-height: 1.3;
  font-weight: 600;
}

.course-description {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  line-height: 1.4;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.3s ease, max-height 0.3s ease, margin 0.3s ease;
}

.course-card:hover .course-description {
  opacity: 1;
  max-height: 100px;
  margin: 8px 0 12px;
}

.course-meta-stacked {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.95);
}

.course-card:hover .course-meta-stacked {
  gap: 6px;
}

.meta-item {
  display: block;
  font-weight: 500;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.3s ease, max-height 0.3s ease;
}

.course-card:hover .meta-item {
  opacity: 1;
  max-height: 24px;
}

.meta-item.price-highlight {
  opacity: 1;
  max-height: none;
}

.price-highlight {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--gold);
}

.course-card-arrow {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  background: var(--purple);
  border-radius: 50%;
  display: grid;
  place-items: center;
  z-index: 3;
  transition: transform 0.3s ease, background 0.3s ease;
  box-shadow: 0 4px 12px rgba(107, 77, 158, 0.4);
}

.course-card-arrow:hover {
  background: var(--gold);
  box-shadow: 0 6px 16px rgba(247, 183, 49, 0.5);
}

.course-card-arrow svg {
  width: 24px;
  height: 24px;
  stroke: white;
}

.course-body {
  padding: 18px;
}

.tag {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.tag.business {
  background: rgba(107, 77, 158, 0.12);
  color: var(--purple);
}

.tag.employability {
  background: rgba(247, 183, 49, 0.2);
  color: #7a5600;
}

.tag.management {
  background: rgba(45, 122, 79, 0.15);
  color: var(--green);
}

.tag.personal {
  background: rgba(44, 62, 80, 0.65);
  color: #ffffff;
  padding: 4px 8px;
}

.course-body h4 {
  font-family: "Bricolage Grotesque", "Inter", sans-serif;
  margin: 6px 0 10px;
}

.contact {
  padding: 80px 0;
  background: var(--cream);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  align-items: start;
}

.contact-copy {
  display: grid;
  gap: 12px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-form {
  display: grid;
  gap: 12px;
  background: var(--white);
  padding: 24px;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.form-group {
  display: grid;
  gap: 6px;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(44, 62, 80, 0.2);
  font-family: inherit;
  background: #fff;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(107, 77, 158, 0.3);
  border-color: var(--purple);
}

.site-footer {
  padding: 30px 0 10px;
  background: var(--white);
  border-top: 1px solid rgba(44, 62, 80, 0.08);
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.footer-brand {
  display: grid;
  gap: 8px;
  max-width: 360px;
}

.footer-brand .logo-image {
  width: 72px;
  height: 72px;
}

.footer-social {
  display: grid;
  gap: 8px;
  font-weight: 600;
}

.socials {
  display: flex;
  gap: 10px;
}

.social-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(107, 77, 158, 0.12);
}

.social-icon svg {
  width: 14px;
  height: 14px;
  fill: var(--purple);
}

.footer-bottom {
  text-align: center;
  margin-top: 20px;
  font-size: 0.85rem;
  color: rgba(44, 62, 80, 0.7);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 980px) {
  .nav-wrap {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .cta-group {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 840px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    background: var(--white);
    position: absolute;
    right: 0;
    top: 44px;
    padding: 16px;
    box-shadow: var(--shadow);
    border-radius: 16px;
    min-width: 220px;
    z-index: 5;
  }

  .nav-menu.open {
    display: flex;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    padding: 8px 0 0;
  }

  .how-arrow {
    display: none;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 60px 0;
  }

  .hero-meta {
    flex-direction: column;
  }

  .hero-card img {
    height: 220px;
  }

  .logo-image {
    width: 72px;
    height: 72px;
  }

  .cta-group {
    width: 100%;
  }

  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-search input {
    width: 100%;
    min-width: 0;
  }

  .course-grid {
    grid-template-columns: 1fr;
  }

  .contact-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-form {
    padding: 20px;
  }

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .socials {
    flex-wrap: wrap;
  }
}

/* ==========================================
   NEW HERO SECTION STYLES
   ========================================== */

.hero-new {
    background-color: #f3f4f6;
    padding: 6rem 1.5rem 4rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* Centered Text Content */
.hero-text-center {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 3rem;
}

.eyebrow-centered {
    font-size: 1rem;
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}

.hero-title-large {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    color: #111827;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.subtitle-centered {
    font-size: 1.125rem;
    color: #6b7280;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Asymmetric Image Grid */
.hero-images-grid {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 1.5rem;
    margin-bottom: 3rem;
    height: 380px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.hero-img {
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-img:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Image 1 - Left, Tall */
.hero-img-1 {
    width: 260px;
    height: 320px;
    align-self: flex-start;
}

/* Image 2 - Right, Wide & Tall */
.hero-img-2 {
    width: 300px;
    height: 280px;
    align-self: flex-start;
    margin-top: 20px;
}

/* Image 3 - Center, Narrow & Shorter */
.hero-img-3 {
    width: 160px;
    height: 260px;
    align-self: flex-end;
    margin-bottom: 0;
}

/* CTA Buttons Centered */
.hero-cta-centered {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-pill {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-pill-primary {
    background-color: #facc15;
    color: #111827;
    box-shadow: 0 4px 15px rgba(250, 204, 21, 0.4);
}

.btn-pill-primary:hover {
    background-color: #eab308;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(250, 204, 21, 0.5);
}

.btn-pill-secondary {
    background-color: #fef08a;
    color: #111827;
    box-shadow: 0 4px 15px rgba(254, 240, 138, 0.4);
}

.btn-pill-secondary:hover {
    background-color: #fde047;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(254, 240, 138, 0.5);
}

/* ==========================================
   RESPONSIVE ADJUSTMENTS FOR NEW HERO
   ========================================== */

@media (max-width: 768px) {
    .hero-new {
        padding: 5rem 1rem 3rem;
    }
    
    .hero-title-large {
        font-size: 2rem;
    }
    
    .subtitle-centered {
        font-size: 1rem;
    }
    
    .hero-images-grid {
        flex-direction: column;
        align-items: center;
        height: auto;
        gap: 1rem;
    }
    
    .hero-img-1,
    .hero-img-2,
    .hero-img-3 {
        width: 100%;
        max-width: 280px;
        height: 200px;
        align-self: center;
        margin: 0;
    }
    
    .hero-cta-centered {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-pill {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title-large {
        font-size: 1.75rem;
    }
    
    .btn-pill {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
}

/* AI Hot Badge */
.badge-hot {
  background-color: #ff4757;
  color: white;
  font-size: 0.7em;
  padding: 2px 6px;
  border-radius: 4px;
  vertical-align: top;
  margin-left: 4px;
  font-weight: bold;
  text-transform: uppercase;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.tag.ai-skills {
  background: rgba(48, 43, 99, 0.85);
  color: #9b9cf7;
}

.tag.leadership-management {
  background: rgba(15, 52, 96, 0.85);
  color: #7eb8f7;
}

.tag.project-management {
  background: rgba(44, 62, 80, 0.85);
  color: #74b9e2;
}

.tag.business-skills {
  background: rgba(107, 77, 158, 0.15);
  color: var(--purple, #6b4d9e);
}

.tag.hr-recruitment {
  background: rgba(75, 19, 79, 0.85);
  color: #f4a1a1;
}

.tag.risk-compliance {
  background: rgba(127, 0, 0, 0.85);
  color: #ffb3b3;
}

.tag.finance {
  background: rgba(19, 78, 94, 0.85);
  color: #71e2b2;
}

.tag.retail-supply-chain {
  background: rgba(0, 92, 151, 0.85);
  color: #7ed3f7;
}

.tag.health-safety {
  background: rgba(230, 92, 0, 0.85);
  color: #fde68a;
}

.tag.healthcare-wellbeing {
  background: rgba(0, 131, 176, 0.85);
  color: #b3ecff;
}

.tag.it-technology {
  background: rgba(0, 82, 212, 0.85);
  color: #b3d4ff;
}

.tag.personal-development {
  background: rgba(161, 140, 209, 0.3);
  color: #e8d5ff;
}

.tag.specialist-trades {
  background: rgba(85, 98, 112, 0.85);
  color: #dde3ea;
}

/* Gradient background overlay is lighter when no photo is present */
.card-no-image .course-card-gradient {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.75) 0%,
    rgba(0, 0, 0, 0.45) 50%,
    rgba(0, 0, 0, 0) 100%
  );
}
