/*--------------------------------------------------------------*/

/*	Social Icons
/*--------------------------------------------------------------*/

.header-top .widget .social-icons {
  padding-top: 2px;
}

.social-icons {
  margin: 0px;
  padding: 0;
  font-size: 0;
}

.social-icons li {
  transition: all 500ms ease;
  display: inline-block;
}

.header-top .social-icons li:hover {
  background-color: var(--thm-black);
}

.header-top .social-icons li:hover a {
  color: var(--thm-light);
}

.header-top .header_btn a:hover {
  background-color: var(--thm-primary);
  color: var(--thm-light);
}

.social-icons a {
  transition: all 500ms ease;
  display: inline-block;
  position: relative;
  margin-right: 0;
  width: 40px;
  height: 50px;
  font-size: 16px;
  line-height: 52px;
  text-align: center;
  text-decoration: none;
  color: aliceblue;
}

.social-icons a:hover,
.social-icons a:focus {
  text-decoration: none;
}

.navbar-brand {
  font-family: inherit;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: inherit;
  border: none;
  color: #e91e63;
  text-transform: var(--thm-text-transform);
  text-rendering: optimizeLegibility;
}

.header {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: auto;
  z-index: 999;
  border: none;
}

/* Header Overlap Disable Feature */
.header.menu-overlap-disabled {
  position: relative !important;
  background: var(--thm-black);
}

.admin-bar #site-header.menu-overlap-disabled {
  top: 0;
}

/* Adjust absolute header position when admin bar is present */
.admin-bar #site-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar #site-header {
    top: 46px;
  }
}

.header .nav-wrap {
  background: var(--thm-black);
  -webkit-box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border-radius: 0 0 var(--thm-card-radius, 12px) var(--thm-card-radius, 12px);
}

.header .wrapper {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 2rem;
  max-width: 100%;
  height: auto;
}

.header .navbar {
  max-width: 100%;
  height: auto;
  padding: 0;
}

.header .menu>li {
  position: relative;
  display: inline-block;
  margin: 0 0.75rem;
}

.header .menu>li>a,
.primary-menu>li>a {
  border: none;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  color: #fff;
  text-transform: var(--thm-text-transform);
  position: relative;
  transition: all 500ms ease;
  letter-spacing: var(--thm-letter-space-big);
  padding: 40.5px 0;
}

.header .menu>li.menu-item-has-children>a,
.primary-menu>li.menu-item-has-children>a,
.header .menu>li>a.has-dropdown,
.primary-menu>li>a.has-dropdown {
  padding-right: 41px;
}


.header .menu>li>a .expand {
  position: relative;
  display: inline-block;
  height: 0.75rem;
  width: 0.75rem;
  margin-left: 0.35rem;
  border: none;
  pointer-events: none;
}

.header .menu>li>a .expand:before,
.header .menu>li>a .expand:after {
  position: relative;
  -webkit-box-sizing: inherit;
  box-sizing: inherit;
  content: "";
  left: 50%;
  top: 50%;
  width: 100%;
  height: 2px;
  background: #fff;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  -webkit-transition: all 0.35s ease;
  -o-transition: all 0.35s ease;
  transition: all 0.35s ease;
}

.header .menu>li:hover>a .expand::before,
.header .menu>li:hover>a .expand::after {
  background: #e91e63;
}

.header .menu>li>a .expand::after {
  -webkit-transform: translate(-50%, -50%) rotate(-90deg);
  -ms-transform: translate(-50%, -50%) rotate(-90deg);
  transform: translate(-50%, -50%) rotate(-90deg);
}

/* Active / Current Page - Top Level Menu */
.header .menu>li.current-menu-item>a,
.header .menu>li.current-menu-ancestor>a,
.header .menu>li.current_page_ancestor>a,
.header .menu>li.current-menu-item>span.icon,
.header .menu>li.current-menu-ancestor>span.icon {
  color: var(--thm-primary);
}

.header .menu li .sub-menu .menu-item:hover>a {
  background-color: var(--thm-primary);
  color: var(--thm-base);
}

.header .menu li .sub-menu li.menu-item-has-children>a:hover .icon {
  color: var(--thm-base);
}

.nav-design-classic .menu .sub-menu {
  padding: 0;
  border: none;
  position: absolute;
  top: 3.5em;
  right: auto;
  min-width: 260px;
  background-color: var(--thm-base);
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  opacity: 0;
  visibility: hidden;
  transition: all 400ms ease;
  z-index: 99;
  box-shadow: 0px 10px 40px 0px rgb(0 0 0 / 12%);
  border-top: 3px solid var(--thm-primary);
}

/* First-Level Dropdown Specific Alignment (Depth 2) */
.nav-design-classic .menu>li>.sub-menu {
  top: 100%;
  margin-top: unset;
}

/* Depth 3: open to the right of depth-2 */
.nav-design-classic .menu .sub-menu .sub-menu {
  left: 99.5%;
  right: auto;
  top: 0;
  margin-left: 2px;
  border-top: 0;
  border-left: 3px solid var(--thm-primary);
}

/* Depth 4: permanently open to the LEFT of depth-3, shifted DOWN to avoid overlap with depth-2 */
.nav-design-classic .menu .sub-menu .sub-menu .sub-menu {
  left: auto;
  right: 100%;
  top: 0;
  margin-left: 0;
  margin-right: 4px;
  border-left: 0;
  border-right: 3px solid var(--thm-primary);
}

/* ==========================================================================
   NEW GLASSMORPHISM NAVIGATION DESIGN
   ========================================================================== */

/* ─── 0. CORE HEADER GLASSMORPHISM ──────────────────────────────────────── */
header.nav-design-glass,
#site-header.nav-design-glass {
  background: transparent;
  box-shadow: none;
  border: none;
}

.nav-design-glass .nav-wrap {
  background: rgba(18, 18, 29, 0.50);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
  border-radius: 0 0 var(--thm-card-radius, 12px) var(--thm-card-radius, 12px);
}

.nav-design-glass .topheader_bg {
  background: rgba(18, 18, 29, 0.50) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: none;
}

.nav-design-glass .header-top-info {
  background: transparent !important;
}

.nav-design-glass .header2_btn a {
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #ffffff;
  transition: all 0.3s ease;
}

/* ─── 0.45 HEADER SEARCH TOGGLE (DESKTOP) ───────────────────────────── */
.search-toggle-wrapper {
  display: flex;
  align-items: center;
  margin-left: 15px;
  flex-shrink: 0;
}

.search-toggle.desktop-search-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  padding: 0;
  border-radius: 50%;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}

.search-toggle.desktop-search-toggle .toggle-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.search-toggle.desktop-search-toggle i {
  font-size: 15px;
  line-height: 1;
  color: #ffffff;
  transition: transform 0.3s ease, color 0.3s ease;
}

