/* =====================================================================
   Social On Table — Services Mega Menu v2 (icon-card layout)
   4 category cards: Digital Marketing / Design Services / IT Services /
   Product Shoot & Media — each with header, icon list and CTA button.
   Extends base positioning rules in mega-menu.css
   (.sot-mega-parent / .sot-mega-menu)
   ===================================================================== */

.sot-mega-menu--v2 {
  border-top: none;
  background: #0b0b0b;
  box-shadow: 0 30px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.05);
  border-radius: 18px;
  border-top: 3px solid var(--theme-color1, #FF6B1E);
  padding: 24px;
  max-width: calc(100vw - 32px);
  overflow-x: auto;
}

.sot-mega-menu--v2:before { display: none; }

/* Grid of 4 card columns, centered inside the full-width panel */
.sot-mega-inner--v2 {
  display: grid !important;
  grid-template-columns: repeat(4, 250px);
  align-items: start;
  justify-content: center;
  gap: 18px;
  width: auto;
  padding: 0;
  margin: 0 auto;
}

/* ── Card ─────────────────────────────────────────────────────────── */
.sot-mega-card {
  display: flex;
  flex-direction: column;
  background: #181818;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 20px 18px 18px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.sot-mega-card:hover {
  border-color: rgba(255,107,30,0.45);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.35);
}

.sot-mega-card__head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sot-mega-card__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: rgba(255,107,30,0.14);
  border-radius: 10px;
  color: var(--theme-color1, #FF6B1E);
  font-size: 16px;
}

.sot-mega-card__title {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--theme-color1, #FF6B1E);
}

.sot-mega-card__desc {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: #9a9a9a;
}

/* ── List ─────────────────────────────────────────────────────────── */
.sot-mega-card__list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}

.sot-mega-card__list--scroll {
  max-height: 300px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
  margin-right: -4px;
}
.sot-mega-card__list--scroll::-webkit-scrollbar { width: 4px; }
.sot-mega-card__list--scroll::-webkit-scrollbar-thumb {
  background: rgba(255,107,30,0.4);
  border-radius: 4px;
}

.sot-mega-item {
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.sot-mega-item:last-child { border-bottom: none; }

.sot-mega-item a {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 4px;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.2s ease;
}
.sot-mega-item a:hover {
  background: rgba(255,107,30,0.08);
}

.sot-mega-item__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-top: 1px;
  background: rgba(255,255,255,0.06);
  border-radius: 7px;
  color: #d8d8d8;
  font-size: 12px;
  transition: background 0.2s ease, color 0.2s ease;
}
.sot-mega-item a:hover .sot-mega-item__icon {
  background: var(--theme-color1, #FF6B1E);
  color: #0e0e0e;
}

.sot-mega-item__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.sot-mega-item__title {
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
  white-space: normal;
}

.sot-mega-item__desc {
  font-size: 11.5px;
  line-height: 1.4;
  color: #8f8f8f;
  white-space: normal;
}

/* "New" tag */
.sot-mega-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  padding: 1px 6px;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #0e0e0e;
  background: var(--theme-color1, #FF6B1E);
  border-radius: 20px;
  line-height: 1.6;
  white-space: nowrap;
  vertical-align: middle;
}

/* ── CTA button ───────────────────────────────────────────────────── */
.sot-mega-card__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  padding: 10px 12px;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  color: var(--theme-color1, #FF6B1E);
  border: 1px solid var(--theme-color1, #FF6B1E);
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease;
}
.sot-mega-card__cta i { font-size: 11px; transition: transform 0.2s ease; }
.sot-mega-card__cta:hover {
  background: var(--theme-color1, #FF6B1E);
  color: #0e0e0e;
}
.sot-mega-card__cta:hover i { transform: translateX(3px); }

@media (max-width: 991px) {
  .sot-mega-menu--v2 { display: none !important; }
}

/* Slightly narrower cards on smaller desktop widths so it never crowds the edges */
@media (max-width: 1399.98px) {
  .sot-mega-inner--v2 {
    grid-template-columns: repeat(4, 215px);
    gap: 14px;
  }
  .sot-mega-card { padding: 16px 14px 14px; }
}
