/*
Theme Name: DIY25 Forgex
Theme URI: 
Author: 
Author URI: 
Description: WordPress theme based on Forgex HTML template
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: diy25
Tags: 
*/

/* Ensure sticky/header elements sit below the admin bar for logged-in users */
body.admin-bar .txa_sticky_header {
  top: 32px; /* default admin bar height on desktop */
}

@media screen and (max-width: 782px) {
  body.admin-bar .txa_sticky_header {
    top: 46px; /* taller admin bar on small screens */
  }
}

/* Magazine single template - layout overrides
   On magazine singles the header is non-sticky and content should sit flush with header and footer.
*/
.fx-magazine-single {
  padding-top: 0;
  padding-bottom: 0;
  margin-top: 0;
  margin-bottom: 0;
}

/* Adjust for admin bar when logged in - keep layout flush */
body.admin-bar .fx-magazine-single {
  padding-top: 0;
}

@media screen and (max-width: 782px) {
  .fx-magazine-single {
    padding-top: 0;
  }
  
  body.admin-bar .fx-magazine-single {
    padding-top: 0;
  }
}

/* Magazine single template - disable sticky header and global body offset */
body.single-m24b2b_mag_issue {
  margin-top: 0 !important;
}

body.single-m24b2b_mag_issue .txa_sticky_header {
  position: static !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
  transition: none !important;
}

/* Datasheet single: hide leaderboard strip; align content offset with nav-only header */
body.single-datasheet .txa_sticky_header .fx-leaderboard-banner {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: none !important;
}

body.single-datasheet {
  --diy25-datasheet-sticky-top: 120px;
  margin-top: 120px !important;
}

@media (max-width: 767px) {
  body.single-datasheet {
    --diy25-datasheet-sticky-top: 75px;
    margin-top: 75px !important;
  }
}

body.single-video {
  --diy25-video-sticky-top: 120px;
}

@media (max-width: 767px) {
  body.single-video {
    --diy25-video-sticky-top: 75px;
  }
}

/* ==========================================================================
   Directory: Company Segment landing pages (theme integration)
   ========================================================================== */

.diy25-dir-layout {
  width: 100%;
  margin: 0;
  padding: 0 0 80px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
}

@media screen and (max-width: 991px) {
  .diy25-dir-layout {
    grid-template-columns: 1fr;
  }
}

.diy25-dir-stage {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 62px 0 0;
}

/* Segment page: hero is full-bleed, so remove top strip */
.diy25-dir-segment .diy25-dir-stage {
  padding-top: 0;
}

.diy25-dir-hero {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  margin-top: 0;
  margin-bottom: 18px;
}

/* Segment hero: full-bleed (not constrained by .diy25-dir-stage) */
.diy25-dir-segment .diy25-dir-hero {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  border-radius: 0;
}

.diy25-dir-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(0.98);
}

.diy25-dir-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 15, 16, 0.75), rgba(15, 15, 16, 0.35) 55%, rgba(15, 15, 16, 0));
}

/* When a real background image is present, swap to a vertical scrim
   so titles + stats stay legible across the full width. */
.diy25-dir-hero.has-bg::after {
  background: linear-gradient(180deg, rgba(15, 15, 16, 0.55), rgba(15, 15, 16, 0.78));
}

.diy25-dir-hero-inner {
  position: relative;
  z-index: 1;
  padding: 38px 28px;
  color: #fff;
}

/* Some theme typography utilities set explicit colors; enforce white in the segment hero. */
.diy25-dir-segment .diy25-dir-hero-inner :is(
  .diy25-dir-hero-title,
  .diy25-dir-hero-subtitle,
  .diy25-dir-hero-companies,
  .diy25-dir-stat-value,
  .diy25-dir-stat-label
) {
  color: #fff;
}

/* Keep hero content aligned with site container */
.diy25-dir-segment .diy25-dir-hero-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 140px 16px 120px;
  text-align: center;
}

@media screen and (max-width: 768px) {
  .diy25-dir-segment .diy25-dir-hero-inner {
    padding: 88px 16px 64px;
  }
}

.diy25-dir-segment .diy25-dir-hero-subtitle,
.diy25-dir-segment .diy25-dir-hero-companies {
  margin-left: auto;
  margin-right: auto;
}

