/*
Theme Name:  ZYNTHOS Themes
Theme URI:   https://mcorla.nz
Description: Custom theme for mcorla.nz — NZ Diploma in Business (Level 5) training site. Prepared by Orbyte (orbyte.com).
Author:      Orbyte
Author URI:  https://orbyte.com
Version:     1.0.0
License:     Private
Text Domain: mcorla
*/

/* ============================================================
   COLOUR PALETTE
   ============================================================ */

:root {
  --navy:         #1B3A6B;
  --navy-dark:    #122952;
  --charcoal:     #2C2C3E;
  --accent:       #2C6FED;
  --accent-hover: #1A57CC;
  --accent-light: #93C5FD;
  --bg-light:     #F7F8FC;
  --bg-white:     #FFFFFF;
  --muted:        #6B7280;
  --border:       #E2E6EF;
  --success:      #16A34A;
  --slate-200:    #E2E8F0;
  --slate-300:    #CBD5E1;
  --slate-400:    #94A3B8;
  --slate-500:    #64748B;
}

/* ============================================================
   RESET & BASE
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: var(--charcoal);
  background-color: var(--bg-white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-hover);
}

ul {
  list-style: none;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  color: var(--navy);
  line-height: 1.25;
  font-weight: 700;
  margin-bottom: 1rem;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1.25rem;
  color: var(--charcoal);
}

p:last-child {
  margin-bottom: 0;
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section--light {
  background-color: var(--bg-light);
}

.section--navy {
  background-color: var(--navy);
}

.section--navy-dark {
  background-color: var(--navy-dark);
}

.section--navy h1,
.section--navy h2,
.section--navy h3,
.section--navy p,
.section--navy-dark h1,
.section--navy-dark h2,
.section--navy-dark h3,
.section--navy-dark p {
  color: #FFFFFF;
}

.section-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 0.75rem;
}

.section--navy .section-label,
.section--navy-dark .section-label {
  color: var(--accent-light);
}

.section-heading {
  margin-bottom: 1rem;
}

.section-heading::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background-color: var(--accent);
  margin-top: 0.75rem;
  border-radius: 2px;
}

.section--navy .section-heading::after,
.section--navy-dark .section-heading::after {
  background-color: var(--accent-light);
}

.section-header {
  margin-bottom: 3rem;
}

.lead-text {
  max-width: 640px;
  margin: 0 auto;
}

.section--navy .lead-text,
.section--navy-dark .lead-text {
  color: var(--slate-300);
}

.section-cta {
  text-align: center;
  margin-top: 3rem;
}

.mt-cta {
  margin-top: 2rem;
}

.enrol-info .enrol-fine-print {
  color: var(--slate-300);
  font-size: 0.9rem;
  margin-top: 1rem;
}

.enrol-info .enrol-tagline {
  color: var(--accent-light);
  font-weight: 600;
}


.text-center { text-align: center; }
.text-center .section-heading::after { margin-left: auto; margin-right: auto; }

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.grid-2--top {
  align-items: start;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.8rem 2rem;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  border: 2px solid transparent;
}

.btn-primary {
  color: #FFFFFF;
  background-color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(44, 111, 237, 0.3);
}

.btn-primary:hover {
  color: #FFFFFF;
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(44, 111, 237, 0.4);
}

.btn-outline-white {
  color: #FFFFFF;
  background-color: transparent;
  border-color: #FFFFFF;
}

.btn-outline-white:hover {
  color: var(--navy);
  background-color: #FFFFFF;
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.05rem;
}

.btn:active {
  transform: scale(0.97);
}

/* ============================================================
   NAVIGATION
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--navy);
  border-bottom: 3px solid var(--accent);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
  animation: siteHeaderIn 0.5s ease both;
}

@keyframes siteHeaderIn {
  from { opacity: 0; transform: translateY(-100%); }
  to   { opacity: 1; transform: translateY(0); }
}

.header-inner {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo img {
  height: 44px;
  width: auto;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.main-nav a {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: #FFFFFF;
  padding: 0.5rem 0.85rem;
  border-radius: 4px;
  letter-spacing: 0.02em;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.main-nav a:hover {
  color: #FFFFFF;
  background-color: rgba(255, 255, 255, 0.1);
}

.main-nav .nav-cta {
  background-color: var(--accent);
  color: #FFFFFF;
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  margin-left: 0.5rem;
  font-weight: 600;
}

.main-nav .nav-cta:hover {
  background-color: var(--accent-hover);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background-color: #FFFFFF;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ============================================================
   HERO SECTION
   ============================================================ */

