/*
  Theme Name:   Skillora
  Description:  Custom theme for Skillora
  Author:       Oncotton LTD
  Author URI:   https://oncotton.net
  Version:      1.0.0
*/

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
button,hr,input{overflow:visible}progress,sub,sup{vertical-align:baseline}[type=checkbox],[type=radio],legend{box-sizing:border-box;padding:0}html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}details,main{display:block}hr{box-sizing:content-box;height:0}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:bolder}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:ButtonText dotted 1px}fieldset{padding:.35em .75em .625em}legend{color:inherit;display:table;max-width:100%;white-space:normal}textarea{overflow:auto}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}[hidden],template{display:none}

/* ============================================================
   CRITICAL (ABOVE THE FOLD)
   - variables
   - base type
   - header/nav (fixed)
   - unified buttons
   - unified Swiper arrows
   ============================================================ */

:root{
  /* Header / layout */
  --header-height: 72px;
  --header-color: #fff;
  --offcanvas-width: 560px;

  /* Off-canvas palette */
  --nav-bg: #ffffff;
  --nav-fg: #111111;

  /* Burger icon */
  --burger-line-w: 32px;
  --burger-line-h: 4px;
  --burger-gap: 10px;
  --burger-radius: 999px;
  --burger-offset: calc(var(--burger-gap)/2 + var(--burger-line-h)/2);


}
b, strong {
font-weight: 700 !important;
}
html { scroll-behavior: smooth; }
body { margin: 0; }
h1 { font-size: var(--wp--preset--font-size--extra-extra-large); font-weight: 700}
h2 { font-size: var(--wp--preset--font-size--extra-large); font-weight: 700; padding: 30px 0; color: var(--wp--preset--color--primary);}
h3 { font-size: var(--wp--preset--font-size--large); font-weight: 400}
h4 { font-size: var(--wp--preset--font-size--medium); font-weight: 400;}
h5 { font-size: var(--wp--preset--font-size--medium); font-weight: 400}

.has-extra-large-font-size, .has-extra-extra-large-font-size {font-weight: 300}
.wp-block-post-title.has-medium-font-size {margin: 10px 0 20px !important}
.product-list .wp-block-post-title.has-medium-font-size {
  margin: 0 !important;
}
p {padding: 10px 0}
p + h2, .wp-block-column h2 {
  padding: 20px 0
}
h3 { padding: 20px 0; }
h4 { padding: 20px 0; }

h1, h2, h3, h4, h5 {
  word-break: keep-all;
  overflow-wrap: normal;
  word-wrap: normal;
  hyphens: none;
  -webkit-hyphens: none;
  -ms-hyphens: none;
}

h3 a, h2 a, h1 a, h4 a, h5 a {text-decoration: none}

.post-edit-link {position: relative; left: 10px; bottom: 10px; background: rgb(121, 25, 25); border-radius: 30px; padding: 5px 10px; color: #FFF; text-decoration: none; font-weight: 700; font-size: 10px;}

.wp-block-cover.sticky {
  position: sticky;
  top: 0;
  z-index: -1
}

.wp-block-cover {
  position: relative;
  z-index: 2
}


/* ----- Fixed Header ----- */
#skillora-content { position: relative; padding-top: var(--header-height); }
body.admin-bar .site-header { top: 32px; }

.gap-20 { gap: 40px; }
.mb-20 { margin-bottom: 20px; }
.mt-20 { margin-top: 20px; }
.my-60 { margin-top: 60px !important; margin-bottom: 60px !important; }
.max-20 { max-width: 760px; margin: 0 auto; }
.wp-block-columns {gap: 40px}
.height-100 {height: 420px}
.wp-block-buttons {
  margin: 40px 0;
  gap: 15px
}
.wp-block-button a {border-radius: 8px; border: none; transition: opacity 0.3s ease;background: var(--wp--preset--color--cta);font-weight: 800}
.wp-block-button a:hover, .wp-block-post-excerpt__more-link:hover {background: var(--wp--preset--color--cta-hover);}
.is-style-outline .wp-block-button__link, .wp-block-post-excerpt__more-link {
  position: relative;
  padding-right: 1em; /* add space for arrow */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 0;
  text-decoration: none
}
.is-style-outline .wp-block-button__link::after, .wp-block-post-excerpt__more-link::after {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-left: 0.6em;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-width='2' viewBox='0 0 24 24'><path d='M5 12h14M13 5l7 7-7 7'/></svg>");
}
.is-style-outline .wp-block-button__link:hover::after, .wp-block-post-excerpt__more-link:after::hover {
  transform: translateX(4px);
  transition: transform .2s ease;
}
.wp-block-post-excerpt__excerpt {padding: 0 0 20px}
.wp-block-separator {border-top: 1px solid;margin:30px 0 0; padding-bottom: 30px}
/* Modern tick-style list */
.wp-block-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  padding-top: 20px;
  padding-bottom: 10px
}

