/* Base Resets */

/* 1. The Base State - Sets the stage for the animation */
.gb-row-hover {
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  border: 1px solid transparent;
  border-radius: 12px; /* Optional: smooths out sharp corners */
  overflow: hidden;    /* Keeps the glass effect contained */
  backface-visibility: hidden; 
}

/* 2. The Hover State - The "Frosty" Transformation */
.gb-row-hover:hover {
  /* Subtle lift and grow */
  transform: translateY(-5px) scale(1.02);
  
  /* The Glass Effect */
  background: rgba(255, 255, 255, 0.4) !important; /* Semi-transparent white */
  backdrop-filter: blur(12px); /* This creates the "frost" */
  -webkit-backdrop-filter: blur(12px); /* Safari support */
  
  /* The "Shininess" - A light border makes it look like real glass */
  border: 1px solid rgba(255, 255, 255, 0.5);
  
  /* Professional soft shadow */
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1), 
              0 5px 15px rgba(0, 0, 0, 0.05);
  
  z-index: 2;
}

  /* Here we define the boxes */
.gb-row-hover {
  /* Set a specific width */
  width: 100%;             /* Responsive: fills the column */
  max-width: 400px;        /* Prevents it from getting too wide */
  min-width: 280px;        /* Prevents it from getting too skinny on mobile */
  
  /* Set a specific height */
  aspect-ratio: 13 / 21;
  /* height: 350px;           /* Forces a fixed height */
  /* OR use min-height if you want it to grow with text */
  /*min-height: 300px; */
  
  /* Center the box if it's smaller than the column */
  margin: 0 auto; 
  
  /* Layout fixes */
  display: flex;
  flex-direction: column;
  justify-content: center; /* Centers content vertically */
  align-items: center;     /* Centers content horizontally */
  text-align: center;
  padding: 30px;           /* Adds space inside the box */
  box-sizing: border-box;  /* Ensures padding doesn't break the width */
}


/* NO SIZE ONLY HOVER*/



/* 1. The Base State - Sets the stage for the animation */
.gb-any-hover {
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  border: 1px solid transparent;
  border-radius: 12px; /* Optional: smooths out sharp corners */
  overflow: hidden;    /* Keeps the glass effect contained */
  backface-visibility: hidden; 
}

/* 2. The Hover State - The "Frosty" Transformation */
.gb-any-hover:hover {
  /* Subtle lift and grow */
  transform: translateY(-5px) scale(1.02);
  
  /* The Glass Effect */
  background: rgba(255, 255, 255, 0.4) !important; /* Semi-transparent white */
  backdrop-filter: blur(12px); /* This creates the "frost" */
  -webkit-backdrop-filter: blur(12px); /* Safari support */
  
  /* The "Shininess" - A light border makes it look like real glass */
  border: 1px solid rgba(255, 255, 255, 0.5);
  
  /* Professional soft shadow */
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1), 
              0 5px 15px rgba(0, 0, 0, 0.05);
  
  z-index: 2;
}

  /* Here we define the boxes */
.gb-any-hover {
  /* Set a specific width */
  width: 100%;             /* Responsive: fills the column */
  max-width: 400px;        /* Prevents it from getting too wide */
  min-width: auto;        /* Prevents it from getting too skinny on mobile */
  
  /* Set a specific height */
  /*height: auto;*/
  aspect-ratio: 13 / 21;           /* Forces a fixed height */
  /* OR use min-height if you want it to grow with text */
  /*max-height: 150px; */
  
  /* Center the box if it's smaller than the column */
  margin: 0 auto; 
  

  
  /* Layout fixes */
  display: flex;
  flex-direction: column;
  justify-content: center; /* Centers content vertically */
  align-items: center;     /* Centers content horizontally */
  text-align: center;
  padding: 30px;           /* Adds space inside the box */
  box-sizing: border-box;  /* Ensures padding doesn't break the width */
}

 /* This targets any image inside the gb-any-hover box */
.gb-any-hover img {
  max-width: 100%;    /* Prevents the image from being wider than the box */
  height: auto;       /* Maintains the image's original proportions */
  max-height: 180px;  /* Limits the height so it doesn't push text out of the box */
  object-fit: contain; /* Ensures the whole image is visible without being cropped */
  margin-bottom: 15px; /* Adds a little space between the image and the text below it */
}





#sp-main-body {
    padding: 0;
}

.article-details .article-ratings-social-share {
    padding: 1rem 0;
    border-top: 0;
    border-bottom: 0;
    margin-bottom: 1rem;
}

/* ===== 2. VARIABLES & BASICS ===== */
:root {
  --gt-navy: #173148;
  --gt-burgundy: #7d2827;
  --gt-beige: #eeebe5;
  --gt-white: #ffffff;
  --gt-text-primary: #173148;
  --gt-text-secondary: rgba(23, 49, 72, 0.70);
  --gt-shadow-hover: 0 16px 34px rgba(23, 49, 72, 0.18);
  --gt-card-padding: 14px;
}

