/*
Theme Name: Solid Trust
Theme URI: http://solidtrust.in/
Author: Rajini
Author URI: solidtrust.in
Description: A custom WordPress theme with basic styles.
Version: 1.0
License: GPL-2.0+
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: custom, simple, theme
Text Domain: Solid Trust

*/

/* ===============================
   DROPDOWN MENU - HIDE BY DEFAULT
   SHOW ON HOVER ONLY
   Elementor + OceanWP
   =============================== */
/* Hide dropdown menu by default */

.sub-menu li a {
  display: none;

}
/* Ensure parent menu positions dropdown correctly */
.menu-item-has-children {
  position: relative;
}

/* Hide dropdown by default */
.menu-item-has-children .sub-menu {
  display: none;
  position: absolute;
  top:0; /* directly below parent */
  left: 0;
  background: #ccc;
  min-width: 220px;
  z-index: 999;
  margin: 0;
  padding: 0;
  border-radius: 6px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
}

/* Show dropdown on hover */
.menu-item-has-children:hover > .sub-menu {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Small delay to keep open when moving mouse */
.menu-item-has-children > a {
  padding-bottom: 12px; /* small space for easier hover transition */
}

/* Dropdown item style */
.sub-menu li a {
  display: block;
  padding: 10px 15px;
  color: #454545;
  font-size: 16px;
  text-decoration: none;
}

/* Hover on submenu */
.sub-menu li a:hover {
  background: #f60;
  color: #fff;
}

/* Prevent flicker (extra safe area for hover) */
.menu-item-has-children:hover::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 15px; /* invisible bridge */
}
