/*
Theme Name: XTND Connect
Theme URI: https://xtndconnect.com
Author: Custom Dev
Description: Fully responsive and adaptive replica of XTND Connect.
Version: 3.3.0
*/

:root {
  --primary-blue: #0088cc;
  --primary-hover: #0077b5;
  --dark-navy: #081225;
  --dark-surface: #0f1c34;
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --border-light: #e2e8f0;
  --card-bg: #f8fafc;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --container-width: 1400px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

svg {
  display: block;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 32px;
}

/* =========================================================
   HEADER & NAVIGATION
   ========================================================= */

.site-header {
  background: #ffffff;
  border-bottom: 1px solid #edf2f7;
  position: sticky;
  top: 0;
  z-index: 99999;
  width: 100%;
}

.header-inner {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.brand-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-height: 48px;
}

.site-logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.site-logo-footer {
  filter: brightness(0) invert(1);
}

.custom-logo-link img {
  height: 40px;
  width: auto;
}

.logo-text-fallback {
  display: flex;
  flex-direction: column;
}

.logo-text-fallback .brand-name {
  font-size: 22px;
  font-weight: 800;
  color: #0b1e3d;
  letter-spacing: -0.5px;
  line-height: 1;
}

.logo-text-fallback .brand-sub {
  font-size: 9px;
  letter-spacing: 2px;
  color: #94a3b8;
  font-weight: 700;
}

.main-nav-menu {
  position: static;
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
  height: 100%;
}

.nav-links li {
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 600;
  color: #334155;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--primary-blue);
}

.header-action-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-header-contact {
  border: 1px solid var(--primary-blue);
  color: var(--primary-blue);
  padding: 9px 20px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-header-contact:hover {
  background: #f0f9ff;
}

/* =========================================================
   MEGA MENU
   ========================================================= */

.menu-item-has-mega {
  position: static !important;
  height: 100%;
  display: flex;
  align-items: center;
}

.product-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1.5px solid var(--primary-blue);
  color: var(--primary-blue) !important;
  padding: 7px 16px;
  border-radius: 6px;
  font-weight: 700 !important;
  font-size: 13.5px;
  letter-spacing: 0.3px;
  background: transparent;
  cursor: pointer;
}

.product-nav-btn:hover {
  background: rgba(0, 136, 204, 0.08);
}

.mega-dropdown-wrapper {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  background: #ffffff !important;
  box-shadow: 0 25px 50px -12px rgba(8, 18, 37, 0.25);
  border-top: 1px solid #e2e8f0;
  border-bottom: 3px solid var(--primary-blue);
  display: none;
  opacity: 0;
  visibility: hidden;
  z-index: 999999;
}

.mega-dropdown-wrapper::before {
  content: "";
  position: absolute;
  top: -15px;
  left: 0;
  right: 0;
  height: 15px;
  background: transparent;
}

.menu-item-has-mega:hover .mega-dropdown-wrapper,
.mega-dropdown-wrapper:hover {
  display: block;
  opacity: 1;
  visibility: visible;
}

.mega-dropdown-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 320px 1fr;
  min-height: 460px;
  background: #ffffff;
}

.mega-sidebar-categories {
  background: #004b87;
  background: linear-gradient(180deg, #004077 0%, #002d54 100%);
  padding: 16px 0;
}

.mega-sidebar-categories ul {
  list-style: none;
}

.mega-sidebar-categories .cat-item {
  padding: 14px 24px;
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.15s ease;
  border-left: 4px solid transparent;
}

.mega-sidebar-categories .cat-item:hover,
.mega-sidebar-categories .cat-item.active {
  background: #002240;
  border-left-color: #38bdf8;
  color: #38bdf8;
}

.mega-sidebar-categories .cat-arrow {
  opacity: 0;
  transform: translateX(-6px);
  transition: all 0.2s ease;
}

.mega-sidebar-categories .cat-item:hover .cat-arrow,
.mega-sidebar-categories .cat-item.active .cat-arrow {
  opacity: 1;
  transform: translateX(0);
}

.mega-subcategories-container {
  background: #ffffff;
  padding: 40px 48px;
}

.mega-content-panel {
  display: none;
}

.mega-content-panel.active {
  display: block;
}

.subcat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.subcat-group h5 {
  font-size: 14px;
  font-weight: 800;
  color: #0b1528;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid #edf2f7;
  padding-bottom: 10px;
  margin-bottom: 16px;
}

.subcat-group ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.subcat-group a {
  font-size: 14px;
  color: #334155;
  font-weight: 500;
  transition: color 0.2s ease;
}

.subcat-group a:hover {
  color: var(--primary-blue);
  text-decoration: underline;
}

.view-all-subcat {
  display: inline-block;
  margin-top: 20px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--primary-blue);
}

.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.mobile-nav-toggle span {
  width: 24px;
  height: 2px;
  background: #0b1528;
  border-radius: 2px;
}

/* =========================================================
   HOMEPAGE HERO SECTION
   ========================================================= */

.hero-section {
  padding: 24px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 20px;
}

.hero-left-banner {
  border-radius: 12px;
  padding: 48px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 470px;
  position: relative;
  overflow: hidden;
  background-position: right center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
}

.hero-left-content {
  position: relative;
  z-index: 2;
  max-width: 480px;
}

.hero-tag {
  font-size: 11.5px;
  font-weight: 700;
  color: #38bdf8;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero-left-banner h1 {
  font-size: 48px;
  line-height: 1.15;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 16px;
}

.hero-left-banner p {
  font-size: 16px;
  color: #cbd5e1;
  margin-bottom: 30px;
}

.btn-pill-blue {
  background: var(--primary-blue);
  color: #ffffff;
  padding: 11px 22px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
}

.btn-pill-blue:hover {
  background: var(--primary-hover);
}

.hero-pagination {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #64748b;
  font-weight: 600;
}

.hero-pagination .curr {
  color: #ffffff;
}

.pill-indicators {
  display: flex;
  gap: 6px;
  margin-left: 8px;
}

.pill-indicators span {
  width: 20px;
  height: 4px;
  background: #334155;
  border-radius: 2px;
}

.pill-indicators span.active {
  background: var(--primary-blue);
  width: 32px;
}

.hero-right-cards {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: 16px;
}

.hero-card.hero-card-media {
  position: relative;
  background-size: cover !important;
  background-position: center right !important;
  background-repeat: no-repeat !important;
  border-radius: 12px;
  overflow: hidden;
  height: 145px;
  display: flex;
  align-items: center;
  padding: 0 30px;
}

.hero-card.hero-card-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 18, 37, 0.78) 0%, rgba(8, 18, 37, 0.3) 65%, transparent 100%);
  z-index: 1;
}

.card-overlay-text {
  position: relative;
  z-index: 2;
  color: #ffffff;
}

.card-overlay-text h3 {
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 6px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.card-overlay-text .arrow-circ {
  font-size: 18px;
  color: #ffffff;
}

.hero-card.card-split-installer {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  height: 145px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  padding: 0;
  align-items: center;
}

.installer-left-text {
  padding: 20px 24px;
}

.installer-left-text h3 {
  font-size: 19px;
  color: #0b1528;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.2;
}

.installer-right-img {
  height: 100%;
  overflow: hidden;
}

.installer-right-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center left;
}

/* =========================================================
   VALUE RIBBON
   ========================================================= */

.value-ribbon {
  border-bottom: 1px solid var(--border-light);
  padding: 28px 0;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.value-box {
  display: flex;
  align-items: center;
  gap: 16px;
}

.value-box-icon {
  width: 40px;
  height: 40px;
  color: var(--primary-blue);
  flex-shrink: 0;
}

.value-box-text {
  font-size: 14px;
  line-height: 1.35;
  color: #0f172a;
}

.value-box-text strong {
  display: block;
  font-size: 14.5px;
}

/* =========================================================
   SOLUTIONS SECTION (HOMEPAGE)
   ========================================================= */

.solutions-section {
  padding: 64px 0 54px;
}

.solutions-grid {
  display: grid;
  grid-template-columns: 1.12fr 1fr 1fr 1fr 1fr;
  gap: 18px;
  align-items: stretch;
}

.solutions-intro {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-right: 14px;
}

.green-accent-bar {
  width: 24px;
  height: 4px;
  background-color: #22c55e;
  border-radius: 2px;
  display: inline-block;
  margin-bottom: 14px;
}

.solutions-intro h2 {
  font-size: 26px;
  line-height: 1.22;
  color: #0b1528;
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: -0.3px;
}

.solutions-intro p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 24px;
}

.solutions-intro .view-all {
  color: var(--primary-blue);
  font-size: 13.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}

.sol-card {
  background: #f8fafc;
  border: 1px solid #edf2f7;
  border-radius: 12px;
  padding: 28px 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.sol-card-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 22px;
}

.sol-card h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #0b1528;
  line-height: 1.25;
}

.sol-card p {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.48;
  margin-bottom: 24px;
}

.sol-card .sol-arrow {
  color: var(--primary-blue);
  font-size: 16px;
  font-weight: 700;
}

/* =========================================================
   ENVIRONMENTS SECTION
   ========================================================= */

.env-section {
  background: #081120;
  padding: 60px 0 70px;
  color: #ffffff;
  width: 100%;
}

.env-title {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 40px;
  color: #ffffff;
  letter-spacing: -0.3px;
}

.env-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.env-item {
  background: #0d182e;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #1a2942;
  display: flex;
  flex-direction: column;
}

.env-media {
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.env-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.env-item-body {
  padding: 22px 20px 24px;
}

.env-item-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.env-item-header svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.env-item-header h4 {
  color: #ffffff;
  font-size: 17px;
  font-weight: 700;
}

.env-item-body p {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.5;
}

/* =========================================================
   INSTALLATION SECTION
   ========================================================= */

.installation-section {
  padding: 70px 0;
  background: #ffffff;
}

.installation-grid-3col {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr 1.1fr;
  gap: 42px;
  align-items: center;
}

.inst-image-wrap {
  width: 100%;
  height: 290px;
  border-radius: 12px;
  overflow: hidden;
}

.inst-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.inst-content-center h2 {
  font-size: 30px;
  line-height: 1.2;
  color: #0b1528;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.3px;
}

.inst-content-center p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 24px;
}

.inst-features-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.inst-feat-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.inst-feat-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.inst-feat-icon svg {
  width: 100%;
  height: 100%;
}

.inst-feat-text h4 {
  font-size: 15px;
  font-weight: 700;
  color: #0b1528;
  margin-bottom: 3px;
  line-height: 1.3;
}

.inst-feat-text p {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.45;
}

/* =========================================================
   CALLOUT RIBBON / BANNER STRIP
   ========================================================= */

