/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
:root {
    --primary-color: #000;
    --secondary-color: #666;
    --background-color: #fff;
    --accent-color: #f5f5f5;
    --spacing-unit: 2rem;
    --font-family: 'Raleway', sans-serif;
}
body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--primary-color);
    background-color: var(--background-color);
}
/* Typography */
h1, h3, h4, h5, h6 {
    font-family: var(--font-family);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}
h1 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    font-weight: 200;
}
h2 {
    font-family: var(--font-family);
    font-weight: 200;
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: 0.04em;
}
p {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}
/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
}
/* Main Content */
.site-main {
    margin-top: 0;
    padding-top: var(--spacing-unit);
    padding-bottom: 0;
}
/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    h2 {
        font-size: 2rem;
    }
    .site-header {
        padding: 1rem 0;
    }
    .main-navigation ul {
        gap: 1rem;
    }
}
/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}
/* Content width constraint for inner blocks */
.content-width {
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}
/* Auto-constrain inner content width for full-width sections (fix for block editor markup) */
.wp-block-group.alignfull > .wp-block-group__inner-container,
.wp-block-cover.alignfull > .wp-block-group__inner-container {
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}
@media (max-width: 900px) {
  .content-width {
    padding-left: 16px;
    padding-right: 16px;
  }
}
body .wp-block-group.alignfull.has-background:first-of-type {
    margin-top: -80px !important;
}
a {
  color: #8e1a1d;
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover {
  color: #aa103f;
  text-decoration: underline;
}
/* Header */
.site-header {
    padding: var(--spacing-unit) 0;
    position: fixed;
    width: 100%;
    top: 0;
    background: transparent;
    z-index: 1000;
    transition: background 0.5s cubic-bezier(0.23,1,0.32,1) 0.2s;
}
.site-header.sticky-nav {
    height: 80px;
    min-height: 80px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    /* background: #101014; */
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    opacity: 0.9;
}
.site-header.header-bg-fade-in {
    background: #101014 !important;
}
.site-header.non-home {
    background: #101014 !important;
    opacity: 1;
}
.site-header.non-home.nav-fade-in {
    transform: translateY(0);
}
.nav-inner {
    height: 80px;
    min-height: 80px;
    display: flex;
    align-items: center;
    max-width: 1140px;
    margin: 0 auto;
    width: 100%;
    padding: 0;
    opacity: 1;
    transform: none;
    transition: none;
}
.nav-inner.nav-fade-in {
    opacity: 1;
    transform: translateY(0);
}
.site-branding {
    display: flex;
    align-items: center;
    margin-right: 32px;
}
.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}
.site-title a {
    color: #fff;
    text-decoration: none;
}
.main-navigation {
    display: flex;
    align-items: center;
}
/* Desktop nav-menu styles */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
    opacity: 1;
    transform: none;
    pointer-events: auto;
}
.nav-menu a {
    color: #fff;
    text-decoration: none;
    position: relative;
    padding: 0.5rem 0;
}
.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #8e1a1d;
    transition: width 0.3s ease;
}
.nav-menu a:hover::after {
    width: 100%;
}
@media (max-width: 900px) {
    .nav-menu {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100vw;
        background: #101014;
        z-index: 1100;
        transition:
          max-height 0.5s cubic-bezier(0.23,1,0.32,1),
          opacity 0.5s cubic-bezier(0.23,1,0.32,1),
          transform 0.5s cubic-bezier(0.23,1,0.32,1);
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: 0;
        padding: 16px 0;
    }
    .nav-menu.menu-open {
        max-height: 500px;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
        overflow: visible;
    }
    .nav-menu:not(.menu-open) {
        max-height: 0;
        opacity: 0;
        transform: translateY(-32px);
        pointer-events: none;
        overflow: hidden;
    }
    .nav-menu li {
        margin: 0;
        padding: 0;
        width: 100%;
        border-bottom: 1px solid #222;
    }
    .nav-menu li:last-child {
        border-bottom: none;
    }
    .nav-menu a {
        font-size: 1rem;
        padding: 16px 32px;
        display: block;
        width: 100%;
        text-align: left;
        color: #fff;
    }
    .nav-menu a::after {
        left: 32px;
        right: 32px;
        width: 0;
    }
    .nav-menu a:hover::after {
        width: calc(100% - 64px);
    }
}
/* Hamburger menu styles */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 40px;
    width: 40px;
    margin-left: auto;
    z-index: 1101;
    margin-bottom: 2px;
    position: relative;
}
.nav-toggle-bar {
    display: block;
    width: 24px;
    height: 1px;
    background: #fff;
    margin: 3px 0;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.23,1,0.32,1);
}
/* Hamburger to X animation */
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}
@media (max-width: 900px) {
    .nav-toggle {
        display: flex;
    }
}
@media (min-width: 901px) {
  .main-navigation {
    position: relative;
    align-items: center;
    background: transparent;
    margin-left: 0;
  }
  .nav-menu {
    display: flex !important;
    align-items: center !important;
    gap: 1.2rem !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
    z-index: 1100 !important;
    position: relative !important;
    background: none !important;
    border: none !important;
  }
  .nav-menu a {
    color: #fff !important;
    background: none !important;
    border: none !important;
    font-size: 0.8rem !important;
  }
}
.custom-logo {
  width: 300px !important;
  height: auto !important;
  display: block;
  color: #fff !important;
}
.custom-logo svg {
  width: 100%;
  height: auto;
  display: block;
  color: #fff !important;
  fill: #fff !important;
}
/* Rainbow glow effect on logo hover */
.custom-logo-link:hover img,
.custom-logo:hover,
.custom-logo:focus,
.custom-logo svg:hover,
.custom-logo svg:focus {
    filter: drop-shadow(0 0 3px #ff00cc);
    transition: filter 0.3s ease;
}
/* Hero Section Styles */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(to right, #f8f9fa, #e9ecef);
    text-align: center;
}
.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
}
.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #666;
}
.hero .cta-button {
    background-color: #fff;
    color: #000;
    border: 1px solid #000;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    font-weight: normal;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}
.hero .cta-button:hover {
    background-color: #000;
    color: #fff;
}
/* Hero Section */
.hero-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(120deg, #101014 60%, #1a1a22 100%);
  min-height: 60vh;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.hero-section::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 6px;
  background: linear-gradient(90deg, #ff00cc, #00ffea, #ffff00, #ff9900, #ff0000);
  opacity: 0.7;
  border-radius: 3px;
}
.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  z-index: 1;
  width: 100%;
  box-sizing: border-box;
}
.hero-content > * {
  text-align: center !important;
  margin-left: auto;
  margin-right: auto;
}
.hero-content h1 {
  font-size: 3rem;
  font-weight: 200;
  color: #fff;
  margin-bottom: 2rem;
  line-height: 1.1;
}
.hero-content h1 .highlight {
  color: #ff00cc;
  background: linear-gradient(90deg, #ff00cc, #00ffea, #ffff00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}
.hero-content p {
  font-size: 1.25rem;
  color: #bdbdbd;
  margin-bottom: 2.5rem;
  max-width: 600px;
  text-align: center !important;
  margin-left: auto;
  margin-right: auto;
}
.cta-button,
.wp-block-button__link.cta-button,
.wp-block-button__link.cta-button:visited {
  background: #fff !important;
  color: #000 !important;
  border: 1px solid #101014 !important;
  padding: 6px 16px !important;
  border-radius: 0 !important;
  font-weight: 400 !important;
  text-decoration: none !important;
  font-size: .75em !important;
  box-shadow: none !important;
  letter-spacing: 0.02em !important;
  transition: background 0.2s, color 0.2s, border 0.2s, transform 0.2s !important;
  display: inline-block !important;
}
.wp-block-button__link.cta-button:hover {
  background: #101014 !important;
  color: #fff !important;
  border-color: #101014 !important;
  transform: scale(1.05) !important;
}
.hero-image {
  flex: 1 1 40%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  z-index: 1;
}
.hero-image::before {
  content: '';
  display: block;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff00cc 0%, #00ffea 100%);
  opacity: 0.12;
}
@media (max-width: 900px) {
  .hero-section {
    flex-direction: column;
    padding: 48px 0 32px 0;
  }
  .hero-content {
    padding-left: 24px;
    padding-right: 24px;
    max-width: 100%;
  }
  .hero-image {
    margin-top: 32px;
    min-height: 160px;
  }
  .hero-image::before {
    width: 120px;
    height: 120px;
  }
}
@media (max-width: 600px) {
  .hero-section {
    padding: 32px 0 24px 0;
  }
  .hero-content {
    padding-left: 12px;
    padding-right: 12px;
  }
  .hero-content h1 {
    font-size: 2rem;
  }
  .hero-image {
    min-height: 80px;
  }
  .hero-image::before {
    width: 60px;
    height: 60px;
  }
  .site-main {
    padding-left: 0;
    padding-right: 0;
  }
  h1, .wp-block-heading {
    font-size: 4rem !important;
    line-height: 1.1;
  }
  .hero-description, p {
    font-size: 1rem !important;
  }
  .home-hero {
    padding-top: 300px !important;
  }
}
.headline-anim-wrapper {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  position: relative;
}
#headline-line {
  flex-shrink: 0;
}
#hero-headline.hidden {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s, transform 0.4s;
}
#hero-headline.visible {
  opacity: 1;
  transform: translateY(0);
}
.subhead-title {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 2rem 0;
}
.scroll-animated-line-wrapper {
  position: fixed;
  left: 0;
  top: 200px;
  height: 2px;
  overflow: hidden;
  z-index: 9999;
  pointer-events: none;
}
.scroll-animated-line {
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
  height: 2px;
  background: #ff0000;
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: left;
  z-index: 10;
  pointer-events: none;
}
.subhead-title h2 {
  position: relative;
  z-index: 1;
  background: transparent;
  margin: 0;
  padding: 0 8px;
  text-align: center;
  width: 100%;
}
.section-with-animated-lines {
  position: relative;
  width: 100%;
  margin-bottom: 10px;
}
.section-with-animated-lines .section-heading {
  text-align: center;
}
.section-headline {
  position: relative;
  display: inline-block;
  z-index: 2;
  margin-bottom: 1.5em;
  text-align: left;
}
.section-headline::after {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  bottom: -6px;
  height: 3px;
  width: 0;
  background: #ff0000;
  border-radius: 2px;
  transition: width 0.7s cubic-bezier(0.23,1,0.32,1);
  z-index: 2;
}
.section-with-animated-lines.animated .section-headline::after {
  width: 100%;
}
.headline-underline-outer {
  position: relative;
  width: 100%;
  margin-bottom: 2rem;
}
.scroll-animated-fullwidth-line {
  position: absolute;
  left: 0;
  top: 0; /* Adjust as needed for vertical placement */
  height: 3px;
  width: 0;
  background: #ff0000;
  border-radius: 2px;
  transition: width 0.7s cubic-bezier(0.23,1,0.32,1);
  z-index: 1;
}
.headline-underline-outer.underline-animated .scroll-animated-fullwidth-line {
  width: 100%;
}
/* Wrap around the headline text */
.animated-underline-wrap {
  position: relative;
  display: inline-block;
  padding-bottom: 6px; /* creates space for the underline */
}
.fullwidth-animated-line {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 100%;
  background-color: #8e1a1d;
  transform-origin: left center;
  z-index: 2;
}
.static-underline {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 100%;
  background-color: blue;
  z-index: 1;
}
.wp-block-group.subhead-title {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}
.home-hero {
  position: relative;
  overflow: hidden;
  min-height: 60vh;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 0 !important;
  box-sizing: border-box;
}
body {
  overflow-x: hidden;
}
*, *::before, *::after {
  box-sizing: border-box;
}
.site-main,
.hero-section {
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
}
.hero-bg-video {
  position: absolute;
  top: 0; left: 0;
  width: 100vw;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  z-index: 0;
  pointer-events: none;
}
.wp-block-group__inner-container {
  position: relative;
  z-index: 1;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
.wp-block-group.alignfull.home-hero.has-background > .wp-block-group__inner-container {
  padding-top: 180px !important;
  padding-bottom: 80px !important;
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box !important;
}
.section-animated-lines {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 2rem;
  margin-bottom: 2rem;
}
.book-testimonials-carousel .wp-block-group__inner-container {
  position: static !important;
}
h3 {
  font-weight: 400 !important;
}
.cta-title {
  font-weight: 400 !important;
}
/* ==== Portfolio Archive Grid ==== */
.portfolio-section {
  padding: 64px 0 32px 0;
  background: #fff;
  margin-bottom: 3rem;
}
.portfolio-section h2 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 2.5rem;
  color: #101014;
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
}
@media (max-width: 900px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}
.portfolio-item {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s, transform 0.3s;
}
.portfolio-item:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
  transform: translateY(-4px) scale(1.02);
}
.portfolio-item a {
  text-decoration: none;
  color: inherit;
}
.portfolio-item img {
  width: 100%;
  height: 220px;
  -o-object-fit: cover;
     object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.23,1,0.32,1);
  display: block;
}
.portfolio-item:hover img {
  transform: scale(1.07);
}
.portfolio-item-content {
  padding: 1.5rem 1.2rem 1.2rem 1.2rem;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.portfolio-item .entry-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  color: #101014;
}
.portfolio-item .entry-title a {
  color: #101014;
  text-decoration: none;
  transition: color 0.2s;
}
.portfolio-item .entry-title a:hover {
  color: #ff0000;
}
.portfolio-item .entry-meta {
  font-size: 0.95rem;
  color: #888;
  margin-top: 0.2rem;
}
.portfolio-item .category {
  display: inline-block;
  background: #f5f5f5;
  color: #333;
  border-radius: 4px;
  padding: 2px 8px;
  margin-right: 6px;
  font-size: 0.85em;
}
/* ==== Single Portfolio Page ==== */
.portfolio-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1140px;
  margin: 0 auto;
  padding: 64px 16px;
}
.portfolio-main {
  flex: 1 1 65%;
}
.portfolio-main h2 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: #101014;
}
.portfolio-main p {
  font-size: 1rem;
  line-height: 1.7;
  color: #333;
  margin-bottom: 2rem;
}
.portfolio-sidebar {
  flex: 1 1 30%;
  background: #f9f9f9;
  padding: 1.5rem;
  border-left: 3px solid #e0e0e0;
  border-radius: 6px;
}
.portfolio-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.portfolio-sidebar li {
  margin-bottom: 1rem;
  font-size: 1rem;
  color: #333;
}
.portfolio-sidebar strong {
  display: block;
  font-weight: 600;
  color: #111;
  margin-bottom: 0.2rem;
}
.portfolio-hero img {
  width: 100%;
  height: auto;
  margin-bottom: 2rem;
  border-radius: 8px;
}
@media (max-width: 768px) {
  .portfolio-layout {
    flex-direction: column;
  }

  .portfolio-sidebar {
    border-left: none;
    border-top: 3px solid #e0e0e0;
    margin-top: 2rem;
  }
}
/* ==== Case Study Blocks ==== */
.case-studies-parallax-header {
  position: relative;
  width: 100%;
  height: 45vh;
  min-height: 320px;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: 1;
}
@media (max-width: 900px) {
  .case-studies-parallax-header {
    background-attachment: scroll;
    height: 30vh;
    min-height: 180px;
  }
}
.case-studies-title-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding-top: 4rem;
  padding-bottom: 4.5rem;
  text-align: center;
}
.case-studies-intro-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  margin: 4rem auto 2rem auto;
  max-width: 1030px;
  align-items: flex-start;
}
.case-studies-intro {
  font-size: 1.2rem;
  text-align: left;
  flex: 0 1 64%;
  max-width: 70%;
  min-width: 300px;
  margin: 0;
}
.case-studies-meta {
  flex: 0 1 30%;
  max-width: 24%;
  min-width: 220px;
  margin: 0 auto 2.5rem auto;
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
}
@media (max-width: 900px) {
  .case-studies-intro,
  .case-studies-meta {
    flex: 1 1 100%;
    max-width: 100%;
    text-align: center;
    margin-bottom: 1.5rem;
  }

  .case-studies-intro-wrap {
    gap: 2rem;
  }
}
.case-studies-meta p {
  margin-bottom: 0.5rem;
}
.case-studies-container {
  padding-top: 4rem;
}
.case-studies-boxes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  margin-bottom: 4rem;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 900px) {
  .case-studies-boxes {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}
.case-studies-box {
  background: rgba(255,255,255,0.95);
  border-radius: 0.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  padding: 2rem 2.25rem 2rem 2.25rem;
  min-width: 0;
  text-align: left;
}
.case-studies-box h2 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  font-weight: 600;
}
/* ==== Gallery Styles ==== */
.portfolio-gallery-section {
  width: 100%;
  max-width: 1140px;
  margin: 3rem auto 4rem auto;
  padding: 0 16px;
  text-align: center;
}
.gallery-heading {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 2rem;
  color: #101014;
}
.portfolio-gallery-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 16px;
}
.gallery-thumb {
  flex: 1 1 calc(33.333% - 2rem);
  max-width: calc(33.333% - 2rem);
  aspect-ratio: 4 / 3;
  box-sizing: border-box;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Responsive layout */
@media (max-width: 1024px) {
  .gallery-thumb {
    flex: 1 1 calc(50% - 2rem);
    max-width: calc(50% - 2rem);
  }
}
@media (max-width: 600px) {
  .gallery-thumb {
    flex: 1 1 100%;
    max-width: 100%;
  }
}
/* Image styling with shadow */
.gallery-thumb img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-thumb:hover img {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}
/* ==== Optional CTA or Back Button ==== */
.back-to-archive {
  text-align: center;
  margin-top: 5rem;
  margin-bottom: 4rem;
}
.wins-cta {
  text-align: left;
  margin-top: 1rem;
  margin-bottom: 1rem;
  color: #8a1538;
}
.wins-cta :hover {
  color: #8a1538;
  text-decoration: underline;
  animation: none;
}
.case-studies-box p {
  font-size: 1rem;
  line-height: 1.6;
}
.case-studies-box h3 {
  margin-bottom: 0.5rem;
}
h3.wp-block-heading.card {
  font-weight: 400 !important;
  font-size: 1.25rem !important;
  line-height: 1.3;
  margin-bottom: 1.2rem;
}
a.win-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
a.win-card-link:hover {
  text-decoration: none;
}
.wp-block-image.size-full a,
.wp-block-image.size-full a img {
  display: block;
  width: 100%;
  height: 100%;
}
.wp-block-image.size-full a img {
  -o-object-fit: cover;
     object-fit: cover;
}
/* Book Testimonials Carousel */
.book-testimonials {
  padding: 64px 0;
  background: #fff;
}
.book-testimonials h2 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 2.5rem;
  color: #101014;
}
.book-testimonials .testimonial {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  padding: 2rem;
  margin: 0 auto;
  max-width: 800px;
  text-align: center;
}
.book-testimonials .testimonial .quote {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 1.5rem;
}
.book-testimonials .testimonial .name {
  font-weight: 700;
  font-size: 1.1rem;
  color: #101014;
  margin-bottom: 0.5rem;
}
.book-testimonials .testimonial .photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  -o-object-fit: cover;
     object-fit: cover;
}
/* Book Testimonials Section */
.book-testimonial-quote,
.book-testimonial-name,
.book-testimonial-photo {
  font-size: .75rem;
}
.book-testimonial-photo {
  width: 100px;
  height: 100px;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 50%;
  display: block;
  margin: 0 auto 0.5rem auto;
}
.book-testimonial-name {
  display: block;
  font-size: .75rem;
  font-weight: bold;
  margin-top: 0;
  text-align: left;
  width: 100%;
}
.book-testimonial-quote {
  font-size: .75rem;
  margin-bottom: 0.25rem;
  display: block;
}
.book-testimonial-name {
  display: block;
  font-size: .75rem;
  font-weight: bold;
  margin-top: 0;
}
.book-testimonial-photo {
  font-size: .75rem;
}
.book-testimonial-name-title {
  margin: 0 !important;
  padding: 0 !important;
  margin-top: 0.5rem;
  font-weight: bold !important;
  display: flex;
  align-items: center;
}
.book-testimonial-name-title > * {
  font-weight: bold !important;
}
.book-testimonials-carousel {
  position: relative;
  width: 90%;
  max-width: 700px;
  min-width: 260px;
  margin: 0 auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  color: #000;
  font-size: .75rem;
  height: auto;
  overflow: hidden;
  transition: height 0.4s cubic-bezier(0.23,1,0.32,1);
}
.book-testimonial-slide {
  width: 100%;
  box-sizing: border-box;
  padding: 1rem 2rem;
  display: none;
  flex-direction: column;
  align-items: center;
  transition: transform 0.5s cubic-bezier(0.23,1,0.32,1), opacity 0.5s cubic-bezier(0.23,1,0.32,1);
  opacity: 0;
  position: absolute;
  left: 0;
  top: 0;
}
.book-testimonial-slide.active,
.book-testimonial-slide.slide-in-right,
.book-testimonial-slide.slide-in-left,
.book-testimonial-slide.slide-out-left,
.book-testimonial-slide.slide-out-right {
  display: flex;
  opacity: 1;
}
.book-testimonial-slide:empty {
  display: none !important;
}
/* Ensure buttons stay on top and visible */
.book-testimonial-arrow,
.book-testimonial-arrow.wp-block-button__link,
.wp-block-button__link.book-testimonial-arrow,
.book-testimonial-arrow.left,
.book-testimonial-arrow.right {
  background: #fff !important;
  border: none !important;
  border-radius: 50% !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10) !important;
  color: #222 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  font-size: 2rem;
  z-index: 20;
  cursor: pointer;
  padding: 0 !important;
  margin: 0 !important;
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.book-testimonial-arrow:hover,
.book-testimonial-arrow.wp-block-button__link:hover,
.wp-block-button__link.book-testimonial-arrow:hover,
.book-testimonial-arrow.left:hover,
.book-testimonial-arrow.right:hover {
  background: #4399BE !important;
  color: #fff !important;
  box-shadow: 0 4px 16px rgba(67,153,190,0.18) !important;
}
.wp-block-button__link.book-testimonial-arrow {
  background: #fff !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10) !important;
  color: #222 !important;
}
.book-testimonial-arrow.left,
.book-testimonial-arrow.wp-block-button__link.left,
.wp-block-button__link.book-testimonial-arrow.left {
  left: -33px !important;
}
.book-testimonial-arrow.right,
.book-testimonial-arrow.wp-block-button__link.right,
.wp-block-button__link.book-testimonial-arrow.right {
  right: -33px !important;
}
.book-testimonial-arrow:hover a,
.book-testimonial-arrow:focus a,
.book-testimonial-arrow:hover svg,
.book-testimonial-arrow:focus svg {
  text-decoration: none !important;
}
.book-testimonials-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
}
.book-testimonials-carousel * {
  color: #000 !important;
  font-size: .75rem !important;
}
@media (max-width: 600px) {
  .book-testimonial-arrow,
  .book-testimonial-arrow.wp-block-button__link,
  .wp-block-button__link.book-testimonial-arrow {
    width: 32px;
    height: 32px;
    font-size: 1.2rem;
    top: auto !important;
    bottom: 1rem !important;
    transform: none !important;
  }
  .book-testimonial-arrow.left,
  .book-testimonial-arrow.wp-block-button__link.left,
  .wp-block-button__link.book-testimonial-arrow.left {
    left: -20px !important;
    right: auto !important;
  }
  .book-testimonial-arrow.right,
  .book-testimonial-arrow.wp-block-button__link.right,
  .wp-block-button__link.book-testimonial-arrow.right {
    right: -20px !important;
    left: auto !important;
  }
  .book-testimonial-slide {
    padding: 1rem 0.5rem;
  }
  .book-testimonial-photo {
    width: 70px;
    height: 70px;
  }
  .book-testimonials-carousel {
    width: 96%;
    max-width: 98vw;
    min-width: 0;
  }
}
@media (max-width: 900px) {
  .book-testimonial-arrow.left,
  .book-testimonial-arrow.wp-block-button__link.left,
  .wp-block-button__link.book-testimonial-arrow.left {
    left: -30px !important;
    right: auto !important;
  }
  .book-testimonial-arrow.right,
  .book-testimonial-arrow.wp-block-button__link.right,
  .wp-block-button__link.book-testimonial-arrow.right {
    right: -30px !important;
    left: auto !important;
  }
  .book-testimonials-carousel {
    width: 96%;
    max-width: 98vw;
    min-width: 0;
  }
  .book-testimonial-slide {
    padding: 1rem 0.5rem;
  }
  .book-testimonial-photo {
    width: 70px;
    height: 70px;
  }
  .book-testimonial-arrow,
  .book-testimonial-arrow.wp-block-button__link,
  .wp-block-button__link.book-testimonial-arrow {
    width: 32px;
    height: 32px;
    font-size: 1.2rem;
    top: auto !important;
    bottom: 1rem !important;
    transform: none !important;
  }
}
.book-testimonials-carousel-wrapper {
  position: relative;
}
.book-testimonial-slide .wp-block-columns {
  gap: 0.25rem;
}
.book-testimonial-slide .wp-block-column:first-child {
  width: auto;
  flex: 0 0 auto;
  max-width: 90px;
  padding-right: 0.5rem;
}
.book-testimonial-slide .wp-block-column:last-child {
  width: auto;
  flex: 1 1 0%;
  margin-left: 0;
  padding-left: 0;
}
.book-testimonial-slide .wp-block-column:last-child > p {
  margin-bottom: 0.25rem !important;
  font-size: .75rem !important;
  display: block;
}
.book-section-button {
  margin-bottom: 20px;
}
/* Footer */
.site-footer {
  padding: 64px 0 32px 0;
  background: #101014;
  color: #fff;
}
.site-footer .container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
}
.site-footer .site-info {
  text-align: center;
  font-size: 0.95rem;
  color: #aaa;
}
.site-footer .site-info a {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s;
}
.site-footer .site-info a:hover {
  color: #ff0000;
}
.site-footer, .site-footer * {
  text-align: left !important;
}
.footer-flex {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.footer-social a {
  display: inline-block;
  margin-left: 1rem;
  color: #fff;
  font-size: 1.5rem;
  transition: color 0.2s;
}
.footer-social a:hover {
  color: #ff0000; /* or your brand red */
}
.footer-social-link {
  display: inline-block;
  position: relative;
  width: 32px;
  height: 32px;
  margin-left: 1rem;
}
.footer-social-icon-wrap {
  position: relative;
  display: inline-block;
  width: 32px;
  height: 32px;
}
.footer-social-icon {
  position: absolute;
  top: 0; left: 0;
  width: 32px;
  height: 32px;
  transition: opacity 0.3s cubic-bezier(0.23,1,0.32,1);
  pointer-events: none;
  margin-top: -4px;
}
.footer-social-icon.default {
  opacity: 1;
  z-index: 1;
}
.footer-social-link:hover .footer-social-icon.default {
  opacity: 0;
}
.footer-social-icon.hover {
  opacity: 0;
  z-index: 2;
}
.footer-social-link:hover .footer-social-icon.hover {
  opacity: 1;
}
.footer-social-link,
.footer-social-icon-wrap,
.footer-social-icon {
  vertical-align: bottom;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
.site-footer .site-info p {
  margin-bottom: 0;
  margin-left: 16px;
}
@media (max-width: 600px) {
  .footer-flex {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 1.2rem;
    width: 100%;
  }
  .site-footer .site-info {
    text-align: left;
    margin-bottom: 0.5rem;
    width: 100%;
  }
  .footer-social {
    margin-left: 0;
    margin-top: 0.5rem;
    width: 100%;
    justify-content: flex-start;
  }
  .footer-social-link {
    margin-left: 00;
    margin-right: 1rem;
  }
}
/* Hide reCAPTCHA badge */
.grecaptcha-badge {
  visibility: hidden;
}
/* CTA Buttons */
.cta-button {
  display: inline-block;
  background: #fff;
  color: #000;
  border: 1px solid #000;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  font-weight: normal;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}
.cta-button:hover {
  background: #000;
  color: #fff;
}
.light-button {
  display: inline-block;
  background: transparent;
  color: #fff;
  border: 1px solid #fff;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  font-weight: normal;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}
.light-button:hover {
  background: #fff;
  color: #000;
}
/* CTA and Block Buttons */
.cta-button,
.wp-block-button__link.cta-button,
.wp-block-button__link.cta-button:visited {
  background: #fff !important;
  color: #101014 !important;
  border: 2px solid #101014 !important;
  padding: 6px 16px !important;
  border-radius: 0 !important;
  font-weight: 400 !important;
  text-decoration: none !important;
  font-size: 1rem !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06) !important;
  letter-spacing: 0.02em !important;
  transition: background 0.2s, color 0.2s, border 0.2s, transform 0.2s !important;
  display: inline-block !important;
}
.cta-button:hover,
.wp-block-button__link.cta-button:hover {
  background: #101014 !important;
  color: #fff !important;
  border-color: #101014 !important;
  transform: scale(1.05) !important;
}
a.wp-block-button__link.cta-button,
a.wp-block-button__link.cta-button:visited,
.wp-block-button .cta-button {
  background: #fff !important;
  color: #000 !important;
  border: 1px solid #101014 !important;
  padding: 6px 16px !important;
  border-radius: 0 !important;
  font-weight: 400 !important;
  text-decoration: none !important;
  font-size: .75em !important;
  box-shadow: none !important;
  letter-spacing: 0.02em !important;
  transition: background 0.2s, color 0.2s, border 0.2s, transform 0.2s !important;
  display: inline-block !important;
}
a.wp-block-button__link.cta-button:hover,
.wp-block-button .cta-button:hover {
  background: #101014 !important;
  color: #fff !important;
  border-color: #101014 !important;
  transform: scale(1.05) !important;
}
.wp-block-button.cta-button {
  padding: 5px !important;
  border-width: 1px !important;
  color:#8e1a1d;
}
.wp-block-button.cta-button:hover {
  color: #8e1a1d !important;
  text-decoration: underline;
}
.wp-block-button.cta-button:hover .wp-block-button__link {
  color: #8e1a1d !important;
  text-decoration: underline;
}
/* Remove background and border from the WP button wrapper */
.wp-block-button,
.wp-block-button__link {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  color: #8e1a1d !important;
  font-size: .9rem !important;
}
/* Book Section Button */
.book-section-button {
  background: #fff;
  color: #003344;
  border: 1px solid #fff;
  padding: 10px 28px;
  border-radius: 0;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  display: inline-block;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  width: auto !important;
  max-width: none !important;
}
.book-section-button:hover,
.book-section-button:focus {
  background: #4399BE !important;
  color: #fff !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  border-color: #4399BE;
}
.wp-block-button.book-section-button {
  background: transparent !important;
}
.wp-block-button.book-section-button .wp-block-button__link {
  background: #fff !important;
  color: #003344 !important;
  border: 1px solid #fff !important;
  padding: 10px 28px !important;
  border-radius: 0 !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  letter-spacing: 0.02em !important;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s !important;
  display: inline-block !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
  width: auto !important;
  max-width: none !important;
}
.wp-block-button.book-section-button .wp-block-button__link:hover,
.wp-block-button.book-section-button .wp-block-button__link:focus {
  background: #4399BE !important;
  color: #fff !important;
  border-color: #4399BE !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12) !important;
}
/* Logo Carousel Animation */
.logo-strip-outer {
  position: relative;
  width: 100vw;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  height: 100px; /* Adjust as needed for your logo height */
}
.logo-strip {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 48px !important;
  animation: scroll-logos 90s linear infinite;
  will-change: transform;
  min-width: 0;
  flex: 0 0 auto;
}
.logo-strip * {
  flex-shrink: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
}
.logo-strip img {
  height: 48px;
  width: auto;
  opacity: 0.8;
  transition: opacity 0.2s;
  display: inline-block !important;
}
.logo-strip img:hover {
  opacity: 1;
}
.logo-strip img:first-of-type {
  margin-left: 48px;
}
@keyframes scroll-logos {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-1 * var(--logo-strip-width, 50%))); }
}
.logo-strip-gap {
  height: 1px;
  display: inline-block;
  flex-shrink: 0;
}
/* Custom Styles */
.custom-section {
  padding: 64px 0;
  background: #f5f5f5;
}
.custom-section .custom-heading {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 2.5rem;
  color: #101014;
}
.custom-section .custom-content {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
}
.custom-section .custom-text {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 1.5rem;
}
.hide-section {
  display: none !important;
}
/* Wins Section */
.win-column {
  border: 1px solid #111;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
  border-radius: 0;
  background: #fff;
  overflow: hidden;
  transition: box-shadow 0.5s cubic-bezier(0.23,1,0.32,1);
}
/* something to get GitHub to think this is new */
.win-column-inner {
  padding: 1.2rem;
}
.win-column .wp-block-heading,
.win-column h2,
.win-column h3,
.win-column h4,
.win-column p,
.win-column .wp-block-button {
  padding-left: 0;
  padding-right: 0;
}
.win-column .wp-block-heading,
.win-column h2,
.win-column h3,
.win-column h4 {
  margin-top: 0.25rem;
  margin-bottom: 0.75rem;
}
.win-column .wp-block-button {
  padding-bottom: 0;
}
.win-column .wp-block-button__link,
.win-column button,
.win-column input[type="button"],
.win-column input[type="submit"] {
  border-radius: 0 !important;
}
.win-column-image {
  aspect-ratio: 4/3;
  width: 100%;
  overflow: hidden;
  position: relative;
  display: block;
  padding: 0 !important;
  margin: 0 !important;
}
.win-column-image .wp-block-group__inner-container,
.win-column-image figure {
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  width: 100%;
  height: 100%;
}
.win-column-image img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.23,1,0.32,1);
  display: block;
  transform-origin: center center;
}
.win-column:hover .win-column-image img {
  transform: scale(1.07);
}
.win-column p {
  font-size: 1rem;
}
/* Services Section */
.services-offerings > * {
  display: contents;
}
.services-block {
  /* Section padding, background, etc. */
}
.services-intro {
  display: flex;
  justify-content: space-between;
  margin-bottom: 3rem;
  /* ... */
}
.services-intro-left,
.services-intro-right {
  /* Column styles */
}
.services-intro-eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #888;
  font-weight: 400;
}
.services-intro-headline {
  font-size: 2rem;
  text-transform: none;
  letter-spacing: normal;
  color: #101014;
  font-weight: 700;
}
.services-intro-description {
  /* Description styles */
}
.services-offerings {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  justify-items: center;
}
.services-offerings .service {
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  box-sizing: border-box;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.3s cubic-bezier(0.23,1,0.32,1), transform 0.3s cubic-bezier(0.23,1,0.32,1);
}
.services-offerings .service.visible {
  opacity: 1;
  transform: none;
}
.services-icon {
  display: flex;
  justify-content: center;
  align-items: center;
}
.services-icon img {
  width: 60%;
  height: auto;
  display: block;
  margin: 0 auto;
}
.services-headline {
  /* Offering headline styles */
}
.services-paragraph {
  font-size: 15px;
  font-weight: 400;
  color: #888;
  line-height: 2;
}
@media (max-width: 900px) {
  .services-offerings {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .services-offerings {
    grid-template-columns: 1fr;
  }
}
.services-icon img {
  filter: brightness(115%);
  opacity: 0.85;
}
/* Newsletter and Convertkit Form Styles */
.newsletter-block {
  /* (If you want to re-add newsletter block styles, add here) */
}
.seva-fields.formkit-fields {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0 !important;
  justify-content: center;
}
.seva-form .formkit-input[type="text"] {
  width: 240px !important;
  flex: 0 0 240px !important;
  min-width: 0 !important;
  max-width: 240px;
  box-sizing: border-box;
  border-radius: 0 0 0 0 !important;
  height: 48px !important;
  padding: 0.75em 1em;
  margin-right: 0 !important;
  display: flex;
  align-items: center;
}
.seva-form .formkit-submit {
  margin-left: 0 !important;
  width: auto !important;
  flex: 0 0 auto !important;
  padding: 0.75em 2em;
  border-radius: 0 0 0 0 !important;
  background: #f5f5f5 !important;
  color: #222 !important;
  border: none !important;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  height: 48px !important;
}
.seva-form .formkit-field {
  flex: 0 1 auto !important;
  width: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
/* CTA Section */
.cta-block {
  padding: 5rem 0;
  background: linear-gradient(135deg, #2d3132 0%, #010101 100%);
  color: #fff;
}
.cta-container {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  padding: 0 2rem;
}
.cta-title {
  font-size: 2.5rem;
  font-weight: 400 !important;
  margin-bottom: 1.5rem;
}
.cta-description {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}
.cta-button {
  display: inline-block;
  background: #fff;
  color: #153947;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}
.cta-button:hover {
  background: transparent;
  color: #fff;
  border-color: #fff;
  transform: translateY(-2px);
}
@media (max-width: 768px) {
  .cta-block {
    padding: 4rem 0;
  }

  .cta-title {
    font-size: 2rem;
  }

  .cta-description {
    font-size: 1.1rem;
  }
}
@media (max-width: 480px) {
  .cta-block {
    padding: 3rem 0;
  }

  .cta-title {
    font-size: 1.8rem;
  }

  .cta-description {
    font-size: 1rem;
  }

  .cta-button {
    padding: 0.875rem 2rem;
    font-size: 1rem;
  }
}
/* HubSpot Form Styling */
.hs-form {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}
.hs-form .hs-form-field {
  margin-bottom: 1.5rem;
}
.hs-form label {
  display: block;
  color: #fff;
  margin-bottom: 0.5rem;
  font-weight: 500;
}
.hs-form input[type="text"],
.hs-form input[type="email"],
.hs-form input[type="tel"],
.hs-form textarea,
.hs-form select {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1rem;
  transition: all 0.3s ease;
}
.hs-form input[type="text"]:focus,
.hs-form input[type="email"]:focus,
.hs-form input[type="tel"]:focus,
.hs-form textarea:focus,
.hs-form select:focus {
  outline: none;
  border-color: #fff;
  background: rgba(255, 255, 255, 0.15);
}
.hs-form input[type="text"]::-moz-placeholder, .hs-form input[type="email"]::-moz-placeholder, .hs-form input[type="tel"]::-moz-placeholder, .hs-form textarea::-moz-placeholder {
  color: rgba(255, 255, 255, 0.6);
}
.hs-form input[type="text"]::placeholder,
.hs-form input[type="email"]::placeholder,
.hs-form input[type="tel"]::placeholder,
.hs-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}
.hs-form .hs-button {
  background: #fff;
  color: #153947;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  margin-top: 1rem;
}
.hs-form .hs-button:hover {
  background: transparent;
  color: #fff;
  border-color: #fff;
  transform: translateY(-2px);
}
.hs-form .hs-error-msgs {
  color: #ff6b6b;
  font-size: 0.9rem;
  margin-top: 0.25rem;
}
.hs-form .hs-error-msgs label {
  color: #ff6b6b;
}
@media (max-width: 768px) {
  .hs-form {
    padding: 1.5rem;
  }
}
@media (max-width: 480px) {
  .hs-form {
    padding: 1rem;
  }
  
  .hs-form input[type="text"],
  .hs-form input[type="email"],
  .hs-form input[type="tel"],
  .hs-form textarea,
  .hs-form select {
    padding: 0.75rem;
  }
}
.hs-form-virality-link {
  display: none !important;
}
/* Atio-style Glassmorphic Form Styles */
#custom-hubspot-form {
  max-width: 600px;
  margin: 4rem auto;
  padding: 2.5rem 2rem 2rem 2rem;
  background: #373335;
  border-radius: 0;
  box-shadow: 0 8px 32px rgba(21, 57, 71, 0.25), 0 1.5px 8px 0 rgba(80, 0, 255, 0.12);
  color: #fff;
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255,255,255,0.08);
  text-align: center;
}
#custom-hubspot-form h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 2rem;
  color: #fff;
  letter-spacing: 0.01em;
}
#custom-hubspot-form .form-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.3rem;
}
#custom-hubspot-form .form-row input {
  flex: 1 1 0;
  margin-bottom: 0;
  border-radius: 0 !important;
}
#custom-hubspot-form input,
#custom-hubspot-form textarea,
#custom-hubspot-form button[type="submit"],
#custom-hubspot-form .form-row input,
.social-login-btn,
#custom-hubspot-form button {
  border-radius: 0 !important;
}
#custom-hubspot-form input,
#custom-hubspot-form textarea {
  width: 100%;
  padding: 1.1rem 1.2rem;
  margin-bottom: 1.3rem;
  border: 1.5px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.07);
  color: #fff;
  font-size: 1.1rem;
  transition: background 0.2s, box-shadow 0.2s, border 0.2s;
  box-shadow: 0 2px 8px rgba(21, 57, 71, 0.04);
  font-family: inherit !important;
}
#custom-hubspot-form input:focus,
#custom-hubspot-form textarea:focus {
  outline: none;
  background: rgba(255,255,255,0.13);
  border-color: #fff;
  box-shadow: 0 0 0 2px #fff4;
}
#custom-hubspot-form textarea {
  min-height: 110px;
  resize: vertical;
}
#custom-hubspot-form button[type="submit"] {
  width: 100%;
  background: #8e1a1d;
  color: #fff;
  border: none;
  padding: 1rem 0;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 12px rgba(142, 26, 29, 0.18);
  transition: background 0.2s, transform 0.2s;
}
#custom-hubspot-form button[type="submit"]:hover {
  background: #b32a24;
  transform: translateY(-2px) scale(1.03);
}
#custom-hubspot-form input::-moz-placeholder, #custom-hubspot-form textarea::-moz-placeholder {
  font-family: inherit !important;
  color: rgba(255,255,255,0.5) !important;
  opacity: 1;
}
#custom-hubspot-form input::placeholder,
#custom-hubspot-form textarea::placeholder {
  font-family: inherit !important;
  color: rgba(255,255,255,0.5) !important;
  opacity: 1;
}
/* Optional: Divider with OR */
.form-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1.5rem 0 1.2rem 0;
}
.form-divider::before,
.form-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1.5px solid rgba(255,255,255,0.12);
}
.form-divider:not(:empty)::before {
  margin-right: .75em;
}
.form-divider:not(:empty)::after {
  margin-left: .75em;
}
.form-divider span {
  color: #b3aaff;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}
/* Optional: Social login buttons (placeholders) */
.social-login-btns {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.5rem;
  justify-content: center;
}
.social-login-btn {
  flex: 1 1 0;
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.13);
  border-radius: 1rem;
  padding: 0.9rem 0;
  font-size: 1.05rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7em;
  cursor: pointer;
  transition: background 0.18s, border 0.18s;
}
.social-login-btn:hover {
  background: rgba(123, 97, 255, 0.13);
  border-color: #7b61ff;
}
.social-login-btn svg {
  width: 1.2em;
  height: 1.2em;
  fill: #fff;
}
#custom-hubspot-form label {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  color: #fff;
  margin-bottom: 0.4rem;
  text-align: left;
  letter-spacing: 0.01em;
}
#custom-hubspot-form .form-field {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
}
/* Honeypot field - must be invisible to humans but accessible to bots */
.honeypot-field,
#honeypot-field {
  /* Position it off-screen but still in the document flow */
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;

  /* Additional hiding techniques for different bot detection methods */
  clip: rect(1px, 1px, 1px, 1px) !important;
  clip-path: inset(50%) !important;
  overflow: hidden !important;
  white-space: nowrap !important;
}
/* Intro Block Styles */
.intro-text {
  width: 66.666%;
  margin-left: 0;
  margin-right: auto;
  text-align: left;
}
@media (max-width: 900px) {
  .intro-text {
    width: 100%;
  }
}
@media (max-width: 600px) {
  .intro-text h2 {
    font-size: 2rem !important;
  }
}
/* Recent Posts Section */
.recent-posts-section {
    padding: var(--spacing-unit) 0;
    background-color: var(--background-color);
}
.recent-posts-section h2 {
    margin-bottom: 2rem;
    text-align: center;
}
.recent-posts-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
}
.recent-post-card {
    background: #fff;
    border: 1px solid #000;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    /* height: 80%; */ /* Removed for better content fit */
    min-height: 100%;
}
.recent-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.recent-post-image {
    position: relative;
    aspect-ratio: 16 / 9;
    width: 100%;
    overflow: hidden;
    background-color: #f5f5f5;
    flex-shrink: 0;
}
.recent-post-image img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
       object-fit: cover;
    display: block;
    background: #f5f5f5;
    transition: transform 0.3s ease;
}
.recent-post-card:hover .recent-post-image img {
    transform: scale(1.05);
}
.recent-post-content {
    padding: 1.5rem;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}
