/**
 * Sequentus Limited (SL) — Education site styles
 * Class prefix: .sl- (home page), .slc- (course pages)
 * Colours: sq-gold #0d9488 — NOT the HD copper #b87333
 */

/* ── Shared SL tokens ──────────────────────────────────────── */
:root {
    --sl-teal:        #0d9488;
    --sl-teal-hover:  #0f766e;
    --sl-gold:        #0d9488;
    --sl-gold-hover:  #0f766e;
    --sl-black:       #0a0a0a;
    --sl-dark:        #111111;
    --sl-dark-2:      #161616;
    --sl-dark-3:      #1a1a1a;
    --sl-border:      rgba(13,148,136,0.22);
    --sl-frost-bg:    rgba(15,15,15,0.72);
    --sl-frost-heavy: rgba(10,10,10,0.84);
    --sl-muted:       #888888;
    --sl-white:       #ffffff;
    --sl-radius:      12px;
    /* Override SLS gold and HD copper with SL teal */
    --sq-gold:        #0d9488 !important;
    --sq-gold-hover:  #0f766e !important;
    --hd-accent:      #0d9488 !important;
    --hd-accent-hv:   #0f766e !important;
    --color-primary:  #0d9488 !important;
}

/* ── Frost panel ────────────────────────────────────────────── */
.sl-frost {
    background: var(--sl-frost-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--sl-border);
    border-radius: var(--sl-radius);
}

/* ── Badge, eyebrow, section-header ────────────────────────── */
.sl-badge {
    display: inline-block;
    font-family: Arial, sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--sl-gold);
    border: 1px solid var(--sl-gold);
    border-radius: 40px;
    padding: 4px 14px;
    margin-bottom: 1.2rem;
}
.sl-eyebrow {
    display: block;
    font-family: Arial, sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--sl-gold);
    margin-bottom: 0.75rem;
}
.sl-section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 3rem;
}
.sl-section-header h2 {
    color: var(--sl-white);
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 3.2vw, 2.6rem);
}

/* ── SL Course Page — teal accent override ───────────────── */
.sl-course,
.hdm-page.sl-home {
  --hd-accent:     #0d9488 !important;
  --hd-accent-hv:  #0f766e !important;
  --sq-gold:       #0d9488 !important;
  --sq-gold-hover: #0f766e !important;
  --color-primary: #0d9488 !important;
}

/* ── Horizontal steps diagram ────────────────────────────── */
.slc-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  flex-wrap: nowrap;
  margin-top: 3rem;
  overflow-x: auto;
}
.slc-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1 1 0;
  min-width: 160px;
  max-width: 240px;
  position: relative;
  padding: 0 12px;
}
.slc-step__num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(13,148,136,0.15);
  border: 2px solid #0d9488;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: #0d9488;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}
.slc-step__title {
  margin-top: 14px;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  line-height: 1.3;
}
.slc-step__desc {
  margin-top: 8px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
  padding: 0 4px;
}
/* connector line between steps */
.slc-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 24px;
  left: calc(50% + 24px);
  right: calc(-50% + 24px);
  height: 2px;
  background: rgba(13,148,136,0.4);
}
@media (max-width: 640px) {
  .slc-steps { flex-direction: column; align-items: flex-start; gap: 24px; }
  .slc-step { flex-direction: row; text-align: left; max-width: 100%; gap: 16px; padding: 0; }
  .slc-step__num { flex-shrink: 0; }
  .slc-step::after { display: none; }
}

/* ── Override hardcoded copper values in hdm- classes ──────── */
.sl-course .hdm-badge,
.hdm-page.sl-home .hdm-badge {
  background: rgba(13,148,136,0.15);
  border-color: rgba(13,148,136,0.35);
  color: #0d9488;
}
.sl-course .hdm-pricing-card--featured,
.hdm-page.sl-home .hdm-pricing-card--featured {
  border-color: rgba(13,148,136,0.5);
  background: rgba(13,148,136,0.07);
}
.sl-course .hdm-pricing-card__tag,
.hdm-page.sl-home .hdm-pricing-card__tag {
  background: #0d9488;
}
.sl-course .hdm-mentor__creds li::before,
.hdm-page.sl-home .hdm-mentor__creds li::before {
  color: rgba(13,148,136,0.6);
}
.sl-course .hdm-faq__item,
.hdm-page.sl-home .hdm-faq__item {
  border-color: rgba(13,148,136,0.2);
}
.sl-course .hdm-faq__question,
.hdm-page.sl-home .hdm-faq__question {
  border-bottom-color: rgba(13,148,136,0.2);
}

