/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/* Limit header width */
.header .header-inner.container {
  max-width: 1350px !important;   /* set your desired width */

}

.html.header-button-1 .header-button .button.primary {
    width: 170px;
    height: 50px;
    font-size: 15px; /* Assuming font size matches "height" in Figma */
	    font-family: 'avenir-next-lt-pro', sans-serif; /* Apply the specified font */
	font-weight: 500;
    border-radius: 8px;
    border: 1px solid #D93228; /* Border color from Figma */
    background-color: #D93228 !important; /* Set the button background to match border color */
    color: #ffffff; /* White text for contrast */
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none; /* Remove any underline on the link */
}

/* Optional: Add a hover effect */
.html.header-button-1 .header-button .button.primary:hover {
background-color: #D93228 !important; /* Set the button background to match border color */
	
}

.header-wrapper:not(.stuck) .header-button-1 .button.primary {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.header-wrapper.stuck .header-button-1 .button.primary {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transition: opacity 160ms ease;
}



.header-nav.header-nav-main {
  margin: 0 auto;   /* pushes the UL to the center */
  display: flex;
  justify-content: center;
}

.header-nav.header-nav-main {
  display: flex;
  justify-content: center; /* keeps them centered */
  gap: 30px; /* adjust spacing as you like */
}

/* Style all menu links */
.header-nav.header-nav-main .nav-top-link {
  font-family: 'avenir-next-lt-pro', sans-serif; /* replace with your font */
  font-weight: 500; /* adjust to match the loaded font */
  text-transform: none; /* optional: remove uppercase if theme adds it */
	color: #ffffff !important;
}

.call-button {
  background-color: #D93228;
  color: white;
  border-radius: 8px;
  border: none;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25), 0 0 30px rgba(217, 50, 40, 0.7);
  font-family: 'avenir-next-lt-pro'; /* Use the font name exactly as registered by the plugin */
  font-weight: 600;
  padding: 8px 28px; /* keep your original */
}

.call-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 6px rgba(0, 0, 0, 0.25), 0 0 40px rgba(217, 50, 40, 0.8);
}

.call-button-outline {
  background-color: transparent;
  color: white;
  border: 1px solid white;
  border-radius: 8px;
  font-family: 'avenir-next-lt-pro';
  font-weight: 600;
  padding: 12px 28px; /* keep your original */
}

.call-button-outline:hover {
  transform: translateY(-2px);
  background-color: rgba(255, 255, 255, 0.1);
}

/* Responsive tweaks */
@media (max-width: 767px) {
  .call-button {
    padding: 6px 20px; /* slightly smaller on mobile */
    font-size: 14px;
  }

  .call-button-outline {
    padding: 8px 20px; /* smaller but proportional */
    font-size: 14px;
  }
}

@media (max-width: 360px) {
  .call-button {
    padding: 6px 16px; /* extra small phones */
    font-size: 13px;
  }

  .call-button-outline {
    padding: 6px 16px;
    font-size: 13px;
  }
}
/* ===== Base Banner Gallery ===== */
.banner-gallery-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  overflow: hidden;
  max-width: 1200px; /* overridden inside banner-edge */
  margin: 0 auto;
}

.banner-column {
  position: relative;
  overflow: hidden;
  height: 600px; /* overridden inside banner-edge */
}

.banner-track {
  display: flex;
  flex-direction: column;
}

.banner-item {
  margin-bottom: 20px;
}
.banner-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  border-radius: 10px;
}

/* Vertical animations (desktop) */
.banner-column-1 .banner-track { animation: scrollDown 70s linear infinite; }
.banner-column-2 .banner-track { animation: scrollUp   70s linear infinite; }
.banner-column-3 .banner-track { animation: scrollDown 70s linear infinite; }

@keyframes scrollDown { 0% { transform: translateY(0); } 100% { transform: translateY(-50%); } }
@keyframes scrollUp   { 0% { transform: translateY(-50%); } 100% { transform: translateY(0); } }

