/* Custom layout additions for Reviews template grid */
    .reviews-hero {
      padding-top: 160px;
      padding-bottom: 20px;
    }
    .reviews-masonry-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
      gap: 30px;
      margin-bottom: 60px;
      width: 100%;
    }
    .review-static-card {
      padding: 40px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }
    .review-write-box {
      background: rgba(15, 23, 42, 0.02);
      border: 2px dashed rgba(15, 23, 42, 0.15);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
      padding: 40px;
      cursor: pointer;
    }
    .review-write-box i {
      font-size: 2.5rem;
      color: var(--text-dark);
      margin-bottom: 15px;
      transition: transform 0.3s ease;
    }
    .review-write-box:hover i {
      transform: scale(1.15) rotate(90deg);
    }
    .review-write-box:focus-visible, .close-modal:focus-visible, .star-rating-select i:focus-visible {
      outline: 2px solid var(--text-dark);
      outline-offset: 4px;
      border-radius: 8px;
    }

    /* Elegant CSS Initials Avatar Placeholder Badge */
    .avatar-placeholder {
      width: 48px;
      height: 48px;
      border-radius: 50%;
      background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
      color: #ffffff;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 700;
      font-size: 0.95rem;
      letter-spacing: 0.05em;
      box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
    }

    /* Custom Star Selection Styling */
    .star-rating-select {
      display: flex;
      gap: 8px;
      font-size: 1.5rem;
      margin-bottom: 5px;
    }
    .star-rating-select i {
      cursor: pointer;
      color: #cbd5e1;
      transition: color 0.2s;
    }
    .star-rating-select i.selected {
      color: #0f172a;
    }
    /* ==========================================================================
   BULLETPROOF RESPONSIVE NAVIGATION & CORRECT 'X' TRANSFORMS
   ========================================================================== */

/* Force layout container to hold its structure on a single row */
nav.glass-box {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  position: relative !important;
}

#menu-toggle {
  display: none !important;
}

/* Define explicit rendering values for the hamburger container */
.hamburger-btn {
  display: none;
  flex-direction: column !important;
  justify-content: space-between !important;
  width: 26px !important;
  height: 18px !important;
  cursor: pointer !important;
  z-index: 1000 !important;
}

/* Force lines to have structural thickness and center orientation origins */
.hamburger-btn span {
  display: block !important;
  width: 100% !important;
  height: 3px !important;
  background-color: #0f172a !important; 
  border-radius: 4px !important;
  
  /* 🌟 FIX: Force lines to rotate around their exact center point, preventing the tick mark bug */
  transform-origin: center !important; 
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease !important;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINT SWITCH (TRIGGERS AT 1260PX FOR 8 LINK ITEMS)
   ========================================================================== */
@media (max-width: 1260px) {
  
  .hamburger-btn {
    display: flex !important;
  }

  nav .nav-links {
    position: absolute !important;
    top: calc(100% + 15px) !important;
    left: 0 !important;
    width: 100% !important;
    background: rgba(255, 255, 255, 0.96) !important; 
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    border-radius: 24px !important;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.05) !important;
    
    flex-direction: column !important;
    padding: 30px !important;
    gap: 15px !important;
    align-items: stretch !important;
    text-align: center !important;
    margin: 0 !important;
    
    opacity: 0 !important;
    transform: translateY(-15px) !important;
    pointer-events: none !important;
    transition: opacity 0.3s ease, transform 0.3s ease !important;
    z-index: 999 !important;
  }

  nav .nav-links li {
    width: 100% !important;
    margin: 0 !important;
  }

  nav .nav-links li a {
    display: block !important;
    padding: 12px !important;
    width: 100% !important;
    font-size: 1.1rem !important;
    color: #0f172a !important;
    background: transparent !important;
  }
  /* ==========================================================================
     OPENED MENU 'X' ANIMATION TRIGGERS
     ========================================================================== */
  
  #menu-toggle:checked ~ .nav-links {
    opacity: 1 !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
  }

  /* 🌟 FIX: Balanced structural rotation values that form a perfect 'X' */
  #menu-toggle:checked ~ .hamburger-btn span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg) !important;
  }

  #menu-toggle:checked ~ .hamburger-btn span:nth-child(2) {
    opacity: 0 !important;
  }

  #menu-toggle:checked ~ .hamburger-btn span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg) !important;
  }
}
/* ==========================================================================
   PREMIUM MAGNETIC PULSE UNDERLINE SYSTEM (NAV & FOOTER LINKS)
   ========================================================================== */

/* 1. Clear styling and anchor contexts */
.nav-links li a,
.footer-links a,
.footer-section ul li a,
footer a {
  position: relative !important;
  text-decoration: none !important;
  padding-bottom: 6px !important; /* Spaces text away from the rising baseline */
  transition: color 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* 2. Construct the Invisible Double-Sided Magnetic Dot baseline */
.nav-links li a::after,
.footer-links a::after,
.footer-section ul li a::after,
footer a::after {
  content: '' !important;
  position: absolute !important;
  bottom: 0 !important;
  left: 50% !important;
  width: 0 !important;
  height: 2px !important;
  background-color: #0f172a !important; /* Deep Premium Charcoal Black Line */
  border-radius: 4px !important;
  opacity: 0 !important;
  
  /* Elastic bounce easing curve to mimic magnetic spring physics */
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              left 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              opacity 0.3s ease !important;
}

/* 3. Active Elastic Stretch Target Trigger on Hover */
.nav-links li a:hover::after,
.footer-links a:hover::after,
.footer-section ul li a:hover::after,
footer a:hover::after {
  width: 100% !important;
  left: 0 !important;
  opacity: 1 !important;
}