.hero {
  background-color: var(--navy);
  background-image: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, #1e4a8a 100%);
  padding: 6rem 0 5rem;
  text-align: center;
}

.hero h1 {
  color: #FFFFFF;
  font-size: clamp(2.2rem, 4.5vw, 3.25rem);
  max-width: 820px;
  margin: 0 auto 1.25rem;
  line-height: 1.2;
}

.hero-sub {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  color: var(--slate-300);
  max-width: 640px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.hero-tagline {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent-light);
  margin: 0 0 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Hero text entrance — above fold, so CSS-animated (not scroll-triggered) */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero .section-label { animation: heroFadeUp 0.55s ease 0.2s  both; }
.hero h1             { animation: heroFadeUp 0.65s ease 0.35s both; }
.hero .hero-sub      { animation: heroFadeUp 0.55s ease 0.55s both; }
.hero .hero-tagline  { animation: heroFadeUp 0.55s ease 0.65s both; }
.hero .hero-actions  { animation: heroFadeUp 0.55s ease 0.8s  both; }

/* ============================================================
   TRUST BAR
   ============================================================ */

.trust-bar {
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border);
  padding: 2rem 0;
}

.trust-bar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.trust-icon {
  font-size: 1.75rem;
  line-height: 1;
}

.trust-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.02em;
}

.trust-value {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ============================================================
   INTRO / PAIN-SOLUTION
   ============================================================ */

.intro-content {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.intro-content h2 {
  margin-bottom: 1.25rem;
}

.intro-content h2::after {
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   INTRO VIDEO
   ============================================================ */

.video-wrap {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  background-color: var(--navy-dark);
  margin-bottom: 2rem;
}

.video-wrap video {
  width: 100%;
  display: block;
}

/* ============================================================
   PROGRAMME PILLARS
   ============================================================ */

.pillar-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.pillar-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 48px rgba(27, 58, 107, 0.14);
}

.pillar-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1;
}

.pillar-card h3 {
  margin-bottom: 0.75rem;
  color: var(--navy);
}

.pillar-card p {
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.pillar-card ul li {
  font-size: 0.95rem;
  color: var(--charcoal);
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.pillar-card ul li:last-child {
  border-bottom: none;
}

.pillar-card ul li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */

.step-card {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: 10px;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.step-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.08);
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--accent);
  color: #FFFFFF;
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.step-card h3 {
  margin-bottom: 0.5rem;
}

.step-card p {
  font-size: 0.95rem;
  color: var(--muted);
}

/* ============================================================
   ABOUT MIKE
   ============================================================ */

.about-photo {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.about-photo img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: top center;
}

.about-content {
  padding-left: 2rem;
}

.about-content .section-label {
  margin-bottom: 0.5rem;
}

.credential-list {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.credential-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--charcoal);
}

.credential-item::before {
  content: '★';
  color: var(--accent);
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-top: 3px;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */

.testimonial-card {
  background-color: var(--bg-white);
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border-top: 3px solid var(--accent);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

.testimonial-quote {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-style: italic;
  color: var(--charcoal);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.testimonial-quote::before {
  content: '\201C';
  font-size: 2.5rem;
  color: var(--accent);
  line-height: 0;
  vertical-align: -0.5rem;
  margin-right: 0.15rem;
}

.testimonial-quote::after {
  content: '\201D';
  font-size: 2.5rem;
  color: var(--accent);
  line-height: 0;
  vertical-align: -0.5rem;
  margin-left: 0.15rem;
}

.testimonial-author {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
}

.testimonial-role {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

/* ============================================================
   AFFILIATES / GUEST SPEAKERS
   ============================================================ */

.affiliate-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem 1.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.affiliate-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(27, 58, 107, 0.14);
}

.affiliate-logo {
  max-width: 140px;
  max-height: 80px;
  width: auto;
  height: auto;
  object-fit: contain;
  margin-bottom: 1.25rem;
}

.affiliate-name {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.2rem;
}

.affiliate-company {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.affiliate-desc {
  font-size: 0.875rem;
  color: var(--charcoal);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1.25rem;
  text-align: left;
}

.affiliate-desc p {
  margin-bottom: 0.5rem;
}

.affiliate-desc p:last-child {
  margin-bottom: 0;
}

.affiliate-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  margin-top: auto;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: left;
}

.affiliate-links a {
  color: var(--accent);
  text-decoration: none;
}

.affiliate-links a:hover {
  text-decoration: underline;
}

/* ============================================================
   TESTIMONIAL CAROUSEL
   ============================================================ */

.testimonial-carousel {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}

.testimonial-track {
  overflow: hidden;
  border-radius: 10px;
}

.testimonial-slides {
  display: flex;
  transition: transform 0.45s ease;
  will-change: transform;
}

.testimonial-slide {
  min-width: 100%;
  box-sizing: border-box;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-70%);
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  cursor: pointer;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  z-index: 2;
}

.carousel-btn:hover {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.carousel-prev { left: -22px; }
.carousel-next { right: -22px; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.carousel-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--border);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.carousel-dot.is-active {
  background-color: var(--accent);
  transform: scale(1.3);
}

@media (max-width: 768px) {
  .carousel-prev { left: -8px; }
  .carousel-next { right: -8px; }
  .carousel-btn  { width: 36px; height: 36px; font-size: 1.4rem; }
}

/* ============================================================
   ENROL / CTA SECTION
   ============================================================ */

.enrol-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.enrol-info h2 {
  margin-bottom: 1rem;
}

.enrol-info p {
  color: var(--slate-300);
}

.enrol-info .enrol-fine-print .tick {
  color: var(--accent-light);
  font-weight: 700;
}

.intake-dates {
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.intake-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--slate-200);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
}

.intake-badge {
  background-color: var(--accent);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  flex-shrink: 0;
}

/* CF7 form styling */
.enrol-form-wrap .wpcf7 input[type="text"],
.enrol-form-wrap .wpcf7 input[type="email"],
.enrol-form-wrap .wpcf7 input[type="tel"],
.enrol-form-wrap .wpcf7 textarea {
  width: 100%;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--charcoal);
  background-color: #FFFFFF;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  padding: 0.7rem 1rem;
  margin-bottom: 0.75rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.enrol-form-wrap .wpcf7 input:focus,
.enrol-form-wrap .wpcf7 textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(44, 111, 237, 0.2);
}

.enrol-form-wrap .wpcf7 label {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--slate-300);
  display: block;
  margin-bottom: 0.3rem;
}

.enrol-form-wrap .wpcf7 input[type="submit"] {
  width: 100%;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #FFFFFF;
  background-color: var(--accent);
  border: 2px solid var(--accent);
  border-radius: 6px;
  padding: 0.85rem 1.5rem;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  margin-top: 0.5rem;
}

.enrol-form-wrap .wpcf7 input[type="submit"]:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-1px);
}