.recent-post-title {
    margin-bottom: 0.75rem;
}
.recent-post-title a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
    transition: color 0.3s ease;
    overflow-wrap: break-word;
    word-break: break-word;
    -webkit-hyphens: auto;
            hyphens: auto;
}
.recent-post-title a:hover {
    color: var(--secondary-color);
}
.recent-post-meta {
    font-size: 0.875rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}
.recent-post-excerpt {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}
.recent-post-readmore {
    display: inline-block;
    color: #8e1a1d;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: color 0.3s ease;
    margin-top: auto;
}
.recent-post-readmore:hover {
    color: #aa103f;
    text-decoration: underline;
}
/* Responsive Design */
@media (max-width: 1200px) {
    .recent-posts-list {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 900px) {
    .recent-posts-list {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .recent-posts-list {
        grid-template-columns: 1fr;
    }
    
    .recent-post-card {
        max-width: 500px;
        margin: 0 auto;
    }
    .recent-post-content {
        padding: 1.5rem 1rem;
    }
}
/* retry push */
/* Quote Styles */
/* General blockquote styling - only for blog pages */
.blog blockquote,
.single blockquote,
.archive blockquote {
  font-style: italic;
  margin: 2rem 0;
  padding: 1rem 2rem;
  background: #f5f5f5;
  color: #333;
  font-size: 1.15rem;
  border-left: 4px solid #8e1a1d;
}
/* Non-blog page blockquote styling */
body:not(.blog):not(.single):not(.archive) blockquote {
  font-style: italic;
  margin: 2rem auto;
  padding: 1rem 2rem;
  background: #18181c;
  color: #fff;
  font-size: 2.5rem;
  text-align: center;
  border-left: none;
}
.hp-quote {
  /* padding-top: 45px; */
  opacity: 0;
  animation: hp-quote-fade-in 1s ease 1s forwards;
}
@keyframes hp-quote-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
/* Bounding box and handles for quote */
.quote-bounding-box {
  position: relative;
  background: #18171b;
  color: #fff;
  padding: 4rem 2rem;
  margin: 2rem 0;
  border: 2px solid #3a7afe;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.quote-bounding-box blockquote {
  background: none;
  border: none;
  margin: 0;
  padding: 0;
  font-size: 2.5rem;
  font-style: italic;
  color: #fff;
  text-align: center;
}
.quote-bounding-box .quote-source {
  display: block;
  margin-top: 2rem;
  font-size: 1.5rem;
  color: #ccc;
  font-style: italic;
}
.quote-bounding-box .handle {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #fff;
  border: 2px solid #3a7afe;
  box-sizing: border-box;
  z-index: 2;
  border-radius: 2px;
}
/* Corners */
.quote-bounding-box .handle.tl { top: -5px; left: -5px; }
.quote-bounding-box .handle.tr { top: -5px; right: -5px; }
.quote-bounding-box .handle.bl { bottom: -5px; left: -5px; }
.quote-bounding-box .handle.br { bottom: -5px; right: -5px; }
/* Midpoints */
.quote-bounding-box .handle.tm { top: -5px; left: 50%; transform: translateX(-50%); }
.quote-bounding-box .handle.bm { bottom: -5px; left: 50%; transform: translateX(-50%); }
.quote-bounding-box .handle.ml { left: -5px; top: 50%; transform: translateY(-50%); }
.quote-bounding-box .handle.mr { right: -5px; top: 50%; transform: translateY(-50%); }
/* Blog Post Styles */
.blog-single-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 16px 80px;
}
.entry-featured-image {
  margin-bottom: 2rem;
  text-align: center;
}
.entry-featured-image img {
  max-width: 100%;
  height: auto;
  border-radius: 0;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}
.entry-header {
  margin-bottom: 40px;
}
.wp-element-caption {
  font-size: 0.8em;
}
.entry-footer {
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #ddd;
}
.nav-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 40px 0 0 0;
}
.nav-previous {
  text-align: left;
}
.nav-next {
  text-align: right;
}
@media (max-width: 600px) {
  h1, h1.wp-block-heading {
    font-size: 3rem !important;
    line-height: 1.1;
  }
  h2, h2.wp-block-heading {
    font-size: 2rem !important;
    line-height: 1.1;
  }
  h3, h3.wp-block-heading {
    font-size: 1.5rem !important;
    line-height: 1.2;
  }
}
.blog-archive-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 16px 80px;
}
.archive-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
  text-align: left;
}
.blog-archive-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.blog-archive-article {
  border-bottom: 1px solid #eee;
  padding-bottom: 2rem;
}
.archive-post-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.archive-post-title a {
  color: #8e1a1d;
  text-decoration: none;
  transition: color 0.2s;
}
.archive-post-title a:hover {
  color: #aa103f;
  text-decoration: underline;
}
.archive-post-meta {
  font-size: 0.95rem;
  color: #888;
  margin-bottom: 1rem;
}
.archive-post-excerpt {
  font-size: 1.1rem;
  color: #222;
}
.blog-archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0;
}
@media (max-width: 900px) {
  .blog-archive-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .blog-archive-grid {
    grid-template-columns: 1fr;
  }
}
.blog-archive-container h2,
.blog-archive-container .archive-post-title {
  letter-spacing: 0;
  line-height: 0.6;
}
.blog-archive-header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.blog-archive-header-flex .archive-title {
  margin-bottom: 0;
}
.blog-search-form {
  display: flex;
  gap: 0;
  width: 100%;
  max-width: 500px;
  padding: 0.5rem 0;
}
.blog-search-field {
  flex: 1 1 0;
  min-width: 0;
  padding: 0.75em 1em;
  border: 1.5px solid #f5f5f5;
  border-right: none;
  border-radius: 0;
  font-size: 1.1rem;
  background: #fff;
  color: #101014;
  transition: border 0.2s;
  height: 48px;
}
.blog-search-field:focus {
  outline: none;
}
.blog-search-form .blog-search-submit {
  background: #f5f5f5 !important;
  color: #222 !important;
  border: 1.5px solid #f5f5f5 !important;
  border-radius: 0 !important;
  padding: 0.75em 2em !important;
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  cursor: pointer;
  transition: background 0.2s, color 0.2s !important;
  height: 48px !important;
  display: flex !important;
  align-items: center !important;
  margin-left: 0 !important;
}
.blog-search-form .blog-search-submit:hover {
  background: #e0e0e0 !important;
  color: #000 !important;
}
.blog-single-container ul,
.blog-single-container ol,
.blog-archive-container ul,
.blog-archive-container ol {
  padding-left: 1.5em;
  margin-left: 0;
}
.blog-single-container .wp-block-separator,
.blog-archive-container .wp-block-separator {
  border: none;
  border-top: 1px solid #bbb;
  height: 1px;
  background: none;
  margin: 2.5rem 0;
  padding: 0;
}
.pagination .page-numbers,
.blog-archive-main .page-numbers {
  margin: 0 0.25em !important;
  letter-spacing: 0;
}
.pagination .page-numbers,
.blog-archive-main .page-numbers {
  display: inline-block;
}
.pagination .page-numbers.prev,
.pagination .page-numbers.next,
.blog-archive-main .page-numbers.prev,
.blog-archive-main .page-numbers.next {
  margin: 0 1.5em !important;
}
.pagination-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 100%;
  width: 100%;
  margin: 2.5rem 0 0 0;
  padding: 0 2rem;
  box-sizing: border-box;
}
.pagination-prev {
  flex: 0 0 auto;
  text-align: left;
}
.pagination-numbers {
  flex: 1 1 0;
  text-align: center;
}
.pagination-next {
  flex: 0 0 auto;
  text-align: right;
}
/* Skills Page Specific Styles */
.skills-page blockquote {
  border-left: 4px solid #8e1a1d;
  padding-left: 1rem;
  font-style: italic;
}
.skills-page .wp-block-heading {
  color: #101014;
  font-size: 2rem;
  margin-top: 2rem;
}
.skills-page p {
  line-height: 1.7;
}
.skills-page a {
  color: #8e1a1d;
  text-decoration: underline;
}
.skills-page a:hover {
  color: #5c1012;
}
.skills-page-main .overview-box {
  background-color: #f5f5f5;
  padding: 40px;
}
/* ============================================
   BLUR-TO-FOCUS SCROLL ANIMATION
   ============================================ */
