/*
Theme Name: Invicta health and performance August 2026
Theme URI: http://hanningtondigital.com/invicta
Author: Jack Hannington
Author URI: hannigtondigital.com
Description: Customisable dark theme for Invicta Health and Performance
Version: 1.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: invicta_health_and_performance
*/

:root {
  --bg-color: #101113;
  --body-text-color: #e9eff7;
  --invicta-gold: #DCC88C;
  --invicta-light-grey: #ededed;
  --body-font-size: 1rem;
  --animate-duration: 300ms;
  --nav-border-color: #40474a;
  --card-bg-color: #222222;
  --border-color: #232220;
  --input-border-color: #656565;
  --services-menu-bg: #0f1012;
  --button-text-color: #1a1a1a;
}

* {
  box-sizing: border-box;
}



/*---- FONTS ----*/


/* Inter upright */
@font-face {
  font-family: 'Inter';
  src: url('assets/fonts/inter/Inter-VariableFont_slnt,wght.ttf') format('truetype-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Inter italic — uses the font's slant (slnt) axis for a true oblique
   instead of the browser faux-skewing the upright glyphs. */
@font-face {
  font-family: 'Inter';
  src: url('assets/fonts/inter/Inter-VariableFont_slnt,wght.ttf') format('truetype-variations');
  font-weight: 100 900;
  font-style: oblique 0deg 10deg;
  font-display: swap;
}

/* Manrope ships weight only (no slant/italic axis), so keep it upright. */
@font-face {
  font-family: 'Manrope';
  src: url('assets/fonts/manrope/Manrope-VariableFont_wght.ttf') format('truetype-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 1rem;
  color: var(--body-text-color);
  text-align: left;
  line-height: 1.6;
  /* background-color: var(--bg-color); */

  /* background: linear-gradient(45deg, #101113 0%, #111416 100%); */
  background-image: linear-gradient(to right, #2d2c2c 0%, black 100%);
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;

  min-height: 100vh;
  margin: 0;
}

/*---- Colours ----*/
.invicta-gold {
  color: #DCC88C;
}


/*---- NAV ----*/

.site-header nav {
  width: 100%;
  margin: 0;
  position: fixed;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #40474a;
  background-color: #101113;
  /* Added # to make it a valid hex color */
  transition: background-color 0.3s ease;
  /* Single transition property */
}

/* The alert bar sits fixed above the nav; when present, push the nav down by
   its height (40px). Add the wp-admin bar height on top when logged in. */
body.has-alert-bar .site-header nav {
  top: 32px;
}

body.admin-bar .site-header nav {
  top: 32px;
}

body.admin-bar .alert-bar {
  top: 32px;
}

body.has-alert-bar.admin-bar .site-header nav {
  top: 64px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .site-header nav {
    top: 46px;
  }

  body.admin-bar .alert-bar {
    top: 46px;
  }

  body.has-alert-bar.admin-bar .site-header nav {
    top: 78px;
  }
}

ul.wp-block-list {
  list-style: initial;
  list-style-position: inside;
  margin-bottom: 10px;
  padding-left: 0.5rem;
}

ul.wp-block-list li {
  padding-bottom: 4px;
}

ol.wp-block-list li {
  padding-bottom: 6px;
}

.resource h1 {
  font-size: 50px;
  line-height: 50px;
  margin-top: 42px !important;
}

/* Make navbar transparent only on home page */
.home .site .site-header nav {
  background-color: transparent;
  border-bottom: none;
  box-shadow: none;
}

.home .site .site-header nav.scrolled {
  background: var(--bg-color);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}



.navbar {
  padding: 4px 16px;
}

/* Default style for all pages except home */
body:not(.home) .site-header nav {
  background: var(--bg-color);
  box-shadow: 0px 3px 7px 3px rgb(0 0 0 / 23%);
}

.navbar {
  transition: 0.3s;
  z-index: 1;
  display: flex;
  width: 100%;
  justify-content: space-between;
  padding: 10px 16px;
}

.custom-logo {
  width: 140px;
  height: auto;
  transition: 0.54s ease-in;
}

.menu-container {
  position: fixed;
  top: 0;
  background-color: var(--bg-color);
  width: calc(100%);
  height: 100vh;
  left: 0px;
  display: none;
  box-sizing: border-box;
  overflow-y: auto;
}

.nav-item>button {
  font-size: 14px;
  border: 1px solid var(--invicta-gold);
}

.nav-item {
  flex: 1;
}

#nav-toggle,
.close-menu {
  text-align: right;
}

.nav-toggle {
  width: 50px;
  height: 40px;
  border-radius: 4px;
  display: inline-flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  padding: 7px;
  transition: width 1s ease-in-out;
  position: relative;
}

#showMenu span {
  width: 60%;
  height: 2px;
  background-color: var(--invicta-gold);
}

.close-menu span {
  font-size: 20px;
}

.menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid #626262;
}

.menu,
.sub-menu {
  list-style-type: none;
  padding-inline-start: 0;
  margin-block-start: 0;
  margin-block-end: 0;
}

.menu li {
  border-bottom: 1px solid #626262;
}

.menu li a {
  text-decoration: none;
  width: 100%;
  padding: 15px 15px;
  height: 100%;
  display: block;
  font-weight: 500;
  transition: 0.3s ease-in;
  font-size: 16px;
}

.wp-block-file a {
  font-size: 16px;
}

.wp-block-file {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.wp-block-file *+.wp-block-file__button {
  margin-left: 0px;
  color: black;
  margin-top: 10px;
}

.menu li a:hover {
  color: var(--invicta-gold);
}

.menu-cta {
  display: none;
}

.menu-footer {
  margin: 15px;
}

.menu-footer>.invicta-btn__primary {
  width: 100%;
  display: block;
  text-align: center;
  border-radius: 4px;
}

.menu-item a {
  color: var(--body-text-color);
}

.menu-item-has-children>a>svg {
  margin-left: 5px;
  display: inline-block;
  /* Required for transform */
  transition: transform 0.3s ease;
  /* Animate the transform */
  float: right;
}

.rotate-icon {
  transform: rotate(180deg);
}



/* Alert bar — fixed strip above the main navigation. Supports up to 3 cycling messages. */
.alert-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 32px;
  z-index: 999;
  background-color: var(--invicta-gold);
  color: var(--button-text-color);
  overflow: hidden;
  padding: 0 40px;
}

.alert-bar__track {
  position: relative;
  width: 100%;
  height: 100%;
}

.alert-bar__item {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 13px;
  line-height: 1.2;
  color: var(--button-text-color);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease;
}

.alert-bar__item.is-active {
  opacity: 1;
  visibility: visible;
}

a.alert-bar__item:hover {
  color: var(--button-text-color);
  text-decoration: underline;
}

/* Services menu */

#services-toggle {
  display: none;
}

.services-menu {
  display: flex;
  flex-direction: column;
  padding-inline-start: 0;
  background-color: #0f1012;
  padding: 20px;
  width: 90%;
  border-radius: 4px;
  border: 0.5px solid #575757;
  /* box-shadow: 0 0 4px 0 rgb(0 0 0 / 23%); */
  position: sticky;
  top: 110px;
}

@media (max-width:1000px) {
  .services-menu {
    width: 100%;
    border-color: #f9f9f9;
  }
}

.services-menu .current-menu-item a {
  color: var(--invicta-gold);
  font-weight: 500;
}


.menu-services-container {
  height: 100%;
}

.services-menu>li {
  list-style-type: none;
  padding-inline-start: 0;
  margin-block-start: 0;
  margin-block-end: 0;
  padding: 4px 0px;
  color: inherit !important;
}

;

.services-menu a {
  text-decoration: none;
  color: #051F29;
  width: 100%;
  padding: 10px 0px;
}

@media (max-width:1000px) {
  .services-menu {
    display: none;
  }

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

  #services-toggle {
    display: block;
  }

  .menu-services-container {
    height: auto;
  }
}


