/*
Theme Name: ProActive Learning
Theme URI: 
Author: ProActive Learning
Description: A custom WordPress theme for ProActive Learning.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 8.0
Text Domain: proactive-learning
*/

:root {
  --ink: #0d1117;
  --muted: #5f6f82;
  --line: #e2e8f0;
  --paper: #ffffff;
  --soft: #f5f3ff;
  --mint: #8b5cf6;
  --green: #38bdf8;
  --gold: #c084fc;
  --coral: #7dd3fc;
  --navy: #1e1b4b;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.14);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(135deg, #f0f9ff 0%, #f5f3ff 50%, #ffffff 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(203, 213, 225, 0.86);
  backdrop-filter: blur(14px);
}

.wrap {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.nav {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  padding: 12px 0;
  position: relative;
}

.nav-brand-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--navy);
  padding: 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding-left: 0;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0;
}

.brand img {
  width: 240px;
  height: auto;
  max-width: calc(100vw - 80px);
}

.brand-mark {
  width: 240px;
  height: auto;
  object-fit: contain;
  max-width: 100%;
}

.brand span {
  font-size: 1.25rem;
}

.ela-mark {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 88px;
  height: 48px;
  color: #fff;
  font-weight: 900;
  letter-spacing: 0;
}

.ela-mark:before,
.ela-mark:after {
  content: "";
  position: absolute;
  width: 54px;
  height: 42px;
  border-radius: 50%;
  background: var(--mint);
  opacity: 0.96;
}

.ela-mark:before {
  left: 4px;
}

.ela-mark:after {
  right: 4px;
  background: var(--green);
}

.ela-mark span {
  position: relative;
  z-index: 1;
  font-size: 0.78rem;
}

.hero-logo {
  width: 160px;
  height: 104px;
  margin-bottom: 22px;
}

.hero-logo:before,
.hero-logo:after {
  width: 98px;
  height: 88px;
}

.hero-logo span {
  font-size: 1.18rem;
}

.menu {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
  flex: 0 1 auto;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #334155;
  font-weight: 700;
  font-size: 0.78rem;
  line-height: 1.2;
}

@media (min-width: 1101px) {
  .nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 80px;
  }
  .nav-brand-bar {
    justify-self: start;
    display: flex;
  }
  .nav nav {
    justify-self: center;
    margin: 0;
  }
  .nav::after {
    content: none;
  }
  .menu {
    flex-wrap: nowrap;
  }
  .menu > li:not(:last-child)::after {
    content: "|";
    position: absolute;
    right: -4px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(15, 23, 42, 0.15);
    pointer-events: none;
  }
}

@media (max-width: 1100px) {
  .nav nav {
    margin-left: auto;
    margin-right: 20px;
  }
}

.menu li {
  position: relative;
}

.menu a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 7px;
  border-radius: var(--radius);
  text-decoration: none;
  white-space: nowrap;
  font-size: 1.05rem;
}

.menu > li > a:hover,
.menu > li:focus-within > a {
  background: var(--soft);
  color: var(--navy);
}

.menu .sub-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  z-index: 30;
  display: grid;
  min-width: 310px;
  max-width: min(460px, calc(100vw - 32px));
  margin: 0;
  padding: 10px;
  list-style: none;
  visibility: hidden;
  opacity: 0;
  transform: translate(-50%, 8px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
}

.menu .mega-menu {
  position: fixed;
  top: 96px;
  left: 50vw;
  grid-template-columns: repeat(2, minmax(250px, 1fr));
  width: min(900px, calc(100vw - 32px));
  min-width: 0;
  max-width: calc(100vw - 32px);
}

.menu li:hover > .sub-menu,
.menu li:focus-within > .sub-menu {
  visibility: visible;
  opacity: 1;
  transform: translate(-50%, 0);
}

.menu .sub-menu a {
  min-height: 40px;
  padding: 10px 12px;
  color: #334155;
  white-space: normal;
}

.menu .sub-menu a:hover,
.menu .sub-menu a:focus {
  background: var(--soft);
  color: var(--mint);
}

.button,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border-radius: var(--radius);
  background: var(--mint);
  color: #fff;
  border: 0;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(139, 92, 246, 0.3);
}

.button.secondary {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 600px;
  color: #fff;
  background: var(--navy);
}

.hero:after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(5, 7, 12, 0.76) 0%, rgba(17, 24, 39, 0.5) 46%, rgba(17, 24, 39, 0.08) 100%),
    linear-gradient(180deg, rgba(5, 7, 12, 0.08) 0%, rgba(5, 7, 12, 0.38) 100%);
}