.callout-ribbon {
  position: relative;
  background: linear-gradient(90deg, #edf9ff 0%, #f4fbfe 45%, #e8f5fd 100%);
  border-top: 1px solid #e0f0fa;
  border-bottom: 1px solid #e0f0fa;
  padding: 24px 0;
  width: 100%;
  overflow: hidden;
}

.callout-bg-wave {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 48%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.85;
}

.callout-bg-wave svg {
  width: 100%;
  height: 100%;
}

.callout-flex {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 36px;
}

.callout-title-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

.callout-emblem {
  width: 54px;
  height: 54px;
  flex-shrink: 0;
}

.ribbon-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.callout-title-wrap h3 {
  font-size: 19px;
  font-weight: 800;
  color: #0b1528;
  letter-spacing: -0.2px;
  white-space: nowrap;
}

.callout-subtext {
  font-size: 13.5px;
  color: #64748b;
  margin-top: 3px;
}

.callout-desc {
  font-size: 13.5px;
  color: #475569;
  line-height: 1.45;
}

.callout-action {
  flex-shrink: 0;
}

/* =========================================================
   STATS RIBBON
   ========================================================= */

.stats-ribbon {
  background: #081120;
  padding: 34px 0;
  color: #ffffff;
  width: 100%;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
}

.stat-cell {
  display: flex;
  align-items: center;
  gap: 16px;
  border-right: 1px solid #1a2942;
  padding: 0 28px;
}

.stat-cell:last-child {
  border-right: none;
}

.stat-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.stat-icon svg {
  width: 100%;
  height: 100%;
}

.stat-info .stat-val {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  display: block;
  line-height: 1.1;
}

.stat-info .stat-lbl {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 500;
}

/* =========================================================
   NEWSLETTER STRIP
   ========================================================= */

.newsletter-strip {
  padding: 36px 0;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  width: 100%;
}

.newsletter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.newsletter-label {
  display: flex;
  align-items: center;
  gap: 16px;
}

.newsletter-icon-circ {
  width: 38px;
  height: 38px;
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.newsletter-icon-circ svg {
  width: 100%;
  height: 100%;
}

.newsletter-label h4 {
  font-size: 16px;
  font-weight: 700;
  color: #0b1528;
  margin-bottom: 2px;
}

.newsletter-label p {
  font-size: 13px;
  color: var(--text-muted);
}

.newsletter-form-ui {
  display: flex;
  gap: 10px;
  width: 460px;
}

.newsletter-form-ui input {
  flex: 1;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 11px 16px;
  font-size: 13.5px;
  outline: none;
  background: #ffffff;
}

.newsletter-form-ui input:focus {
  border-color: var(--primary-blue);
}

/* =========================================================
   DARK FOOTER
   ========================================================= */

.site-footer {
  background: #050b14;
  color: #94a3b8;
  padding: 56px 0 24px;
  font-size: 13px;
  width: 100%;
}

.footer-nav-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 46px;
}

.footer-brand-col .brand-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-tagline {
  margin-top: 12px;
  font-size: 12px;
  color: #64748b;
}

.footer-social-row {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.social-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid #1e2e4a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11.5px;
  color: #cbd5e1;
  font-weight: 600;
}

.footer-col h5 {
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-col a {
  color: #94a3b8;
  font-size: 12.5px;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: #ffffff;
}

.footer-copyright {
  border-top: 1px solid #142036;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #64748b;
}

.footer-copyright-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-copyright-links a {
  color: #64748b;
}

.footer-copyright-links a:hover {
  color: #ffffff;
}

.footer-copyright-links span {
  color: #334155;
  font-size: 11px;
}

/* =========================================================
   ABOUT US PAGE
   ========================================================= */

.about-page-main {
  background: #f8fafc;
  min-height: 70vh;
}

.about-hero-banner {
  width: 100%;
  height: 380px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-banner-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 18, 37, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.about-banner-title {
  color: #ffffff;
  font-size: 46px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.about-content-section {
  padding: 80px 0 100px;
}

.about-text-card {
  max-width: 900px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 48px 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.about-text-card p {
  font-size: 19px;
  line-height: 1.8;
  color: #334155;
  text-align: center;
}

/* =========================================================
   SOLUTIONS PAGE (CATALOG GRID)
   ========================================================= */

.solutions-page-main {
  background: #ffffff;
}

.solutions-hero-banner {
  width: 100%;
  height: 380px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.solutions-banner-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 18, 37, 0.48);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.solutions-banner-title {
  color: #ffffff;
  font-size: 46px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.solutions-catalog-section {
  padding: 90px 0 120px;
}

.solutions-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 60px;
  row-gap: 75px;
}

.solution-item-card {
  display: flex;
  flex-direction: column;
}

.solution-card-top {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 24px;
}

.solution-thumb {
  width: 210px;
  height: 180px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.solution-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.solution-meta h2 {
  font-size: 24px;
  font-weight: 800;
  color: #334155;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  line-height: 1.2;
}

.solution-subtitle {
  font-size: 13.5px;
  color: #64748b;
  font-weight: 500;
  display: block;
  margin-bottom: 14px;
  line-height: 1.4;
}

.solution-divider {
  width: 50px;
  height: 2px;
  background-color: #0f172a;
}

.solution-card-bottom p {
  font-size: 14px;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 24px;
  text-align: justify;
}

.btn-read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #94a3b8;
  color: #1e293b;
  padding: 10px 24px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: transparent;
  width: fit-content;
}

.btn-read-more:hover {
  border-color: var(--primary-blue);
  color: var(--primary-blue);
  background: #f0f9ff;
}

/* =========================================================
   DATA CENTER SOLUTION PAGE (PRE-TERMINATED ASSEMBLIES)
   ========================================================= */

.dc-page-wrapper {
  background: #ffffff;
}

.blue-accent-bar {
  width: 24px;
  height: 4px;
  background-color: #0088cc;
  border-radius: 2px;
  display: inline-block;
  margin-bottom: 14px;
}

/* 1. DC Hero */
.dc-hero-section {
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  background-color: #031024;
  padding: 28px 0 60px;
  color: #ffffff;
}

.dc-breadcrumbs {
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 24px;
}

.dc-breadcrumbs a {
  color: #cbd5e1;
}

.dc-breadcrumbs a:hover {
  color: #ffffff;
}

.dc-breadcrumbs span {
  color: #ffffff;
  font-weight: 500;
}

.dc-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 30px;
  align-items: center;
}

.dc-service-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #38bdf8;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 12px;
}

.dc-hero-title {
  font-size: 46px;
  line-height: 1.12;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 14px;
}

.dc-hero-desc {
  font-size: 16px;
  color: #cbd5e1;
  margin-bottom: 28px;
}

.dc-hero-btns {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 26px;
}

.btn-outline-expert {
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  padding: 11px 22px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 600;
  background: transparent;
}

.btn-outline-expert:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
}

.dc-ready-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(11, 23, 44, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
}

.ready-dot {
  color: #22c55e;
  font-weight: bold;
}

.dc-hero-image-wrap {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.dc-breakout-img {
  width: 100%;
  max-height: 380px;
  object-fit: contain;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.5));
}

/* 2. DC Value Ribbon (Icons Contained & Clean) */
.dc-value-ribbon {
  padding: 0;
  position: relative;
  top: -24px;
  z-index: 10;
}

.dc-value-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  background: #ffffff;
  border: 1px solid #edf2f7;
  border-radius: 12px;
  padding: 24px 32px;
  box-shadow: 0 10px 30px rgba(8, 18, 37, 0.06);
}

.dc-vcard {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.dc-vcard-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  max-width: 36px;
  color: #0088cc;
  flex-shrink: 0;
}

.dc-vcard-icon svg {
  width: 36px;
  height: 36px;
}

.dc-vcard-body h4 {
  font-size: 15px;
  font-weight: 700;
  color: #0b1528;
  margin-bottom: 4px;
}

.dc-vcard-body p {
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.45;
}

/* 3. Arrives Ready Section */
.dc-arrives-section {
  padding: 60px 0 70px;
}

.dc-arrives-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.dc-arrives-text h2 {
  font-size: 32px;
  font-weight: 800;
  color: #0b1528;
  line-height: 1.2;
  margin-bottom: 18px;
}

.dc-arrives-text p {
  font-size: 14.5px;
  color: #475569;
  line-height: 1.65;
  margin-bottom: 16px;
}

.dc-arrives-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
}

/* 4. Blue Process Bar */
.dc-process-section {
  background: #0088cc;
  color: #ffffff;
  padding: 38px 0;
}

.dc-process-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.dc-proc-lead {
  flex: 1.2;
}

.dc-proc-lead h3 {
  font-size: 19px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 6px;
}

.dc-proc-lead p {
  font-size: 12.5px;
  color: #dbeafe;
}

.proc-lead-arrow {
  display: inline-block;
  margin-top: 4px;
  color: #93c5fd;
  font-weight: bold;
}

.dc-proc-step {
  flex: 1;
}

.proc-num {
  font-size: 11px;
  font-weight: 700;
  color: #bae6fd;
  display: block;
  margin-bottom: 4px;
}

.proc-icon {
  width: 26px;
  height: 26px;
  margin-bottom: 8px;
}

.proc-icon svg {
  width: 26px;
  height: 26px;
}

.dc-proc-step h4 {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
  line-height: 1.2;
}

.dc-proc-step p {
  font-size: 12px;
  color: #e0f2fe;
  line-height: 1.35;
}

.proc-divider {
  font-size: 18px;
  color: #93c5fd;
  font-weight: 600;
}

/* 5. Configurator Section */
.dc-config-section {
  padding: 80px 0;
}

.dc-config-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}

.dc-config-laptop img {
  width: 100%;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.08));
}

.dc-config-info h2 {
  font-size: 32px;
  font-weight: 800;
  color: #0b1528;
  line-height: 1.2;
  margin-bottom: 20px;
}

.dc-check-items {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dc-check-items li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 600;
  color: #334155;
}

.check-circ {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #e0f2fe;
  color: #0088cc;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

/* 6. Case Study Section */
.dc-casestudy-section {
  padding: 20px 0 70px;
}

.dc-case-box {
  background: #081120;
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  color: #ffffff;
}

.dc-case-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dc-case-content {
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.dc-case-pill {
  font-size: 11px;
  letter-spacing: 1.5px;
  font-weight: 700;
  color: #38bdf8;
  margin-bottom: 10px;
}

.dc-case-content h3 {
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 14px;
}

.dc-case-content p {
  font-size: 14px;
  color: #cbd5e1;
  line-height: 1.55;
  margin-bottom: 24px;
}

.dc-case-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.badge-time-saved {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #fef08a;
  border: 1px solid rgba(254, 240, 138, 0.3);
  padding: 7px 14px;
  border-radius: 20px;
}

.btn-case-read {
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  padding: 9px 20px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 600;
}

.btn-case-read:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

/* 7. FAQ Section */
.dc-faq-section {
  padding: 40px 0 80px;
}

.dc-faq-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.4fr 0.8fr;
  gap: 36px;
  align-items: flex-start;
}

.dc-faq-title-col h2 {
  font-size: 32px;
  font-weight: 800;
  color: #0b1528;
  line-height: 1.2;
}

.dc-accordion-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dc-acc-card {
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 10px;
}

.dc-acc-card summary {
  font-size: 15px;
  font-weight: 700;
  color: #0b1528;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
}

.dc-acc-card summary::-webkit-details-marker {
  display: none;
}

.acc-toggle-icon {
  color: #94a3b8;
  font-size: 18px;
}

.dc-acc-content {
  padding: 6px 0 10px;
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.55;
}

.dc-faq-side-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  gap: 16px;
}

.faq-phone-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  background: #0088cc;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.faq-phone-icon svg {
  width: 20px;
  height: 20px;
}

.faq-side-text h5 {
  font-size: 14px;
  font-weight: 700;
  color: #0b1528;
  margin-bottom: 4px;
}