.search-toggle.desktop-search-toggle:hover,
.search-toggle.desktop-search-toggle:focus {
  background: var(--thm-primary, #61ce70);
  border-color: var(--thm-primary, #61ce70);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.search-toggle.desktop-search-toggle:hover i,
.search-toggle.desktop-search-toggle:focus i {
  color: #ffffff;
  transform: scale(1.1);
}

/* Light Context Overrides (Light Mode & Light Navbars) */
body.theme-light .search-toggle.desktop-search-toggle,
.header.nav-light .search-toggle.desktop-search-toggle {
  background: rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(15, 23, 42, 0.18);
  color: #0f172a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

body.theme-light .search-toggle.desktop-search-toggle i,
.header.nav-light .search-toggle.desktop-search-toggle i {
  color: #0f172a;
}

body.theme-light .search-toggle.desktop-search-toggle:hover,
body.theme-light .search-toggle.desktop-search-toggle:focus,
.header.nav-light .search-toggle.desktop-search-toggle:hover,
.header.nav-light .search-toggle.desktop-search-toggle:focus {
  background: var(--thm-primary, #61ce70);
  border-color: var(--thm-primary, #61ce70);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

body.theme-light .search-toggle.desktop-search-toggle:hover i,
body.theme-light .search-toggle.desktop-search-toggle:focus i,
.header.nav-light .search-toggle.desktop-search-toggle:hover i,
.header.nav-light .search-toggle.desktop-search-toggle:focus i {
  color: #ffffff;
}

.nav-design-glass .header2_btn a:hover {
  background: rgba(255, 255, 255, 0.28);
  color: #ffffff;
}

/* ─── 0.5 SPOTLIGHT SEARCH MODAL (GLOBAL) ───────────────────────────── */
.search-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 9999;
  background: rgba(18, 18, 29, 0.85);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-bottom: none;
  display: none;
}

.admin-bar .search-modal {
  top: 32px;
  height: calc(100vh - 32px);
}

@media screen and (max-width: 782px) {

  .admin-bar .search-modal {
    top: 46px;
    height: calc(100vh - 46px);
  }
}

.search-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.search-modal .search-modal-inner {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  border-radius: 12px;
  width: 90%;
  max-width: 800px;
  padding: 0 20px;
  margin: 0 auto;
}

.search-modal .search-form .search-field,
.search-modal .search-form .search-field:focus,
.search-modal input[type="search"] {
  color: #ffffff;
  background: transparent;
  border: none;
  box-shadow: none;
  outline: none;
  margin-bottom: 0;
  height: 50px;
}

.search-modal .search-form .search-field::-webkit-input-placeholder,
.search-modal input[type="search"]::-webkit-input-placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.search-modal .search-form .search-field::-moz-placeholder,
.search-modal input[type="search"]::-moz-placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.search-modal .search-form .search-field:-ms-input-placeholder,
.search-modal input[type="search"]:-ms-input-placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.search-modal button.search-untoggle,
.search-modal .search-submit {
  background-color: transparent;
  background: transparent;
  color: #ffffff;
  margin-bottom: 0;
}

.search-modal button.search-untoggle svg,
.search-modal .search-submit svg,
.search-modal .search-submit i {
  fill: #ffffff !important;
  color: #ffffff !important;
}

/* Slightly more opaque when sticky for content readability */
.nav-design-glass .nav-wrap.sticky-menu {
  background: rgba(18, 18, 29, 0.50);
}

/* ─── STRUCTURAL GLASS OVERRIDES ─── */
.nav-design-glass.header .menu>li>a {
  padding: 10px 0;
  /* Strip bloated padding for glass layout */
}

.nav-design-glass.header .menu>li>span.icon {
  top: calc(50% - 7.5px) !important;
  /* Mathematically center for glass */
}

/* ─── 0.6 GLOWING ANIMATED UNDERLINE (PRIMARY MENU) ─────────────────────── */
/* Keep text crisp white during hover/active in glass design */
.nav-design-glass.header .menu>li:hover>a,
.nav-design-glass.header .menu>li.current-menu-item>a,
.nav-design-glass.header .menu>li.current-menu-ancestor>a,
.nav-design-glass.header .menu>li.current_page_ancestor>a,
.nav-design-glass.header .menu>li.current_page_item>a,
.nav-design-glass.header .menu>li.active>a {
  color: #ffffff !important;
}

.nav-design-glass .menu>li {
  position: relative;
  padding: 24px 0;
  /* Creates a solid, hoverable gap below the link */
}

.nav-design-glass .menu>li::after {
  content: "";
  position: absolute;
  bottom: 15px;
  /* Anchors precisely above the 15px hover gap */
  left: 10%;
  width: 0;
  height: 2px;
  background-color: var(--thm-primary, #8a2be2);
  box-shadow: 0 0 12px 2px var(--thm-primary, #8a2be2);
  transition: all 0.3s ease;
  opacity: 0;
  border-radius: 4px;
  z-index: 9999;
  display: block;
  pointer-events: none;
}

.nav-design-glass .menu>li:hover::after,
.nav-design-glass .menu>li.current-menu-item::after,
.nav-design-glass .menu>li.current-menu-ancestor::after,
.nav-design-glass .menu>li.current_page_item::after,
.nav-design-glass .menu>li.active::after {
  width: 80%;
  opacity: 1;
}

/* ─── 1. CORE DROPDOWN CARD (GLASSMORPHISM) ─────────────────────────────── */
.nav-design-glass .menu .sub-menu {
  background: rgba(18, 18, 29, 0.50);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  padding: 8px;
  min-width: 230px;
  margin-top: 8px;

  /* Snappy Physics Reveal Animations */
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(0.98);
  transition:
    opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: top center;
}

/* First-Level Dropdown Specific Alignment (Depth 2) */
.nav-design-glass .menu>li>.sub-menu {
  left: 0;
  right: auto;
  top: 100%;
  /* Sits exactly at the bottom of the li's padding */
  margin-top: unset;
  transform-origin: top left;
}

/* Hover & Keyboard Focus Reveal States (Depth 2) */
.nav-design-glass .menu li:hover>.sub-menu,
.nav-design-glass .menu li:focus>.sub-menu,
.nav-design-glass .menu li:focus-within>.sub-menu,
.nav-design-glass .menu li.focus>.sub-menu,
.nav-design-glass .menu li.focus-within>.sub-menu {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) scale(1);
}

/* ─── 2. NESTED SUB-MENU LAYOUTS (DEPTH 3 & 4) ──────────────────────────── */

/* Common Row wrapper relative positioning */
.nav-design-glass .menu .sub-menu li {
  padding: 0;
  margin: 2px 0;
  width: 100%;
  display: block;
  position: relative;
}

/* Depth 3: Floating Sub-menu on Right */
.nav-design-glass .menu .sub-menu .sub-menu {
  left: 100%;
  top: -10px;
  margin-top: 0;
  margin-left: 10px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  transform-origin: left top;
  transform: translateX(8px) scale(0.98);
}

/* Hover & Keyboard Focus Reveal States (Depth 3) */
.nav-design-glass .menu .sub-menu li:hover>.sub-menu,
.nav-design-glass .menu .sub-menu li:focus>.sub-menu,
.nav-design-glass .menu .sub-menu li:focus-within>.sub-menu,
.nav-design-glass .menu .sub-menu li.focus>.sub-menu,
.nav-design-glass .menu .sub-menu li.focus-within>.sub-menu {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateX(0) scale(1);
}


/* Hover Bridge on Parent LI to bridge the 10px floating gap */
.nav-design-glass .menu .sub-menu li.menu-item-has-children::after {
  content: "" !important;
  position: absolute;
  top: 0;
  left: 100%;
  width: 30px;
  /* Expanded to 30px to bridge the glass padding + margin + animation gap */
  height: 100%;
  background: transparent;
  display: block !important;
  z-index: 999 !important;
}

/* Left-aligned Hover Bridge for ANY dynamically flipped nested menu */
.nav-design-glass .menu .sub-menu li.submenu-flip.menu-item-has-children::after {
  left: auto;
  right: 100%;
  width: 30px;
}

/* ==========================================================================
   Prevent Far-Right Menu Items from Bleeding Off-Screen 
   ========================================================================== */
/* Flip the first dropdown layer to align right */
.header .menu>li.submenu-flip>.sub-menu {
  left: auto !important;
  right: 0 !important;
  transform-origin: top right !important;
}

/* Flip any nested submenu that dynamically hits the screen edge */
.header .menu .sub-menu li.submenu-flip>.sub-menu {
  left: auto !important;
  right: 100% !important;
  transform-origin: top right !important;
}

/* Glassmorphism adjustments for flipped nested menus */
.nav-design-glass .menu .sub-menu li.submenu-flip>.sub-menu {
  margin-left: 0 !important;
  margin-right: 10px !important;
  transform: translateX(-8px) scale(0.98);
}

.nav-design-glass .menu>li.submenu-flip .sub-menu li.focus-within>.sub-menu,
.nav-design-glass .menu>li.submenu-flip .sub-menu li:hover>.sub-menu {
  transform: translateX(0) scale(1) !important;
}

/* Fix Glassmorphism Hover Bridge for the flipped items */
.nav-design-glass .menu>li.submenu-flip .sub-menu li.menu-item-has-children::after {
  left: auto !important;
  right: 100% !important;
}

/* Classic adjustments for flipped nested menus */
.nav-design-classic .menu>li.submenu-flip .sub-menu .sub-menu,
.nav-design-classic .menu .sub-menu li.submenu-flip>.sub-menu {
  border-left: 0 !important;
  border-right: 3px solid var(--thm-primary) !important;
  margin-left: 0 !important;
  margin-right: 2px !important;
}

/* Flip the classic chevron to point left when the submenu opens to the left */
.nav-design-classic .menu>li.submenu-flip .sub-menu li.menu-item-has-children>a::after,
.nav-design-classic .menu .sub-menu li.submenu-flip.menu-item-has-children>a::after {
  content: "\f104" !important;
  /* Angle Left */
  right: auto !important;
  left: 16px !important;
}

/* Adjust hover translation for left-facing chevron */
.nav-design-classic .menu>li.submenu-flip .sub-menu li.menu-item-has-children>a:hover::after,
.nav-design-classic .menu .sub-menu li.submenu-flip.menu-item-has-children>a:hover::after {
  transform: translateY(-50%) translateX(-3px) !important;
}

/* ─── 3. MENU LINK ELEMENTS ─────────────────────────────────────────────── */
.nav-design-glass.header .menu .sub-menu li a,
.nav-design-glass .header-inner .menu .sub-menu li a,
.nav-design-glass .menu .sub-menu li a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  padding: 12px 20px;
  /* Spacious, thumb-friendly padding */
  padding-right: 36px;
  border-radius: 8px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
  position: relative;
  line-height: 1.5;
  box-shadow: none;
  text-transform: none;
  border-bottom: none;
  /* Remove parent theme border line */
}

/* Hover & Focus Accent highlight */
.nav-design-glass.header .menu .sub-menu li a:hover,
.nav-design-glass.header .menu .sub-menu li a:focus,
.nav-design-glass.header .menu .sub-menu li a:focus-within,
.nav-design-glass .header-inner .menu .sub-menu li a:hover,
.nav-design-glass .header-inner .menu .sub-menu li a:focus,
.nav-design-glass .header-inner .menu .sub-menu li a:focus-within,
.nav-design-glass .menu .sub-menu li a:hover,
.nav-design-glass .menu .sub-menu li a:focus,
.nav-design-glass .menu .sub-menu li a:focus-within {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  padding-left: 20px;
}

/* ─── 4. DYNAMIC NAVIGATION CHEVRONS ────────────────────────────────────── */

/* Disable parent theme inline/pseudo symbols and top triangle carets */
.header .menu li a svg,
.header .menu li a .svg-icon,
.header .menu li a button,
.header .menu li a .icon,
.header .menu li .icon,
.header .menu li a::after,
.header .menu li a::before,
.header .menu li.menu-item-has-children>a::after,
.header .menu li.menu-item-has-children>a::before,
.header .menu .sub-menu::before,
.header .menu .sub-menu::after {
  display: none !important;
  content: none !important;
}

/* Primary Top-Level Indicator (Angle Down) */
.header .menu>li.menu-item-has-children>a::after {
  content: "\f107" !important;
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 11px;
  margin-left: 6px;
  display: inline-block !important;
  transition: transform 0.25s ease;
  color: inherit;
}

.header .menu>li.menu-item-has-children:hover>a::after {
  transform: rotate(180deg);
}

/* Nested Sub-Level Indicator (Angle Right) */
.header .menu .sub-menu .menu-item-has-children>a::after {
  content: "\f105" !important;
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 12px;
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  margin-left: 0;
  color: inherit;
  opacity: 0.6;
  transition: all 0.2s ease;
  display: block !important;
}

.header .menu .sub-menu .menu-item-has-children>a:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(3px);
}


/* ─── 5. LIGHT / DARK THEME ADAPTATIONS ─────────────────────────────────── */
.theme-dark .nav-design-glass .menu .sub-menu {
  background: rgba(14, 14, 24, 0.88);
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
}

.theme-dark .nav-design-glass .menu .sub-menu li a {
  color: rgba(255, 255, 255, 0.75);
}

.theme-dark .nav-design-glass .menu .sub-menu li a:hover {
  background: rgba(255, 255, 255, 0.04);
}

.header .menu>li>.sub-menu>li {
  display: block;
}

.header .menu .sub-menu li a,
.menu-modal .menu .sub-menu li a {
  display: block;
  position: relative;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  padding: 14px 25px;
  color: #121212;
  text-transform: var(--thm-text-transform);
  text-rendering: optimizeLegibility;
  transition: all 0.3s ease;
  border-bottom: 1px solid #f2f2f2;
}

.header .menu .sub-menu li.menu-item-has-children>a,
.header .menu .sub-menu li>a.has-dropdown {
  padding-right: 45px;
}

.header .menu .sub-menu li:last-child a {
  border-bottom: none;
}

.header .opened-menu {
  position: relative;
  display: none;
  cursor: pointer;
  width: 2rem;
  height: 1rem;
  border: none;
  opacity: 0;
  visibility: hidden;
  background: none;
  -webkit-transform: rotate(0deg);
  -ms-transform: rotate(0deg);
  transform: rotate(0deg);
  -webkit-transition: all 0.35s ease;
  -o-transition: all 0.35s ease;
  transition: all 0.35s ease;
}

.header button.mobile-nav-toggle:focus {
  outline: none;
}

.header .opened-menu span {
  display: block;
  position: absolute;
  width: 100%;
  height: 2px;
  left: 0;
  border: none;
  opacity: 1;
  border-radius: 0.25rem;
  background: var(--thm-base);
  -webkit-transform: rotate(0deg);
  -ms-transform: rotate(0deg);
  transform: rotate(0deg);
  -webkit-transition: all 0.25s ease;
  -o-transition: all 0.25s ease;
  transition: all 0.25s ease;
}

.theme-light .header .opened-menu span {
  background: var(--thm-black);
}

.header .opened-menu span:nth-child(1) {
  top: 0;
}

.header .opened-menu span:nth-child(2),
.header .opened-menu span:nth-child(3) {
  top: 0.5rem;
}

.header .opened-menu span:nth-child(4) {
  top: 1rem;
}

.header .closed-menu {
  display: none;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  cursor: pointer;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  background: none;
}

.header .closed-menu img.closed-icon {
  display: block;
  width: 1rem;
  height: auto;
}

.header .overlay {
  position: fixed;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  background: rgb(0 0 0);
  -webkit-transition: all 0.35s ease;
  -o-transition: all 0.35s ease;
  transition: all 0.35s ease;
}

.header .logo-dark {
  display: none;
}

.menu-item-has-children button {
  display: none;
}

@media only screen and (min-width: 993px) {

  .header .menu li.menu-item-has-children:hover>.sub-menu,
  .header .menu li.menu-item-has-children:focus-within>.sub-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    -webkit-transform: translateY(0);
    -ms-transform: translateY(0);
    transform: translateY(0);
  }

  .header .menu>.menu-item-has-children:hover>a .expand::after {
    -webkit-transform: translate(-50%, -50%) rotate(0deg);
    -ms-transform: translate(-50%, -50%) rotate(0deg);
    transform: translate(-50%, -50%) rotate(0deg);
  }

  .header .menu>li.menu-item:hover>a,
  .header .menu>li.menu-item:hover>span.icon {
    color: var(--thm-primary);
    font-weight: 500;
  }

  .header .menu>.menu-item .cart-icon:hover {
    color: var(--thm-primary);
    background: var(--thm-base);
    font-weight: 500;
  }
}

@media only screen and (max-width: 992px) {
  .header .overlay.active {
    display: block;
    opacity: 1;
    visibility: visible;
  }

  .menu-modal.navbar {
    align-content: flex-start;
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    z-index: 99999;
    opacity: 0;
    overflow-y: auto;
    visibility: hidden;
    background: #ffffff;
    -webkit-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    transition: all 0.5s ease;
  }

  .menu-modal.navbar.active {
    left: 0rem;
    opacity: 1;
    visibility: visible;
  }

  .menu-modal.navbar::-webkit-scrollbar {
    width: 5px;
  }

  .menu-modal.navbar::-webkit-scrollbar-thumb {
    border-radius: 1rem;
    background: #e6e6e6;
    -webkit-box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.12);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.12);
  }

  .menu-modal.navbar .menu {
    width: 100%;
    height: auto;
    margin-top: 1.5rem;
    padding: 0;
  }

  .menu-modal .menu>li>.ancestor-wrapper>a {
    border: none;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    color: #8f8da0;
    text-transform: var(--thm-text-transform);
    position: relative;
    transition: all 500ms ease;
    letter-spacing: var(--thm-letter-space-big);
  }

  .menu-modal.navbar .menu>li {
    display: block;
    margin: 0;
    padding-top: 0;
    padding-bottom: 0;
    display: flex;
    width: 100%;
    line-height: inherit;
    flex-wrap: wrap;
    align-items: center;
    border: 1px solid #f2f2f2;
    align-content: stretch;
    justify-content: space-between;
  }

  .menu-modal.navbar .menu>.menu-item-has-children>.ancestor-wrapper>a {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
  }

  .menu-modal.navbar .menu>li a {
    padding: 0.75rem 1rem;
    color: #121212;
  }

  .modal-menu a:focus,
  .modal-menu a:hover,
  .modal-menu li.current-menu-item>.ancestor-wrapper>a,
  .modal-menu li.current_page_ancestor>.ancestor-wrapper>a {
    color: var(--thm-primary);
  }

  .menu-modal.navbar .menu>.menu-item:first-child>.ancestor-wrapper>a {
    border-top: 1px solid #f2f2f2;
  }

  .menu-modal.navbar .menu>li>a .expand::before,
  .menu-modal.navbar .menu>li>a .expand::after {
    background: #121212;
  }

  .menu-modal.navbar .menu>.menu-item-has-children.active>.ancestor-wrapper>a .expand:after {
    -webkit-transform: translate(-50%, -50%) rotate(0deg);
    -ms-transform: translate(-50%, -50%) rotate(0deg);
    transform: translate(-50%, -50%) rotate(0deg);
  }

  .menu-modal.navbar .menu>li>.sub-menu {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    max-height: 100%;
    padding: 0px;
    border: none;
    opacity: 1;
    overflow: hidden;
    visibility: hidden;
    background: transparent;
    -webkit-box-shadow: none;
    box-shadow: none;
    -webkit-transform: translateY(0px);
    -ms-transform: translateY(0px);
    transform: translateY(0px);
  }

  .menu-modal.navbar .menu>li.active>.sub-menu {
    visibility: visible;
  }

  .menu-modal.navbar .menu>li>.sub-menu>li>.ancestor-wrapper>a {
    padding: 0.75rem 2rem;
    color: #121212;
    border-bottom: 1px solid #f2f2f2;
  }

  .menu-modal .menu>li>.sub-menu.active {
    visibility: visible;
  }

  .menu-modal .menu>li>.sub-menu>li>.ancestor-wrapper>a {
    padding: 0.75rem 2rem;
    color: #121212;
    border-bottom: 1px solid #f2f2f2;
  }

  .header .opened-menu {
    display: block;
    opacity: 1;
    visibility: visible;
  }

  .menu-modal .closed-menu {
    position: absolute;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    top: .5rem;
    right: 0.7rem;
    background-color: var(--thm-primary);
    color: var(--thm-light);
    padding: 8px;
    z-index: 1;
  }

  .menu-modal .navbar-brand img {
    display: block;
    width: 160px;
    padding-top: 20px;
    padding-left: 12px;
    margin: 0;
  }

  .navbar-brand img {
    width: 170px;
    position: relative;
    float: left;
  }

  .navbar-brand {
    float: none;
  }

  .has-dropdown:after {
    right: 10px;
  }

  .navbar .shopping-cart {
    margin-top: 20px;
  }

  .menu-item-has-children button {
    display: block;
    width: 35px;
    height: 35px;
    background-color: var(--thm-primary);
    border: none;
    color: var(--thm-base);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transform: rotate(-90deg);
    transition: transform 500ms ease;
  }

  .menu-item-has-children.active button {
    transform: rotate(0deg);
  }

  .menu-item-has-children.active .has-dropdown {
    color: var(--thm-primary);
  }

  .has-dropdown:after {
    display: none;
  }

  .menu-item-has-children {
    padding-right: 10px;
  }
}

.has-dropdown:after {
  content: "\f107";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-family: "Font Awesome 5 Free";
  font-style: normal;
  font-weight: 900;
  font-size: 10px;
  color: inherit;
  transition: all 0.3s ease;
}

.sub-menu .has-dropdown:after {
  content: "\f105";
  /* Right arrow for nested levels */
}

.main {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 6rem 0;
}

/*Shopping cart*/
.shopping-cart {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
}

.shopping-cart .cart-icon {
  width: 50px;
  height: 50px;
  background: var(--thm-primary);
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  color: aliceblue;
  z-index: 9;
  border-radius: 50%;
  border: 2px solid #383838;
  margin-left: 20px;
  margin-right: 30px;
  cursor: pointer;
  font-size: 20px;
  text-decoration: none;
  line-height: 1;
}

.shopping-cart .cart-icon i {
  margin: 0;
  line-height: 1;
  display: inline-block !important;
}

.shopping-cart .cart-total {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 15px;
  font-size: 12px;
  background: var(--thm-black);
  border-radius: 50%;
  padding: 7px;
  height: 28px;
  width: 28px;
  right: 16px;
  color: white;
  border: 2px solid #383838;
  z-index: 9;
}

@media only screen and (max-width: 992px) {
  .shopping-cart .cart-icon {
    line-height: 1;
  }

  .shopping-cart .cart-total {
    top: 0px;
    padding: 4px;
    left: 55px;
  }
}

/*--------------------------------------------------------------*/

/*	Footer Section
/*--------------------------------------------------------------*/
.site-footer .widget,
.footer-nav-widgets-wrapper .widget,
.footer-widgets-outer-wrapper .widget {
  background-color: var(--footer-widget-bg, rgba(255, 255, 255, 0.03)) !important;
  border: 1px solid var(--footer-widget-border, rgba(255, 255, 255, 0.08)) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
  border-radius: 12px !important;
  border-top: 4px solid var(--thm-primary, #7b40c0) !important;
  padding: 25px 20px !important;
  margin-bottom: 25px !important;
  box-sizing: border-box !important;
  transition: all 0.3s ease !important;
  display: block !important;

}

.site-footer .widget:hover,
.footer-nav-widgets-wrapper .widget:hover,
.footer-widgets-outer-wrapper .widget:hover {
  border-top-color: var(--thm-primary, #7b40c0) !important;
}

.has-light-background .site-footer .widget,
.has-light-background .footer-nav-widgets-wrapper .widget,
.has-light-background .footer-widgets-outer-wrapper .widget {
  --footer-widget-bg: #ffffff;
  --footer-widget-border: rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;

}

.site-footer .widget-title,
.footer-nav-widgets-wrapper .widget-title,
.footer-widgets-outer-wrapper .widget-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 18px;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: none;
  padding-bottom: 0;

}

.has-light-background .site-footer .widget-title,
.has-light-background .footer-nav-widgets-wrapper .widget-title,
.has-light-background .footer-widgets-outer-wrapper .widget-title {
  color: #1a1a2e;

}

.site-footer .widget ul li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer .widget ul li:last-child {
  border-bottom: none;
}

.footer-copyrights .site-info {
  font-size: 14px;
}

.footer-copyrights .site-info p {
  margin: 0;
}

.footer-copyrights .site-info a {
  color: var(--thm-primary);
  text-decoration: none;
  font-weight: 600;
  transition:
    color 0.3s ease,
    border-bottom 0.3s ease;
  border-bottom: 1px solid transparent;
}

.footer-copyrights .site-info a:hover {
  color: var(--thm-primary);
  border-bottom-color: var(--thm-primary);
}

.footer {
  position: relative;
}

.footer-shape {
  background: url(assets/images/footer-shape.png);
  background-repeat: no-repeat;
  position: absolute;
  padding: 100px 0;
  height: 100%;
  width: 530px;
  opacity: 0.8;
  top: 0;
  right: 0;
}

.site-footer {
  background-color: transparent;
  position: relative;
  padding-top: 130px;
  padding-bottom: 30px;
}

@media (max-width: 992px) {
  .site-footer {
    padding-top: 350px;
  }
}

@media (max-width: 768px) {
  .site-footer {
    padding-top: 80px;
  }
}

/*--------------------------------------------------------------*/

/*	 Contact Info Callout - Top And Bottom
/*--------------------------------------------------------------*/

.contact-info-module {
  margin: 0px;
  padding: 25px;
}

.contact-info-module .media-body {
  padding-top: 2px;
}

.contact-icon {
  float: left;
  text-align: center;
  margin: 0px 20px 0px 0px;
  padding: 0;
  background-color: rgba(255, 255, 255, 1);
  border-radius: 50%;
  -moz-border-radius: 50%;
  -webkit-border-radius: 50%;
  height: 60px;
  width: 60px;
  transition: all 0.2s ease-in-out 0s;
}

.contact-info-module:hover .contact-icon {
  background-color: rgba(255, 255, 255, 0.5);
}

.contact-icon i {
  font-size: 1.75rem;
  line-height: 2.2;
  color: #121212;
  transition: all 0.3s ease-in-out 0s;
}

.contact-info-module h4 {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0px 0 5px;
}

.contact-info-module h6 {
  color: #fff;
  margin: 0;
  font-weight: 400;
}

@media (max-width: 500px) {
  .contact-info-module {
    text-align: center;
  }

  .contact-icon {
    float: none;
    margin: 0px auto 20px;
  }
}

.footer-contact-info {
  position: absolute;
  top: -55px;
  left: 0;
  right: 0;
  z-index: 1;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .footer-contact-info {
    position: relative;
    top: 0;
  }
}

.footer-contact-info .row {
  margin: 0;
}

/*--------------------------------------------------------------*/

/*	Footer Widget Section
/*--------------------------------------------------------------*/

.site-footer .widget {
  margin: 0 0 50px;
  padding: 0;
}

.site-footer .widget .widget-title {
  color: #ffffff;
  border: none;
  margin: 0 0 30px;
  padding: 0;
  font-weight: 600;
  word-wrap: break-word;
}

.site-footer .widget .widget-title:after {
  display: none;
}

.site-footer p,
.site-footer .widget address>a,
.site-footer .widget address>p>a,
.site-footer .widget .post .entry-title a {
  font-size: 16px;
  color: #8f8da0;
}

.site-footer .widget .post {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.site-footer .widget .tagcloud a,
.site-footer .widget .wp-block-tag-cloud a {
  background-color: #000000;
  color: #8f8da0;
}

.footer .widget-title {
  font-size: 18px;
  font-weight: 800;
  line-height: 28px;
  text-transform: var(--thm-text-transform);
  color: var(--thm-base);
  margin-bottom: 32px;
  letter-spacing: var(--thm-letter-space-small);
}

.footer .widget-title img {
  width: 160px;
}

.widget .post {
  background: transparent;
  margin: 20px 0 20px;
  box-shadow: none;
  border-bottom: 1px solid #eeeeee;
  padding: 0 0 15px;
}

.widget .post a.post-thumbnail {
  display: block;
  float: left;
  width: 70px;
  margin-right: 20px;
  padding: 5px 0px;
}

.widget .post .entry-meta .entry-date a {
  color: var(--thm-primary);
  font-size: 14px;
  text-transform: var(--thm-text-transform);
}

.tagcloud a,
.wp-block-tag-cloud a {
  cursor: pointer;
  background-color: #f3f4f6;
  display: inline-block;
  font-size: 12px !important;
  margin: 0 4px 6px 0;
  padding: 5px 12px;
  transition: all 0.25s ease;
  vertical-align: baseline;
  white-space: nowrap;
  border-radius: var(--thm-badge-radius, 20px);
  color: #4b5563;
  border: 1px solid rgba(0, 0, 0, 0.06);
  text-decoration: none;

}

.widget .tagcloud a:hover,
.widget .wp-block-tag-cloud a:hover {
  background-color: var(--thm-primary);
  color: #ffffff !important;
  border-color: var(--thm-primary);
  transform: translateY(-1px);

}

.widget .post:last-child {
  margin: 0px;
  padding: 0px;
  border-bottom: none !important;

}

.footer .widget i.icon {
  color: var(--thm-primary);
  padding: 0 12px 0 1px;
}

.footer .widget .post a.post-thumbnail {
  mix-blend-mode: luminosity;
}

.footer .footer-copyrights .container {
  position: relative;
  display: block;
}

.footer .footer-copyrights {
  position: relative;
}

.footer-copyrights-inner {
  display: flex;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 35px;
  padding-bottom: 35px;
  flex-wrap: wrap;
  gap: 20px;
}

/* Alignment Settings */
.footer-copyrights-inner.alignment-split {
  justify-content: space-between;
}

.footer-copyrights-inner.alignment-left {
  justify-content: flex-start;
  gap: 30px;
}

.footer-copyrights-inner.alignment-right {
  justify-content: flex-end;
  gap: 30px;
}

.footer-copyrights-inner.alignment-center {
  flex-direction: column;
  justify-content: center;
  text-align: center;
  gap: 15px;
}

/* Footer Social Icons Badges */
.footer-social-icons {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 12px;
}

.footer-social-icons li {
  margin: 0;
  padding: 0;
}

.footer-social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 14px;
  color: #8f8da0;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.footer-social-icons a:hover,
.footer-social-icons a:focus {
  color: #ffffff;
  background-color: var(--thm-primary);
  border-color: var(--thm-primary);
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Responsive styles */
@media (max-width: 767px) {
  .footer-copyrights-inner {
    flex-direction: column;
    text-align: center;
    justify-content: center;
    padding-top: 25px;
    padding-bottom: 25px;
  }
}

/*--------------------------------------------------------------*/

/* Screen Reader Text ------------------------ */

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  -webkit-clip-path: inset(50%);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal;
  word-break: normal;
}

.screen-reader-text:focus {
  background-color: #f1f1f1;
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto;
  -webkit-clip-path: none;
  clip-path: none;
  color: #21759b;
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  height: auto;
  right: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

/* Skip Link --------------------------------- */

.skip-link {
  left: -9999rem;
  top: 2.5rem;
  z-index: 999999999;
  text-decoration: underline;
}

.skip-link:focus {
  display: block;
  left: 6px;
  top: 7px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  line-height: normal;
  padding: 15px 23px 14px;
  z-index: 100000;
  right: auto;
}

/*	Media Queries Section
/*--------------------------------------------------------------*/

@media only screen and (max-width: 767px) {

  /*--------------------------------------------------------------*/
  /*	Buttons
    /*--------------------------------------------------------------*/
  .thm-btn,
  .wpforms-submit {
    font-size: 13px;
    padding: 12px 28px;
    letter-spacing: 0.05em;
  }

  /*--------------------------------------------------------------*/
  /*	Slider
    /*--------------------------------------------------------------*/
  .section .section-header .section-title {
    font-size: 30px;
    line-height: 35px;
  }

  .owl-carousel .owl-stage-outer {
    height: 400px;
  }

  #slider-demo .item {
    height: 400px;
  }

  .caption-content {
    padding: 10px;
    margin-top: 10px;
  }

  .slider-caption .subtitle {
    padding: 0;
  }

  .slider-caption .title {
    font-size: 28px;
    padding-top: 15px;
    line-height: 30px;
    margin: 0;
  }

  .slider-caption p {
    font-size: 15px;
    line-height: 20px;
    margin-bottom: 15px;
  }

  .hero-slider .slider-caption .thm-btn {
    font-size: 12px;
    padding: 8px 18px;
    letter-spacing: 0.05em;
  }

  .slider-caption .m-top-40 {
    margin-top: 15px;
  }

  /*--------------------------------------------------------------*/
  /*	Portfolio
    /*--------------------------------------------------------------*/
  .portfolio .post {
    margin-bottom: 80px;
  }

  /*--------------------------------------------------------------*/
  /*	Callout
    /*--------------------------------------------------------------*/
  .callout-to-action {
    padding: 50px 0;
    background-attachment: scroll;
  }

  .callout-to-action .title {
    font-size: 26px;
    line-height: 34px;
    margin-bottom: 16px;
  }

  .callout-to-action .subtitle {
    font-size: 10px;
    line-height: 12px;
    margin-bottom: 24px;
  }

  .callout-to-action .callout-inner-txt {
    padding: 0 10px;
  }

  .callout-to-action .thm-btn {
    font-size: 12px;
    padding: 8px 18px;
  }
}

@media only screen and (min-width: 768px) and (max-width: 991px) {

  /* Force 2 columns for services and footer widgets on tablet */
  .service-box,
  .funfact-selector>div,
  .site-footer .row>div {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    width: 50% !important;
    margin-bottom: 30px;
  }

  /* Tablet Slider Text Scaling */
  .slider-caption .subtitle {
    font-size: 16px;
    letter-spacing: 2px;
    margin-bottom: 15px;
  }

  .slider-caption .title {
    font-size: 44px;
    line-height: 54px;
    margin-bottom: 20px;
  }

  .slider-caption p,
  .slider-caption .description {
    font-size: 18px;
    line-height: 28px;
    margin-bottom: 30px;
  }
}

@media only screen and (max-width: 991px) {

  /*--------------------------------------------------------------*/
  /*	Testimonial
    /*--------------------------------------------------------------*/
  .testimonial .owl-carousel .owl-prev,
  .testimonial .owl-carousel .owl-next {
    top: -70px;
    left: 0;
    margin: 0;
    transform: none;
  }

  .testimonial .owl-carousel .owl-next {
    left: 55px;
  }

  /* Go to top button spacing */
  .page-scroll-up {
    bottom: 80px !important;
    right: 15px !important;
  }

  /*--------------------------------------------------------------*/
  /*	About Section
    /*--------------------------------------------------------------*/
  .about-story-content,
  .video-showcase-card {
    margin-bottom: 50px;
  }

  .about-tabs-nav {
    gap: 5px;
    justify-content: center;
  }

  .about-tabs-container {
    padding: 20px;
  }

  .about-tabs-nav button {
    padding: 8px 2px;
    font-size: 13px;
    flex: 1;
    text-align: center;
    line-height: 1.2;
  }

  .about-tab-pane ul li {
    line-height: normal;
    font-size: 14px;
  }

  .svc-cta-btn {
    font-size: 15px !important;
  }

  /*--------------------------------------------------------------*/
  /*	Portfolio Single
    /*--------------------------------------------------------------*/
  .project-wrap {
    padding-right: 0;
  }

  .portfolio-single .project-detail {
    margin-left: 0;
    margin-top: 0;
  }

  .portfolio-single .card-holder.holder-small::before,
  .portfolio-single .card-holder.holder-small::after {
    right: -10px;
  }

  .portfolio-single .project-details {
    position: inherit;
    margin-bottom: 60px;
    display: inline-block;
  }

  /*--------------------------------------------------------------*/
  /*	contact page 
    /*--------------------------------------------------------------*/
  .google-map {
    margin-bottom: 50px;
  }
}

.container-full {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

@media (min-width: 576px) {
  .container-full {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container-full {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .container-full {
    max-width: 1500px;
  }
}

@media (min-width: 1200px) {
  body.theme-boxed .container-full {
    max-width: 1470px;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Home News Section */
.home-news .full-content {
  padding: 30px 36px 60px;
}

.home-news .blog-head {
  padding: 30px 36px 35px;
  margin-top: -80px;
}

.home-news.blog::after {
  height: 392px;
}

.home-news .entry-title {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Blog Grid View */
.page-template-blog-grid-view div.blog .full-content {
  padding: 30px 36px 50px;
}

/* Footer Widget Links */
.site-footer .widget li a {
  color: #8f8da0;
}

/* Sponsors Section */
.sponsors {
  border-top: 1px solid #cccccc45;
}

/* Navbar Brand Override */
@media (min-width: 992px) {
  .navbar-brand {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }
}

/* Container Full-Width System */
.container-full {
  width: 100%;
  padding-right: 30px;
  padding-left: 30px;
  margin-right: auto;
  margin-left: auto;
}

@media (max-width: 767px) {
  .container-full {
    padding-right: 15px;
    padding-left: 15px;
  }
}

/* ==========================================================================
   Modern Blog & Single Post Styles (redesigned)
   ========================================================================== */

/* Spacing and border between posts in listing page */
div.blog .modern-post {
  margin: 0 0 30px;
  padding: 0 0 40px;
  border-bottom: 1px solid #e2e8f0;
}

div.blog .modern-post:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

/* Disable translate lift and scale animations for single posts */
.single-post.modern-post:hover {
  transform: none;
}

.single-post.modern-post:hover .modern-post-thumbnail img {
  transform: none;
}

/* Adjust title size for single post page */
.single-entry-title {
  font-size: 38px;
  line-height: 1.25;
  margin-top: 15px;
  margin-bottom: 25px;
  font-weight: 900;
}

@media (max-width: 768px) {
  .single-entry-title {
    font-size: 28px;
  }
}

/* Single Post Entry Content spacing */
.single-entry-content {
  font-size: 17px;
  line-height: 1.85;
  color: #475569;
}

/* Single Post Thumbnail Styling */
.single-post-thumbnail {
  border-radius: 8px;
  margin-bottom: 25px;
}

.single-post-thumbnail img {
  border-radius: 8px;
  width: 100%;
}

/* Entry Footer for Single Page Tags */
.entry-footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px dashed #e2e8f0;
}

.tag-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #64748b;
}

.tag-links i {
  margin-right: 4px;
  font-size: 14px;
}

.tag-links a {
  display: inline-block;
  border: 1px solid #e2e8f0;
  color: #64748b;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.tag-links a:hover {
  border-color: var(--thm-primary);
  background-color: var(--thm-primary);
  color: #fff;
  text-decoration: none;
}

/* Blog Grid View Modernization - Equal-Height Cards */
section.blog-grid {
  padding-top: 80px;
  padding-bottom: 80px;
}

.blog-grid .row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -15px;
  margin-right: -15px;
}

.blog-grid .col-xl-4,
.blog-grid .col-lg-4,
.blog-grid .col-md-6,
.blog-grid .col-sm-12 {
  margin-bottom: 35px;
  padding-left: 15px;
  padding-right: 15px;
  display: flex;
  flex-direction: column;
}

.blog-grid .modern-post {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  border-radius: var(--thm-card-radius, 12px);
  overflow: hidden;
  height: 100%;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
  transition: all 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-grid .modern-post:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
  border-color: #cbd5e1;
}

.blog-grid .modern-post-thumbnail {
  position: relative;
  margin: 0;
  border-radius: 0;
  height: 220px;
  max-height: 220px;
  overflow: hidden;
}

.blog-grid .modern-post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-grid .modern-blog-content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-grid .modern-entry-title {
  font-size: 18px;
  line-height: 1.45;
  margin-bottom: 12px;
  font-weight: 700;
}

.blog-grid .modern-entry-content {
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 0;
  flex: 1;
}

/* Dark mode overrides for Grid Cards */
.theme-dark .blog-grid .modern-post {
  background-color: #1e1b2f;
  border-color: #2e2a47;
}

.theme-dark .blog-grid .modern-post:hover {
  border-color: #3e385e;
}

.blog-grid .pagination {
  margin-top: 50px;
}

/* Full Width Blog Modernization - Responsive Side-by-Side Row Cards */
.blog-fullwidth .modern-post {
  margin: 0 0 45px;
  padding: 0 0 45px;
  border-bottom: 1px solid #f1f5f9;
}

.blog-fullwidth .modern-post-thumbnail {
  border-radius: var(--thm-card-radius, 8px);
  overflow: hidden;
  margin-bottom: 20px;
}

.blog-fullwidth .modern-post-thumbnail img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

@media (min-width: 768px) {
  .blog-fullwidth .modern-post:not(.single-post) {
    display: flex;
    flex-direction: row;
    gap: 40px;
    align-items: center;
  }

  .blog-fullwidth .modern-post:not(.single-post) .modern-post-thumbnail {
    flex: 0 0 45%;
    max-width: 45%;
    margin-bottom: 0;
    border-radius: var(--thm-card-radius, 12px);
  }

  .blog-fullwidth .modern-post:not(.single-post) .modern-post-thumbnail a {
    display: block;
    height: 100%;
  }

  .blog-fullwidth .modern-post:not(.single-post) .modern-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .blog-fullwidth .modern-post:not(.single-post) .modern-blog-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px 28px 28px;
  }

  .blog-fullwidth .modern-post.has-post-thumbnail:not(.single-post) .modern-blog-content {
    padding: 0 20px 0 0;
  }

  .blog-fullwidth .modern-post:not(.single-post) .modern-entry-meta {
    margin-bottom: 8px;
  }

  .blog-fullwidth .modern-post:not(.single-post) .modern-entry-title {
    margin-bottom: 12px;
  }

  .blog-fullwidth .modern-post:not(.single-post) .modern-entry-content {
    margin-bottom: 15px;
  }
}

/* Style Continue Reading link to look like the modern Read Article button */
.modern-post .more-link {
  color: var(--thm-primary);
  font-weight: 800;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  transition: all 300ms ease;
  text-transform: uppercase;
  margin-top: 15px;
  position: relative;
  text-decoration: none;
  letter-spacing: normal;
}

.modern-post .more-link:after {
  content: "→" !important;
  margin-left: 8px;
  transition: transform 300ms ease;
  display: inline-block;
  font-weight: 900;
}

.modern-post .more-link:hover {
  color: var(--thm-black);
  letter-spacing: 0.5px;
  text-decoration: none;
}

.modern-post .more-link:hover:after {
  transform: translateX(5px);
}

/* Hide line hover effect from common stylesheet for .more-link */
.modern-post .more-link:before {
  display: none !important;
}

/* Remove native browser search cancel (clear X) button to avoid icon collisions */
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
}

/* Modern Search Form Styling */
.search-form {
  width: 100%;
}

.search-form .search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.search-form .search-field {
  width: 100%;
  padding: 12px 50px 12px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--thm-black);

  border-radius: 6px;
  outline: none;
  transition: all 0.3s ease;
  height: 48px;
  box-shadow: none;
}

.search-form .search-field:focus {
  box-shadow: 0 4px 12px rgba(123, 64, 192, 0.05);
}

.search-form .search-submit {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: none;
  background-color: transparent;
  color: #94a3b8;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  padding: 0;
}

.search-form .search-submit:hover {
  color: var(--thm-primary);
  background-color: rgba(123, 64, 192, 0.08);
}

.search-form label {
  width: 100%;
  margin-bottom: 0;
}

/* Modern WooCommerce Product Search Form Styling */
.woocommerce-product-search,
.widget_product_search .woocommerce-product-search {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.woocommerce-product-search input[type="search"],
.widget_product_search .woocommerce-product-search input[type="search"] {
  width: 100%;
  padding: 12px 75px 12px 16px !important;
  font-size: 14px;
  font-weight: 500;
  color: #1e293b !important;
  background-color: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 6px !important;
  outline: none;
  height: 48px !important;
  margin-bottom: 0 !important;
  box-shadow: none;
  transition: all 0.3s ease;
}

.woocommerce-product-search input[type="search"]:focus {
  background-color: #ffffff !important;
  border-color: var(--thm-primary) !important;
  box-shadow: 0 0 0 3px rgba(123, 64, 192, 0.15) !important;
}

.woocommerce-product-search button[type="submit"],
.widget_product_search .woocommerce-product-search button[type="submit"] {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  height: 40px;
  padding: 0 14px !important;
  border: none !important;
  background-color: var(--thm-primary) !important;
  color: #ffffff !important;
  border-radius: 4px !important;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.woocommerce-product-search button[type="submit"]:hover {
  opacity: 0.9;
}

/* ==========================================================================
   Modern 404 Error Page Styling
   ========================================================================== */
.error-404-section {
  padding: 80px 0;
  background-color: var(--thm-base);
}

.error-404-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.error-404-digits h1 {
  font-family: var(--thm-font);
  font-size: 200px;
  font-weight: 900;
  line-height: 1;
  margin: 0 0 20px;
  letter-spacing: -5px;
  color: var(--thm-black);
  text-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  animation: float 6s ease-in-out infinite;
  display: inline-block;
}

.error-404-digits h1 span {
  color: var(--thm-primary);
  display: inline-block;
}

.error-404-title {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 15px;
  color: var(--thm-black);
}

.error-404-text {
  font-size: 16px;
  color: var(--thm-gray);
  max-width: 500px;
  margin: 0 auto 35px;
  line-height: 1.6;
}

.error-404-search {
  width: 100%;
  max-width: 480px;
  margin: 0 auto 40px;
  background-color: #fff;
  padding: 25px;
  border-radius: 12px;
  border: 1px solid #f1f5f9;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.error-404-search .search-helper-text {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 15px;
  text-align: left;
}

.error-404-search .search-field {
  background-color: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #1e293b;
}

.error-404-search .search-field:focus {
  background-color: #ffffff;
  border-color: var(--thm-primary);
  box-shadow: 0 0 0 3px rgba(123, 64, 192, 0.15);
}

.error-404-search .search-submit {
  background-color: var(--thm-primary);
  color: #ffffff;
}

.error-404-search .search-submit:hover {
  opacity: 0.9;
}

.error-404-actions .thm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  font-weight: 700;
  font-size: 14px;
}

/* Float animation for 404 digits */
@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0px);
  }
}

@media (max-width: 768px) {
  .error-404-digits h1 {
    font-size: 120px;
  }

  .error-404-title {
    font-size: 28px;
  }

  .error-404-section {
    padding: 50px 0;
  }
}

/* ==========================================================================
   Contact Page Modernization Styles
   ========================================================================== */
.contact-form-section {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  margin-bottom: 50px;
}

/* Form Fields Styling */
.contact-form-section input[type="text"],
.contact-form-section input[type="email"],
.contact-form-section input[type="tel"],
.contact-form-section textarea {
  width: 100%;
  height: 50px;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 10px 18px;
  font-size: 14px;
  color: #0f172a;
  transition: all 0.3s ease;
  box-sizing: border-box;
  margin-bottom: 20px;
}

.contact-form-section textarea {
  height: 150px;
}

.contact-form-section input:focus,
.contact-form-section textarea:focus {
  background-color: #ffffff;
  border-color: var(--thm-primary);
  box-shadow: 0 0 0 3px rgba(123, 64, 192, 0.1);
  outline: none;
}

.contact-form-section input[type="submit"] {
  background-color: var(--thm-primary);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 14px 35px;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(123, 64, 192, 0.15);
}

.contact-form-section input[type="submit"]:hover {
  background-color: var(--thm-black);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* Map Styling */
.section.contact .google-map-card {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  background-color: #ffffff;
  padding: 10px;
  margin-bottom: 30px;
}

.section.contact .google-map-card .google-map iframe {
  width: 100%;
  height: 480px;
  display: block;
  border-radius: var(--thm-card-radius, 8px);
}

/* Contact Info Cards */
.section.contact .contact-location-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--thm-card-radius, 12px);
  padding: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  margin-bottom: 30px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.section.contact .contact-location-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  border-color: var(--thm-primary);
}

/* Icon Badges */
.section.contact .contact-card-icon {
  width: 50px;
  height: 50px;
  background-color: #f3e8ff;
  border-radius: var(--thm-badge-radius, 10px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.section.contact .contact-location-card:hover .contact-card-icon {
  background-color: var(--thm-primary);
}

.section.contact .contact-card-icon i {
  font-size: 20px;
  color: var(--thm-primary);
  transition: all 0.3s ease;
}

.section.contact .contact-location-card:hover .contact-card-icon i {
  color: #ffffff;
}

/* Content inside Info Cards */
.section.contact .contact-card-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.section.contact .contact-location-card .location-title {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  text-transform: none;
}

.section.contact .contact-location-card .location-text {
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

/* Flex heights for matching card heights next to Google Map on desktop */
@media (min-width: 992px) {
  .section.contact .contact-loc-wrap {
    display: flex;
    align-items: stretch;
  }

  .section.contact .contact-map-wrapper {
    display: flex;
    flex-direction: column;
  }

  .section.contact .contact-map-wrapper .google-map-card {
    flex-grow: 1;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
  }

  .section.contact .contact-map-wrapper .google-map-card .google-map {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
  }

  .section.contact .contact-map-wrapper .google-map-card .google-map iframe {
    flex-grow: 1;
    height: 100%;
    min-height: 350px;
  }

  .section.contact .contact-info-wrapper {
    display: flex;
    flex-direction: column;
  }

  .section.contact .contact-info-wrapper>.row {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
  }

  .section.contact .contact-info-wrapper>.row>div {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-bottom: 0;
  }

  .section.contact .contact-info-wrapper>.row>div .contact-location-card {
    flex-grow: 1;
    margin-bottom: 0;
  }

  .section.contact .contact-info-wrapper>.row>div:not(:last-child) {
    margin-bottom: 25px;
  }
}

/* Custom Premium Footer Widgets */
.formula-brand-widget-content {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.formula-brand-widget-content .brand-logo-holder img {
  max-width: 160px;
  height: auto;
  display: block;
  margin-bottom: 5px;
}

.formula-brand-widget-content .brand-widget-description {
  line-height: 1.6;
  margin: 0;
  color: #8f8da0;
  font-size: 15px;
}

.brand-widget-socials {
  display: flex;
  gap: 10px;
  margin-top: 5px;
}

.brand-widget-socials .social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.brand-widget-socials .social-link i {
  color: #ffffff;
  transition: color 0.3s ease;
}

.brand-widget-socials .social-link:hover {
  background-color: var(--thm-primary);
  transform: translateY(-3px);
  box-shadow: 0 4px 10px color-mix(in srgb, var(--thm-primary) 30%, transparent);
}

.brand-widget-socials .social-link:hover i {
  color: #ffffff;
}

.site-footer .widget_nav_menu ul {
  list-style: none;
  padding: 0 !important;
  margin: 0 !important;
  display: block;
}

.site-footer .widget_nav_menu ul ul {
  padding-left: 15px !important;
  margin-top: 12px !important;
}

.site-footer .widget_nav_menu ul li {
  padding: 0 !important;
  margin: 0 0 12px 0 !important;
  border: none !important;
}

.site-footer .widget_nav_menu ul li:last-child {
  margin-bottom: 0 !important;
}

.site-footer .widget_nav_menu ul li a {
  color: #8f8da0;
  font-size: 14px;
  text-decoration: none;
  border: none;
  padding: 0;
  border-radius: 0;
  transition: all 0.25s ease;
  display: inline-block;
}

.site-footer .widget_nav_menu ul li a:before {
  display: inline-block;
  position: static;
  margin-right: 8px;
  color: rgba(255, 255, 255, 0.2);
}

.site-footer .widget_nav_menu ul li a:hover {
  color: #ffffff !important;
  background-color: transparent;
  border-color: transparent;
  transform: translateX(4px);
  box-shadow: none;
}

.site-footer .widget_nav_menu ul li a:hover:before {
  color: var(--thm-primary);
}

.site-footer .widget_tag_cloud .tagcloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.site-footer .widget_tag_cloud .tagcloud a {
  font-size: 13px !important;
  color: #8f8da0 !important;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 6px 12px;
  border-radius: var(--thm-badge-radius, 4px);
  text-decoration: none;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid transparent;

}

.site-footer .widget_tag_cloud .tagcloud a:hover {
  background-color: color-mix(in srgb, var(--thm-primary) 10%, transparent);
  color: var(--thm-primary) !important;
  border-color: color-mix(in srgb, var(--thm-primary) 20%, transparent);
  transform: translateY(-2px);

}

/* Custom Sidebar Author Card Widget */
.formula-author-card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.author-avatar-holder {
  margin-bottom: 4px;
}

.author-avatar-holder img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid var(--thm-primary);
  object-fit: cover;
  box-shadow: 0 4px 16px color-mix(in srgb, var(--thm-primary) 15%, transparent);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.formula-author-card-content:hover .author-avatar-holder img {
  transform: scale(1.06);
  box-shadow: 0 6px 20px color-mix(in srgb, var(--thm-primary) 25%, transparent);
}

.author-details-holder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.author-profile-name {
  font-size: 17px;
  font-weight: 700;
  margin: 0;
  color: #111827;
}

.author-profile-designation {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--thm-primary);
  display: inline-block;
}

.author-profile-bio {
  font-size: 13px;
  line-height: 1.65;
  color: #6b7280;
  margin: 4px 0 0;
}

.author-profile-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--thm-primary);
  text-decoration: none;
  border: 1px solid var(--thm-primary);
  padding: 7px 18px;
  border-radius: 30px;
  transition: all 0.25s ease;
  margin-top: 2px;
  position: relative;
  z-index: 1;
}

.author-profile-link i {
  font-size: 11px;
  transition: transform 0.25s ease;
}

.widget .author-profile-link:hover,
.widget .author-profile-link:focus {
  background-color: var(--thm-primary);
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--thm-primary) 30%, transparent);

}