/* ===== 3. PRODUCT GRID (THE FIXES) ===== */

/* Column Settings: Gap & Anti-Clipping */
.gt-products-section .sppb-row .col-md-3,
.gt-products-section .sppb-row .col-md-4,
.gt-products-section .sppb-row .sppb-col-md-3,
.gt-products-section .sppb-row .sppb-col-md-4 {
    padding-left: 30px !important;  /* 60px Gap Total */
    padding-right: 30px !important;
    padding-top: 20px !important;   /* Fixes top hover clipping */
    overflow: visible !important;
    margin: 0 !important;
    z-index: 10;
}

/* Image Card: Size & Centering */
.gt-home .gt-card, 
.gt-home .gt-card a {
    display: block;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    
    /* SIZE: 75% Width */
    width: 75% !important;
    max-width: 75% !important;
    
    /* CENTER in column */
    margin: 0 auto !important;
    
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Image Aspect Ratio */
.gt-home .gt-card img {
    aspect-ratio: 13 / 21;
    width: 100%;
    object-fit: cover;
    display: block;
}

/* Text Alignment: Left Align to Image Edge */
.gt-home .gt-card-text {
    width: 75% !important;
    max-width: 75% !important;
    margin: 12px auto 0 auto !important; /* Centered under image */
    
    text-align: left !important;
    display: block !important;
    padding: 0 !important;
    
    color: rgba(23, 49, 72, 0.70);
    font-size: 15px;
    line-height: 1.5;
}

/* Inner Paragraphs */
.gt-home .gt-card-text p,
.gt-home .gt-card-text div {
    text-align: left !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Title Alignment */
.gt-home .gt-card .sppb-addon-title {
    text-align: center !important;
    padding: 12px 0 6px 0 !important;
    margin: 0 !important;
}

/* Hover Effects */
@media (hover: hover) and (pointer: fine) {
    .gt-home .gt-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 16px 34px rgba(23, 49, 72, 0.18);
        z-index: 20;
    }
    .gt-home .gt-card:hover img {
        transform: scale(1.03);
    }
}

/* ===== 4. CLIENT STRIP (RESTORED) ===== */

.gt-clients-strip {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 8px 0;
  overflow: hidden;
  background: transparent;
  position: relative;
}

.gt-clients-strip::before,
.gt-clients-strip::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0; width: 24px; z-index: 3; pointer-events: none;
}
.gt-clients-strip::before { left: 0; background: linear-gradient(to right, var(--gt-beige) 0%, transparent 100%); }
.gt-clients-strip::after { right: 0; background: linear-gradient(to left, var(--gt-beige) 0%, transparent 100%); }

.gt-clients-strip__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 16px;
  position: relative;
  z-index: 2;
}
.gt-clients-strip__inner::-webkit-scrollbar { display: none; }

.gt-clients-strip a.gt-client {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 0; margin: 0;
  background: transparent;
  transition: transform 0.2s ease;
}

.gt-clients-strip a.gt-client img {
  height: 28px;
  width: auto;
  max-width: 160px;
  display: block;
  opacity: 0.88;
  filter: grayscale(100%);
  transition: opacity 0.2s ease, filter 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .gt-clients-strip a.gt-client:hover { transform: translateY(-2px); }
  .gt-clients-strip a.gt-client:hover img { opacity: 1; filter: grayscale(0%); }
}

/* White Logo Fix */
.gt-clients-strip a.gt-client--whitefix img { filter: grayscale(100%) drop-shadow(0 1px 2px rgba(23, 49, 72, 0.25)) brightness(0.95); }
.gt-clients-strip a.gt-client--whitefix:hover img { filter: grayscale(0%) drop-shadow(0 1px 2px rgba(23, 49, 72, 0.25)) brightness(1); }

/* ===== 5. LINKS & RESPONSIVE ===== */

.gt-allcats {
  display: inline-block;
  color: var(--gt-burgundy);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}
.gt-allcats:hover { color: var(--gt-navy); border-bottom-color: var(--gt-navy); }

/* Mobile/Tablet Adjustments */
@media (max-width: 991px) {
  .gt-clients-strip { padding: 6px 0; }
  .gt-clients-strip__inner { gap: 16px; padding: 0 12px; }
  .gt-clients-strip a.gt-client img { height: 26px; max-width: 140px; }
  
  /* Reset Card Width for Mobile so they aren't too small */
  .gt-home .gt-card, .gt-home .gt-card-text { width: 90% !important; max-width: 90% !important; }
}

@media (max-width: 640px) {
  .gt-clients-strip { padding: 5px 0; }
  .gt-clients-strip__inner { gap: 14px; padding: 0 10px; }
  .gt-clients-strip a.gt-client img { height: 24px; max-width: 130px; }
  .gt-home .gt-card-text { font-size: 14px; }
}