.faq-side-text p {
  font-size: 12.5px;
  color: #64748b;
  margin-bottom: 8px;
}

.link-contact-action {
  font-size: 13px;
  font-weight: 700;
  color: #0088cc;
}

/* =========================================================
   RESPONSIVE BREAKPOINTS (ALL CLOSED PROPERLY)
   ========================================================= */

@media (max-width: 1200px) {
  .solutions-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .solutions-intro {
    grid-column: span 3;
    margin-bottom: 10px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .stat-cell {
    border-right: none;
    border-bottom: 1px solid #1a2942;
    padding: 12px 0;
  }
  .stat-cell:nth-child(3), .stat-cell:nth-child(4) {
    border-bottom: none;
  }
}

@media (max-width: 992px) {
  .container {
    padding: 0 20px;
  }

  .mobile-nav-toggle {
    display: flex;
  }

  .main-nav-menu {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    padding: 24px;
    display: none;
    flex-direction: column;
  }

  .main-nav-menu.nav-open {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .mega-dropdown-wrapper {
    position: static;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    box-shadow: none;
    border: none;
    display: none;
  }

  .menu-item-has-mega.nav-open .mega-dropdown-wrapper {
    display: block;
  }

  .mega-dropdown-inner {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-left-banner {
    min-height: 380px;
    padding: 36px 28px;
  }

  .hero-left-banner h1 {
    font-size: 36px;
  }

  .env-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .installation-grid-3col {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .inst-image-wrap {
    height: 240px;
  }

  .callout-flex {
    grid-template-columns: 1fr;
    gap: 16px;
    text-align: left;
  }

  .callout-title-wrap h3 {
    white-space: normal;
  }

  .callout-bg-wave {
    width: 100%;
    opacity: 0.25;
  }

  .dc-hero-grid,
  .dc-arrives-grid,
  .dc-config-grid,
  .dc-case-box {
    grid-template-columns: 1fr;
  }

  .dc-process-grid {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .proc-divider {
    display: none;
  }

  .dc-faq-grid {
    grid-template-columns: 1fr;
  }

  .solutions-cards-grid {
    grid-template-columns: 1fr;
    row-gap: 50px;
  }
}

@media (min-width: 641px) and (max-width: 1024px) {
  .site-footer {
    padding: 48px 0 24px;
  }

  .footer-nav-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 32px 20px !important;
    margin-bottom: 40px;
  }

  .footer-brand-col {
    grid-column: span 4;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #142036;
    padding-bottom: 24px;
    margin-bottom: 10px;
  }

  .footer-brand-col .footer-tagline {
    margin-top: 6px;
  }

  .footer-social-row {
    margin-top: 0;
  }
}

@media (max-width: 640px) {
  .header-inner {
    height: 70px;
  }

  .btn-header-contact {
    display: none;
  }

  .hero-left-banner {
    padding: 28px 20px;
  }

  .hero-left-banner h1 {
    font-size: 28px;
  }

  .hero-left-banner p {
    font-size: 14px;
  }

  .value-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .solutions-grid {
    grid-template-columns: 1fr;
  }

  .solutions-intro {
    grid-column: span 1;
  }

  .hero-card.card-split-installer {
    grid-template-columns: 1fr;
    height: auto;
  }

  .installer-right-img {
    height: 150px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-cell {
    border-bottom: 1px solid #1a2942;
  }

  .stat-cell:last-child {
    border-bottom: none;
  }

  .newsletter-inner {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }

  .newsletter-form-ui {
    width: 100%;
    flex-direction: column;
  }

  .site-footer {
    padding: 44px 0 20px;
  }

  .footer-nav-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 28px 16px !important;
    margin-bottom: 36px;
  }

  .footer-brand-col {
    grid-column: span 2;
    margin-bottom: 6px;
    border-bottom: 1px solid #142036;
    padding-bottom: 20px;
  }

  .footer-copyright {
    flex-direction: column;
    gap: 12px;
    text-align: center;
    padding-top: 18px;
  }

  .footer-copyright-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .dc-value-cards {
    grid-template-columns: 1fr;
  }

  .dc-hero-title {
    font-size: 30px;
  }

  .dc-case-content {
    padding: 24px;
  }

  .solutions-hero-banner,
  .about-hero-banner {
    height: 260px;
  }

  .solutions-banner-title,
  .about-banner-title {
    font-size: 32px;
  }

  .solutions-catalog-section {
    padding: 50px 0 70px;
  }

  .solution-card-top {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .solution-thumb {
    width: 100%;
    height: 200px;
  }
}

/* =========================================================
   PRODUCT CATALOGUE PAGE STYLES
   ========================================================= */

.catalogue-page-main {
  background: #f8fafc;
  padding: 24px 0 60px;
}

.cat-breadcrumbs {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 24px;
}

.cat-breadcrumbs a {
  color: #0088cc;
}

.cat-breadcrumbs span {
  color: #0b1528;
  font-weight: 600;
}

.cat-page-header {
  margin-bottom: 28px;
}

.cat-title {
  font-size: 38px;
  font-weight: 800;
  color: #0b1528;
  line-height: 1.15;
  margin-bottom: 8px;
}

.cat-subtitle {
  font-size: 15px;
  color: #64748b;
  margin-bottom: 14px;
}

.cat-title-underline {
  width: 50px;
  height: 3px;
  background-color: #0088cc;
  border-radius: 2px;
}

/* Filter Bar */
.cat-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  padding: 12px 18px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 16px;
}

.cat-filter-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-filter-action {
  background: #0088cc;
  color: #ffffff;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.filter-pill-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.cat-pill {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cat-pill:hover,
.cat-pill.active {
  border-color: #0088cc;
  color: #0088cc;
  background: #f0f9ff;
}

.cat-filter-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.cat-sort-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #64748b;
}

.cat-select-dropdown {
  border: 1px solid #cbd5e1;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  outline: none;
  background: #ffffff;
}

.cat-product-count {
  font-size: 13px;
  color: #64748b;
  font-weight: 600;
}

/* Products 3-Column Grid */
.cat-products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.product-item-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-item-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.badge-featured-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: #ecfccb;
  color: #4d7c0f;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
}

.product-card-media {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.product-card-media img {
  max-height: 100%;
  object-fit: contain;
}

.product-title {
  font-size: 20px;
  font-weight: 800;
  color: #0b1528;
  margin-bottom: 8px;
}

.product-desc {
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 16px;
  min-height: 40px;
}

.product-badge-pill {
  display: inline-block;
  background: #0284c7;
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 20px;
  width: fit-content;
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #f1f5f9;
  padding-top: 16px;
  margin-top: auto;
}

.compare-checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: #64748b;
  cursor: pointer;
}

.link-view-family {
  font-size: 13px;
  font-weight: 700;
  color: #0088cc;
}

/* Decision Blue Ribbon */
.cat-decision-banner {
  background: #081120;
  border-radius: 12px;
  padding: 24px 32px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
  gap: 20px;
}

.cat-decision-content {
  display: flex;
  align-items: center;
  gap: 16px;
}

.decision-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.cat-decision-content h3 {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2px;
}

.cat-decision-content p {
  font-size: 13px;
  color: #94a3b8;
}

.cat-decision-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.btn-decision-outline {
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
}

/* 4-Box Value Props */
.cat-value-props {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 30px;
}

.cat-vp-box {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cat-vp-box svg {
  width: 32px;
  height: 32px;
  color: #0088cc;
  flex-shrink: 0;
}

.cat-vp-box h4 {
  font-size: 14.5px;
  font-weight: 700;
  color: #0b1528;
  margin-bottom: 2px;
}

.cat-vp-box p {
  font-size: 12px;
  color: #64748b;
  line-height: 1.35;
}

/* Download Catalogue Strip */
.cat-download-strip {
  background: linear-gradient(90deg, #edf9ff 0%, #ffffff 100%);
  border: 1px solid #e0f0fa;
  border-radius: 12px;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cat-download-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brochure-preview-img {
  width: 48px;
  height: 48px;
  background: #ffffff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
  padding: 6px;
}

.brochure-emblem {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.cat-download-left h3 {
  font-size: 18px;
  font-weight: 800;
  color: #0b1528;
  margin-bottom: 2px;
}

.cat-download-left p {
  font-size: 13px;
  color: #64748b;
}

.cat-download-form {
  display: flex;
  gap: 10px;
  width: 440px;
}

.cat-download-form input {
  flex: 1;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 13px;
  outline: none;
  background: #ffffff;
}

/* Catalogue Responsive */
@media (max-width: 1024px) {
  .cat-products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cat-value-props {
    grid-template-columns: repeat(2, 1fr);
  }
  .cat-decision-banner,
  .cat-download-strip {
    flex-direction: column;
    align-items: flex-start;
  }
  .cat-download-form {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .cat-products-grid {
    grid-template-columns: 1fr;
  }
  .cat-value-props {
    grid-template-columns: 1fr;
  }
  .cat-filter-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =========================================================
   CATEGORY 5E FAMILY LISTING PAGE STYLING
   ========================================================= */

.family-page-main {
  background: #f8fafc;
  padding: 24px 0 60px;
}

/* Top Categories Switcher */
.family-top-carousel {
  display: flex;
  gap: 16px;
  margin-bottom: 36px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.top-cat-box {
  flex: 1;
  min-width: 140px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.2s ease;
}

.top-cat-box.active,
.top-cat-box:hover {
  border-color: #0088cc;
  box-shadow: 0 4px 14px rgba(0, 136, 204, 0.12);
}

.top-cat-thumb {
  height: 48px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}

.top-cat-thumb img {
  max-height: 100%;
  object-fit: contain;
}

.top-cat-box span {
  font-size: 13px;
  font-weight: 700;
  color: #0b1528;
}

.top-cat-box.active span {
  color: #0088cc;
}

/* 2-Column Main Layout */
.family-layout-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

/* Left Sidebar */
.family-filter-sidebar {
  background: transparent;
}

.sidebar-title {
  font-size: 17px;
  font-weight: 800;
  color: #0b1528;
  margin-bottom: 20px;
}

.filter-widget {
  margin-bottom: 22px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 16px;
}

.filter-widget h4 {
  font-size: 13.5px;
  font-weight: 700;
  color: #0b1528;
  margin-bottom: 10px;
}

.filter-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #475569;
  margin-bottom: 8px;
  cursor: pointer;
}

.reset-filter-link {
  font-size: 12px;
  color: #0088cc;
  font-weight: 600;
  display: block;
  margin-bottom: 14px;
}

.btn-apply-filters {
  width: 100%;
  background: #0088cc;
  color: #ffffff;
  border: none;
  padding: 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

/* Content Area & Header Row */
.family-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.active-tags-list {
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-count-lbl {
  font-size: 13.5px;
  font-weight: 700;
  color: #0b1528;
  margin-right: 6px;
}

.active-tag-pill {
  background: #e0f2fe;
  color: #0369a1;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.active-tag-pill button {
  background: none;
  border: none;
  color: #0369a1;
  cursor: pointer;
  font-size: 14px;
}

.family-sort-box {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #64748b;
}

.sort-dropdown-ui {
  border: 1px solid #cbd5e1;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  background: #ffffff;
}

/* Products Grid */
.family-products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.family-item-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.family-item-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

/* 4 Badges Stack */
.item-specs-badges {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.spec-tag {
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  line-height: 1.2;
}

.spec-outline { border: 1px solid #94a3b8; color: #475569; background: #ffffff; }
.spec-blue { background: #e0f2fe; color: #0284c7; }
.spec-gray { background: #f1f5f9; color: #475569; }
.spec-green { background: #ecfccb; color: #4d7c0f; }

.family-card-img {
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  margin-bottom: 14px;
}

.family-card-img img {
  max-height: 100%;
  object-fit: contain;
}

.family-item-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #0b1528;
  line-height: 1.35;
  margin-bottom: 18px;
  min-height: 40px;
}

.family-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #f1f5f9;
  padding-top: 12px;
  margin-top: auto;
}

.link-view-prod {
  font-size: 12.5px;
  font-weight: 700;
  color: #0088cc;
}

/* Promo Cards */
.family-promo-card {
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px 20px;
  color: #ffffff;
  min-height: 240px;
}

.installer-promo {
  background-size: cover;
  background-position: center;
  position: relative;
}

.installer-promo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 18, 37, 0.4) 0%, rgba(8, 18, 37, 0.9) 100%);
}

.promo-inner-overlay {
  position: relative;
  z-index: 2;
}

.promo-inner-overlay h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 6px;
  line-height: 1.2;
}

.promo-inner-overlay p {
  font-size: 12px;
  color: #cbd5e1;
  margin-bottom: 16px;
}

.sustainability-promo {
  background: #0f1c34;
  justify-content: center;
}

.promo-dark-body h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
}

.promo-dark-body p {
  font-size: 12.5px;
  color: #94a3b8;
  margin-bottom: 16px;
}

.btn-sustain-learn {
  background: #22c55e;
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  display: inline-block;
}

/* Need Help Choosing Banner */
.family-help-banner {
  background: #081120;
  border-radius: 12px;
  padding: 24px 32px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
  gap: 20px;
}

.family-help-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.help-question-icon {
  width: 36px;
  height: 36px;
  border: 2px solid #38bdf8;
  border-radius: 50%;
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
}

.family-help-left h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 3px;
}

.family-help-left p {
  font-size: 13px;
  color: #94a3b8;
}

.family-help-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-help-compare {
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  padding: 9px 18px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 1024px) {
  .family-layout-grid {
    grid-template-columns: 1fr;
  }
  .family-products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .family-help-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .family-products-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   WORDPRESS ADMIN BAR OVERLAP FIX
   ========================================================= */
body.admin-bar .site-header {
  top: 32px !important;
}

@media screen and (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px !important;
  }
}

/* =========================================================
   SOLUTIONS HOVER DROPDOWN MENU
   ========================================================= */
.menu-item-has-dropdown {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.solutions-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #334155;
  font-weight: 600;
  font-size: 14px;
  transition: color 0.2s;
}

.solutions-nav-link:hover {
  color: var(--primary-blue);
}

.solutions-sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-top: 2px solid var(--primary-blue);
  border-radius: 0 0 8px 8px;
  box-shadow: 0 10px 25px rgba(8, 18, 37, 0.12);
  list-style: none;
  padding: 8px 0;
  margin: 0;
  display: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 99999;
}

.solutions-sub-menu::before {
  content: "";
  position: absolute;
  top: -15px;
  left: 0;
  right: 0;
  height: 15px;
  background: transparent;
}

.menu-item-has-dropdown:hover .solutions-sub-menu {
  display: block;
  opacity: 1;
  visibility: visible;
}

.solutions-sub-menu li {
  margin: 0;
  padding: 0;
}

.solutions-sub-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 700;
  color: #0b1528;
  letter-spacing: 0.3px;
  transition: all 0.15s ease;
}

.solutions-sub-menu a:hover {
  background: #f0f9ff;
  color: var(--primary-blue);
  padding-left: 24px;
}

/* =========================================================
   SINGLE PRODUCT DETAIL VIEW STYLING (MATCHING DESIGN)
   ========================================================= */

.product-detail-layout {
  background: #ffffff;
  padding: 24px 0 80px;
}

.pd-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 50px;
  margin-bottom: 50px;
  align-items: flex-start;
}

/* Visual Box */
.pd-main-visual-box {
  background: #f1f5f9;
  border-radius: 12px;
  position: relative;
  padding: 30px;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pd-pill-top-left {
  position: absolute;
  top: 16px;
  left: 16px;
  background: #ffffff;
  color: #0b1528;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.pd-main-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 280px;
}

.pd-main-img-wrap img {
  max-height: 100%;
  object-fit: contain;
}

.pd-visual-caption {
  font-size: 11px;
  color: #94a3b8;
  text-align: right;
  margin-top: 10px;
}

/* Thumbs and Stock */
.pd-gallery-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
}

.pd-thumbs-list {
  display: flex;
  gap: 10px;
}

.pd-thumb {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  padding: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pd-thumb.active {
  border-color: #0088cc;
}

.pd-thumb img {
  max-height: 100%;
  object-fit: contain;
}

.pd-stock-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: #0284c7;
  font-weight: 600;
}

.stock-dot {
  width: 8px;
  height: 8px;
  background: #0284c7;
  border-radius: 50%;
}

/* Product Info Column */
.pd-cat-label {
  font-size: 11.5px;
  letter-spacing: 1.5px;
  font-weight: 700;
  color: #0088cc;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: inline-block;
}

.pd-title {
  font-size: 40px;
  font-weight: 800;
  color: #0b1528;
  line-height: 1.15;
  margin-bottom: 12px;
}

.pd-subtitle {
  font-size: 14.5px;
  color: #64748b;
  margin-bottom: 16px;
}

.pd-sku-row {
  display: flex;
  gap: 14px;
  font-size: 12px;
  color: #64748b;
  margin-bottom: 18px;
}

.pd-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.pd-badge {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0b1528;
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 4px;
}

.pd-lead-desc {
  font-size: 13.5px;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 26px;
}

.pd-btn-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.btn-outline-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #cbd5e1;
  color: #0b1528;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 600;
  background: #ffffff;
  transition: all 0.2s;
}

.btn-outline-download:hover {
  border-color: #0088cc;
  color: #0088cc;
}

.pd-help-link-box {
  border-top: 1px solid #f1f5f9;
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pd-help-link-box strong {
  display: block;
  font-size: 13px;
  color: #0b1528;
}

.pd-help-link-box span {
  font-size: 12px;
  color: #64748b;
}

.pd-help-arrow {
  font-size: 13px;
  font-weight: 700;
  color: #0088cc;
}

/* 4-Box Highlights Ribbon */
.pd-highlights-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  background: #f8fafc;
  border: 1px solid #edf2f7;
  border-radius: 12px;
  padding: 24px 30px;
  margin-bottom: 60px;
}

.pd-hl-card {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hl-icon {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: #38bdf8;
  flex-shrink: 0;
}

.pd-hl-card strong {
  display: block;
  font-size: 13.5px;
  color: #0b1528;
}

.pd-hl-card span {
  font-size: 12px;
  color: #64748b;
}

/* =========================================================
   EXACT PRODUCT OVERVIEW SECTION (BRAND BLUE & REDUCED GAP)
   ========================================================= */

.pd-overview-section {
  background: #0088cc; /* Exact Brand Blue */
  border-radius: 12px;
  padding: 34px 38px;  /* Compact vertical padding */
  margin-bottom: 28px; /* Overview aur Specs ke darmiyan ka gap kam */
  color: #ffffff;
}

.pd-overview-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 32px;           /* Title aur Content ka gap reduced */
  align-items: center;
}

.pd-overview-section .pd-section-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #bae6fd;      /* Soft cyan for high contrast */
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}

.pd-overview-left h2 {
  font-size: 30px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 14px;
  letter-spacing: -0.3px;
}

.pd-overview-section .pd-accent-underline {
  width: 40px;
  height: 3px;
  background: #ffffff;
  border-radius: 2px;
}

/* Right Flex Container: Text on Left, Card on Right */
.pd-overview-right-flex {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 28px;
  align-items: center;
}

.pd-overview-section .pd-overview-text {
  font-size: 14px;
  color: #f0f9ff;      /* Off-white readable text */
  line-height: 1.65;
  margin: 0;
}

/* Right Media Card (High Contrast White Container) */
.pd-overview-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
}

.pd-ov-thumb {
  background: #f8fafc;
  height: 125px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.pd-ov-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.pd-ov-caption {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #0b1528;
  text-transform: uppercase;
  padding: 8px 10px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  text-align: center;
}

/* Specs & Resources (Top Spacing Reduced) */
.pd-specs-section {
  border-top: 1px solid #edf2f7;
  padding: 24px 0 50px; /* Spacing drastically reduced from 50px to 24px */
}

.pd-specs-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 26px;
}

.pd-specs-header h2 {
  font-size: 28px;
  font-weight: 800;
  color: #0b1528;
}

.pd-ref-note {
  font-size: 12px;
  color: #94a3b8;
}

.pd-specs-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 40px;
  align-items: flex-start;
}

/* Specs Table */
.pd-specs-table {
  width: 100%;
  border-collapse: collapse;
}

.pd-specs-table th,
.pd-specs-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #edf2f7;
  font-size: 13px;
}