/* Hide sub-menu by default */
.sub-menu {
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s ease;
  display: none;
  flex-direction: column;
}

/* Show sub-menu on hover */
.menu-item-has-children:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  display: flex;
  flex-direction: column;
}

.sub-menu>li {
  border-bottom: none;
}

.show {
  display: flex;
  flex-direction: column;
}

.hide-sm {
  display: none;
}

/* Mobile sub-menu — nested cards inside the full-screen drawer */
@media (max-width:999px) {

  /* Hide the broken JS-inserted iconify span (web-component lib doesn't render it) */
  .menu-item-has-children>a>.iconify {
    display: none;
  }

  /* Pure-CSS chevron so parent items read as expandable */
  .menu-item-has-children>a {
    position: relative;
    padding-right: 46px;
  }

  .menu-item-has-children>a::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 20px;
    width: 9px;
    height: 9px;
    border-right: 2px solid var(--invicta-gold);
    border-bottom: 2px solid var(--invicta-gold);
    transform: translateY(-70%) rotate(45deg);
    transition: transform 0.3s ease;
    pointer-events: none;
  }

  /* Flip the chevron when the sub-menu is open (JS toggles inline display:block) */
  .menu-item-has-children:has(> .sub-menu[style*="block"])>a::after {
    transform: translateY(-30%) rotate(225deg);
  }

  .menu-item-has-children>.sub-menu {
    margin: 4px 12px 12px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--nav-border-color);
    border-radius: 12px;
    overflow: hidden;
  }

  .sub-menu>li {
    border-bottom: none !important;
  }

  .menu .sub-menu li a {
    padding: 13px 16px;
    border-radius: 9px;
    font-size: 15px;
    transition: background-color 0.2s ease, color 0.2s ease;
  }

  .menu .sub-menu li a:active,
  .menu .sub-menu li a:hover {
    background-color: rgba(220, 200, 140, 0.12);
    color: var(--invicta-gold);
  }

  .menu .sub-menu .current-menu-item>a {
    color: var(--invicta-gold);
  }
}