.wp-block-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.75rem;
  font-size: 1rem;
  line-height: 1.4;
}

.wp-block-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #333
  font-weight: 600;
  font-size: 1.1rem;
}

/* Phone list override */
.wp-block-list.tel-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 16px;
  height: 16px;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23333'><path d='M6.62 10.79a15.053 15.053 0 006.59 6.59l2.2-2.2a1 1 0 011-.24c1.12.37 2.33.57 3.59.57a1 1 0 011 1V21a1 1 0 01-1 1C10.07 22 2 13.93 2 4a1 1 0 011-1h3.49a1 1 0 011 1c0 1.26.2 2.47.57 3.59a1 1 0 01-.25 1l-2.19 2.2z'/></svg>");
}
.wp-block-list.address-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 16px;
  height: 16px;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23333'><path d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5A2.5 2.5 0 1112 6a2.5 2.5 0 010 5.5z'/></svg>");
}

/* ========================================
   BASE HEADER
======================================== */
/* ========================================
   BASE HEADER
======================================== */
.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  background: transparent;
  transition: transform .36s ease, background-color .24s ease, box-shadow .24s ease;
  will-change: transform, background-color, box-shadow;
}
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0;
  transition: background-color .3s ease, box-shadow .3s ease;
  background: rgba(255, 255, 255, 1);
  padding: 30px 20px
}
.scrolled .header-container {
  background: rgba(255, 255, 255, 1);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wp-block-columns:not(.alignfull), h2.wp-block-heading {
max-width: var(--wp--style--global--content-size);
margin-left: auto !important;
margin-right: auto !important;
}
.wp-block-image img {border-radius: 20px}
.wp-block-columns {margin-top: 30px; margin-bottom: 30px; gap: 5vw}
/* Links + logo color swap */
.header-container a { color: #fff; }
.has-mega-open .header-container a { color: #000; }
.has-mega-open .header-container {background: #fff}
.has-mega-open .floating-search { color: #000; }

body.has-mega-open .site-branding { filter: invert(1); }

img.custom-logo {
  height: 44px; width: auto; display: block;
  transition: filter 150ms ease;
}

body.scrolled .site-header {
  position: fixed;
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
  transform: translateY(0);
}
body.scrolled .header-inner { padding-block: 10px; }


/* --- Fixed header base (already present) --- */
body.scrolled .site-header {
  position: fixed;
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
  transform: translateY(0);
}

/* --- Auto-hide on scroll down --- */
.site-header {
  transform: translateY(0);
  transition: transform .36s ease, background-color .24s ease, box-shadow .24s ease;
  will-change: transform, background-color, box-shadow;
}

/* When user is scrolling down, slide header out of view */
body.nav-hide .site-header {
  transform: translateY(-110%);
}

/* Keep header visible when overlays are open */
body.nav-open .site-header,
body.search-open .site-header,
body.has-mega-open .site-header {
  transform: translateY(0) !important;
}

/* Admin bar offset (WP) when fixed */
body.admin-bar .site-header {
  top: 0;
}
body.admin-bar.scrolled .site-header {
  top: 32px; /* WP admin bar height on desktop */
}

/* Respect motion prefs */
@media (prefers-reduced-motion: reduce){
  .site-header { transition: none; transform: none; }
}

/* Optional: slightly tighter padding when scrolled */
body.scrolled .header-inner { padding-block: 10px; }

/* You already had these; keep them */
@media (min-width: 721px){
  .site-header.has-mega-open {
    background: #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
  }
}


/* ========================================
   DESKTOP NAV (UPDATED for: nav > ul.menu > li > a)
======================================== */
@media (min-width: 721px){

  #site-navigation.site-navigation{
    display: flex;
    align-items: center;
    min-width: 0;
  }

  /* NEW STRUCTURE: ul has class "menu" */
  #site-navigation > ul.menu{
    list-style: none;
    margin: 0;
    padding: 0;

    display: flex;
    align-items: center;
    gap: 28px;

    white-space: nowrap;
  }

  #site-navigation > ul.menu > li{
    margin: 0;
    padding: 0;
  }

  #site-navigation > ul.menu > li > a{
    display: inline-flex;
    align-items: center;

    padding: 12px 0;
    text-decoration: none;

    font-size: 15px;
    font-weight: 500;
    line-height: 1.1;

    color: inherit;                 /* respects your color swap rules */
    border-bottom: 2px solid transparent;

    transition: color .2s ease, border-color .2s ease, opacity .2s ease;
  }

  #site-navigation > ul.menu > li > a:hover{
    opacity: .9;
  }

  /* Current page */
  #site-navigation .current-menu-item > a,
  #site-navigation .current_page_item > a,
  #site-navigation a[aria-current="page"]{
    border-bottom-color: currentColor;
  }

  /* Slightly tighter when scrolled */
  body.scrolled #site-navigation > ul.menu > li > a{
    padding: 10px 0;
  }
}