/* ── Suppress WP custom logo styles in header ─────────────── */
.sl-course .custom-logo,
.sl-course .custom-logo-link img,
header .sl-course-logo {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}


/* ============================================================
   SL HOME PAGE — .slh- classes
   ============================================================ */

/* ── Shared SL button ────────────────────────────────────── */
.sl-btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.75rem 1.75rem; border-radius: 4px;
    font-size: 0.875rem; font-weight: 600; letter-spacing: 0.05em;
    text-decoration: none; cursor: pointer;
    transition: all 0.2s ease; border: 2px solid transparent;
}
.sl-btn--gold {
    background: transparent; color: #fff;
    border-color: var(--sl-gold);
}
.sl-btn--gold:hover {
    background: var(--sl-gold); color: #0a0a0a;
}
.sq-btn--teal {
    background: transparent;
    color: var(--sl-teal);
    border-color: var(--sl-teal);
}
.sq-btn--teal:hover {
    background: var(--sl-teal);
    border-color: var(--sl-teal);
    color: #fff;
}

/* ── Pro bono carousel ───────────────────────────────────────── */
.slider-experts {
    padding-top: 5rem;
}
.slider-experts .swiper-wrapper {
    align-items: stretch !important;
}
.slider-experts .swiper-slide {
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    align-items: flex-start !important;
}
/* Slide inner: column on mobile, row bottom-aligned on sm+ */
.pb-slide-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    width: 100%;
    flex: 1;
}
@media (min-width: 640px) {
    .pb-slide-inner {
        flex-direction: row;
        align-items: flex-end;
    }
}
.sl-btn--outline {
    background: transparent; color: #fff;
    border-color: rgba(255,255,255,0.3);
}
.sl-btn--outline:hover { border-color: var(--sl-gold); color: var(--sl-gold); }
.sl-btn--lg { padding: 1rem 2.25rem; font-size: 1rem; }

/* ── Hero ─────────────────────────────────────────────────── */
.slh-hero {
    position: relative; min-height: 100vh;
    display: flex; align-items: center;
    overflow: hidden;
    background: var(--sl-black);
    padding: 120px 0 80px;
}
.slh-hero__bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    opacity: 1;
}
.slh-hero__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(10,10,10,0.75) 0%, rgba(10,10,10,0.45) 100%);
}
.slh-hero__inner {
    position: relative; z-index: 1;
    display: flex; align-items: center;
}
.slh-hero__panel {
    max-width: 775px; padding: 52px 48px;
}
.slh-hero__badge {
    display: inline-block;
    font-size: 0.68rem; font-weight: 700; letter-spacing: 0.18em;
    text-transform: uppercase; color: var(--sl-gold);
    border: 1px solid var(--sl-gold); border-radius: 40px;
    padding: 4px 14px; margin-bottom: 1.25rem;
}
.slh-hero__headline {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 700; line-height: 1.1;
    color: #fff; margin: 0 0 1.25rem;
}
.slh-hero__tagline {
    font-size: 1.05rem; line-height: 1.7;
    color: rgba(255,255,255,0.75); margin: 0 0 2rem;
}
.slh-hero__ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── What We Offer cards ─────────────────────────────────── */
.slh-offer { padding: 80px 0; background: var(--sl-dark); }
.slh-offer__grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem; margin-top: 3rem;
}
.slh-offer-card {
    padding: 36px 28px; text-decoration: none;
    display: flex; flex-direction: column;
    transition: border-color 0.2s;
}
.slh-offer-card:hover { border-color: var(--sl-gold); }
.slh-offer-card__icon { color: var(--sl-gold); margin-bottom: 1.25rem; }
.slh-offer-card__title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem; font-weight: 600;
    color: #fff; margin: 0 0 0.875rem;
}
.slh-offer-card__text {
    font-size: 0.925rem; color: rgba(255,255,255,0.65);
    line-height: 1.7; margin: 0 0 1.5rem; flex: 1;
}
.slh-offer-card__cta {
    display: flex; align-items: center; gap: 6px;
    font-size: 0.825rem; font-weight: 600;
    letter-spacing: 0.04em; color: var(--sl-gold);
    text-decoration: none; margin-top: auto;
    transition: opacity 0.2s;
}
.slh-offer-card:hover .slh-offer-card__cta { opacity: 0.8; }

