/**
 * Nexus Theme — Main Stylesheet
 * All layout, components, and sections.
 * CSS variables are defined in style.css
 *
 * @package Nexus
 * @version 1.0.0
 */

/* =============================================================================
   LAYOUT — CONTAINER & GRID
   ============================================================================= */

.container {
  width: 100%;
  max-width: var(--nexus-container-xl);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--nexus-space-6);
  padding-right: var(--nexus-space-6);
}

.container-sm  { max-width: var(--nexus-container-sm); }
.container-md  { max-width: var(--nexus-container-md); }
.container-lg  { max-width: var(--nexus-container-lg); }
.container-xl  { max-width: var(--nexus-container-xl); }
.container-2xl { max-width: var(--nexus-container-2xl); }
.container-fluid { max-width: 100%; }

/* Grid System */
.nexus-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--nexus-space-6);
}

.nexus-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--nexus-space-6);
}

.nexus-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--nexus-space-6);
}

.nexus-grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--nexus-space-6);
}

/* Sections */
.section-padding {
  padding-top: var(--nexus-space-24);
  padding-bottom: var(--nexus-space-24);
}

.section-padding-sm {
  padding-top: var(--nexus-space-16);
  padding-bottom: var(--nexus-space-16);
}

.section-padding-lg {
  padding-top: var(--nexus-space-32);
  padding-bottom: var(--nexus-space-32);
}

.section-dark {
  background-color: var(--nexus-gray-900);
  color: var(--nexus-white);
}

.section-dark h1, .section-dark h2, .section-dark h3,
.section-dark h4, .section-dark h5, .section-dark h6 {
  color: var(--nexus-white);
}

.section-light {
  background-color: var(--nexus-gray-50);
}

.section-gradient {
  background: var(--nexus-gradient-primary);
  color: var(--nexus-white);
}

.section-gradient h1, .section-gradient h2, .section-gradient h3 {
  color: var(--nexus-white);
}

/* Section header */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--nexus-space-16);
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--nexus-space-2);
  font-size: var(--nexus-text-xs);
  font-weight: var(--nexus-weight-semibold);
  letter-spacing: var(--nexus-tracking-widest);
  text-transform: uppercase;
  color: var(--nexus-secondary);
  margin-bottom: var(--nexus-space-3);
}

.section-eyebrow::before,
.section-eyebrow::after {
  content: '';
  display: inline-block;
  width: 30px;
  height: 2px;
  background-color: currentColor;
  border-radius: 1px;
}

.section-title {
  font-size: clamp(var(--nexus-text-2xl), 4vw, var(--nexus-text-4xl));
  font-weight: var(--nexus-weight-bold);
  line-height: var(--nexus-leading-tight);
  color: var(--nexus-heading);
  margin-bottom: var(--nexus-space-4);
}

.section-title span {
  color: var(--nexus-secondary);
}

.section-subtitle {
  font-size: var(--nexus-text-md);
  color: var(--nexus-text-light);
  line-height: var(--nexus-leading-relaxed);
  max-width: 60ch;
  margin: 0 auto;
}

/* =============================================================================
   PRELOADER
   ============================================================================= */

.nexus-preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--nexus-white);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--nexus-space-4);
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.nexus-preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-logo {
  font-family: var(--nexus-font-heading);
  font-size: var(--nexus-text-2xl);
  font-weight: var(--nexus-weight-bold);
  color: var(--nexus-primary);
}

.preloader-bar-wrap {
  width: 200px;
  height: 3px;
  background-color: var(--nexus-gray-200);
  border-radius: var(--nexus-radius-full);
  overflow: hidden;
}

.preloader-bar {
  height: 100%;
  background: var(--nexus-gradient-primary);
  border-radius: var(--nexus-radius-full);
  animation: nexus-preloader-bar 1.5s ease-in-out infinite;
}

/* =============================================================================
   SCROLL PROGRESS BAR
   ============================================================================= */

.nexus-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--nexus-gradient-primary);
  z-index: calc(var(--nexus-z-sticky) + 10);
  transition: width 0.1s linear;
  border-radius: 0 var(--nexus-radius-full) var(--nexus-radius-full) 0;
}

/* =============================================================================
   HEADER
   ============================================================================= */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: var(--nexus-z-sticky);
  height: var(--nexus-header-height, 80px);
  display: flex;
  align-items: center;
  background-color: var(--nexus-white);
  border-bottom: 1px solid var(--nexus-border);
  transition: all 0.3s ease;
}

/* Transparent header variant */
.has-transparent-header .site-header {
  background-color: transparent;
  border-bottom-color: transparent;
}

.has-transparent-header .site-header .nav-link,
.has-transparent-header .site-header .site-name-link {
  color: var(--nexus-white);
}

/* Scrolled state */
.site-header.is-scrolled {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background-color: rgba(255, 255, 255, 0.92);
  border-bottom-color: var(--nexus-border);
  box-shadow: var(--nexus-shadow-md);
  height: 68px;
}

.has-transparent-header .site-header.is-scrolled {
  background-color: rgba(255, 255, 255, 0.92);
}

.has-transparent-header .site-header.is-scrolled .nav-link,
.has-transparent-header .site-header.is-scrolled .site-name-link {
  color: var(--nexus-heading);
}

/* Top bar */
.nexus-topbar {
  background-color: var(--nexus-primary);
  color: var(--nexus-white);
  font-size: var(--nexus-text-sm);
  padding: var(--nexus-space-2) 0;
  text-align: center;
}

.nexus-topbar a {
  color: rgba(255,255,255,0.85);
}

.nexus-topbar a:hover {
  color: var(--nexus-white);
}

/* Header inner */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--nexus-space-6);
  width: 100%;
}

/* Site branding */
.site-branding {
  flex-shrink: 0;
}

.custom-logo-link {
  display: flex;
  align-items: center;
}

.custom-logo {
  height: 40px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}

.site-name-link {
  font-family: var(--nexus-font-heading);
  font-size: var(--nexus-text-xl);
  font-weight: var(--nexus-weight-bold);
  color: var(--nexus-heading);
  letter-spacing: var(--nexus-tracking-tight);
  text-decoration: none;
}

/* Primary navigation */
.primary-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nexus-menu {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nexus-menu > li {
  position: relative;
  margin: 0;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: var(--nexus-space-1);
  padding: var(--nexus-space-3) var(--nexus-space-4);
  font-size: var(--nexus-text-sm);
  font-weight: var(--nexus-weight-medium);
  color: var(--nexus-text);
  text-decoration: none;
  letter-spacing: var(--nexus-tracking-wide);
  border-radius: var(--nexus-radius-md);
  transition: var(--nexus-transition-fast);
  white-space: nowrap;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: calc(100% - var(--nexus-space-8));
  height: 2px;
  background: var(--nexus-secondary);
  border-radius: var(--nexus-radius-full);
  transition: transform 0.25s ease;
}

.nav-link:hover,
.nexus-menu > li.current-menu-item > .nav-link,
.nexus-menu > li.current-menu-ancestor > .nav-link {
  color: var(--nexus-primary);
}

.nav-link:hover::after,
.nexus-menu > li.current-menu-item > .nav-link::after {
  transform: translateX(-50%) scaleX(1);
}

/* Dropdown menu */
.nexus-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background-color: var(--nexus-white);
  border: 1px solid var(--nexus-border);
  border-radius: var(--nexus-radius-lg);
  box-shadow: var(--nexus-shadow-xl);
  padding: var(--nexus-space-2);
  list-style: none;
  margin: var(--nexus-space-2) 0 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
  z-index: var(--nexus-z-dropdown);
}

.nexus-menu > li:hover > .sub-menu,
.nexus-menu > li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sub-menu a {
  display: block;
  padding: var(--nexus-space-2) var(--nexus-space-4);
  font-size: var(--nexus-text-sm);
  color: var(--nexus-text);
  border-radius: var(--nexus-radius-md);
  transition: var(--nexus-transition-fast);
  white-space: nowrap;
}