/* ========================================
   SEARCH BUTTON
======================================== */
.floating-search {
  background: transparent;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 0;
  color: #fff
}
.floating-search svg {
  width: 20px;
  height: 20px;
  display: block;
}
.no-scroll .floating-search {
  opacity: 0
}

/* ========================================
   HAMBURGER (mobile only)
======================================== */
.mobile-menu {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 34px; 
  height: 45px;
  border: 0; 
  background: transparent;
  cursor: pointer;
}

.mobile-menu .bar {
  width: 34px; 
  height: 3px;
  border-radius: 3px;
  background: #000;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu[aria-expanded="true"] .bar {
  background: #000;
}

.search-hamburger {
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
  z-index: 999;
}

/* When nav is open */
body.nav-open .mobile-menu .bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

body.nav-open .mobile-menu .bar:nth-child(2) {
  opacity: 0;
}

body.nav-open .mobile-menu .bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

@media (min-width: 721px){
  .mobile-menu { display: none; }
}


/* ========================================
   MOBILE OFF-CANVAS NAV
   (kept as-is; supports your offcanvas wrapper structure)
======================================== */
@media (max-width: 720px){

  #site-navigation.offcanvas {
    position: fixed;
    inset: 0 0 0 auto;
    width: 100%;
    transform: translateX(100%);
    transition: transform .35s ease;
    box-shadow: -20px 0 40px rgba(0,0,0,.12);
    height: 100vh;
    background: #fff;
    overflow: hidden;
    padding: 0;
  }

  #site-navigation.offcanvas.is-open { 
    transform: translateX(0); 
  }

 .mobile-menu-wrapper{
   display: flex;
   height: 100%;
   transition: transform .35s ease;
 }

 .mobile-menu-wrapper > .menu,
 .submenu-panel{
   min-width: 100%;
   height: 100%;
   overflow-y: auto;
   padding: 120px 24px 40px; /* extra top spacing */
 }

  /* Disable default dropdown behaviour */
  #site-navigation .sub-menu{
    display: none !important;
  }

  #site-navigation .menu{
    display: block;
    margin: 0;
    padding: 100px 0 0;
    list-style: none;
    text-align: left;
    height: auto;
    font-size: 1.225rem;
  }

  #site-navigation .menu > li{
    position: relative;
    padding: 14px 0;
    border-bottom: 1px solid #eee;
  }

  #site-navigation .menu > li > a{
    display: block;
    text-decoration: none;
    padding: 0 0 0 30px;
  }

  /* Submenu arrow button – fully reset */
  .submenu-toggle{
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    
    width: 24px;
    height: 24px;
  
    background: none;
    border: 0;
    padding: 0;
    margin: 0;
  
    appearance: none;
    -webkit-appearance: none;
    border-radius: 0;
    box-shadow: none;
  
    display: flex;
    align-items: center;
    justify-content: center;
  
    cursor: pointer;
  }
  
  /* Remove focus outline but keep accessibility */
  .submenu-toggle:focus{
    outline: none;
  }
 
 .submenu-toggle::after{
   content: '';
   display: block;
   width: 16px;
   height: 16px;
   margin-left: auto;
   background-repeat: no-repeat;
   background-size: contain;
   background-position: center;
   background-image: url("data:image/svg+xml;utf8,\
   <svg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-width='2' viewBox='0 0 24 24'>\
   <path d='M9 5l7 7-7 7'/>\
   </svg>");
 }

  /* Submenu panel layout */
  .submenu-panel ul{
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .submenu-panel li{
    padding: 14px 0;
    border-bottom: 1px solid #eee;
  }

  .submenu-panel a{
    text-decoration: none;
  }

  /* Submenu back button */
  .submenu-back{
    display: inline-flex;
    align-items: center;
    justify-content: center;
  
    width: 28px;
    height: 28px;
  
    background: none;
    border: 0;
    padding: 0;
    margin: 0 0 24px 0;
  
    appearance: none;
    -webkit-appearance: none;
    border-radius: 0;
    box-shadow: none;
    left: -10px;
    position: relative;
    cursor: pointer;
  }
  
  /* Remove default focus styling */
  .submenu-back:focus{
    outline: none;
  }
  
  /* Left arrow SVG */
  .submenu-back::before{
    content: '';
    width: 18px;
    height: 18px;
  
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
  
    background-image: url("data:image/svg+xml;utf8,\
  <svg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-width='2' viewBox='0 0 24 24'>\
  <path d='M15 5l-7 7 7 7'/>\
  </svg>");
  }

  .header-container a {
    color: #000; 
    text-decoration: none;
  }

  .header-container li {
    padding: 10px 0;
  }
  
  /* Close button base */
  .mobile-nav-close{
    position: absolute;
    top: 14px;
    right: 14px;
  
    width: 28px;
    height: 28px;
  
    background: none;
    border: 0;
    padding: 0;
    margin: 0;
  
    appearance: none;
    -webkit-appearance: none;
    box-shadow: none;
  
    cursor: pointer;
    z-index: 9
  }
  
  /* Lines */
  .mobile-nav-close::before,
  .mobile-nav-close::after{
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 20px;
    height: 2px;
    background: currentColor;
  
    transform-origin: center;
    transition: transform .3s ease, opacity .2s ease;
  }
  
  /* Default = minus */
  .mobile-nav-close::before{
    transform: translate(-50%, -50%) rotate(0deg);
  }
  
  .mobile-nav-close::after{
    transform: translate(-50%, -50%) rotate(0deg);
    opacity: 0;
  }
  
  /* OPEN STATE — delayed animation */
  #site-navigation.is-open .mobile-nav-close::before{
    transition-delay: .2s;
    transform: translate(-50%, -50%) rotate(45deg);
  }
  
  #site-navigation.is-open .mobile-nav-close::after{
    transition-delay: .2s;
    transform: translate(-50%, -50%) rotate(-45deg);
    opacity: 1;
  }
  
  /* Remove delay when closing (so it snaps back immediately) */
  #site-navigation:not(.is-open) .mobile-nav-close::before,
  #site-navigation:not(.is-open) .mobile-nav-close::after{
    transition-delay: 0s;
  }
  
}