.pd-specs-table th {
  color: #64748b;
  font-weight: 500;
  text-align: left;
  width: 25%;
}

.pd-specs-table td {
  color: #0b1528;
  font-weight: 700;
  width: 25%;
}

/* Resources Box */
.pd-resources-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 28px;
}

.pd-resources-card h3 {
  font-size: 18px;
  font-weight: 800;
  color: #0b1528;
  margin-bottom: 6px;
}

.pd-res-sub {
  font-size: 12.5px;
  color: #64748b;
  margin-bottom: 20px;
}

.pd-downloads-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pd-downloads-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 10px;
}

.pd-file-tag {
  background: #e2e8f0;
  font-size: 10px;
  font-weight: 800;
  color: #475569;
  padding: 3px 6px;
  border-radius: 3px;
}

.pd-file-name {
  font-size: 13px;
  font-weight: 600;
  color: #0b1528;
  flex: 1;
}

.pd-download-action {
  font-size: 11.5px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.5px;
}

.pd-download-action:hover {
  color: #0088cc;
}

.pd-download-all-btn {
  width: 100%;
  justify-content: center;
  margin-bottom: 10px;
}

.pd-download-footnote {
  display: block;
  font-size: 11px;
  color: #94a3b8;
  text-align: center;
}

/* Responsive */
@media (max-width: 1024px) {
  .pd-hero-grid,
  .pd-overview-grid,
  .pd-specs-grid {
    grid-template-columns: 1fr;
  }
  .pd-highlights-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .pd-title {
    font-size: 30px;
  }
  .pd-highlights-grid {
    grid-template-columns: 1fr;
  }
  .pd-btn-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

.pd-badges-row {
  display: none !important;
}

/* =========================================================
   MADE FOR INSTALLERS SPLIT CARD (REPLACING RESOURCES)
   ========================================================= */

.pd-installer-promo-box {
  background: #081a36; /* Deep Navy Blue */
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  min-height: 250px;
  box-shadow: 0 4px 18px rgba(8, 26, 54, 0.12);
  align-items: stretch;
}

.installer-promo-img {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.installer-promo-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.installer-promo-content {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #ffffff;
}

.installer-promo-content h3 {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 10px;
}

.installer-promo-content p {
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.5;
  margin-bottom: 20px;
}

.btn-installer-action {
  background: #0088cc;
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  transition: background-color 0.2s ease;
}

.btn-installer-action:hover {
  background: #0077b5;
  color: #ffffff;
}

/* =========================================================
   KEEP EXPLORING CARD (LIGHT THEMED WITH DYNAMIC LINK)
   ========================================================= */
/* =========================================================
   KEEP EXPLORING CARD (EXACT PIXEL-PERFECT REPLICA)
   ========================================================= */

.pd-keep-exploring-box {
  background: #ffffff !important;
  border: 1px solid #eef2f6 !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.05) !important;
  display: grid !important;
  grid-template-columns: 200px 1fr !important;
  align-items: center !important;
  padding: 30px 28px !important;
  gap: 24px !important;
  min-height: 240px !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

/* Left Graphic Container with Strict Sizing */
.keep-exploring-graphic {
  position: relative !important;
  width: 190px !important;
  height: 180px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

/* Hard Image Constraints so it NEVER overflows */
.keep-exploring-graphic img {
  width: auto !important;
  max-width: 145px !important;
  height: auto !important;
  max-height: 155px !important;
  object-fit: contain !important;
  display: block !important;
  position: relative !important;
  z-index: 2 !important;
  filter: drop-shadow(0 14px 20px rgba(0, 136, 204, 0.16)) !important;
}

/* Design Background Bubbles */
.ke-circle-bubble-lg {
  position: absolute !important;
  top: 15px !important;
  right: 15px !important;
  width: 110px !important;
  height: 110px !important;
  background: #e0f2fe !important;
  opacity: 0.6 !important;
  border-radius: 50% !important;
  z-index: 1 !important;
}

.ke-circle-bubble-sm {
  position: absolute !important;
  bottom: 10px !important;
  left: 0px !important;
  width: 60px !important;
  height: 60px !important;
  background: #f0f9ff !important;
  border-radius: 50% !important;
  z-index: 1 !important;
}

.ke-dot-sm {
  position: absolute !important;
  top: 25px !important;
  left: 15px !important;
  width: 9px !important;
  height: 9px !important;
  background: #0284c7 !important;
  border-radius: 50% !important;
  z-index: 1 !important;
}

/* Right Content Typography */
.keep-exploring-content {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  text-align: left !important;
  padding: 0 !important;
}

.keep-exploring-content h3 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: 28px !important;
  font-weight: 800 !important;
  color: #0b1528 !important;
  line-height: 1.15 !important;
  margin: 0 0 10px 0 !important;
  letter-spacing: -0.5px !important;
}

.keep-exploring-content p {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: 13.5px !important;
  font-weight: 400 !important;
  color: #64748b !important;
  line-height: 1.55 !important;
  margin: 0 0 20px 0 !important;
  max-width: 280px !important;
}

/* Pill Button */
.btn-continue-shopping {
  background: #0088cc !important;
  color: #ffffff !important;
  padding: 10px 22px !important;
  border-radius: 8px !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 3px 10px rgba(0, 136, 204, 0.25) !important;
  border: none !important;
}

.btn-continue-shopping:hover {
  background: #0077b5 !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
}

/* Mobile & Tablet Responsiveness */
@media (max-width: 1024px) {
  .pd-keep-exploring-box {
    grid-template-columns: 1fr !important;
    text-align: center !important;
    padding: 24px !important;
  }
  .keep-exploring-graphic {
    margin: 0 auto 16px auto !important;
  }
  .keep-exploring-content {
    align-items: center !important;
    text-align: center !important;
  }
  .keep-exploring-content p {
    max-width: 100% !important;
  }
}

/* =========================================================
   CATALOGUE PAGE FULL-WIDTH (NO SIDEBAR & NO HELP BANNER)
   ========================================================= */

.full-width-catalog {
  width: 100% !important;
}

.catalog-grid-full {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 22px !important;
  margin-bottom: 40px !important;
}

@media (max-width: 1200px) {
  .catalog-grid-full {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 768px) {
  .catalog-grid-full {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 480px) {
  .catalog-grid-full {
    grid-template-columns: 1fr !important;
  }
}

/* =========================================================
   MOBILE NAVIGATION DRAWER FIX
   ========================================================= */

@media (max-width: 992px) {
  .site-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 999999 !important;
  }

  body.admin-bar .site-header {
    top: 46px !important;
  }

  .mobile-nav-toggle {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    width: 42px !important;
    height: 42px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    cursor: pointer !important;
    gap: 5px !important;
    padding: 0 !important;
  }

  .mobile-nav-toggle span {
    display: block !important;
    width: 22px !important;
    height: 2.5px !important;
    background: #0b1528 !important;
    border-radius: 2px !important;
    transition: all 0.25s ease !important;
  }

  .mobile-nav-toggle.open span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg) !important;
  }
  .mobile-nav-toggle.open span:nth-child(2) {
    opacity: 0 !important;
  }
  .mobile-nav-toggle.open span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg) !important;
  }

  /* Drawer Dropdown */
  .main-nav-menu {
    position: fixed !important;
    top: 80px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-height: calc(100vh - 80px) !important;
    background: #ffffff !important;
    box-shadow: 0 15px 30px rgba(8, 18, 37, 0.15) !important;
    border-bottom: 2px solid #0088cc !important;
    padding: 20px 24px 30px !important;
    overflow-y: auto !important;
    display: none !important;
    z-index: 999998 !important;
  }

  body.admin-bar .main-nav-menu {
    top: 126px !important;
    max-height: calc(100vh - 126px) !important;
  }

  .main-nav-menu.nav-open {
    display: block !important;
  }

  .nav-links {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 14px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .nav-links li {
    width: 100% !important;
    border-bottom: 1px solid #f1f5f9 !important;
    padding-bottom: 10px !important;
  }

  .nav-links a {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #0b1528 !important;
    display: block !important;
  }

  /* Mobile Mega Menu Accordion fallback */
  .mega-dropdown-wrapper {
    position: static !important;
    box-shadow: none !important;
    border: none !important;
    margin-top: 10px !important;
  }

  .mega-dropdown-inner {
    grid-template-columns: 1fr !important;
    min-height: auto !important;
  }

  .mega-sidebar-categories {
    padding: 8px 0 !important;
    border-radius: 6px !important;
  }

  .solutions-sub-menu {
    position: static !important;
    box-shadow: none !important;
    border: 1px solid #e2e8f0 !important;
    margin-top: 8px !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
}

/* =========================================================
   CATALOGS & TECHNICAL GUIDES PAGE (EXACT DESIGN REPLICA)
   ========================================================= */

.catalog-guide-layout {
  background: #f8fafc;
  padding-bottom: 0;
}

/* 1. Hero Section */
.cg-hero-section {
  background: #081120;
  color: #ffffff;
  padding: 40px 0 60px;
  position: relative;
  overflow: hidden;
}

.cg-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.cg-breadcrumbs {
  font-size: 12.5px;
  color: #94a3b8;
  margin-bottom: 20px;
}

.cg-breadcrumbs a {
  color: #94a3b8;
  transition: color 0.2s;
}

.cg-breadcrumbs a:hover {
  color: #38bdf8;
}

.cg-breadcrumbs span {
  color: #ffffff;
}

.cg-pill-tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #38bdf8;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 12px;
}

.cg-hero-title {
  font-size: 46px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.12;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.cg-hero-desc {
  font-size: 15px;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 480px;
}

.cg-hero-actions {
  display: flex;
  gap: 14px;
}

/* Overlapping Brochures Mockup */
.cg-hero-mockup-wrap {
  position: relative;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cg-brochure-card {
  position: absolute;
  width: 170px;
  height: 250px;
  background: #ffffff;
  border-radius: 6px;
  box-shadow: -8px 12px 25px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px 12px;
  color: #0b1528;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.8px;
  border-left: 5px solid #0088cc;
}

.cg-brochure-card img {
  max-height: 130px;
  object-fit: contain;
  margin: auto 0;
}

.bc-4 { right: 20px; top: 15px; transform: scale(0.85); z-index: 1; opacity: 0.6; }
.bc-3 { right: 60px; top: 25px; transform: scale(0.9); z-index: 2; opacity: 0.8; }
.bc-2 { right: 100px; top: 35px; transform: scale(0.95); z-index: 3; opacity: 0.9; }
.bc-1 {
  right: 140px;
  top: 45px;
  width: 185px;
  height: 265px;
  z-index: 4;
  border-left: 6px solid #0088cc;
  padding: 16px;
}

.bc-front-header {
  font-size: 14px;
  font-weight: 800;
  color: #0088cc;
}

.bc-front-img {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bc-front-img img {
  max-height: 100%;
}

.bc-front-footer {
  background: #081120;
  color: #ffffff;
  padding: 6px 10px;
  font-size: 9px;
  font-weight: 800;
  border-radius: 3px;
  text-align: center;
  margin: 0 -8px -8px;
}

/* 2. Filter Bar */
.cg-filter-bar-section {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 16px 0;
  position: sticky;
  top: 80px;
  z-index: 99;
}

.cg-filter-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.cg-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 14px;
  width: 250px;
}

.cg-search-box input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 13px;
  color: #0b1528;
  width: 100%;
}

.cg-pill-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cg-filter-btn {
  background: transparent;
  border: 1px solid #cbd5e1;
  color: #334155;
  padding: 7px 15px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.cg-filter-btn:hover,
.cg-filter-btn.active {
  background: #0088cc;
  border-color: #0088cc;
  color: #ffffff;
}

.cg-count-sort-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cg-count-label {
  font-size: 12.5px;
  color: #64748b;
  font-weight: 600;
}

.cg-sort-select {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12.5px;
  color: #0b1528;
  outline: none;
}

/* 3. Cards Grid */
.cg-grid-section {
  padding: 40px 0 60px;
}

.cg-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

.cg-doc-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s, box-shadow 0.2s;
}

.cg-doc-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.cg-card-preview-box {
  background: #f1f5f9;
  height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 16px;
}

.cg-card-tag {
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 11px;
  font-weight: 800;
  color: #0088cc;
}

.cg-card-preview-box img {
  max-height: 120px;
  object-fit: contain;
}

.cg-preview-banner.dark-strip {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #081120;
  color: #ffffff;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 1px;
  text-align: center;
  padding: 5px 8px;
}

.cg-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.cg-cat-pill {
  background: #e0f2fe;
  color: #0284c7;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 14px;
  width: fit-content;
  margin-bottom: 10px;
}

.cg-card-body h3 {
  font-size: 18px;
  font-weight: 800;
  color: #0b1528;
  margin-bottom: 8px;
  line-height: 1.3;
}

.cg-card-body p {
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 20px;
  flex: 1;
}

.cg-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #f1f5f9;
  padding-top: 14px;
}

.cg-file-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
}