.sub-menu a:hover {
  background-color: var(--nexus-gray-100);
  color: var(--nexus-primary);
  text-decoration: none;
}

/* Dropdown arrow */
.menu-item-has-children > .nav-link > .nav-arrow {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.menu-item-has-children:hover > .nav-link > .nav-arrow {
  transform: rotate(180deg);
}

/* Header CTA */
.header-cta {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: var(--nexus-space-3);
}

/* Hamburger button */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 42px;
  height: 42px;
  background: none;
  border: 1px solid var(--nexus-border);
  border-radius: var(--nexus-radius-md);
  cursor: pointer;
  gap: 5px;
  padding: var(--nexus-space-2);
  transition: var(--nexus-transition-fast);
}

.menu-toggle:hover {
  background-color: var(--nexus-gray-100);
}

.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--nexus-heading);
  border-radius: var(--nexus-radius-full);
  transition: var(--nexus-transition-base);
  transform-origin: center;
}

.menu-toggle.is-active .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.menu-toggle.is-active .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.mobile-nav-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: calc(var(--nexus-z-overlay) - 1);
  display: flex;
  flex-direction: column;
  background-color: var(--nexus-white);
  padding: var(--nexus-space-6);
  padding-top: calc(var(--nexus-header-height, 80px) + var(--nexus-space-4));
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav-wrap.is-open {
  transform: translateX(0);
}

.mobile-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-menu li {
  border-bottom: 1px solid var(--nexus-border);
}

.mobile-menu li:last-child {
  border-bottom: none;
}

.mobile-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--nexus-space-4) 0;
  font-size: var(--nexus-text-md);
  font-weight: var(--nexus-weight-medium);
  color: var(--nexus-heading);
  text-decoration: none;
}

.mobile-menu a:hover {
  color: var(--nexus-primary);
}

.mobile-menu .sub-menu {
  list-style: none;
  padding: 0 0 var(--nexus-space-2) var(--nexus-space-4);
  margin: 0;
  display: none;
}

.mobile-menu .sub-menu.is-open {
  display: block;
}

.mobile-menu .sub-menu a {
  font-size: var(--nexus-text-base);
  padding: var(--nexus-space-2) 0;
  color: var(--nexus-text-light);
}

.mobile-submenu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--nexus-text-light);
  padding: var(--nexus-space-2);
  border-radius: var(--nexus-radius-sm);
  transition: var(--nexus-transition-fast);
}

.mobile-submenu-toggle.is-active {
  transform: rotate(180deg);
}

/* Page content offset */
.page-wrapper {
  padding-top: var(--nexus-header-height, 80px);
}

.has-transparent-header .page-wrapper {
  padding-top: 0;
}

/* =============================================================================
   HERO SECTION
   ============================================================================= */

.nexus-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--nexus-primary);
}

.nexus-hero.layout-left {
  justify-content: flex-start;
}

.nexus-hero.layout-split {
  align-items: center;
}

/* Hero background */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(45,174,67,0.85) 0%, rgba(45,174,67,0.6) 100%);
  z-index: 1;
}

/* Hero particles */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.hero-particle {
  position: absolute;
  border-radius: var(--nexus-radius-full);
  background-color: rgba(255,255,255,0.08);
  animation: nexus-bounce 4s ease-in-out infinite;
}

.hero-particle:nth-child(1) { width: 300px; height: 300px; top: -80px; right: -60px; animation-delay: 0s; }
.hero-particle:nth-child(2) { width: 150px; height: 150px; bottom: 15%; left: 5%; animation-delay: 1s; }
.hero-particle:nth-child(3) { width: 80px; height: 80px; top: 25%; right: 20%; animation-delay: 2s; }
.hero-particle:nth-child(4) { width: 200px; height: 200px; bottom: -40px; right: 25%; animation-delay: 0.5s; opacity: 0.5; }

/* Hero content */
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-content {
  color: var(--nexus-white);
  max-width: 700px;
}

.layout-centered .hero-inner,
.layout-centered .hero-content {
  text-align: center;
  margin: 0 auto;
}

.layout-centered .hero-cta {
  justify-content: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--nexus-space-2);
  padding: var(--nexus-space-1) var(--nexus-space-4);
  background-color: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--nexus-radius-full);
  font-size: var(--nexus-text-xs);
  font-weight: var(--nexus-weight-semibold);
  letter-spacing: var(--nexus-tracking-widest);
  text-transform: uppercase;
  color: var(--nexus-white);
  margin-bottom: var(--nexus-space-6);
  backdrop-filter: blur(8px);
}

.hero-eyebrow-dot {
  width: 6px;
  height: 6px;
  background-color: var(--nexus-accent);
  border-radius: var(--nexus-radius-full);
  animation: nexus-pulse 2s ease infinite;
}

.hero-title {
  font-size: clamp(var(--nexus-text-3xl), 6vw, var(--nexus-text-6xl));
  font-weight: var(--nexus-weight-black);
  line-height: 1.05;
  letter-spacing: var(--nexus-tracking-tighter);
  color: var(--nexus-white);
  margin-bottom: var(--nexus-space-6);
}

.hero-title .highlight {
  color: var(--nexus-accent);
}

.hero-description {
  font-size: clamp(var(--nexus-text-base), 2vw, var(--nexus-text-lg));
  line-height: var(--nexus-leading-relaxed);
  color: rgba(255,255,255,0.8);
  margin-bottom: var(--nexus-space-8);
  max-width: 55ch;
}

.layout-centered .hero-description {
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--nexus-space-4);
  align-items: center;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: var(--nexus-space-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--nexus-space-2);
  color: rgba(255,255,255,0.6);
  font-size: var(--nexus-text-xs);
  text-transform: uppercase;
  letter-spacing: var(--nexus-tracking-widest);
  cursor: pointer;
}

.hero-scroll-arrow {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--nexus-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: nexus-bounce 2s ease infinite;
}

/* =============================================================================
   CARDS
   ============================================================================= */

/* Base card */
.card {
  background-color: var(--nexus-white);
  border: 1px solid var(--nexus-border);
  border-radius: var(--nexus-radius-xl);
  overflow: hidden;
  transition: var(--nexus-transition-base);
}

.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: var(--nexus-shadow-xl);
  border-color: transparent;
}

/* Service card */
.card-service {
  background-color: var(--nexus-white);
  border: 1px solid var(--nexus-border);
  border-radius: var(--nexus-radius-xl);
  padding: var(--nexus-space-8);
  transition: var(--nexus-transition-base);
  position: relative;
  overflow: hidden;
  display: block;
  text-decoration: none;
  color: inherit;
}

.card-service::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--nexus-gradient-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.card-service:hover::before {
  transform: scaleX(1);
}

.card-service.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: var(--nexus-shadow-xl);
  border-color: transparent;
}

.card-service.hover-glow:hover {
  box-shadow: 0 0 30px rgba(76,200,99,0.25);
  border-color: var(--nexus-secondary);
}

.card-service.hover-border:hover {
  border-color: var(--nexus-primary);
}

.service-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, rgba(45,174,67,0.08) 0%, rgba(76,200,99,0.08) 100%);
  border-radius: var(--nexus-radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--nexus-space-5);
  font-size: var(--nexus-text-xl);
  color: var(--nexus-primary);
  transition: var(--nexus-transition-base);
}

.card-service:hover .service-icon {
  background: var(--nexus-gradient-primary);
  color: var(--nexus-white);
}

.service-title {
  font-size: var(--nexus-text-lg);
  font-weight: var(--nexus-weight-bold);
  color: var(--nexus-heading);
  margin-bottom: var(--nexus-space-3);
}

.service-desc {
  font-size: var(--nexus-text-sm);
  color: var(--nexus-text-light);
  line-height: var(--nexus-leading-relaxed);
  margin: 0;
}

/* Team card */
.card-team {
  background-color: var(--nexus-white);
  border-radius: var(--nexus-radius-xl);
  overflow: hidden;
  transition: var(--nexus-transition-base);
  box-shadow: var(--nexus-shadow-sm);
}