/* ========================================
   OVERLAY (mobile)
======================================== */
.nav-overlay, 
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  z-index: 999;
  height: 100vh;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav-overlay.is-active, 
.search-overlay.is-active { 
  opacity: 1; 
  pointer-events: auto; 
}

.nav-overlay[hidden] { 
  display:block; 
}


/* ========================================
   DESKTOP NAV + DROPDOWNS
======================================== */
@media (min-width: 721px){
  #site-navigation { margin: 0 60px; width: 100%;font-size: 0.825rem}
  #site-navigation .menu {
    display: flex;
    align-items: center;
    gap: 60px;
    justify-content: space-around

  }
  #site-navigation .menu > li {
    position: relative;
    list-style: none;
  }
  #site-navigation .menu > li > a {
    display: inline-block;
    padding: 10px 6px;
    text-decoration: none;
  }
}
 
.post-hero-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.post-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Placeholder styling */
.hero-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(
      135deg,
      #e7e7e7 0%,
      #e2e2e2 50%,
      #d0d0d0 100%
    );
  color: #ffffff;
  text-align: center;
}


body.home .wp-block-columns.alignfull {
  width: calc(100% - 20px);
  margin: 10px;
  max-width: 100%;
  gap: 10px
}
.wp-block-gallery img {padding: 5px}
.wp-block-columns.alignfull {
  width: calc(100%);
  margin: 10px;
  max-width: 100%;
  gap: 10px
}
.wp-block-columns.alignfull.no-margin {
  margin: 10px 0 !important;
  width: calc(100%)
}

.widget {
  width: var(--wp--style--global--content-size);
  margin: 0 auto;
  max-width: 100%;
  padding-top: 100px
}
/* Ensure the post item can position children */
.wp-block-post {
  position: relative;
}

/* Anchor the image as the positioning context */
.wp-block-post-featured-image {
  position: relative;
}

/* Date pill styling */
.wp-block-post-date {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;

  background: rgba(0, 0, 0, 0.75);
  color: #ffffff;

  padding: 6px 12px;
  border-radius: 999px;

  font-size: 0.625rem;
  font-weight: 300;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1;

  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Remove default margins */
.wp-block-post-date time {
  margin: 0;
  display: block;
}

/* Optional: ensure image stays clean */
.wp-block-post-featured-image img {
  display: block;
}


#footer, .footer {
  font-size: 0.825rem; line-height: 1.8rem;
  background: var(--wp--preset--color--light);
  
}
.footer .custom-logo-link img {max-width: 100px; height: auto}
.footer-contact .wp-block-columns {margin: 20px 0}
 .footer ul {padding: 0; margin: 0}
 .footer ul li {
   padding: 10px 0;
   list-style: none
 } 
 .footer .wp-block-heading {
   color: var(--wp--preset--color--primary);
 }
 .footer ul li a {
   text-decoration: none
 }

.footer-contact h2 {
  margin-bottom: 40px
}
.footer-copyright, .footer-copyright a {color: background: var(--wp--preset--color--primary) !important;}