.pdf-badge {
  background: #fee2e2;
  color: #dc2626;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}

.btn-download-pdf {
  background: #0088cc;
  color: #ffffff;
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s;
}

.btn-download-pdf:hover {
  background: #0077b5;
  color: #ffffff;
}

/* Wide Banner Card (Raceway Solutions) */
.cg-wide-doc-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px 30px;
  display: flex;
  align-items: center;
  gap: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.cg-wide-left-img {
  width: 140px;
  height: 90px;
  background: #f8fafc;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  flex-shrink: 0;
}

.cg-wide-left-img img {
  max-height: 100%;
  object-fit: contain;
}

.cg-wide-content {
  flex: 1;
}

.cg-wide-content h3 {
  font-size: 20px;
  font-weight: 800;
  color: #0b1528;
  margin: 6px 0;
}

.cg-wide-content p {
  font-size: 13px;
  color: #64748b;
  margin: 0;
}

.cg-wide-action {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.btn-view-guide {
  background: #0088cc;
  color: #ffffff;
  padding: 9px 18px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-view-guide:hover {
  background: #0077b5;
  color: #ffffff;
}

/* 4. Technical Info Ribbon (3 Cards) */
.cg-tech-info-section {
  background: #081120;
  color: #ffffff;
  padding: 34px 0;
}

.cg-tech-info-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr 1fr;
  gap: 20px;
  align-items: center;
}

.tech-info-intro h2 {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
}

.tech-feature-cell {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #0f1c34;
  border: 1px solid #1a2942;
  border-radius: 10px;
  padding: 16px 18px;
  transition: all 0.2s ease;
  color: #ffffff;
}

.tech-feature-cell:hover {
  border-color: #0088cc;
  background: #152545;
}

.tf-icon-circ {
  width: 38px;
  height: 38px;
  background: rgba(0, 136, 204, 0.15);
  color: #38bdf8;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tf-body {
  flex: 1;
}

.tf-body h4 {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2px;
}

.tf-body p {
  font-size: 11.5px;
  color: #94a3b8;
  margin: 0;
  line-height: 1.35;
}

.tf-arrow {
  color: #38bdf8;
  font-size: 16px;
  font-weight: 700;
}

/* Responsive */
@media (max-width: 1024px) {
  .cg-hero-grid {
    grid-template-columns: 1fr;
  }
  .cg-hero-mockup-wrap {
    display: none;
  }
  .cg-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cg-tech-info-grid {
    grid-template-columns: 1fr 1fr;
  }
  .tech-info-intro {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .cg-hero-title {
    font-size: 32px;
  }
  .cg-cards-grid {
    grid-template-columns: 1fr;
  }
  .cg-wide-doc-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .cg-wide-action {
    width: 100%;
    justify-content: space-between;
  }
  .cg-tech-info-grid {
    grid-template-columns: 1fr;
  }
  .tech-info-intro {
    grid-column: span 1;
  }
}




/* =========================================================
   DYNAMIC CATALOGUE SECTIONS WITH SLIDING FUNCTIONALITY
   ========================================================= */

.dynamic-catalogue-page {
  background: #f8fafc;
}

.catalogue-sections-container {
  padding: 40px 0 60px;
}

.parent-catalog-section {
  padding: 36px 0;
  border-bottom: 1px solid #eef2f6;
}

.catalog-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
}

.csh-badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #0088cc;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: block;
}

.csh-text h2 {
  font-size: 28px;
  font-weight: 800;
  color: #0b1528;
  margin: 0 0 6px;
  letter-spacing: -0.3px;
}

.csh-text p {
  font-size: 13.5px;
  color: #64748b;
  margin: 0;
}

/* Slider Controls */
.slider-arrows-wrap {
  display: flex;
  gap: 10px;
}

.slider-arrow-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0b1528;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.slider-arrow-btn:hover {
  background: #0088cc;
  border-color: #0088cc;
  color: #ffffff;
}

/* Carousel Scroll Track */
.catalog-slider-wrapper {
  overflow: hidden;
  position: relative;
}

.catalog-slider-track {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 6px 4px 18px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Hide standard scrollbar */
}

.catalog-slider-track::-webkit-scrollbar {
  display: none;
}

/* Individual Slide Card */
.catalog-slide-card {
  flex: 0 0 320px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.catalog-slide-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.csc-preview-box {
  background: #f1f5f9;
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 16px;
}

.csc-tag {
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 11px;
  font-weight: 800;
  color: #0088cc;
}

.csc-img-wrap {
  height: 125px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.csc-img-wrap img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.csc-strip {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #081120;
  color: #ffffff;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 1px;
  text-align: center;
  padding: 5px 8px;
}

.csc-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.csc-pill {
  background: #e0f2fe;
  color: #0284c7;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  width: fit-content;
  margin-bottom: 8px;
}

.csc-body h3 {
  font-size: 17px;
  font-weight: 800;
  color: #0b1528;
  margin: 0 0 6px;
  line-height: 1.3;
}

.csc-body p {
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.5;
  margin: 0 0 16px;
  flex: 1;
}

.csc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #f1f5f9;
  padding-top: 12px;
}

.csc-pdf-info {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: #64748b;
  font-weight: 600;
}

.pdf-tag {
  background: #fee2e2;
  color: #dc2626;
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 3px;
}

.btn-explore-cat {
  background: #0088cc;
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-explore-cat:hover {
  background: #0077b5;
  color: #ffffff;
}

.empty-slider-item {
  padding: 30px;
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  color: #64748b;
  font-size: 13px;
  width: 100%;
}


/* =========================================================
   RESOURCES HUB PAGE (EXACT DESIGN REPLICA)
   ========================================================= */

.resources-hub-layout {
  background: #f8fafc;
}

/* 1. Hero Section */
.rh-hero-section {
  background: #081120;
  color: #ffffff;
  padding: 40px 0 60px;
  position: relative;
  overflow: hidden;
}

.rh-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.rh-breadcrumbs {
  font-size: 12.5px;
  color: #94a3b8;
  margin-bottom: 24px;
}

.rh-breadcrumbs a {
  color: #94a3b8;
}

.rh-breadcrumbs span {
  color: #ffffff;
}

.rh-hero-title {
  font-size: 44px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.rh-hero-desc {
  font-size: 15px;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 460px;
}

.rh-hero-actions {
  display: flex;
  gap: 14px;
}

/* 2. Three Quick Nav Cards */
.rh-nav-cards-section {
  padding: 30px 0;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
}

.rh-nav-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.rh-nav-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  color: #0b1528;
  transition: all 0.2s ease;
}

.rh-nav-card:hover {
  border-color: #0088cc;
  background: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 136, 204, 0.08);
}

.rnc-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #e0f2fe;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rnc-text {
  flex: 1;
}

.rnc-text h3 {
  font-size: 15px;
  font-weight: 700;
  color: #0b1528;
  margin-bottom: 3px;
}

.rnc-text p {
  font-size: 12px;
  color: #64748b;
  line-height: 1.4;
  margin: 0;
}

.rnc-arrow {
  font-size: 16px;
  font-weight: 700;
  color: #0088cc;
}

/* 3. Filter Bar */
.rh-filter-bar-section {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 14px 0;
  position: sticky;
  top: 80px;
  z-index: 90;
}

.rh-filter-bar-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.rh-search-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 8px 16px;
  width: 240px;
}