@media (min-width:1000px) {
  .navbar {
    align-items: center;
  }

  .nav-item {
    display: flex;
    flex: 1;
  }

  .menu-cta {
    text-align: right;
    display: inline-block;
  }

  .menu-container {
    display: flex;
    position: relative;
    border: none;
    height: auto;
    flex: 5;
    padding: 0;
    background-color: inherit;
  }

  .menu-body {
    width: 100%;
  }

  .menu-body ul {
    display: flex;
    flex-direction: row;
    white-space: nowrap;
    justify-content: center;
    font-weight: 300;
  }

  .menu-body li {
    border-bottom: none;
  }

  .menu li a {
    color: #F6F5F5;
    padding: 10px 15px;
    font-size: 15px;
    font-weight: 500;
  }

  .menu-toggle,
  #closeMenu,
  .mobile-menu-logo,
  .menu-header,
  .menu-number,
  .menu-footer {
    display: none;
  }

  .menu-item-has-children>.sub-menu {
    position: fixed;
    display: flex;
    flex-direction: column;
  }

  .menu-item-has-children>a>svg {
    float: none;
  }


  /* Glass dropdown — frosted, gold-tinted, matches the elements/ design language */
  .sub-menu {
    min-width: 230px;
    margin-top: 10px;
    padding: 8px;
    background: rgba(20, 21, 24, 0.72);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    backdrop-filter: blur(18px) saturate(150%);
    border: 1px solid rgba(220, 200, 140, 0.18);
    border-radius: 14px;
    box-shadow:
      0 18px 50px rgba(0, 0, 0, 0.5),
      0 2px 8px rgba(0, 0, 0, 0.35),
      inset 0 1px 0 rgba(255, 255, 255, 0.05);
  }

  /* Invisible hover bridge so the gap above the menu doesn't drop the hover */
  .menu-item-has-children>.sub-menu::before {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    height: 12px;
  }

  .sub-menu>li {
    border-bottom: none;
  }

  .menu .sub-menu li a {
    padding: 11px 14px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 500;
    color: var(--body-text-color);
    transition: background-color 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
  }

  .menu .sub-menu li a:hover {
    background-color: rgba(220, 200, 140, 0.12);
    color: var(--invicta-gold);
    padding-left: 18px;
  }

  .menu .sub-menu .current-menu-item>a {
    color: var(--invicta-gold);
    background-color: rgba(220, 200, 140, 0.08);
  }

  /* Show sub-menu on hover with a soft fade + rise */
  .menu-item-has-children:hover>.sub-menu {
    opacity: 1;
    visibility: visible;
    animation: subMenuIn 0.22s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  @keyframes subMenuIn {
    from {
      opacity: 0;
      transform: translateY(8px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Rotate the chevron when the menu item is hovered */
  .menu-item-has-children:hover>a>svg {
    transform: rotate(180deg);
  }

  .hide-sm {
    display: block;
  }
}




/* Logged-in User Admin Menu Menu */

.admin-margin {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-margin {
    top: 46px;
  }
}


/*---- LAYOUT ----*/

/* Center default container */

.header {
  padding: 40px 0px 20px 0px;
}

.row {
  --bs-gutter-x: 0;
}

.container {
  margin: auto;
  max-width: 1200px;
}

@media (max-width:1000px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }
}

:where(.is-layout-flex) {
  gap: 0.3em;
}

.site-content {
  margin-top: 70px;
  padding-left: 0px;
  padding-right: 0px;
}

/* Extra room for the fixed alert bar above the nav. */
body.has-alert-bar .site-content {
  margin-top: 102px;
}

/* Default gap between column container */
:where(.wp-block-columns.is-layout-flex) {
  gap: 4em;
}

iframe {
  max-width: 100%;
}

/* Limit written content width  - useful for long text headings */

.max-450 {
  max-width: 450px;
}

.max-650 {
  max-width: 650px;
}

.max-750 {
  max-width: 750px;
}


.max-height-500 {
  max-height: 500px !important;
}

/*--- HEADINGS ----*/

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  color: #F6F5F5;
  padding-top: 10px;
  padding-bottom: 10px;
}

/* .wp-block-heading {
    max-width: 780px;
  } */

h1 {
  font-size: 32px;
  line-height: 40px;
}

@media (min-width : 1200px) {
  h1 {
    font-size: 60px;
    line-height: 60px;
  }
}

body .wp-block-heading {
  margin-bottom: 10px;
}

.has-text-align-center {
  margin: auto;
}


/* Paragrahs, strong, a*/
strong {
  font-weight: 500;
}

/* Borders */

.rounded {
  border-radius: 4px;
}

/* Text preceding a section's heading */

.brow-text {
  color: var(--invicta-gold) !important;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: -4px !important;
  text-transform: uppercase;
  letter-spacing: 2px;
}



/* Override Wordpress defaults */


/* Covers */

.wp-block-cover {
  padding: 0px;
}

/* Buttons and links */

a {
  text-decoration: none;
  color: var(--invicta-gold);
  transition: all 0.3s ease;
}



a:hover {
  color: var(--invicta-gold);
}

.wp-block-buttons {
  gap: 10px;
}

.wp-block-button__link,
.wp-element-button,
button,
.btn {
  background-color: var(--invicta-gold);
  color: var(--bg-color);
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: 0.3s;
}

.wp-block-button .wp-block-button__link.is-style-outline,
.wp-block-button.is-style-outline>.wp-block-button__link {
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 600;
  background-color: #F6F5F5;
  border: 1px solid #e3e3e3;
  border-radius: 6px;
  color: var(--bg-color);
}

.wp-block-button.invicta-btn__primary .wp-block-button__link {
  background-color: var(--invicta-gold);
  color: var(--bg-color);
  border-radius: 6px;
  font-weight: 600;
}

.wp-block-button.invcita-btn__secondary .wp-block-button__link {
  background-color: #F6F5F5;
  color: #051F29;
  border-radius: 6px;
  font-weight: 600;
}

/* Buttons and links */

.invicta-btn__primary {
  background-color: var(--invicta-gold);
  color: var(--bg-color);
}

#nav-cta>button>a {
  font-size: 13px;

}

#nav-cta>button {
  padding: 6px 0px;
}


