/*
 * FlowDrya Website - Main Stylesheet
 * AI SEO/AEO Optimized Design
 * Mobile-First Responsive Design
 */

/* ============================================
   SKIP NAVIGATION (WCAG Accessibility)
   ============================================ */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 100000;
  padding: 0.75rem 1.5rem;
  background: var(--primary-green, #003E01);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s ease;
  clip: rect(0, 0, 0, 0);
  overflow: hidden;
  width: 1px;
  height: 1px;
}

.skip-link:focus {
  top: 0;
  color: #fff;
  outline: 3px solid var(--golden-accent, #F8B93B);
  outline-offset: 2px;
  clip: auto;
  overflow: visible;
  width: auto;
  height: auto;
}

/* ============================================
   CSS VARIABLES & THEME
   ============================================ */
:root {
  /* Colors - STRONGA Brand Colors */
  --primary-green: #003E01;       /* STRONGA brand green - main color */
  --success-green: #003E01;       /* Success green matches brand */
  --dark-green: #002D01;          /* Darker green for hover states */
  --darker-green: #002201;        /* Very dark green for active states */
  --light-green: #e6f5e6;         /* Very light green for backgrounds */
  --accent-green: #003E01;        /* Accent = primary STRONGA green */
  --golden-accent: #F8B93B;       /* Golden yellow for CTAs */
  --primary-color: #212529;       /* STRONGA dark text color */
  --secondary-color: #555555;
  --light-bg: #fafbfa;            /* Clean white-green tint */
  --white: #ffffff;
  --text-dark: #1a1a1a;           /* Primary text - darker for better contrast */
  --text-lead: #251f20;           /* Lead text color - rich dark */
  --text-gray: #4a4a4a;           /* Secondary text - darker for readability */
  --text-muted: #717171;          /* Muted text */
  --text-light: #999999;          /* Light text */
  --border-color: #e5e5e5;
  --border-hover: #003E01;        /* STRONGA green for hover borders */

  /* Typography Scale - Clean Flat Design (based on new_demo) */
  --text-display-xl: clamp(2.5rem, 6vw, 4.5rem);   /* Hero headlines */
  --text-display: clamp(2rem, 4vw, 3rem);          /* Section titles */
  --text-heading-lg: clamp(1.75rem, 3vw, 2.25rem); /* Large headings */
  --text-heading: clamp(1.5rem, 2.5vw, 1.875rem);  /* Regular headings */
  --text-heading-sm: clamp(1.25rem, 2vw, 1.5rem);  /* Small headings */
  --text-body-lg: 1.125rem;                         /* Large body text */
  --text-body: 1rem;                                /* Regular body text */
  --text-body-sm: 0.9375rem;                        /* Small body text */
  --text-small: 0.875rem;                           /* Small text */
  --text-xs: 0.75rem;                               /* Extra small text */

  /* Line Heights - Clean readable spacing */
  --leading-none: 1;
  --leading-tight: 1.15;
  --leading-snug: 1.3;
  --leading-normal: 1.5;
  --leading-relaxed: 1.65;
  --leading-loose: 1.8;

  /* Font Weights - Standardized */
  --weight-normal: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* Spacing - Generous like Canfor */
  --section-padding: 100px 0;
  --card-padding: 2.5rem;
  --container-max-width: 1320px;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;

  /* Transitions - Smooth Flat Design */
  --transition-speed: 0.3s;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 150ms var(--ease-out);
  --transition-base: 300ms var(--ease-out);
  --transition-slow: 500ms var(--ease-out);

  /* Shadows - Minimal Flat Design (Canfor style) */
  --shadow-light: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-medium: 0 2px 4px rgba(0,0,0,0.08);
  --shadow-hover: 0 2px 6px rgba(0,0,0,0.1);
  --box-shadow: none;
  --box-shadow-hover: 0 2px 8px rgba(0,0,0,0.1);

  /* Border Radius - Square Flat Design (Canfor style) */
  --radius-small: 0;
  --radius-medium: 0;
  --radius-large: 0;
  --radius-xl: 0;
  --radius-full: 0;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-size: var(--text-body);
  font-weight: var(--weight-normal);
  line-height: var(--leading-relaxed);
  color: var(--text-gray);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Container Width Override - Wider for 1440px+ screens */
.container,
.container-lg,
.container-xl,
.container-xxl {
  max-width: var(--container-max-width);
}

@media (min-width: 1400px) {
  .container,
  .container-lg,
  .container-xl,
  .container-xxl {
    max-width: 1320px;
  }
}

@media (min-width: 1600px) {
  .container,
  .container-lg,
  .container-xl,
  .container-xxl {
    max-width: 1440px;
  }
}

/* Typography - Clean Flat Design */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--weight-semibold);
  color: var(--text-dark);
  line-height: var(--leading-tight);
}

h1, .h1 {
  font-size: var(--text-display-xl);
  font-weight: var(--weight-bold);
  letter-spacing: -0.02em;
}

h2, .h2 {
  font-size: var(--text-display);
  letter-spacing: -0.01em;
}

h3, .h3 {
  font-size: var(--text-heading-lg);
}

h4, .h4 {
  font-size: var(--text-heading);
}

h5, .h5 {
  font-size: var(--text-heading-sm);
}

p {
  margin-bottom: var(--space-6);
}

p:last-child {
  margin-bottom: 0;
}

.lead {
  font-size: var(--text-body-lg);
  line-height: var(--leading-relaxed);
  color: var(--text-gray);
}

.text-muted {
  color: var(--text-muted);
}

.text-small {
  font-size: var(--text-small);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--primary-green);
}

/* ============================================
   HEADER & NAVIGATION (Progressive Fade - Enhanced)
   ============================================ */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  transition: none; /* All transitions controlled by JavaScript */
  opacity: 1;
  --header-bg-opacity: 0;
  --header-blur: 0px;
  will-change: opacity;
  overflow: visible; /* Allow dropdowns to overflow */
}

/* Dynamic background with CSS variable for opacity */
.main-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 62, 1, var(--header-bg-opacity)); /* STRONGA green #003E01 with dynamic opacity */
  backdrop-filter: blur(var(--header-blur));
  -webkit-backdrop-filter: blur(var(--header-blur)); /* Safari support */
  transition: none; /* JavaScript controls all changes for smoothness */
  z-index: -1;
  will-change: backdrop-filter;
}

/* Box shadow with dynamic opacity - rounded to match header */
.main-header.has-shadow {
  box-shadow: 0 4px 12px rgba(0, 0, 0, calc(var(--header-bg-opacity) * 0.15));
}

/* ============================================
   STATIC HEADER - For non-home pages (About Us, etc.)
   White background, black text, sticky on scroll
   ============================================ */
.main-header.header-static {
  position: sticky !important;
  top: 0 !important;
  left: auto !important;
  background: var(--white) !important;
  border-bottom: 1px solid var(--border-color);
  z-index: 1000; /* High z-index to stay on top when sticky */
}

.main-header.header-static::before {
  display: none !important; /* No dynamic background needed */
}

/* Static header - Black nav links */
.main-header.header-static .navbar-nav .nav-link {
  color: var(--text-dark);
}

.main-header.header-static .navbar-nav .nav-link:hover {
  color: var(--primary-green);
  text-shadow: none;
}

.main-header.header-static .navbar-nav .nav-link.active {
  color: var(--primary-green);
}

.main-header.header-static .navbar-nav .nav-link:focus {
  outline-color: var(--primary-green);
  color: var(--primary-green);
}

/* Static header - Black underline for nav links */
.main-header.header-static .navbar-nav .nav-link:not(.dropdown-toggle)::after {
  background: var(--primary-green);
  box-shadow: none;
}

/* Static header - Dropdown toggle underline */
.main-header.header-static .navbar-nav .dropdown-toggle::before {
  background: var(--primary-green);
}

/* Static header - Translate icon black */
.main-header.header-static .translate-trigger i {
  color: var(--text-dark) !important;
}

.main-header.header-static .translate-trigger:hover i {
  color: var(--primary-green) !important;
}

/* Static header - Mobile toggler black icon */
.main-header.header-static .navbar-toggler {
  border-color: rgba(0, 0, 0, 0.3);
}

.main-header.header-static .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.7%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar {
  padding: 1.2rem 0;
  transition: padding 0.3s ease;
  position: relative;
  z-index: 1;
  overflow: visible; /* Allow dropdowns to overflow */
}

/* Logo - Always white with smooth transitions */
.navbar-brand .logo-text {
  font-family: 'Impact', sans-serif;
  font-size: 2rem;
  font-weight: 400;
  color: var(--white);
  letter-spacing: 0;
  transition: color 0.3s ease, font-size 0.3s ease;
  position: relative;
  z-index: 2;
}

/* FlowDrya subtext - larger, lighter Impact font */
.navbar-brand .logo-subtext {
  font-family: 'Impact', sans-serif;
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--white);
  letter-spacing: 0;
  margin-left: 0.25rem;
  transition: color 0.3s ease, font-size 0.3s ease;
  position: relative;
  z-index: 2;
  opacity: 0.95;
}

/* Logo Images */
.navbar-logo {
  height: 60px;
  width: auto;
  transition: all 0.3s ease;
}

.navbar-brand:hover .navbar-logo {
  transform: scale(1.05);
}

.footer-logo {
  max-height: 40px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  margin-bottom: 0.75rem !important;
}

/* Navigation links - White with all states visible */
.navbar-nav .nav-link {
  font-size: 1rem;
  font-weight: 500;
  padding: 0.5rem 1.25rem;
  color: var(--white);
  transition: all var(--transition-speed) ease;
  position: relative;
}

/* Hover state - brighter */
.navbar-nav .nav-link:hover {
  color: var(--white);
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* Active state - full brightness with underline */
.navbar-nav .nav-link.active {
  color: var(--white);
  font-weight: 600;
}

/* Focus state - accessibility */
.navbar-nav .nav-link:focus {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
  color: var(--white);
}

/* Underline effect for regular nav links (not dropdowns) */
.navbar-nav .nav-link:not(.dropdown-toggle)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--white);
  transition: width 0.3s ease;
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.3);
}

.navbar-nav .nav-link:not(.dropdown-toggle):hover::after,
.navbar-nav .nav-link:not(.dropdown-toggle).active::after {
  width: 60%;
}

/* Dropdown toggle - hide Bootstrap default arrow */
.navbar-nav .dropdown-toggle::after {
  display: none !important; /* Remove arrow completely */
}

/* Dropdown arrow - simple inline arrow */
.dropdown-arrow {
  font-size: 0.65rem;
  margin-left: 0.4rem;
  opacity: 0.85;
  vertical-align: middle;
  display: inline-block;
  transition: transform 0.2s ease;
}

/* Rotate arrow when dropdown is open */
.dropdown.show .dropdown-arrow {
  transform: rotate(180deg);
}

/* Dropdown menu indicator - subtle underline */
.navbar-nav .dropdown-toggle {
  position: relative;
}

.navbar-nav .dropdown-toggle::before {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--white);
  transition: width 0.3s ease;
  opacity: 0.6;
}

/* Show underline on hover or when dropdown is open */
.navbar-nav .dropdown-toggle:hover::before,
.navbar-nav .dropdown.show .dropdown-toggle::before {
  width: 70%;
}

/* Dropdown hover bridge - prevents gap when moving mouse down */
@media (min-width: 992px) {
  .navbar-nav .dropdown {
    position: relative;
  }

  /* Add invisible bridge between toggle and menu */
  .navbar-nav .dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 8px;
    display: none;
  }

  .navbar-nav .dropdown:hover::after,
  .navbar-nav .dropdown.show::after {
    display: block;
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Beautiful Dropdown Menu Styling */
.dropdown-menu {
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-medium);
  margin-top: 0 !important;
  background: var(--white);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-radius: 0;
  padding: 0.35rem 0;
  min-width: 200px;
  overflow: hidden;
  display: none; /* Hidden by default, Bootstrap .show class controls visibility */
}

/* Show dropdown when Bootstrap adds .show class */
.dropdown-menu.show {
  display: block !important;
}

/* Materials dropdown - compact fit without scrollbar */
#materialsDropdown + .dropdown-menu {
  max-height: none;
  overflow-y: visible;
}

.dropdown-item {
  padding: 0.5rem 1.25rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--text-dark);
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  line-height: 1.3;
}

/* Dropdown item icon spacing */
.dropdown-item i {
  margin-right: 0.5rem;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

/* Dropdown item hover state */
.dropdown-item:hover {
  background: linear-gradient(90deg, rgba(27, 122, 27, 0.08) 0%, transparent 100%);
  color: var(--primary-green);
  transform: translateX(3px);
}

.dropdown-item:hover i {
  opacity: 1;
}

/* Dropdown item active state (click) */
.dropdown-item:active {
  background-color: var(--primary-green);
  color: var(--white);
}

/* Dropdown item selected/current page state */
.dropdown-item.active,
.dropdown-menu .dropdown-item.active {
  background-color: rgba(122, 184, 0, 0.15) !important;
  color: var(--primary-green) !important;
  font-weight: 600 !important;
}

.dropdown-item.active:hover {
  background-color: rgba(122, 184, 0, 0.25) !important;
  color: var(--primary-green) !important;
}

/* Dropdown item focus state - accessibility */
.dropdown-item:focus {
  background: linear-gradient(90deg, rgba(27, 122, 27, 0.08) 0%, transparent 100%);
  color: var(--primary-green);
  outline: 2px solid var(--primary-green);
  outline-offset: -2px;
}

/* Dropdown divider styling */
.dropdown-divider {
  margin: 0.25rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* Navbar toggler for mobile - white icon */
.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.5);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.main-header.scrolled .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Translate icon - white color and vertical alignment */
.translate-trigger {
  display: flex;
  align-items: center;
  height: 100%;
}

.translate-trigger i {
  color: var(--white) !important;
  font-size: 1.1rem;
  line-height: 1;
  vertical-align: middle;
}

.main-header.scrolled .translate-trigger i {
  color: var(--white) !important;
}

/* ============================================
   STATIC HEADER - For pages other than home
   Black text, white background, not overlaid on hero
   ============================================ */
.main-header.header-static {
  position: fixed;
  background: var(--white);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.main-header.header-static::before {
  display: none; /* No gradient overlay needed */
}

/* Navigation links - Black text for static header */
.main-header.header-static .navbar-nav .nav-link {
  color: var(--text-dark);
}

.main-header.header-static .navbar-nav .nav-link:hover {
  color: var(--primary-green);
  text-shadow: none;
}

.main-header.header-static .navbar-nav .nav-link.active {
  color: var(--primary-green);
}

/* Underline effect - green for static header */
.main-header.header-static .navbar-nav .nav-link:not(.dropdown-toggle)::after {
  background: var(--primary-green);
  box-shadow: none;
}

/* Dropdown toggle underline for static header */
.main-header.header-static .navbar-nav .dropdown-toggle::before {
  background: var(--primary-green);
}

/* Translate icon - dark color for static header */
.main-header.header-static .translate-trigger i {
  color: var(--text-dark) !important;
}

.main-header.header-static .translate-trigger:hover i {
  color: var(--primary-green) !important;
}

/* Mobile toggler - dark icon for static header */
.main-header.header-static .navbar-toggler {
  border-color: rgba(0, 0, 0, 0.3);
}

.main-header.header-static .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.7%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ============================================
   HERO SECTION - IMAGE BACKGROUND SLIDER (Flat Design - Indian Spice Trader Style)
   ============================================ */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--white);
  text-align: center;
  width: 100%;
}

/* Hero Background Slider Container */
.hero-bg-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* Individual Background Slides */
.hero-bg-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  opacity: 0;
  transition: opacity 2s ease-in-out;
}

.hero-bg-slide.active {
  opacity: 1;
}

/* Video slide styling */
.hero-video-slide {
  background-image: none !important;
  background-attachment: scroll !important;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(27,122,27,0.15) 0%,
    rgba(40,40,40,0.2) 50%,
    rgba(20,20,20,0.25) 100%
  );
  z-index: 1;
}

.hero-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.45) 0%,
    rgba(0, 0, 0, 0.35) 50%,
    rgba(0, 0, 0, 0.5) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 1200px;
  padding: 3rem 2rem;
  margin: 0 auto;
  transform: translateY(-30px); /* Slight upward adjustment for optical centering */
}

.hero-content h1 {
  font-size: var(--text-display-xl);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-6);
  line-height: var(--leading-tight);
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: var(--white);
}

.hero-content .subheading {
  font-size: var(--text-body-lg);
  font-weight: var(--weight-normal);
  margin-bottom: var(--space-8);
  color: rgba(255, 255, 255, 0.9);
  line-height: var(--leading-relaxed);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero buttons - matching new_demo exactly */
.hero-content .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: 1rem 1.5rem;
  font-size: var(--text-body-sm);
  font-weight: 400;
  line-height: 1;
  background-color: var(--white);
  color: var(--text-dark);
  border: none;
  border-radius: 25px;
  transition: all 150ms cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: none;
}

.hero-content .btn-primary:hover {
  background-color: var(--gray-100, #f0f0f0);
}

.hero-content .btn-light {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: 1rem 1.5rem;
  font-size: var(--text-body-sm);
  font-weight: 400;
  line-height: 1;
  background-color: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 25px;
  transition: all 150ms cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-content .btn-light:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}

/* Hero button spacing */
.hero__actions,
.hero-content .hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ============================================
   SECTION COMMON STYLES (Flat Design)
   ============================================ */
.section {
  padding: var(--section-padding);
}

/* Section Label - Short green heading above main title (PDF requirement) */
.section-label {
  display: block;
  font-size: var(--text-small);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-green);
  margin-bottom: var(--space-4);
  text-align: center;
}

.section-title {
  font-size: var(--text-display);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-4);
  color: var(--text-dark);
  text-align: center;
  letter-spacing: -0.01em;
  line-height: var(--leading-tight);
}

.section-subtitle {
  font-size: var(--text-body-lg);
  color: var(--text-muted);
  margin-bottom: var(--space-12);
  text-align: center;
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
  line-height: var(--leading-relaxed);
  font-weight: var(--weight-normal);
}

.section-bg-light {
  background: linear-gradient(to bottom, var(--light-bg) 0%, var(--white) 100%);
}

/* ============================================
   INTRODUCTION SECTION (Flat Design)
   ============================================ */
.intro-section {
  max-width: 950px;
  margin: 0 auto;
  text-align: center;
}

.intro-section p {
  font-size: var(--text-body);
  line-height: var(--leading-loose);
  color: var(--text-gray);
  margin-bottom: 1.8rem;
  font-weight: 400;
}

/* First paragraph - bigger and bolder */
.intro-section p.intro-lead {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.intro-section .text-link {
  color: var(--primary-green);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--primary-green);
  transition: var(--transition);
}

.intro-section .text-link:hover {
  color: var(--dark-green);
  border-bottom-color: var(--dark-green);
}

/* ============================================
   FLOWDRYA AROUND THE WORLD SECTION
   Canfor-style typography and layout
   ============================================ */
.flowdrya-world-section {
  padding-top: var(--space-16);
  padding-bottom: 0;
}

.flowdrya-world-section .section-label.text-start {
  text-align: left;
  margin-bottom: var(--space-3);
}

.flowdrya-world-section .section-title.text-start,
.world-main-headline {
  text-align: left;
  font-size: var(--text-display);
  font-weight: var(--weight-bold);
  color: var(--text-dark);
  margin-bottom: var(--space-8);
  line-height: var(--leading-tight);
  letter-spacing: -0.01em;
}

.world-section-text {
  font-size: var(--text-body);
  font-weight: var(--weight-normal);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* World Image Grid - Canfor Style */
.world-grid-wrapper {
  width: 100%;
  overflow: hidden;
}

.world-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4px;
  width: 100%;
  min-height: 500px;
}

.world-grid-main {
  position: relative;
  overflow: hidden;
}

.world-grid-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.world-grid-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 4px;
}

.world-grid-item {
  position: relative;
  overflow: hidden;
}

.world-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms cubic-bezier(0.16, 1, 0.3, 1);
}

.world-grid-item:hover img {
  transform: scale(1.05);
}

/* ============================================
   PRODUCT IMAGE SECTION (Flat Design)
   ============================================ */
.product-showcase {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  border: none;
  box-shadow: none;
  transition: var(--transition);
}

.product-showcase:hover {
  box-shadow: var(--shadow-light);
}

.product-showcase img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.320, 1);
}

.product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.5));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  color: var(--white);
  text-align: center;
  padding: 2rem 2rem 6rem 2rem;
  opacity: 0;
  transition: opacity var(--transition-speed) ease;
  box-sizing: border-box;
}

.product-showcase:hover .product-overlay {
  opacity: 1;
}

.product-overlay h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.product-overlay .btn {
  margin-top: 1rem;
}

/* Home page product showcase - pinned styles (ID-scoped to prevent overrides) */
#home-product-showcase .product-overlay {
  justify-content: flex-end;
  padding: 2rem 2rem 7rem 2rem;
}

#home-product-showcase .product-overlay h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

#home-product-showcase .product-overlay p {
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

/* ============================================
   FLOWDRYA AROUND THE WORLD - CANFOR STYLE
   ============================================ */
.flowdrya-world-section {
  background: var(--white);
  padding-bottom: 80px;
}

/* Main headline - Canfor style: bigger and bolder */
.world-main-headline {
  font-size: 4.5rem;
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 2rem;
  color: var(--text-dark);
}

.world-section-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-gray);
  margin-bottom: 0;
}

/* Full-width wrapper for gallery - Canfor style */
.world-image-grid-wrapper {
  width: 100%;
  padding: 0 1.5rem; /* Small padding on both sides */
  margin-top: 2rem;
}

/* Canfor-style grid: 1 static portrait on left, 8 animated portraits in 4x2 grid on right */
.world-image-grid {
  display: grid;
  grid-template-columns: 1fr 2fr; /* Left column narrower for single portrait, right wider for 4 columns */
  gap: 4px;
}

/* Left side - Static portrait image */
.world-image-main {
  position: relative;
  overflow: hidden;
  background: var(--light-bg);
  border: 1px solid var(--border-color);
  aspect-ratio: 3/4; /* Portrait aspect ratio */
}

.world-image-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top; /* Prioritize showing top of image */
  display: block;
  transition: transform 500ms cubic-bezier(0.16, 1, 0.3, 1);
}

.world-image-main:hover img {
  transform: scale(1.05);
}

/* Right side - Animated gallery grid (4 columns x 2 rows = 8 images) */
.world-image-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 1fr 1fr; /* Two equal rows that stretch to fill container height */
  gap: 4px;
  height: 100%; /* Match height of left image */
}