/* ── About SL ────────────────────────────────────────────── */
.slh-about { padding: 90px 0; background: var(--sl-black); }
.slh-about__inner {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 5rem; align-items: center;
}
.slh-about__text h2 {
    font-size: clamp(1.75rem, 3vw, 2.4rem);
    margin: 0.5rem 0 1.25rem; color: #fff;
}
.slh-about__body p {
    color: rgba(255,255,255,0.7);
    font-size: 0.975rem; line-height: 1.75; margin-bottom: 1rem;
}
.slh-about__image { border-radius: 12px; overflow: hidden; }
.slh-about__image img {
    width: 100%; display: block;
    height: 520px; object-fit: cover;
    border-radius: 12px;
}

/* ── Programmes — sidebar + blurb layout ─────────────────── */
.slh-programmes { padding: 80px 0; background: var(--sl-dark); }

.slh-programmes__layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    margin-top: 3rem;
    align-items: start;
}

/* Left sidebar */
.slh-prog-sidebar {
    display: flex; flex-direction: column; gap: 0;
}
.slh-prog-sidebar__group {
    display: flex; flex-direction: column;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 1.25rem 0 0.5rem;
}
.slh-prog-sidebar__group:first-child { border-top: none; padding-top: 0; }
.slh-prog-sidebar__label {
    font-size: 0.65rem; font-weight: 700; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--sl-gold);
    margin-bottom: 0.625rem;
}
.slh-prog-sidebar__item {
    display: flex; align-items: center; gap: 8px;
    font-size: 0.9rem; color: rgba(255,255,255,0.65);
    text-decoration: none; padding: 0.45rem 0;
    border-radius: 4px;
    transition: color 0.15s;
    line-height: 1.4;
}
.slh-prog-sidebar__item svg { color: var(--sl-gold); flex-shrink: 0; opacity: 0.7; transition: opacity 0.15s; }
.slh-prog-sidebar__item:hover { color: #fff; }
.slh-prog-sidebar__item:hover svg { opacity: 1; }

.slh-prog-sidebar__item--muted {
    cursor: default;
    color: rgba(255,255,255,0.3);
}
.slh-prog-sidebar__item--muted svg { opacity: 0.3; }
.slh-prog-sidebar__item--muted:hover { color: rgba(255,255,255,0.3); }
.slh-prog-sidebar__item--muted:hover svg { opacity: 0.3; }

.sl-btn--sm { padding: 0.55rem 1.25rem; font-size: 0.8rem; }

/* Right blurb panel */
.slh-prog-blurb {
    padding: 44px 48px;
}
.slh-prog-blurb__headline {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
    font-weight: 600; color: #fff;
    margin: 0 0 1.5rem; line-height: 1.25;
}
.slh-prog-blurb__body p {
    font-size: 0.975rem; color: rgba(255,255,255,0.7);
    line-height: 1.8; margin: 0 0 1rem;
}
.slh-prog-blurb__body p:last-child { margin-bottom: 0; }

/* ── Testimonials ────────────────────────────────────────── */
.slh-testimonials { padding: 80px 0; background: var(--sl-dark); }
.slh-testimonials__grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem; margin-top: 3rem;
}
.slh-tcard { padding: 32px 28px; display: flex; flex-direction: column; }
.slh-tcard__stars { color: var(--sl-gold); font-size: 1rem; margin-bottom: 1rem; letter-spacing: 0.1em; }
.slh-tcard__quote {
    font-size: 0.925rem; line-height: 1.75;
    color: rgba(255,255,255,0.78); font-style: italic;
    flex: 1; margin: 0 0 1.25rem;
}
.slh-tcard__desc {
    font-size: 0.8rem; font-weight: 600;
    color: var(--sl-gold); margin: 0;
}

