/* Large Devices, Wide Screens */

@media only screen and (max-width: 1200px) {
  .container {
    max-width: 960px;
  }
}

/* Medium Devices, Desktops */

@media only screen and (max-width: 992px) {
  header.with-background .top-nav,
  header .top-nav {
    flex-direction: column;
  }

  .container {
    padding-right: 35px !important;
    padding-left: 35px !important;
  }

  header.with-background .top-nav .logo,
  header .top-nav .logo {
    margin: auto;
    width: 70%;
  }

  header.with-background .top-nav ul,
  header .top-nav ul {
    margin: 20px auto 0;
  }

  header.with-background .top-nav-left,
  header .top-nav-left {
    flex-direction: column;
  }

  header.with-background .hero,
  header .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  header.with-background .hero .hero-image,
  header .hero .hero-image {
    padding-left: 0;
    margin-top: 40px;
  }

  .featured-section {
    /*padding: 50px 0;*/
  }

  .featured-section .products {
    grid-template-columns: 1fr;
  }

  .products-header {
    flex-direction: column;
    margin-bottom: 48px;
  }

  .blog-section .blog-posts {
    grid-template-columns: 1fr;
    text-align: center;
    grid-template-areas: "blog3" "blog2" "blog1";
  }

  .blog-section .blog-posts .blog-post {
    margin-top: 30px;
  }

  .footer-content {
    flex-direction: column;
  }

  .footer-content .made-with {
    margin: auto;
  }

  .footer-content ul {
    margin: 20px auto;
    width: 60%;
  }

  .breadcrumbs {
    text-align: center;
  }

  .breadcrumbs .breadcrumbs-container {
    flex-direction: column;
  }

  .search-form {
    margin: 14px auto;
    width: 80%;
  }

  .products-section {
    grid-template-columns: 1fr;
  }

  .products-section .sidebar {
    text-align: center;
  }

  .products-section .products {
    grid-template-columns: 1fr;
  }

  .product-section {
    grid-template-columns: 1fr;
  }

  .might-like-section .might-like-grid {
    grid-template-columns: 1fr;
  }

  .cart-section {
    grid-template-columns: 1fr;
  }

  .cart-section .cart-buttons {
    flex-direction: column;
    text-align: center;
  }

  .cart-section .cart-table-row .cart-table-row-left {
    width: 30%;
  }

  .cart-section .cart-table-row .cart-table-row-right {
    width: 55%;
  }

  .cart-section .cart-table-row img {
    display: none;
  }

  .cart-section .have-code-container {
    width: 100%;
  }

  .cart-section .cart-totals {
    flex-direction: column;
  }

  .cart-section .cart-totals .cart-totals-left {
    width: 100%;
    margin-bottom: 20px;
  }

  .cart-section .cart-totals .cart-totals-right {
    width: 100%;
  }

  .checkout-section {
    grid-template-columns: 1fr;
  }

  .checkout-section .checkout-table-container {
    margin-left: 10px;
  }

  .search-results-container-algolia {
    grid-template-columns: 1fr;
  }

  .ais-refinement-list--count {
    margin-left: auto;
    margin-right: 10px;
  }

  .auth-pages {
    margin: 50px auto;
    grid-template-columns: 1fr;
    grid-gap: 40px;
  }

  .auth-pages .auth-right {
    border-left: none;
    padding-left: 20px;
  }

  .my-profile input {
    width: 100%;
  }

  .my-orders .order-header-items {
    display: block;
  }

  .my-orders .order-header-items > div {
    margin-bottom: 14px;
  }
}

/* Small Devices, Tablets */

/* Extra Small Devices, Phones */

/* Custom, iPhone Retina */
.training-menu-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999 !important; /* Higher than the navbar and hero */
    background-color: rgba(15, 23, 42, 0.98); /* Slate-900 with slight transparency */
    overflow-y: auto;
}

/* Prevent the legacy .hide class from forcing display: none */
.training-menu-popup[style*="display: block"] {
    display: block !important;
}
/* CSS for the subcategory tabs */
.category-tabs span {
    border: 1px solid #1e293b; /* Deep Slate border */
    color: #94a3b8;
    padding: 6px 16px;
    transition: all 0.3s ease;
}

.category-tabs span.active {
    background: rgba(16, 185, 129, 0.1); /* Subtle Emerald glow */
    border-color: #10b981; /* Emerald-500 */
    color: #10b981;
}
/* Ensure uniform card height across the grid */
.thumb-shelf {
    display: flex;
    flex-wrap: wrap;
}

.thumb-li {
    display: flex;
    transition: all 0.3s ease;
}

/* Prevent text stretching or shrinking */
.tech-tag {
    font-size: 10px;
    padding: 2px 8px;
    border: 1px solid #10b981;
    color: #10b981;
    border-radius: 4px;
    text-transform: uppercase;
    background: rgba(16, 185, 129, 0.05);
    white-space: nowrap;
}