/* ===== Overlay shell ===== */

#search-title.sr-only {color: #fff}
.search-overlay{
  position: fixed; inset: 0; z-index: 1003;
  display: grid; place-items: start center;
  padding: clamp(24px, 4vw, 48px);
  visibility: hidden; opacity: 0;
  transition: opacity .25s ease, visibility 0s linear .25s;
  pointer-events: none;
  
}

.search-overlay.is-open{
  visibility: visible; opacity: 1; pointer-events: auto;
  transition: opacity .25s ease, visibility 0s;
}

.login-btn {
  all: unset;
  background: var(--wp--preset--color--primary) !important;
  padding: 10px 20px;
  border-radius: 8px;
  color: #fff;
  font-weight: 800
}


.search-overlay__close{
  position: fixed; top: 14px; right: 14px;
  width: 34px; height: 34px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.9);
  color: #fff; background: rgba(0,0,0,.35);
  display: grid; place-items: center; font-size: 22px; line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(3px);
}

/* Center box that holds the form + results */
.search-overlay__box{
  width: min(920px, 92vw);
  margin-top: clamp(8vh, 14vh, 24vh);
  margin-left: auto;
  margin-right: auto
}

/* Big pill input like screenshot */
.search-overlay__form{
  position: relative;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  display: flex; align-items: center;
  min-height: 76px;
  padding: 0 64px 0 28px;
}

.search-overlay__input{
  appearance: none; border: 0; outline: 0;
  width: 100%;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.2;
  background: transparent;
  color: #111;
}