/* ── CTA banner ──────────────────────────────────────────── */
/* ── Booking widget teal override (injected styles need !important) ── */
/* Also override hardcoded rgba copper in hd.css for mentoring page */
.hdm-page.sl-home .hdm-booking__widget { border-color: rgba(13,148,136,0.5) !important; }
.hdm-page.sl-home .hdm-booking__panel  { border-color: rgba(13,148,136,0.25) !important; background: rgba(8,28,26,0.95) !important; }
.hdm-page.sl-home .hdm-pricing__note { border-top-color: rgba(13,148,136,0.2) !important; }
.hdm-page.sl-home .sqb-back-btn,
.hdm-page.sl-home .sqb-form-header p { color: #0d9488 !important; }
.hdm-page.sl-home .sqb-day.available:hover { border-color: #0d9488 !important; }
.hdm-page.sl-home .sqb-day.selected { background: #0d9488 !important; }
.hdm-page.sl-home .sqb-slot { border-color: #0d9488 !important; color: #0d9488 !important; }
.hdm-page.sl-home .sqb-slot:hover,
.hdm-page.sl-home .sqb-slot.selected { background: #0d9488 !important; color: #000 !important; }
.hdm-page.sl-home .sqb-form-group input:focus,
.hdm-page.sl-home .sqb-form-group textarea:focus,
.hdm-page.sl-home .sqb-select-wrap:focus-within { border-color: #0d9488 !important; }
.hdm-page.sl-home .sqb-submit-btn { background: #0d9488 !important; }
.hdm-page.sl-home .sqb-submit-btn:hover { background: #0f766e !important; }
.hdm-page.sl-home .sqb-spinner { border-top-color: #0d9488 !important; }
.hdm-page.sl-home .sqb-success-icon { background: #0d9488 !important; }

/* ── Lead tutor section ─────────────────────────────────────── */
.slh-tutor { padding: 90px 0; background: var(--sl-dark); }
.slh-tutor__inner {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 5rem;
    align-items: center;
}
.slh-tutor__photo {
    position: relative;
    border-radius: var(--sl-radius);
    overflow: hidden;
}
.slh-tutor__photo img {
    width: 100%; display: block;
    border-radius: var(--sl-radius);
    filter: grayscale(20%);
}
.slh-tutor__text h2 { font-size: 2rem; font-weight: 700; margin: 0.5rem 0 1.25rem; }
.slh-tutor__body p  { color: rgba(255,255,255,0.72); line-height: 1.75; margin-bottom: 1rem; }
.slh-tutor__creds {
    list-style: none; padding: 0; margin: 1.5rem 0 0;
    display: flex; flex-direction: column; gap: 0.6rem;
}
.slh-tutor__creds li {
    display: flex; align-items: center; gap: 0.6rem;
    font-size: 0.875rem; color: rgba(255,255,255,0.8);
}
.slh-tutor__creds li svg { color: var(--sl-teal); flex-shrink: 0; }

/* ── News section ───────────────────────────────────────────── */
.slh-news { padding: 80px 0; background: var(--sl-black); }
.slh-news__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
}
.slh-news__empty { color: var(--sl-muted); font-style: italic; }
.slh-news-card {
    display: flex; flex-direction: column;
    border-radius: var(--sl-radius); overflow: hidden;
    text-decoration: none; color: inherit;
    transition: border-color 0.2s;
}
.slh-news-card:hover { border-color: var(--sl-gold); }
.slh-news-card__img {
    height: 180px;
    background-size: cover; background-position: center;
    flex-shrink: 0;
}
.slh-news-card__body { padding: 1.25rem 1.5rem 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; }
.slh-news-card__cat {
    font-size: 0.7rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.08em; color: var(--sl-gold);
}
.slh-news-card__title { font-size: 1rem; font-weight: 600; line-height: 1.4; margin: 0; color: #fff; }
.slh-news-card__excerpt { font-size: 0.875rem; color: rgba(255,255,255,0.6); line-height: 1.6; margin: 0; }
.slh-news-card__date { font-size: 0.75rem; color: var(--sl-muted); margin-top: auto; padding-top: 0.75rem; }

.slh-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1512 50%, #111 100%);
    border-top: 1px solid var(--sl-border);
}
.slh-cta__inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 3rem; flex-wrap: wrap;
}
.slh-cta__headline {
    font-size: clamp(1.75rem, 3vw, 2.4rem);
    color: #fff; margin: 0.5rem 0 0.875rem;
}
.slh-cta__subtext {
    font-size: 0.975rem; color: rgba(255,255,255,0.6);
    max-width: 480px; line-height: 1.65; margin: 0;
}
.slh-cta__btns { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; flex-shrink: 0; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
    .slh-hero__panel { max-width: 100%; }
    .slh-offer__grid { grid-template-columns: 1fr; }
    .slh-about__inner { grid-template-columns: 1fr; gap: 3rem; }
    .slh-about__image img { height: 360px; }
    .slh-tutor__inner { grid-template-columns: 1fr; gap: 2.5rem; }
    .slh-tutor__photo img { max-height: 400px; object-fit: cover; object-position: top; }
    .slh-programmes__layout { grid-template-columns: 1fr; }
    .slh-prog-sidebar { position: static; }
    .slh-testimonials__grid { grid-template-columns: 1fr 1fr; }
    .slh-news__grid { grid-template-columns: 1fr 1fr; }
    .slh-cta__inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
    .slh-hero { padding: 100px 0 60px; }
    .slh-hero__panel { padding: 36px 28px; }
    .slh-hero__ctas { flex-direction: column; }
    .slh-prog-blurb { padding: 32px 24px; }
    .slh-testimonials__grid { grid-template-columns: 1fr; }
    .slh-news__grid { grid-template-columns: 1fr; }
    .slh-cta__btns { flex-direction: column; width: 100%; }
    .slh-cta__btns .sl-btn { width: 100%; justify-content: center; }
}


/* ============================================================
   POLICY PAGE — template-policy.php
   ============================================================ */

.policy-page {
    background-color: var(--sq-black, #0a0a0a);
    min-height: 100vh;
    padding: 4rem 0 6rem;
}
.policy-page__container {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 2rem;
}
.policy-page__title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--sl-teal, #0d9488);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}
.policy-page__body {
    margin-top: 2.5rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    font-size: 0.95rem;
}
.policy-page__body p,
.policy-page__body li {
    color: rgba(255, 255, 255, 0.85) !important;
}
.policy-page__body h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.policy-page__body h3 {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 1.75rem;
    margin-bottom: 0.5rem;
}
.policy-page__body p { margin-bottom: 1rem; }
.policy-page__body ul,
.policy-page__body ol { margin: 0.75rem 0 1rem 1.5rem; }
.policy-page__body li { margin-bottom: 0.4rem; }
.policy-page__body strong { color: #ffffff; font-weight: 600; }
.policy-page__body a { color: var(--sl-teal, #0d9488); text-decoration: underline; text-underline-offset: 2px; }
.policy-page__body a:hover { color: #ffffff; }

/* ── Footer nav — inactive/coming-soon items ─────────────────── */
footer .menu-item-inactive > a,
footer .menu-item-inactive > span,
footer li.inactive > a {
    opacity: 0.35;
    pointer-events: none;
    cursor: default;
}
footer .menu-item-inactive > a::after,
footer li.inactive > a::after {
    content: ' — coming soon';
    font-size: 0.72em;
    opacity: 0.7;
    font-style: italic;
}

/* ── SL course page overrides ────────────────────────────────── */
.sl-course-page .hdm-what__list { padding-top: 36px; }
.sl-course-page .hdm-for__grid  { grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); }
