/* ============================= */
/* HEADER BASE */
/* ============================= */

.riskgpt-header {
  background: #00a000;
}

.riskgpt-header .nav-menu {
  display: flex;
  gap: 25px;
  align-items: center;
}

.riskgpt-header .nav-menu > li {
  position: relative;
}

.riskgpt-header .nav-menu > li > a {
  color: #fff;
  padding: 20px 10px;
  display: block;
  font-weight: 500;
  text-decoration: none;
}

/* ============================= */
/* MEGA MENU DESKTOP */
/* ============================= */

.riskgpt-header .nav-menu > li.mega-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);

  width: 100vw;
  max-width: 1200px;

  background: #f5f7fb;
  padding: 40px 50px;

  display: flex;
  gap: 40px;

  opacity: 0;
  visibility: hidden;

  border-radius: 10px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.08);
  transition: all 0.25s ease;

  z-index: 9999;
}

.riskgpt-header .nav-menu > li.mega-menu:hover .sub-menu {
  opacity: 1;
  visibility: visible;
}

/* ============================= */
/* LEFT FEATURE BLOCK */
/* ============================= */

.riskgpt-header .sub-menu > li:first-child {
  flex: 0 0 280px;
  padding-right: 30px;
  border-right: 1px solid #e0e6ed;
}

.riskgpt-header .sub-menu > li:first-child > a {
  font-size: 18px;
  font-weight: 600;
  color: #111;
  display: block;
  margin-bottom: 10px;
}

/* Description using title attribute */
.riskgpt-header .sub-menu > li:first-child > a::after {
  content: attr(title);
  display: block;
  font-size: 14px;
  color: #666;
  margin-top: 8px;
  line-height: 1.5;
}

/* CTA button inside first column */
.riskgpt-header .sub-menu > li:first-child ul {
  margin-top: 15px;
}

.riskgpt-header .sub-menu > li:first-child ul li a {
  display: inline-block;
  padding: 10px 18px;
  background: #00c853;
  color: #fff;
  border-radius: 25px;
  font-size: 14px;
  text-decoration: none;
}

/* ============================= */
/* RIGHT COLUMNS */
/* ============================= */

.riskgpt-header .sub-menu > li:not(:first-child) {
  flex: 1;
}

.riskgpt-header .sub-menu > li:not(:first-child) > a {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 12px;
  display: block;
  color: #111;
}

.riskgpt-header .sub-menu li ul {
  margin: 0;
  padding: 0;
}

.riskgpt-header .sub-menu li ul li {
  list-style: none;
}

.riskgpt-header .sub-menu li ul li a {
  display: block;
  padding: 6px 0;
  font-size: 14px;
  color: #555;
  transition: all 0.2s ease;
  text-decoration: none;
}

.riskgpt-header .sub-menu li ul li a:hover {
  color: #000;
  transform: translateX(4px);
}

/* ============================= */
/* MOBILE RESPONSIVE */
/* ============================= */

@media (max-width: 768px) {

  .riskgpt-header .nav-menu {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    display: none;
  }

  .riskgpt-header .nav-menu.active {
    display: flex;
  }

  /* Mobile toggle button */
  .menu-toggle {
    display: block;
    cursor: pointer;
    padding: 10px;
  }

  /* Remove mega panel behavior */
  .riskgpt-header .nav-menu > li.mega-menu .sub-menu {
    position: static;
    transform: none;
    width: 100%;
    max-width: 100%;

    padding: 10px 15px;
    box-shadow: none;
    border-radius: 0;

    display: none;
    opacity: 1;
    visibility: visible;
    flex-direction: column;
    gap: 10px;
  }

  /* Show submenu on click (via class) */
  .riskgpt-header .nav-menu > li.open .sub-menu {
    display: flex;
  }

  /* Remove left panel layout */
  .riskgpt-header .sub-menu > li {
    border: none;
    padding: 0;
  }

  .riskgpt-header .sub-menu > li:first-child {
    border: none;
  }

  /* Make headings clickable */
  .riskgpt-header .sub-menu > li > a {
    font-weight: 600;
    padding: 10px 0;
  }

}