.rh-search-input-wrap input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 13px;
  color: #0b1528;
  width: 100%;
}

.rh-pill-group {
  display: flex;
  gap: 8px;
}

.rh-pill-btn {
  background: transparent;
  border: 1px solid #cbd5e1;
  color: #475569;
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.rh-pill-btn:hover,
.rh-pill-btn.active {
  background: #0088cc;
  border-color: #0088cc;
  color: #ffffff;
}

.rh-count-indicator {
  font-size: 12.5px;
  color: #64748b;
  font-weight: 600;
}

/* 4. Main 2-Column Content */
.rh-content-section {
  padding: 40px 0 60px;
}

.rh-main-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 36px;
  align-items: flex-start;
}

/* Left Sidebar */
.rh-filter-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.rh-filter-widget {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px;
}

.rfw-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  margin-bottom: 12px;
}

.rfw-header h4 {
  font-size: 11.5px;
  font-weight: 800;
  color: #0b1528;
  letter-spacing: 0.5px;
  margin: 0;
}

.rfw-header span {
  font-size: 10px;
  color: #64748b;
}

.rfw-body {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.rh-check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #475569;
  cursor: pointer;
}

.rh-check-item input {
  accent-color: #0088cc;
}

/* Right Cards Grid */
.rh-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.rh-item-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s, box-shadow 0.2s;
}

.rh-item-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.rh-card-banner {
  height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.rh-card-banner.dark-navy {
  background: #081120;
  color: #ffffff;
}

.rh-card-banner.navy-iso {
  background: #0f1c34;
  color: #ffffff;
  gap: 10px;
}

.rh-card-banner.fiber-preview {
  background: #f1f5f9;
  padding: 14px;
}

.rh-card-banner.light-mesh {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 10px;
}

.rh-card-banner.dark-rack {
  background: #081120;
  padding: 10px;
}

.rh-card-banner.video-cover {
  background: #081120;
  position: relative;
}

.rh-card-banner img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.rh-brand-logo {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.rh-brand-logo-dark {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 11px;
  font-weight: 800;
  color: #0088cc;
}

.rh-brand-sub {
  font-size: 10px;
  color: #94a3b8;
  margin-top: 4px;
}

.iso-seal {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 2px;
  border: 2px solid #38bdf8;
  padding: 4px 14px;
  border-radius: 6px;
  color: #38bdf8;
}

.iso-numbers {
  display: flex;
  gap: 12px;
  font-size: 11px;
  color: #94a3b8;
}

.rh-strip {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #081120;
  color: #ffffff;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1px;
  text-align: center;
  padding: 4px 6px;
}

.video-play-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}

.rh-card-details {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.rh-card-details h3 {
  font-size: 16.5px;
  font-weight: 800;
  color: #0b1528;
  margin-bottom: 6px;
  line-height: 1.3;
}

.rh-card-details p {
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.48;
  margin-bottom: 20px;
  flex: 1;
}

.rh-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #f1f5f9;
  padding-top: 12px;
}

.rh-file-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: #64748b;
  font-weight: 600;
}

.video-meta {
  color: #0284c7;
}

.video-icon {
  font-size: 9px;
}