.invicta-btn__primary>a {
  color: var(--bg-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 8px 16px;
}

.wp-block-button__link:hover {
  color: white;
  opacity: 0.7;
}

.invicta-btn__secondary {
  background-color: #fff;
  border-radius: 0px;
  color: #051F29;
  border: 1px solid #051F29;
}


.tally-app>* {
  color: white !important;
}

button[type="submit"] {
  background: var(--invicta-gold) !important;
}


/* Images */

img {
  max-width: 100%;
}

figure {
  margin: 0 0 0.5rem;
}

/* Cards */

.services-cards>.wp-block-column>.wp-block-cover {
  padding: 10px;
  transition: 1s;
  border: 1px solid transparent;
  box-shadow: 0px 3px 7px 3px rgb(0 0 0 / 23%);
}

.services-cards>.wp-block-column>.wp-block-cover:hover {
  border: 1px solid var(--invicta-gold);
  cursor: pointer;
}

.services-cards>.wp-block-column>.wp-block-cover>.wp-block-cover__inner-container>p {
  position: relative;
  display: inline-block;
  /* To keep the arrow on the same line */
}

.service-card-link {
  color: white !important;
}

.services-cards>.wp-block-column>.wp-block-cover>.wp-block-cover__inner-container>p::after {
  content: "\2192";
  position: relative;
  left: 10px;
  /* Distance from the text */
  transition: 1s;
  color: var(--body-text-color);
}

.services-cards>.wp-block-column>.wp-block-cover:hover>.wp-block-cover__inner-container>p {
  color: var(--invicta-gold);
}

.services-cards>.wp-block-column>.wp-block-cover:hover>.wp-block-cover__inner-container>p::after {
  color: var(--invicta-gold);
  left: 15px;
  /* Move it 5px to the right on hover */
}


.services-cards {
  gap: 10px;
}

.services-cards>.wp-block-column>.wp-block-cover>img {
  border-radius: 4px;
}

.card {
  border-radius: 4px;
  padding: 14px;
  transition: 0.3s ease-in;
  min-width: 250px;
  font-size: 0.9rem;
  background: #222222;
  color: var(--body-text-color);
}

.review-card {
  font-size: 14px;
  background-color: #222;
  color: white;
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.2);
}

.reviews-card-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-right: 0px;
  margin-bottom: 16px;
}

@media (min-width: 996px) {
  .reviews-card-container {
    margin-right: 16px;
    margin-bottom: 0px;
  }
}





.blog-page-card {
  padding: 10px;
  color: white;
  height: 100%;
}

.invicta-news-card {
  background: #1c1d1d;
  box-shadow: 0 0 2px grey;
}

.card a {
  text-decoration: none;
  color: inherit;
}

.wp-block-media-text>.wp-block-media-text__content {
  padding: 0px 0px;
}

.wp-block-media-text.is-image-fill-element>.wp-block-media-text__media img {
  border-radius: 6px;
}

@media (min-width: 996px) {
  .wp-block-media-text>.wp-block-media-text__content {
    padding: 16px 16px;

  }
}

@media screen and (max-width:500px) {
  .wp-block-columns>.card {
    font-size: 0.8rem;
    min-width: auto;
  }

  .wp-block-columns {
    justify-content: space-between;
    gap: 10px !important;
    margin-bottom: 10px;
  }
}

@media screen and (max-width:410px) {
  .wp-block-columns>.card {
    min-width: 100%;
    max-width: 100%;
  }

  .wp-block-columns {
    justify-content: space-between;
  }
}

.invicta-news-card:hover,
.resource-card:hover {
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--invicta-gold);
  cursor: pointer;
}


/* Forms */

label {
  margin-bottom: 4px;
}

input,
textarea {
  font-family: inherit;
  padding: 10px;
  border-radius: 4px;
  border: 1px solid #656565;
  width: 100%;
  margin-bottom: 10px;
}

/* Features bar */
.features-bar {
  width: 100%;
  flex-wrap: wrap;
  display: flex;
}

.feature {
  display: inline-flex;
  align-items: center;
  flex: 1;
  justify-content: center;
  font-family: 'Manrope', 'Inter', 'Sans-serif';
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.feature:nth-last-of-type(1) {
  border: none;
}

.feature-count {
  font-size: 2.4rem;
  font-weight: 600;
}

.feature-caption {
  margin-left: 10px;
  font-size: 0.9rem;
  line-height: 1rem;
  font-weight: 500;
}

@media only screen and (max-width: 700px) {
  .feature {
    padding: 10px;
    min-width: 40%;
    border: none;
    display: flex;
  }

  .feature-caption {
    font-size: 0.8rem;
  }

  .feature-count {
    font-size: 1.8rem;
  }
}

@media only screen and (max-width: 300px) {
  .feature {
    padding: 10px;
    min-width: 100%;
    border: none;
  }
}


/* Autoscrolling slider */

.hide-lg {
  display: none;
}

@media (max-width: 450px) {
  .hide-lg {
    display: block;
  }
}

/* Autoscrolling slider */
.logo-slider {
  --image-size: 1400px;
  padding: 20px;
  overflow: hidden;
  width: 100%;
  margin: 0 auto;
  position: relative;
  display: flex;
}

.logo-slider:hover div {
  animation-play-state: paused;
}

.logo-slider div {
  display: flex;
  position: relative;
  animation: marquee 35s linear infinite;
  justify-content: space-around;
}

.logo-slider img {
  display: block;
  min-width: var(--image-size);
  height: auto;
  margin: 0 1vw;
}

.logo-slider:after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  /* background: linear-gradient(to right, #101113, rgba(255, 255, 255, 0) 30px, rgba(255, 255, 255, 0) calc(100% - 30px), #101113); */
}

@media (max-width: 900px) {
  logo-slider {
    --image-size: 1400px;
    --image-size: min(max(50px, 10vw), 100px);
  }
}

@keyframes marquee {
  0% {
    transform: translateX(0%);
  }

  100% {
    transform: translateX(-100%);
  }
}