/* ===== Section/Row/Column Setup ===== */
.banner-section .banner-row .banner-edge {
  position: relative;
  padding: 0 !important;
  min-height: 600px;
}
@media (min-width: 550px) {
  .banner-section .banner-row .banner-edge { min-height: 750px; }
}

.banner-section .banner-row .banner-edge > .col-inner {
  position: static;
  padding: 0 !important;
  height: 100%;
}

.banner-section .banner-row .banner-edge .banner-gallery-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  overflow: hidden;
  z-index: 1;
}

.banner-section .banner-row .banner-edge .banner-column { height: 100%; overflow: hidden; }
.banner-section .banner-row .banner-edge .banner-track  { position: relative; z-index: 1; }

/* ===== Desktop: Top & Bottom Fades ===== */
@media (min-width: 768px) {
  .banner-section .banner-row .banner-edge .banner-gallery-wrapper::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 150px;                 
    pointer-events: none;
    z-index: 3;
    background: linear-gradient(to bottom, rgba(0,0,0,0.75), rgba(0,0,0,0));
  }
  .banner-section .banner-row .banner-edge .banner-gallery-wrapper::after {
    content: "";
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 100px;                 
    pointer-events: none;
    z-index: 3;
    background: linear-gradient(to top, rgba(0,0,0,0.75), rgba(0,0,0,0));
  }
}

/* Remove extra section padding */
.banner-section { padding-top: 0 !important; padding-bottom: 0 !important; }