.diy25-dir-segment .diy25-dir-hero-stats {
  margin-left: auto;
  margin-right: auto;
}

.diy25-dir-hero-title {
  margin: 0 0 6px;
  letter-spacing: 0.02em;
}

.diy25-dir-hero-subtitle {
  margin: 0;
  max-width: 62ch;
  opacity: 0.9;
}

.diy25-dir-segment .diy25-dir-hero-subtitle {
  font-size: 0.92rem;
  line-height: 1.55;
}

.diy25-dir-segment .diy25-dir-hero-logo img {
  width: min(320px, 78vw);
  height: auto;
  display: block;
  margin: 0 auto 14px;
  object-fit: contain;
}

.diy25-dir-hero-companies {
  margin: 10px 0 0;
  max-width: 72ch;
  opacity: 0.92;
}

.diy25-dir-hero-stats {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  max-width: 520px;
}

@media screen and (max-width: 640px) {
  .diy25-dir-hero-stats {
    grid-template-columns: 1fr;
    max-width: 100%;
  }
}

.diy25-dir-stat {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 16px 18px;
  min-width: 130px;
  backdrop-filter: blur(6px);
}

.diy25-dir-stat-value {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.05;
}

.diy25-dir-stat-label {
  margin-top: 2px;
  opacity: 0.9;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.diy25-dir-tabs {
  margin: 14px 0 18px;
}

.diy25-dir-tabs-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
  list-style: none;
}

.diy25-dir-tabs-link {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
}

.diy25-dir-tabs-link:hover {
  border-color: rgba(0, 0, 0, 0.18);
}

.diy25-dir-rowA {
  margin: 10px 0 18px;
}