.btn-rh-download {
  background: #0088cc;
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-rh-download:hover {
  background: #0077b5;
}

.btn-rh-watch {
  background: #0284c7;
}

/* 5. Bottom Help Strip */
.rh-help-strip {
  background: #081120;
  color: #ffffff;
  padding: 30px 0;
}

.rh-help-grid {
  display: grid;
  grid-template-columns: 1fr 2.2fr;
  gap: 30px;
  align-items: center;
}

.rh-help-lead {
  display: flex;
  align-items: center;
  gap: 14px;
}

.rh-headset-icon {
  width: 42px;
  height: 42px;
  background: rgba(56, 189, 248, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rh-help-lead h3 {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 4px;
}

.rh-help-lead p {
  font-size: 12.5px;
  color: #94a3b8;
  margin: 0;
}

.rh-help-links-flex {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.rh-help-box {
  background: #0f1c34;
  border: 1px solid #1a2942;
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  transition: all 0.2s;
}

.rh-help-box:hover {
  border-color: #0088cc;
  background: #152545;
}

.rhb-icon {
  width: 32px;
  height: 32px;
  color: #38bdf8;
  flex-shrink: 0;
}

.rh-help-box h4 {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 2px;
}

.rh-help-box p {
  font-size: 11px;
  color: #94a3b8;
  margin: 0;
  line-height: 1.3;
}

.rhb-arrow {
  color: #38bdf8;
  font-weight: 700;
}

/* Responsiveness */
@media (max-width: 1024px) {
  .rh-hero-grid,
  .rh-main-grid,
  .rh-help-grid {
    grid-template-columns: 1fr;
  }
  .rh-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .rh-nav-grid,
  .rh-help-links-flex {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .rh-hero-title {
    font-size: 30px;
  }
  .rh-cards-grid {
    grid-template-columns: 1fr;
  }
  .rh-filter-bar-grid {
    flex-direction: column;
    align-items: flex-start;
  }
  .rh-search-input-wrap {
    width: 100%;
  }
}



/* =========================================================
   GIGAMEDIA MULTI-COLUMN 3-TIER MEGA MENU STYLES
   ========================================================= */

.mega-dropdown-inner {
  grid-template-columns: 280px 1fr !important;
  min-height: 480px !important;
}

.mega-sidebar-categories {
  background: #004b87 !important;
  padding: 10px 0 !important;
}

.mega-sidebar-categories .cat-item {
  padding: 12px 20px !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  border-left: 3px solid transparent !important;
}

.mega-sidebar-categories .cat-item:hover,
.mega-sidebar-categories .cat-item.active {
  background: #003360 !important;
  border-left-color: #38bdf8 !important;
  color: #ffffff !important;
}

.mega-subcategories-container {
  padding: 30px 40px !important;
  background: #ffffff !important;
  overflow-y: auto !important;
  max-height: 540px !important;
}

/* Multi-column grid for Sub-Catalogues */
.mega-tiered-columns-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  column-gap: 36px !important;
  row-gap: 28px !important;
}

.mega-column-block {
  display: flex !important;
  flex-direction: column !important;
}

.mega-col-heading {
  margin: 0 0 10px 0 !important;
}

.mega-col-heading a {
  font-size: 14px !important;
  font-weight: 800 !important;
  color: #004b87 !important;
  letter-spacing: 0.3px !important;
  text-decoration: none !important;
  display: block !important;
}

.mega-col-heading a:hover {
  color: #0088cc !important;
}

.mega-sub-items-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 7px !important;
}

.mega-sub-items-list li a {
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #334155 !important;
  text-decoration: none !important;
  transition: color 0.15s ease !important;
}

.mega-sub-items-list li a:hover {
  color: #0088cc !important;
  text-decoration: underline !important;
}

.mega-show-all-link {
  display: inline-block !important;
  margin-top: 8px !important;
  font-size: 12.5px !important;
  font-weight: 800 !important;
  color: #004b87 !important;
  text-decoration: underline !important;
}

.mega-show-all-link:hover {
  color: #0088cc !important;
}

@media (max-width: 1200px) {
  .mega-tiered-columns-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}



/* =========================================================
   EXACT GIGAMEDIA MEGA MENU LOOK & FEEL (MATCHING SCREENSHOTS)
   ========================================================= */

.mega-dropdown-inner {
  display: grid !important;
  grid-template-columns: 290px 1fr !important;
  min-height: 520px !important;
  background: #ffffff !important;
}

/* Left Sidebar Solid Blue */
.mega-sidebar-categories {
  background: #004b87 !important; /* Exact Gigamedia Blue */
  padding: 24px 0 !important;
}

.mega-sidebar-categories ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.mega-sidebar-categories .cat-item {
  padding: 13px 26px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  cursor: pointer !important;
  transition: all 0.1s ease !important;
  background: transparent !important;
}

.mega-sidebar-categories .cat-name {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  letter-spacing: 0.1px !important;
}

.mega-sidebar-categories .cat-arrow {
  color: #ffffff !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  opacity: 0 !important;
  transform: translateX(-4px) !important;
  transition: all 0.15s ease !important;
}

/* Active and Hover Item State (Underline + White Arrow as in Screenshots) */
.mega-sidebar-categories .cat-item.active .cat-name,
.mega-sidebar-categories .cat-item:hover .cat-name {
  text-decoration: underline !important;
  text-underline-offset: 4px !important;
}

.mega-sidebar-categories .cat-item.active .cat-arrow,
.mega-sidebar-categories .cat-item:hover .cat-arrow {
  opacity: 1 !important;
  transform: translateX(0) !important;
}

/* Right Content Area */
.mega-subcategories-container {
  padding: 36px 44px !important;
  background: #ffffff !important;
  overflow-y: auto !important;
}

.mega-3col-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  column-gap: 40px !important;
  row-gap: 26px !important;
  align-items: flex-start !important;
}

.mega-col {
  display: flex !important;
  flex-direction: column !important;
}

.mega-group h4 {
  font-size: 14.5px !important;
  font-weight: 800 !important;
  color: #004b87 !important;
  letter-spacing: 0.2px !important;
  margin: 0 0 12px 0 !important;
  line-height: 1.2 !important;
}

.mega-group ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

.mega-group ul li a {
  font-size: 13.5px !important;
  font-weight: 500 !important;
  color: #004b87 !important;
  line-height: 1.4 !important;
  text-decoration: none !important;
  transition: color 0.15s ease !important;
}

.mega-group ul li a:hover {
  color: #0284c7 !important;
  text-decoration: underline !important;
}

.mega-show-all {
  display: inline-block !important;
  margin-top: 10px !important;
  font-size: 13.5px !important;
  font-weight: 800 !important;
  color: #004b87 !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
}

.mega-show-all:hover {
  color: #0284c7 !important;
}

@media (max-width: 1100px) {
  .mega-3col-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}


/* =========================================================
   DYNAMIC SCROLLABLE FIX FOR LEFT BLUE SIDEBAR
   ========================================================= */

/* Dropdown ko screen ki height ke andar bound rakhta hai */
.mega-dropdown-inner {
  max-height: calc(100vh - 100px) !important;
  overflow: hidden !important;
}

/* Left Blue Sidebar par dynamic scroll enable karta hai */
.mega-sidebar-categories {
  height: 100% !important;
  max-height: calc(100vh - 100px) !important;
  overflow-y: auto !important;
  scrollbar-width: thin !important;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent !important;
}

/* Sleek subtle scrollbar for Chrome/Edge/Safari */
.mega-sidebar-categories::-webkit-scrollbar {
  width: 5px !important;
}

.mega-sidebar-categories::-webkit-scrollbar-track {
  background: transparent !important;
}

.mega-sidebar-categories::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25) !important;
  border-radius: 4px !important;
}

.mega-sidebar-categories::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5) !important;
}

/* Right content panel ko bhi scrollable rakhta hai taake layout na toote */
.mega-subcategories-container {
  height: 100% !important;
  max-height: calc(100vh - 100px) !important;
  overflow-y: auto !important;
}

/* =========================================================
   XTND PRODUCT MEGA MENU — DESKTOP SINGLE-VIEW OVERRIDES
   2026-09-11
   - All 10 parent catalogues visible together
   - No internal mega-menu scrollbars
   - Sub-catalogues visually highlighted
   - Direct-product sub-catalogues show "View products"
   ========================================================= */

@media (min-width: 1101px) {
  .mega-dropdown-inner {
    grid-template-columns: 270px minmax(0, 1fr) !important;
    min-height: 0 !important;
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
    align-items: stretch !important;
  }

  .mega-sidebar-categories {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 10px 0 !important;
    scrollbar-width: none !important;
  }

  .mega-sidebar-categories::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
  }

  .mega-sidebar-categories ul {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
  }

  .mega-sidebar-categories .cat-item {
    min-height: 39px !important;
    padding: 9px 20px !important;
    border-left-width: 3px !important;
  }

  .mega-sidebar-categories .cat-name {
    font-size: 13.5px !important;
    line-height: 1.25 !important;
    white-space: nowrap !important;
  }

  .mega-subcategories-container {
    height: auto !important;
    max-height: none !important;
    min-height: 410px !important;
    overflow: visible !important;
    padding: 20px 28px 22px !important;
  }

  .mega-content-panel {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .mega-3col-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    column-gap: 24px !important;
    row-gap: 16px !important;
    align-items: start !important;
  }

  .mega-col,
  .mega-group {
    min-width: 0 !important;
  }

  /* Highlight Level-2 Sub-Catalogue headings without making them visually heavy. */
  .mega-group h4 {
    margin: 0 0 8px 0 !important;
    padding: 7px 9px !important;
    background: #eef8ff !important;
    border-left: 3px solid #0088cc !important;
    border-radius: 5px !important;
    line-height: 1.2 !important;
  }

  .mega-group h4 a {
    display: block !important;
    color: #004b87 !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    letter-spacing: 0.15px !important;
    text-decoration: none !important;
  }

  .mega-group h4:hover {
    background: #e4f4ff !important;
  }

  .mega-group ul {
    gap: 4px !important;
  }

  .mega-group ul li a {
    font-size: 12.25px !important;
    line-height: 1.25 !important;
    color: #07588f !important;
  }

  .mega-show-all,
  .mega-show-all-link {
    display: none !important;
  }

  .mega-view-products {
    display: inline-flex !important;
    align-items: center !important;
    margin-top: 3px !important;
    padding: 6px 9px !important;
    border: 1px solid #b9ddf5 !important;
    border-radius: 5px !important;
    background: #f8fcff !important;
    color: #0077b5 !important;
    font-size: 12px !important;
    line-height: 1 !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
  }

  .mega-view-products:hover {
    background: #0088cc !important;
    border-color: #0088cc !important;
    color: #ffffff !important;
  }

  .mega-parent-direct-products {
    padding: 12px 4px !important;
  }

  .mega-parent-direct-products h3 {
    margin: 0 0 10px !important;
    color: #004b87 !important;
    font-size: 18px !important;
    font-weight: 800 !important;
  }

  .mega-empty-message {
    color: #64748b !important;
    font-size: 12.5px !important;
  }
}

/* =========================================================
   PRODUCT OVERVIEW - MOBILE STACK FIX
   Content first, image card below
   ========================================================= */
@media (max-width: 767px) {
  .pd-overview-section {
    padding: 24px 18px !important;
    border-radius: 10px !important;
  }

  .pd-overview-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    align-items: stretch !important;
  }

  .pd-overview-right-flex {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    align-items: stretch !important;
  }

  .pd-overview-left h2 {
    font-size: 26px !important;
    line-height: 1.2 !important;
    margin-bottom: 12px !important;
  }

  .pd-overview-section .pd-overview-text {
    width: 100% !important;
    max-width: none !important;
    font-size: 14px !important;
    line-height: 1.65 !important;
  }

  .pd-overview-card {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
  }

  .pd-ov-thumb {
    width: 100% !important;
    height: auto !important;
    min-height: 180px !important;
    padding: 20px !important;
  }

  .pd-ov-thumb img {
    width: 100% !important;
    max-width: 280px !important;
    max-height: 220px !important;
    margin: 0 auto !important;
    object-fit: contain !important;
  }

  .pd-ov-caption {
    padding: 10px 12px !important;
    line-height: 1.35 !important;
  }
}

/* =========================================================
   HOMEPAGE HERO - MOBILE GAP FIX
   Prevent equal-height grid rows from creating blank space
   ========================================================= */