.gallery-item {
  position: relative;
  overflow: hidden;
  background: var(--light-bg);
  border: 1px solid var(--border-color);
  /* No fixed aspect-ratio - let it stretch to fill the row height */
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top; /* Prioritize showing top of image */
  display: block;
  opacity: 0;
  transition: opacity 1s ease-in-out, transform 500ms cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item img.active {
  opacity: 1;
}

/* Hover effect - zoom instead of green border (PDF requirement) */
.gallery-item:hover img {
  transform: scale(1.05);
}

/* Mobile responsive - Gallery */
@media (max-width: 991px) {
  .world-image-grid-wrapper {
    padding: 0 1rem;
  }

  .world-image-grid {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .world-image-main {
    aspect-ratio: 4/3; /* Landscape on mobile for single image */
    min-height: auto;
  }

  .world-image-gallery {
    grid-template-columns: repeat(4, 1fr); /* Keep 4 columns on tablet */
    grid-template-rows: repeat(2, 1fr);
  }

  .gallery-item {
    aspect-ratio: 3/4; /* Use fixed ratio when stacked on mobile */
  }
}

@media (max-width: 768px) {
  .world-image-grid-wrapper {
    padding: 0 0.75rem;
  }

  .world-image-gallery {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile */
    grid-template-rows: auto;
    height: auto;
  }
}

@media (max-width: 576px) {
  .world-image-grid-wrapper {
    padding: 0 0.5rem;
  }

  .world-image-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
  }

  .world-section-text {
    font-size: 0.95rem;
  }
}

/* New class names for world gallery (renamed to avoid conflicts) */
.world-grid-wrapper {
  width: 100%;
  padding: 0 1.5rem;
  margin-top: 2rem;
}

.world-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4px;
  min-height: 500px;
}

.world-grid-main {
  position: relative;
  overflow: hidden;
  background: var(--light-bg);
  border: 1px solid var(--border-color);
  aspect-ratio: 3/4;
}

.world-grid-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 500ms cubic-bezier(0.16, 1, 0.3, 1);
}

.world-grid-main:hover img {
  transform: scale(1.05);
}

.world-grid-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 1fr 1fr;
  gap: 4px;
  height: 100%;
}

.world-grid-item {
  position: relative;
  overflow: hidden;
  background: var(--light-bg);
  border: 1px solid var(--border-color);
}

.world-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  opacity: 0;
  transition: opacity 1s ease-in-out, transform 500ms cubic-bezier(0.16, 1, 0.3, 1);
}

.world-grid-item img.active {
  opacity: 1;
}

.world-grid-item:hover img {
  transform: scale(1.05);
}

/* World grid responsive */
@media (max-width: 991px) {
  .world-grid-wrapper {
    padding: 0 1rem;
  }

  .world-grid {
    grid-template-columns: 1fr;
    gap: 4px;
    min-height: auto;
  }

  .world-grid-main {
    aspect-ratio: 4/3;
    min-height: auto;
  }

  .world-grid-gallery {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
  }

  .world-grid-item {
    aspect-ratio: 3/4;
  }
}

@media (max-width: 768px) {
  .world-grid-wrapper {
    padding: 0 0.75rem;
  }

  .world-grid-gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
    height: auto;
  }
}

@media (max-width: 576px) {
  .world-grid-wrapper {
    padding: 0 0.5rem;
  }

  .world-grid-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
  }
}

/* ============================================
   WHY CHOOSE FLOWDRYA - ICON BOXES (Flat Design)
   ============================================ */
.icon-box-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .icon-box-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.icon-box {
  text-align: center;
  padding: 1.5rem 1.25rem;
  border-radius: 0;
  transition: var(--transition);
  height: 100%;
  background: var(--white);
  border: 1px solid var(--border-color);
  box-shadow: none;
}

.icon-box:hover {
  box-shadow: var(--shadow-light);
  border-color: var(--border-hover);
}

.icon-box i {
  font-size: 2.25rem;
  color: var(--primary-green);
  margin-bottom: 0.75rem;
  display: block;
  transition: var(--transition);
}

.icon-box:hover i {
  transform: scale(1.08);
}

.icon-box h4 {
  font-size: 1.0625rem;
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-2);
  color: var(--text-dark);
  line-height: var(--leading-snug);
}

.icon-box p {
  font-size: var(--text-body);
  color: var(--text-gray);
  line-height: var(--leading-relaxed);
}

/* ============================================
   MATERIALS SECTION
   ============================================ */
.material-groups {
  margin-bottom: 3rem;
}

.material-groups-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .material-groups-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.material-group {
  background: var(--white);
  border-radius: var(--radius-large);
  padding: var(--space-8) var(--space-6);
  margin-bottom: var(--space-8);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  text-align: center;
}

.material-group:hover {
  box-shadow: var(--shadow-medium);
  border-color: rgba(27,122,27,0.3);
}

.material-group-icon {
  font-size: 2.25rem;
  color: var(--primary-green);
  margin-bottom: var(--space-4);
  display: block;
}

.material-group h3 {
  font-size: 1.0625rem;
  font-weight: var(--weight-semibold);
  color: var(--text-dark);
  margin-bottom: var(--space-3);
}

.material-list {
  list-style: none;
  padding-left: 0;
}

.material-list li {
  display: inline-block;
  margin-right: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-gray);
}

.material-list-text {
  font-size: var(--text-body);
  color: var(--text-gray);
  line-height: var(--leading-relaxed);
  margin-bottom: 0;
}

.material-list li:before {
  content: "•";
  color: var(--primary-green);
  font-weight: bold;
  margin-right: 0.5rem;
}

/* Material thumbnails - White text on image (PDF requirement) */
.material-thumbnails {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
}

.material-card {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  display: block;
}

.material-card a {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.material-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms cubic-bezier(0.16, 1, 0.3, 1);
}

.material-card:hover img {
  transform: scale(1.05);
}

.material-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-4);
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
}

.material-card-content h4 {
  font-size: var(--text-body-sm);
  font-weight: var(--weight-semibold);
  color: var(--white);
  margin-bottom: 0;
}

/* ============================================
   REFERENCES SECTION (Flat Design)
   ============================================ */
.reference-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .reference-cards-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.reference-card {
  background: var(--white);
  border-radius: 0;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: none;
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.reference-card:hover {
  box-shadow: var(--shadow-medium);
  border-color: var(--border-hover);
}

.reference-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.reference-card-body {
  padding: 1.25rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.reference-card-body h4 {
  font-size: var(--text-heading-sm);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-3);
  color: var(--text-dark);
  line-height: var(--leading-snug);
}

.reference-card-body p {
  font-size: var(--text-body-sm);
  color: var(--text-muted);
  line-height: var(--leading-normal);
  margin-bottom: var(--space-3);
  flex-grow: 1;
}

.reference-card-body .btn-link {
  color: var(--primary-green);
  font-size: var(--text-body-sm);
  font-weight: var(--weight-medium);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  margin-top: auto;
}

.reference-card-body .btn-link:hover {
  text-decoration: none;
  color: var(--dark-green);
}

.reference-card-body .btn-link i {
  margin-left: 0.5rem;
  transition: transform var(--transition-speed) ease;
}

.reference-card-body .btn-link:hover i {
  transform: translateX(5px);
}

/* ============================================
   REVIEWS SECTION (Flat Design)
   ============================================ */
.review-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .review-cards-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.review-card {
  background: var(--white);
  border-radius: 0;
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--border-color);
  box-shadow: none;
  text-align: center;
  height: 100%;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.review-card:hover {
  box-shadow: var(--shadow-medium);
  border-color: var(--border-hover);
}

.review-stars {
  color: #ffc107;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.review-text {
  font-size: var(--text-body);
  font-style: italic;
  color: var(--text-gray);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-4);
  flex-grow: 1;
}

.review-author {
  font-size: var(--text-body-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-dark);
  margin-bottom: var(--space-1);
  margin-top: auto;
}

.review-location {
  font-size: var(--text-small);
  color: var(--text-muted);
}

/* ============================================
   KNOW HOW ARTICLES SECTION (Flat Design)
   ============================================ */
.article-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .article-cards-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.article-card {
  background: var(--white);
  border-radius: 0;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: none;
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  box-shadow: var(--shadow-medium);
  border-color: var(--border-hover);
}

.article-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.article-card-body {
  padding: 1.25rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.article-category {
  display: inline-block;
  background-color: transparent;
  color: var(--primary-green);
  padding: 0;
  border-radius: 0;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.article-card-body h4 {
  font-size: var(--text-heading-sm);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-3);
  color: var(--text-dark);
  line-height: var(--leading-snug);
}

.article-excerpt {
  font-size: var(--text-body-sm);
  color: var(--text-muted);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-4);
  flex-grow: 1;
}

.article-link {
  color: var(--primary-green);
  font-size: var(--text-body-sm);
  font-weight: var(--weight-medium);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.article-link:hover {
  text-decoration: underline;
  color: var(--dark-green);
}

.article-link i {
  margin-left: 0.5rem;
  transition: transform var(--transition-speed) ease;
}

.article-link:hover i {
  transform: translateX(5px);
}

/* ============================================
   CONTACT CTA SECTION
   ============================================ */
.contact-cta {
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--white);
  padding: 100px 0;
}

.contact-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
}

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

.contact-cta h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--white);
}

.contact-cta p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* Contact CTA buttons - matching hero buttons (52px height) */
.contact-cta .btn-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.125rem 1.75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1;
  background-color: var(--white);
  color: var(--primary-green);
  border: 1px solid var(--white);
  border-radius: 25px;
  transition: all 150ms cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-cta .btn-light:hover {
  background-color: var(--light-bg);
  border-color: var(--light-bg);
}

.contact-cta .btn-outline-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.125rem 1.75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1;
  background-color: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 25px;
  transition: all 150ms cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-cta .btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
  color: var(--white);
}

/* ============================================
   FOOTER
   ============================================ */
.main-footer {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 40px 0 20px;
}

.footer-section h5 {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 1rem;
  color: var(--white);
}

/* Footer logo - STRONGA text (smaller than header) */
.footer-section h5.logo-text {
  font-family: 'Impact', sans-serif;
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
}

.footer-section ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.footer-section ul li {
  margin-bottom: 0.4rem;
}

.footer-section ul li a {
  color: rgba(255,255,255,0.8);
  transition: all var(--transition-speed) ease;
  display: inline-block;
  font-size: 0.9rem;
}

.footer-section ul li a:hover {
  color: var(--white);
  padding-left: 5px;
}

.footer-section p {
  color: rgba(255,255,255,0.8);
  line-height: 1.5;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.footer-section p a {
  color: rgba(255,255,255,0.8);
  transition: all var(--transition-speed) ease;
}

.footer-section p a:hover {
  color: var(--white);
  text-decoration: underline;
}

.social-links {
  margin-top: 0.75rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border-radius: 50%;
  margin-right: 0.35rem;
  font-size: 0.85rem;
  transition: all var(--transition-speed) ease;
}

.social-links a:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-2px);
}

.footer-bottom {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
}

.footer-bottom a {
  color: rgba(255,255,255,0.8);
}

.footer-bottom a:hover {
  color: var(--white);
  text-decoration: underline;
}

/* ============================================
   LANGUAGE DROPDOWN - Custom Translation Links
   ============================================ */

/* Language icon styling */
.translate-trigger {
  cursor: pointer !important;
  position: relative;
}

.translate-trigger i {
  font-size: 1.25rem;
  transition: color var(--transition-speed) ease;
}

.translate-trigger:hover i {
  color: var(--primary-green) !important;
}

/* Language dropdown styling */
#languageDropdown + .dropdown-menu {
  min-width: 140px;
  right: 0;
  left: auto;
}

/* Show language dropdown on hover - same as Dryer Materials */
.nav-item.dropdown:hover #languageDropdown + .dropdown-menu {
  display: block !important;
}

/* Show language dropdown when clicked (show class) */
#languageDropdown + .dropdown-menu.show {
  display: block !important;
}

#languageDropdown + .dropdown-menu .dropdown-item {
  padding: 0.4rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-speed) ease;
  font-size: 0.85rem;
}

#languageDropdown + .dropdown-menu .dropdown-item:hover {
  background: var(--light-bg);
  color: var(--primary-green);
}

#languageDropdown + .dropdown-menu .flag-icon {
  font-size: 1rem;
  line-height: 1;
  flex-shrink: 0;
}

/* ============================================
   FONT SWITCHER - TESTING ONLY (Left Side)
   ============================================ */
.font-switcher-container {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 9999;
  opacity: 0.7;
  transition: opacity var(--transition-speed) ease, visibility var(--transition-speed) ease, transform var(--transition-speed) ease;
}

.font-switcher-container:hover {
  opacity: 1;
}

/* Hide when back-to-top is visible */
.font-switcher-container.hidden-by-scroll {
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

/* Hide in production */
body.production .font-switcher-container {
  display: none;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-accent { color: var(--primary-green); }
.bg-accent { background-color: var(--primary-green); }
.mt-80 { margin-top: 80px; }
.mb-80 { margin-bottom: 80px; }
.py-80 { padding-top: 80px; padding-bottom: 80px; }

/* ============================================
   GLOBAL BUTTON STYLES (Flat Design - Canfor style)
   Matching new_demo: 0.9375rem font, 600 weight, 1rem 1.5rem padding
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1;
  border-radius: 25px;
  border: 1px solid transparent;
  transition: all 150ms cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  vertical-align: middle;
}

.btn-primary {
  background-color: var(--primary-green);
  color: var(--white);
  border-color: var(--primary-green);
  border-radius: 25px;
  font-weight: 400;
  box-shadow: none;
}

.btn-primary:hover {
  background-color: var(--dark-green);
  border-color: var(--dark-green);
  color: var(--white);
  box-shadow: var(--shadow-light);
}

.btn-primary:focus,
.btn-primary:active,
.btn-primary:focus:active,
.btn-primary.active,
.btn-primary:first-child:active,
.btn-check:checked + .btn-primary,
.btn-check:active + .btn-primary {
  background-color: var(--darker-green) !important;
  border-color: var(--darker-green) !important;
  color: var(--white) !important;
  box-shadow: none !important;
}

.btn-primary:focus-visible {
  background-color: var(--dark-green);
  border-color: var(--dark-green);
  box-shadow: 0 0 0 0.25rem rgba(0, 62, 1, 0.25) !important;
}

/* Button disabled and loading states - maintain green color */
.btn-primary:disabled,
.btn-primary.disabled,
.btn-primary.btn-loading {
  background-color: var(--primary-green) !important;
  border-color: var(--primary-green) !important;
  color: var(--white) !important;
  opacity: 0.8;
  cursor: not-allowed;
}

.btn-primary.btn-loading {
  pointer-events: none;
}

.btn-primary.btn-loading i.fa-spinner {
  margin-right: 8px;
}

.btn-accent {
  background-color: var(--accent-green);
  color: var(--white);
  border-color: var(--accent-green);
  border-radius: 25px;
  font-weight: 400;
  box-shadow: var(--shadow-light);
}

.btn-accent:hover {
  background-color: var(--dark-green);
  border-color: var(--dark-green);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(27,122,27,0.25);
}

.btn-light {
  background-color: var(--white);
  color: var(--primary-green);
  border-color: var(--white);
  border-radius: 25px;
  font-weight: 400;
  box-shadow: none;
}

.btn-light:hover {
  background-color: var(--light-bg);
  color: var(--dark-green);
  border-color: var(--light-bg);
  box-shadow: var(--shadow-light);
}

.btn-outline-light {
  background-color: transparent;
  color: var(--white);
  border-color: var(--white);
  border-radius: 25px;
  font-weight: 400;
}

.btn-outline-light:hover {
  background-color: var(--white);
  color: var(--primary-green);
  border-color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(255,255,255,0.3);
}

.btn-outline-primary {
  background-color: transparent;
  color: var(--primary-green);
  border: 2px solid var(--primary-green);
  border-radius: 25px;
  font-weight: 400;
}

.btn-outline-primary:hover {
  background-color: var(--primary-green);
  color: var(--white);
  border-color: var(--primary-green);
}

.btn-outline-primary:focus,
.btn-outline-primary:active,
.btn-outline-primary:focus:active,
.btn-outline-primary.active {
  background-color: var(--dark-green) !important;
  border-color: var(--dark-green) !important;
  color: var(--white) !important;
  box-shadow: none !important;
}

.btn-outline-primary:disabled {
  background-color: transparent;
  color: var(--text-muted);
  border-color: var(--border-color);
  opacity: 0.65;
  cursor: not-allowed;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 0.9375rem;
  font-weight: 400;
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 400;
}

/* Button arrow - matching new_demo */
.btn-arrow {
  font-size: 0.75rem;
  transition: transform 150ms cubic-bezier(0.16, 1, 0.3, 1);
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* ============================================
   ON-IMAGE BUTTON STYLES (Hero/CTA buttons)
   Larger size for prominence - 52px height
   Higher specificity to override .btn base styles
   ============================================ */
.btn.btn-on-image,
.btn-on-image {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background-color: var(--white);
  color: var(--text-dark);
  border: 1px solid var(--white);
  padding: 1.125rem 1.75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1;
  border-radius: 25px;
  transition: all 150ms cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: none;
  text-decoration: none;
  vertical-align: middle;
}

.btn.btn-on-image:hover,
.btn-on-image:hover {
  background-color: var(--light-bg);
  border-color: var(--light-bg);
  color: var(--text-dark);
}

.btn-on-image .btn-arrow {
  font-size: 0.8125rem;
  transition: transform 0.2s ease;
  line-height: 1;
}

.btn-on-image:hover .btn-arrow {
  transform: translateX(4px);
}

/* Outline variant for secondary CTA on images - transparent with white border */
.btn.btn-on-image-outline,
.btn-on-image-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background-color: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 1.125rem 1.75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1;
  border-radius: 25px;
  transition: all 150ms cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: none;
  text-decoration: none;
  vertical-align: middle;
}

.btn.btn-on-image-outline:hover,
.btn-on-image-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
  color: var(--white);
}

/* ============================================
   PARAGRAPH TEXT LINK STYLES (PDF Requirement)
   Plain black bold font, turns green on hover
   Used for links within paragraph text
   ============================================ */
.btn-text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0;
  background: none;
  border: none;
  color: var(--text-dark);
  font-size: inherit;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.btn-text-link:hover {
  color: var(--primary-green);
}

.btn-text-link .btn-arrow {
  font-size: 0.8rem;
  transition: transform 0.2s ease;
}

.btn-text-link:hover .btn-arrow {
  transform: translateX(4px);
}

/* ============================================
   ADVANCED ANIMATIONS & BEAUTIFICATION
   ============================================ */

/* Fade Up Animation */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Initial state for animated elements */
.icon-box,
.material-card,
.reference-card,
.review-card,
.article-card,
.refs-card {
  opacity: 0;
  transform: translateY(40px) scale(0.95);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

/* Animated state */
.icon-box.animate-in,
.material-card.animate-in,
.reference-card.animate-in,
.review-card.animate-in,
.article-card.animate-in,
.refs-card.animate-in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Enhanced Icon Box Hover Effects */
.icon-box {
  position: relative;
  overflow: hidden;
}

.icon-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(70, 110, 70, 0.1), transparent);
  transition: left 0.5s ease;
}

.icon-box:hover::before {
  left: 100%;
}

.icon-box i {
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.icon-box:hover i {
  transform: scale(1.15) rotate(5deg);
  color: var(--primary-green);
}

/* Material Card Enhanced Effects */
.material-card {
  position: relative;
  overflow: hidden;
}

.material-card::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(70, 110, 70, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.material-card:hover::after {
  width: 300%;
  height: 300%;
}

.material-card img {
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.material-card:hover img {
  transform: scale(1.1);
}

.material-card .badge {
  transition: all 0.3s ease;
}

.material-card:hover .badge {
  box-shadow: var(--shadow-light);
}

/* Reference Card Image Zoom Effect */
.reference-card {
  overflow: hidden;
}

.reference-card img {
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.3s ease;
  filter: brightness(0.95);
}

.reference-card:hover img {
  transform: scale(1.08);
  filter: brightness(1);
}

.reference-card-body {
  transition: background 0.3s ease;
}

.reference-card:hover .reference-card-body {
  background: linear-gradient(to top, rgba(255,255,255,0.98), rgba(255,255,255,0.95));
}

.btn-link {
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
}

.btn-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-green);
  transition: width 0.3s ease;
}

.btn-link:hover::after {
  width: 100%;
}

/* Review Card Pulse Effect */
.review-card {
  position: relative;
}

.review-stars i {
  display: inline-block;
  animation: starPulse 2s ease-in-out infinite;
}

.review-stars i:nth-child(1) { animation-delay: 0s; }
.review-stars i:nth-child(2) { animation-delay: 0.1s; }
.review-stars i:nth-child(3) { animation-delay: 0.2s; }
.review-stars i:nth-child(4) { animation-delay: 0.3s; }
.review-stars i:nth-child(5) { animation-delay: 0.4s; }

@keyframes starPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.review-card:hover {
  border-color: var(--primary-green);
}

.review-card:hover .review-stars i {
  animation: none;
  color: var(--primary-green);
}

/* Article Card Hover - matches reference card style */
.article-card {
  overflow: hidden;
}

.article-card img {
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.3s ease;
  filter: brightness(0.95);
}

.article-card:hover img {
  transform: scale(1.08);
  filter: brightness(1);
}

.article-card-body {
  transition: background 0.3s ease;
}

.article-card:hover .article-card-body {
  background: linear-gradient(to top, rgba(255,255,255,0.98), rgba(255,255,255,0.95));
}

.article-category {
  transition: all 0.3s ease;
}

.article-card:hover .article-category {
  color: var(--primary-green);
}

/* Hero Section Enhancements */
.hero-content {
  animation: heroFadeIn 1s ease-out 0.5s both;
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content h1 {
  animation: textReveal 1.2s ease-out 0.6s both;
}

.hero-content .subheading {
  animation: textReveal 1.2s ease-out 0.8s both;
}

.hero-content .btn {
  animation: textReveal 1.2s ease-out 1s both;
}

@keyframes textReveal {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Button Ripple Effect */
.btn {
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

/* Section Title - No Underline (Flat Design) */
.section-title {
  display: block;
  text-align: center;
}

/* Product Showcase Parallax Effect */
.product-showcase {
  perspective: 1000px;
}

.product-showcase:hover img {
  transform: scale(1.02);
}

/* Contact CTA Overlay Animation */
.contact-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(70, 110, 70, 0.85) 0%, rgba(0, 88, 1, 0.9) 100%);
  transition: opacity 0.4s ease;
}

.contact-cta:hover::before {
  opacity: 0.95;
}

/* Smooth Scroll Behavior */
html {
  scroll-behavior: smooth;
}

/* Badge Animations */
.badge {
  animation: badgeBounce 2s ease-in-out infinite;
}

@keyframes badgeBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* Loading Animation for Images */
img {
  animation: imageLoad 0.5s ease-out;
}

@keyframes imageLoad {
  from {
    opacity: 0;
    filter: blur(5px);
  }
  to {
    opacity: 1;
    filter: blur(0);
  }
}

/* Gradient Background Animation */
.section-bg-light {
  background: linear-gradient(135deg, #f5f9f6 0%, #ffffff 100%);
  position: relative;
}

/* Material Group Icon Animation */
.material-group h3 i {
  display: inline-block;
  transition: transform 0.3s ease;
}

.material-group:hover h3 i {
  transform: scale(1.2) rotate(10deg);
}

/* Navigation Link Hover Effect */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--primary-green);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 80%;
}

/* Footer Social Links Bounce */
.social-links a {
  transition: background 0.3s ease;
}

/* Performance Optimization */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================
   BACK TO TOP BUTTON (Modern Flat Design)
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 50px;
  height: 50px;
  border-radius: var(--radius-medium);
  background: var(--primary-green);
  color: var(--white);
  border: none;
  cursor: pointer;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-medium);
  transition: var(--transition);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