.card-team:hover {
  transform: translateY(-6px);
  box-shadow: var(--nexus-shadow-xl);
}

.team-photo {
  overflow: hidden;
  aspect-ratio: 4/5;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card-team:hover .team-photo img {
  transform: scale(1.06);
}

.team-info {
  padding: var(--nexus-space-5);
}

.team-name {
  font-size: var(--nexus-text-md);
  font-weight: var(--nexus-weight-bold);
  color: var(--nexus-heading);
  margin-bottom: var(--nexus-space-1);
}

.team-position {
  font-size: var(--nexus-text-sm);
  color: var(--nexus-secondary);
  font-weight: var(--nexus-weight-medium);
  margin-bottom: var(--nexus-space-3);
}

.team-socials {
  display: flex;
  gap: var(--nexus-space-2);
}

.team-socials a {
  width: 34px;
  height: 34px;
  background-color: var(--nexus-gray-100);
  border-radius: var(--nexus-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--nexus-text-sm);
  color: var(--nexus-text-light);
  transition: var(--nexus-transition-fast);
}

.team-socials a:hover {
  background-color: var(--nexus-primary);
  color: var(--nexus-white);
}

/* Testimonial card */
.card-testimonial {
  background-color: var(--nexus-white);
  border: 1px solid var(--nexus-border);
  border-radius: var(--nexus-radius-xl);
  padding: var(--nexus-space-8);
  position: relative;
  transition: var(--nexus-transition-base);
}

.card-testimonial::before {
  content: '\201C';
  position: absolute;
  top: var(--nexus-space-4);
  right: var(--nexus-space-6);
  font-family: var(--nexus-font-heading);
  font-size: 80px;
  line-height: 1;
  color: var(--nexus-gray-200);
  font-weight: var(--nexus-weight-bold);
}

.card-testimonial:hover {
  transform: translateY(-4px);
  box-shadow: var(--nexus-shadow-lg);
  border-color: transparent;
}

.testimonial-stars {
  display: flex;
  gap: 3px;
  margin-bottom: var(--nexus-space-4);
  color: var(--nexus-gray-300);
}

.testimonial-stars .star.filled {
  color: var(--nexus-warning);
}

.testimonial-text {
  font-size: var(--nexus-text-md);
  font-style: italic;
  line-height: var(--nexus-leading-relaxed);
  color: var(--nexus-text);
  margin-bottom: var(--nexus-space-6);
  border: none;
  padding: 0;
  background: none;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--nexus-space-3);
}

.author-photo {
  width: 50px;
  height: 50px;
  border-radius: var(--nexus-radius-full);
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--nexus-border);
}

.author-name {
  display: block;
  font-size: var(--nexus-text-sm);
  font-weight: var(--nexus-weight-bold);
  color: var(--nexus-heading);
}

.author-role {
  display: block;
  font-size: var(--nexus-text-xs);
  color: var(--nexus-text-muted);
}

/* Portfolio card */
.card-portfolio {
  background-color: var(--nexus-white);
  border-radius: var(--nexus-radius-xl);
  overflow: hidden;
  position: relative;
  box-shadow: var(--nexus-shadow-sm);
  transition: var(--nexus-transition-base);
}

.card-portfolio:hover {
  transform: translateY(-6px);
  box-shadow: var(--nexus-shadow-xl);
}

.portfolio-image {
  overflow: hidden;
  aspect-ratio: 4/3;
  position: relative;
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card-portfolio:hover .portfolio-image img {
  transform: scale(1.06);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(45,174,67,0.9) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--nexus-space-6);
  opacity: 0;
  transition: var(--nexus-transition-base);
}

.card-portfolio:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-meta {
  padding: var(--nexus-space-4) var(--nexus-space-5);
}

.portfolio-category {
  font-size: var(--nexus-text-xs);
  color: var(--nexus-secondary);
  font-weight: var(--nexus-weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--nexus-tracking-wide);
  margin-bottom: var(--nexus-space-1);
}

.portfolio-title {
  font-size: var(--nexus-text-md);
  font-weight: var(--nexus-weight-bold);
  color: var(--nexus-heading);
  margin: 0;
}

/* Blog card */
.card-blog {
  background-color: var(--nexus-white);
  border-radius: var(--nexus-radius-xl);
  overflow: hidden;
  transition: var(--nexus-transition-base);
  border: 1px solid var(--nexus-border);
  display: flex;
  flex-direction: column;
}

.card-blog:hover {
  transform: translateY(-6px);
  box-shadow: var(--nexus-shadow-xl);
  border-color: transparent;
}

.blog-card-image {
  overflow: hidden;
  aspect-ratio: 16/9;
}

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

.card-blog:hover .blog-card-image img {
  transform: scale(1.06);
}

.blog-card-body {
  padding: var(--nexus-space-6);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--nexus-space-3);
  margin-bottom: var(--nexus-space-3);
  font-size: var(--nexus-text-xs);
  color: var(--nexus-text-muted);
}

.blog-card-category {
  background-color: rgba(45,174,67,0.08);
  color: var(--nexus-primary);
  padding: var(--nexus-space-1) var(--nexus-space-3);
  border-radius: var(--nexus-radius-full);
  font-weight: var(--nexus-weight-semibold);
  font-size: var(--nexus-text-xs);
  text-decoration: none;
  letter-spacing: var(--nexus-tracking-wide);
}

.blog-card-title {
  font-size: var(--nexus-text-lg);
  font-weight: var(--nexus-weight-bold);
  color: var(--nexus-heading);
  margin-bottom: var(--nexus-space-3);
  line-height: var(--nexus-leading-snug);
  flex: 1;
}

.blog-card-title a {
  color: inherit;
  text-decoration: none;
  transition: var(--nexus-transition-fast);
}

.blog-card-title a:hover {
  color: var(--nexus-primary);
}

.blog-card-excerpt {
  font-size: var(--nexus-text-sm);
  color: var(--nexus-text-light);
  line-height: var(--nexus-leading-relaxed);
  margin-bottom: var(--nexus-space-4);
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--nexus-space-4);
  border-top: 1px solid var(--nexus-border);
  margin-top: auto;
}

.blog-card-author {
  display: flex;
  align-items: center;
  gap: var(--nexus-space-2);
  font-size: var(--nexus-text-xs);
  color: var(--nexus-text-muted);
}

.blog-card-author img {
  width: 28px;
  height: 28px;
  border-radius: var(--nexus-radius-full);
  object-fit: cover;
}

.read-more-link {
  font-size: var(--nexus-text-sm);
  font-weight: var(--nexus-weight-semibold);
  color: var(--nexus-primary);
  display: flex;
  align-items: center;
  gap: var(--nexus-space-1);
  transition: var(--nexus-transition-fast);
}

.read-more-link:hover {
  gap: var(--nexus-space-2);
  color: var(--nexus-secondary);
}

/* =============================================================================
   COUNTER / STATS
   ============================================================================= */

.nexus-stats-section {
  background-color: var(--nexus-primary);
  padding: var(--nexus-space-20) 0;
  position: relative;
  overflow: hidden;
}

.nexus-stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 50%, rgba(76,200,99,0.2) 0%, transparent 60%),
                    radial-gradient(circle at 80% 50%, rgba(244,162,97,0.1) 0%, transparent 50%);
}

.nexus-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--nexus-space-8);
  position: relative;
  z-index: 1;
}

.stat-item,
.nexus-counter {
  text-align: center;
  color: var(--nexus-white);
}

.stat-item + .stat-item {
  border-left: 1px solid rgba(255,255,255,0.1);
  padding-left: var(--nexus-space-8);
}

.counter-icon {
  font-size: var(--nexus-text-3xl);
  color: var(--nexus-accent);
  margin-bottom: var(--nexus-space-3);
}

.counter-number-wrap,
.stat-number-wrap {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  margin-bottom: var(--nexus-space-2);
}

.counter-prefix {
  font-size: var(--nexus-text-2xl);
  font-weight: var(--nexus-weight-bold);
  color: var(--nexus-white);
}