@media (max-width: 640px) {
  .hero-right-cards {
    display: grid !important;
    grid-template-rows: none !important;
    grid-auto-rows: auto !important;
    gap: 12px !important;
    align-items: start !important;
  }

  .hero-card.hero-card-media {
    width: 100% !important;
    height: 145px !important;
    min-height: 0 !important;
    margin: 0 !important;
  }

  .hero-card.card-split-installer {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
  }

  .hero-right-cards > * {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }
}

/* =========================================================
   PRODUCT CATEGORY CHILD CARDS - RESPONSIVE GRID FIX
   Desktop: 3 columns (existing)
   Tablet: 2 columns
   Mobile: 1 column
   ========================================================= */
@media (min-width: 641px) and (max-width: 1024px) {
  .cat-subcategories-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 18px !important;
  }
}

@media (max-width: 640px) {
  .cat-subcategories-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    margin-bottom: 28px !important;
  }

  .cat-subcategories-grid .subcat-card-box {
    width: 100% !important;
    min-width: 0 !important;
  }

  .cat-subcategories-grid .subcat-card-box > div:first-child {
    height: 170px !important;
    padding: 14px !important;
  }

  .cat-subcategories-grid .subcat-card-box > div:first-child img {
    max-height: 140px !important;
    width: auto !important;
    max-width: 100% !important;
    object-fit: contain !important;
  }

  .cat-subcategories-grid .subcat-card-box > div:last-child {
    padding: 16px !important;
  }

  .cat-subcategories-grid .subcat-card-box h3 {
    font-size: 16px !important;
    line-height: 1.3 !important;
  }

  .cat-subcategories-grid .subcat-card-box p {
    font-size: 13px !important;
    line-height: 1.5 !important;
  }
}

/* =========================================================
   LEAF PRODUCT CATEGORY - MOBILE FILTER + BOTTOM STATS FIX
   ========================================================= */
.mobile-filter-toggle {
  display: none;
}

@media (max-width: 640px) {
  .family-layout-grid {
    display: block !important;
    margin-bottom: 28px !important;
  }

  .mobile-filter-toggle {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-height: 48px !important;
    margin: 0 0 14px !important;
    padding: 0 16px !important;
    border: 1px solid #dbe4ee !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    color: #0b1528 !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    cursor: pointer !important;
  }

  .mobile-filter-toggle-icon {
    width: 28px !important;
    height: 28px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    background: #eaf7ff !important;
    color: #0088cc !important;
    font-size: 20px !important;
    line-height: 1 !important;
  }

  .family-filter-sidebar {
    display: none !important;
    width: 100% !important;
    margin: 0 0 16px !important;
    padding: 16px !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
  }

  .family-filter-sidebar.is-open {
    display: block !important;
  }

  .family-filter-sidebar .sidebar-title {
    display: none !important;
  }

  .family-filter-sidebar #product-filter-form {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0 16px !important;
  }

  .family-filter-sidebar .filter-widget {
    margin: 0 !important;
    padding: 12px 0 !important;
    min-width: 0 !important;
  }

  .family-filter-sidebar .filter-widget h4 {
    margin-bottom: 8px !important;
    font-size: 12.5px !important;
  }

  .family-filter-sidebar .filter-check {
    font-size: 12px !important;
    line-height: 1.45 !important;
    margin-bottom: 5px !important;
  }

  .family-filter-sidebar .reset-filter-link {
    grid-column: 1 / -1 !important;
    margin-top: 8px !important;
    display: inline-flex !important;
    width: fit-content !important;
  }

  .family-controls-row {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    align-items: stretch !important;
    margin-bottom: 16px !important;
  }

  .active-tags-list {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px !important;
  }

  .product-count-lbl {
    width: 100% !important;
    margin: 0 !important;
    font-size: 12.5px !important;
  }

  .family-sort-box {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 10px !important;
  }

  .family-sort-box label {
    white-space: nowrap !important;
  }

  .sort-dropdown-ui {
    width: 100% !important;
    min-width: 0 !important;
  }

  .family-products-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .family-item-card,
  .family-promo-card {
    min-width: 0 !important;
    width: 100% !important;
  }

  .cat-value-props.cat-stats-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0 !important;
    padding: 0 !important;
    margin-top: 28px !important;
    overflow: hidden !important;
  }

  .cat-stats-strip .cat-vp-box {
    min-width: 0 !important;
    padding: 16px 14px !important;
    border-right: 1px solid #e2e8f0 !important;
    border-bottom: 1px solid #e2e8f0 !important;
    align-items: flex-start !important;
  }

  .cat-stats-strip .cat-vp-box:nth-child(2n) {
    border-right: 0 !important;
  }

  .cat-stats-strip .cat-vp-box:last-child {
    grid-column: 1 / -1 !important;
    border-right: 0 !important;
    border-bottom: 0 !important;
  }

  .cat-stats-strip .cat-vp-box h4 {
    font-size: 14px !important;
    line-height: 1.2 !important;
    overflow-wrap: anywhere !important;
  }

  .cat-stats-strip .cat-vp-box p {
    font-size: 11.5px !important;
    line-height: 1.35 !important;
    overflow-wrap: anywhere !important;
  }
}

@media (max-width: 380px) {
  .family-filter-sidebar #product-filter-form {
    grid-template-columns: 1fr !important;
  }
}

/* =========================================================
   RESOURCES HUB - MOBILE RESPONSIVE FIX
   ========================================================= */
.rh-mobile-filter-toggle {
  display: none;
}

@media (max-width: 640px) {
  /* Keep resources controls compact on phones */
  .rh-filter-bar-section {
    position: static !important;
    top: auto !important;
    padding: 12px 0 !important;
  }

  .rh-filter-bar-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    align-items: stretch !important;
  }

  .rh-search-input-wrap {
    width: 100% !important;
  }

  .rh-pill-group {
    width: 100% !important;
    display: flex !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding-bottom: 3px !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .rh-pill-group::-webkit-scrollbar {
    display: none !important;
  }

  .rh-pill-btn {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    padding: 6px 12px !important;
    font-size: 12px !important;
  }

  .rh-count-indicator {
    width: 100% !important;
    font-size: 12px !important;
  }

  /* Main content: hide giant filter sidebar until user opens it */
  .rh-content-section {
    padding: 22px 0 40px !important;
  }

  .rh-main-grid {
    display: block !important;
  }

  .rh-mobile-filter-toggle {
    width: 100% !important;
    min-height: 48px !important;
    margin: 0 0 14px !important;
    padding: 0 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    border: 1px solid #dbe4ee !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    color: #0b1528 !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    cursor: pointer !important;
  }

  .rh-mobile-filter-toggle-icon {
    width: 28px !important;
    height: 28px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    background: #eaf7ff !important;
    color: #0088cc !important;
    font-size: 20px !important;
    line-height: 1 !important;
  }

  .rh-filter-sidebar {
    display: none !important;
    width: 100% !important;
    margin: 0 0 16px !important;
    gap: 12px !important;
  }

  .rh-filter-sidebar.is-open {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  .rh-filter-widget {
    padding: 14px !important;
    margin: 0 !important;
  }

  .rfw-header {
    margin-bottom: 10px !important;
  }

  .rfw-header h4 {
    font-size: 11.5px !important;
  }

  .rfw-body {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px 12px !important;
  }

  .rh-check-item {
    min-width: 0 !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
  }

  /* Resource cards remain clean single-column on mobile */
  .rh-cards-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .rh-item-card {
    min-width: 0 !important;
    width: 100% !important;
  }

  .rh-card-banner {
    height: 160px !important;
  }

  .rh-card-details {
    padding: 16px !important;
  }

  .rh-card-details h3 {
    font-size: 15.5px !important;
  }

  .rh-card-actions {
    gap: 10px !important;
    flex-wrap: wrap !important;
  }

  /* Quick nav cards: more compact, no oversized stacking */
  .rh-nav-cards-section {
    padding: 18px 0 !important;
  }

  .rh-nav-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .rh-nav-card {
    padding: 13px 14px !important;
    gap: 12px !important;
  }

  .rnc-icon-wrap {
    width: 38px !important;
    height: 38px !important;
  }

  .rnc-text h3 {
    font-size: 14px !important;
  }

  .rnc-text p {
    font-size: 11.5px !important;
    line-height: 1.35 !important;
  }

  /* Bottom support cards */
  .rh-help-strip {
    padding: 24px 0 !important;
  }

  .rh-help-grid,
  .rh-help-links-flex {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .rh-help-box {
    padding: 13px 14px !important;
  }
}

@media (max-width: 380px) {
  .rfw-body {
    grid-template-columns: 1fr !important;
  }
}

/* =========================================================
   RESOURCES HUB - TABLET RESPONSIVE FIX
   641px–1024px: compact filters + 2-column resource layout
   ========================================================= */
@media (min-width: 641px) and (max-width: 1024px) {

  /* Filter/search bar */
  .rh-filter-bar-section {
    position: static !important;
    top: auto !important;
    padding: 12px 0 !important;
  }

  .rh-filter-bar-grid {
    display: grid !important;
    grid-template-columns: minmax(220px, 0.9fr) minmax(0, 2fr) auto !important;
    align-items: center !important;
    gap: 12px !important;
  }

  .rh-search-input-wrap {
    width: 100% !important;
    min-width: 0 !important;
  }

  .rh-pill-group {
    display: flex !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
    min-width: 0 !important;
    padding-bottom: 2px !important;
  }

  .rh-pill-group::-webkit-scrollbar {
    display: none !important;
  }

  .rh-pill-btn {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
  }

  .rh-count-indicator {
    white-space: nowrap !important;
  }

  /* Main area: filters become collapsible on tablet too */
  .rh-content-section {
    padding: 28px 0 50px !important;
  }

  .rh-main-grid {
    display: block !important;
  }

  .rh-mobile-filter-toggle {
    width: 100% !important;
    min-height: 50px !important;
    margin: 0 0 16px !important;
    padding: 0 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    border: 1px solid #dbe4ee !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    color: #0b1528 !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    cursor: pointer !important;
  }

  .rh-mobile-filter-toggle-icon {
    width: 30px !important;
    height: 30px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    background: #eaf7ff !important;
    color: #0088cc !important;
    font-size: 20px !important;
    line-height: 1 !important;
  }

  .rh-filter-sidebar {
    display: none !important;
    width: 100% !important;
    margin: 0 0 18px !important;
  }

  .rh-filter-sidebar.is-open {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }

  .rh-filter-widget {
    margin: 0 !important;
    min-width: 0 !important;
    padding: 15px !important;
  }

  .rfw-header {
    margin-bottom: 10px !important;
  }

  .rfw-body {
    gap: 7px !important;
  }

  .rh-check-item {
    font-size: 12px !important;
  }

  /* Tablet resource cards: exactly 2 columns */
  .rh-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 18px !important;
  }

  .rh-item-card {
    min-width: 0 !important;
    width: 100% !important;
  }

  .rh-card-banner {
    height: 165px !important;
  }

  .rh-card-details {
    padding: 17px !important;
  }

  /* Quick navigation: 2 columns instead of one huge vertical stack */
  .rh-nav-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }

  .rh-nav-card:last-child {
    grid-column: 1 / -1 !important;
  }

  /* Bottom support area */
  .rh-help-grid {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  .rh-help-links-flex {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  .rh-help-box {
    min-width: 0 !important;
  }
}