/* Show button when active */
.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Hover effect */
.back-to-top:hover {
  background-color: var(--dark-green);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(27, 122, 27, 0.3);
}

/* Active/Click effect */
.back-to-top:active {
  transform: translateY(-1px);
  box-shadow: var(--shadow-light);
}

.back-to-top i {
  font-size: 1.2rem;
  line-height: 1;
  transition: transform 0.3s ease;
}

/* Icon bounce animation on hover */
.back-to-top:hover i {
  transform: translateY(-2px);
  animation: arrowBounce 0.6s ease infinite;
}

@keyframes arrowBounce {
  0%, 100% {
    transform: translateY(-2px);
  }
  50% {
    transform: translateY(-5px);
  }
}

/* ============================================
   NEWSLETTER SUBSCRIPTION FORM
   ============================================ */
.newsletter-form {
  margin-top: 1rem;
}

.newsletter-form .input-group {
  margin-bottom: 0.5rem;
}

.newsletter-input {
  border: 1px solid var(--border-color) !important;
  border-radius: 25px 0 0 25px !important;
  padding: 0.65rem 1rem !important;
  font-size: 0.9rem !important;
  background: var(--white) !important;
  color: var(--text-dark) !important;
  transition: all var(--transition-speed) ease !important;
}

.newsletter-input:focus {
  border-color: var(--primary-green) !important;
  box-shadow: 0 0 0 3px rgba(70, 110, 70, 0.1) !important;
  outline: none !important;
}

.newsletter-input::placeholder {
  color: #999 !important;
  font-size: 0.85rem !important;
}

.newsletter-btn {
  border-radius: 0 25px 25px 0 !important;
  padding: 0.65rem 1.25rem !important;
  background-color: var(--primary-green) !important;
  border-color: var(--primary-green) !important;
  transition: all var(--transition-speed) ease !important;
}

.newsletter-btn:hover {
  background-color: var(--darker-green) !important;
  border-color: var(--darker-green) !important;
  box-shadow: var(--shadow-light) !important;
}

.newsletter-btn i {
  font-size: 1rem;
}

.newsletter-form .form-text {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.4;
}

/* Newsletter form responsive */
@media (max-width: 991px) {
  .newsletter-form {
    margin-top: 1.5rem;
  }
}

.btn-success {
  background-color: var(--primary-green) !important;
  border-color: var(--primary-green) !important;
  color: white !important;
}

.btn-success:hover {
  background-color: var(--dark-green) !important;
  border-color: var(--darker-green) !important;
}

/* Footer Sub-logo (FlowDrya) - Smaller for footer */
.footer-sublogo {
  display: inline-block;
  font-family: 'Impact', sans-serif;
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--white);
  letter-spacing: 0;
  text-transform: none;
  margin-left: 0.25rem;
  opacity: 0.95;
  vertical-align: middle;
}

/* Tablet/Desktop footer logo - appropriately sized */
@media (min-width: 768px) {
  .footer-section h5.logo-text {
    font-size: 1.75rem;
  }

  .footer-sublogo {
    font-size: 1.35rem;
    font-weight: 300;
    margin-left: 0.25rem;
  }
}

/* Mobile footer logo - smaller for mobile */
@media (max-width: 767px) {
  .footer-section h5.logo-text {
    font-size: 1.3rem;
  }

  .footer-sublogo {
    font-size: 1rem;
    font-weight: 300;
    margin-left: 0.2rem;
  }
}

/* ============================================
   ABOUT US PAGE STYLES
   ============================================ */

/* Section 1: Hero - Canfor Style (NEW - image within content area) */
.about-hero-section-canfor {
  padding-top: 0; /* No padding - hero starts directly after header */
  padding-bottom: 0;
  background: var(--white);
}

.about-hero-canfor-wrapper {
  max-width: 100%;
}

.about-hero-canfor-image {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.about-hero-canfor-image img {
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Overlay on hero image for better text visibility */
.about-hero-canfor-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.2) 30%,
    rgba(0, 0, 0, 0.05) 60%,
    transparent 100%
  );
  pointer-events: none;
}

/* Title overlaid at bottom-left of image - Canfor style, bigger heading */
.about-hero-canfor-title {
  position: absolute;
  bottom: 1.5rem;
  left: 1rem;
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: 600;
  color: var(--white);
  margin: 0;
  line-height: 1.1;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
  padding: 0;
}

/* Content below image - left aligned with padding */
.about-hero-canfor-content {
  padding: 0.25rem 0 0 1rem;
  text-align: left;
}

/* Green subtitle - Canfor style */
.about-hero-canfor-subtitle {
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: 600;
  color: var(--primary-green);
  margin: 0 0 1.5rem 0;
  line-height: 1.1;
}

/* Paragraph - left-aligned like Canfor, semi-bold */
.about-hero-canfor-text {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.8;
  text-align: left;
  max-width: 900px;
  margin: 0 0 1.5rem 0;
}

/* Features paragraph - thinner font, grey */
.about-hero-canfor-features {
  font-size: 1rem;
  font-weight: 400;
  color: #555;
  line-height: 1.9;
  text-align: left;
  max-width: 900px;
  margin: 0;
  padding-bottom: 3rem;
}

.about-hero-canfor-features .flowdrya-check {
  color: var(--primary-green);
  font-weight: 600;
  margin-right: 0.15rem;
}

/* Section Label - Green uppercase text above headings */
.section-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-green);
  margin-bottom: 0.75rem;
  text-align: center; /* Default center */
}

/* Left-aligned section labels: About Stronga, Global Leadership, Collaborating */
.about-stronga-section .section-label,
.timeline-section .section-label,
.collaborating-section .section-label {
  text-align: left;
}

/* OLD Hero styles - keeping for backwards compatibility */
.about-hero-section {
  padding-top: 0; /* No padding - image goes full screen */
  position: relative;
  z-index: 1; /* Below header (z-index: 1000) */
}

.about-hero-image-wrapper {
  position: relative;
  width: 100%;
  height: 100vh; /* Full screen height */
  min-height: 500px;
  overflow: hidden; /* Keep image contained */
  z-index: 1;
}

.about-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top; /* Show top of image (man's head) */
  display: block;
}

/* Canfor-style: Heading overlaid at bottom-left of image */
.about-hero-overlay {
  position: absolute;
  bottom: 0.5rem; /* Position text very close to bottom of image */
  left: 0;
  right: 0;
  padding: 0 0 0 2rem; /* Small left margin - aligned to screen edge */
  background: none;
  z-index: 2;
}

.about-hero-title-overlay {
  font-size: 4.5rem;
  font-weight: 800; /* Increased font weight */
  color: var(--white);
  margin: 0;
  line-height: 1.1;
  text-shadow: 0 2px 20px rgba(0,0,0,0.6), 0 4px 40px rgba(0,0,0,0.3);
}

/* Content below image */
.about-hero-content {
  padding: 0.25rem 0 0 0; /* Minimal padding to keep lines close */
  max-width: none;
  margin-left: calc(-1 * (var(--bs-gutter-x) * 0.5)); /* Align with overlay text */
  padding-left: 2rem; /* Match overlay padding */
}

/* Green subtitle - Canfor style */
.about-hero-subtitle {
  font-size: 4.5rem;
  font-weight: 800; /* Increased font weight */
  color: var(--primary-green);
  margin-bottom: 2rem;
  line-height: 1.1;
}

/* Paragraph - semi-bold, left-aligned like Canfor */
.about-hero-text {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.7;
  text-align: left;
  max-width: 900px;
}

/* Section 2: About Stronga - Super Headlines */
.about-super-headline {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  line-height: 1.1;
  text-align: center; /* Default center */
}

/* Left-aligned sections: About Stronga, Global Leadership, Collaborating */
.about-stronga-section .about-super-headline,
.timeline-section .about-super-headline,
.collaborating-section .about-super-headline {
  text-align: left;
}

.about-lead-text {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-lead);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.about-body-text {
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--text-gray);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.about-subheading {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-green);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.about-image-wrapper {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.about-section-image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.about-image-wrapper:hover .about-section-image {
  transform: scale(1.02);
}

/* Section 3: Timeline Carousel - Apple Style */
.timeline-section {
  overflow: hidden;
}

.timeline-section .container {
  text-align: left;
}

.timeline-carousel-wrapper {
  position: relative;
  width: 100%;
  padding: 0 1.5rem;
  margin-top: 2rem;
}

.timeline-carousel {
  display: flex;
  gap: 1rem;
  transition: transform 0.5s ease;
  will-change: transform;
}

.timeline-slide {
  flex: 0 0 calc(25% - 0.75rem); /* 4 images visible */
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--white);
  border-radius: 20px;
}

.timeline-slide img {
  width: 100%;
  height: auto;
  aspect-ratio: 3/4; /* Portrait ratio */
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
  border-radius: 20px;
}

.timeline-slide:hover img {
  transform: scale(1.03);
}

.timeline-year {
  position: absolute;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-dark);
  background: rgba(255,255,255,0.9);
  padding: 0.25rem 1rem;
  z-index: 1;
}

/* Timeline Navigation */
.timeline-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.timeline-nav-btn {
  width: 50px;
  height: 50px;
  border: 1px solid var(--border-color);
  background: var(--white);
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.timeline-nav-btn:hover {
  background: var(--primary-green);
  color: var(--white);
  border-color: var(--primary-green);
}

.timeline-nav-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Section 4: World Map Video */
.proven-worldwide-section {
  background: var(--white);
}

.world-map-video-wrapper {
  max-width: 100%; /* Full width within container, same as hero image */
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.world-map-video {
  width: 100%;
  height: auto;
  display: block;
}

/* Section 5: Collaborating - Image Slider */
.collaborating-section {
  overflow: hidden;
}

.collaborating-image-wrapper {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-color);
  aspect-ratio: 4/5; /* Slightly portrait */
}

.collaborating-image-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.collaborating-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.collaborating-image.active {
  opacity: 1;
}

/* Section 6: Service Images Grid */
.service-images-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.service-image-item {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.service-image-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/5; /* Portrait */
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.service-image-item:hover img {
  transform: scale(1.03);
}

/* Section 7: Category Thumbnails Grid */
.category-links-section {
  padding-bottom: 80px;
}

.category-thumbnails-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
}

/* 4-column variant - bigger thumbnails for About Us page */
.category-thumbnails-grid.category-thumbnails-grid-4 {
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.category-thumbnails-grid-4 .category-thumbnail img {
  aspect-ratio: 1/1.1; /* Slightly taller for bigger presence */
}

.category-thumbnail {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--border-color);
  text-decoration: none;
}

.category-thumbnail img {
  width: 100%;
  height: auto;
  aspect-ratio: 1/1; /* Square */
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.category-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1.5rem;
  transition: background 0.3s ease;
}

.category-thumbnail:hover .category-overlay {
  background: rgba(0, 0, 0, 0.5);
}

.category-thumbnail:hover img {
  transform: scale(1.05);
}

.category-link-text {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  text-align: center;
  background: rgba(0, 88, 1, 0.9);
  padding: 0.75rem 1rem;
  width: 100%;
  transition: background 0.3s ease;
}

.category-thumbnail:hover .category-link-text {
  background: var(--primary-green);
}

/* About Us Responsive Styles */
@media (max-width: 1199px) {
  /* New Canfor hero responsive */
  .about-hero-section-canfor {
    padding-top: 0;
  }

  .about-hero-overlay {
    padding-left: calc((100% - 960px) / 2 + 12px);
  }

  .about-hero-title-overlay {
    font-size: 3.5rem;
  }

  .about-hero-subtitle {
    font-size: 3.5rem;
  }

  .about-super-headline {
    font-size: 2.6rem;
  }

  .timeline-slide {
    flex: 0 0 calc(33.333% - 0.67rem); /* 3 images visible */
  }
}

@media (max-width: 991px) {
  /* New Canfor hero responsive */
  .about-hero-section-canfor {
    padding-top: 0;
  }

  .about-hero-canfor-image img {
    max-height: 60vh;
  }

  .about-hero-overlay {
    padding-left: calc((100% - 720px) / 2 + 12px);
  }

  .about-hero-title-overlay {
    font-size: 2.8rem;
  }

  .about-hero-subtitle {
    font-size: 2.8rem;
  }

  .about-super-headline {
    font-size: 2.2rem;
  }

  .timeline-slide {
    flex: 0 0 calc(50% - 0.5rem); /* 2 images visible */
  }

  .service-images-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .category-thumbnails-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .category-thumbnails-grid.category-thumbnails-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  /* New Canfor hero responsive */
  .about-hero-section-canfor {
    padding-top: 0;
  }

  .about-hero-canfor-image img {
    max-height: 50vh;
    min-height: 300px;
  }

  .about-hero-canfor-title {
    bottom: 1rem;
  }

  .about-hero-canfor-subtitle {
    margin-bottom: 1.25rem;
  }

  .about-hero-canfor-text {
    font-size: 1rem;
  }

  .about-hero-section {
    padding-top: 0;
  }

  .about-hero-image-wrapper {
    height: 70vh; /* Smaller on mobile but still shows full image */
    min-height: 400px;
  }

  .about-hero-overlay {
    padding-left: 1rem;
    bottom: 1.5rem;
  }

  .about-hero-title-overlay {
    font-size: 2rem;
  }

  .about-hero-content {
    padding-top: 1rem;
  }

  .about-hero-subtitle {
    font-size: 2rem;
    margin-bottom: 1.25rem;
  }

  .about-hero-text {
    font-size: 0.95rem;
    font-weight: 500;
  }

  .about-super-headline {
    font-size: 1.8rem;
  }

  .about-lead-text {
    font-size: 1.05rem;
  }

  .about-body-text {
    font-size: 1rem;
  }

  .timeline-carousel-wrapper {
    padding: 0 1rem;
  }

  .timeline-slide {
    flex: 0 0 100%; /* 1 image visible on mobile */
  }

  .timeline-year {
    font-size: 1.25rem;
  }

  .service-images-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .category-thumbnails-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .category-link-text {
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
  }
}

@media (max-width: 576px) {
  .about-hero-title-overlay {
    font-size: 1.75rem;
  }

  .about-hero-subtitle {
    font-size: 1.75rem;
  }

  .about-super-headline {
    font-size: 1.75rem;
  }

  .timeline-nav-btn {
    width: 40px;
    height: 40px;
  }
}

/* ============================================
   FLOWDRYA PAGE STYLES
   ============================================ */

/* FlowDrya Hero Section Specific */
.flowdrya-hero-section {
  background: var(--white);
}

/* FlowDrya Features Section - Checkmark List */
.flowdrya-features-section {
  padding: 3rem 0;
  background: var(--white);
}

.flowdrya-features-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 2rem;
  max-width: 1100px;
}

.flowdrya-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--text-gray);
  font-size: 0.95rem;
  line-height: 1.5;
}

.flowdrya-feature-item i {
  color: var(--primary-green);
  font-size: 0.9rem;
  margin-top: 0.25rem;
  flex-shrink: 0;
}

/* FlowDrya Features Section - VERSION B: Paragraph Style */
.flowdrya-features-paragraph {
  padding: 2.5rem 0;
}

.flowdrya-features-text {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-gray);
  max-width: 1100px;
  margin: 0;
}

.flowdrya-check {
  color: var(--primary-green);
  font-weight: 700;
  margin-right: 0.25rem;
}

/* FlowDrya Intro Section */
.flowdrya-intro-section {
  padding: 5rem 0;
}

.flowdrya-intro-image-wrapper {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.flowdrya-intro-image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.flowdrya-intro-image-wrapper:hover .flowdrya-intro-image {
  transform: scale(1.03);
}

.flowdrya-intro-image-overlay {
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
  padding: 2rem 1.5rem 1.5rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.flowdrya-intro-image-wrapper:hover .flowdrya-intro-image-overlay {
  opacity: 1;
}

.flowdrya-intro-image-title {
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 600;
  text-align: right;
}

/* FlowDrya Process Section */
.flowdrya-process-section {
  padding: 5rem 0;
  background: var(--white);
}

.flowdrya-process-section .section-label,
.flowdrya-process-section .about-super-headline,
.flowdrya-process-section .about-lead-text {
  text-align: left;
}

.flowdrya-process-subheading {
  color: var(--primary-green);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.flowdrya-process-list {
  padding-left: 1.5rem;
}

.flowdrya-process-list li {
  margin-bottom: 1.25rem;
  color: var(--text-gray);
  line-height: 1.7;
}

.flowdrya-process-list li strong {
  color: var(--primary-green);
  font-weight: 600;
}

.flowdrya-process-animation-wrapper {
  position: sticky;
  top: 100px;
  text-align: center;
}

.flowdrya-process-video {
  width: 100%;
  max-width: 600px;
  height: auto;
  border: 1px solid var(--border-color);
}

.flowdrya-process-caption {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* FlowDrya Collaboration Section */
.flowdrya-collab-section {
  padding: 5rem 0;
}

.flowdrya-cta-image-wrapper {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
}

.flowdrya-cta-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

.flowdrya-cta-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.6) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  text-align: center;
}

.flowdrya-cta-overlay h3 {
  color: var(--white);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

/* FlowDrya Materials Section */
.flowdrya-materials-section {
  padding: 5rem 0;
  background: var(--white);
}

.flowdrya-materials-section .section-label,
.flowdrya-materials-section .about-super-headline,
.flowdrya-materials-section .about-lead-text,
.flowdrya-materials-section .about-body-text {
  text-align: left;
}

/* Reference Carousel - Full Width Apple Style */
.flowdrya-ref-carousel-wrapper {
  position: relative;
  overflow: hidden;
  padding: 0 24px;
  margin-top: 2rem;
}

.flowdrya-ref-carousel {
  display: flex;
  gap: 16px;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  padding: 1rem 0;
}

.flowdrya-ref-slide {
  position: relative;
  flex: 0 0 calc(25% - 12px);
  min-width: 200px;
  aspect-ratio: 2/3;
  overflow: hidden;
  cursor: pointer;
  border-radius: 20px;
}

.flowdrya-ref-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.flowdrya-ref-slide:hover img {
  transform: scale(1.05);
}

.flowdrya-ref-slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, transparent 40%, transparent 100%);
  pointer-events: none;
  border-radius: 20px;
}

.flowdrya-ref-slide-info {
  position: absolute;
  top: 1.25rem;
  left: 1.5rem;
  right: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.flowdrya-ref-slide-info .ref-title {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.flowdrya-ref-slide-info .ref-application {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 400;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* Reference Carousel Navigation */
.flowdrya-ref-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.flowdrya-ref-nav-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--light-bg);
  border: 1px solid var(--border-color);
  color: var(--text-dark);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.flowdrya-ref-nav-btn:hover:not(:disabled) {
  background: var(--primary-green);
  color: var(--white);
  border-color: var(--primary-green);
}

.flowdrya-ref-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* FlowDrya Technical Section - Apple Style Cards */
.flowdrya-tech-section {
  padding: 5rem 0;
}

.flowdrya-tech-section .section-label,
.flowdrya-tech-section .about-super-headline,
.flowdrya-tech-section .about-body-text {
  text-align: left;
}

/* Tech Carousel - Full Width Apple Style */
.flowdrya-tech-carousel-wrapper {
  position: relative;
  overflow: hidden;
  padding: 0 24px;
  margin-top: 2rem;
}

.flowdrya-tech-carousel {
  display: flex;
  gap: 16px;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  padding: 1rem 0;
}

.flowdrya-tech-card {
  position: relative;
  flex: 0 0 calc(25% - 12px);
  min-width: 200px;
  aspect-ratio: 2/3;
  overflow: hidden;
  cursor: pointer;
  background: var(--light-bg);
  border-radius: 20px;
}

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

.flowdrya-tech-card:hover img {
  transform: scale(1.05);
}

.flowdrya-tech-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, transparent 40%, transparent 100%);
  pointer-events: none;
  border-radius: 20px;
}

.flowdrya-tech-card-content {
  position: absolute;
  top: 1.25rem;
  left: 1.5rem;
  right: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.flowdrya-tech-card-content .tech-card-title {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.flowdrya-tech-card-content .tech-card-subtitle {
  color: var(--white);
  font-size: 0.95rem;
  line-height: 1.4;
  font-weight: 400;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* Expand Button */
.flowdrya-tech-expand-btn {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  border: none;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.flowdrya-tech-expand-btn:hover {
  background: var(--primary-green);
  color: var(--white);
}

/* Tech Carousel Navigation */
.flowdrya-tech-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.flowdrya-tech-nav-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--light-bg);
  border: 1px solid var(--border-color);
  color: var(--text-dark);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.flowdrya-tech-nav-btn:hover:not(:disabled) {
  background: var(--primary-green);
  color: var(--white);
  border-color: var(--primary-green);
}

.flowdrya-tech-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* FlowDrya Modal - Apple Style Pop-up */
.flowdrya-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.flowdrya-modal.active {
  display: flex;
  opacity: 1;
}

.flowdrya-modal-content {
  background: var(--white);
  max-width: 1000px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 20px;
}

.flowdrya-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--light-bg);
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.flowdrya-modal-close:hover {
  background: var(--primary-green);
  color: var(--white);
}

.flowdrya-modal-header {
  grid-column: 1;
  padding: 2.5rem 2rem 1rem;
}

.flowdrya-modal-header .modal-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-green);
  margin-bottom: 0.5rem;
}

.flowdrya-modal-header h3 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
}

.flowdrya-modal-body {
  grid-column: 1;
  padding: 0 2rem 2.5rem;
}

.flowdrya-modal-body .modal-lead {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.flowdrya-modal-body p {
  color: var(--text-gray);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.flowdrya-modal-image {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.flowdrya-modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0 20px 20px 0;
}

/* ============================================
   HOPPER POPUP - SCROLLABLE FULLPAGE MODAL
   ============================================ */

/* Scrollable Modal Container */
.flowdrya-modal-scrollable {
  overflow-y: hidden;
}

.flowdrya-modal-fullpage {
  display: block;
  max-width: 1000px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 20px;
}

/* Hopper Hero Section */
.hopper-hero-section {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
}

.hopper-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hopper-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.5) 100%);
}