/* Hero section */
@media (max-width:768px) {
  .hero-btn-container>a {
    font-size: 14px;
  }
}

/* Meta slider */
.flex-active {
  background-color: var(--invicta-gold) !important;
}

/* Recent posts */

.related-articles {
  border-top: 1px solid #232220;
}

.recent-posts {
  display: flex;
  overflow: auto;
  flex-wrap: nowrap;
}



.recent-post {
  /* min-width: 250px; */
  max-width: 85%;
  padding: 4px;
  display: flex;
  flex-direction: column;
}

.article-title {
  line-height: 30px;
  font-size: 30px;
}

@media only screen and (max-width: 1000px) {
  .recent-posts {
    gap: 15px;
  }

  .recent-post {
    padding: 0px;
  }

  .article-title {
    line-height: 30px;
    font-size: 30px;
  }
}

.recent-posts-title {
  font-size: 20px;
  font-weight: 600;
}

/* Global custom scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--invicta-gold) black;
}

*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

*::-webkit-scrollbar-track {
  background: black;
  border-radius: 4px;
}

*::-webkit-scrollbar-thumb {
  background-color: var(--invicta-gold);
  border-radius: 4px;
}

*::-webkit-scrollbar-thumb:hover {
  background-color: var(--invicta-gold);
  opacity: 0.8;
}

.post-image {
  width: 100%;
  height: 0;
  /* This is important, as it allows the padding-top to determine the height */
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--body-text-color);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: all 0.25s ease;
}

a.page-numbers:hover {
  color: var(--invicta-gold);
  border-color: rgba(220, 200, 140, 0.5);
  background: rgba(255, 255, 255, 0.09);
}

.page-numbers.current {
  color: var(--invicta-gold);
  background: rgba(220, 200, 140, 0.12);
  border-color: rgba(220, 200, 140, 0.55);
}

.page-numbers.dots {
  background: transparent;
  border-color: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}


/* Content pages */

.services-page h2,
.article-container h2 {
  font-size: 26px;
  margin-top: 30px;
}

/* Blog - articles */

@media (min-width:768px) {
  .blog-page-card {
    padding-left: 6px;
    padding-right: 6px;
  }
}


.article-container {
  max-width: 800px;
}

.page-title {
  position: relative;
  overflow: hidden;
  color: white;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.page-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  z-index: 1;
  /* Ensure the header content is above the image */
  position: relative;
  /* Needed for z-index to take effect */
}

.background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -1;
}


.article-meta-info {
  font-size: 14px;
}


ul {
  list-style: none;
  padding-inline-start: 0;
  padding-inline-end: 0;
  padding: 0;
  padding-left: 0;
  margin: 0;
}

ul.ticks {
  list-style-type: none;
  /* Removes the default bullets */
}

ul.ticks li::before {
  content: '\f058';
  font-family: "Font Awesome 5 Free";
  display: inline-block;
  margin-right: 10px;
  color: var(--invicta-gold);
}

ul.ticks li {
  padding-top: 6px;
}

/* Scroll */
.scroll-container {
  overflow: auto !important;
  flex-wrap: nowrap;
  justify-content: flex-start;
  display: flex;
  flex-direction: row;
}

.scroll-card {
  min-width: 240px;
}

/* Tabs */
.pill-switch {
  background: #e9ecef;
  border-radius: 50px;
  padding: 4px;
  position: relative;
  width: 300px;
  height: 50px;
  margin: 20px auto;
}

.pill-switch .nav-pills {
  position: relative;
  display: flex;
  padding: 0;
  margin: 0;
  list-style: none;
  width: 100%;
  height: 100%;
}

.pill-switch .nav-item {
  flex: 1;
  z-index: 2;
}

.pill-switch .nav-link {
  border-radius: 50px !important;
  width: 100%;
  height: 42px;
  line-height: 42px;
  padding: 0 !important;
  text-align: center;
  transition: color 0.3s ease;
  color: #495057;
  border: none !important;
  background: transparent !important;
}

.pill-switch .nav-link.active {
  color: var(--bg-color) !important;
}

.nav-pills::before {
  content: '';
  position: absolute;
  width: 146px;
  height: 42px;
  background: none;
  border-radius: 50px;
  transition: transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
  z-index: 1;
}

.nav-pills .nav-link.active~.nav-link.active+.nav-item .nav-link.active~.nav-pills::before {
  transform: translateX(146px);
}

#holmeschapel-tab.active~.nav-pills::before {
  transform: translateX(146px);
}

.tab-content {
  margin-top: 30px;
  transition: opacity 0.3s ease;
}

.tab-pane {
  transition: opacity 0.3s ease;
}

.tab-pane.fade {
  opacity: 0;
}

.tab-pane.show {
  opacity: 1;
}

/* Tables */



.wp-block-table thead {
  background: var(--invicta-gold);
  border-bottom: 0px;
}

.wp-block-table th {
  color: black;
  border: 1px solid white;
}


/* Footers */

#contact-form {
  border-top: 1px solid #232220 !important;
  margin-top: 100px;
  padding-bottom: 60px;
  margin-left: auto;
  margin-right: auto;
}

/* Contact section: side-by-side on desktop, stacked on mobile */
.contact-flex {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}

.contact-flex__col {
  flex: 1 1 0;
  min-width: 0;
}

@media (max-width: 900px) {
  .contact-flex {
    flex-direction: column;
    gap: 32px;
  }
}

.border-top {
  border-top: 1px solid #232220 !important;
}

footer {
  border-top: 1px solid #232220;
}