/* CF7 response output — sits inside .section--navy-dark so must be
   explicitly coloured; the section's p rule doesn't reach div elements */
.enrol-form-wrap .wpcf7-response-output {
  margin: 1.25rem 0 0;
  padding: 0.85rem 1.1rem;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  border: none;
  color: #FFFFFF !important;
}

/* Success */
.enrol-form-wrap .wpcf7-mail-sent-ok {
  background-color: rgba(22, 163, 74, 0.15);
  color: #FFFFFF !important;
  border-left: 4px solid #16A34A;
}

/* Validation / send failure */
.enrol-form-wrap .wpcf7-validation-errors,
.enrol-form-wrap .wpcf7-mail-sent-ng,
.enrol-form-wrap .wpcf7-spam-blocked {
  background-color: rgba(239, 68, 68, 0.12);
  color: #FFFFFF !important;
  border-left: 4px solid #EF4444;
}

/* Inline field validation messages */
.enrol-form-wrap .wpcf7-not-valid-tip {
  color: #FCA5A5 !important;
  font-size: 0.8rem;
  margin-top: 0.3rem;
  display: block;
}

/* Honeypot field — always hidden */
.wpcf7-form .hidden,
.gform_validation_container,
.ginput_honeypot {
  display: none !important;
  visibility: hidden !important;
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  background-color: var(--navy-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 3rem 0 2rem;
  color: var(--slate-300);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer-brand img {
  height: 40px;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: var(--slate-400);
  font-size: 0.88rem;
  line-height: 1.6;
}

.footer-col h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-200);
  margin-bottom: 1rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-col ul li a {
  color: var(--slate-400);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-col ul li a:hover {
  color: #FFFFFF;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--slate-500);
  font-size: 0.82rem;
}

.footer-bottom a {
  color: var(--slate-500);
}

.footer-bottom a:hover {
  color: #FFFFFF;
}

/* ============================================================
   INNER PAGE
   ============================================================ */

.page-hero {
  background-color: var(--navy);
  padding: 4rem 0 3rem;
  text-align: center;
}

.page-hero h1 {
  color: #FFFFFF;
}

.page-hero p {
  color: var(--slate-300);
  margin-top: 0.75rem;
  font-size: 1.05rem;
}

.page-content {
  padding: 4rem 0;
  max-width: 800px;
  margin: 0 auto;
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */

/* Fade-up — guarded by .js-anim so content stays visible without JS */
.js-anim .anim {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--anim-delay, 0s);
}
.js-anim .anim.anim--visible {
  opacity: 1;
  transform: none;
}

/* Slide from left */
.js-anim .anim-left {
  opacity: 0;
  transform: translateX(-44px);
  transition: opacity 0.65s ease, transform 0.65s ease;
  transition-delay: var(--anim-delay, 0s);
}

/* Slide from right */
.js-anim .anim-right {
  opacity: 0;
  transform: translateX(44px);
  transition: opacity 0.65s ease, transform 0.65s ease;
  transition-delay: var(--anim-delay, 0s);
}

.js-anim .anim-left.anim--visible,
.js-anim .anim-right.anim--visible {
  opacity: 1;
  transform: none;
}

/* On mobile, directional slides collapse to a simple fade-up */
@media (max-width: 768px) {
  .js-anim .anim-left  { transform: translateY(30px); }
  .js-anim .anim-right { transform: translateY(30px); }
}

/* Mobile nav entrance */
@media (max-width: 768px) {
  .main-nav.is-open {
    animation: navIn 0.22s ease both;
  }
}

@keyframes navIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .site-header,
  .hero .section-label,
  .hero h1,
  .hero .hero-sub,
  .hero .hero-tagline,
  .hero .hero-actions {
    animation: none !important;
  }

  .js-anim .anim,
  .js-anim .anim-left,
  .js-anim .anim-right {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .pillar-card,
  .step-card,
  .testimonial-card,
  .testimonial-slides,
  .affiliate-card,
  .carousel-btn,
  .carousel-dot,
  .btn {
    transition: none !important;
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .trust-bar-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .section { padding: 3.5rem 0; }

  .nav-toggle { display: flex; }

  .main-nav {
    display: none;
    position: absolute;
    top: 73px;
    left: 0;
    right: 0;
    background-color: var(--navy-dark);
    padding: 1rem 1.5rem 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
  }

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

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .main-nav a { display: block; width: 100%; padding: 0.6rem 0.85rem; }
  .main-nav .nav-cta { margin-left: 0; margin-top: 0.5rem; text-align: center; }

  .hero { padding: 4rem 0 3.5rem; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

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

  .about-content { padding-left: 0; }

  .about-photo img { height: 320px; }

  .enrol-inner { grid-template-columns: 1fr; gap: 2.5rem; }

  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }

  .btn-lg { width: 100%; text-align: center; }
  .hero-actions { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .trust-bar-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   BLOG CARDS
   ============================================================ */

.blog-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.blog-card-img {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background-color: var(--bg-light);
  flex-shrink: 0;
}

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

.blog-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-meta {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.blog-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.blog-card h3 a {
  color: var(--navy);
  text-decoration: none;
}

.blog-card h3 a:hover {
  color: var(--accent);
}

.blog-card-excerpt {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 0;
}

.blog-card-link {
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 1rem;
  display: inline-block;
}

.blog-card-link:hover {
  color: var(--accent-hover);
}

/* Blog archive & single post pagination */
.nav-links {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
}

.nav-links a,
.nav-links span {
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  color: var(--navy);
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-links a:hover {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #FFFFFF;
}

.nav-links .current {
  background-color: var(--navy);
  border-color: var(--navy);
  color: #FFFFFF;
}

@media (max-width: 1024px) {
  #blog .grid-3,
  .blog-archive .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  #blog .grid-3,
  .blog-archive .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* Single post */
.single-post-thumb {
  margin-bottom: 2rem;
}

.single-post-thumb img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.single-post-back {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