.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  animation: heroFade 18s infinite;
}

.hero-slide-two {
  animation-delay: 6s;
}

.hero-slide-three {
  animation-delay: 12s;
}

@keyframes heroFade {
  0%,
  30% {
    opacity: 1;
  }

  38%,
  92% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

.hero-grid {
  position: relative;
  z-index: 2;
  min-height: 600px;
  display: flex;
  align-items: center;
  padding: 86px 0 72px;
}

.hero-copy {
  width: min(820px, 100%);
  padding: 48px 70px 48px 46px;
  background: linear-gradient(135deg, rgba(5, 7, 12, 0.86), rgba(139, 92, 246, 0.78));
  clip-path: polygon(0 0, 92% 0, 100% 100%, 0 100%);
}

.hero .eyebrow {
  background: rgba(255, 255, 255, 0.16);
  color: #eef4ff;
}

.hero h1 {
  max-width: 680px;
  color: #fff;
  font-size: clamp(2.25rem, 4vw, 4.15rem);
}

.hero .lead {
  color: rgba(255, 255, 255, 0.86);
}

.hero .button.secondary {
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.54);
}

.hero-copy .hero-actions {
  justify-content: flex-start;
  margin-bottom: 0;
}

.eyebrow {
  width: fit-content;
  margin: 0 0 18px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.12);
  color: #6d28d9;
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  font-size: clamp(2.3rem, 4.2vw, 4.4rem);
}

h2 {
  font-size: clamp(2rem, 3.2vw, 3.4rem);
}

h3 {
  font-size: 1.22rem;
}

.lead {
  max-width: 680px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-card {
  position: relative;
  min-height: 460px;
  padding: 28px;
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #ffffff 0%, #f5f3ff 100%);
  box-shadow: 0 18px 50px rgba(139, 92, 246, 0.15);
}

.hero-card:before {
  display: none;
}

.ela-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.score {
  position: absolute;
  left: 28px;
  bottom: 28px;
  right: 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.score div,
.programme,
.quote,
.contact-panel {
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255,255,255,1) 0%, rgba(245, 243, 255, 0.6) 100%);
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.05);
}

.score div {
  padding: 16px;
}

.score strong {
  display: block;
  color: var(--navy);
  font-size: 1.65rem;
  line-height: 1;
}

.score span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.86rem;
}

.pathway {
  position: static;
  width: min(78%, 330px);
}

.pathway-step {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding: 13px;
  border-radius: var(--radius);
  background: var(--soft);
  font-weight: 800;
}

.dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(109, 91, 208, 0.18);
}

.section {
  padding: 86px 0;
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(240, 249, 255, 0.4) 100%);
}

.section.alt {
  background: linear-gradient(135deg, #f0f9ff 0%, var(--soft) 100%);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
}

.section-head p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
}

.programmes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.programme {
  padding: 26px;
  background: linear-gradient(135deg, var(--mint), var(--green));
  color: #fff;
  border-radius: var(--radius);
}
.programme h3 {
  color: #fff;
}
.programme p {
  color: rgba(255, 255, 255, 0.9) !important;
}

.programme b {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 20px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.programme p,
.quote p,
.contact-panel p {
  color: var(--muted);
}

.programme a {
  color: #fff;
  font-weight: 850;
  text-decoration: underline;
}

.split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 46px;
  align-items: center;
}

.feature-list {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  padding-left: 34px;
  position: relative;
  font-weight: 750;
}

.feature-list li:before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--mint);
}

.quote {
  padding: 36px;
  border-left: 6px solid var(--gold);
  box-shadow: var(--shadow);
}

.ofsted-section p {
  color: var(--muted);
}