.counter-number {
  font-size: clamp(var(--nexus-text-3xl), 4vw, var(--nexus-text-5xl));
  font-weight: var(--nexus-weight-black);
  color: var(--nexus-white);
  font-family: var(--nexus-font-heading);
  line-height: 1;
  display: inline-block;
}

.counter-suffix,
.stat-suffix {
  font-size: var(--nexus-text-2xl);
  font-weight: var(--nexus-weight-bold);
  color: var(--nexus-accent);
}

.counter-label,
.stat-label {
  font-size: var(--nexus-text-sm);
  text-transform: uppercase;
  letter-spacing: var(--nexus-tracking-widest);
  color: rgba(255,255,255,0.7);
  margin: 0;
}

/* =============================================================================
   PORTFOLIO SECTION & FILTERS
   ============================================================================= */

.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--nexus-space-2);
  justify-content: center;
  margin-bottom: var(--nexus-space-10);
}

.filter-btn {
  padding: var(--nexus-space-2) var(--nexus-space-5);
  background-color: transparent;
  border: 1px solid var(--nexus-border);
  border-radius: var(--nexus-radius-full);
  font-size: var(--nexus-text-sm);
  font-weight: var(--nexus-weight-medium);
  color: var(--nexus-text-light);
  cursor: pointer;
  transition: var(--nexus-transition-fast);
}

.filter-btn:hover,
.filter-btn.is-active {
  background-color: var(--nexus-primary);
  border-color: var(--nexus-primary);
  color: var(--nexus-white);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--nexus-space-6);
}

.portfolio-item {
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.portfolio-item.is-hidden {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
  position: absolute;
  visibility: hidden;
}

.load-more-wrap {
  text-align: center;
  margin-top: var(--nexus-space-10);
}

/* =============================================================================
   TIMELINE
   ============================================================================= */

/* Vertical timeline */
.timeline-vertical {
  position: relative;
  padding-left: var(--nexus-space-10);
}

.timeline-vertical::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--nexus-primary), var(--nexus-secondary));
  border-radius: var(--nexus-radius-full);
}

.timeline-item {
  position: relative;
  margin-bottom: var(--nexus-space-10);
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: calc(-1 * var(--nexus-space-10) + 12px);
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: var(--nexus-radius-full);
  background-color: var(--nexus-secondary);
  border: 3px solid var(--nexus-white);
  box-shadow: 0 0 0 3px var(--nexus-secondary);
}

.timeline-date {
  font-size: var(--nexus-text-xs);
  font-weight: var(--nexus-weight-semibold);
  color: var(--nexus-secondary);
  text-transform: uppercase;
  letter-spacing: var(--nexus-tracking-wide);
  margin-bottom: var(--nexus-space-2);
}

.timeline-title {
  font-size: var(--nexus-text-lg);
  font-weight: var(--nexus-weight-bold);
  margin-bottom: var(--nexus-space-2);
}

/* Horizontal timeline */
.timeline-horizontal {
  display: flex;
  gap: 0;
  position: relative;
  overflow-x: auto;
  padding-bottom: var(--nexus-space-4);
}

.timeline-horizontal::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--nexus-border);
}

.timeline-h-item {
  flex: 1;
  min-width: 200px;
  padding: var(--nexus-space-10) var(--nexus-space-4) 0;
  position: relative;
  text-align: center;
}

.timeline-h-dot {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  border-radius: var(--nexus-radius-full);
  background-color: var(--nexus-primary);
  border: 3px solid var(--nexus-white);
  box-shadow: 0 0 0 3px var(--nexus-primary);
}

/* =============================================================================
   PRICING TABLES
   ============================================================================= */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--nexus-space-6);
  align-items: start;
}

.pricing-card {
  background-color: var(--nexus-white);
  border: 1px solid var(--nexus-border);
  border-radius: var(--nexus-radius-2xl);
  padding: var(--nexus-space-8);
  transition: var(--nexus-transition-base);
  position: relative;
  overflow: hidden;
}

.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--nexus-shadow-xl);
}

.pricing-card.is-featured {
  background: var(--nexus-gradient-primary);
  border-color: transparent;
  color: var(--nexus-white);
  transform: translateY(-8px);
  box-shadow: var(--nexus-shadow-2xl);
}

.pricing-card.is-featured .pricing-title,
.pricing-card.is-featured .pricing-price,
.pricing-card.is-featured .pricing-period {
  color: var(--nexus-white);
}

.pricing-card.is-featured .pricing-feature {
  color: rgba(255,255,255,0.85);
}

.pricing-featured-badge {
  position: absolute;
  top: var(--nexus-space-4);
  right: var(--nexus-space-4);
  background-color: var(--nexus-accent);
  color: var(--nexus-white);
  font-size: var(--nexus-text-xs);
  font-weight: var(--nexus-weight-bold);
  padding: var(--nexus-space-1) var(--nexus-space-3);
  border-radius: var(--nexus-radius-full);
  text-transform: uppercase;
  letter-spacing: var(--nexus-tracking-wide);
}

.pricing-title {
  font-size: var(--nexus-text-xl);
  font-weight: var(--nexus-weight-bold);
  margin-bottom: var(--nexus-space-3);
}

.pricing-price {
  font-size: var(--nexus-text-5xl);
  font-weight: var(--nexus-weight-black);
  font-family: var(--nexus-font-heading);
  line-height: 1;
  margin-bottom: var(--nexus-space-1);
  color: var(--nexus-heading);
}

.pricing-currency {
  font-size: var(--nexus-text-2xl);
  vertical-align: top;
  margin-top: var(--nexus-space-2);
  display: inline-block;
}

.pricing-period {
  font-size: var(--nexus-text-sm);
  color: var(--nexus-text-muted);
  margin-bottom: var(--nexus-space-6);
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--nexus-space-8);
  border-top: 1px solid rgba(0,0,0,0.1);
  padding-top: var(--nexus-space-6);
}

.pricing-feature {
  display: flex;
  align-items: center;
  gap: var(--nexus-space-3);
  padding: var(--nexus-space-2) 0;
  font-size: var(--nexus-text-sm);
  color: var(--nexus-text);
}

.pricing-feature .check {
  flex-shrink: 0;
  color: var(--nexus-success);
}

.pricing-feature.disabled {
  opacity: 0.4;
}

/* =============================================================================
   FAQ ACCORDION
   ============================================================================= */

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--nexus-border);
  border-radius: var(--nexus-radius-lg);
  margin-bottom: var(--nexus-space-3);
  overflow: hidden;
  transition: var(--nexus-transition-fast);
}

.faq-item.is-open {
  border-color: var(--nexus-primary);
  box-shadow: var(--nexus-shadow-md);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--nexus-space-4);
  padding: var(--nexus-space-5) var(--nexus-space-6);
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: var(--nexus-font-body);
  font-size: var(--nexus-text-base);
  font-weight: var(--nexus-weight-semibold);
  color: var(--nexus-heading);
  transition: var(--nexus-transition-fast);
}

.faq-question:hover {
  color: var(--nexus-primary);
}

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--nexus-radius-full);
  background-color: var(--nexus-gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: var(--nexus-text-lg);
  line-height: 1;
  transition: var(--nexus-transition-fast);
  color: var(--nexus-text-muted);
}

.faq-item.is-open .faq-icon {
  background-color: var(--nexus-primary);
  color: var(--nexus-white);
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-answer-inner {
  padding: 0 var(--nexus-space-6) var(--nexus-space-5);
  font-size: var(--nexus-text-sm);
  color: var(--nexus-text-light);
  line-height: var(--nexus-leading-relaxed);
}

.faq-item.is-open .faq-answer {
  max-height: 1000px;
}

/* =============================================================================
   TABS
   ============================================================================= */

.nexus-tabs {
  overflow: hidden;
}

.tab-nav {
  display: flex;
  border-bottom: 2px solid var(--nexus-border);
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.tab-nav::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  padding: var(--nexus-space-3) var(--nexus-space-6);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  font-family: var(--nexus-font-body);
  font-size: var(--nexus-text-sm);
  font-weight: var(--nexus-weight-semibold);
  color: var(--nexus-text-light);
  cursor: pointer;
  transition: var(--nexus-transition-fast);
  white-space: nowrap;
}

.tab-btn:hover {
  color: var(--nexus-primary);
}

.tab-btn.is-active {
  color: var(--nexus-primary);
  border-bottom-color: var(--nexus-primary);
}

.tab-panel {
  display: none;
  padding: var(--nexus-space-6) 0;
  animation: nexus-fade-in 0.2s ease;
}

.tab-panel.is-active {
  display: block;
}

/* =============================================================================
   CONTACT SECTION
   ============================================================================= */

.contact-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--nexus-space-12);
  align-items: start;
}