.contact-options .contact-item {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 10px;
}

.footer-menu li {
  list-style-type: none;
  padding-inline-start: 0;
  padding-inline-end: 0;
  padding: 0;
  margin: 0;
  margin-bottom: 1rem;
}

.footer-links {
  font-weight: 300;
}

footer .custom-logo {
  width: 200px;
  margin-bottom: 20px;
}

.footer-header {
  font-weight: 400;
  color: white;
}


/*---- BLOG INDEX / ARCHIVE ----*/

.blog-archive {
  padding-top: 56px;
  margin-bottom: 60px;
}

@media (max-width: 768px) {
  .blog-archive {
    padding-top: 32px;
  }
}

/* Back to all articles link (shown on category / tag / search pages) */
.blog-back-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--body-text-color);
  opacity: 0.55;
  transition: opacity 0.2s ease, gap 0.2s ease, color 0.2s ease;
}

.blog-back-link iconify-icon {
  font-size: 14px;
}

.blog-back-link:hover {
  color: var(--invicta-gold);
  opacity: 1;
  gap: 9px;
}

.blog-archive .subtitle {
  color: var(--invicta-gold);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0 0 8px;
  display: block;
}

/* Header eyebrow sits above a big title, so keep it understated. */
.blog-archive-heading .subtitle {
  font-size: 11px;
  letter-spacing: 1.4px;
  opacity: 0.85;
  margin: 0 0 6px;
}

/* The dropdown trigger is mobile-only. */
.blog-cat-toggle,
.blog-cat-current {
  display: none;
}

/* Header: heading + search */
.blog-archive-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 28px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--nav-border-color);
}

.blog-archive-header h1 {
  margin: 0;
  padding: 0;
  font-size: 40px;
  line-height: 1.1;
}

.blog-archive-intro {
  margin: 12px 0 0;
  max-width: 520px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--body-text-color);
  opacity: 0.85;
}

/* Glassy search bar */
.blog-search {
  position: relative;
  flex-shrink: 0;
  width: 320px;
  max-width: 100%;
  margin: 0;
}

.blog-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: rgba(255, 255, 255, 0.55);
  pointer-events: none;
  z-index: 1;
}

.blog-search-input {
  width: 100%;
  margin: 0;
  padding: 13px 92px 13px 44px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 15px;
  transition: all 0.25s ease;
}

.blog-search-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
  font-weight: 300;
}

.blog-search-input:focus {
  outline: none;
  border-color: rgba(220, 200, 140, 0.6);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(220, 200, 140, 0.12);
}

.blog-search-submit {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  background: var(--invicta-gold);
  color: var(--button-text-color);
  border: none;
  cursor: pointer;
}

/* Two-column layout */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  align-items: start;
}

/* min-width:0 stops these grid children from being forced wider than the
     viewport by their content (e.g. the no-wrap mobile category row). */
.blog-main,
.blog-sidebar {
  min-width: 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

/* Cards */
.blog-card {
  background: var(--card-bg-color);
  border: 1px solid var(--nav-border-color);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-3px);
  border-color: var(--invicta-gold);
}

.blog-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.blog-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #1a1a1a;
}

.blog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-media img {
  transform: scale(1.04);
}

.blog-card-media--empty {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #2a2725 0%, #1a1a1a 60%, #0f0f0f 100%);
}

.blog-card-cat {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(16, 17, 19, 0.7);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--invicta-gold);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
  border: 1px solid rgba(220, 200, 140, 0.3);
}

.blog-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px;
}

.blog-card-title {
  margin: 0 0 8px;
  padding: 0;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--body-text-color);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.blog-card:hover .blog-card-title {
  color: var(--invicta-gold);
}

.blog-card-excerpt {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--body-text-color);
  opacity: 0.8;
}

.blog-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.blog-tag {
  background: rgba(220, 200, 140, 0.1);
  color: var(--invicta-gold);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 100px;
  letter-spacing: 0.3px;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--nav-border-color);
  font-size: 13px;
}

.blog-card-author {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-weight: 500;
  color: var(--body-text-color);
}

.blog-card-author-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  min-width: 0;
}

.blog-card-author-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.blog-card-author-role {
  font-size: 11px;
  font-weight: 400;
  opacity: 0.6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.blog-card-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
}

.blog-card-date {
  color: var(--body-text-color);
  opacity: 0.6;
  white-space: nowrap;
}

/* Sidebar */
.blog-sidebar-inner {
  position: sticky;
  top: 100px;
  background: var(--card-bg-color);
  border: 1px solid var(--nav-border-color);
  border-radius: 14px;
  padding: 22px;
}

.blog-cat-list {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.blog-cat-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--body-text-color);
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.blog-cat-link:hover {
  color: var(--invicta-gold);
  background: rgba(255, 255, 255, 0.04);
}

.blog-cat-link.is-active {
  color: var(--invicta-gold);
  background: rgba(220, 200, 140, 0.1);
  border-color: rgba(220, 200, 140, 0.35);
}

.blog-cat-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--body-text-color);
  opacity: 0.5;
}

.blog-cat-link.is-active .blog-cat-count {
  color: var(--invicta-gold);
  opacity: 0.9;
}

/* Pagination spacing within the listing */
.blog-pagination {
  margin-top: 40px;
  justify-content: center;
}

/* Empty state */
.blog-empty {
  text-align: center;
  padding: 60px 20px;
  background: var(--card-bg-color);
  border: 1px solid var(--nav-border-color);
  border-radius: 14px;
}

.blog-empty p {
  margin: 0 0 18px;
  opacity: 0.8;
}