.widget .author-profile-link:hover i {
  transform: translateX(3px);
  color: #ffffff !important;

}

.author-profile-socials {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.author-profile-socials .social-link {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: #f3f4f6;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.author-profile-socials .social-link i {
  color: #6b7280;
  font-size: 13px;
  transition: color 0.3s ease;
}

.author-profile-socials .social-link:hover {
  background-color: var(--thm-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px color-mix(in srgb, var(--thm-primary) 25%, transparent);
}

.author-profile-socials .social-link:hover i {
  color: #ffffff;
}

/* Dark mode overrides for author card */
.theme-dark .author-profile-name {
  color: #ffffff;
}

.theme-dark .author-profile-bio {
  color: #8f8da0;
}

.theme-dark .author-profile-socials .social-link {
  background-color: rgba(255, 255, 255, 0.08);
}

/* Ensure blog rows use flexbox so the sticky sidebar works across full column height */
.site-content>.container>.row,
.site-content>.container-full>.row {
  display: flex;
  flex-wrap: wrap;
}

.site-content>.container>.row:before,
.site-content>.container>.row:after,
.site-content>.container-full>.row:before,
.site-content>.container-full>.row:after {
  display: none;
  /* Disable standard clearfix when using flex */
}

/* Sticky Widget Mode */
.sidebar>.widget-sticky,
.sidebar>div:has(.widget-sticky) {
  position: -webkit-sticky;
  position: sticky;
  top: 150px;
  /* Increased to clear the fixed navbar and admin bar */
  z-index: 10;
  height: max-content;
  /* Ensure it only takes needed height so it can stick */
}

/* Prevent inner block elements from breaking layout when they receive the class from Gutenberg */
.sidebar .widget .widget-sticky {
  position: static !important;
  top: auto !important;
  height: auto !important;

}

.theme-dark .author-profile-socials .social-link i {
  color: #ffffff;
}

/* WP Block: Latest Comments Styling */
.widget .wp-block-latest-comments {
  padding: 0;
  margin: 0;
  list-style: none;
}

.widget .wp-block-latest-comments__comment {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.widget .wp-block-latest-comments__comment:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none;
}

.widget .wp-block-latest-comments__comment-avatar {
  border-radius: 50%;
  width: 45px;
  height: 45px;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
  margin-top: 5px;
}

.widget .wp-block-latest-comments__comment article {
  flex: 1;
}

.widget .wp-block-latest-comments__comment-meta {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.4;
  margin-bottom: 8px;
  margin-left: 0 !important;
  /* Override WordPress core block styles */

}

.widget .wp-block-latest-comments__comment-author {
  font-weight: 700;
  color: var(--thm-black, #111827);
  text-decoration: none;
}

.widget .wp-block-latest-comments__comment-author:hover,
.widget .wp-block-latest-comments__comment-link:hover {
  color: var(--thm-primary);
}

.widget .wp-block-latest-comments__comment-link {
  color: var(--thm-black, #111827);
  font-weight: 500;
  text-decoration: none;
}

.widget .wp-block-latest-comments__comment-date {
  display: block;
  font-size: 12px;
  color: #9ca3af;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.widget .wp-block-latest-comments__comment-excerpt p {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.6;
  margin: 0;
  font-style: italic;
}

.widget .wp-block-latest-comments__comment-excerpt {
  margin-left: 0 !important;
  /* Override WordPress core block styles */

}

/* Dark mode overrides */
.theme-dark .widget .wp-block-latest-comments__comment {
  border-bottom-color: rgba(255, 255, 255, 0.05);
}

.theme-dark .widget .wp-block-latest-comments__comment-meta {
  color: #9ca3af;
}

.theme-dark .widget .wp-block-latest-comments__comment-author,
.theme-dark .widget .wp-block-latest-comments__comment-link {
  color: #ffffff;
}

.theme-dark .widget .wp-block-latest-comments__comment-excerpt p {
  color: #d1d5db;
}

/* Prevent legacy widget chevron icon from appearing on block comments */
.widget .wp-block-latest-comments li a:before {
  content: none !important;

}

/* Box Card Blog Layout Variant */
.modern-post-card,
.modern-page-card {
  background-color: #ffffff;
  border-radius: var(--thm-card-radius, 16px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.03);
  overflow: hidden;
  margin-bottom: 40px;
}

.modern-post-card .modern-post-thumbnail,
.modern-page-card .modern-post-thumbnail {
  border-radius: var(--thm-card-radius, 16px) var(--thm-card-radius, 16px) 0 0;
}

.modern-post-card .modern-blog-content,
.modern-page-card .modern-page-content {
  padding: 24px 28px 28px;
}

/* Reset legacy list padding/border for the new card variant */
div.blog .modern-post.modern-post-card,
div.blog .modern-page-card {
  padding: 0;
  border-bottom: none;
}

/* Remove hover lift for box-card, add shadow grow */
.modern-post-card:hover,
.modern-page-card:hover {
  transform: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.modern-post-card:hover .modern-post-thumbnail img,
.modern-page-card:hover .modern-post-thumbnail img {
  transform: scale(1.03);
}

/* Dark Mode Overrides for Box Card */
.theme-dark .modern-post-card,
.theme-dark .modern-page-card {
  background-color: var(--thm-gray-rgb);
  border-color: rgba(255, 255, 255, 0.05);
  box-shadow: none;
}

.theme-dark .modern-post-card:hover,
.theme-dark .modern-page-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Modern Blog Author Card */
.modern-blog-author {
  background-color: #ffffff;
  border-radius: var(--thm-card-radius, 16px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.03);
  padding: 40px;
  margin-top: 50px;
  display: flex;
  gap: 30px;
  align-items: center;
}

.modern-author-avatar {
  flex-shrink: 0;
}

.modern-author-avatar img {
  border-radius: 50%;
  width: 120px;
  height: 120px;
  object-fit: cover;
  border: 4px solid #f1f5f9;
}

.modern-author-content {
  flex-grow: 1;
}

.modern-author-name {
  font-size: 24px;
  font-weight: 800;
  color: var(--thm-black);
  margin-bottom: 10px;
}

.modern-author-bio {
  color: #64748b;
  line-height: 1.7;
  margin-bottom: 20px;
}

.modern-author-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.modern-author-socials {
  display: flex;
  gap: 10px;
}

.modern-author-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: #f1f5f9;
  color: #64748b;
  border-radius: 50%;
  transition: all 0.3s ease;
  font-size: 14px;
}

.modern-author-socials a:hover {
  background-color: var(--thm-primary);
  color: #ffffff;
  transform: translateY(-2px);
}

.modern-author-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--thm-primary);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.modern-author-link:hover {
  color: var(--thm-black);
}

.modern-author-link i {
  transition: transform 0.3s ease;
}

.modern-author-link:hover i {
  transform: translateX(4px);
}

.theme-dark .modern-blog-author {
  background-color: var(--thm-gray-rgb);
  border-color: rgba(255, 255, 255, 0.05);
  box-shadow: none;
}

.theme-dark .modern-author-avatar img {
  border-color: #334155;
}

.theme-dark .modern-author-name {
  color: #ffffff;
}

.theme-dark .modern-author-socials a {
  background-color: #334155;
  color: #94a3b8;
}

/* Gutenberg Block Button Overrides */
.wp-block-button__link:hover,
.wp-block-button__link:focus,
.wp-block-button__link:active {
  background-color: var(--thm-primary);
  color: #ffffff;
  opacity: 1;
}

/* Modern Comment Form */
.modern-comment-form {
  margin-top: 50px;
}

#commentform {
  display: flex;
  flex-wrap: wrap;
  column-gap: 30px;
}

.modern-comment-field {
  width: 100%;
  margin-bottom: 25px;
}

.modern-comment-author,
.modern-comment-email {
  width: calc(50% - 15px);
}

.modern-comment-field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #64748b;
  margin-bottom: 10px;
}

.modern-comment-field .blog-form-control,
.modern-comment-field .blog-form-control-textarea {
  width: 100%;
  background-color: #f8fafc;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 16px 20px;
  color: var(--thm-black);
  transition: all 0.3s ease;
}

.modern-comment-field .blog-form-control:focus,
.modern-comment-field .blog-form-control-textarea:focus {
  background-color: #ffffff;
  border-color: var(--thm-primary);
  box-shadow: 0 0 0 4px rgba(var(--thm-primary-rgb), 0.1);
  outline: none;
}

.modern-comment-cookies {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 30px;
}

.modern-comment-cookies input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--thm-primary);
}