.contact-info-item {
  display: flex;
  gap: var(--nexus-space-4);
  margin-bottom: var(--nexus-space-6);
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, rgba(45,174,67,0.1) 0%, rgba(76,200,99,0.1) 100%);
  border-radius: var(--nexus-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--nexus-primary);
  font-size: var(--nexus-text-lg);
}

.contact-info-label {
  font-size: var(--nexus-text-xs);
  text-transform: uppercase;
  letter-spacing: var(--nexus-tracking-wide);
  color: var(--nexus-text-muted);
  margin-bottom: var(--nexus-space-1);
}

.contact-info-value {
  font-weight: var(--nexus-weight-semibold);
  color: var(--nexus-heading);
}

.contact-info-value a {
  color: inherit;
}

.contact-info-value a:hover {
  color: var(--nexus-primary);
}

.map-placeholder {
  background-color: var(--nexus-gray-200);
  border-radius: var(--nexus-radius-xl);
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--nexus-text-muted);
  margin-top: var(--nexus-space-6);
  overflow: hidden;
}

.map-placeholder iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--nexus-radius-xl);
}

/* =============================================================================
   BLOG — LIST & GRID
   ============================================================================= */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--nexus-space-8);
}

.blog-list .card-blog {
  display: grid;
  grid-template-columns: 300px 1fr;
  flex-direction: unset;
}

.blog-list .blog-card-image {
  aspect-ratio: auto;
  height: 100%;
}

.blog-layout-2col .blog-grid {
  grid-template-columns: repeat(2, 1fr);
}

/* =============================================================================
   SINGLE POST
   ============================================================================= */

.single-post-hero {
  position: relative;
  height: 500px;
  overflow: hidden;
}

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

.single-post-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.10) 0%, rgba(45,174,67,0.32) 55%, rgba(45,174,67,0.78) 100%);
  pointer-events: none;
}

.single-post-meta-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--nexus-space-8) var(--nexus-space-6);
  color: var(--nexus-white);
}


.single-post-title {
  color: var(--nexus-white) !important;
  text-shadow: 0 2px 12px rgba(0,0,0,0.55), 0 1px 2px rgba(0,0,0,0.4);
  margin: 0 0 var(--nexus-space-4);
  line-height: 1.15;
}

.single-post-meta-bar,
.single-post-meta-bar a,
.single-post-meta-bar .breadcrumbs,
.single-post-meta-bar .breadcrumbs a {
  color: var(--nexus-white) !important;
}

.post-meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--nexus-space-4);
  align-items: center;
  font-size: var(--nexus-text-sm);
  color: rgba(255,255,255,0.8);
}

.post-meta-list a {
  color: inherit;
}

.post-meta-list a:hover {
  color: var(--nexus-white);
}

/* Article content */
.entry-content {
  max-width: 720px;
  margin: 0 auto;
  font-size: var(--nexus-text-md);
  line-height: var(--nexus-leading-loose);
}

.entry-content h2 {
  margin-top: var(--nexus-space-10);
  margin-bottom: var(--nexus-space-4);
}

.entry-content h3 {
  margin-top: var(--nexus-space-8);
  margin-bottom: var(--nexus-space-3);
}

.entry-content img {
  border-radius: var(--nexus-radius-lg);
  margin: var(--nexus-space-8) 0;
}

.entry-content a {
  text-decoration: underline;
  text-decoration-color: rgba(76,200,99,0.4);
  text-underline-offset: 3px;
}

.entry-content a:hover {
  text-decoration-color: var(--nexus-secondary);
}

/* Author box */
.author-box {
  display: flex;
  gap: var(--nexus-space-6);
  padding: var(--nexus-space-8);
  background-color: var(--nexus-gray-50);
  border-radius: var(--nexus-radius-xl);
  border: 1px solid var(--nexus-border);
  margin: var(--nexus-space-10) 0;
}

.author-box-avatar {
  width: 80px;
  height: 80px;
  border-radius: var(--nexus-radius-full);
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid var(--nexus-white);
  box-shadow: var(--nexus-shadow-md);
}

.author-box-name {
  font-size: var(--nexus-text-md);
  font-weight: var(--nexus-weight-bold);
  margin-bottom: var(--nexus-space-1);
}

.author-box-role {
  font-size: var(--nexus-text-sm);
  color: var(--nexus-secondary);
  font-weight: var(--nexus-weight-medium);
  margin-bottom: var(--nexus-space-3);
}

.author-box-bio {
  font-size: var(--nexus-text-sm);
  color: var(--nexus-text-light);
  margin: 0;
}

/* Table of Contents */
.post-toc {
  background-color: var(--nexus-gray-50);
  border: 1px solid var(--nexus-border);
  border-left: 4px solid var(--nexus-primary);
  border-radius: 0 var(--nexus-radius-lg) var(--nexus-radius-lg) 0;
  padding: var(--nexus-space-5) var(--nexus-space-6);
  margin: var(--nexus-space-8) 0;
}

.post-toc-title {
  font-size: var(--nexus-text-sm);
  font-weight: var(--nexus-weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--nexus-tracking-wide);
  margin-bottom: var(--nexus-space-3);
  color: var(--nexus-primary);
}

.post-toc ol {
  margin: 0;
  padding-left: var(--nexus-space-5);
}

.post-toc li {
  font-size: var(--nexus-text-sm);
  margin-bottom: var(--nexus-space-2);
}

/* =============================================================================
   SIDEBAR
   ============================================================================= */

.with-sidebar {
  display: grid;
  grid-template-columns: 1fr var(--nexus-sidebar-width);
  gap: var(--nexus-space-10);
  align-items: start;
}

.widget {
  margin-bottom: var(--nexus-space-8);
}

.widget-title {
  font-size: var(--nexus-text-md);
  font-weight: var(--nexus-weight-bold);
  margin-bottom: var(--nexus-space-4);
  padding-bottom: var(--nexus-space-3);
  border-bottom: 2px solid var(--nexus-primary);
  color: var(--nexus-heading);
  position: relative;
}

.widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.widget ul li {
  padding: var(--nexus-space-2) 0;
  border-bottom: 1px solid var(--nexus-border);
  font-size: var(--nexus-text-sm);
}

.widget ul li:last-child {
  border-bottom: none;
}

.widget ul li a {
  color: var(--nexus-text);
  text-decoration: none;
}

.widget ul li a:hover {
  color: var(--nexus-primary);
}

/* Recent posts widget */
.nexus-recent-posts-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nexus-recent-post-item {
  display: flex;
  gap: var(--nexus-space-3);
  padding: var(--nexus-space-3) 0;
  border-bottom: 1px solid var(--nexus-border);
}

.nexus-recent-post-item:last-child {
  border-bottom: none;
}

.recent-post-thumb {
  flex-shrink: 0;
  width: 70px;
  height: 60px;
  border-radius: var(--nexus-radius-md);
  overflow: hidden;
  display: block;
}

.recent-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.recent-post-thumb:hover img {
  transform: scale(1.1);
}

.recent-post-content {
  flex: 1;
  min-width: 0;
}

.recent-post-title {
  font-size: var(--nexus-text-sm);
  font-weight: var(--nexus-weight-semibold);
  line-height: var(--nexus-leading-snug);
  margin-bottom: var(--nexus-space-1);
}

.recent-post-title a {
  color: var(--nexus-heading);
  text-decoration: none;
}