/* Responsive */
@media (max-width: 992px) {
  .blog-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .blog-sidebar {
    order: -1;
  }

  .blog-sidebar-inner {
    position: static;
    background: none;
    border: none;
    border-radius: 0;
    padding: 0;
  }

  /* Collapsed dropdown trigger showing the current filter. */
  .blog-cat-current {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    font-size: 15px;
    font-weight: 600;
    color: var(--body-text-color);
    cursor: pointer;
  }

  .blog-cat-chevron {
    font-size: 18px;
    color: var(--invicta-gold);
    transition: transform 0.25s ease;
  }

  .blog-cat-toggle:checked~.blog-cat-current {
    border-color: rgba(220, 200, 140, 0.5);
  }

  .blog-cat-toggle:checked~.blog-cat-current .blog-cat-chevron {
    transform: rotate(180deg);
  }

  /* Collapsed list, expands when the trigger is checked. */
  .blog-cat-list {
    flex-direction: column;
    gap: 2px;
    margin-top: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.2s ease, margin-top 0.3s ease, padding 0.3s ease;
  }

  .blog-cat-toggle:checked~.blog-cat-list {
    max-height: 65vh;
    overflow-y: auto;
    opacity: 1;
    margin-top: 8px;
    padding: 6px;
    border: 1px solid var(--nav-border-color);
    border-radius: 12px;
    background: var(--card-bg-color);
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 768px) {
  .blog-archive-header {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }

  .blog-archive-header h1 {
    font-size: 30px;
  }

  .blog-search {
    width: 100%;
  }

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

/*---- SINGLE POST ----*/

.single-post {
  padding-top: 40px;
  padding-bottom: 70px;
}

/* Breadcrumb */
.post-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: var(--text-dim, #7a7a7a);
  margin-bottom: 22px;
}

.post-crumb a {
  color: var(--body-text-color);
  opacity: 0.6;
}

.post-crumb a:hover {
  color: var(--invicta-gold);
  opacity: 1;
}

.post-crumb .sep {
  opacity: 0.4;
  font-size: 12px;
}

.post-crumb .current {
  color: var(--body-text-color);
  opacity: 0.85;
}

/* Layout */
.post-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}

.post-article {
  min-width: 0;
}

/* Hero */
.post-hero {
  margin: 0 0 30px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--nav-border-color);
}

.post-hero img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  max-height: 460px;
}

/* On mobile, crop the hero to a square and cap its height so the article
   isn't fronted by a huge image. max-height overrides the aspect-ratio
   height, so this shortens the image even behind any conflicting rule. */
@media (max-width: 782px) {
  .post-hero img {
    aspect-ratio: 1 / 1;
    max-height: 220px;
    object-fit: cover;
  }
}

.post-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--invicta-gold);
  margin-bottom: 12px;
}

/* Headline — deliberately not heavy (matches site h1 weight). */
.post-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 22px;
  padding: 0;
}

/* Meta strip */
.post-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--nav-border-color);
  border-bottom: 1px solid var(--nav-border-color);
  margin-bottom: 34px;
}

.post-byline {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.post-byline .blog-card-avatar {
  width: 44px;
  height: 44px;
}

.post-byline-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  min-width: 0;
}

.post-byline-name {
  font-weight: 600;
  font-size: 15px;
}

.post-byline-role {
  font-size: 12.5px;
  opacity: 0.65;
}

.post-date {
  font-size: 13.5px;
  opacity: 0.7;
}

/* Article body */
.post-body {
  max-width: 760px;
}

.post-body>p {
  margin-bottom: 22px;
}

.post-body h2 {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 42px 0 16px;
  padding: 0;
}

.post-body h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 32px 0 12px;
  padding: 0;
}

.post-body ul,
.post-body ol {
  margin: 0 0 24px;
  padding-left: 22px;
}

.post-body ul {
  list-style: none;
  padding-left: 0;
}

.post-body ul li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
}

.post-body ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--invicta-gold);
}

.post-body img {
  border-radius: 10px;
}

/* Clean, non-italic blockquote (replaces the old pullquote treatment) */
.post-body blockquote,
.post-body .wp-block-quote {
  position: relative;
  margin: 34px 0;
  padding: 26px 28px 22px 30px;
  background: var(--card-bg-color);
  border: 1px solid var(--nav-border-color);
  border-radius: 12px;
  font-style: normal;
}

.post-body blockquote::before,
.post-body .wp-block-quote::before {
  content: "\201C";
  position: absolute;
  top: 6px;
  left: 18px;
  font-family: Georgia, serif;
  font-size: 46px;
  line-height: 1;
  color: var(--invicta-gold);
  opacity: 0.5;
}

.post-body blockquote p,
.post-body .wp-block-quote p {
  font-size: 18px;
  line-height: 1.55;
  margin: 0 0 6px;
  color: #f0f0f0;
}

/* Keep the testimonial quote upright even if typed as italic in the editor. */
.post-body blockquote,
.post-body blockquote em,
.post-body blockquote i,
.post-body .wp-block-quote,
.post-body .wp-block-quote em,
.post-body .wp-block-quote i {
  font-style: normal;
}

.post-body blockquote cite,
.post-body .wp-block-quote cite {
  font-size: 13px;
  font-style: normal;
  color: var(--invicta-gold);
  font-weight: 600;
}

/* Author bio card */
.author-card {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  margin-top: 50px;
  padding: 30px;
  background: var(--card-bg-color);
  border: 1px solid var(--nav-border-color);
  border-radius: 14px;
}

.author-card .blog-card-avatar {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
}