/* ===== Mobile: 2 horizontal scrolling rows ===== */
@media (max-width: 767px) {
  /* Kill theme gutters so images touch edges */
  .banner-section .banner-row,
  .banner-section .banner-edge {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .banner-section .banner-row .banner-edge { 
    min-height: auto;
    padding-bottom: 60px !important;
  }

  .banner-section .banner-edge > .col-inner,
  .banner-section .banner-edge .banner-gallery-wrapper {
    margin-left: 0 !important;
    padding-left: 0 !important;
  }

  .banner-section .banner-row .banner-edge .banner-gallery-wrapper {
    position: relative;
    inset: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;  /* spacing between the two rows */
    overflow: visible;
    max-width: 100%;
    height: auto;
  }

  /* Each column becomes a horizontal scrolling row */
  .banner-section .banner-row .banner-edge .banner-column {
    display: block !important;
    height: auto !important;
    width: 100% !important;
    overflow: hidden;
    margin: 0 !important;
  }

  /* Hide the third column on mobile */
  .banner-section .banner-row .banner-edge .banner-column-3 {
    display: none !important;
  }

  .banner-section .banner-row .banner-edge .banner-track {
    display: flex !important;
    flex-direction: row !important;
    gap: 15px;
    width: max-content !important;
    height: auto !important;
    padding: 0;
    margin: 0;
    /* Smooth, GPU-accelerated scrolling without locking transform */
    will-change: transform;
    backface-visibility: hidden;
    -webkit-transform-style: preserve-3d;
            transform-style: preserve-3d;
  }

  /* Tiny left-edge nudge only (no transform!) */
  .banner-section .banner-edge .banner-column-1 .banner-track {
    margin-left: -0.5px; /* remove if not needed */
  }

  .banner-section .banner-row .banner-edge .banner-item {
    display: block;
    width: 180px;
    flex-shrink: 0;
    margin: 0 !important;
  }

  .banner-section .banner-row .banner-edge .banner-item img {
    width: 180px;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
  }

  /* Animations with translate3d for seamless loop */
  @keyframes scroll-left {
    from { transform: translate3d(0,0,0); }
    to   { transform: translate3d(-50%,0,0); }
  }
  @keyframes scroll-right {
    from { transform: translate3d(-50%,0,0); }
    to   { transform: translate3d(0,0,0); }
  }

  /* Apply horizontal animations to both rows */
  .banner-section .banner-row .banner-edge .banner-column-1 .banner-track {
    animation: scroll-left 50s linear infinite !important;
  }
  .banner-section .banner-row .banner-edge .banner-column-2 .banner-track {
    animation: scroll-right 50s linear infinite !important;
  }

  /* No fades on mobile */
  .banner-section .banner-row .banner-edge .banner-gallery-wrapper::before,
  .banner-section .banner-row .banner-edge .banner-gallery-wrapper::after {
    display: none !important;
  }
}
/* Glowing card for banner column */
.banner-rw > .col-inner {
  position: relative;
  background: linear-gradient(180deg, #2a3350 0%, #202a47 100%);
  border-radius: 8px;

  /* Border */
  border: 1px solid #414A7A;

  /* Figma "Layer Blur" + soft drop shadow */
  box-shadow: 
    0 0 10px rgba(147, 174, 255, 0.35),  /* outer glow halo */
    0 10px 28px rgba(0, 9, 40, 0.35);    /* natural drop shadow */
}

/* Mobile adjustments */
@media (max-width: 549px) {
  .banner-rw > .col-inner {
    border-radius: 8px;
  }
}

/* Logo Carousel */
.logo-carousel {
  position: relative;
  overflow: hidden;
  background: #fff;
  display: flex;
  justify-content: center;
  border-radius: 50px;
  margin: 20px auto;
  width: 1350px;
  max-width: 100%;
}

/* Gradient fade edges */
.logo-carousel::before,
.logo-carousel::after {
  content: "";
  position: absolute;
  top: 0;
  width: 150px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}
.logo-carousel::before {
  left: 0;
  background: linear-gradient(to right, #fff 0%, rgba(255, 255, 255, 0) 100%);
}
.logo-carousel::after {
  right: 0;
  background: linear-gradient(to left, #fff 0%, rgba(255, 255, 255, 0) 100%);
}

/* Track with items */
.logo-carousel-wrapper {
  display: flex;
  width: max-content;
}
.logo-item {
  display: flex;
  width: 140px;
  margin: 0 40px;       /* increased spacing (80px total gap) */
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-item img {
  width: 100%;
  max-height: 100px;
  object-fit: contain;
}

/* Responsive */
@media (max-width: 1400px) {
  .logo-carousel { width: 95%; }
}

/* Tablet */
@media (max-width: 768px) {
  .logo-item { 
    width: 120px; 
    margin: 0 24px;    /* was 12px — balanced spacing on tablet */
  }
  .logo-carousel { height: 90px; }

  /* Reduce gradient width on tablet */
  .logo-carousel::before,
  .logo-carousel::after {
    width: 60px;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .logo-item { 
    width: 100px; 
    margin: 0 18px;    /* was 10px — comfortable spacing on mobile */
  }
  .logo-carousel { height: 70px; }

  /* Reduce gradient width even more on mobile */
  .logo-carousel::before,
  .logo-carousel::after {
    width: 30px;
  }
}


.col-rad-20 .col-inner {
	
	border-radius: 20px;
}

.col-rad-30 .col-inner {
	
	border-radius: 30px;
}

.img-rd *{
	
	border-radius: 10px;
	box-shadow: 0px 16px 28px 1px rgba(0, 0, 0, 0.1);
}

/* Base state */
.col-rad-30 > .col-inner {
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

/* Hover state */
.col-rad-30:hover > .col-inner {
  box-shadow: 0px 4px 8px 8px rgba(59, 30, 30, 0.15);
  transform: translateY(-4px); /* light push up */
}

.col-radial-glow > .col-inner {
  position: relative;
  overflow: hidden;
}

.col-radial-glow > .col-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 50% 100%, /* start at bottom center */
    rgba(95, 109, 183, 0.6) 0%,  /* reduced opacity */
    rgba(0, 0, 0, 0) 50%         /* fade more gently */
  );
  pointer-events: none;
  z-index: 0;
}


/* Keep content above the glow */
.col-radial-glow > .col-inner > * {
  position: relative;
  z-index: 1;
}
.col-blue-gradient > .col-inner {
	
	border-radius: 20px;
  background: linear-gradient(
    45deg,        /* diagonal: bottom-left → top-right */
    #1F243B 0%,   /* lighter blue at start */
    #050813 100%  /* darker navy/black at end */
  );
	
	  border: 1px solid #414A7A;

	box-shadow: 
    0 0 10px rgba(147, 174, 255, 0.35),  /* outer glow halo */
    0 10px 28px rgba(0, 9, 40, 0.35);    /* natural drop shadow */
}

/* === Testimonial Grid (3 Equal-Height Columns) === */
.lm-testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--lm-gap, 24px);
  align-items: stretch; /* Make all columns equal height */
}

/* Each column wrapper */
.lm-testimonials__column {
  display: flex;
  flex-direction: column;
  gap: var(--lm-gap, 24px);
  min-height: 100%; /* Ensure columns stretch to match tallest */
}

/* Each card - flex-grow makes them stretch equally within their column */
.lm-testimonial {
  flex: 1; /* This makes cards in the same column equal height */
  background: #fff;
  border: 1px solid #E7E7E7;
  border-radius: 10px;
  padding: 32px; /* Increased from 20px */
  box-shadow: 0 4px 8px rgba(0,0,0,0.03);
  transition: border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}

.lm-testimonial:hover { 
  border-color: #D93228;
}

/* Head */
.lm-testimonial__head {
  display: flex;
  align-items: center;
  margin-bottom: 16px; /* Increased spacing */
}

.lm-testimonial__avatar img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 14px; /* Increased spacing */
}

.lm-testimonial__name { 
  font-weight: 700; 
  font-size: 16px; 
  margin: 0; 
}

.lm-testimonial__role { 
  font-size: 14px; 
  color: #666; 
  margin-top: 2px; /* Increased spacing */
}

/* Quote - flex-grow pushes it to fill remaining space */
.lm-testimonial__quote {
  font-style: italic;
  font-size: 15px;
  line-height: 1.6;
  color: #333;
  margin: 0;
  border: none;
  padding-left: 0;
  flex-grow: 1; /* Quote fills remaining space */
}

.lm-testimonial__quote p {
  margin: 0;
  border: none;
  padding-left: 0;
}

/* ----- Mobile stacked list (hidden by default) ----- */
.lm-testimonials__list {
  display: none;
  gap: var(--lm-gap, 24px);
}

/* Responsive: 2 cols tablet, 1 col mobile (via list) */
@media (max-width: 1199px) {
  .lm-testimonials__grid { 
    grid-template-columns: repeat(2, 1fr);
  }
  
  .lm-testimonial {
    padding: 28px; /* Slightly less padding on tablet */
  }
}

@media (max-width: 767px) {
  /* Hide the multi-column grid on mobile */
  .lm-testimonials__grid { 
    display: none !important;
  }

  /* Show a single stacked list on mobile */
  .lm-testimonials__list {
    display: grid;
    grid-template-columns: 1fr;
  }

  .lm-testimonial {
    padding: 24px; /* Less padding on mobile */
  }
}


.dep-ds {
  position: relative;
  transform: translateY(-80px); /* pull up visually */
  z-index: 2; /* keep above the image if needed */
	background-color: #ffffff;
	border-radius: 20px;
	border: 1px solid #E7E7E7;
	box-shadow: 0px 4px 18px 8px rgba(0, 0, 0, 0.02);
}


.btn-black {
  position: relative; /* ensures pseudo-element aligns well */
  width: 170px;
  height: 50px;
  font-size: 15px;
  font-family: 'avenir-next-lt-pro', sans-serif;
  font-weight: 500;
  border-radius: 8px;
  border: 1px solid #020218;
  background-color: #0C0C0C !important;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

/* Automatically append the SVG icon after the button text */
.btn-black::after{
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-left: 8px;
  background-color: #ffc927; /* This sets the icon color to white */
  -webkit-mask: url('/wp-content/uploads/2025/10/btn_icon.svg') no-repeat center;
  mask: url('/wp-content/uploads/2025/10/btn_icon.svg') no-repeat center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.btn-red {
  position: relative; /* ensures pseudo-element aligns well */
  width: 170px;
  height: 50px;
  font-size: 15px;
  font-family: 'avenir-next-lt-pro', sans-serif;
  font-weight: 500;
  border-radius: 8px;
  border: 1px solid #D93228;
  background-color: #D93228 !important;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

/* Automatically append the SVG icon after the button text */
.btn-red::after {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-left: 8px;
  background-color: #ffc927; /* This sets the icon color to white */
  -webkit-mask: url('/wp-content/uploads/2025/10/btn_icon.svg') no-repeat center;
  mask: url('/wp-content/uploads/2025/10/btn_icon.svg') no-repeat center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

/* Disable all Flatsome hover/focus/active effects */
.btn-red,
.btn-red:hover,
.btn-red:focus,
.btn-red:active {
  background-color: #D93228 !important;
  color: #ffffff !important;
  border-color: #D93228 !important;
  box-shadow: none !important;
  transform: none !important;
  opacity: 1 !important;
  text-decoration: none !important;
  transition: none !important;
  filter: none !important;
}



/* Scope: only your LM lists */
.entry-content ul.icon-list-lm,
.col .col-inner ul.icon-list-lm,
ul.icon-list-lm,
.icon-list-lm ul {
  list-style: none !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
}

/* List items */
ul.icon-list-lm > li,
.icon-list-lm ul > li {
  display: flex;
  align-items: center;
  margin: 0 0 10px 0;     /* vertical spacing between items */
  font-family: 'avenir-next-lt-pro', sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: #323232;
}

/* Icon before each item */
ul.icon-list-lm > li::before,
.icon-list-lm ul > li::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 18px; 
  background: url('https://dept.luxymedia.com/wp-content/uploads/2025/10/dark_arrow.svg') no-repeat center;
  background-size: contain;
}

/* Light list */
ul.icon-list-lm-light > li,
.icon-list-lm-light ul > li {
  display: flex;
  align-items: center;
  margin: 0 0 10px 0;
  font-family: 'avenir-next-lt-pro', sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: #ffffff; /* white text */
}

ul.icon-list-lm-light > li::before,
.icon-list-lm-light ul > li::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 18px;
  background: url('https://dept.luxymedia.com/wp-content/uploads/2025/10/light_arrow.svg') no-repeat center;
  background-size: contain;
}

.mp-btn {
  display: inline-block;
  padding: 2px 16px;
  background-color: #ffffff;   /* red background */
  color: #D93228;              /* white text */
  font-family: 'avenir-next-lt-pro', sans-serif;
  font-weight: 500;
  font-size: 12px;
  border-radius: 9999px;       /* pill shape */
  border: none;
  pointer-events: none;        /* not clickable */
  user-select: none;           /* text not selectable */
  text-align: center;
  white-space: nowrap;
	  text-transform: none;        /* <— prevent uppercase */

}

/* Gradient background on this column's inner */
.col-gradient > .col-inner {
  background: linear-gradient(135deg, #B70B0B 0%, #761515 100%) !important;
  border-radius: 20px !important;
  overflow: hidden;
  position: relative;
  z-index: 0;
	  transition: box-shadow 0.3s ease, transform 0.3s ease;
	box-shadow: 0px 4px 8px 8px rgba(59, 30, 30, 0.15);
  transform: translateY(-4px);
}

/* Stable section sizing (no ID dependency) */
.sec-glow {
  --sec-glow-height: 750px;   /* adjust if you want */
  position: relative;
  overflow: hidden;
  min-height: var(--sec-glow-height);
}

/* Keep the background behind everything */
.sec-glow > .section-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Make content occupy the section's height */
.sec-glow > .section-content {
  position: relative;
  overflow: hidden;
  min-height: var(--sec-glow-height); /* no inherit needed now */
  z-index: 1; /* sits above .section-bg */
}

/* The glow — identical to your column glow */
.sec-glow > .section-content::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 50% 100%,        /* bottom center */
    rgba(95, 109, 183, 0.6) 0%, /* same as column */
    rgba(0, 0, 0, 0) 50%
  );
  pointer-events: none;
  z-index: 0; /* behind actual content (children will sit above) */
}

/* Ensure inner content is above the glow layer */
.sec-glow > .section-content > * {
  position: relative;
  z-index: 1;
}

/* Section base (no fixed height) */
.sec-glow {
  position: relative;
  overflow: hidden;
}

/* Keep the native bg behind everything */
.sec-glow > .section-bg {
  position: absolute;
  inset: 0;
  z-index: 0; /* background layer */
}

/* Content creates the height */
.sec-glow > .section-content {
  position: relative;
  overflow: hidden; /* same as your column */
  z-index: 1;       /* above background */
}

/* Glow layer — identical to column glow */
.sec-glow > .section-content::before {
  content: "";
  position: absolute;
  inset: 0;  /* fills whatever height the content has */
  background: radial-gradient(
    ellipse at 50% 100%,        /* bottom center */
    rgba(95, 109, 183, 0.6) 0%, /* same as column */
    rgba(0, 0, 0, 0) 50%
  );
  pointer-events: none;
  z-index: 0; /* sits under real content */
}

/* Keep children above the glow */
.sec-glow > .section-content > * {
  position: relative;
  z-index: 1;
}

/* =========================
   Luxy Comparison Grid — Full Responsive CSS (v3.3)
   Mobile: all columns scroll together
   ========================= */

/* Wrapper + theme variables */
.comparison-grid-wrapper {
  --grid-max: 1550px;
  --gap: 18px;
  --radius: 50px;
  --red: #D93228;

  /* Mobile column sizing (used under 768px) */
  --first-col-w: 160px;
  --col-w: 150px;

  width: 100%;
  max-width: var(--grid-max);
  margin: 0 auto;
  font-family: inherit;
}

/* ===== Header Row ===== */
.comparison-grid-header {
  display: grid;
  grid-template-columns: 1.5fr repeat(6, 1fr);
  gap: var(--gap);
  margin-bottom: 20px;
  padding: 0 20px;
  position: relative;
}
.header-cell {
  color: #ffffff;
  font-weight: 600;
  font-family: 'avenir-next-lt-pro', sans-serif;
  font-size: 18px;
  text-align: center;
}
.header-cell:first-child { opacity: 0; }

/* ===== Grid Rows ===== */
.comparison-grid-row {
  display: grid;
  grid-template-columns: 1.5fr repeat(6, 1fr);
  gap: var(--gap);
  padding: 28px 20px;
  margin-bottom: 20px;
  align-items: center;
  position: relative;
}
/* Nudge Freelancers content to align better - DESKTOP ONLY */
@media (min-width: 769px) {
  .comparison-grid-row:last-of-type .company-name {
    margin-left: -30px;
  }
}
/* Divider for non-Luxy rows */
.comparison-grid-row:not(.luxy-row) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}


/* ===== Luxy Row (solid red full width) ===== */
.luxy-row {
  border-radius: var(--radius);
  color: #ffffff;
}
.luxy-row::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--red);
  border-radius: var(--radius);
  z-index: 0;
}
.luxy-row > .grid-cell { position: relative; z-index: 1; }

