 /* =====================================
   MEGA MENU – FINAL STABLE VERSION
   FIXED POSITION + BEAUTIFIED
===================================== */

/* Parent must be relative */
.th-nav-item.th-has-mega {
  position: relative;
}

/* Mega menu container */
.th-mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(20px);

  background: #ffffff;
  border-radius: 14px;
  padding: 30px 32px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.15);

  width: 980px;          /* fixed width */
  max-width: 95vw;       /* prevent overflow */
  display: flex;
  gap: 40px;

  opacity: 0;
  visibility: hidden;
  transition: all 0.35s ease;
  z-index: 999;
}

/* Show on hover */
.th-has-mega:hover .th-mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Text column */
.th-mega-col {
  flex: 1;
}

/* Main heading */
.th-mega-col h4 {
  font-size: 18px;
  font-weight: 700;
  color: #111;
  margin-bottom: 20px;
  position: relative;
}

.th-mega-col h4::after {
  content: "";
  width: 44px;
  height: 3px;
  background: linear-gradient(90deg, #ff7a18, #ffb347);
  display: block;
  margin-top: 6px;
  border-radius: 3px;
}

/* Sections grid */
.th-mega-sections {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

/* Section titles */
.th-mega-section h5 {
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #ff7a18;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

/* Links */
.th-mega-section a {
  display: block;
  font-size: 15px;
  color: #444;
  text-decoration: none;
  margin-bottom: 7px;
  padding-left: 14px;
  position: relative;
  transition: all 0.25s ease;
}

.th-mega-section a::before {
  content: "›";
  position: absolute;
  left: 0;
  top: 0;
  color: #ff7a18;
  font-size: 16px;
}

.th-mega-section a:hover {
  color: #ff7a18;
  transform: translateX(5px);
}

/* Image column */
.th-mega-image {
  flex: 0 0 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Image column – CENTERED */
.th-mega-image {
  flex: 0 0 320px;          /* smaller column */
  display: flex;
  align-items: center;     /* vertical center */
  justify-content: center; /* horizontal center */
}

/* Image sizing */
.th-mega-image img {
  width: 100%;
  max-width: 280px;        /* medium size */
  height: auto;
  margin: 0;               /* remove bottom push */
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  transition: transform 0.35s ease;
  
 
}

/* Gentle hover zoom */
.th-has-mega:hover .th-mega-image img {
  transform: scale(1.03);
}


/* Caret animation */
.th-caret {
  display: inline-block;
  transition: transform 0.3s ease;
}

.th-has-mega:hover .th-caret {
  transform: rotate(180deg);
}

/* Ensure nothing clips the dropdown */
.th-header,
.th-header-inner,
.th-nav {
  overflow: visible;
}

/* =====================================
   END MEGA MENU CSS
===================================== */