.diy25-dir-section-title {
  margin: 2px 0 12px;
  font-size: 14px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.diy25-dir-seg-head {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.diy25-dir-seg-logo img {
  width: 84px;
  height: 56px;
  object-fit: contain;
  display: block;
}

.diy25-dir-seg-title {
  font-weight: 800;
  font-size: 16px;
  line-height: 1.1;
}

.diy25-dir-seg-sub {
  margin-top: 4px;
  opacity: 0.8;
  font-size: 13px;
}

.diy25-dir-panel-items {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.diy25-dir-sidebar .diy25-dir-card {
  padding: 18px;
}

.diy25-dir-sidebar .diy25-dir-card-title {
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  position: relative;
}

.diy25-dir-sidebar .diy25-dir-card-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 52px;
  background: var(--fx-clr-pr-2);
  opacity: 0.9;
}

.diy25-dir-panel-pre,
.diy25-dir-panel-post {
  font-size: 15px;
  line-height: 24px;
  opacity: 0.85;
}

.diy25-dir-panel-pre {
  padding-left: 12px;
  border-left: 3px solid rgba(255, 204, 50, 0.45);
}

.diy25-dir-panel-items {
  display: block;
  margin-top: 12px;
}

.diy25-dir-panel-item {
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.diy25-dir-panel-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.diy25-dir-panel-item:first-child {
  padding-top: 0;
}

.diy25-dir-panel-item-label {
  font-family: var(--fx-font-pr-1);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  opacity: 0.85;
}

.diy25-dir-panel-item-value {
  margin-top: 6px;
  font-size: 16px;
  line-height: 24px;
  color: var(--fd-clr-p-1);
  overflow-wrap: anywhere;
}

.diy25-dir-panel-link {
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  padding-bottom: 1px;
}

.diy25-dir-panel-link:hover {
  border-bottom-color: var(--fx-clr-pr-2);
  box-shadow: inset 0 -10px 0 rgba(255, 204, 50, 0.22);
}

/* ==========================================================================
   Directory: Segment sidebar panels — compact typography (WYSIWYG-safe)
   Scope: company_segment template only
   ========================================================================== */

.diy25-dir-segment .diy25-dir-sidebar .diy25-dir-panel .diy25-dir-panel-pre,
.diy25-dir-segment .diy25-dir-sidebar .diy25-dir-panel .diy25-dir-panel-post,
.diy25-dir-segment .diy25-dir-sidebar .diy25-dir-panel .diy25-dir-panel-item-pre,
.diy25-dir-segment .diy25-dir-sidebar .diy25-dir-panel .diy25-dir-panel-item-value {
  font-size: 15px;
  line-height: 24px;
}

.diy25-dir-segment .diy25-dir-sidebar .diy25-dir-panel .diy25-dir-panel-pre p,
.diy25-dir-segment .diy25-dir-sidebar .diy25-dir-panel .diy25-dir-panel-post p,
.diy25-dir-segment .diy25-dir-sidebar .diy25-dir-panel .diy25-dir-panel-item-pre p,
.diy25-dir-segment .diy25-dir-sidebar .diy25-dir-panel .diy25-dir-panel-item-value p {
  margin: 0;
}

.diy25-dir-segment .diy25-dir-sidebar .diy25-dir-panel .diy25-dir-panel-pre p + p,
.diy25-dir-segment .diy25-dir-sidebar .diy25-dir-panel .diy25-dir-panel-post p + p,
.diy25-dir-segment .diy25-dir-sidebar .diy25-dir-panel .diy25-dir-panel-item-pre p + p,
.diy25-dir-segment .diy25-dir-sidebar .diy25-dir-panel .diy25-dir-panel-item-value p + p {
  margin-top: 8px;
}

/* If editors used headings inside WYSIWYG, make them label-like and compact */
.diy25-dir-segment .diy25-dir-sidebar .diy25-dir-panel .diy25-dir-panel-pre :is(h1, h2, h3, h4, h5, h6),
.diy25-dir-segment .diy25-dir-sidebar .diy25-dir-panel .diy25-dir-panel-post :is(h1, h2, h3, h4, h5, h6),
.diy25-dir-segment .diy25-dir-sidebar .diy25-dir-panel .diy25-dir-panel-item-pre :is(h1, h2, h3, h4, h5, h6) {
  margin: 0 0 6px;
  font-family: var(--fx-font-pr-1);
  font-weight: 800;
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: inherit;
}

/* De-noise divider lines inside panel WYSIWYG */
.diy25-dir-segment .diy25-dir-sidebar .diy25-dir-panel :is(.diy25-dir-panel-pre, .diy25-dir-panel-post, .diy25-dir-panel-item-pre, .diy25-dir-panel-item-value) hr {
  border: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  margin: 14px 0;
  opacity: 1;
}

/* Values: slightly calmer tracking for emails/urls (often entered uppercase) */
.diy25-dir-segment .diy25-dir-sidebar .diy25-dir-panel .diy25-dir-panel-item-value {
  letter-spacing: 0;
  text-transform: none;
}

/* Tighten row rhythm a touch for compact cards */
.diy25-dir-segment .diy25-dir-sidebar .diy25-dir-panel-item {
  padding: 10px 0;
}

@media screen and (max-width: 640px) {
  .diy25-dir-segment .diy25-dir-sidebar .diy25-dir-panel .diy25-dir-panel-pre,
  .diy25-dir-segment .diy25-dir-sidebar .diy25-dir-panel .diy25-dir-panel-post,
  .diy25-dir-segment .diy25-dir-sidebar .diy25-dir-panel .diy25-dir-panel-item-pre,
  .diy25-dir-segment .diy25-dir-sidebar .diy25-dir-panel .diy25-dir-panel-item-value {
    font-size: 14px;
    line-height: 22px;
  }
}

.diy25-dir-company-slogan {
  margin-top: 4px;
  opacity: 0.8;
}

.diy25-dir-company-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

@media screen and (max-width: 640px) {
  .diy25-dir-company-grid {
    grid-template-columns: 1fr;
  }
}

.diy25-dir-company-card {
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.diy25-dir-company-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.10);
}

.diy25-dir-company-card-link {
  display: block;
  padding: 16px;
  text-decoration: none;
  color: inherit;
}

.diy25-dir-company-logo img {
  width: 120px;
  height: 70px;
  object-fit: contain;
  display: block;
  margin-bottom: 10px;
}

.diy25-dir-company-title {
  margin: 0;
  font-size: 18px;
}

.diy25-dir-company-meta {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  opacity: 0.95;
}

.diy25-dir-company-stream {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.diy25-dir-company-section {
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  overflow: hidden;
}

.diy25-dir-company-head-link {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 14px;
  padding: 16px;
  text-decoration: none;
  color: inherit;
  align-items: center;
}

@media screen and (max-width: 640px) {
  .diy25-dir-company-head-link {
    grid-template-columns: 1fr;
  }
}

.diy25-dir-company-head-text h3 {
  margin: 0;
}

.diy25-dir-company-news {
  padding: 0 16px 16px;
}

.diy25-dir-company-news-title {
  margin: 0 0 10px;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.diy25-dir-company-news-empty {
  margin: 0;
  opacity: 0.8;
}

.diy25-dir-chip {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(252, 168, 4, 0.14);
  border: 1px solid rgba(252, 168, 4, 0.26);
  font-size: 12px;
  font-weight: 600;
}

.diy25-dir-sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.diy25-dir-card {
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  padding: 16px;
}

.diy25-dir-card-title {
  margin: 0 0 10px;
  font-size: 14px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.diy25-dir-card-muted {
  margin: 6px 0 0;
  opacity: 0.75;
  font-size: 13px;
}

.diy25-dir-card-row {
  margin: 6px 0 0;
}

.diy25-dir-linklist {
  margin: 0;
  padding-left: 18px;
}

.diy25-dir-centres {
  display: grid;
  gap: 12px;
}

.diy25-dir-centre-name {
  font-weight: 700;
}

.diy25-dir-centre-address {
  margin-top: 4px;
  opacity: 0.8;
  font-size: 13px;
}

.diy25-dir-centre-phone,
.diy25-dir-centre-map {
  margin-top: 4px;
  font-size: 13px;
}

.diy25-dir-card-promo {
  padding: 10px;
}

.diy25-dir-promo-img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

/* ==========================================================================
   Directory: Single company refresh (simple + modern)
   ========================================================================== */

.diy25-company-single {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 80px;
}

/* Single company header is sticky; prevent overlap. */
body.single-company .diy25-company-single {
  padding-top: 120px;
}

.diy25-company-header {
  margin-bottom: 18px;
}

.diy25-video-single {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 80px;
}

/* Single video header is sticky; prevent overlap. */
.single-video .diy25-video-single,
.post-type-single-video .diy25-video-single,
body.single-video .diy25-video-single {
  padding-top: 120px;
}

.diy25-video-hero-inner {
  text-align: left;
}

.diy25-video-title {
  margin: 0;
  letter-spacing: 0.02em;
}

.diy25-video-meta {
  margin-top: 10px;
  opacity: 0.9;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
}

.diy25-video-meta-item + .diy25-video-meta-item {
  position: relative;
}

.diy25-video-company-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.diy25-video-company-link:hover {
  opacity: 0.9;
}

.diy25-video-body {
  margin-top: 18px;
}

/* Video topbar: sticky 3-zone header like datasheets. */
.diy25-video-topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px 16px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.10);
  background: #fff;
  position: sticky;
  top: var(--diy25-video-sticky-top, 120px);
  z-index: 6;
  border-radius: 14px;
}

/* When the theme header slides away on scroll-down, pin flush to viewport top. */
body.single-video:has(.txa_sticky_header.txa_sticky:not(.txa_sticky_show)) .diy25-video-topbar {
  top: 0;
  z-index: 9;
}

body.single-video.admin-bar:has(.txa_sticky_header.txa_sticky:not(.txa_sticky_show)) .diy25-video-topbar {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.single-video.admin-bar:has(.txa_sticky_header.txa_sticky:not(.txa_sticky_show)) .diy25-video-topbar {
    top: 46px;
  }
}

@media screen and (max-width: 991px) {
  .diy25-video-topbar {
    grid-template-columns: 1fr;
    border-radius: 14px;
  }
}

.diy25-video-topbar__left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.diy25-video-topbar__logo {
  display: block;
  padding: 4px 8px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.10);
  border-radius: 999px;
  line-height: 0;
  flex-shrink: 0;
}

.diy25-video-topbar__logo img {
  max-height: 28px;
  width: auto;
  height: auto;
  display: block;
}

.diy25-video-topbar__titles {
  min-width: 0;
}

.diy25-video-topbar__brand {
  display: inline-block;
  text-decoration: none;
  color: inherit;
  font-weight: 700;
}

.diy25-video-topbar__sub {
  margin-top: 2px;
  font-size: 12px;
  opacity: 0.85;
}

.diy25-video-topbar__center {
  display: flex;
  justify-content: center;
  min-width: 0;
}

.diy25-video-topbar__right {
  display: flex;
  justify-content: flex-end;
  min-width: 0;
}

/* Tabs inside the topbar: keep pill styling, remove extra padding. */
.diy25-video-topbar .diy25-video-tab-nav.diy25-company-tab-nav {
  padding: 0;
  margin: 0;
}

.diy25-video-tab-panels {
  padding-top: 6px;
}

.diy25-video-panel {
  display: none;
}

.diy25-video-panel.is-active {
  display: block;
}

.diy25-video-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px;
  align-items: start;
}

@media screen and (max-width: 991px) {
  .diy25-video-cols {
    grid-template-columns: 1fr;
  }
}

.diy25-video-side-title {
  margin: 2px 0 12px;
  font-size: 14px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.diy25-video-related {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.diy25-video-related-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  align-items: center;
}

.diy25-video-related-thumb {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #0f0f10;
}

.diy25-video-related-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.diy25-video-related-duration {
  position: absolute;
  right: 8px;
  bottom: 8px;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 6px;
  font-variant-numeric: tabular-nums;
}

.diy25-video-related-title {
  font-weight: 700;
  font-size: 13px;
  line-height: 1.25;
}

.diy25-video-related-meta {
  margin-top: 6px;
  font-size: 12px;
  opacity: 0.8;
}

.diy25-video-side-empty {
  margin: 0;
  opacity: 0.8;
}

.diy25-video-card {
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  padding: 16px;
}

.diy25-video-card-title {
  margin: 0 0 10px;
}

.diy25-video-qa-search {
  margin-top: 12px;
}

.diy25-video-qa-input {
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  padding: 10px 14px;
}

.diy25-video-qa-empty,
.diy25-video-ask-note {
  opacity: 0.8;
}

.diy25-video-player {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #0f0f10;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.10);
}

.diy25-video-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.diy25-video-description {
  margin: 18px 0 0;
}

.diy25-video-description :is(h1, h2, h3, h4, h5, h6) {
  margin: 18px 0 10px;
}

.diy25-video-description p {
  margin: 0;
}

.diy25-video-description p + p {
  margin-top: 12px;
}

.diy25-video-missing {
  text-align: center;
  opacity: 0.75;
  margin: 18px 0 0;
}

.diy25-company-header-inner {
  text-align: center;
}

.diy25-company-logo img {
  width: min(320px, 78vw);
  height: auto;
  display: block;
  margin: 0 auto 14px;
  object-fit: contain;
}

.diy25-company-title {
  margin: 0;
  letter-spacing: 0.02em;
}

.diy25-company-excerpt,
.diy25-company-description {
  margin-top: 10px;
  opacity: 0.9;
  max-width: 72ch;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.diy25-company-description-preview {
  margin: 0 0 12px;
}

.diy25-company-description-full {
  text-align: left;
}

.diy25-company-description-full p,
.diy25-company-description-full ul,
.diy25-company-description-full ol {
  margin: 0 0 0.85em;
}

.diy25-company-description-full p:last-child,
.diy25-company-description-full ul:last-child,
.diy25-company-description-full ol:last-child {
  margin-bottom: 0;
}

.diy25-company-description-full a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.diy25-company-description[data-company-read-more]:not(.is-expanded) .diy25-company-description-full {
  display: none;
}

.diy25-company-description[data-company-read-more].is-expanded .diy25-company-description-preview {
  display: none;
}

.diy25-company-read-more-btn {
  margin-top: 10px;
  display: inline-block;
}

.diy25-company-contact {
  max-width: min(720px, 92vw);
  margin: 0 auto;
  padding: 4px 0 24px;
}

.diy25-company-contact-section + .diy25-company-contact-section {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.diy25-company-contact-heading {
  margin: 0 0 14px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}

.diy25-company-contact-rows {
  margin: 0;
}

.diy25-company-contact-row {
  display: grid;
  grid-template-columns: minmax(120px, 34%) 1fr;
  gap: 8px 16px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.diy25-company-contact-row:last-child {
  border-bottom: none;
}

.diy25-company-contact-label,
.diy25-company-contact-value {
  margin: 0;
}

.diy25-company-contact-label {
  font-weight: 600;
  font-size: 0.92rem;
  opacity: 0.8;
}

.diy25-company-contact-value a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.diy25-company-contact-value a:hover {
  opacity: 0.85;
}

.diy25-company-contact-address {
  margin: 0;
  line-height: 1.6;
}

.diy25-company-contact-map-link {
  margin: 14px 0 0;
}

.diy25-company-contact-cards {
  display: grid;
  gap: 12px;
}

.diy25-company-contact-card {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 16px 18px;
  background: #fff;
}

.diy25-company-contact-card-title {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.diy25-company-contact-card-meta {
  margin: 0 0 6px;
  opacity: 0.9;
}

.diy25-company-contact-card-meta:last-child {
  margin-bottom: 0;
}

.diy25-company-contact-card-meta a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media screen and (max-width: 640px) {
  .diy25-company-contact-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

.diy25-company-tabs {
  margin-top: 18px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.diy25-company-single .diy25-company-tab-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 16px 0;
  flex-wrap: wrap;
}

.diy25-company-tab-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 16px 0;
  flex-wrap: wrap;
}

/* Match header PROFILE button (fx-pr-btn-1 in fx-header-6-action-link). */
.diy25-company-single .diy25-company-tab-nav .diy25-company-tab-btn,
.diy25-company-single .diy25-company-read-more-btn,
.diy25-company-single .diy25-company-map-btn {
  appearance: none;
  display: inline-block;
  border: 2px solid var(--fx-clr-pr-2, #ffcc32);
  background: #fff;
  border-radius: 8px;
  padding: 11px 18px;
  font-family: var(--fx-font-pr-2, inherit);
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #000;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}

.diy25-company-single .diy25-company-tab-nav .diy25-company-tab-btn:hover,
.diy25-company-single .diy25-company-tab-nav .diy25-company-tab-btn:focus-visible,
.diy25-company-single .diy25-company-read-more-btn:hover,
.diy25-company-single .diy25-company-read-more-btn:focus-visible,
.diy25-company-single .diy25-company-map-btn:hover,
.diy25-company-single .diy25-company-map-btn:focus-visible {
  background: var(--fx-clr-pr-2, #ffcc32);
  border-color: var(--fx-clr-pr-2, #ffcc32);
  color: #000;
  outline: none;
}

.diy25-company-single .diy25-company-tab-nav .diy25-company-tab-btn.is-active {
  background: var(--fx-clr-pr-2, #ffcc32);
  border-color: var(--fx-clr-pr-2, #ffcc32);
  color: #000;
}

/* Video single keeps pill tabs unless it adds .diy25-company-single. */
.diy25-company-tab-btn {
  appearance: none;
  border: 1px solid rgba(0, 0, 0, 0.10);
  background: #fff;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.01em;
  cursor: pointer;
}

.diy25-company-tab-btn.is-active {
  border-color: rgba(252, 168, 4, 0.55);
  background: rgba(252, 168, 4, 0.14);
}

.diy25-company-tab-panels {
  padding-top: 8px;
}

.diy25-company-panel {
  display: none;
  padding: 18px 0 0;
}

.diy25-company-panel.is-active {
  display: block;
}

.diy25-company-empty {
  text-align: center;
  opacity: 0.75;
  margin: 18px 0 0;
}

.diy25-company-list {
  display: grid;
  gap: 12px;
  margin-top: 6px;
}

/* Posts + datasheets use Forgex blog cards; make it 3 columns on desktop. */
.diy25-company-single .fx-blog-page-item.has-two-col {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

@media screen and (max-width: 991px) {
  .diy25-company-single .fx-blog-page-item.has-two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 640px) {
  .diy25-company-single .fx-blog-page-item.has-two-col {
    grid-template-columns: 1fr;
  }
}

.diy25-company-item {
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  padding: 14px 14px;
  background: #fff;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.diy25-company-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.10);
}

.diy25-company-item-title {
  font-size: 16px;
  margin: 0;
}

.diy25-company-item-meta {
  margin-top: 6px;
  opacity: 0.7;
  font-size: 13px;
}

.diy25-company-files {
  margin: 6px 0 0;
  padding-left: 18px;
}

/* Videos tab: clickable thumbnail cards (no inline embed) */
.diy25-company-videos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 6px;
}

@media screen and (max-width: 991px) {
  .diy25-company-videos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 640px) {
  .diy25-company-videos {
    grid-template-columns: 1fr;
  }
}

.diy25-company-video-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.diy25-company-video-card:focus-visible {
  outline: none;
}

.diy25-company-video-card:focus-visible .diy25-company-video-thumb {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.diy25-company-video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0f0f10;
  border-radius: 14px;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.diy25-company-video-card:hover .diy25-company-video-thumb,
.diy25-company-video-card:focus-visible .diy25-company-video-thumb {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.12);
}

.diy25-company-video-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 320ms ease;
}

.diy25-company-video-card:hover .diy25-company-video-thumb img,
.diy25-company-video-card:focus-visible .diy25-company-video-thumb img {
  transform: scale(1.04);
}

.diy25-company-video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.35));
}

.diy25-company-video-play svg {
  width: 56px;
  height: 56px;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 999px;
  padding: 12px 10px 12px 14px;
  backdrop-filter: blur(4px);
  transition: transform 200ms ease, background 200ms ease;
}

.diy25-company-video-card:hover .diy25-company-video-play svg,
.diy25-company-video-card:focus-visible .diy25-company-video-play svg {
  transform: scale(1.06);
  background: rgba(0, 0, 0, 0.7);
}

.diy25-company-video-duration {
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 3px 7px;
  border-radius: 6px;
  font-variant-numeric: tabular-nums;
}

.diy25-company-video-title {
  margin: 0;
  font-size: 16px;
  line-height: 1.3;
}

/* Magazine single template - prevent footer overlap */
body.single-m24b2b_mag_issue .fx-footer-5-area {
  margin-top: 0 !important;
}

/* Magazine single mobile: keep footer below content and prevent overlap */
@media screen and (max-width: 991px) {
  body.single-m24b2b_mag_issue .fx-magazine-single {
    min-height: 100vh;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
  }

  body.single-m24b2b_mag_issue .fx-magazine-content {
    flex: 1 1 auto;
    min-height: 100vh;
    position: relative;
    z-index: 1;
  }

  body.single-m24b2b_mag_issue .fx-footer-5-area {
    position: relative;
    z-index: 0;
    flex-shrink: 0;
  }
}

/* Magazine single desktop: no extra gap between embed and footer */
@media screen and (min-width: 992px) {
  body.single-m24b2b_mag_issue .fx-magazine-single {
    min-height: 0;
    margin-bottom: 0;
    padding-bottom: 0;
    height: auto;
  }

  body.single-m24b2b_mag_issue .fx-magazine-content {
    min-height: 0;
    margin-bottom: 0;
    padding-bottom: 0;
    height: auto;
  }

  body.single-m24b2b_mag_issue .mag-issuu-embed {
    display: block;
    height: 100vh;
    max-height: 100vh;
  }

  body.single-m24b2b_mag_issue .mag-issuu-embed iframe {
    height: 100%;
    max-height: 100vh;
    vertical-align: top;
    display: block;
  }
}

/* Magazine archive template - preserve image aspect ratio */
.post-type-archive-m24b2b_mag_issue .fx-blog-page-item {
  overflow: visible !important; /* Override overflow: hidden on parent container */
}

.post-type-archive-m24b2b_mag_issue .fx-blog-1-item-single .item-img {
  height: auto !important;
  overflow: visible !important; /* Override .fix class overflow: hidden */
  border-radius: 8px;
}

.post-type-archive-m24b2b_mag_issue .fx-blog-1-item-single .item-img img {
  width: 100%;
  height: auto !important;
  max-width: 100%;
  object-fit: unset !important;
  object-position: unset;
  display: block;
}

/* Magazine category archive template - preserve image aspect ratio */
.tax-m24b2b_magazine_category .fx-blog-page-item {
  overflow: visible !important; /* Override overflow: hidden on parent container */
}

.tax-m24b2b_magazine_category .fx-blog-1-item-single .item-img {
  height: auto !important;
  overflow: visible !important; /* Override .fix class overflow: hidden */
  border-radius: 8px;
}

.tax-m24b2b_magazine_category .fx-blog-1-item-single .item-img img {
  width: 100%;
  height: auto !important;
  max-width: 100%;
  object-fit: unset !important;
  object-position: unset;
  display: block;
}

/* Remove margin from banner containers when display mode is rotate */
.m24b2b-banner-container[data-display-mode="rotate"] {
  margin: 0 !important;
}

/* Hero Blog Carousel Styling Adjustments */
/* Increase thumbnail height */
.fx-hero-6-blog .fx-blog-4-item:is(.fx-blog-5) .item-img {
  height: 400px !important;
}

/* Reduce content area spacing */
.fx-hero-6-blog .fx-blog-4-item:is(.fx-blog-5) .item-content {
  padding: 20px 24px !important;
}

@media (max-width: 767px) {
  .fx-hero-6-blog .fx-blog-4-item:is(.fx-blog-5) .item-content {
    padding: 20px 24px !important;
  }
}

@media only screen and (min-width: 576px) and (max-width: 767px) {
  .fx-hero-6-blog .fx-blog-4-item:is(.fx-blog-5) .item-content {
    padding: 18px 20px !important;
  }
}

/* Reduce title bottom margin */
.fx-hero-6-blog .fx-blog-4-item:is(.fx-blog-5) .item-title {
  margin-bottom: 25px !important;
}

/* Header buttons - use heading font */
.fx-header-6-action-link .fx-pr-btn-1 {
  font-family: var(--fx-font-pr-2);
}

/* M24B2B Auth Forms - Fonts and Colors Only */
.m24b2b-auth-form .wp-block-heading,
.m24b2b-auth-form h2,
.m24b2b-auth-form h3 {
  font-family: var(--fx-font-pr-2) !important;
  color: #000 !important;
}

.m24b2b-auth-form .wp-block-label,
.m24b2b-auth-form label {
  font-family: var(--fx-font-pr-1) !important;
  color: #000 !important;
}

.m24b2b-auth-form .wp-block-input,
.m24b2b-auth-form input[type="text"],
.m24b2b-auth-form input[type="email"],
.m24b2b-auth-form input[type="password"],
.m24b2b-auth-form select {
  font-family: var(--fx-font-pr-1) !important;
  color: #000 !important;
}

.m24b2b-auth-form .wp-block-button__link,
.m24b2b-auth-form .wp-block-button__link.send-otp-btn,
.m24b2b-auth-form .wp-block-button__link.verify-otp-btn {
  font-family: var(--fx-font-pr-2) !important;
  background-color: var(--fx-clr-pr-1) !important;
  color: #fff !important;
}

.m24b2b-auth-form .wp-block-button__link:hover:not(:disabled) {
  background-color: #000 !important;
}

.m24b2b-auth-form .has-link-color,
.m24b2b-auth-form a.has-link-color,
.m24b2b-auth-form .resend-otp-link {
  color: var(--fx-clr-pr-1) !important;
}

.m24b2b-auth-form .otp-input {
  font-family: var(--fx-font-pr-1) !important;
  color: #000 !important;
}

.m24b2b-auth-form p.has-text-align-center {
  font-family: var(--fx-font-pr-1) !important;
  color: #666 !important;
}

.m24b2b-auth-form .wp-block-group > .wp-block-group svg {
  color: var(--fx-clr-pr-1) !important;
}

.m24b2b-auth-form .spinner {
  border-color: var(--fx-clr-pr-1) !important;
  border-top-color: currentColor !important;
}

/* Reduce body margin-top on mobile devices */
@media (max-width: 767px) {
  body {
    margin-top: 75px !important;
  }
}

/* Issuu magazine embed wrapper */
.mag-issuu-embed {
  position: relative;
  max-width: 100%;
}

.mag-issuu-embed iframe {
  width: 100%;
  max-width: 100%;
  height: 100vh;
  border: 0;
  display: block;
}