.search-overlay__input::placeholder{ color: #444; opacity: .7; }

.search-overlay__submit{
  position: absolute; right: 18px;
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 999px;
  border: 0; background: #111; color: #fff; cursor: pointer;
}

/* Results list */
.search-overlay__results{ margin-top: 18px; }
.search-overlay__list{ list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.search-item__link{
  display: grid; gap: 4px;
  padding: 12px 14px; border-radius: 12px;
  text-decoration: none; color: inherit;
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(0,0,0,.06);
}
.search-item__link:hover{ background: #fff; box-shadow: 0 8px 20px rgba(0,0,0,.08); }
.search-item__title{ font-weight: 700; }
.search-item__type{ font-size: .85rem; opacity: .6; }
.search-item__excerpt{ opacity: .8; }

.search-overlay__empty{ color: #fff; opacity: .9; padding: 8px 2px; }
.search-overlay__hint{ color:#fff; opacity:.75; margin-top: 8px; font-size: .95rem; }



.search-item__pill {
  position: absolute;
  top: 8px;
  right: 12px;
  background: #111;
  color: #fff;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 999px;
  line-height: 1.2;
}

.search-item {
  position: relative;
}
.search-overlay__more {
  display: block;
  margin-top: 12px;
  font-weight: 600;
  text-align: center;
  text-decoration: underline;
}
.search-overlay__summary, .search-overlay__summary a{color: #fff}

.search-overlay__list .type-itinerary .search-item__link {background: #eadfdf; color: #000}
.search-overlay__list .type-destination .search-item__link {background: #e2eadf; color: #000}
.search-overlay__list .type-page .search-item__link {background: #dfe6ea; color: #000}
.search-overlay__list .type-itinerary .search-item__pill{background: #9a8686}
.search-overlay__list .type-destination .search-item__pill{background: #657161}
.search-overlay__list .type-page .search-item__pill{background: #5f6b71}



/* Hide the header triggers while the SEARCH overlay is open */
body.search-open .floating-search,
body.search-open .mobile-menu{
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(.98);
  transition: opacity .2s ease, visibility 0s linear .2s, transform .2s ease;
}

.search-open .header-container {display: none}

/* Return to normal when search closes */
body:not(.search-open) .floating-search{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  transition: opacity .2s ease, visibility 0s linear 0s, transform .2s ease;
  background: #fff;
  border-radius: 50%;
  color: #000
}

body:not(.search-open) .mobile-menu{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  transition: opacity .2s ease, visibility 0s linear 0s, transform .2s ease;
  border-radius: 50%;
  color: #000
}

/* Fly up and fade out when body has .scrolling */
.reveal-ready.scrolling .floating-search{
  transform-origin: 50% 0%;
  will-change: transform, opacity;
  animation: floatSearchFlyOut 360ms cubic-bezier(.22,.61,.36,1) forwards;
  pointer-events: none; /* don't grab clicks while hidden */
}

/* When back at the top (no .scrolling), slide back in from top + fade */
.reveal-ready:not(.scrolling) .floating-search{
  will-change: transform, opacity;
  animation: floatSearchFlyIn 300ms cubic-bezier(.22,.61,.36,1) forwards;
  pointer-events: auto;
}

@keyframes floatSearchFlyOut{
  0%   { opacity: 1; transform: translateY(0) scale(1); }
  35%  { opacity: 1; transform: translateY(-10px) scale(0.995); }
  100% { opacity: 0; transform: translateY(calc(-100% - 40px)) scale(0.98); }
  /* -100% = its own height; extra -40px guarantees it clears the top edge */
}

@keyframes floatSearchFlyIn{
  0%   { opacity: 0; transform: translateY(calc(-100% - 40px)) scale(0.98); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Reduced motion: just fade */
@media (prefers-reduced-motion: reduce){
  .reveal-ready.scrolling .floating-search{
    animation: floatSearchFadeOut 200ms ease forwards;
  }
  .reveal-ready:not(.scrolling) .floating-search{
    animation: floatSearchFadeIn 200ms ease forwards;
  }
  @keyframes floatSearchFadeOut{ from{opacity:1} to{opacity:0} }
  @keyframes floatSearchFadeIn { from{opacity:0} to{opacity:1} }
}

.reveal-ready.scrolling .reviews-slider .swiper-nav .reveal-up { opacity: 1 !important; transform: none !important; }
.footer-copyright {text-align: center;background: var(--wp--preset--color--dark);padding: 20px; margin: 0;
  color: #fff; border-top: solid 1px #fff;font-size: 0.825rem;display: flex;justify-content: space-between;align-items: center
}
.footer-copyright a {color: #fff; text-decoration: none}



 /* Overlay container */
 .hero-overlay {
  position: absolute;
  inset: 0px;
  display: flex;
  align-items: start;
  padding: min(6vw, 72px);
  color: rgb(255, 255, 255);
  z-index: 2;
  flex-direction: column;
  justify-content: center;

 }
.hero-image img {
   width: 100%;
   height: 100%;
   object-fit: cover; /* ensures no distortion, fills container */
   object-position: center; /* keeps image centered */
   display: block;
 }
 .hero-image {
   position: relative;
   width: 100%;
   height: 100vh; 
   overflow: hidden;
 }
 
 .hero-icon img {
   height: 100px;
   width: 100px
 }
 /* Title + summary */
 .hero-title {
   font-size: clamp(2.2rem, 6vw, 5rem);
   line-height: 1.05;
   margin: 0;
   display: flex;
   align-items: center;
   gap: 30px;
 }
 
 
 .has-large-font-size {
   padding: 40px
 }
/* =========================
     Resource Registration Form
  ========================= */
 
 .resource-form {
   max-width: 980px;
   margin: 0 auto;
   padding: 40px;
   background: #fff;
   border-radius: 12px;
   box-shadow: 0 10px 30px rgba(0,0,0,0.2);
   z-index: 2;
   position: relative;
 }
 
 /* =========================
    Step Indicator
 ========================= */
 
 .skillero-step-indicator{
   position:absolute;
   top:-48px;
   right:0;
   font-size:36px;
   font-weight:800;
   color:#101828;
   letter-spacing:.5px;
 }
 
 .skillero-step-indicator span{
   font-weight:400;
   color:#667085;
   font-size:22px;
   margin-left:6px;
 }
 
 @media (max-width:700px){
 
   .skillero-step-indicator{
     top:-36px;
     font-size:28px;
     margin-right: 20px
   }
 
   .skillero-step-indicator span{
     font-size:18px;
   }
 
 }
 
 .resource-form::before{
     content: "";
     position: absolute;
     top: -120px;
     right: 8%;
     width: 260px;
     height: 200px;
     pointer-events: none;
 
     background-image: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg fill='%23BC5C34' width='100pt' height='100pt' version='1.1' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m73.184 78.555c-0.66016-4.4648-8.1133-37.266-15.742-54.473-6.7969-15.344-11.465-18.336-16.105-19.055-0.53125-0.14453-1.082-0.21875-1.6523-0.21875-0.27344 0-0.55078 0.019531-0.82812 0.050781-4.7773 0.58984-12.379 5.7969-21.469 27.234l-0.17578 0.41797 4.9609 0.015625 0.070313-0.20312c0.78516-2.2852 1.4766-4.1406 1.9961-5.3711 2.0312-4.7891 3.5117-8 5.0625-10.254 0.15234-0.21875 0.30078-0.4375 0.44922-0.65234 1.043-1.5273 2.0312-2.9727 3.6172-4.5352 2.125-2.0938 4.2383-3.2031 6.1055-3.2031 2.3281 0 4.3164 1.6914 5.9023 5.0273 3.543 7.4531 6.2148 16.832 8.6602 30.41 2.4375 13.512 4 32.992 4.0117 33.18l0.14844 2.9492-8.2578 0.77734 18.961 14.535 13.891-18.098z'/%3E%3C/svg%3E");
     background-repeat:no-repeat;
     background-size:contain;
 }
 
 .resource-intro {
   margin-bottom: 24px;
 }
 
 .resource-form h2 {
   margin: 0 0 24px;
   font-size: 28px;
   font-weight: 700;
 }
 
 .resource-form h3 {
   margin: 0 0 14px;
   font-size: 22px;
   font-weight: 700;
 }
 
 /* =========================
    FORM SECTIONS (STEP LOGIC)
 ========================= */
 
 .form-section{
   padding:18px 0 8px;
   border-top:1px solid #eee;
   display:none;
 }
 
 .form-section.active{
   display:block;
 }
 
 .form-section:first-of-type{
   border-top:0;
   padding-top:0;
 }
 
 /* =========================
    Grid
 ========================= */
 
 .form-grid{
   display:grid;
   gap:18px 24px;
   align-items:start;
 }
 
 .form-grid.two-col{
   grid-template-columns:1fr;
 }
 
 @media (min-width:900px){
 
   .form-grid.two-col{
     grid-template-columns:repeat(2,minmax(0,1fr));
   }
 
 }
 
 .field{
   min-width:0;
 }
 
 .field.span-2{
   grid-column:1/-1;
 }
 
 .resource-form label{
   display:block;
   font-weight:700;
   margin:0 0 6px;
   font-size:14px;
 }
 
 .req{color:#c0392b;}
 
 .resource-form input,
 .resource-form select,
 .resource-form textarea{
   width:100%;
   box-sizing:border-box;
   padding:12px 14px;
   border:1px solid #d9dde3;
   border-radius:10px;
   font-size:14px;
   background:#fff;
 }
 
 .resource-form input,
 .resource-form select{
   height:40px;
 }
 
 .resource-form textarea{
   resize:vertical;
 }
 
 .resource-form input:focus,
 .resource-form select:focus,
 .resource-form textarea:focus{
   outline:none;
   border-color:var(--wp--preset--color--cta);
   box-shadow:0 0 3px 3px rgba(0,0,0,0.22);
 }
 
 .help,.small{
   margin:8px 0 0;
   font-size:13px;
   color:#6b7280;
   line-height:1.35;
 }
 
 /* =========================
    Map
 ========================= */
 
 .map-wrap{margin-top:14px;}
 
 .skillero-map{
   height:380px;
   border-radius:12px;
   overflow:hidden;
   border:1px solid #e5e7eb;
 }
 
 /* =========================
     Categories
 ========================= */
 
 .categories-wrap{
   display:flex;
   flex-direction:column;
   gap:12px;
 }
 
 .cat-group{
   border:1px solid #e5e7eb;
   border-radius:12px;
   padding:14px 16px;
   background:#fafafa;
   transition:border-color .2s ease,box-shadow .2s ease;
 }
 
 .cat-group:has(input[type="radio"]:checked){
   border-color:var(--wp--preset--color--cta);
   box-shadow:0 0 0 3px rgba(47,111,237,0.08);
   background:#fff;
 }
 
 .cat-main{
   display:flex;
   align-items:center;
   gap:12px;
   font-weight:700;
   cursor:pointer;
 }
 
 .cat-main input[type="radio"]{
   width:18px;
   height:18px;
   flex:0 0 auto;
 }
 
 .cat-children{
   margin-top:14px;
   display:none;
   gap:10px;
   padding-left:30px;
 }
 
 @media (min-width:900px){
 
   .cat-children{
     grid-template-columns:repeat(2,minmax(0,1fr));
   }
 
 }
 
 .cat-child{
   display:flex;
   align-items:flex-start;
   gap:10px;
   font-size:14px;
   cursor:pointer;
 }
 
 .cat-child input[type="checkbox"]{
   width:16px;
   height:16px;
   margin-top:2px;
 }
 
 /* =========================
    Checkbox rows
 ========================= */
 
 .check-row{
   display:flex;
   align-items:flex-start;
   gap:12px;
 }
 
 .check-row input[type="checkbox"]{
   width:18px;
   height:18px;
   margin:2px 0 0;
 }
 
 /* =========================
    Step Navigation Buttons
 ========================= */
 
 .step-nav{
   margin-top:32px;
   display:flex;
   justify-content:space-between;
   gap:12px;
 }
 
 .step-prev{
   padding:12px 20px;
   border-radius:10px;
   border:1px solid #d0d5dd;
   background:#fff;
   cursor:pointer;
   font-weight:600;
 }
 
 .step-prev:hover{
   background:#f5f6f7;
 }
 
 /* =========================
    Primary Button
 ========================= */
 
 .btn-primary{
   width:100%;
   padding:14px 16px;
   background:var(--wp--preset--color--cta);
   color:#fff;
   font-weight:700;
   font-size:15px;
   border:none;
   border-radius:10px;
   cursor:pointer;
 }
 
 .btn-primary:hover{
   background:var(--wp--preset--color--cta-hover);
 }
 
 /* =========================
    Messages
 ========================= */
 
 .resource-success,
 .resource-error{
   margin:18px 0;
   padding:14px 16px;
   border-radius:10px;
 }
 
 .resource-success{
   background:#eaf6ee;
   border:1px solid #c8e6d1;
   color:#2f6b43;
 }
 /* =========================================
    Success layout
 ========================================= */
 
 .resource-success-inner{
   display:flex;
   align-items:center;
   gap:60px;
 }
 
 .resource-success-svg{
   flex:0 0 40%;
   max-width:420px;
 }
 
 .resource-success-svg svg{
   width:100%;
   height:auto;
   display:block;
 }
 
 .resource-success-text{
   flex:1;
 }
 
 
 /* =========================================
    Success animation
 ========================================= */
 
 .success-bg{
   fill:#ecfdf3;
   opacity:0;
   transform-origin:center;
   animation:successPop .4s ease forwards;
 }
 
 .success-ring{
   fill:none;
   stroke:#2f6b43;
   stroke-width:16;
 
   stroke-dasharray:553;
   stroke-dashoffset:553;
 
   opacity:0;
   animation:successRing .8s ease .1s forwards;
 }
 
 .success-tick-modern{
   fill:none;
   stroke:#2f6b43;
   stroke-width:16;
   stroke-linecap:round;
   stroke-linejoin:round;
 
   stroke-dasharray:110;
   stroke-dashoffset:110;
 
   opacity:0;
   animation:successTick .45s ease .75s forwards;
 }
 
 
 /* =========================================
    Animations
 ========================================= */
 
 @keyframes successPop{
   from{
     opacity:0;
     transform:scale(.85);
   }
   to{
     opacity:1;
     transform:scale(1);
   }
 }
 
 @keyframes successRing{
   0%{
     opacity:0;
     stroke-dashoffset:553;
   }
   1%{
     opacity:1;
   }
   100%{
     stroke-dashoffset:0;
     opacity:1;
   }
 }
 
 @keyframes successTick{
   0%{
     opacity:0;
     stroke-dashoffset:110;
   }
   1%{
     opacity:1;
   }
   100%{
     stroke-dashoffset:0;
     opacity:1;
   }
 }
 
 
 /* =========================================
    Mobile layout
 ========================================= */
 
 @media (max-width:768px){
 
   .resource-success-inner{
     flex-direction:column;
     text-align:center;
   }
 
   .resource-success-svg{
     max-width:220px;
     width:100%;
   }
 
 }
 .resource-error{
   background:linear-gradient(180deg,#fff6f5 0%,#fef3f2 100%);
   border:1px solid #fecdca;
   color:#b42318;
   padding:14px 16px;
   border-radius:12px;
   font-size:14px;
   line-height:1.5;
   margin-bottom:18px;
 }
 
 /* =========================
    Field Errors
 ========================= */
 
 .field-error,
 .form-error{
   display:block;
   margin-top:8px;
   padding:10px 12px;
   background:linear-gradient(180deg,#fff7f6 0%,#fef3f2 100%);
   border:1px solid #fecdca;
   border-radius:10px;
   font-size:13px;
   font-weight:500;
   line-height:1.45;
   color:#b42318;
 }
 
 .field-error:empty,
 .form-error:empty{
   display:none;
 }
 
 .is-invalid{
   border-color:#d92d20!important;
   box-shadow:0 0 0 4px rgba(217,45,32,0.10);
 }
 
 /* Error icon */
 
 .field-error::before,
 .form-error::before{
   content:"!";
   display:inline-flex;
   align-items:center;
   justify-content:center;
   width:18px;
   height:18px;
   margin-right:8px;
   border-radius:999px;
   background:#f04438;
   color:#fff;
   font-size:11px;
   font-weight:700;
 }

 @media (max-width: 1200px) {
  .entry-content{
    margin: 0 30px
  }
  .entry-content .wp-block-cover.alignfull {margin: 0 -30px}
  .login-btn {padding: 10px 10px}
  .footer-copyright {padding: 20px}
  .resource-intro .wp-block-columns.is-layout-flex {padding: 0 30px }

}

 @media (max-width: 640px) {
  img.custom-logo {height: 30px}
  .header-container {padding: 20px}
  .footer-copyright {font-size: 0.825rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
  }
  .footer-copyright img.custom-logo {
  height: 20px;
}
 .resource-form::before {display: none} 
 .has-large-font-size {font-size: 1.215rem !important; line-height: 1.4em !important}
}