.author-card-text {
  min-width: 0;
}

.author-card-label {
  display: block;
  font-size: 11px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--invicta-gold);
  font-weight: 600;
  margin-bottom: 6px;
}

.author-card-name {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 4px;
  padding: 0;
}

.author-card-role {
  font-size: 13px;
  opacity: 0.7;
  margin: 0 0 12px;
}

.author-card-bio {
  font-size: 14.5px;
  line-height: 1.6;
  opacity: 0.85;
  margin: 0 0 16px;
}

.author-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.author-card-btn {
  font-size: 13px;
  font-weight: 600;
  color: var(--body-text-color);
  border: 1px solid var(--nav-border-color);
  padding: 9px 16px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.author-card-btn:hover {
  border-color: var(--invicta-gold);
  color: var(--invicta-gold);
}

.author-card-btn--gold {
  background: var(--invicta-gold);
  color: var(--button-text-color);
  border-color: var(--invicta-gold);
}

.author-card-btn--gold:hover {
  color: var(--button-text-color);
  opacity: 0.88;
}

/* Sidebar */
.post-sidebar {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
}

.post-cta-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #2c2c2c, #1d1d1d);
  border: 1px solid var(--nav-border-color);
  border-radius: 14px;
  padding: 28px 26px;
}

.post-cta-card::after {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(220, 200, 140, 0.22), transparent 70%);
  pointer-events: none;
}

.post-cta-tag {
  font-size: 11px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--invicta-gold);
  font-weight: 600;
}

.post-cta-title {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 12px;
  padding: 0;
}

.post-cta-text {
  font-size: 14px;
  opacity: 0.75;
  margin: 0 0 20px;
}

.post-cta-btn {
  display: block;
  text-align: center;
  background: var(--invicta-gold);
  color: var(--button-text-color);
  font-weight: 700;
  font-size: 15px;
  padding: 14px;
  border-radius: 9px;
  transition: all 0.2s ease;
}

.post-cta-btn:hover {
  color: var(--button-text-color);
  transform: translateY(-2px);
  opacity: 0.92;
}

.post-cta-btn--secondary {
  margin-top: 10px;
  background: transparent;
  color: var(--body-text-color);
  border: 1px solid var(--nav-border-color);
  font-weight: 600;
}

.post-cta-btn--secondary:hover {
  color: var(--invicta-gold);
  border-color: rgba(220, 200, 140, 0.5);
  background: rgba(255, 255, 255, 0.04);
  transform: none;
  opacity: 1;
}

.post-cta-points {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.post-cta-points div {
  font-size: 13.5px;
  opacity: 0.9;
  display: flex;
  gap: 10px;
  align-items: center;
}

.post-cta-points .tick {
  color: var(--invicta-gold);
  font-weight: 800;
}

.post-info-card {
  background: var(--card-bg-color);
  border: 1px solid var(--nav-border-color);
  border-radius: 14px;
  padding: 24px;
}

.post-info-card h3 {
  font-size: 13px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  opacity: 0.7;
  font-weight: 600;
  margin: 0 0 16px;
  padding: 0;
}

.post-clinic {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.post-clinic:last-child {
  margin-bottom: 0;
}

.post-clinic:hover .post-clinic-name {
  color: var(--invicta-gold);
}

.post-clinic .pin {
  color: var(--invicta-gold);
  font-size: 17px;
  line-height: 1.3;
  flex-shrink: 0;
  margin-top: 1px;
}

.post-clinic-name {
  font-weight: 600;
  font-size: 15px;
}

.post-clinic-sub {
  font-size: 13px;
  opacity: 0.65;
}

.post-info-link {
  display: inline-block;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--nav-border-color);
  width: 100%;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--invicta-gold);
}

.post-info-link:hover {
  opacity: 0.8;
}

/* Related articles */
.post-related {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--nav-border-color);
}

.post-related-heading {
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 24px;
  padding: 0;
}

.post-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

@media (max-width: 920px) {
  .post-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .post-sidebar {
    position: static;
    order: 2;
  }

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

@media (max-width: 600px) {
  .author-card {
    flex-direction: column;
    gap: 16px;
    padding: 24px;
  }

  .post-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .post-related-grid {
    grid-template-columns: 1fr;
  }
}


/* Sticky mobile booking bar (single posts) */
.post-book-bar {
  display: none;
}

@media (max-width: 920px) {
  .post-book-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 900;
    padding: 10px 14px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
    background: rgba(20, 20, 20, 0.92);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--nav-border-color);
  }

  .post-book-bar-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 11px 10px;
    border-radius: 9px;
    background: var(--invicta-gold);
    color: var(--button-text-color);
    font-weight: 600;
    font-size: 13.5px;
    border: 1px solid var(--invicta-gold);
  }

  .post-book-bar-btn--secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--body-text-color);
    border-color: var(--nav-border-color);
  }

  /* Room so the fixed bar never sits over the footer's last line. */
  body.single {
    padding-bottom: 72px;
  }
}

/*---- RESOURCES (What Hurts) ----*/

/* Search used as a client-side filter has no submit button. */
.blog-search--filter .blog-search-input {
  padding-right: 16px;
}

/* "Read the guide" link at the foot of a resource card. */
.blog-card-readmore {
  margin-top: auto;
  padding-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--invicta-gold);
  transition: gap 0.2s ease;
}

.blog-card:hover .blog-card-readmore {
  gap: 9px;
}

/* The "Guide" badge carries a small icon. */
.blog-card-cat iconify-icon {
  font-size: 12px;
  vertical-align: -1px;
  margin-right: 2px;
}