.modern-comment-cookies label {
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
  cursor: pointer;
}

.modern-submit-btn {
  padding: 16px 40px;
  border-radius: 8px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.theme-dark .modern-comment-field .blog-form-control,
.theme-dark .modern-comment-field .blog-form-control-textarea {
  background-color: var(--thm-gray-rgb);
  color: #ffffff;
}

.theme-dark .modern-comment-field .blog-form-control:focus,
.theme-dark .modern-comment-field .blog-form-control-textarea:focus {
  background-color: var(--thm-black);
}

.theme-dark .modern-comment-cookies label,
.theme-dark .modern-comment-field label {
  color: #94a3b8;
}

/* ==========================================================================
   GUTENBERG BLOCKS & CORE ELEMENTS
   ========================================================================== */

/* 1. Blockquotes & Pullquotes */
blockquote,
.wp-block-quote,
.wp-block-pullquote {
  position: relative;
  border-left: 4px solid var(--thm-primary);
  background-color: rgba(var(--thm-primary-rgb), 0.05);
  padding: 30px 40px;
  margin: 30px 0;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  font-size: 20px;
  line-height: 1.8;
  color: var(--thm-black);
  z-index: 1;
}

/* Hide any core Gutenberg quote icons to prevent overlaps */
blockquote::before,
.wp-block-quote::before,
.wp-block-pullquote::before,
blockquote p::before,
.wp-block-quote p::before,
.wp-block-pullquote p::before {
  display: none !important;
  content: none !important;
}

blockquote p,
.wp-block-quote p,
.wp-block-pullquote p {
  margin-bottom: 15px;
}

blockquote p:last-of-type,
.wp-block-quote p:last-of-type,
.wp-block-pullquote p:last-of-type {
  margin-bottom: 0;
}

blockquote cite,
.wp-block-quote cite,
.wp-block-pullquote cite,
.wp-block-quote__citation,
.wp-block-pullquote__citation {
  display: block;
  font-size: 14px;
  font-weight: 700;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--thm-gray);
  margin-top: 15px;
}