/* ===== Cells ===== */
.grid-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: 10px;
  align-self: flex-start;
}

/* Reduce gap between icon and text in columns 2-7 */
.grid-cell:not(:first-child) {
  gap: 2px;

}

.grid-cell:not(:first-child) span {
  margin-top: -15px; /* Pull text closer to icon */
}

.grid-cell:first-child {
  justify-content: center;
  align-self: center;
}

/* Logo + brand sizing */
.logo-cell { font-weight: 700; font-size: 24px; }
.luxy-logo { width: 160px; max-width: 160px; height: auto; }
.company-icon { width: 50px; height: 50px; flex-shrink: 0; }

/* Icons & images - UPDATED CLASS NAME */
.comparison-icon { width: 18px; height: 18px; flex: 0 0 18px; }

.grid-cell img:not(.luxy-logo):not(.company-icon):not(.comparison-icon) {
  max-width: 100%;
  height: auto;
}

/* Text styles */
.company-name {
  flex-direction: row;
  gap: 12px;
  justify-content: flex-start;
  align-items: center;
  text-align: left;
  font-family: 'avenir-next-lt-pro', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #ffffff;
}
.secondary-text { color: rgba(255, 255, 255, 0.6); }
.secondary-text span { font-size: 16px; }
.luxy-row .grid-cell span { color: #ffffff; font-size: 16px; font-weight: 700; }

/* ===== Optional: Horizontal Mode (icon left of text) ===== */
.grid--horizontal .grid-cell {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  gap: 10px;
}
.grid--horizontal .grid-cell:first-child { justify-content: center; text-align: center; }

/* ===== Optional: Emphasis pills ===== */
.grid-cell span { display: inline-block; }
.grid-cell span[data-pill] {
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 700;
  line-height: 1;
}
.grid-cell span[data-pill="low"]        { background: rgba(52,199,89,.15);  color:#34C759; }
.grid-cell span[data-pill="high"]       { background: rgba(255,59,48,.15);  color:#FF3B30; }
.grid-cell span[data-pill="guaranteed"] { background: rgba(10,132,255,.15); color:#0A84FF; }

/* =========================
   Responsive Tweaks
   ========================= */

/* ====== Large Tablet (≤ 1024px) ====== */
@media (max-width: 1024px) {
  .comparison-grid-header { gap: 16px; }
  .comparison-grid-row { gap: 16px; padding: 24px 18px; }

  .header-cell { font-size: 16px; }
  .company-name { font-size: 17px; }
  .secondary-text span,
  .luxy-row .grid-cell span { font-size: 15px; }

  .luxy-logo { width: 150px; max-width: 150px; }
  .company-icon { width: 46px; height: 46px; }
  .comparison-icon { width: 16px; height: 16px; flex: 0 0 16px; }
}

/* ====== Tablet baseline (≤ 900px) ====== */
@media (max-width: 900px) {
  .comparison-grid-row { padding: 22px 16px; }
}

/* ====== Mobile (≤ 768px) — all columns scroll together ====== */
@media (max-width: 768px) {
  .comparison-grid-wrapper {
    position: relative;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    margin-bottom: 0; /* Remove bottom margin on mobile */
  }
  .comparison-grid-wrapper::-webkit-scrollbar { display: none; }
  .comparison-grid-wrapper { -ms-overflow-style: none; scrollbar-width: none; }

  .comparison-grid-header,
  .comparison-grid-row {
    display: grid;
    grid-template-columns: var(--first-col-w) repeat(6, var(--col-w));
    gap: 15px;
    padding: 10px 7.5px;
    width: max-content;
    box-sizing: content-box;
  }

  .comparison-grid-row {
    margin-bottom: 10px; /* Reduced from 20px */
  }

  .comparison-grid-row:last-of-type {
    margin-bottom: 0; /* No margin on last row */
  }

  .luxy-row { border-radius: 30px; }
  .luxy-row::before {
    border-radius: 30px;
  }

  .header-cell { font-size: 17px; }
  .logo-cell { font-size: 20px; }
  .company-name { font-size: 16px; min-width: 160px; }
  .secondary-text span { font-size: 13px; }
  .luxy-row .grid-cell span { font-size: 14px; }

  .luxy-logo { width: 135px; max-width: 135px; }
  .company-icon { width: 44px; height: 44px; }
  .comparison-icon { width: 16px; height: 16px; flex: 0 0 16px; }
	
	
}

/* ====== Small Mobile (≤ 480px) — tweak column widths ====== */
@media (max-width: 480px) {
  .comparison-grid-wrapper { --first-col-w: 150px; --col-w: 140px; }
  .header-cell { font-size: 16px; }
  .company-name { font-size: 15px; }
  .secondary-text span, .luxy-row .grid-cell span { font-size: 13px; }
  .luxy-logo { width: 120px; max-width: 120px; }
  .company-icon { width: 40px; height: 40px; }
  .comparison-icon { width: 15px; height: 15px; flex: 0 0 15px; }
}

/* ===== Accessibility: Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  .comparison-grid-wrapper { scroll-behavior: auto; }
}