/* Blur-to-Focus Scroll Animation - Background Image Only */
.wp-block-cover.blur-on-scroll {
  position: relative;
  overflow: hidden;
}
.wp-block-cover.blur-on-scroll::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: inherit;
  background-size: inherit;
  background-position: inherit;
  background-repeat: inherit;
  filter: blur(8px);
  transition: filter 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: filter;
  z-index: 1;
}
.wp-block-cover.blur-on-scroll.in-view::before {
  filter: blur(0px);
}
/* Ensure content stays above the blurred background */
.wp-block-cover.blur-on-scroll .wp-block-cover__inner-container {
  position: relative;
  z-index: 2;
}
/* Hide the original background on the main element when using blur effect */
.wp-block-cover.blur-on-scroll {
  background-image: none !important;
}
/* Alternative: Target the background image directly if it exists as an img element */
.wp-block-cover.blur-on-scroll .wp-block-cover__image-background {
  filter: blur(8px);
  transition: filter 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: filter;
}
.wp-block-cover.blur-on-scroll.in-view .wp-block-cover__image-background {
  filter: blur(0px);
}
/* Alternative class for any image that needs blur animation */
.blur-scroll-image {
  filter: blur(8px);
  transition: filter 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: filter;
}
.blur-scroll-image.focused {
  filter: blur(0px);
}
/* Portfolio Section Unique Styles */
.wp-portfolio-section {
  padding: 30px 0;
  font-family: var(--font-family);
}
.wp-portfolio-container {
  max-width: 100%;
  margin: 0;
}
.wp-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  height: 400px;
  overflow: hidden;
}
.wp-portfolio-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
/* Background images for each item */
.wp-portfolio-item:nth-child(1) {
  background-image: url('https://stage.jimmacleod.com/wp-content/uploads/2025/08/Extreme-Header-Image-v5.jpg');
}
.wp-portfolio-item:nth-child(2) {
  background-image: url('https://stage.jimmacleod.com/wp-content/uploads/2025/08/After-Design-Header-Image-v3.jpg');
}
.wp-portfolio-item:nth-child(3) {
  background-image: url('https://stage.jimmacleod.com/wp-content/uploads/2025/08/EBSCO-Header-Image-v2.jpg');
}
.wp-portfolio-item:nth-child(4) {
  background-image: url('https://stage.jimmacleod.com/wp-content/uploads/2025/08/Extreme-Connect-Header-Image-v1.jpg');
}
.wp-portfolio-item:nth-child(5) {
  background-image: url('https://jimmacleod.com/wp-content/uploads/2025/09/NU-Header-Image-v4.jpg');
}
.wp-portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  padding: 30px;
  transition: all 0.4s ease;
  opacity: 1;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
}
/* Consistent gradient overlay for all items */
.wp-portfolio-content {
  color: white;
  transform: translateY(0);
  transition: transform 0.4s ease;
}
.wp-portfolio-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 4px 0;
}
.wp-portfolio-subtitle {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
  margin: 0;
  opacity: 0.9;
}
/* Hover Effects */
.wp-portfolio-item:hover {
  transform: scale(1.05);
  z-index: 10;
}
.wp-portfolio-item:hover .wp-portfolio-overlay {
  background: linear-gradient(transparent, rgba(0,0,0,0.9));
}
.wp-portfolio-item:hover .wp-portfolio-content {
  transform: translateY(-2px);
}
/* Tablet Styles */
@media screen and (max-width: 1024px) {
  .wp-portfolio-grid {
      grid-template-columns: repeat(3, 1fr);
      grid-template-rows: repeat(2, 200px);
      height: auto;
      gap: 2px;
  }

  .wp-portfolio-item:nth-child(4),
  .wp-portfolio-item:nth-child(5) {
      grid-column: span 1;
  }

  .wp-portfolio-item:nth-child(5) {
      grid-column: 2 / 4;
  }

  .wp-portfolio-overlay {
      padding: 20px;
  }

  .wp-portfolio-title {
      font-size: 16px;
  }

  .wp-portfolio-subtitle {
      font-size: 13px;
  }

  .wp-portfolio-item:hover {
      flex: initial;
      transform: scale(1.05);
  }
}
/* Mobile Styles */
@media screen and (max-width: 768px) {
  .wp-portfolio-section {
      padding: 40px 0;
  }

  .wp-portfolio-grid {
      display: flex;
      flex-direction: column;
      height: auto;
      gap: 2px;
  }

  .wp-portfolio-item {
      height: 120px;
      flex: none;
  }

  .wp-portfolio-overlay {
      padding: 15px;
  }

  .wp-portfolio-title {
      font-size: 16px;
      font-weight: 500;
  }

  .wp-portfolio-subtitle {
      font-size: 13px;
  }

  .wp-portfolio-item:hover {
      transform: scale(1.02);
      flex: none;
  }
}
/* Small Mobile Styles */
@media screen and (max-width: 480px) {
  .wp-portfolio-item {
      height: 100px;
  }

  .wp-portfolio-overlay {
      padding: 12px;
  }

  .wp-portfolio-title {
      font-size: 13px;
      line-height: 1.3;
  }

  .wp-portfolio-subtitle {
      font-size: 11px;
  }
}
/* Media Page Video Gallery */
.media-page-container,
.wp-block-group.video-gallery {
  max-width: 1140px;
  margin: 0 auto;
  padding: 50px 16px;
}
/* Main Video Player Area */
.main-video-player {
  position: relative;
  width: 100%;
  margin-bottom: 3rem;
  background: #000;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1140 / 640;
  background: #000;
}
.main-video-player iframe,
.main-video-player video {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
.video-info {
  padding: 1.5rem;
  background: #fff;
  border-radius: 0;
}
.video-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #101014;
}
.video-description {
  font-size: 1rem;
  color: #666;
  line-height: 1.6;
}
/* Video Thumbnails Gallery */
.video-thumbnails,
.wp-block-group.video-thumbnails .wp-block-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
/* WordPress Columns to Grid Override */
.wp-block-group.video-thumbnails .wp-block-columns {
  flex-wrap: wrap;
}
.wp-block-group.video-thumbnails .wp-block-column {
  flex-basis: auto !important;
  min-width: 280px;
}
.video-thumbnail {
  position: relative;
  cursor: pointer;
  border-radius: 0;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.video-thumbnail:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.video-thumbnail.active {
  border: 3px solid #8e1a1d;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(142, 26, 29, 0.2);
}
.thumbnail-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f5f5f5;
}
.thumbnail-image img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  transition: transform 0.3s ease;
}
/* Placeholder while thumbnail loads */
.thumbnail-image {
  position: relative;
  background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.thumbnail-image:before {
  content: '📹';
  position: absolute;
  font-size: 2rem;
  opacity: 0.5;
  z-index: 1;
}
.thumbnail-image img {
  position: relative;
  z-index: 2;
}
/* Hide placeholder when image loads */
.thumbnail-image img[src]:not([src=""]) + .thumbnail-image:before,
.thumbnail-image img[src]:not([src=""]) ~ .thumbnail-image:before {
  display: none;
}
.video-thumbnail:hover .thumbnail-image img {
  transform: scale(1.05);
}
/* Play Button Overlay */
.play-button-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(142, 26, 29, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}
.play-button-overlay::before {
  content: '';
  width: 0;
  height: 0;
  border-left: 18px solid #fff;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  margin-left: 4px;
}
.video-thumbnail:hover .play-button-overlay {
  background: rgba(142, 26, 29, 1);
  transform: translate(-50%, -50%) scale(1.1);
}
/* Thumbnail Content */
.thumbnail-content {
  padding: 1rem;
}
.thumbnail-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #101014;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.thumbnail-meta {
  font-size: 0.875rem;
  color: #666;
  margin-bottom: 0.5rem;
}
.thumbnail-description {
  font-size: 0.875rem;
  color: #888;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* Loading State */
.main-video-player.loading {
  opacity: 0.7;
}
.main-video-player.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #8e1a1d;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  transform: translate(-50%, -50%);
}
@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}
/* Responsive Design */
@media (max-width: 900px) {
  .video-thumbnails,
  .wp-block-group.video-thumbnails .wp-block-columns {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}
@media (max-width: 768px) {
  .video-thumbnails,
  .wp-block-group.video-thumbnails .wp-block-columns {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .video-info {
    padding: 1rem;
  }

  .video-title {
    font-size: 1.25rem;
  }
}
@media (max-width: 480px) {
  .play-button-overlay {
    width: 50px;
    height: 50px;
  }

  .play-button-overlay::before {
    border-left: 15px solid #fff;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
  }
}