/* 2. Tables */
table,
.wp-block-table table {
  width: 100%;
  margin: 30px 0;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
}

table th,
.wp-block-table th {
  background-color: #f8fafc;
  color: var(--thm-black);
  font-weight: 700;
  text-align: left;
  padding: 15px 20px;
  border-bottom: 2px solid #e2e8f0;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.5px;
}

table td,
.wp-block-table td {
  padding: 15px 20px;
  border-bottom: 1px solid #e2e8f0;
  color: var(--thm-gray);
  vertical-align: middle;
}

table tr:last-child td,
.wp-block-table tr:last-child td {
  border-bottom: none;
}

table tbody tr:nth-child(even),
.wp-block-table tbody tr:nth-child(even) {
  background-color: #f8fafc;
}

table:not(.shop_table) tbody tr:hover,
.wp-block-table tbody tr:hover {
  background-color: rgba(var(--thm-primary-rgb), 0.05);
}

/* 3. Code & Preformatted */
pre,
code,
.wp-block-code,
.wp-block-preformatted {
  font-family: 'Courier New', Courier, monospace;
  direction: ltr;
}

code {
  background-color: rgba(var(--thm-primary-rgb), 0.1);
  color: var(--thm-primary);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

pre,
.wp-block-code,
.wp-block-preformatted {
  background-color: var(--thm-gray-rgb);
  color: #e2e8f0;
  padding: 20px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 30px 0;
  font-size: 15px;
  line-height: 1.6;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

pre code,
.wp-block-code code {
  background-color: transparent;
  color: inherit;
  padding: 0;
  border-radius: 0;
}

/* Custom Scrollbar for Pre */
pre::-webkit-scrollbar,
.wp-block-code::-webkit-scrollbar {
  height: 8px;
}

pre::-webkit-scrollbar-track,
.wp-block-code::-webkit-scrollbar-track {
  background: var(--thm-black);
  border-radius: 0 0 8px 8px;
}

pre::-webkit-scrollbar-thumb,
.wp-block-code::-webkit-scrollbar-thumb {
  background: #475569;
  border-radius: 4px;
}

pre::-webkit-scrollbar-thumb:hover,
.wp-block-code::-webkit-scrollbar-thumb:hover {
  background: var(--thm-primary);
}

/* 4. Separators (Horizontal Rules) */
hr,
.wp-block-separator {
  border: none;
  height: 2px;
  background: linear-gradient(90deg, rgba(var(--thm-primary-rgb), 0) 0%, var(--thm-primary) 50%, rgba(var(--thm-primary-rgb), 0) 100%);
  margin: 40px auto;
  width: 80%;
  opacity: 0.5;
}

.wp-block-separator.is-style-dots {
  background: none;
  border: none;
  text-align: center;
  max-width: none;
}

.wp-block-separator.is-style-dots::before {
  content: "···";
  color: var(--thm-primary);
  font-size: 30px;
  letter-spacing: 15px;
  padding-left: 15px;
  font-weight: 700;
  opacity: 0.5;
}

/* 5. Image Captions */
.entry-content figcaption,
.wp-block-image figcaption {
  text-align: center;
  font-size: 14px;
  font-style: italic;
  color: #64748b;
  margin-top: 10px;
  margin-bottom: 20px;
}

/* 6. Dark Mode Overrides */
.theme-dark blockquote,
.theme-dark .wp-block-quote,
.theme-dark .wp-block-pullquote {
  background-color: rgba(var(--thm-primary-rgb), 0.1);
  color: #ffffff;
}

.theme-dark blockquote cite,
.theme-dark .wp-block-quote cite,
.theme-dark .wp-block-pullquote cite,
.theme-dark .wp-block-quote__citation,
.theme-dark .wp-block-pullquote__citation {
  color: #94a3b8;
}

.theme-dark table,
.theme-dark .wp-block-table table {
  border-color: #334155;
}

.theme-dark table th,
.theme-dark .wp-block-table th {
  background-color: var(--thm-gray-rgb);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.1);
}

.theme-dark table td,
.theme-dark .wp-block-table td {
  border-color: #334155;
  color: #cbd5e1;
}

.theme-dark table tbody tr:nth-child(even),
.theme-dark .wp-block-table tbody tr:nth-child(even) {
  background-color: var(--thm-gray-rgb);
}

.theme-dark table tbody tr:hover,
.theme-dark .wp-block-table tbody tr:hover {
  background-color: rgba(var(--thm-primary-rgb), 0.15);
}

.theme-dark .entry-content figcaption,
.theme-dark .wp-block-image figcaption {
  color: #94a3b8;
}

/* 7. Lists (ul, ol) */
.entry-content ul,
.entry-content ol,
.wp-block-list {
  padding-left: 20px;
  margin-bottom: 30px;
}

.entry-content ul li,
.entry-content ol li,
.wp-block-list li {
  margin-bottom: 12px;
  line-height: 1.8;
  color: var(--thm-gray);
}

.entry-content ul li:last-child,
.entry-content ol li:last-child,
.wp-block-list li:last-child {
  margin-bottom: 0;
}

.entry-content ul,
ul.wp-block-list {
  list-style-type: disc;
}

.entry-content ul li::marker,
ul.wp-block-list li::marker {
  color: var(--thm-primary);
}

.entry-content ol,
ol.wp-block-list {
  list-style-type: decimal;
}

.entry-content ol li::marker,
ol.wp-block-list li::marker {
  color: var(--thm-primary);
  font-weight: 700;
}

/* Nested Lists Adjustments */
.entry-content li ul,
.entry-content li ol,
.wp-block-list li ul,
.wp-block-list li ol {
  margin-bottom: 0;
  margin-top: 10px;
}

.entry-content ul ul,
ul.wp-block-list ul {
  list-style-type: circle;
}

.entry-content ul ul ul,
ul.wp-block-list ul ul {
  list-style-type: square;
}

.entry-content ol ol,
ol.wp-block-list ol {
  list-style-type: lower-alpha;
}

.entry-content ol ol ol,
ol.wp-block-list ol ol {
  list-style-type: lower-roman;
}

.theme-dark .entry-content ul li,
.theme-dark .entry-content ol li,
.theme-dark .wp-block-list li {
  color: #cbd5e1;
}

/* Prevent long unbroken strings from overflowing the container */
.modern-entry-title,
.single-entry-title,
.entry-title,
.modern-entry-content {
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Slider padding on iPad Pro / smaller desktops to prevent next/prev overlap */
@media only screen and (max-width: 1199px) {
  .slider-caption {
    padding-left: 60px !important;
    padding-right: 60px !important;
  }

  /* Go to top button spacing */
  .page-scroll-up {
    bottom: 80px !important;
    right: 15px !important;
  }
}

/* Mobile Layout Overrides */
@media only screen and (max-width: 767px) {

  /* Prevent funfacts from touching vertically on mobile */
  .funfact-selector>div {
    margin-bottom: 30px;
  }

  .funfact-selector>div:last-child {
    margin-bottom: 0;
  }



  .modern-entry-meta {
    row-gap: 10px;
  }

  /* Blog wrapper spacing on mobile */
  .blog {
    margin-bottom: 40px;
  }

  /* Modern Blog Author Card - Mobile */
  .modern-blog-author {
    flex-direction: column;
    text-align: center;
    padding: 30px 20px;
  }

  .modern-author-footer {
    flex-direction: column;
    gap: 20px;
  }

  /* Modern Comment Form - Mobile */
  .modern-comment-author,
  .modern-comment-email {
    width: 100%;
  }
}

/* Top Bar Fix for Overlap Disabled */
.header-top-info {
  background: var(--thm-primary);
  overflow: hidden;
}

/* Container Edge Full Width */
.container-edge {
  width: 100%;
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
  margin-left: auto;
  margin-right: auto;
}

.container-edge .sticky-menu.sticky-fixed {
  padding-left: 0;
  padding-right: 0;
}