.hopper-hero-text {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  z-index: 2;
}

.hopper-hero-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.9);
  margin-bottom: 0.5rem;
}

.hopper-hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--white);
  margin: 0;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Hopper Sections */
.hopper-section {
  padding: 2rem;
}

.hopper-section-centered {
  text-align: center;
}

.hopper-section-nopadding {
  padding: 0;
}

/* Two Column Layout (like Discharge popup) */
.hopper-two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 0;
}

.hopper-column-text {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hopper-column-image {
  position: relative;
  min-height: 400px;
}

.hopper-column-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 767px) {
  .hopper-two-column {
    grid-template-columns: 1fr;
  }

  .hopper-column-image {
    min-height: 250px;
    order: -1;
  }
}

/* Section Labels */
.hopper-section-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-green);
  margin-bottom: 1rem;
}

/* Introduction Lead Text */
.hopper-intro-lead {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.7;
  color: var(--text-dark);
  margin-bottom: 0;
}

/* Body Text */
.hopper-body-text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-gray);
  margin-bottom: 1rem;
}

.hopper-body-text:last-child {
  margin-bottom: 0;
}

.hopper-body-text-centered {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-gray);
  margin-bottom: 1rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Advantage Titles */
.hopper-advantage-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}


/* Full Width Images */
.hopper-fullwidth-image {
  width: 100%;
  height: auto;
  border-radius: 0;
}

/* Hopper Carousel */
.hopper-carousel-wrapper {
  position: relative;
  padding: 2rem;
  overflow: hidden;
}

.hopper-carousel {
  display: flex;
  gap: 16px;
  transition: transform 0.5s ease;
}

.hopper-carousel-slide {
  flex: 0 0 calc(33.333% - 11px);
  min-width: 200px;
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: 12px;
}

.hopper-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.hopper-carousel-slide:hover img {
  transform: scale(1.05);
}

.hopper-carousel-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.hopper-carousel-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--light-bg);
  border: 1px solid var(--border-color);
  color: var(--text-dark);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hopper-carousel-btn:hover {
  background: var(--primary-green);
  color: var(--white);
  border-color: var(--primary-green);
}

/* Hopper Benefits Table */
.hopper-table-wrapper {
  overflow-x: auto;
}

.hopper-benefits-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.hopper-benefits-table thead th {
  background: var(--light-bg);
  padding: 1rem;
  text-align: center;
  font-weight: 600;
  color: var(--text-dark);
  border-bottom: 2px solid var(--border-color);
}

.hopper-benefits-table tbody td {
  padding: 1rem;
  text-align: center;
  color: var(--text-gray);
  border-bottom: 1px solid var(--border-color);
  vertical-align: top;
}

.hopper-benefits-table tbody tr:last-child td {
  border-bottom: none;
}

.hopper-benefits-table tbody td:first-child {
  font-weight: 500;
  color: var(--text-dark);
}

/* CTA Section */
.hopper-cta-section {
  background: var(--light-bg);
  border-radius: 0 0 20px 20px;
  margin-top: 2rem;
}

.hopper-contact-link {
  display: inline-block;
  margin-top: 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-dark);
  text-decoration: underline;
  transition: var(--transition);
}

.hopper-contact-link:hover {
  color: var(--primary-green);
}

/* Responsive for Hopper Modal */
@media (max-width: 767px) {
  .hopper-hero-section {
    height: 250px;
  }

  .hopper-hero-title {
    font-size: 1.5rem;
  }

  .hopper-hero-text {
    left: 1rem;
    bottom: 1rem;
  }

  .hopper-section {
    padding: 1.5rem 1rem;
  }

  .hopper-advantage-title {
    font-size: 1.25rem;
  }

  .hopper-carousel-slide {
    flex: 0 0 calc(50% - 8px);
  }

  .hopper-benefits-table {
    font-size: 0.8125rem;
  }

  .hopper-benefits-table thead th,
  .hopper-benefits-table tbody td {
    padding: 0.75rem 0.5rem;
  }
}

/* ========================================
   DryStation Modal Styles
   ======================================== */

/* DryStation Hero Section */
.drystation-hero-section {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
}

.drystation-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.drystation-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.5) 100%);
}

.drystation-hero-text {
  position: absolute;
  top: 2rem;
  left: 2rem;
  z-index: 2;
}

.drystation-hero-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.9);
  margin-bottom: 0.5rem;
}

.drystation-hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--white);
  margin: 0;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* DryStation Sections */
.drystation-section {
  padding: 2rem;
}

.drystation-section-centered {
  text-align: center;
}

/* Two Column Layout */
.drystation-two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 0;
}

.drystation-two-column.drystation-reverse {
  direction: ltr;
}

.drystation-two-column.drystation-reverse .drystation-column-image {
  order: -1;
}

.drystation-column-text {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.drystation-column-text.drystation-text-right {
  text-align: right;
}

.drystation-column-image {
  position: relative;
  min-height: 400px;
}

.drystation-column-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 767px) {
  .drystation-two-column {
    grid-template-columns: 1fr;
  }

  .drystation-column-image {
    min-height: 250px;
    order: -1;
  }

  .drystation-column-text.drystation-text-right {
    text-align: left;
  }
}

/* Section Labels */
.drystation-section-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-green);
  margin-bottom: 1rem;
}

/* Introduction Lead Text */
.drystation-intro-lead {
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.7;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.drystation-intro-lead:last-child {
  margin-bottom: 0;
}

/* Body Text */
.drystation-body-text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-gray);
  margin-bottom: 1rem;
}

.drystation-body-text:last-child {
  margin-bottom: 0;
}

.drystation-body-text-centered {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-gray);
  margin-bottom: 1rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.drystation-note {
  font-size: 0.875rem;
  color: var(--text-light);
}

/* Green Headings */
.drystation-green-heading {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-green);
  margin-bottom: 1rem;
}

.drystation-green-heading-centered {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-green);
  margin-bottom: 1.5rem;
}

/* Checkmarks */
.drystation-check {
  color: var(--primary-green);
  font-weight: 600;
  margin-right: 0.25rem;
}

/* Full Width Images & Video */
.drystation-fullwidth-image {
  width: 100%;
  height: auto;
  border-radius: 0;
}

.drystation-fullwidth-video {
  width: 100%;
  height: auto;
  border-radius: 0;
  display: block;
}

/* DryStation Table */
.drystation-table-wrapper {
  overflow-x: auto;
  padding: 0 2rem;
}

.drystation-benefits-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.drystation-benefits-table thead th {
  background: var(--light-bg);
  padding: 1rem;
  text-align: center;
  font-weight: 600;
  color: var(--text-dark);
  border-bottom: 2px solid var(--border-color);
}

.drystation-benefits-table tbody td {
  padding: 1rem;
  text-align: center;
  color: var(--text-gray);
  border-bottom: 1px solid var(--border-color);
  vertical-align: top;
}

.drystation-benefits-table tbody tr:last-child td {
  border-bottom: none;
}

.drystation-benefits-table tbody td:first-child {
  font-weight: 500;
  color: var(--text-dark);
}

/* CTA Section */
.drystation-cta-section {
  background: var(--light-bg);
  border-radius: 0 0 20px 20px;
  margin-top: 2rem;
}

.drystation-contact-link {
  display: inline-block;
  margin-top: 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-dark);
  text-decoration: underline;
  transition: var(--transition);
}

.drystation-contact-link:hover {
  color: var(--primary-green);
}

/* Responsive for DryStation Modal */
@media (max-width: 767px) {
  .drystation-hero-section {
    height: 250px;
  }

  .drystation-hero-title {
    font-size: 1.5rem;
  }

  .drystation-hero-text {
    left: 1rem;
    top: 1rem;
  }

  .drystation-section {
    padding: 1.5rem 1rem;
  }

  .drystation-green-heading,
  .drystation-green-heading-centered {
    font-size: 1.25rem;
  }

  .drystation-benefits-table {
    font-size: 0.8125rem;
  }

  .drystation-benefits-table thead th,
  .drystation-benefits-table tbody td {
    padding: 0.75rem 0.5rem;
  }

  .drystation-table-wrapper {
    padding: 0 1rem;
  }
}

/* FlowDrya FAQ Section */
.flowdrya-faq-section {
  padding: 5rem 0;
  background: var(--white);
}

.flowdrya-faq-section .section-label,
.flowdrya-faq-section .about-super-headline {
  text-align: left;
}

.flowdrya-faq-container {
  max-width: 100%;
}

.faq-item {
  border-bottom: 1px solid var(--border-color);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-dark);
  transition: var(--transition);
}

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

.faq-question span {
  flex: 1;
  padding-right: 1rem;
}

.faq-icon {
  color: var(--primary-green);
  font-size: 0.9rem;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding-bottom: 0;
  opacity: 0;
  transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out, opacity 0.3s ease-in-out;
}

.faq-item.active .faq-answer {
  max-height: 1200px;
  padding-bottom: 1.25rem;
  opacity: 1;
}

.faq-answer p {
  color: var(--text-gray);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* Hidden FAQs */
.flowdrya-faq-hidden {
  display: none;
}

.flowdrya-faq-hidden.show {
  display: block;
}

/* See More Button */
.faq-see-more-wrapper {
  text-align: center;
  margin-top: 1.5rem;
}

.faq-see-more-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  background: none;
  border: 1px solid var(--primary-green);
  color: var(--primary-green);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.faq-see-more-btn:hover {
  background: var(--primary-green);
  color: var(--white);
}

.faq-see-more-btn.expanded {
  display: none;
}

/* FlowDrya Enquiry Form Section */
.flowdrya-form-section {
  padding: 5rem 0;
}

.flowdrya-enquiry-form-wrapper {
  max-width: 1000px;
  margin: 0 auto;
}

.flowdrya-enquiry-form {
  background: var(--white);
  border: 1px solid var(--border-color);
}

/* Form Sections - Collapsible */
.form-section {
  border-bottom: 1px solid var(--border-color);
}

.form-section:last-of-type {
  border-bottom: none;
}

.form-section-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  background: var(--light-bg);
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  transition: var(--transition);
}

.form-section-header:hover {
  background: #f0f4f0;
}

.form-section-icon {
  color: var(--primary-green);
  transition: transform 0.3s ease;
}

.form-section-header[aria-expanded="false"] .form-section-icon {
  transform: rotate(-90deg);
}

.form-section-content {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.form-section-content.show {
  max-height: 2000px;
  padding: 1.5rem;
}

.form-section-intro {
  color: var(--text-gray);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

/* Form Fields */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.form-group .required {
  color: #dc3545;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-green);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input[type="file"] {
  padding: 0.5rem 0;
  border: none;
}

.form-help {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Checkbox */
.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1.5rem;
}

.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 0.2rem;
  flex-shrink: 0;
  accent-color: var(--primary-green);
}

.form-checkbox label {
  font-size: 0.9rem;
  color: var(--text-gray);
  line-height: 1.5;
  margin-bottom: 0;
}

.form-checkbox label a {
  color: var(--primary-green);
}

/* Submit Button */
.flowdrya-enquiry-form .btn-block {
  width: 100%;
  margin: 0;
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

/* Submit Button Outside Form Box */
.flowdrya-submit-btn {
  display: block;
  width: 50%;
  margin: 1.5rem auto 0;
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.flowdrya-submit-btn:disabled,
.flowdrya-submit-btn.btn-loading {
  background-color: var(--primary-green) !important;
  border-color: var(--primary-green) !important;
  color: var(--white) !important;
  opacity: 0.8;
}

/* FlowDrya Page Responsive */
@media (max-width: 1199px) {
  .flowdrya-ref-slide,
  .flowdrya-tech-card {
    flex: 0 0 calc(33.333% - 11px);
  }
}

@media (max-width: 991px) {
  .flowdrya-features-list {
    grid-template-columns: 1fr;
  }

  .flowdrya-ref-slide,
  .flowdrya-tech-card {
    flex: 0 0 calc(50% - 8px);
  }

  .flowdrya-modal-content {
    grid-template-columns: 1fr;
  }

  .flowdrya-modal-image {
    grid-column: 1;
    grid-row: auto;
    max-height: 300px;
  }

  .flowdrya-modal-image img {
    border-radius: 0 0 20px 20px;
  }

  .flowdrya-process-animation-wrapper {
    position: static;
    margin-top: 2rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .flowdrya-features-section {
    padding: 2rem 0;
  }

  .flowdrya-ref-slide,
  .flowdrya-tech-card {
    flex: 0 0 75%;
    min-width: 220px;
  }

  .flowdrya-ref-carousel-wrapper,
  .flowdrya-tech-carousel-wrapper {
    padding: 0 16px;
  }

  .flowdrya-modal {
    padding: 1rem;
  }

  .flowdrya-modal-header {
    padding: 2rem 1.5rem 0.5rem;
  }

  .flowdrya-modal-header h3 {
    font-size: 1.5rem;
  }

  .flowdrya-modal-body {
    padding: 0 1.5rem 2rem;
  }

  .faq-question {
    font-size: 0.95rem;
    padding: 1rem 0;
  }

  .form-section-header {
    padding: 1rem 1.25rem;
    font-size: 1rem;
  }

  .form-section-content.show {
    padding: 1.25rem;
  }
}

/* ============================================
   CONTACT PAGE STYLES - CANFOR STYLE
   ============================================ */

/* Contact Hero - Minimal Text Only (Canfor Style) */
.contact-hero-minimal {
  background: var(--primary-green);
  padding: 4rem 0;
}

.contact-hero-content {
  max-width: 800px;
}

.contact-hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
  line-height: 1.1;
}

.contact-hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0;
  line-height: 1.5;
}

/* Contact Anchor Navigation */
.contact-anchor-nav {
  background: var(--white);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 110px;
  z-index: 900;
}

.contact-anchor-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
}

.contact-anchor-list li a {
  display: block;
  padding: 1rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dark);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.contact-anchor-list li a:hover {
  color: var(--primary-green);
  border-bottom-color: var(--primary-green);
}

.contact-anchor-list li a.active {
  color: var(--primary-green);
  border-bottom-color: var(--primary-green);
  font-weight: 600;
}

/* Contact Section Titles */
.contact-section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.contact-section-text {
  font-size: 1rem;
  color: var(--text-gray);
  line-height: 1.7;
  margin-bottom: 0;
}

/* Contact Form Section */
.contact-form-section {
  padding: 4rem 0;
}

/* Contact Form Wrapper */
.contact-form-wrapper {
  background: var(--light-bg);
  padding: 2rem;
}

/* Contact Form */
.contact-form .form-group {
  margin-bottom: 1rem;
}

.contact-form .form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
}

.contact-form .form-group .required {
  color: #dc3545;
}

.contact-form .form-group input[type="text"],
.contact-form .form-group input[type="email"],
.contact-form .form-group input[type="tel"],
.contact-form .form-group textarea,
.contact-form .form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  font-size: 1rem;
  font-family: inherit;
  background: var(--white);
  transition: border-color 0.2s ease;
}

.contact-form .form-group input:focus,
.contact-form .form-group textarea:focus,
.contact-form .form-group select:focus {
  outline: none;
  border-color: var(--primary-green);
}

.contact-form .form-group input::placeholder,
.contact-form .form-group textarea::placeholder {
  color: var(--text-muted);
}

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-form .form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0;
  margin-bottom: 1rem;
}

.contact-form .form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 0.2rem;
  flex-shrink: 0;
  accent-color: var(--primary-green);
}

.contact-form .form-checkbox label {
  font-size: 0.85rem;
  color: var(--text-gray);
  line-height: 1.5;
  margin-bottom: 0;
}

.contact-form .form-checkbox label a {
  color: var(--primary-green);
}

.contact-submit-btn {
  padding: 0.875rem 2rem;
  font-size: 1rem;
  margin-top: 0.5rem;
}

.contact-submit-btn:disabled,
.contact-submit-btn.btn-loading {
  background-color: var(--primary-green) !important;
  border-color: var(--primary-green) !important;
  color: var(--white) !important;
  opacity: 0.8;
}

/* Contact Info Section */
.contact-info-section,
.contact-sales-section {
  padding: 4rem 0;
}

.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.contact-info-block {
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--border-color);
}

.contact-info-block h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

.contact-info-block p {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.contact-info-block p:last-child {
  margin-bottom: 0;
}

.contact-info-block p i {
  color: var(--primary-green);
  width: 18px;
  font-size: 0.9rem;
}

.contact-info-block a {
  color: var(--text-dark);
  transition: color 0.2s ease;
}

.contact-info-block a:hover {
  color: var(--primary-green);
}

.contact-note {
  color: var(--text-muted) !important;
  font-size: 0.85rem !important;
  padding-left: 1.75rem;
}

/* Social Links Full Section */
.contact-social-full-section {
  padding: 4rem 0;
}

.contact-social-links-large {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.contact-social-links-large a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--border-color);
  color: var(--text-dark);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.contact-social-links-large a i {
  font-size: 1.25rem;
  color: var(--primary-green);
}

.contact-social-links-large a:hover {
  background: var(--primary-green);
  border-color: var(--primary-green);
  color: var(--white);
}

.contact-social-links-large a:hover i {
  color: var(--white);
}

/* Contact FAQ Section */
.contact-faq-section {
  padding: 4rem 0;
}

/* Contact Page Responsive */
@media (max-width: 991px) {
  .contact-anchor-list {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .contact-anchor-list li a {
    padding: 0.875rem 1.25rem;
    white-space: nowrap;
  }

  .contact-info-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .contact-form .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .contact-hero-minimal {
    padding: 3rem 0;
  }

  .contact-anchor-nav {
    top: 60px;
  }

  .contact-anchor-list li a {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }

  .contact-form-section,
  .contact-info-section,
  .contact-sales-section,
  .contact-social-full-section,
  .contact-faq-section {
    padding: 3rem 0;
  }

  .contact-form-wrapper {
    padding: 1.5rem;
  }

  .contact-info-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .contact-info-block {
    padding: 1.25rem;
  }

  .contact-social-links-large {
    flex-direction: column;
  }

  .contact-social-links-large a {
    justify-content: center;
  }
}

/* ============================================
   CONTACT PAGE HERO - IMAGE WITH OVERLAY
   ============================================ */

/* Contact Page Hero Section */
.contact-page-hero {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 500px;
  max-height: 700px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.contact-page-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.2) 30%,
    rgba(0, 0, 0, 0.05) 60%,
    transparent 100%
  );
  z-index: 2;
}

.contact-page-hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: var(--white);
  padding: 2rem;
  max-width: 900px;
}

.contact-page-hero-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #ffffff;
  text-shadow: 0 2px 20px rgba(0,0,0,0.6), 0 4px 40px rgba(0,0,0,0.3);
}

.contact-page-hero-text {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #ffffff;
  text-shadow: 0 1px 10px rgba(0,0,0,0.4);
  margin-bottom: 0;
}

/* Contact Enquiry Section */
.contact-enquiry-section {
  padding: 4rem 0;
}

.contact-form-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}

.contact-form-intro {
  font-size: 1.05rem;
  color: var(--text-gray);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.contact-submit-btn {
  width: 100%;
  margin-top: 1.5rem;
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

/* Contact Info Cards - Flat Design */
.contact-info-cards-section {
  padding: 4rem 0;
}

.contact-info-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  padding: 2rem 1.5rem;
  text-align: center;
  height: 100%;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.contact-info-card:hover {
  border-color: var(--primary-green);
  background-color: var(--light-bg);
}

.contact-info-card-icon {
  margin-bottom: 1rem;
}

.contact-info-card-icon i {
  font-size: 2rem;
  color: var(--primary-green);
}

.contact-info-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-info-card-value {
  margin-bottom: 0.5rem;
}

.contact-info-card-value a {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--primary-green);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-info-card-value a:hover {
  color: var(--primary-green-dark);
  text-decoration: underline;
}

.contact-info-card-note {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Responsive - Contact Page Hero */
@media (max-width: 991px) {
  .contact-page-hero {
    height: 60vh;
    min-height: 450px;
  }

  .contact-page-hero-content h1 {
    font-size: 2.75rem;
  }

  .contact-page-hero-text {
    font-size: 1.05rem;
  }

  .contact-form-title {
    font-size: 2rem;
  }
}

@media (max-width: 767px) {
  .contact-page-hero {
    height: auto;
    min-height: 400px;
    padding: 4rem 0;
  }

  .contact-page-hero-content {
    padding: 1.5rem;
  }

  .contact-page-hero-content h1 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
  }

  .contact-page-hero-text {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .contact-enquiry-section {
    padding: 2.5rem 0;
  }

  .contact-form-title {
    font-size: 1.75rem;
  }

  .contact-form-intro {
    font-size: 0.95rem;
  }

  .contact-info-cards-section {
    padding: 3rem 0;
  }

  .contact-info-card {
    padding: 1.5rem;
  }
}

/* ============================================
   DRYER MATERIALS PAGE STYLES - CANFOR STYLE
   ============================================ */

/* Materials Hero - Minimal Text Only */
.materials-hero-minimal {
  background: var(--primary-green);
  padding: 4rem 0;
}

.materials-hero-content {
  max-width: 800px;
}

.materials-hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
  line-height: 1.1;
}

.materials-hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0;
  line-height: 1.5;
}

/* Materials Intro Section */
.materials-intro-section {
  padding: 3rem 0;
}

.materials-intro-text {
  font-size: 1.125rem;
  color: var(--text-gray);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.materials-intro-text:last-child {
  margin-bottom: 0;
}

/* Materials Category Section */
.materials-category-section {
  padding: 4rem 0;
}

.materials-category-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.materials-category-text {
  font-size: 1rem;
  color: var(--text-gray);
  line-height: 1.7;
  margin-bottom: 0;
}

/* Materials Page Grid - Unique prefix mat-page- */
.mat-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* Material Page Card - Text Below Image */
.mat-page-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border-color);
  text-decoration: none;
  transition: all 0.3s ease;
  overflow: hidden;
}

.mat-page-card:hover {
  border-color: var(--primary-green);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
}

/* Material Card Image Container */
.mat-page-card-img {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--light-bg);
}

.mat-page-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.mat-page-card:hover .mat-page-card-img img {
  transform: scale(1.05);
}

/* Material Card Body - Text Content Below Image */
.mat-page-card-body {
  padding: 1.25rem;
  background: var(--white);
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Material Card Title */
.mat-page-card-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

/* Material Card Description */
.mat-page-card-desc {
  font-size: 0.9rem;
  color: var(--text-gray);
  line-height: 1.6;
  margin-bottom: 1rem;
  flex: 1;
}

/* Material Card Link */
.mat-page-card-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-green);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
}