.recent-post-title a:hover {
  color: var(--nexus-primary);
}

.recent-post-date {
  font-size: var(--nexus-text-xs);
  color: var(--nexus-text-muted);
  display: flex;
  align-items: center;
  gap: var(--nexus-space-1);
}

.recent-post-excerpt {
  font-size: var(--nexus-text-xs);
  color: var(--nexus-text-muted);
  margin-top: var(--nexus-space-1);
  margin-bottom: 0;
}

/* =============================================================================
   PAGE HEADER
   ============================================================================= */

.nexus-page-header {
  background: linear-gradient(135deg, var(--nexus-primary) 0%, var(--nexus-secondary) 100%);
  padding: var(--nexus-space-20) 0 var(--nexus-space-16);
  position: relative;
  overflow: hidden;
}

.nexus-page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 80% 50%, rgba(255,255,255,0.06) 0%, transparent 60%);
}

.page-header-content {
  position: relative;
  z-index: 1;
}

.page-header-title {
  font-size: clamp(var(--nexus-text-2xl), 4vw, var(--nexus-text-4xl));
  font-weight: var(--nexus-weight-black);
  color: var(--nexus-white);
  margin-bottom: var(--nexus-space-3);
}

.page-header-description {
  font-size: var(--nexus-text-md);
  color: rgba(255,255,255,0.75);
  max-width: 600px;
  margin: 0 0 var(--nexus-space-4);
}

/* =============================================================================
   BREADCRUMBS
   ============================================================================= */

.nexus-breadcrumbs {
  margin-top: var(--nexus-space-2);
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--nexus-space-1);
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: var(--nexus-text-sm);
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  gap: var(--nexus-space-1);
  color: rgba(255,255,255,0.7);
}

.breadcrumb-item a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: var(--nexus-transition-fast);
}

.breadcrumb-item a:hover {
  color: var(--nexus-white);
}

.breadcrumb-item.active {
  color: var(--nexus-white);
}

.breadcrumb-separator {
  color: rgba(255,255,255,0.4);
}

/* Standalone breadcrumbs (dark) */
.nexus-breadcrumbs.dark .breadcrumb-item,
.nexus-breadcrumbs.dark .breadcrumb-item a {
  color: var(--nexus-text-muted);
}

.nexus-breadcrumbs.dark .breadcrumb-item a:hover {
  color: var(--nexus-primary);
}

.nexus-breadcrumbs.dark .breadcrumb-item.active {
  color: var(--nexus-text);
}

/* =============================================================================
   FOOTER
   ============================================================================= */

.site-footer {
  background-color: var(--nexus-gray-900);
  color: var(--nexus-gray-300);
}

.footer-main {
  padding: var(--nexus-space-20) 0 var(--nexus-space-10);
}

.footer-widgets {
  display: grid;
  gap: var(--nexus-space-10);
}

.footer-widgets.cols-1 { grid-template-columns: 1fr; }
.footer-widgets.cols-2 { grid-template-columns: repeat(2, 1fr); }
.footer-widgets.cols-3 { grid-template-columns: repeat(3, 1fr); }
.footer-widgets.cols-4 { grid-template-columns: 2fr 1fr 1fr 1fr; }

.footer-widget .footer-widget-title {
  font-size: var(--nexus-text-sm);
  font-weight: var(--nexus-weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--nexus-tracking-widest);
  color: var(--nexus-white);
  margin-bottom: var(--nexus-space-5);
  padding-bottom: var(--nexus-space-3);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-widget ul li {
  padding: var(--nexus-space-2) 0;
}

.footer-widget ul li a {
  color: var(--nexus-gray-400);
  text-decoration: none;
  font-size: var(--nexus-text-sm);
  transition: var(--nexus-transition-fast);
  display: flex;
  align-items: center;
  gap: var(--nexus-space-2);
}

.footer-widget ul li a:hover {
  color: var(--nexus-white);
  padding-left: var(--nexus-space-1);
}

.footer-brand-description {
  font-size: var(--nexus-text-sm);
  line-height: var(--nexus-leading-relaxed);
  color: var(--nexus-gray-400);
  margin-bottom: var(--nexus-space-5);
}

/* Social links in footer */
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: var(--nexus-space-2);
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: var(--nexus-radius-full);
  background-color: rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--nexus-gray-300);
  font-size: var(--nexus-text-sm);
  transition: var(--nexus-transition-fast);
}

.footer-social a:hover {
  background-color: var(--nexus-primary);
  color: var(--nexus-white);
  transform: translateY(-3px);
}

/* Footer bottom */
.footer-bottom {
  padding: var(--nexus-space-6) 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--nexus-space-4);
}

.footer-copyright-text {
  font-size: var(--nexus-text-sm);
  color: var(--nexus-gray-500);
}

.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--nexus-space-4);
}

.footer-bottom-links a {
  font-size: var(--nexus-text-sm);
  color: var(--nexus-gray-500);
  text-decoration: none;
  transition: var(--nexus-transition-fast);
}

.footer-bottom-links a:hover {
  color: var(--nexus-white);
}

/* =============================================================================
   BACK TO TOP
   ============================================================================= */

.back-to-top {
  position: fixed;
  bottom: var(--nexus-space-8);
  right: var(--nexus-space-8);
  width: 46px;
  height: 46px;
  background: var(--nexus-gradient-primary);
  color: var(--nexus-white);
  border: none;
  border-radius: var(--nexus-radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--nexus-shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: var(--nexus-z-toast);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: var(--nexus-shadow-xl);
}

/* =============================================================================
   COOKIE NOTICE
   ============================================================================= */

.nexus-cookie-notice {
  position: fixed;
  bottom: var(--nexus-space-6);
  left: var(--nexus-space-6);
  right: var(--nexus-space-6);
  max-width: 600px;
  background-color: var(--nexus-gray-900);
  color: var(--nexus-white);
  padding: var(--nexus-space-5) var(--nexus-space-6);
  border-radius: var(--nexus-radius-xl);
  box-shadow: var(--nexus-shadow-2xl);
  z-index: var(--nexus-z-toast);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--nexus-space-4);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nexus-cookie-notice.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.cookie-text {
  font-size: var(--nexus-text-sm);
  color: var(--nexus-gray-300);
  flex: 1;
}

.cookie-text a {
  color: var(--nexus-secondary);
}

/* =============================================================================
   CTA SECTION
   ============================================================================= */

.cta-section {
  background: var(--nexus-gradient-primary);
  padding: var(--nexus-space-20) 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-section::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: var(--nexus-radius-full);
  background-color: rgba(255,255,255,0.04);
  top: -200px;
  right: -100px;
}

.cta-section::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: var(--nexus-radius-full);
  background-color: rgba(255,255,255,0.04);
  bottom: -150px;
  left: -50px;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-title {
  font-size: clamp(var(--nexus-text-2xl), 4vw, var(--nexus-text-4xl));
  font-weight: var(--nexus-weight-black);
  color: var(--nexus-white);
  margin-bottom: var(--nexus-space-4);
}

.cta-subtitle {
  font-size: var(--nexus-text-md);
  color: rgba(255,255,255,0.8);
  max-width: 500px;
  margin: 0 auto var(--nexus-space-8);
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--nexus-space-4);
  justify-content: center;
}

/* =============================================================================
   PAGINATION
   ============================================================================= */

.nexus-pagination {
  margin-top: var(--nexus-space-12);
}

.pagination-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--nexus-space-2);
  list-style: none;
  padding: 0;
  margin: 0;
}

.pagination-item a,
.pagination-item span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 var(--nexus-space-3);
  border: 1px solid var(--nexus-border);
  border-radius: var(--nexus-radius-md);
  font-size: var(--nexus-text-sm);
  font-weight: var(--nexus-weight-medium);
  color: var(--nexus-text);
  text-decoration: none;
  transition: var(--nexus-transition-fast);
}

.pagination-item a:hover {
  background-color: var(--nexus-primary);
  border-color: var(--nexus-primary);
  color: var(--nexus-white);
}