.ofsted-card {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.logo-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.logo-strip img {
  display: block;
  width: 100%;
  height: 84px;
  object-fit: contain;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.image-panel {
  min-height: 420px;
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(15, 23, 42, 0.05), rgba(15, 23, 42, 0.05)),
    radial-gradient(circle at 70% 26%, rgba(139, 92, 246, 0.28), transparent 28%),
    linear-gradient(135deg, #e6eef8 0%, #fff 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.quote p {
  margin-top: 0;
  font-size: 1.2rem;
}

.testimonials-section {
  background: linear-gradient(135deg, #f0f9ff 0%, #f5f3ff 100%);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.testimonial-card {
  display: flex;
  min-height: 360px;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.9) 0%, rgba(224, 242, 254, 0.4) 100%);
  box-shadow: 0 12px 34px rgba(56, 189, 248, 0.1);
}

.testimonial-avatar {
  width: 80px;
  height: 80px;
  margin-bottom: 18px;
  border: 3px solid #fff;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}

.testimonial-card p {
  flex: 1;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 0.98rem;
}

.testimonial-card strong,
.testimonial-card span {
  display: block;
}

.testimonial-card strong {
  color: var(--navy);
  line-height: 1.25;
}

.testimonial-card span {
  margin-top: 5px;
  color: var(--mint);
  font-size: 0.86rem;
  font-weight: 800;
}

.contact-band {
  color: #fff;
  background: var(--navy);
}

.contact-band .lead {
  color: rgba(255, 255, 255, 0.78);
}

.contact-panel {
  padding: 28px;
  color: var(--ink);
}

.footer {
  padding: 64px 0 32px;
  color: rgba(255, 255, 255, 0.74);
  background: #05070c;
}

.footer .wrap {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff;
}

.footer-brand .brand {
  padding-left: 0;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.footer-brand .brand div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-start;
}

.footer-brand .brand strong {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

.footer-brand .brand p {
  margin: 4px 0 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 400;
}

.footer-contact p {
  margin: 4px 0 0;
}

.footer-heading {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.footer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-nav-list a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.footer-nav-list a:hover {
  color: var(--mint);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  grid-column: 1 / -1;
  padding-top: 32px;
  margin-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

.footer-meta-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-meta-links a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: underline;
  transition: color 0.2s ease;
}

.footer-meta-links a:hover {
  color: #fff;
}

.page-content {
  width: min(900px, calc(100% - 32px));
  margin: 0 auto;
  padding: 76px 0;
}

@media (max-width: 860px) {
  .nav,
  .section-head,
  .footer .wrap {
    align-items: flex-start;
    flex-direction: column;
  }

  .menu {
    flex-wrap: wrap;
    gap: 12px 18px;
    justify-content: flex-start;
    position: static;
    left: auto;
    transform: none;
  }

  .menu .sub-menu {
    position: static;
    min-width: 100%;
    max-width: 100%;
    margin-top: 0;
    visibility: visible;
    opacity: 1;
    transform: none;
    box-shadow: none;
    border: none;
    padding-left: 16px;
    display: none;
  }

  .menu li.is-active > .sub-menu {
    display: grid;
  }

  .menu li:hover > .sub-menu,
  .menu li:focus-within > .sub-menu {
    transform: none;
  }

  .menu .mega-menu {
    position: static;
    width: auto;
    min-width: 100%;
    max-width: 100%;
    grid-template-columns: 1fr;
  }

  .hero-grid,
  .split,
  .programmes,
  .testimonials-grid,
  .footer .wrap {
    grid-template-columns: 1fr;
  }

  .logo-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-grid {
    min-height: auto;
    padding: 70px 0 58px;
  }

  .hero-copy {
    padding: 34px 26px;
    clip-path: none;
  }

  .hero h1 {
    font-size: clamp(2.05rem, 10vw, 3rem);
  }

  .hero-card {
    min-height: 420px;
  }

  .score {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 1100px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    justify-content: flex-start;
    padding: 16px 0;
  }

  .nav-brand-bar {
    width: 100%;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .primary-nav {
    display: none;
    width: 100%;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
  }

  .primary-nav.is-open {
    display: block;
  }

  .brand {
    padding-left: 0;
  }

  .nav nav {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
  }

  .menu {
    justify-content: flex-start;
    flex-direction: column;
    align-items: stretch;
    position: static;
    left: auto;
    transform: none;
  }

  .menu > li {
    width: 100%;
  }

  .menu a {
    width: 100%;
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}


/* About Page Styles */
.about-hero {
  padding: 80px 0;
  background: radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.15), transparent 45%), linear-gradient(135deg, #f0f9ff 0%, #f5f3ff 100%);
  border-bottom: 1px solid rgba(139, 92, 246, 0.15);
}

.about-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.about-hero-content h1 {
  margin-top: 10px;
  margin-bottom: 20px;
}

.about-hero-image-container {
  position: relative;
}

.about-hero-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: block;
}

.about-stats-bar {
  background: var(--soft);
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.stat-card {
  background: #fff;
  padding: 32px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
  text-align: center;
  transition: transform 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
}

.stat-card strong {
  display: block;
  font-size: 3rem;
  color: var(--mint);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-card span {
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 700;
}

.story-image-container {
  position: relative;
}

.story-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.badge-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.badge {
  background: rgba(47, 111, 179, 0.12);
  color: #1b528c;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
}

/* Responsive Styles for About Page */
@media (max-width: 960px) {
  .about-hero-grid,
  .about-story .split {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .about-hero-image-container,
  .story-image-container {
    max-width: 540px;
    margin: 0 auto;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 480px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
  padding: 20px;
  z-index: 9999;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.cookie-banner.show {
  opacity: 1;
  transform: translateY(0);
}

.cookie-banner-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cookie-banner-content p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--muted);
}

.cookie-banner-actions {
  display: flex;
  gap: 10px;
}

.cookie-banner-actions .button-sm {
  min-height: 36px;
  padding: 8px 16px;
  font-size: 0.8rem;
}

.footer-meta-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-meta-links a {
  color: inherit;
  text-decoration: underline;
  font-weight: 500;
}

.footer-meta-links a:hover {
  color: #fff;
  text-decoration: underline;
}

@media (max-width: 560px) {
  .cookie-banner {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }
}

/* ==========================================================================
   ELA Short Courses Bundle Styles
   ========================================================================== */

.page-template-page-short-courses-bundle {
  background-color: var(--soft);
}

.bundle-hero {
  position: relative;
  background: radial-gradient(circle at 80% 20%, rgba(47, 111, 179, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 10% 80%, rgba(109, 91, 208, 0.1) 0%, transparent 50%),
              #0b0f19;
  color: #ffffff;
  padding: 120px 0 100px;
  text-align: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.bundle-hero .wrap {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--mint);
  margin-bottom: 20px;
  background: rgba(47, 111, 179, 0.1);
  padding: 6px 16px;
  border-radius: 99px;
  border: 1px solid rgba(47, 111, 179, 0.2);
}

.bundle-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.bundle-hero .lead {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.6;
  color: #9cb3c9;
  margin-bottom: 40px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 60px;
}

.hero-actions .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  font-size: 1.05rem;
  font-weight: 800;
  border-radius: 12px;
  background: var(--mint);
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(47, 111, 179, 0.3);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-actions .button:hover {
  background: #1f538a;
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(47, 111, 179, 0.45);
}

.hero-actions .button.secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: none;
}

.hero-actions .button.secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Hero Stats Strip */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 40px;
  margin-top: 20px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.stat-icon {
  font-size: 1.75rem;
}

.stat-text {
  font-size: 0.95rem;
  font-weight: 700;
  color: #b0c4de;
}

/* Sub Navigation Pill Bar */
.course-nav {
  position: sticky;
  top: 106px; /* Sits below main sticky menu */
  z-index: 15;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.course-nav-wrap {
  overflow-x: auto;
  scrollbar-width: none; /* Hide scrollbar for clean pill look */
}

.course-nav-wrap::-webkit-scrollbar {
  display: none;
}

.course-nav-list {
  display: flex;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}

.course-nav-link {
  display: inline-block;
  padding: 10px 22px;
  font-size: 0.9rem;
  font-weight: 750;
  color: var(--muted);
  background: transparent;
  border-radius: 99px;
  border: 1px solid transparent;
  text-decoration: none;
  transition: all 0.2s ease;
}

.course-nav-link:hover {
  color: var(--navy);
  background: rgba(47, 111, 179, 0.05);
}

.course-nav-link.active {
  color: #ffffff;
  background: var(--mint);
  box-shadow: 0 4px 12px rgba(47, 111, 179, 0.2);
}

/* Course Sections */
.course-section {
  padding: 40px 0;
  scroll-margin-top: 170px;
  background-color: transparent;
}

.course-card {
  background: var(--paper);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Image on Top */
.course-card-left {
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Image Container */
.course-card-image-wrap {
  width: 100%;
  height: 480px;
  position: relative;
  overflow: hidden;
}

.course-card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Quick Details Box */
.course-card-meta-wrap {
  padding: 24px;
  background: #f8fafc; /* Slate 50 */
  border: 1px solid #e2e8f0;
  color: #0f172a;
  display: flex;
  flex-direction: column;
}

.meta-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 20px 0;
  padding-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
}

.meta-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.meta-list.grid-2-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px 16px;
}

@media (min-width: 640px) {
  .meta-list.grid-2-col {
    grid-template-columns: 1fr 1fr;
  }
}

.meta-list li {
  display: flex;
  align-items: center;
}

.meta-icon {
  background: #e0e7ff; /* Indigo 100 */
  color: #4f46e5; /* Indigo 600 */
  padding: 8px;
  border-radius: 8px;
  margin-right: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-width: 36px;
}

.meta-icon svg {
  width: 20px;
  height: 20px;
}

.meta-text {
  display: flex;
  flex-direction: column;
}

.meta-lbl {
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
  line-height: 1.4;
}

.meta-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  line-height: 1.4;
}

.course-card-meta-wrap .course-enquire-btn {
  display: block;
  width: 100%;
  padding: 12px 24px; /* py-3 px-6 */
  font-size: 1rem;
  font-weight: 700; /* font-bold */
  color: #ffffff;
  background: #3b82f6; /* blue-500 */
  border-radius: 12px; /* rounded-xl */
  border: none;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.3), 0 4px 6px -2px rgba(59, 130, 246, 0.15); /* shadow-lg shadow-blue-500/30 */
  transition: all 0.3s ease;
  transform: translateY(0);
}

.course-card-meta-wrap .course-enquire-btn:hover {
  background: #60a5fa; /* blue-400 */
  transform: translateY(-4px); /* hover:-translate-y-1 */
}

/* Right Side: Main Content */
.course-card-right {
  width: 100%;
  padding: 32px;
}

@media (min-width: 991px) {
  .course-card-right {
    padding: 32px 48px; /* p-8 lg:p-12 */
  }
}

.course-card-header {
  margin-bottom: 32px; /* mb-8 */
}

.course-card-header .course-badge {
  display: inline-block;
  padding: 4px 12px; /* py-1 px-3 */
  border-radius: 9999px; /* rounded-full */
  background: #dbeafe; /* bg-blue-100 */
  color: #1e40af; /* text-blue-800 */
  font-size: 0.875rem; /* text-sm */
  font-weight: 600; /* font-semibold */
  letter-spacing: 0.025em; /* tracking-wide */
  margin-bottom: 16px; /* mb-4 */
}

.course-card-header h2 {
  font-size: 1.875rem; /* text-3xl */
  font-weight: 800; /* font-extrabold */
  color: #111827; /* text-gray-900 */
  margin: 0 0 16px 0; /* mb-4 */
  line-height: 1.25; /* leading-tight */
}

@media (min-width: 640px) {
  .course-card-header h2 {
    font-size: 2.25rem; /* sm:text-4xl */
  }
}

.course-card-header .course-intro p {
  font-size: 1.125rem; /* text-lg */
  line-height: 1.625; /* leading-relaxed */
  color: #4b5563; /* text-gray-600 */
  margin: 0;
}

/* Outcomes checklist */
.course-card-outcomes {
  border-top: 1px solid #f3f4f6; /* border-gray-100 */
  padding-top: 32px; /* pt-8 */
}

.course-card-outcomes .gain-title {
  font-size: 1.5rem; /* text-2xl */
  font-weight: 700; /* font-bold */
  color: #111827; /* text-gray-900 */
  margin: 0 0 24px 0; /* mb-6 */
}

.outcomes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px; /* gap-6 */
}

@media (min-width: 640px) {
  .outcomes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Flex outcome items - keeping checkmarks inline */
.outcome-item {
  display: flex;
  align-items: flex-start;
}

.outcome-item.col-span-2 {
  grid-column: span 1;
}

@media (min-width: 640px) {
  .outcome-item.col-span-2 {
    grid-column: span 2;
  }
}

.outcome-check-icon {
  flex-shrink: 0;
  margin-top: 4px; /* mt-1 */
  width: 32px; /* w-8 */
  height: 32px; /* h-8 */
  border-radius: 50%;
  background: #dcfce7; /* bg-green-100 */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px; /* replaced ml-4 */
}

.outcome-check-icon svg {
  width: 20px; /* w-5 */
  height: 20px; /* h-5 */
  color: #16a34a; /* text-green-600 */
}

.outcome-content h4 {
  font-size: 1.125rem; /* text-lg */
  font-weight: 600; /* font-semibold */
  color: #111827; /* text-gray-900 */
  margin: 0;
  line-height: 1.5;
}

.outcome-content p {
  font-size: 0.875rem; /* text-sm */
  color: #4b5563; /* text-gray-600 */
  line-height: 1.5;
  margin: 4px 0 0 0; /* mt-1 */
}

/* Pillars Section */
.why-proactive-section {
  padding: 120px 0;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}

.section-head {
  margin-bottom: 60px;
}

.section-head .eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--mint);
  margin-bottom: 12px;
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 900;
  color: var(--navy);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.pillar-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 36px 28px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.03);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
}

.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.06);
  border-color: #bcd4f0;
}

.pillar-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.pillar-card h3 {
  font-size: 1.2rem;
  font-weight: 850;
  color: var(--navy);
  margin-bottom: 12px;
}

.pillar-card p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* Enquiry Form Section */
.enquiry-section {
  padding: 120px 0;
  background: #0b0f19;
  color: #ffffff;
}

.enquiry-header {
  text-align: center;
  margin-bottom: 60px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.enquiry-header h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.enquiry-header p {
  font-size: 1.1rem;
  color: #9cb3c9;
  line-height: 1.6;
}

.enquiry-card {
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 48px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  max-width: 780px;
  margin: 0 auto;
  color: var(--navy);
}

.enquiry-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group-full {
  grid-column: span 2;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 750;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  font-size: 0.95rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--soft);
  color: var(--navy);
  transition: all 0.2s ease;
  font-family: inherit;
}

.form-control:focus {
  outline: none;
  border-color: var(--mint);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(47, 111, 179, 0.1);
}

textarea.form-control {
  height: 120px;
  resize: vertical;
}

.form-submit-container {
  grid-column: span 2;
  margin-top: 12px;
}

.form-submit-btn {
  width: 100%;
  padding: 16px;
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  background: var(--mint);
  border-radius: 10px;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(47, 111, 179, 0.25);
  transition: all 0.2s ease;
}

.form-submit-btn:hover {
  background: #1f538a;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(47, 111, 179, 0.35);
}

.form-success-message {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  padding: 24px;
  border-radius: 12px;
  font-size: 1.05rem;
  text-align: center;
  line-height: 1.6;
}

/* Responsiveness for Bundle Page */
@media (max-width: 990px) {
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .bundle-hero {
    padding: 80px 0 60px;
  }

  .course-section {
    padding: 80px 0;
  }
}

@media (max-width: 680px) {
  .enquiry-form {
    grid-template-columns: 1fr;
  }

  .form-group-full {
    grid-column: span 1;
  }

  .form-submit-container {
    grid-column: span 1;
  }

  .pillars-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    gap: 12px;
  }

  .hero-actions .button {
    width: 100%;
  }
}