.mat-page-card-link i {
  font-size: 0.75rem;
  transition: transform 0.2s ease;
}

.mat-page-card:hover .mat-page-card-link {
  color: var(--dark-green);
}

.mat-page-card:hover .mat-page-card-link i {
  transform: translateX(4px);
}

/* Materials CTA Section */
.materials-cta-section {
  padding: 4rem 0;
  background: var(--white);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.materials-cta-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.materials-cta-text {
  font-size: 1rem;
  color: var(--text-gray);
  line-height: 1.7;
  margin-bottom: 0;
}

/* Materials Related Section */
.materials-related-section {
  padding: 4rem 0;
}

.materials-related-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 2rem;
}

.materials-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.materials-related-card {
  display: block;
  padding: 2rem;
  background: var(--white);
  border: 1px solid var(--border-color);
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
}

.materials-related-card:hover {
  border-color: var(--primary-green);
}

.materials-related-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light-bg);
  color: var(--primary-green);
  font-size: 1.5rem;
  margin: 0 auto 1.25rem;
}

.materials-related-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.materials-related-card p {
  font-size: 0.9rem;
  color: var(--text-gray);
  line-height: 1.5;
  margin-bottom: 0;
}

/* Materials Page Responsive */
@media (max-width: 991px) {
  .mat-page-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 767px) {
  .materials-hero-minimal {
    padding: 3rem 0;
  }

  .materials-intro-section {
    padding: 2rem 0;
  }

  .materials-category-section,
  .materials-cta-section,
  .materials-related-section {
    padding: 3rem 0;
  }

  .mat-page-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .mat-page-card-body {
    padding: 1rem;
  }

  .mat-page-card-title {
    font-size: 1rem;
  }

  .mat-page-card-desc {
    font-size: 0.85rem;
  }

  .materials-related-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .materials-related-card {
    padding: 1.5rem;
  }

  .materials-cta-section .text-lg-end {
    text-align: left !important;
    margin-top: 1.5rem;
  }
}

/* ============================================
   MATERIAL DETAIL PAGE STYLES (matdet- prefix)
   Wood Chip, Bark, Digestate, SRF/RDF pages
   ============================================ */

/* Material Detail Hero */
.matdet-hero {
  background: var(--primary-green);
  padding: 3rem 0 4rem;
}

.matdet-hero-content {
  max-width: 800px;
}

.matdet-breadcrumb {
  margin-bottom: 1.5rem;
}

.matdet-breadcrumb ol {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.matdet-breadcrumb ol li {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

.matdet-breadcrumb ol li::after {
  content: '/';
  margin-left: 0.5rem;
  color: rgba(255, 255, 255, 0.5);
}

.matdet-breadcrumb ol li:last-child::after {
  display: none;
}

.matdet-breadcrumb ol li a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.2s ease;
}

.matdet-breadcrumb ol li a:hover {
  color: var(--white);
}

.matdet-breadcrumb ol li[aria-current="page"] {
  color: var(--white);
}

.matdet-hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
  line-height: 1.1;
}

.matdet-hero-subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0;
  line-height: 1.6;
  max-width: 700px;
}

/* Material Detail Anchor Navigation */
.matdet-anchor-nav {
  background: var(--white);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 110px;
  z-index: 99; /* Always below header (z-index: 1000) */
}

.matdet-anchor-list {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.matdet-anchor-list li a {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--text-gray);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease;
}

.matdet-anchor-list li a:hover {
  color: var(--primary-green);
  background: var(--light-bg);
}

.matdet-anchor-list li a.active {
  color: var(--primary-green);
  border-bottom-color: var(--primary-green);
}

/* Material Detail Sections */
.matdet-section {
  padding: 4rem 0;
}

.matdet-section .section-label {
  text-align: left;
}

.matdet-section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1.25rem;
  line-height: 1.2;
}

.matdet-section-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1.25rem;
  line-height: 1.3;
}

.matdet-text {
  font-size: 1rem;
  color: var(--text-gray);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.matdet-text:last-child {
  margin-bottom: 0;
}

/* Material Detail Image Block */
.matdet-image-block {
  position: relative;
  overflow: hidden;
}

.matdet-main-image {
  width: 100%;
  height: auto;
  display: block;
}

/* Material Detail Benefits Grid */
.matdet-benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.matdet-benefit-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.matdet-benefit-card:hover {
  border-color: var(--primary-green);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.matdet-benefit-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light-bg);
  color: var(--primary-green);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.matdet-benefit-card h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.matdet-benefit-card p {
  font-size: 0.9rem;
  color: var(--text-gray);
  line-height: 1.6;
  margin-bottom: 0;
}

/* Material Detail Specs Table */
.matdet-specs-table {
  background: var(--white);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.matdet-specs-table table {
  width: 100%;
  border-collapse: collapse;
}

.matdet-specs-table thead {
  background: var(--light-bg);
}

.matdet-specs-table th {
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-dark);
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.matdet-specs-table td {
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text-gray);
  border-bottom: 1px solid var(--border-color);
}

.matdet-specs-table tr:last-child td {
  border-bottom: none;
}

.matdet-specs-table tr:hover td {
  background: rgba(76, 175, 80, 0.03);
}

.matdet-specs-table td:first-child {
  font-weight: 500;
  color: var(--text-dark);
}

/* Material Detail Applications Grid */
.matdet-applications-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.matdet-application-card {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.matdet-application-card:hover {
  border-color: var(--primary-green);
}

.matdet-application-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-green);
  color: var(--white);
  font-size: 1.25rem;
}

.matdet-application-content h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.375rem;
}

.matdet-application-content p {
  font-size: 0.875rem;
  color: var(--text-gray);
  line-height: 1.5;
  margin-bottom: 0;
}

/* Material Detail References Grid */
.matdet-references-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.matdet-reference-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--border-color);
  text-decoration: none;
  overflow: hidden;
  transition: all 0.3s ease;
}

.matdet-reference-card:hover {
  border-color: var(--primary-green);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
}

.matdet-reference-img {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.matdet-reference-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.matdet-reference-card:hover .matdet-reference-img img {
  transform: scale(1.05);
}

.matdet-reference-body {
  padding: 1.25rem;
}

.matdet-reference-location {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--primary-green);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.matdet-reference-body h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.375rem;
  line-height: 1.3;
}

.matdet-reference-body p {
  font-size: 0.85rem;
  color: var(--text-gray);
  line-height: 1.5;
  margin-bottom: 0;
}

/* Material Detail FAQ Container */
.matdet-faq-container {
  margin-top: 2rem;
}

/* Material Detail CTA Section */
.matdet-cta-section {
  background: var(--primary-green);
  padding: 4rem 0;
}

.matdet-cta-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.matdet-cta-content h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--white);
  margin-bottom: 1rem;
}

.matdet-cta-content p {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.matdet-cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.matdet-cta-buttons .btn-primary {
  background: var(--white);
  color: var(--primary-green);
  border: 2px solid var(--white);
}

.matdet-cta-buttons .btn-primary:hover {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.matdet-cta-buttons .btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: var(--white);
  background: transparent;
}

.matdet-cta-buttons .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}

/* Material Detail - Image Caption */
.matdet-image-caption {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  line-height: 1.5;
}

/* Material Detail - Thumbnail Cards (3-per-row grid) */
.matdet-thumb-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 1;
}

.matdet-thumb-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.matdet-thumb-card:hover img {
  transform: scale(1.05);
}

.matdet-thumb-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.5rem 0.75rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.3;
}

/* Thumbnail Grid Layouts */
.matdet-thumb-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.matdet-thumb-grid-3col {
  grid-template-columns: repeat(3, 1fr);
}

.matdet-thumb-grid-3col .matdet-thumb-card {
  aspect-ratio: auto;
}

.matdet-thumb-grid-3col .matdet-thumb-card img {
  height: auto;
}

@media (max-width: 991px) {
  .matdet-thumb-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .matdet-thumb-grid-3col {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .matdet-thumb-grid,
  .matdet-thumb-grid-3col {
    grid-template-columns: 1fr;
  }
}

/* Material Detail - Numbered Benefits */
.matdet-benefits-numbered {
  margin-top: 1.5rem;
}

.matdet-benefit-item-numbered {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  line-height: 1.7;
  color: var(--text-body);
}

.matdet-benefit-number {
  font-weight: 700;
  color: var(--primary-green);
  flex-shrink: 0;
  min-width: 1.75rem;
}

/* Material Detail - Numbered Benefits as <ol> */
ol.matdet-benefits-numbered {
  list-style: none;
  counter-reset: matdet-counter;
  padding-left: 0;
  margin-top: 1.5rem;
}

ol.matdet-benefits-numbered > li {
  counter-increment: matdet-counter;
  position: relative;
  padding-left: 3rem;
  margin-bottom: 1.25rem;
  line-height: 1.7;
  color: var(--text-body);
}

ol.matdet-benefits-numbered > li::before {
  content: counter(matdet-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.25rem;
  height: 2.25rem;
  background: var(--primary-green);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
}

/* Material Detail - Checklist (ticked benefits) */
.matdet-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--text-body);
}

.matdet-checklist li {
  padding: 0.25rem 0;
}

.matdet-checklist-icon {
  color: var(--primary-green);
  margin-right: 0.6rem;
  font-size: 0.95rem;
}

/* Material Detail - Data Table */
.matdet-data-table {
  border: 1px solid var(--border-color);
}

.matdet-data-table thead th {
  background: var(--primary-green);
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  padding: 0.75rem;
}

.matdet-data-table tbody td {
  padding: 0.75rem;
  font-size: 0.9rem;
  vertical-align: middle;
}

.matdet-data-table tbody td small {
  display: block;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Material Detail Related Section */
.matdet-related-section {
  padding: 4rem 0;
}

.matdet-related-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 2rem;
}

.matdet-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* SRF Page - Checkmark List */
.srf-checkmark-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.srf-checkmark-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.srf-checkmark {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-green);
  font-size: 0.9rem;
  margin-top: 0.1rem;
}

.srf-checkmark-item p {
  font-size: 0.95rem;
  color: var(--text-gray);
  line-height: 1.7;
  margin-bottom: 0;
}

/* SRF Page - Bullet List */
.srf-bullet-list {
  list-style: disc;
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.srf-bullet-list li {
  font-size: 0.95rem;
  color: var(--text-gray);
  line-height: 1.7;
}

/* SRF Page - Feature Icon Cards (3x2 grid) */
.srf-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.srf-feature-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.srf-feature-card:hover {
  border-color: var(--primary-green);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.srf-feature-card img {
  width: 100%;
  height: auto;
  margin-bottom: 1rem;
}

.srf-feature-card p {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--text-dark);
  line-height: 1.5;
  margin-bottom: 0;
}

/* SRF Page - Video Container */
.srf-video-container {
  position: relative;
  width: 100%;
  border-radius: 0;
  overflow: hidden;
  background: #000;
}

.srf-video-player {
  width: 100%;
  height: auto;
  display: block;
}

.srf-video-player::-webkit-media-controls {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.srf-video-container:hover .srf-video-player::-webkit-media-controls {
  opacity: 1;
}

.srf-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
  z-index: 2;
  transition: background 0.3s ease, opacity 0.3s ease;
}

.srf-video-overlay:hover {
  background: rgba(0, 0, 0, 0.3);
}

.srf-video-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.srf-video-play-btn {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, background 0.3s ease;
}

.srf-video-play-btn:hover {
  transform: scale(1.1);
  background: var(--white);
}

.srf-video-play-btn i {
  font-size: 2rem;
  color: var(--primary-green);
  margin-left: 5px;
}

/* Material Detail Page Responsive */
@media (max-width: 991px) {
  .matdet-anchor-list {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .matdet-anchor-list li a {
    padding: 0.875rem 1.25rem;
    white-space: nowrap;
  }

  .matdet-benefits-grid {
    grid-template-columns: 1fr;
  }

  .matdet-applications-grid {
    grid-template-columns: 1fr;
  }

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

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

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

@media (max-width: 767px) {
  .matdet-hero {
    padding: 2rem 0 3rem;
  }

  .matdet-breadcrumb ol {
    flex-wrap: wrap;
    gap: 0.25rem;
  }

  .matdet-breadcrumb ol li {
    font-size: 0.8125rem;
  }

  .matdet-anchor-nav {
    top: 70px;
    z-index: 99 !important; /* Below header (z-index: 1000) on mobile */
  }

  /* When scrolling down on mobile, anchor nav should stay below header */
  body.material-page-scroll-down .matdet-anchor-nav {
    z-index: 99 !important;
    top: 70px !important; /* Below the mobile header */
  }

  .matdet-anchor-list li a {
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
  }

  .matdet-section {
    padding: 3rem 0;
  }

  .matdet-benefit-card {
    padding: 1.25rem;
  }

  .matdet-application-card {
    flex-direction: column;
    padding: 1.25rem;
  }

  .matdet-application-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .matdet-references-grid {
    grid-template-columns: 1fr;
  }

  .matdet-cta-section {
    padding: 3rem 0;
  }

  .matdet-cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .matdet-cta-buttons .btn {
    width: 100%;
  }

  .matdet-related-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .matdet-specs-table th,
  .matdet-specs-table td {
    padding: 0.875rem 1rem;
    font-size: 0.85rem;
  }

  .srf-feature-grid {
    grid-template-columns: 1fr;
  }
}

/* Brash Benefits Checkmark List */
.brash-benefits-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.brash-benefits-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 1rem;
  color: var(--text-dark);
  line-height: 1.7;
}

.brash-benefits-list li i {
  color: var(--primary-green);
  flex-shrink: 0;
  margin-top: 0.25rem;
  font-size: 1.1rem;
}

.brash-benefits-list li span {
  flex: 1;
}

.brash-benefits-list li strong {
  color: var(--text-dark);
  font-weight: 600;
}

@media (max-width: 767px) {
  .brash-benefits-list li {
    font-size: 0.9375rem;
  }
}

/* ============================================
   REFERENCES PAGE STYLES (refs- prefix)
   ============================================ */

/* References Hero - Left Aligned (matching matdet-hero) */
/* References Page Title Section */
.refs-page-title-section {
  padding: 3rem 0 0;
  background: var(--white);
}

.refs-page-title {
  display: inline-block;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 500;
  color: var(--primary-green);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0;
  background: #f5f5f5;
  padding: 0.75rem 2rem;
  border-radius: 4px;
}

.refs-page-title-section .container {
  text-align: center;
}

/* Page Header GIF */
.refs-page-gif-wrapper {
  margin-bottom: 1.5rem;
}

.refs-page-header-gif {
  width: 150px;
  height: auto;
  display: inline-block;
}

/* Keep default margin-bottom (1.5rem) on headline - matches flowdrya.html */
.refs-page-title-section .about-super-headline {
  margin-bottom: 1.5rem;
}

/* References Intro Section */
.refs-intro-section {
  padding: 0 0 3rem;
  background: var(--white);
}

.refs-intro-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.refs-intro-lead {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.refs-intro-text {
  font-size: 1rem;
  color: var(--text-gray);
  line-height: 1.7;
  margin-bottom: 0;
}

/* Know How Page Specific Styles */
.knowhow-subtitle {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}

.knowhow-topics-list {
  text-align: left;
  max-width: 800px;
  margin: 1rem auto 0;
  padding-left: 1.5rem;
  list-style-type: disc;
}

.knowhow-topics-list li {
  font-size: 1rem;
  color: var(--text-gray);
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.knowhow-topics-list li:last-child {
  margin-bottom: 0;
}

/* References Filter Section */
.refs-filter-section {
  background: var(--white);
  padding: 1rem 0;
  position: sticky;
  top: 110px;
  z-index: 900;
}

.refs-filter-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.refs-filter-btn {
  padding: 0.5rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--primary-green);
  background: #f0f0f0;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.refs-filter-btn:hover {
  background: #e5e5e5;
  color: var(--primary-green);
}

.refs-filter-btn.active {
  background: var(--primary-green);
  color: var(--white);
}

/* References Grid Section */
.refs-grid-section {
  padding: 4rem 0;
}

.refs-results-count {
  margin-bottom: 2rem;
}

.refs-results-count p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin: 0;
}

.refs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

/* Reference Card */
.refs-card {
  border: 1px solid var(--border-color);
  background: var(--white);
  overflow: hidden;
  transition: all 0.3s ease;
}

.refs-card-hidden {
  display: none !important;
}

.refs-card:hover {
  box-shadow: var(--box-shadow-hover);
}

.refs-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.refs-card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
}

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

.refs-card:hover .refs-card-image img {
  transform: scale(1.05);
}

.refs-card-category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--primary-green);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 400;
  padding: 0.375rem 0.75rem;
  border-radius: 15px;
}

.refs-card-body {
  padding: 1.5rem;
}

.refs-card-location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.refs-card-location i {
  color: var(--primary-green);
  font-size: 0.75rem;
}

.refs-card-body h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
  line-height: 1.3;
  transition: color 0.2s ease;
}

.refs-card:hover .refs-card-body h3 {
  color: var(--primary-green);
}

.refs-card-body p {
  font-size: 0.875rem;
  color: var(--text-gray);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.refs-card-readmore {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary-green);
  transition: gap 0.2s ease;
}

.refs-card:hover .refs-card-readmore {
  gap: 0.75rem;
}

/* Load More Button */
.refs-load-more {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

.refs-load-more .btn {
  padding: 0.875rem 2rem;
}

/* References CTA Section */
.refs-cta-section {
  background: var(--primary-green);
  padding: 5rem 0;
}

.refs-cta-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.refs-cta-content h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 600;
  color: var(--white);
  margin-bottom: 1rem;
}

.refs-cta-content p {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.refs-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.refs-cta-buttons .btn-primary {
  background: var(--white);
  color: var(--primary-green);
  border: 2px solid var(--white);
}

.refs-cta-buttons .btn-primary:hover {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.refs-cta-buttons .btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: var(--white);
  background: transparent;
}

.refs-cta-buttons .btn-outline-light:hover {
  background: var(--white);
  color: var(--primary-green);
  border-color: var(--white);
}

/* References Page Responsive */
@media (max-width: 991px) {
  .refs-filter-wrapper {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
  }

  .refs-filter-btn {
    white-space: nowrap;
    flex-shrink: 0;
  }
}

@media (max-width: 767px) {
  .refs-page-title-section {
    padding: 2rem 0 1.5rem;
  }

  .refs-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .refs-filter-section {
    top: 60px;
  }

  .refs-cta-buttons {
    flex-direction: column;
  }

  .refs-cta-buttons .btn {
    width: 100%;
  }
}

/* ============================================
   REFERENCE POST PAGE STYLES (refpost- prefix)
   ============================================ */

/* Reference Post Hero Image */
.refpost-hero {
  margin-top: 72px;
}

.refpost-hero-image {
  width: 100%;
  max-height: 60vh;
  min-height: 400px;
  overflow: hidden;
}

.refpost-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Reference Post Header */
.refpost-header {
  padding: 3rem 0 2rem;
  background: var(--white);
  border-bottom: 1px solid var(--border-color);
}

.refpost-header-content {
  max-width: 800px;
}

.refpost-breadcrumb {
  margin-bottom: 1.5rem;
}

.refpost-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.refpost-breadcrumb ol li {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.refpost-breadcrumb ol li::after {
  content: '/';
  margin-left: 0.5rem;
  color: var(--border-color);
}

.refpost-breadcrumb ol li:last-child::after {
  display: none;
}

.refpost-breadcrumb ol li a {
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.refpost-breadcrumb ol li a:hover {
  color: var(--primary-green);
}

.refpost-breadcrumb ol li[aria-current="page"] {
  color: var(--text-dark);
}

.refpost-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}

.refpost-category {
  background: var(--primary-green);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.375rem 0.75rem;
}

.refpost-date,
.refpost-material {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-dark);
  font-weight: 500;
}

.refpost-location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.refpost-material i,
.refpost-date i,
.refpost-location i {
  color: var(--primary-green);
  font-size: 0.875rem;
}

.refpost-header-content h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.refpost-subtitle {
  font-size: 1.125rem;
  color: var(--text-gray);
  line-height: 1.6;
  margin: 0;
}

/* Reference Post Summary */
.refpost-summary {
  background: var(--light-bg);
  padding: 2rem 0;
  border-bottom: 1px solid var(--border-color);
}

.refpost-summary-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.5rem;
}

.refpost-summary-item {
  text-align: center;
}

.refpost-summary-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.refpost-summary-value {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
}

/* Reference Post Content */
.refpost-content {
  padding: 4rem 0;
}

.refpost-article h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
}

.refpost-article h2:first-child {
  margin-top: 0;
}

.refpost-article h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.refpost-article h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

/* Process Steps - number and heading on same line */
.refpost-process-steps {
  margin: 1.5rem 0;
}

.refpost-step {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.refpost-step-number {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-green);
  flex-shrink: 0;
  line-height: 1.4;
}

.refpost-step-content h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0 0 0.25rem;
  display: inline;
}

.refpost-step-content p {
  margin-top: 0.5rem;
}

.refpost-article p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-gray);
  margin-bottom: 1.25rem;
}

.refpost-list {
  margin: 1.5rem 0;
  padding-left: 1.25rem;
}

.refpost-list li {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-gray);
  margin-bottom: 0.75rem;
}

.refpost-list li strong {
  color: var(--text-dark);
}

/* Image Blocks */
.refpost-image-block {
  margin: 2.5rem 0;
}

.refpost-image-block img {
  width: 100%;
  height: auto;
  border: 1px solid var(--border-color);
}

.refpost-image-caption {
  display: block;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  font-style: italic;
}

/* Video Blocks */
.refpost-video-block {
  margin: 2.5rem 0;
}

.refpost-video-block video {
  width: 100%;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--border-color);
  display: block;
}

.refpost-video-block .refpost-image-caption {
  margin-top: 0.75rem;
}

/* Results Grid */
.refpost-results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2.5rem 0;
}

.refpost-result-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--light-bg);
  border: 1px solid var(--border-color);
}

.refpost-result-value {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-green);
  margin-bottom: 0.5rem;
}

.refpost-result-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Blockquote */
.refpost-quote {
  margin: 2.5rem 0;
  padding: 2rem;
  background: var(--light-bg);
  border-left: 4px solid var(--primary-green);
}