.pagination-item.active span {
  background-color: var(--nexus-primary);
  border-color: var(--nexus-primary);
  color: var(--nexus-white);
}

.pagination-item .dots {
  border-color: transparent;
}

/* =============================================================================
   SEARCH RESULTS
   ============================================================================= */

.search-results-header {
  margin-bottom: var(--nexus-space-8);
}

.search-count {
  font-size: var(--nexus-text-md);
  color: var(--nexus-text-light);
}

.search-count strong {
  color: var(--nexus-heading);
}

.search-no-results {
  text-align: center;
  padding: var(--nexus-space-20) 0;
}

.search-no-results-icon {
  font-size: 4rem;
  margin-bottom: var(--nexus-space-4);
  opacity: 0.3;
}

/* =============================================================================
   404 PAGE
   ============================================================================= */

.error-404-section {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--nexus-space-20) 0;
}

.error-404-icon {
  margin: 0 auto var(--nexus-space-6);
  max-width: 300px;
}

.error-404-code {
  font-size: clamp(5rem, 15vw, 8rem);
  font-weight: var(--nexus-weight-black);
  font-family: var(--nexus-font-heading);
  line-height: 1;
  background: var(--nexus-gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--nexus-space-4);
}

.error-404-title {
  font-size: var(--nexus-text-2xl);
  margin-bottom: var(--nexus-space-4);
}

.error-404-message {
  color: var(--nexus-text-light);
  max-width: 40ch;
  margin: 0 auto var(--nexus-space-8);
}

/* =============================================================================
   COMMENTS
   ============================================================================= */

.comments-section {
  margin-top: var(--nexus-space-12);
  padding-top: var(--nexus-space-10);
  border-top: 1px solid var(--nexus-border);
}

.comments-title {
  font-size: var(--nexus-text-xl);
  margin-bottom: var(--nexus-space-6);
}

.comment-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--nexus-space-10);
}

.comment {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: var(--nexus-space-4);
  margin-bottom: var(--nexus-space-6);
}

.comment-avatar img {
  width: 50px;
  height: 50px;
  border-radius: var(--nexus-radius-full);
  object-fit: cover;
}

.comment-meta {
  margin-bottom: var(--nexus-space-2);
}

.comment-author-name {
  font-weight: var(--nexus-weight-bold);
  color: var(--nexus-heading);
  margin-right: var(--nexus-space-2);
}

.comment-date {
  font-size: var(--nexus-text-xs);
  color: var(--nexus-text-muted);
}

.comment-body p {
  font-size: var(--nexus-text-sm);
  color: var(--nexus-text);
  margin-bottom: var(--nexus-space-2);
}

.comment-reply-link {
  font-size: var(--nexus-text-xs);
  font-weight: var(--nexus-weight-semibold);
  color: var(--nexus-primary);
  text-decoration: none;
}

.comment-reply-link:hover {
  color: var(--nexus-secondary);
}

.children {
  list-style: none;
  padding-left: var(--nexus-space-10);
  margin-top: var(--nexus-space-4);
}

/* Comment form */
.comment-form-wrap {
  background-color: var(--nexus-gray-50);
  border-radius: var(--nexus-radius-xl);
  padding: var(--nexus-space-8);
}

.comment-form-title {
  font-size: var(--nexus-text-xl);
  margin-bottom: var(--nexus-space-6);
}

.comment-form .comment-notes {
  font-size: var(--nexus-text-sm);
  color: var(--nexus-text-muted);
  margin-bottom: var(--nexus-space-5);
}

.comment-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--nexus-space-4);
}

/* =============================================================================
   LIGHTBOX
   ============================================================================= */

.nexus-lightbox-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0,0,0,0.92);
  z-index: calc(var(--nexus-z-modal) + 10);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nexus-lightbox-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox-close {
  position: absolute;
  top: var(--nexus-space-6);
  right: var(--nexus-space-6);
  width: 44px;
  height: 44px;
  background-color: rgba(255,255,255,0.1);
  border: none;
  border-radius: var(--nexus-radius-full);
  color: var(--nexus-white);
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--nexus-transition-fast);
}

.lightbox-close:hover {
  background-color: rgba(255,255,255,0.2);
}

.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: var(--nexus-radius-lg);
  overflow: hidden;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
}

/* =============================================================================
   WOOCOMMERCE
   ============================================================================= */

.woocommerce .products {
  display: grid;
  gap: var(--nexus-space-6);
  list-style: none;
  padding: 0;
  margin: 0;
}

.woocommerce .products.columns-2 { grid-template-columns: repeat(2, 1fr); }
.woocommerce .products.columns-3 { grid-template-columns: repeat(3, 1fr); }
.woocommerce .products.columns-4 { grid-template-columns: repeat(4, 1fr); }

.woocommerce .product {
  background-color: var(--nexus-white);
  border: 1px solid var(--nexus-border);
  border-radius: var(--nexus-radius-xl);
  overflow: hidden;
  transition: var(--nexus-transition-base);
}

.woocommerce .product:hover {
  transform: translateY(-6px);
  box-shadow: var(--nexus-shadow-xl);
  border-color: transparent;
}

.woocommerce .product img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.woocommerce .product:hover img {
  transform: scale(1.05);
}

.woocommerce .product .product-info {
  padding: var(--nexus-space-4);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: var(--nexus-text-base);
  font-weight: var(--nexus-weight-semibold);
  color: var(--nexus-heading);
  margin-bottom: var(--nexus-space-2);
  padding: var(--nexus-space-4) var(--nexus-space-4) 0;
}

.woocommerce ul.products li.product .price {
  font-size: var(--nexus-text-md);
  font-weight: var(--nexus-weight-bold);
  color: var(--nexus-primary);
  padding: 0 var(--nexus-space-4) var(--nexus-space-4);
  display: block;
}

.woocommerce ul.products li.product .button {
  margin: 0 var(--nexus-space-4) var(--nexus-space-4);
  width: calc(100% - var(--nexus-space-8));
  display: block;
  text-align: center;
  background-color: var(--nexus-primary);
  color: var(--nexus-white);
  border-radius: var(--nexus-radius-md);
  padding: var(--nexus-space-2) var(--nexus-space-4);
  font-size: var(--nexus-text-sm);
  font-weight: var(--nexus-weight-semibold);
  text-decoration: none;
  transition: var(--nexus-transition-fast);
  border: none;
  cursor: pointer;
  font-family: var(--nexus-font-body);
}

.woocommerce ul.products li.product .button:hover {
  background-color: var(--nexus-primary-dark);
}

/* Single product */
.woocommerce-product-gallery {
  border-radius: var(--nexus-radius-xl);
  overflow: hidden;
}

.woocommerce div.product .product_title {
  font-size: clamp(var(--nexus-text-xl), 3vw, var(--nexus-text-3xl));
  margin-bottom: var(--nexus-space-4);
}

.woocommerce div.product .price {
  font-size: var(--nexus-text-2xl);
  font-weight: var(--nexus-weight-bold);
  color: var(--nexus-primary);
  margin-bottom: var(--nexus-space-4);
}

/* Quantity */
.quantity .qty {
  width: 60px;
  text-align: center;
  padding: var(--nexus-space-2) var(--nexus-space-3);
  border: 1px solid var(--nexus-border);
  border-radius: var(--nexus-radius-md);
  font-size: var(--nexus-text-base);
}

.nexus-qty-wrap {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--nexus-border);
  border-radius: var(--nexus-radius-md);
  overflow: hidden;
  width: fit-content;
}

.nexus-qty-btn {
  width: 38px;
  height: 38px;
  background-color: var(--nexus-gray-100);
  border: none;
  cursor: pointer;
  font-size: var(--nexus-text-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--nexus-text);
  transition: var(--nexus-transition-fast);
}

.nexus-qty-btn:hover {
  background-color: var(--nexus-primary);
  color: var(--nexus-white);
}

/* Cart & checkout */
.woocommerce table.shop_table {
  border: 1px solid var(--nexus-border);
  border-radius: var(--nexus-radius-lg);
}