/* Enquire Modal */
.enquire-modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.enquire-modal-overlay.is-open {
  display: flex;
  opacity: 1;
}

.enquire-modal-container {
  background: #fff;
  border-radius: var(--radius);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: 40px;
  box-shadow: var(--shadow);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.enquire-modal-overlay.is-open .enquire-modal-container {
  transform: translateY(0);
}

.enquire-modal-close {
  position: absolute;
  top: 15px; right: 20px;
  background: transparent;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s;
}

.enquire-modal-close:hover {
  color: var(--heading);
}

.enquire-modal-title {
  font-size: 1.5rem;
  margin-top: 0;
  margin-bottom: 24px;
  color: var(--heading);
  text-align: center;
}

.enquire-form .form-group {
  margin-bottom: 20px;
}

.enquire-form .form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.enquire-form label {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 6px;
}

.enquire-form .required {
  color: #ef4444;
}

.enquire-form .input-wrap {
  position: relative;
}

.enquire-form input[type="text"],
.enquire-form input[type="email"],
.enquire-form input[type="tel"],
.enquire-form select,
.enquire-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

/* Icon padding */
.enquire-form input[type="text"]:not(#first_name):not(#last_name):not(#company_name),
.enquire-form input[type="email"],
.enquire-form input[type="tel"] {
  padding-left: 40px;
}

.enquire-form #first_name, .enquire-form #company_name {
  padding-left: 40px;
}

.enquire-form .input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--muted);
  pointer-events: none;
}

.enquire-form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.enquire-form input:focus,
.enquire-form select:focus,
.enquire-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Validation */
.enquire-form input:invalid:not(:placeholder-shown),
.enquire-form select:invalid.touched {
  border-color: #ef4444;
}

.form-messages {
  margin-top: 10px;
  font-size: 0.9rem;
  font-weight: 500;
}
.form-messages.error {
  color: #ef4444;
}
.form-messages.success {
  color: #10b981;
}

@media (max-width: 600px) {
  .enquire-form .form-group-row {
    grid-template-columns: 1fr;
  }
  .enquire-modal-container {
    padding: 24px;
  }
}