.refpost-quote p {
  font-size: 1.125rem;
  font-style: italic;
  color: var(--text-dark);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.refpost-quote cite {
  font-size: 0.9375rem;
  font-style: normal;
  color: var(--text-muted);
}

/* Specs Table */
.refpost-specs-table {
  margin: 2rem 0;
  overflow-x: auto;
}

.refpost-specs-table table {
  width: 100%;
  border-collapse: collapse;
}

.refpost-specs-table td {
  padding: 1rem 1.25rem;
  font-size: 0.9375rem;
  border-bottom: 1px solid var(--border-color);
}

.refpost-specs-table td:first-child {
  font-weight: 500;
  color: var(--text-dark);
  background: var(--light-bg);
  width: 40%;
}

.refpost-specs-table td:last-child {
  color: var(--text-gray);
}

/* Bullet points inside table cells */
.refpost-specs-table td ul {
  margin: 0;
  padding-left: 1.25rem;
  list-style-type: disc;
}

.refpost-specs-table td ul li {
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.refpost-specs-table td ul li:last-child {
  margin-bottom: 0;
}

/* Reference Post FAQ */
.refpost-faq {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border-color);
}

.refpost-faq h2 {
  margin-top: 0;
}

/* Sidebar */
.refpost-sidebar {
  position: sticky;
  top: 140px;
}

.refpost-sidebar-cta {
  background: var(--light-bg);
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid var(--border-color);
}

.refpost-sidebar-cta h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.refpost-sidebar-cta p {
  font-size: 0.9375rem;
  color: var(--text-gray);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.refpost-sidebar-cta .btn-primary {
  background: var(--primary-green);
  color: var(--white);
  border: none;
}

.refpost-sidebar-cta .btn-primary:hover {
  background: var(--dark-green);
}

.refpost-sidebar-cta .btn-outline-primary {
  border-color: var(--primary-green);
  color: var(--primary-green);
}

.refpost-sidebar-cta .btn-outline-primary:hover {
  background: var(--primary-green);
  color: var(--white);
  border-color: var(--primary-green);
}

.refpost-sidebar-section {
  background: var(--light-bg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-color);
}

.refpost-sidebar-section h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.refpost-sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--white);
  border: 1px solid var(--border-color);
  color: var(--text-dark);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.refpost-sidebar-link:hover {
  border-color: var(--primary-green);
  color: var(--primary-green);
}

.refpost-sidebar-link i {
  color: var(--primary-green);
}

/* Related Cards */
.refpost-related-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.refpost-related-card {
  display: flex;
  gap: 1rem;
  padding: 0.75rem;
  background: var(--white);
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
}

.refpost-related-card:hover {
  border-color: var(--primary-green);
}

.refpost-related-card img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  flex-shrink: 0;
}

.refpost-related-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.refpost-related-location {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.refpost-related-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.4;
}

.refpost-related-card:hover .refpost-related-title {
  color: var(--primary-green);
}

/* Share Links */
.refpost-share-links {
  display: flex;
  gap: 0.75rem;
}

.refpost-share-links a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 1px solid var(--border-color);
  color: var(--text-gray);
  transition: all 0.2s ease;
}

.refpost-share-links a:hover {
  background: var(--primary-green);
  border-color: var(--primary-green);
  color: var(--white);
}

/* Back to References */
.refpost-back-section {
  padding: 2rem 0;
  background: var(--light-bg);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.refpost-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-dark);
  transition: all 0.2s ease;
}

.refpost-back-link:hover {
  color: var(--primary-green);
  gap: 0.75rem;
}

.refpost-back-link i {
  transition: transform 0.2s ease;
}

.refpost-back-link:hover i {
  transform: translateX(-3px);
}

/* Wide Table for 4+ columns */
.refpost-specs-table-wide {
  overflow-x: auto;
}

.refpost-specs-table-wide table {
  min-width: 700px;
}

.refpost-specs-table-wide td:first-child {
  width: auto;
  min-width: 150px;
}

/* Product Grid for Bark Fractions */
.refpost-product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin: 2rem 0;
}

.refpost-product-item {
  text-align: center;
}

.refpost-product-image {
  width: 180px;
  height: 180px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  overflow: hidden;
}

.refpost-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.refpost-product-item h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.refpost-product-item p {
  font-size: 0.9375rem;
  color: var(--text-gray);
  line-height: 1.6;
}

/* Vertical Product Layout (large circular images stacked) */
.refpost-product-vertical {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin: 2rem 0;
}

.refpost-product-item-vertical {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.refpost-product-image-large {
  width: 450px;
  height: 450px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  overflow: hidden;
}

.refpost-product-image-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.refpost-product-item-vertical h3 {
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.refpost-product-item-vertical p {
  font-size: 1rem;
  color: var(--text-gray);
  line-height: 1.7;
}

/* Checkmark List */
.refpost-checkmark-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.refpost-checkmark-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.9375rem;
  color: var(--text-dark);
}

.refpost-checkmark-list li i {
  color: var(--primary-green);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

/* Circular Image */
.refpost-image-circular {
  text-align: center;
  margin: 2rem 0;
}

.refpost-image-circular img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
}

/* Contact Form in Article */
.refpost-contact-form {
  background: var(--light-bg);
  padding: 2rem;
  margin-top: 2rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
}

.refpost-contact-form h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}

.refpost-contact-form .form-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-dark);
}

.refpost-contact-form .form-control {
  border-color: var(--border-color);
  padding: 0.75rem 1rem;
}

.refpost-contact-form .form-control:focus {
  border-color: var(--primary-green);
  box-shadow: 0 0 0 3px rgba(var(--primary-green-rgb), 0.1);
}

.refpost-contact-form .btn-primary {
  background: var(--primary-green);
  border-color: var(--primary-green);
  padding: 0.75rem 2rem;
}

.refpost-contact-form .btn-primary:hover {
  background: var(--dark-green);
  border-color: var(--dark-green);
}

/* Reference Post Submit Button - Outside Form Box */
.refpost-submit-btn {
  display: block;
  width: 50%;
  margin: 1.5rem auto 0;
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.refpost-submit-btn:disabled,
.refpost-submit-btn.btn-loading {
  background-color: var(--primary-green) !important;
  border-color: var(--primary-green) !important;
  color: var(--white) !important;
  opacity: 0.8;
}

/* Reference Post Responsive */
@media (max-width: 991px) {
  .refpost-summary-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .refpost-results-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767px) {
  .refpost-hero-image {
    max-height: 50vh;
    min-height: 280px;
  }

  .refpost-header {
    padding: 2rem 0 1.5rem;
  }

  .refpost-meta {
    gap: 1rem;
  }

  .refpost-summary-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .refpost-content {
    padding: 2.5rem 0;
  }

  .refpost-results-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .refpost-result-card {
    padding: 1.5rem 1rem;
  }

  .refpost-result-value {
    font-size: 2rem;
  }

  .refpost-quote {
    padding: 1.5rem;
  }

  .refpost-sidebar {
    position: static;
    margin-top: 3rem;
  }

  .refpost-product-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .refpost-product-image {
    width: 150px;
    height: 150px;
  }

  .refpost-image-circular img {
    width: 160px;
    height: 160px;
  }

  .refpost-product-image-large {
    width: 320px;
    height: 320px;
  }

  .refpost-product-image-large:hover {
    transform: scale(1.1);
  }

  .refpost-product-item-vertical h3 {
    font-size: 1.25rem;
  }

  .refpost-product-item-vertical p {
    font-size: 0.9375rem;
  }
}

/* ============================================
   KNOW HOW PAGE STYLES (knowhow- prefix)
   Reuses refs- patterns with knowhow- naming
   ============================================ */

/* Know How Hero - Left Aligned (matching refs-hero) */
.knowhow-hero {
  background: var(--primary-green);
  padding: 3rem 0 4rem;
}

.knowhow-hero-content {
  max-width: 800px;
}

.knowhow-hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
}

.knowhow-hero-subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  line-height: 1.6;
}

/* Know How Filter Section */
.knowhow-filter-section {
  background: var(--white);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
  position: sticky;
  top: 110px;
  z-index: 900;
}

.knowhow-filter-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-start;
}

.knowhow-filter-btn {
  padding: 0.5rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--primary-green);
  background: #f0f0f0;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.knowhow-filter-btn:hover {
  background: #e5e5e5;
  color: var(--primary-green);
}

.knowhow-filter-btn.active {
  background: var(--primary-green);
  color: var(--white);
}

/* Know How Grid Section */
.knowhow-grid-section {
  padding: 4rem 0;
}

.knowhow-results-count {
  margin-bottom: 2rem;
}

.knowhow-results-count p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin: 0;
}

.knowhow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* Know How Card */
.knowhow-card {
  border: 1px solid var(--border-color);
  background: var(--white);
  overflow: hidden;
  transition: all 0.3s ease;
}

.knowhow-card:hover {
  box-shadow: var(--box-shadow-hover);
}

.knowhow-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.knowhow-card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
}

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

.knowhow-card:hover .knowhow-card-image img {
  transform: scale(1.05);
}

.knowhow-card-category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--primary-green);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.375rem 0.75rem;
  border-radius: 15px;
}

.knowhow-card-body {
  padding: 1.5rem;
}

.knowhow-card-date {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.knowhow-card-date i {
  color: var(--primary-green);
  font-size: 0.75rem;
}

.knowhow-card-body h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.knowhow-card:hover .knowhow-card-body h3 {
  color: var(--primary-green);
}

.knowhow-card-body p {
  font-size: 0.9375rem;
  color: var(--text-gray);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.knowhow-card-readmore {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary-green);
  transition: gap 0.2s ease;
}

.knowhow-card:hover .knowhow-card-readmore {
  gap: 0.75rem;
}

/* Load More Button */
.knowhow-load-more {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

.knowhow-load-more .btn {
  padding: 0.875rem 2rem;
}

/* Know How CTA Section */
.knowhow-cta-section {
  background: var(--primary-green);
  padding: 5rem 0;
}

.knowhow-cta-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.knowhow-cta-content h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 600;
  color: var(--white);
  margin-bottom: 1rem;
}

.knowhow-cta-content p {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.knowhow-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.knowhow-cta-buttons .btn-primary {
  background: var(--white);
  color: var(--primary-green);
  border: 2px solid var(--white);
}

.knowhow-cta-buttons .btn-primary:hover {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.knowhow-cta-buttons .btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: var(--white);
  background: transparent;
}

.knowhow-cta-buttons .btn-outline-light:hover {
  background: var(--white);
  color: var(--primary-green);
  border-color: var(--white);
}

/* Know How Page Responsive */
@media (max-width: 991px) {
  .knowhow-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .knowhow-filter-wrapper {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
  }

  .knowhow-filter-btn {
    white-space: nowrap;
    flex-shrink: 0;
  }
}

@media (max-width: 767px) {
  .knowhow-hero {
    padding: 2rem 0 3rem;
  }

  .knowhow-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .knowhow-filter-section {
    top: 60px;
  }

  .knowhow-cta-buttons {
    flex-direction: column;
  }

  .knowhow-cta-buttons .btn {
    width: 100%;
  }
}

/* ============================================
   KNOW HOW POST PAGE STYLES (knowhowpost- prefix)
   ============================================ */

/* Know How Post Hero Image */
.knowhowpost-hero {
  margin-top: 72px;
}

.knowhowpost-hero-image {
  width: 100%;
  max-height: 60vh;
  min-height: 400px;
  overflow: hidden;
}

.knowhowpost-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Know How Post Header */
.knowhowpost-header {
  padding: 3rem 0 2rem;
  background: var(--white);
  border-bottom: 1px solid var(--border-color);
}

.knowhowpost-header-content {
  max-width: 800px;
}

.knowhowpost-breadcrumb {
  margin-bottom: 1.5rem;
}

.knowhowpost-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.knowhowpost-breadcrumb ol li {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.knowhowpost-breadcrumb ol li::after {
  content: '/';
  margin-left: 0.5rem;
  color: var(--border-color);
}

.knowhowpost-breadcrumb ol li:last-child::after {
  display: none;
}

.knowhowpost-breadcrumb ol li a {
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.knowhowpost-breadcrumb ol li a:hover {
  color: var(--primary-green);
}

.knowhowpost-breadcrumb ol li[aria-current="page"] {
  color: var(--text-dark);
}

.knowhowpost-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}

.knowhowpost-category {
  background: var(--primary-green);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.375rem 0.75rem;
}

.knowhowpost-date,
.knowhowpost-readtime {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.knowhowpost-date i,
.knowhowpost-readtime i {
  color: var(--primary-green);
  font-size: 0.875rem;
}

.knowhowpost-header-content h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.knowhowpost-subtitle {
  font-size: 1.125rem;
  color: var(--text-gray);
  line-height: 1.6;
  margin: 0;
}

/* Know How Post Content */
.knowhowpost-content {
  padding: 4rem 0;
}

.knowhowpost-article h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
}

.knowhowpost-article h2:first-child {
  margin-top: 0;
}

.knowhowpost-article h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.knowhowpost-article p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-gray);
  margin-bottom: 1.25rem;
}

.knowhowpost-list {
  margin: 1.5rem 0;
  padding-left: 1.25rem;
}

.knowhowpost-list li {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-gray);
  margin-bottom: 0.75rem;
}

.knowhowpost-list li strong {
  color: var(--text-dark);
}

/* Highlight Box */
.knowhowpost-highlight-box {
  background: var(--light-bg);
  border-left: 4px solid var(--primary-green);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
}

.knowhowpost-highlight-box h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-green);
  margin-bottom: 0.75rem;
}

.knowhowpost-highlight-box p {
  margin-bottom: 0;
  font-size: 0.9375rem;
}

/* Image Blocks */
.knowhowpost-image-block {
  margin: 2.5rem 0;
}

.knowhowpost-image-block img {
  width: 100%;
  height: auto;
  border: 1px solid var(--border-color);
}

.knowhowpost-image-caption {
  display: block;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  font-style: italic;
}

/* Specs Table */
.knowhowpost-specs-table {
  margin: 2rem 0;
  overflow-x: auto;
}

.knowhowpost-specs-table table {
  width: 100%;
  border-collapse: collapse;
}

.knowhowpost-specs-table thead {
  background: var(--primary-green);
}

.knowhowpost-specs-table th {
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--white);
  text-align: left;
}

.knowhowpost-specs-table td {
  padding: 1rem 1.25rem;
  font-size: 0.9375rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-gray);
}

.knowhowpost-specs-table td:first-child {
  font-weight: 500;
  color: var(--text-dark);
}

/* Blockquote */
.knowhowpost-quote {
  margin: 2.5rem 0;
  padding: 2rem;
  background: var(--light-bg);
  border-left: 4px solid var(--primary-green);
}

.knowhowpost-quote p {
  font-size: 1.125rem;
  font-style: italic;
  color: var(--text-dark);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.knowhowpost-quote cite {
  font-size: 0.9375rem;
  font-style: normal;
  color: var(--text-muted);
}

/* Know How Post FAQ */
.knowhowpost-faq {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border-color);
}

.knowhowpost-faq h2 {
  margin-top: 0;
}

/* Sidebar */
.knowhowpost-sidebar {
  position: sticky;
  top: 100px;
}

.knowhowpost-sidebar-cta {
  background: var(--primary-green);
  padding: 2rem;
  margin-bottom: 2rem;
}

.knowhowpost-sidebar-cta h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 1rem;
}

.knowhowpost-sidebar-cta p {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.knowhowpost-sidebar-cta .btn-primary {
  background: var(--white);
  color: var(--primary-green);
  border: none;
}

.knowhowpost-sidebar-cta .btn-primary:hover {
  background: rgba(255, 255, 255, 0.9);
}

.knowhowpost-sidebar-cta .btn-outline-primary {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
}

.knowhowpost-sidebar-cta .btn-outline-primary:hover {
  background: var(--white);
  color: var(--primary-green);
  border-color: var(--white);
}

.knowhowpost-sidebar-section {
  background: var(--light-bg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-color);
}

.knowhowpost-sidebar-section h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.knowhowpost-sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--white);
  border: 1px solid var(--border-color);
  color: var(--text-dark);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: all 0.2s ease;
  margin-bottom: 0.5rem;
}

.knowhowpost-sidebar-link:last-child {
  margin-bottom: 0;
}

.knowhowpost-sidebar-link:hover {
  border-color: var(--primary-green);
  color: var(--primary-green);
}

.knowhowpost-sidebar-link i {
  color: var(--primary-green);
}

/* Related Cards */
.knowhowpost-related-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.knowhowpost-related-card {
  display: flex;
  gap: 1rem;
  padding: 0.75rem;
  background: var(--white);
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
}

.knowhowpost-related-card:hover {
  border-color: var(--primary-green);
}

.knowhowpost-related-card img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  flex-shrink: 0;
}

.knowhowpost-related-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.knowhowpost-related-category {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary-green);
  margin-bottom: 0.25rem;
}

.knowhowpost-related-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.4;
}

.knowhowpost-related-card:hover .knowhowpost-related-title {
  color: var(--primary-green);
}

/* Share Links */
.knowhowpost-share-links {
  display: flex;
  gap: 0.75rem;
}

.knowhowpost-share-links a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 1px solid var(--border-color);
  color: var(--text-gray);
  transition: all 0.2s ease;
}

.knowhowpost-share-links a:hover {
  background: var(--primary-green);
  border-color: var(--primary-green);
  color: var(--white);
}

/* Back to Know How */
.knowhowpost-back-section {
  padding: 2rem 0;
  background: var(--light-bg);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.knowhowpost-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-dark);
  transition: all 0.2s ease;
}

.knowhowpost-back-link:hover {
  color: var(--primary-green);
  gap: 0.75rem;
}

.knowhowpost-back-link i {
  transition: transform 0.2s ease;
}

.knowhowpost-back-link:hover i {
  transform: translateX(-3px);
}

/* Know How Post Responsive */
@media (max-width: 991px) {
  .knowhowpost-specs-table th,
  .knowhowpost-specs-table td {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
  }
}

@media (max-width: 767px) {
  .knowhowpost-hero-image {
    max-height: 50vh;
    min-height: 280px;
  }

  .knowhowpost-header {
    padding: 2rem 0 1.5rem;
  }

  .knowhowpost-meta {
    gap: 1rem;
  }

  .knowhowpost-content {
    padding: 2.5rem 0;
  }

  .knowhowpost-highlight-box {
    padding: 1.25rem 1.5rem;
  }

  .knowhowpost-quote {
    padding: 1.5rem;
  }

  .knowhowpost-sidebar {
    position: static;
    margin-top: 3rem;
  }
}

/* ============================================
   KNOW HOW ARTICLE PAGE STYLES (knowhow- prefix)
   Used by admin template knowhow-page.php
   Mirrors knowhowpost-* and refpost-* patterns
   ============================================ */

/* Know How Article Hero (background-image variant) */
.knowhow-hero[style*="background-image"] {
  margin-top: 72px;
  min-height: 400px;
  max-height: 60vh;
  background-size: cover;
  background-position: center;
  position: relative;
  display: block;
  text-align: left;
  padding: 0;
}

.knowhow-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.3) 100%);
}

/* Know How Article Header */
.knowhow-header {
  padding: 3rem 0 2rem;
  background: var(--white);
  border-bottom: 1px solid var(--border-color);
}

.knowhow-header-content {
  max-width: 800px;
}

.knowhow-header-content h1 {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

/* Know How Article Meta */
.knowhow-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}

.knowhow-category {
  background: var(--primary-green);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.375rem 0.75rem;
}

.knowhow-date,
.knowhow-reading-time {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-dark);
  font-weight: 500;
}

.knowhow-date i,
.knowhow-reading-time i {
  color: var(--primary-green);
}

/* Know How Article Content */
.knowhow-content {
  padding: 3rem 0;
}

.knowhow-article p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-gray);
  margin-bottom: 1.25rem;
}

/* Know How Tags */
.knowhow-tags {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.knowhow-tags .badge {
  margin: 0.25rem;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Know How Article FAQ */
.knowhow-faq {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border-color);
}

.knowhow-faq h2 {
  margin-top: 0;
}

/* Know How Article Sidebar */
.knowhow-sidebar {
  position: sticky;
  top: 140px;
}

.knowhow-sidebar-image {
  border-radius: 0;
  overflow: hidden;
}

.knowhow-sidebar-image img {
  width: 100%;
  height: auto;
}

.knowhow-sidebar-cta {
  background: var(--light-bg);
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid var(--border-color);
}

.knowhow-sidebar-cta h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.knowhow-sidebar-cta p {
  font-size: 0.9375rem;
  color: var(--text-gray);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.knowhow-sidebar-cta .btn-primary {
  background: var(--primary-green);
  color: var(--white);
  border: none;
}

.knowhow-sidebar-cta .btn-primary:hover {
  background: var(--dark-green);
}

/* Know How Sidebar Section */
.knowhow-sidebar-section {
  background: var(--light-bg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-color);
}

.knowhow-sidebar-section h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

/* Know How Related Cards */
.knowhow-related-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.knowhow-related-card {
  display: flex;
  gap: 1rem;
  padding: 0.75rem;
  background: var(--white);
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
  text-decoration: none;
}

.knowhow-related-card:hover {
  border-color: var(--primary-green);
}

.knowhow-related-card img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  flex-shrink: 0;
}

.knowhow-related-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.knowhow-related-category {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.knowhow-related-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.4;
}

.knowhow-related-card:hover .knowhow-related-title {
  color: var(--primary-green);
}

/* Know How Back Section */
.knowhow-back-section {
  padding: 2rem 0;
  background: var(--light-bg);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.knowhow-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-dark);
  transition: all 0.2s ease;
  text-decoration: none;
}

.knowhow-back-link:hover {
  color: var(--primary-green);
  gap: 0.75rem;
}

.knowhow-back-link i {
  transition: transform 0.2s ease;
}

.knowhow-back-link:hover i {
  transform: translateX(-3px);
}

/* Know How Article Responsive */
@media (max-width: 991px) {
  .knowhow-sidebar {
    position: static;
    margin-top: 3rem;
  }
}

@media (max-width: 767px) {
  .knowhow-hero[style*="background-image"] {
    min-height: 250px;
  }

  .knowhow-header {
    padding: 2rem 0 1.5rem;
  }

  .knowhow-header-content h1 {
    font-size: 1.75rem;
  }

  .knowhow-meta {
    gap: 1rem;
  }

  .knowhow-content {
    padding: 2rem 0;
  }
}

/* ============================================
   STATIC GENERATOR BLOCK STYLES
   Used by StaticGenerator::renderBlock()
   for dynamically generated content blocks
   ============================================ */

/* Content Lists (bullet & numbered) */
.content-list {
  margin: 1.25rem 0;
  padding-left: 1.5rem;
}

.content-list li {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-gray);
  margin-bottom: 0.5rem;
}

.content-list li:last-child {
  margin-bottom: 0;
}

/* Content Images */
.content-image {
  margin: 2rem 0;
}

.content-image img {
  width: 100%;
  height: auto;
  border-radius: 0;
}

.content-image figcaption {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  font-style: italic;
  text-align: center;
}

/* Video Container */
.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  margin: 2rem 0;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Content Tables */
.content-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9375rem;
}

.content-table thead {
  background: var(--primary-green);
  color: var(--white);
}