.woocommerce table.shop_table th {
  background-color: var(--nexus-gray-50);
}

/* =============================================================================
   SHARE BUTTONS
   ============================================================================= */

.nexus-share {
  display: flex;
  align-items: center;
  gap: var(--nexus-space-3);
  flex-wrap: wrap;
}

.share-label {
  font-size: var(--nexus-text-sm);
  font-weight: var(--nexus-weight-semibold);
  color: var(--nexus-text);
}

.share-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: var(--nexus-space-2);
}

.share-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--nexus-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--nexus-text-sm);
  color: var(--nexus-white);
  text-decoration: none;
  transition: var(--nexus-transition-fast);
}

.share-btn--twitter  { background-color: #000000; }
.share-btn--facebook { background-color: #1877F2; }
.share-btn--linkedin { background-color: #0A66C2; }
.share-btn--whatsapp { background-color: #25D366; }

.share-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--nexus-shadow-md);
  color: var(--nexus-white);
}

/* =============================================================================
   AOS ANIMATION OVERRIDES
   ============================================================================= */

[data-aos] {
  pointer-events: none;
}

[data-aos].aos-animate {
  pointer-events: auto;
}

/* Ensure AOS works with reduced motion */
@media (prefers-reduced-motion: reduce) {
  [data-aos] {
    transition: none !important;
    transform: none !important;
  }
}

/* =============================================================================
   LOADING SKELETON
   ============================================================================= */

.skeleton {
  background: linear-gradient(90deg, var(--nexus-gray-200) 25%, var(--nexus-gray-100) 50%, var(--nexus-gray-200) 75%);
  background-size: 200% 100%;
  animation: nexus-skeleton 1.5s infinite;
  border-radius: var(--nexus-radius-md);
}

@keyframes nexus-skeleton {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* =============================================================================
   HELPERS & MISC
   ============================================================================= */

/* Smooth anchor scroll target offset */
:target {
  scroll-margin-top: calc(var(--nexus-header-height, 80px) + var(--nexus-space-4));
}

/* Focus visible styles */
:focus-visible {
  outline: 2px solid var(--nexus-secondary);
  outline-offset: 2px;
  border-radius: var(--nexus-radius-sm);
}

/* Text selection */
::selection {
  background-color: rgba(45,174,67, 0.15);
  color: var(--nexus-heading);
}

/* Scrollbar styling (webkit) */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background-color: var(--nexus-gray-100);
}

::-webkit-scrollbar-thumb {
  background-color: var(--nexus-gray-400);
  border-radius: var(--nexus-radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--nexus-gray-600);
}

/* =============================================================================
   BLOG — MODERN CARD (override) + LOAD MORE
   ============================================================================= */

.blog-grid { gap: var(--nexus-space-8); }

.card-blog.card-blog--modern {
  position: relative;
  background: var(--nexus-white);
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 4px 16px rgba(15,23,42,0.04);
  overflow: hidden;
  transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s ease, border-color .35s ease;
  display: flex;
  flex-direction: column;
}
.card-blog.card-blog--modern:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px -12px rgba(15,23,42,0.18);
  border-color: rgba(0,0,0,0.02);
}

.card-blog--modern .blog-card-image {
  position: relative;
  display: block;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #f3f4f6;
}
.card-blog--modern .blog-card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.22,1,.36,1);
}
.card-blog--modern:hover .blog-card-image img { transform: scale(1.08); }

.blog-card-image__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,0.45) 100%);
  opacity: .85;
  pointer-events: none;
  transition: opacity .35s ease;
}
.card-blog--modern:hover .blog-card-image__overlay { opacity: 1; }

.blog-card-category-floating {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 2;
  background: rgba(255,255,255,0.95);
  color: var(--nexus-primary, #2dae43);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  transition: transform .25s ease;
}
.card-blog--modern:hover .blog-card-category-floating { transform: translateY(-2px); }

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

.card-blog--modern .blog-card-meta {
  display: flex; align-items: center; gap: 14px;
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 12px;
}
.card-blog--modern .blog-card-meta i { margin-right: 6px; opacity: .7; }
.card-blog--modern .blog-card-meta time,
.card-blog--modern .blog-card-meta .reading-time { display: inline-flex; align-items: center; }

.card-blog--modern .blog-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 10px;
  color: #0f172a;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-blog--modern .blog-card-title a { color: inherit; text-decoration: none; transition: color .2s; }
.card-blog--modern .blog-card-title a:hover { color: var(--nexus-primary, #2dae43); }

.card-blog--modern .blog-card-excerpt {
  font-size: .92rem;
  color: #4b5563;
  line-height: 1.6;
  margin: 0 0 18px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-blog--modern .blog-card-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
  display: flex; align-items: center; justify-content: space-between;
}

.card-blog--modern .blog-card-author { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #6b7280; font-weight: 500; }
.card-blog--modern .blog-card-author img,
.card-blog--modern .blog-card-author .author-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.card-blog--modern .read-more-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .85rem; font-weight: 600;
  color: var(--nexus-primary, #2dae43);
  text-decoration: none;
  transition: gap .25s ease, color .2s ease;
}
.card-blog--modern .read-more-link:hover { gap: 12px; }
.card-blog--modern .read-more-link i { font-size: .8rem; }

/* Load More button + spinner */
.nexus-loadmore-wrap {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}
.nexus-loadmore {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: var(--nexus-primary, #2dae43);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  box-shadow: 0 8px 20px rgba(45,174,67,0.25);
}
.nexus-loadmore:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(45,174,67,0.35); }
.nexus-loadmore:disabled { cursor: not-allowed; opacity: .85; }
.nexus-loadmore .nexus-spinner {
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  animation: nexus-spin .7s linear infinite;
  display: none;
}
.nexus-loadmore.is-loading .nexus-spinner { display: inline-block; }
.nexus-loadmore.is-loading .nexus-loadmore__label { opacity: .6; }
.nexus-loadmore-end {
  font-size: .9rem; color: #6b7280; padding: 14px;
}
@keyframes nexus-spin { to { transform: rotate(360deg); } }

@media (max-width: 992px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 600px) {
  .blog-grid { grid-template-columns: 1fr !important; }
}

/* =============================================================================
   CATEGORY / TAG HERO (modern)
   ============================================================================= */
.nexus-cat-hero {
  position: relative;
  padding: clamp(60px, 10vw, 110px) 0 clamp(50px, 8vw, 90px);
  background: linear-gradient(135deg, #2dae43 0%, #1f8a32 50%, #4cc863 100%);
  color: #fff;
  overflow: hidden;
  margin-bottom: 0;
}
.nexus-cat-hero.has-image::before {
  content: "";
  position: absolute; inset: 0;
  background-image: var(--cat-hero-image);
  background-size: cover;
  background-position: center;
  filter: blur(2px) saturate(1.1);
  transform: scale(1.05);
  opacity: .5;
}
.nexus-cat-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(45,174,67,0.85) 0%, rgba(31,138,50,0.75) 50%, rgba(15,23,42,0.9) 100%);
  z-index: 1;
}
.nexus-cat-hero .container { position: relative; z-index: 2; }
.nexus-cat-hero__content { max-width: 760px; }
.nexus-cat-hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
}
.nexus-cat-hero__badge i { opacity: .9; }
.nexus-cat-hero__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 16px;
  color: #fff;
  letter-spacing: -0.02em;
}
.nexus-cat-hero__title span { color: #fff; }
.nexus-cat-hero__desc {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
  margin: 0 0 24px;
  max-width: 640px;
}
.nexus-cat-hero__desc p { margin: 0 0 .5em; }
.nexus-cat-hero .breadcrumbs,
.nexus-cat-hero .nexus-breadcrumbs {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
}
.nexus-cat-hero .breadcrumbs a,
.nexus-cat-hero .nexus-breadcrumbs a { color: rgba(255,255,255,0.85); text-decoration: none; }
.nexus-cat-hero .breadcrumbs a:hover,
.nexus-cat-hero .nexus-breadcrumbs a:hover { color: #fff; text-decoration: underline; }