/* Fixed Aspect Ratio for content zones */
.catalog-card:hover {
    transform: translateY(-5px);
    border-color: #10b981 !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}
.search-wrapper {
  transition: all 0.3s ease;
  border-radius: 8px;
  overflow: hidden;
}

.search-wrapper:focus-within {
  border-color: #10b981 !important;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

.search-input:focus {
  box-shadow: none !important;
  outline: none !important;
}

/* Transition for cards appearing/disappearing */
.thumb-li {
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.academic-hero-section {
    border-bottom: 1px solid #1e293b;
}

.academic-cta-btn {
    background-color: #10b981;
    color: #020617;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
    letter-spacing: 1px;
}

.academic-cta-btn:hover {
    background-color: transparent;
    color: #10b981;
    border-color: #10b981;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(16, 185, 129, 0.15);
}

.text-slate-300 {
    color: #cbd5e1;
}
.cta-split-section {
    /* Faint separation borders */
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}

.cta-expert-btn {
    background-color: #10b981;
    color: #ffffff;
    border: 2px solid #10b981;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.cta-expert-btn:hover {
    background-color: transparent;
    color: #059669; /* Darker emerald for text-on-white contrast */
    border-color: #059669;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px rgba(16, 185, 129, 0.1);
}

.image-container {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-split-section:hover .image-container {
    transform: translateY(-8px);
    border-color: #10b981 !important;
}
/* Hidden State */
#global-nav-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    background-color: #020617;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Active State (Controlled by JS) */
#global-nav-container.nav-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Push Effect */
#training-header-bar, 
#academic-hero-section {
    transition: transform 0.4s ease;
}

.shift-down {
    transform: translateY(90px); /* Match your navbar height */
}

/* Extra Hit Area for the Logo */
.logo-trigger-zone {
    padding: 10px;
    margin: -10px;
    display: inline-block;
}
.cta-wrapper {
    /*display: flex;*/
    flex-direction: column;
}

.cta-wrapper a:not(:last-child) {
    /*margin-bottom: 1rem;*/
}
/* Custom utility for text color if not in Tailwind */
.text-slate-600 {
    color: #475569;
    line-height: 1.7;
}

/* Ensure smooth transition for tab buttons */
.transition-all {
    transition: all 0.3s ease;
}

/* Feature item bullets */
.feature-item {
    position: relative;
    padding-left: 1.5rem;
    border-left: 3px solid #10b981;
}
/* Make the whole card feel clickable */
.mb-3.border-slate-800:hover {
    border-color: #10b981 !important;
    cursor: pointer;
}

.text-emerald { color: #10b981 !important; }
.transition-all { transition: all 0.3s ease; }
.accordion-btn:hover .position-relative div {
        box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
        background-color: #34d399 !important; /* Slightly lighter emerald */
}
#training-header-bar, #training-hero-section {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

#global-nav-container {
  height: 0;
  overflow: hidden;
  transition: height 0.4s ease;
}

#global-nav-container.nav-active {
  height: auto; /* Adjust based on your nav content height */
}
.action-btn-primary, .action-btn-secondary {
  padding: 12px 32px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.8rem;
  transition: all 0.25s ease-in-out;
  display: inline-flex;
  align-items: center;
  text-decoration: none !important;
  min-width: 240px;
  justify-content: center;
}

/* Solid Emerald Button - High Visibility */
.action-btn-primary {
}

.action-btn-primary:hover {
  transform: translateY(-2px);
  color: #020617;
}

/* Outlined Button - Secondary Context */
.action-btn-secondary {
  background-color: rgba(16, 185, 129, 0.05);
  color: #94a3b8;
  border: 2px solid #334155;
}

.action-btn-secondary:hover {
  border-color: #10b981;
  color: #020617;
  background-color: #10b981;
  transform: translateY(-2px);
}

/* Mobile handling: Full width on small screens */
@media (max-width: 767px) {
  .action-btn-primary, .action-btn-secondary {
      width: 100%;
  }
}

/* NutraStat Tiered Header Styling */
.ns-header {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Tier 1: Deep Ledger */
.ns-tier-1 {
    background-color: #020617;
    border-bottom: 1px solid #1f2937;
    position: relative;
    z-index: 50;
}

/* Tier 2: Emerald Operational */
.ns-tier-2 {
    background-color: #022c22;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 40;
}

/* Hover States */
.ns-nav-link {
    padding: 0.75rem 1rem;
    color: #ecfdf5;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    height: 100%;
}

.ns-nav-link:hover {
    background-color: #064e3b;
    color: #fff;
}

/* Tier 3: Breadbox */
.ns-breadcrumb {
    background-color: #f8fafc;
    border-bottom: 1px solid #d1d5db;
    padding: 0.5rem 1rem;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}
.rgba-emerald-tactical {
    background-color: rgba(6, 78, 59, 0.3); /* HexaBreach Emerald at 30% opacity */
}

/* The Chain: Every internal Bootstrap wrapper must inherit 100% height */
#carousel-example-2 .carousel-inner {
    height: 100%;
}

#carousel-example-2 .carousel-item {
    height: 100%;
}

/* Bootstrap 4 'view' wrapper must also be 100% */
#carousel-example-2 .view {
    height: 100%;
}

/* The Target: Background container finally takes the full 600px */
.with-background, 
[class^="with-background-"] {
    height: 100%; 
}

/* The Tactical Mask: Absolute positioning to cover the inherited height */
.rgba-emerald-tactical {
    height: 100%;
    background-color: rgba(6, 78, 59, 0.4) !important;
}

/* Ensures content sits above the tactical mask */
.hero.container {
    position: relative;
    z-index: 3;
}
.hero-image {
    position: relative;
    display: inline-block;
    overflow: hidden;
}

.hero-image::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* This creates a dulling "tint" */
    background: rgba(13, 13, 13, 0.3); /* Deep Ledger Black at 50% */
    
    /* OR use your Emerald Tactical tint at a higher opacity */
    /* background: rgba(6, 78, 59, 0.4); */
    
    pointer-events: none; /* Allows clicks to go through to the image if needed */
}