.content-table th {
  padding: 0.75rem 1rem;
  font-weight: 600;
  text-align: left;
}

.content-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-gray);
  line-height: 1.6;
}

.content-table tbody tr:hover {
  background: var(--light-bg);
}

/* Checklists */
.checklist {
  background: var(--light-bg);
  padding: 1.5rem 2rem;
  margin: 1.5rem 0;
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--primary-green);
}

.checklist h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

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

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-gray);
  margin-bottom: 0.75rem;
}

.checklist li:last-child {
  margin-bottom: 0;
}

.checklist li i {
  color: var(--primary-green);
  margin-top: 0.2rem;
  flex-shrink: 0;
}

/* Highlight Boxes */
.highlight-box {
  background: linear-gradient(135deg, #f0f9f0 0%, #e8f5e8 100%);
  padding: 1.5rem 2rem;
  margin: 1.5rem 0;
  border: 1px solid rgba(26, 93, 26, 0.15);
  border-left: 4px solid var(--primary-green);
}

.highlight-box h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.highlight-box h4 i {
  color: var(--primary-green);
  margin-right: 0.5rem;
}

.highlight-box p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-gray);
  margin-bottom: 0;
}

/* Content Quotes */
.content-quote {
  border-left: 4px solid var(--primary-green);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  background: var(--light-bg);
  font-style: italic;
}

.content-quote p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.content-quote cite {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-style: normal;
  font-weight: 500;
}

/* ========================================
   PulseWave Modal Styles
   ======================================== */

/* PulseWave Hero Section */
.pulsewave-hero-section {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
}

.pulsewave-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pulsewave-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.5) 100%);
}

.pulsewave-hero-text {
  position: absolute;
  top: 2rem;
  left: 2rem;
  z-index: 2;
}

.pulsewave-hero-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.9);
  margin-bottom: 0.5rem;
}

.pulsewave-hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--white);
  margin: 0;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* PulseWave Sections */
.pulsewave-section {
  padding: 2rem;
}

.pulsewave-section-centered {
  text-align: center;
}

/* Section Labels */
.pulsewave-section-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-green);
  margin-bottom: 1rem;
}

/* Introduction Lead Text */
.pulsewave-intro-lead {
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.7;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.pulsewave-intro-lead:last-child {
  margin-bottom: 0;
}

/* Body Text */
.pulsewave-body-text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-gray);
  margin-bottom: 1rem;
}

.pulsewave-body-text:last-child {
  margin-bottom: 0;
}

.pulsewave-body-text-centered {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-gray);
  margin-bottom: 1rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Green Headings */
.pulsewave-green-heading {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-green);
  margin-bottom: 1rem;
}

.pulsewave-green-heading-centered {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-green);
  margin-bottom: 1.5rem;
}

/* PulseWave Logo Animation GIF */
.pulsewave-logo-gif {
  width: 150px;
  height: auto;
  margin: 0 auto 1.5rem;
  display: block;
}

/* Advantage Items */
.pulsewave-advantage-item {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-gray);
  margin-bottom: 1.5rem;
  text-align: center;
}

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

.pulsewave-advantage-title {
  font-weight: 700;
  color: var(--primary-green);
}

/* Three Images Grid */
.pulsewave-three-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.pulsewave-image-slide {
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: 12px;
}

.pulsewave-image-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.pulsewave-image-slide:hover img {
  transform: scale(1.05);
}

/* Full Width Images & Video */
.pulsewave-fullwidth-image {
  width: 100%;
  height: auto;
  border-radius: 0;
}

.pulsewave-fullwidth-video {
  width: 100%;
  height: auto;
  border-radius: 0;
  display: block;
}

/* CTA Section */
.pulsewave-cta-section {
  background: var(--light-bg);
  border-radius: 0 0 20px 20px;
  margin-top: 2rem;
}

.pulsewave-contact-link {
  display: inline-block;
  margin-top: 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-dark);
  text-decoration: underline;
  transition: var(--transition);
}

.pulsewave-contact-link:hover {
  color: var(--primary-green);
}

/* Responsive for PulseWave Modal */
@media (max-width: 991px) {
  .pulsewave-three-images {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }
}

@media (max-width: 767px) {
  .pulsewave-hero-section {
    height: 250px;
  }

  .pulsewave-hero-title {
    font-size: 1.5rem;
  }

  .pulsewave-hero-text {
    left: 1rem;
    top: 1rem;
  }

  .pulsewave-section {
    padding: 1.5rem 1rem;
  }

  .pulsewave-green-heading,
  .pulsewave-green-heading-centered {
    font-size: 1.25rem;
  }

  .pulsewave-three-images {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .pulsewave-advantage-item {
    font-size: 0.9375rem;
  }
}

/* ========================================
   Deep-Cycle Modal Styles
   ======================================== */

/* Deep-Cycle Hero Section */
.deepcycle-hero-section {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
}

.deepcycle-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.deepcycle-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.5) 100%);
}

.deepcycle-hero-text {
  position: absolute;
  top: 2rem;
  left: 2rem;
  z-index: 2;
}

.deepcycle-hero-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.9);
  margin-bottom: 0.5rem;
}

.deepcycle-hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--white);
  margin: 0;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Deep-Cycle Sections */
.deepcycle-section {
  padding: 2rem;
}

.deepcycle-section-centered {
  text-align: center;
}

/* Section Labels */
.deepcycle-section-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-green);
  margin-bottom: 1rem;
}

/* Introduction Lead Text */
.deepcycle-intro-lead {
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.7;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.deepcycle-intro-lead:last-child {
  margin-bottom: 0;
}

/* Body Text */
.deepcycle-body-text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-gray);
  margin-bottom: 1rem;
}

.deepcycle-body-text:last-child {
  margin-bottom: 0;
}

.deepcycle-body-text-centered {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-gray);
  margin-bottom: 1rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Green Headings */
.deepcycle-green-heading {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-green);
  margin-bottom: 1rem;
}

.deepcycle-green-heading-centered {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-green);
  margin-bottom: 1.5rem;
}

/* Deep-Cycle Logo Animation GIF */
.deepcycle-logo-gif {
  width: 150px;
  height: auto;
  margin: 0 auto 1.5rem;
  display: block;
}

/* Advantage Items */
.deepcycle-advantage-item {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-gray);
  margin-bottom: 1.5rem;
  text-align: center;
}

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

.deepcycle-advantage-title {
  font-weight: 700;
  color: var(--primary-green);
}

/* Footnote */
.deepcycle-footnote {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-gray);
  text-align: center;
  margin-top: -1rem;
}

/* Full Width Images & Video */
.deepcycle-fullwidth-image {
  width: 100%;
  height: auto;
  border-radius: 0;
}

.deepcycle-fullwidth-video {
  width: 100%;
  height: auto;
  border-radius: 0;
  display: block;
}

/* Image with Overlay Text */
.deepcycle-image-overlay-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.deepcycle-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 100%);
}

.deepcycle-image-overlay-text {
  position: absolute;
  top: 1.5rem;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 2;
}

.deepcycle-image-overlay-text span {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Contact Link */
.deepcycle-contact-link {
  display: inline-block;
  margin-top: 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-dark);
  text-decoration: underline;
  transition: var(--transition);
}

.deepcycle-contact-link:hover {
  color: var(--primary-green);
}

/* Responsive for Deep-Cycle Modal */
@media (max-width: 767px) {
  .deepcycle-hero-section {
    height: 250px;
  }

  .deepcycle-hero-title {
    font-size: 1.5rem;
  }

  .deepcycle-hero-text {
    left: 1rem;
    top: 1rem;
  }

  .deepcycle-section {
    padding: 1.5rem 1rem;
  }

  .deepcycle-green-heading,
  .deepcycle-green-heading-centered {
    font-size: 1.25rem;
  }

  .deepcycle-advantage-item {
    font-size: 0.9375rem;
  }

  .deepcycle-image-overlay-text span {
    font-size: 1rem;
  }
}

/* ============================================
   ROOF & FLUES POPUP STYLES
   ============================================ */

/* Hero Section */
.roofflues-hero-section {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
}

.roofflues-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.roofflues-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0.3) 50%,
    rgba(0, 0, 0, 0.1) 100%
  );
}

.roofflues-hero-text {
  position: absolute;
  left: 2rem;
  top: 2rem;
  z-index: 2;
}

.roofflues-hero-label {
  display: block;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.roofflues-hero-title {
  color: white;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
  max-width: 500px;
}

/* Section Styles */
.roofflues-section {
  padding: 2rem;
}

.roofflues-section-centered {
  text-align: center;
}

.roofflues-section-label {
  display: block;
  color: var(--primary-green);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.roofflues-section-label-centered {
  text-align: center;
}

.roofflues-main-heading {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}

.roofflues-option-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

/* Text Styles */
.roofflues-intro-lead {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.roofflues-body-text {
  font-size: 1rem;
  color: var(--text-gray);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.roofflues-body-text-bold {
  font-weight: 600;
  color: var(--text-dark);
}

.roofflues-body-text-centered {
  font-size: 1rem;
  color: var(--text-gray);
  line-height: 1.7;
  margin-bottom: 1rem;
  text-align: center;
}

/* Split Section - Image Right */
.roofflues-section-split {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.roofflues-split-text {
  flex: 1;
}

.roofflues-split-image {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.roofflues-split-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.roofflues-split-image .roofflues-section-label {
  margin-bottom: 1rem;
}

/* List Styles */
.roofflues-list {
  list-style: none;
  padding: 0;
  margin: 1rem auto 1.5rem;
  max-width: 800px;
  text-align: left;
}

.roofflues-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  font-size: 1rem;
  color: var(--text-gray);
  line-height: 1.7;
}

.roofflues-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary-green);
  font-weight: bold;
}

/* Image Aligned Right */
.roofflues-image-right {
  display: flex;
  justify-content: flex-end;
}

.roofflues-image-aligned-right {
  width: 60%;
  height: auto;
  border-radius: 12px;
}

/* Full Width Images and Videos */
.roofflues-fullwidth-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

.roofflues-fullwidth-video {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

/* Contact Link */
.roofflues-contact-link {
  color: var(--text-dark);
  text-decoration: underline;
  transition: var(--transition);
}

.roofflues-contact-link:hover {
  color: var(--primary-green);
}

/* Responsive for Roof & Flues Modal */
@media (max-width: 767px) {
  .roofflues-hero-section {
    height: 250px;
  }

  .roofflues-hero-title {
    font-size: 1.5rem;
  }

  .roofflues-hero-text {
    left: 1rem;
    top: 1rem;
  }

  .roofflues-section {
    padding: 1.5rem 1rem;
  }

  .roofflues-main-heading {
    font-size: 1.25rem;
  }

  .roofflues-option-title {
    font-size: 1.25rem;
  }

  .roofflues-section-split {
    flex-direction: column;
  }

  .roofflues-list li {
    font-size: 0.9375rem;
  }
}

/* ============================================
   FINES MATERIAL POPUP STYLES
   ============================================ */

/* Hero Section */
.fines-hero-section {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
}

.fines-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fines-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0.3) 50%,
    rgba(0, 0, 0, 0.1) 100%
  );
}

.fines-hero-text {
  position: absolute;
  left: 2rem;
  top: 2rem;
  z-index: 2;
}

.fines-hero-label {
  display: block;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.fines-hero-title {
  color: white;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
  max-width: 500px;
}

/* Section Styles */
.fines-section {
  padding: 2rem;
}

.fines-section-centered {
  text-align: center;
}

.fines-section-label {
  display: block;
  color: var(--primary-green);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

/* Text Styles */
.fines-intro-lead {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.fines-body-text {
  font-size: 1rem;
  color: var(--text-gray);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.fines-body-text-centered {
  font-size: 1rem;
  color: var(--text-gray);
  line-height: 1.7;
  margin-bottom: 1rem;
  text-align: center;
}

.fines-green-heading-centered {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-green);
  text-align: center;
  margin-bottom: 1.5rem;
}

/* Animation GIF */
.fines-animation-gif {
  display: block;
  max-width: 300px;
  height: auto;
  margin: 0 auto 1.5rem auto;
}

/* Numbered List */
.fines-numbered-list {
  max-width: 800px;
  margin: 1rem auto 1.5rem;
  text-align: left;
  padding-left: 1.5rem;
}

.fines-numbered-list li {
  margin-bottom: 0.75rem;
  font-size: 1rem;
  color: var(--text-gray);
  line-height: 1.7;
}

/* Full Width Images and Videos */
.fines-fullwidth-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

.fines-fullwidth-video {
  width: 100%;
  max-width: 900px;
  height: auto;
  border-radius: 12px;
  display: block;
  margin: 0 auto;
}

/* Portrait Gallery - 3 Images */
.fines-portrait-gallery {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.fines-portrait-image {
  width: 30%;
  max-width: 280px;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}

/* Contact Link */
.fines-contact-link {
  color: var(--text-dark);
  text-decoration: underline;
  transition: var(--transition);
}

.fines-contact-link:hover {
  color: var(--primary-green);
}

/* Responsive for Fines Material Modal */
@media (max-width: 767px) {
  .fines-hero-section {
    height: 250px;
  }

  .fines-hero-title {
    font-size: 1.5rem;
  }

  .fines-hero-text {
    left: 1rem;
    top: 1rem;
  }

  .fines-section {
    padding: 1.5rem 1rem;
  }

  .fines-green-heading-centered {
    font-size: 1.25rem;
  }

  .fines-portrait-gallery {
    flex-direction: column;
    align-items: center;
  }

  .fines-portrait-image {
    width: 80%;
    max-width: 100%;
  }
}

/* ============================================
   SHAPED AROUND YOU POPUP STYLES
   ============================================ */

/* Hero Section */
.shaped-hero-section {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
}

.shaped-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shaped-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0.3) 50%,
    rgba(0, 0, 0, 0.1) 100%
  );
}

.shaped-hero-text {
  position: absolute;
  left: 2rem;
  top: 2rem;
  z-index: 2;
}

.shaped-hero-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.shaped-hero-title {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.2;
}

/* Common Section Styling */
.shaped-section {
  padding: 2rem;
}

/* Introduction Section */
.shaped-intro-section {
  background: #fff;
}

.shaped-intro-lead {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  text-align: left;
}

.shaped-intro-text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-dark);
  margin-bottom: 1rem;
  text-align: left;
}

.shaped-intro-text:last-child {
  margin-bottom: 0;
}

/* Green Headings - Small Labels */
.shaped-section-label {
  display: block;
  color: var(--primary-green);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.shaped-section-label-centered {
  display: block;
  color: var(--primary-green);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  text-align: center;
}

/* Green Headings - Main Headings */
.shaped-green-heading {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--stronga-green);
  margin-bottom: 1rem;
  text-align: left;
}

/* Grey Text - Body */
.shaped-body-text {
  font-size: 1rem;
  color: var(--text-gray, #666);
  line-height: 1.7;
  margin-bottom: 1rem;
  text-align: left;
}

.shaped-body-text-centered {
  font-size: 1rem;
  color: var(--text-gray, #666);
  line-height: 1.7;
  margin-bottom: 1rem;
  text-align: center;
}

/* Legacy classes for compatibility */
.shaped-grey-text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-gray, #666);
  font-weight: 400;
  margin-bottom: 1rem;
  text-align: left;
}

.shaped-grey-text-centered {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-gray, #666);
  font-weight: 400;
  margin-bottom: 1rem;
  text-align: center;
}

/* Modular Architecture Section */
.shaped-modular-section {
  background: #f9f9f9;
}

/* Carousel Styles */
.shaped-carousel-container {
  position: relative;
  margin-top: 2rem;
  width: 100%;
  overflow: visible;
}

.shaped-carousel-wrapper {
  overflow: hidden;
  width: 100%;
  position: relative;
}

.shaped-carousel-track {
  display: flex;
  transition: transform 0.5s ease;
  gap: 16px;
}

.shaped-carousel-slide {
  flex: 0 0 calc(33.333% - 11px);
  min-width: 0;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.shaped-slide-text {
  padding: 1rem;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--text-dark);
  text-align: left;
  min-height: 60px;
  background: #fff;
}

.shaped-carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
}

/* Carousel Navigation */
.shaped-carousel-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.shaped-carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #1a5d1a;
  color: #fff;
  border: 2px solid #1a5d1a;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.shaped-carousel-btn:hover {
  background: #145214;
  border-color: #145214;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.shaped-carousel-btn:disabled {
  background: #ccc;
  border-color: #ccc;
  color: #888;
  cursor: not-allowed;
  box-shadow: none;
}

.shaped-carousel-btn i {
  font-size: 1rem;
}

/* Scaling Section */
.shaped-scaling-section {
  background: #fff;
}

.shaped-image-centered {
  text-align: center;
  margin-top: 1.5rem;
}

.shaped-scaling-image {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 0 auto;
}

/* Performance Section */
.shaped-performance-section {
  background: #f9f9f9;
}

.shaped-factory-image-single {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 0 auto;
}

/* Table Section */
.shaped-table-section {
  background: #fff;
}

.shaped-table-wrapper {
  overflow-x: auto;
  margin-top: 1.5rem;
}

.shaped-features-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.shaped-features-table th,
.shaped-features-table td {
  padding: 1rem;
  border: 1px solid #e0e0e0;
  text-align: left;
  vertical-align: top;
}

.shaped-features-table th {
  background: var(--stronga-green);
  color: #fff;
  font-weight: 600;
}

.shaped-features-table th:first-child {
  width: 20%;
}

.shaped-features-table tbody tr:nth-child(even) {
  background: #f9f9f9;
}

.shaped-features-table td:first-child {
  font-weight: 500;
  color: var(--text-dark);
}

.shaped-features-table td:last-child {
  color: #666;
}

/* Summary Section */
.shaped-summary-section {
  background: #f9f9f9;
}

.shaped-contact-link {
  text-align: center;
  margin-top: 2rem;
}

.shaped-contact-text {
  color: var(--text-dark);
  font-weight: 500;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.shaped-contact-text:hover {
  color: var(--stronga-green);
}

/* Responsive Styles */
@media (max-width: 768px) {
  .shaped-hero-section {
    height: 250px;
  }

  .shaped-hero-title {
    font-size: 1.5rem;
  }

  .shaped-hero-text {
    left: 1rem;
    top: 1rem;
  }

  .shaped-section {
    padding: 1.5rem 1rem;
  }

  .shaped-carousel-slide {
    flex: 0 0 calc(100% - 16px);
    min-width: 0;
  }

  .shaped-scaling-image,
  .shaped-factory-image-single {
    max-width: 100%;
  }

  .shaped-features-table th:first-child {
    width: 30%;
  }

  .shaped-features-table th,
  .shaped-features-table td {
    padding: 0.75rem;
    font-size: 0.85rem;
  }

  .shaped-intro-lead {
    font-size: 1rem;
  }
}

/* Tablet breakpoint for carousel */
@media (max-width: 900px) and (min-width: 577px) {
  .shaped-carousel-slide {
    flex: 0 0 calc(50% - 8px);
  }
}

/* ============================================
   DRY DISCHARGE POPUP STYLES
   ============================================ */

/* Hero Section */
.discharge-hero-section {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
}

.discharge-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.discharge-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0.3) 50%,
    rgba(0, 0, 0, 0.1) 100%
  );
}

.discharge-hero-text {
  position: absolute;
  left: 2rem;
  top: 2rem;
  z-index: 2;
}

.discharge-hero-label {
  display: block;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.discharge-hero-title {
  color: white;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
  max-width: 500px;
}

/* Section Styles */
.discharge-section {
  padding: 2rem;
}

.discharge-intro-section {
  padding-top: 1rem;
}

.discharge-section-centered {
  text-align: center;
}

.discharge-section-label {
  display: block;
  color: var(--primary-green);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

/* Text Styles */
.discharge-intro-lead {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.discharge-body-text {
  font-size: 1rem;
  color: var(--text-gray);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.discharge-body-text-centered {
  font-size: 1rem;
  color: var(--text-gray);
  line-height: 1.7;
  margin-bottom: 1rem;
  text-align: center;
}

.discharge-body-italic {
  font-style: italic;
}

.discharge-green-heading-centered {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-green);
  text-align: center;
  margin-bottom: 1.5rem;
}

/* Animation GIF */
.discharge-animation-gif {
  display: block;
  max-width: 300px;
  height: auto;
  margin: 0 auto 1.5rem auto;
}

/* Discharge Solution Items */
.discharge-solution-item {
  font-size: 1rem;
  color: var(--text-gray);
  line-height: 1.7;
  margin-bottom: 1rem;
  text-align: center;
}

.discharge-solution-title {
  color: var(--primary-green);
  font-weight: 700;
}

/* Full Width Images and Videos */
.discharge-fullwidth-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

.discharge-fullwidth-video {
  width: 100%;
  max-width: 900px;
  height: auto;
  border-radius: 12px;
  display: block;
  margin: 0 auto;
}

/* Portrait Gallery - 3 Images */
.discharge-portrait-gallery {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.discharge-portrait-image {
  width: 30%;
  max-width: 280px;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}

/* Contact Link */
.discharge-contact-link {
  color: var(--text-dark);
  text-decoration: underline;
  transition: var(--transition);
}

.discharge-contact-link:hover {
  color: var(--primary-green);
}

/* Responsive for Dry Discharge Modal */
@media (max-width: 767px) {
  .discharge-hero-section {
    height: 250px;
  }

  .discharge-hero-title {
    font-size: 1.5rem;
  }

  .discharge-hero-text {
    left: 1rem;
    top: 1rem;
  }

  .discharge-section {
    padding: 1.5rem 1rem;
  }

  .discharge-green-heading-centered {
    font-size: 1.25rem;
  }

  .discharge-portrait-gallery {
    flex-direction: column;
    align-items: center;
  }

  .discharge-portrait-image {
    width: 80%;
    max-width: 100%;
  }

  .discharge-solution-item {
    text-align: left;
  }
}

/* ============================================
   DRYER MATERIALS PAGE STYLES
   ============================================ */

/* Video Hero Section */
.materials-video-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

.materials-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

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

.materials-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(27,122,27,0.15) 0%,
    rgba(40,40,40,0.2) 50%,
    rgba(20,20,20,0.25) 100%
  );
  z-index: 1;
}

.materials-hero-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.45) 0%,
    rgba(0, 0, 0, 0.35) 50%,
    rgba(0, 0, 0, 0.5) 100%
  );
  z-index: 1;
}

.materials-hero-content-centered {
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--white);
  z-index: 10;
  width: 90%;
  max-width: 1200px;
  padding: 3rem 2rem;
}

.materials-hero-content-centered h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-6);
  line-height: var(--leading-tight);
  letter-spacing: -0.02em;
  color: var(--white);
}

.materials-hero-content-centered p {
  font-size: var(--text-body-lg);
  font-weight: var(--weight-normal);
  margin-bottom: var(--space-8);
  color: rgba(255, 255, 255, 0.9);
  line-height: var(--leading-relaxed);
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

/* Solutions Designed Section */
.materials-solutions-section {
  padding: 5rem 0;
  background: var(--white);
}

.materials-solutions-content {
  max-width: 950px;
  margin: 0 auto;
  text-align: center;
}

.materials-solutions-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-green);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
}

.materials-solutions-bold {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.materials-solutions-gray {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-gray);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.materials-solutions-normal {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.7;
  margin-bottom: 0;
}

/* Materials Grid Section */
.materials-grid-section {
  padding: 5rem 0;
}

.materials-grid-section .container {
  padding-left: 24px;
  padding-right: 24px;
}

.materials-category-heading {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.materials-category-heading i {
  color: var(--primary-green);
  font-size: 0.9em;
}

/* Materials Carousel */
.materials-carousel-wrapper {
  position: relative;
  overflow: hidden;
  padding: 0 24px;
  margin-top: 2rem;
}

.materials-carousel {
  display: flex;
  gap: 16px;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  padding: 1rem 0;
}

.materials-card {
  position: relative;
  flex: 0 0 calc(25% - 12px);
  min-width: 200px;
  aspect-ratio: 2/3;
  overflow: hidden;
  cursor: pointer;
  background: var(--light-bg);
  border-radius: 20px;
}

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

.materials-card:hover img {
  transform: scale(1.05);
}

.materials-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, transparent 40%, transparent 100%);
  pointer-events: none;
  border-radius: 20px;
}

.materials-card-content {
  position: absolute;
  top: 1.25rem;
  left: 1.5rem;
  right: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.materials-card-title {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
  line-height: 1.3;
}

/* Expand Button */
.materials-expand-btn {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  border: none;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.materials-expand-btn:hover {
  background: var(--primary-green);
  color: var(--white);
}

/* Materials Carousel Navigation */
.materials-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.materials-nav-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--light-bg);
  border: 1px solid var(--border-color);
  color: var(--text-dark);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.materials-nav-btn:hover:not(:disabled) {
  background: var(--primary-green);
  color: var(--white);
  border-color: var(--primary-green);
}

.materials-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Materials CTA Section */
.materials-cta-section {
  padding: 5rem 0;
  background: var(--light-bg);
}

.materials-cta-content {
  max-width: 950px;
  margin: 0 auto;
  text-align: center;
}

.materials-cta-text {
  font-size: 1.0625rem;
  font-weight: 400;
  color: var(--text-gray);
  line-height: 1.7;
  margin-bottom: 2rem;
}

/* Materials Page Responsive */
@media (max-width: 1200px) {
  .materials-card {
    flex: 0 0 calc(33.333% - 11px);
  }
}

@media (max-width: 992px) {
  .materials-video-hero {
    height: 80vh;
    min-height: 500px;
  }

  .materials-hero-content-centered {
    padding: 1.5rem;
  }

  .materials-card {
    flex: 0 0 calc(50% - 8px);
  }

  .materials-solutions-content {
    padding: 0 1rem;
  }

  .materials-grid-section {
    padding: 4rem 0;
  }
}

@media (max-width: 768px) {
  .materials-video-hero {
    height: 80vh;
    min-height: 500px;
  }

  .materials-hero-content-centered {
    top: 55%;
    padding: 1rem;
  }

  .materials-hero-content-centered h1 {
    font-size: 1.75rem;
  }

  .materials-hero-content-centered p {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .materials-carousel-wrapper {
    padding: 0 16px;
  }

  .materials-grid-section .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .materials-card {
    flex: 0 0 calc(50% - 8px);
    min-width: 160px;
  }

  .materials-card-title {
    font-size: 0.95rem;
  }

  .materials-cta-section {
    padding: 4rem 0;
  }
}

@media (max-width: 480px) {
  .materials-video-hero {
    height: 85vh;
    min-height: 500px;
  }

  .materials-hero-content-centered {
    top: 55%;
    width: 95%;
    padding: 0.75rem;
  }

  .materials-hero-content-centered p {
    font-size: 0.9rem;
  }

  .materials-card {
    flex: 0 0 calc(100% - 0px);
    min-width: auto;
    aspect-ratio: 3/4;
  }

  .materials-solutions-bold {
    font-size: 1rem;
  }

  .materials-solutions-gray,
  .materials-solutions-normal {
    font-size: 0.9375rem;
  }

  .materials-grid-section {
    padding: 3rem 0;
  }
}

/* ============================================
   MATERIAL POPUP MODAL STYLES
   ============================================ */
.material-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  overflow-y: auto;
}

.material-modal.active {
  opacity: 1;
  visibility: visible;
}

.material-modal-content {
  background: var(--white);
  max-width: 1000px;
  margin: 2rem auto;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.material-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
  color: var(--text-dark);
}

.material-modal-close:hover {
  background: var(--white);
  transform: scale(1.1);
}

/* Hero Section */
.material-modal-hero {
  position: relative;
  width: 100%;
  height: 350px;
  overflow: hidden;
}

.material-modal-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.material-modal-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.5) 100%
  );
}

.material-modal-hero-text {
  position: absolute;
  top: 2rem;
  left: 2rem;
  z-index: 2;
}

.material-modal-hero-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.material-modal-hero-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--white);
  margin: 0;
  line-height: 1.2;
}

/* Modal Sections */
.material-modal-section {
  padding: 2rem;
}

.material-modal-intro-lead {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}

.material-modal-intro-lead strong {
  font-weight: 600;
}

.material-modal-body-text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-gray);
  margin-bottom: 1rem;
}

.material-modal-section-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--primary-green);
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.material-modal-subsection-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
  line-height: var(--leading-snug);
}

/* Split Sections (Image + Text) - Grid Layout like DryStation */
.material-modal-section-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 0;
}

.material-modal-split-text {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.material-modal-split-image {
  position: relative;
  min-height: 400px;
}

.material-modal-split-image img {
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
}

.material-modal-section-split-reverse .material-modal-split-image {
  order: -1;
}

/* Split image with contain (for charts/infographics that should not be cropped) */
.material-modal-split-image-contain {
  background-color: #D9D9D9;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.material-modal-split-image-contain img {
  object-fit: contain;
  width: 100%;
  height: auto;
  max-height: 100%;
}

/* List Styles */
.material-modal-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.5rem;
}

.material-modal-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  color: var(--text-gray);
  line-height: 1.6;
}

.material-modal-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary-green);
  font-weight: bold;
}

/* Contact Link */
.material-modal-contact-link {
  color: var(--primary-green);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.material-modal-contact-link:hover {
  color: var(--primary-green-dark);
  text-decoration: underline;
}

/* Centered Section Styles (for charts, etc.) */
.material-modal-section-centered {
  text-align: center;
}

.material-modal-section-label-centered {
  display: block;
  text-align: center;
  margin-bottom: 1.5rem;
}

/* MSW Fines popup - text left, images/tables centred */
#modal-mswfines .material-modal-section-centered {
  text-align: left;
}

#modal-mswfines .material-modal-section-centered .matdet-data-table {
  margin-left: auto;
  margin-right: auto;
}

#modal-mswfines .material-modal-image-caption {
  text-align: center;
  margin-top: 1.5rem;
}

#modal-mswfines .material-modal-heading {
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
}

#modal-mswfines .material-modal-section-label {
  font-size: 0.75rem;
  text-align: center;
}

#modal-mswfines ol.material-modal-list li::before {
  content: none;
}

/* Plastic Packaging Waste popup - text left, images/titles centred */
#modal-plasticpackagingwaste .material-modal-section-centered {
  text-align: left;
}

#modal-plasticpackagingwaste .material-modal-image-caption {
  text-align: center;
  margin-top: 1.5rem;
}

#modal-plasticpackagingwaste .material-modal-heading {
  font-weight: 700;
  text-align: left;
}

#modal-plasticpackagingwaste ol.material-modal-list li::before {
  content: none;
}

/* AD Plant De-Packaging Waste Popup Overrides */
#modal-packagingwaste .material-modal-section-centered {
  text-align: left;
}
#modal-packagingwaste .material-modal-image-caption {
  text-align: center;
  margin-top: 1.5rem;
}
#modal-packagingwaste .material-modal-heading {
  font-weight: 700;
  text-align: left;
}

/* Chopped Lucerne popup overrides */
/* Centered fullwidth-image caption (e.g. alfalfa pellets photo) */
#modal-lucerne .material-modal-fullwidth-image .material-modal-image-caption {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-gray);
  font-style: italic;
}
/* Split-image cells need to accept an italic caption beneath the image */
#modal-lucerne .material-modal-section-split,
#modal-lucerne .material-modal-section-split-reverse {
  align-items: stretch;
}
#modal-lucerne .material-modal-split-image {
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
#modal-lucerne .material-modal-split-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 0;
  display: block;
}
#modal-lucerne .material-modal-split-image .material-modal-image-caption {
  text-align: center;
  margin: 0.75rem 1.5rem 0;
  font-size: 0.9rem;
  color: var(--text-gray);
  font-style: italic;
  line-height: 1.5;
}

.material-modal-fullwidth-image {
  padding: 0 2rem;
  margin-bottom: 1.5rem;
}

.material-modal-fullwidth-image img {
  width: 100%;
  height: auto;
  border-radius: 0;
}

.material-modal-chart-wrapper {
  max-width: 700px;
  margin: 0 auto 2rem;
}

.material-modal-chart-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Video Wrapper for Material Modal */
.material-modal-video-wrapper {
  max-width: 800px;
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.material-modal-video {
  width: 100%;
  height: auto;
  display: block;
}

/* Responsive Styles for Material Modal */
@media (max-width: 768px) {
  .material-modal-content {
    margin: 0;
    border-radius: 0;
    min-height: 100vh;
  }

  .material-modal-hero {
    height: 280px;
  }

  .material-modal-hero-text {
    left: 1.5rem;
    top: 1.5rem;
  }

  .material-modal-section {
    padding: 1.5rem;
  }

  .material-modal-section-split {
    grid-template-columns: 1fr;
  }

  .material-modal-split-text {
    padding: 1.5rem;
  }

  .material-modal-split-image {
    min-height: 250px;
    order: -1;
  }

  .material-modal-close {
    top: 0.75rem;
    right: 0.75rem;
    width: 36px;
    height: 36px;
  }
}

/* Material Modal Contact Form */
.material-modal-contact-form {
  background: var(--light-bg);
  border-top: 1px solid var(--border-color);
}

.material-modal-contact-form .refpost-contact-form {
  margin-top: 0;
  border: none;
  background: transparent;
}

.material-modal-contact-form .refpost-contact-form h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.material-modal-contact-form .flowdrya-enquiry-form-wrapper {
  background: var(--white);
}

/* ============================================
   BARK MAIN PAGE STYLES
   ============================================ */

/* Bark Page Hero Section */
.bark-page-hero {
  position: relative;
  width: 100%;
  height: 60vh;
  min-height: 400px;
  max-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.bark-page-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0,0,0,0.4) 0%,
    rgba(0,0,0,0.5) 50%,
    rgba(0,0,0,0.4) 100%
  );
  z-index: 2;
}

.bark-page-hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: var(--white);
  padding: 2rem;
  max-width: 800px;
}

.bark-page-hero-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #ffffff;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.bark-page-hero-subtitle {
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.6;
  color: #ffffff;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
  margin: 0;
}

/* Bark Benefits Grid - 2 column layout */
.bark-benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.bark-benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.bark-benefit-item:hover {
  border-color: var(--primary-green);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.bark-benefit-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--light-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bark-benefit-icon i {
  font-size: 1.25rem;
  color: var(--primary-green);
}

.bark-benefit-content h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.bark-benefit-content p {
  font-size: 0.9rem;
  color: var(--text-gray);
  line-height: 1.6;
  margin: 0;
}

/* Bark Video Section */
.bark-video-container {
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}

.bark-video-player {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
}

/* Hide video controls by default, show on hover */
.bark-video-player::-webkit-media-controls {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.bark-video-container:hover .bark-video-player::-webkit-media-controls {
  opacity: 1;
}

/* Mobile hero video play button */
.hero-mobile-play-btn {
  display: none;
}

@media (max-width: 768px) {
  .hero-section video,
  .materials-video-hero video {
    pointer-events: none;
  }

  .hero-section video::-webkit-media-controls,
  .materials-video-hero video::-webkit-media-controls {
    display: none !important;
    -webkit-appearance: none;
  }

  .hero-section video::-webkit-media-controls-start-playback-button,
  .materials-video-hero video::-webkit-media-controls-start-playback-button {
    display: none !important;
    -webkit-appearance: none;
  }

  .hero-section video::-webkit-media-controls-panel,
  .materials-video-hero video::-webkit-media-controls-panel {
    display: none !important;
  }

  .hero-section video::-webkit-media-controls-play-button,
  .materials-video-hero video::-webkit-media-controls-play-button {
    display: none !important;
  }

  .hero-section video::-webkit-media-controls-overlay-play-button,
  .materials-video-hero video::-webkit-media-controls-overlay-play-button {
    display: none !important;
  }

  .hero-mobile-play-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-left: auto;
    margin-right: auto;
    border: 2px solid rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: var(--white);
    font-size: 14px;
    cursor: pointer;
    margin-top: 25px;
    transition: background 0.3s ease, border-color 0.3s ease;
  }

  .hero-mobile-play-btn:hover,
  .hero-mobile-play-btn:active {
    background: rgba(255, 255, 255, 0.3);
    border-color: var(--white);
  }

  .hero-mobile-play-btn.playing .fa-play::before {
    content: "\f04c";
  }
}

/* Play button overlay for video */
.bark-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
  z-index: 2;
  transition: background 0.3s ease, opacity 0.3s ease;
}

.bark-video-overlay:hover {
  background: rgba(0, 0, 0, 0.3);
}

.bark-video-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.bark-video-play-btn {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, background 0.3s ease;
}

.bark-video-play-btn:hover {
  transform: scale(1.1);
  background: var(--white);
}

.bark-video-play-btn i {
  font-size: 2rem;
  color: var(--primary-green);
  margin-left: 5px;
}

/* Bark Applications Grid - 2 column layout */
.bark-applications-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.bark-application-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.bark-application-item:hover {
  border-color: var(--primary-green);
}

.bark-application-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--light-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bark-application-icon i {
  font-size: 1.25rem;
  color: var(--primary-green);
}

.bark-application-content h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.bark-application-content p {
  font-size: 0.9rem;
  color: var(--text-gray);
  line-height: 1.6;
  margin: 0;
}

/* Bark Economic Table */
.bark-economic-table-container {
  overflow-x: auto;
  margin-bottom: 2rem;
}

.bark-economic-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--border-color);
}

.bark-economic-table thead {
  background: var(--primary-green);
  color: var(--white);
}

.bark-economic-table th {
  padding: 1rem 1.25rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.9rem;
}

.bark-economic-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.9rem;
  color: var(--text-gray);
  line-height: 1.5;
  vertical-align: top;
}

.bark-economic-table tbody tr:last-child td {
  border-bottom: none;
}

.bark-economic-table tbody tr:hover {
  background: var(--light-bg);
}

/* Bark Value Streams Chart */
.bark-value-chart-container {
  max-width: 600px;
  margin: 2rem auto 0;
}

.bark-value-chart-image {
  width: 100%;
  height: auto;
}

/* Centered text for matdet sections */
.matdet-text-centered {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Bullet list for material detail pages */
ul.matdet-bullet-list {
  list-style: disc;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

ul.matdet-bullet-list li {
  line-height: 1.6;
}

/* Bark page centered section labels and titles */
#benefits .section-label,
#benefits .matdet-section-title,
#applications .section-label,
#applications .matdet-section-title,
#economic-value .section-label,
#economic-value .matdet-section-title {
  text-align: center;
}

/* Hemp + Manure page centered section labels and titles */
#overview .section-label,
#overview .matdet-section-title,
#benefits-drying .section-label,
#benefits-drying .matdet-section-title,
#benefits-flowdrya .section-label,
#benefits-flowdrya .matdet-section-title {
  text-align: center;
}

/* Manure page - 6-icon feature grid */
.manure-icon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 1.5rem;
}

.manure-icon-card {
  text-align: center;
  padding: 1rem;
}

.manure-icon-card img {
  width: 100%;
  max-width: 220px;
  height: auto;
  margin-bottom: 0.75rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.manure-icon-card p {
  font-size: 0.95rem;
  color: var(--text-body);
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 991px) {
  .manure-icon-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .manure-icon-grid {
    grid-template-columns: 1fr;
  }
}

/* Manure page - pull quote */
.matdet-pullquote {
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  font-weight: 600;
  font-style: italic;
  color: var(--primary-green);
  line-height: 1.4;
  padding: 1.5rem 1rem;
  margin: 0 0 2rem;
  border-left: none;
  border-top: 2px solid var(--primary-green);
  border-bottom: 2px solid var(--primary-green);
}

/* FAQ Answer Image */
.faq-image-container {
  margin-top: 1rem;
}

.faq-answer-image {
  width: 100%;
  max-width: 600px;
  height: auto;
}

/* Responsive - Bark Page */
@media (max-width: 991px) {
  .bark-page-hero-content h1 {
    font-size: 2.5rem;
  }

  .bark-page-hero-subtitle {
    font-size: 1.2rem;
  }

  .bark-benefits-grid,
  .bark-applications-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (max-width: 767px) {
  .bark-page-hero {
    height: 50vh;
    min-height: 350px;
  }

  .bark-page-hero-content h1 {
    font-size: 2rem;
  }

  .bark-page-hero-subtitle {
    font-size: 1rem;
  }

  .bark-benefit-item,
  .bark-application-item {
    flex-direction: column;
    padding: 1.25rem;
  }

  .bark-benefit-icon,
  .bark-application-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .bark-benefit-content h3,
  .bark-application-content h3 {
    font-size: 1rem;
  }

  .bark-economic-table th,
  .bark-economic-table td {
    padding: 0.75rem;
    font-size: 0.85rem;
  }
}

/* ============================================
   MATERIAL PAGES - SCROLL-AWARE HEADER BEHAVIOR
   Hide main header on scroll down, show on scroll up
   Anchor nav sticks to top when header is hidden
   Works on all drying-*.html material detail pages
   ============================================ */

/* Header hide animation when scrolling down */
body.material-page-scroll-down .main-header.header-static {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  transform: translateY(-100%);
  transition: transform 0.3s ease-in-out;
}

/* Ensure header shows smoothly when scrolling up */
body:not(.material-page-scroll-down) .main-header.header-static {
  transform: translateY(0);
  transition: transform 0.3s ease-in-out;
}

/* Anchor nav adjusts position when header is hidden (home page with transparent header) */
body.material-page-scroll-down .matdet-anchor-nav {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 99; /* Always below header z-index: 1000 */
  transition: top 0.3s ease-in-out;
}

/* Restore anchor nav position when header is visible */
body:not(.material-page-scroll-down) .matdet-anchor-nav {
  transition: top 0.3s ease-in-out;
}

/* Add shadow to anchor nav when it's at top (header hidden) */
body.material-page-scroll-down .matdet-anchor-nav {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ============================================
   DRYER HEAT SOURCE PAGE STYLES
   ============================================ */

/* Heat Source Table */
.heat-source-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.heat-source-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.heat-source-table thead {
    background: var(--primary-green);
    color: var(--white);
}

.heat-source-table th {
    padding: 0.875rem 1.25rem;
    font-weight: 600;
    text-align: left;
    white-space: nowrap;
}

.heat-source-table td {
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-gray);
    line-height: 1.7;
    vertical-align: top;
}

.heat-source-table td:first-child {
    min-width: 200px;
    color: var(--text-dark);
}

.heat-source-table tbody tr:hover {
    background: var(--light-bg);
}

/* Heat Source Image Gallery */
.heat-source-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 0;
}

.heat-source-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    aspect-ratio: 4 / 5;
    transition: transform 0.4s ease;
}

.heat-source-gallery-item:hover img {
    transform: scale(1.03);
}

.heat-source-gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.4) 100%);
    pointer-events: none;
}

.heat-source-gallery-label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    z-index: 2;
}

.gallery-label-title {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--white);
    line-height: 1.4;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.gallery-label-desc {
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
    color: rgba(255,255,255,0.85);
    line-height: 1.4;
    margin-top: 0.125rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* Expandable Thumbnail Cards */
.heat-thumb-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.heat-thumb-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.heat-thumb-image-wrapper {
    position: relative;
    overflow: hidden;
}

.heat-thumb-image-wrapper > img {
    width: 100%;
    display: block;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.heat-thumb-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 40%, rgba(0,0,0,0.6) 100%);
    pointer-events: none;
    z-index: 1;
}

.heat-thumb-title-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.75rem;
    z-index: 2;
    cursor: pointer;
}

.heat-thumb-title-bar h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    margin: 0;
    line-height: 1.3;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.heat-thumb-toggle {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.4);
    color: var(--white);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.3s ease;
    font-size: 0.75rem;
}

.heat-thumb-toggle:hover {
    background: rgba(255,255,255,0.35);
}

.heat-thumb-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding: 0 1.25rem;
}

.heat-thumb-card[data-expanded="true"] .heat-thumb-content {
    padding: 1.25rem;
}

.heat-thumb-content p {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--text-gray);
    margin-bottom: 0.875rem;
}

.heat-thumb-content p:last-child {
    margin-bottom: 0;
}

/* Checklist inside thumbnails */
.heat-thumb-checklist {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
}

.heat-thumb-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text-gray);
    margin-bottom: 0.5rem;
}

.heat-thumb-checklist li i {
    color: var(--primary-green);
    margin-top: 0.25rem;
    flex-shrink: 0;
    font-size: 0.75rem;
}

/* Feature Cards with GIF */
.heat-feature-gif-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1200 / 1040;
    overflow: hidden;
}

.heat-feature-gif {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Real-World Experience Values List */
.heat-source-values-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem auto 2rem;
    max-width: 600px;
    text-align: left;
}

.heat-source-values-list li {
    position: relative;
    padding-left: 1.75rem;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-gray);
    margin-bottom: 0.625rem;
}

.heat-source-values-list li::before {
    content: '\2022';
    position: absolute;
    left: 0.5rem;
    color: var(--primary-green);
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1.7;
}

/* Heat Source Page Responsive */
@media (max-width: 991px) {
    .heat-source-table td:first-child {
        min-width: 160px;
    }
}

@media (max-width: 767px) {
    .heat-source-gallery-item img {
        aspect-ratio: 3 / 4;
    }

    .heat-thumb-title-bar h3 {
        font-size: 0.9375rem;
    }

    .heat-source-table {
        font-size: 0.875rem;
    }

    .heat-source-table td,
    .heat-source-table th {
        padding: 0.625rem 0.875rem;
    }
}
