/* ============================= */
/* MAIN NAVBAR */
/* ============================= */
*{ 
  margin:0; 
  padding:0;
  box-sizing:border-box;
}

body{
  overflow-x:hidden;
}

nav{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background: rgb(18, 18, 61);
  box-shadow: 0 6px 25px rgba(0,0,0,0.15);
}

#nav-bottom{
  width:100%;
  position:relative;
}

#nav-bottom-content{
  max-width:1300px;
  margin:auto;
  height: 60px;
  display:flex;
  align-items:center;
  justify-content:space-between;

  padding:10px 25px;
}

#nav-bottom-content-left{
  display:flex;
  align-items:center;
  gap:20px;
}

/* LOGO */

.rmmc-logo img{
  height: 40px;
  width: auto;
  display: block;
  transition:0.3s;
}

.rmmc-logo img:hover{
  transform:scale(1.05);
}

/* MOBILE BUTTON */

/* .menu-toggle{
  display:none;
  border:none;
  background:none;
  font-size:22px;
  color:white;
  cursor:pointer;

  margin-left:auto; 
} */


/* ============================= */
/* RIGHT MENU */
/* ============================= */

#nav-bottom-content-right{
  display:flex;
  align-items:center;
  gap:28px;

  list-style:none;
  padding:0;
  margin:0;
}

/* NAV LINKS */

#nav-bottom-content-right li{
  position:relative;
}

.nav-title{
  color:white;
  font-size:15px;
  font-weight:600;
  letter-spacing:.4px;
  text-decoration:none;
  padding:8px 6px;
  cursor:pointer;
  transition:all .25s ease;
}

/* HOVER */

.nav-title:hover{
  color:#ffd34d;
}


/* ============================= */
/* DROPDOWN MENU */
/* ============================= */

.dropdown-menu{
  position:absolute;
  top:120%;
  left:0;
  min-width:300px;
  background:white;
  border-radius:10px;
  box-shadow:0 15px 40px rgba(0,0,0,0.15);
  padding:8px 0;
  opacity:0;
  z-index: 9999;

  visibility:hidden;
  transform:translateY(10px);
  transition:all .25s ease;
}

.nav-dropdown:hover .dropdown-menu{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
}

.dropdown-menu li{
  list-style:none;
}

.dropdown-menu a{
  display:block;
  padding:12px 20px;
  text-decoration:none;
  color:#333;
  font-size:14px;
  transition:all .2s ease;
}

.dropdown-menu a:hover{
  background:#f3f6fb;
  padding-left:24px;
}


/* ============================= */
/* MEGA MENU */
/* ============================= */

.mega-menu-content{
  position:absolute;
  top:120%;
  left:0;

  background:white;
  width:350px;

  display:flex;
  gap:40px;

  padding:25px;

  border-radius:12px;
  box-shadow:0 20px 50px rgba(0,0,0,0.18);

  opacity:0;
  visibility:hidden;
  transform:translateY(10px);
  transition:all .3s ease;
}

.mega-menu:hover .mega-menu-content{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
}

/* MEGA COLUMNS */

.mega-column{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.mega-column a{
  display:flex;
  align-items:center;
  gap:10px;

  text-decoration:none;
  color:#333;
  font-size:14px;
  transition:.2s;
}

.mega-column a:hover{
  color:#0b57d0;
}


/* ============================= */
/* LOGOS INSIDE MENU */
/* ============================= */

.logo{
  width:22px;
  height:22px;
  object-fit:contain;
}


/* ============================= */
/* RESPONSIVE */
/* ============================= */

@media (max-width: 900px) {

  /* Navbar container */
  #nav-bottom-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    max-width: 100%; /* full width */
    margin: 0 auto;
  }

  /* Logo */
  .rmmc-logo img {
    height: 40px;
    transition: 0.3s;
  }

  /* Hamburger menu button */
  .menu-btn {
    display: flex;
    border: none;
    background: none;
    font-size: 22px;
    color: white;
    cursor: pointer;
    margin-left: auto;
  }

  /* Mobile menu container */
  #nav-bottom-content-right {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #0b2c5f;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 15px 20px;
    display: none; /* hidden initially */
    z-index: 999;
    transition: all 0.3s ease;
  }

  /* Show menu when active */
  #nav-bottom-content-right.active {
    display: flex;
  }

  /* Each menu item */
  #nav-bottom-content-right li {
    width: 100%;
  }

  /* Links inside menu */
  #nav-bottom-content-right a,
  #nav-bottom-content-right span.nav-title {
    display: block;
    width: 100%;
    padding: 10px 15px;
    color: white;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    cursor: pointer;
    transition: 0.3s;
  }

  #nav-bottom-content-right a:hover,
  #nav-bottom-content-right span.nav-title:hover {
    color: #ffd34d;
  }

  /* Dropdowns & Mega menu adjustments for mobile */
  .dropdown-menu,
  .mega-menu-content {
    position: relative !important;
    top: 0;
    left: 0;
    width: 100%;
    background: #0b2d5fb9;
    padding: 0;
    margin: 0;
    display: none; /* hidden by default */
    flex-direction: column;
    gap: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .dropdown-menu a,
  .mega-column a {
    color: white;
    padding: 10px 30px; /* indent for submenu */
    font-size: 14px;
  }

  .dropdown-menu a:hover,
  .mega-column a:hover {
    color: #ffd34d;
    background: none;
    padding-left: 35px;
  }

  /* Arrow indicator for dropdowns */
  .nav-dropdown > .nav-title::after {
    /* content: " ▼"; */
    float: right;
    font-size: 0.7rem;
  }

}









/* hidden burger */

/* .menu-toggle{
  display:none;
  border:none;
  background:none;
  font-size:22px;
  color:white;
  cursor:pointer;

  margin-left:auto; 
} */

/* 🌐 Main Dropdown Menu Panel */
.menu-btn {
  display:none;
  font-size: 1.8rem;
  color: #fff;
  cursor: pointer;
  margin-left:auto; 
  transition: color 0.3s ease, transform 0.2s ease;
}
.menu-btn:hover {
  color: #1576d1;
  transform: scale(1.1);
}

@media (max-width: 900px) {
  /* Hamburger menu button */
  .menu-btn {
    display: flex;
    border: none;
    background: none;
    font-size: 22px;
    color: white;
    cursor: pointer;
    margin-left: auto;
  }
}

.menu-panel {
  position: fixed;
  top: 70px;
  margin-top: 14px;
  right: 20px;
  left: auto;
  width: 360px;
  max-height: 94vh; 
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  height: auto;
  background: #002b5b;
  display: flex;
  flex-direction: column;
  overflow-y: auto;      
  overflow-x: hidden;
  opacity: 0;
  transform: translateY(-15px);
  pointer-events: none;   /* Prevent clicking */
  transition: all 0.3s ease;
  z-index: 100;
  /* ✅ Cross-browser scrollbar support */
  scrollbar-width: thin;                /* Firefox */
  scrollbar-color: rgba(255,255,255,0.08) #002b5b;     /* thumb + track colors */
}

/* When menu is shown */
.menu-panel.active {
  display: flex;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;   /* Allow clicking */
  right: 0; 
}

/* 🔹 WebKit Scrollbar (Chrome, Edge, Safari) */
.menu-panel::-webkit-scrollbar {
  width: 8px;
}

.menu-panel::-webkit-scrollbar-track {
  background: #002b5b;
}

.menu-panel::-webkit-scrollbar-thumb {
  background-color: #ff5e00;
  border-radius: 4px;
  border: 2px solid #002b5b;
}

.menu-panel::-webkit-scrollbar-thumb:hover {
  background-color: #ff7f32;
}

/* 🔹 Menu List Container */
.menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

/* 🔸 Top-Level Items */
.menu-item {
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 0;
}

/* 🔹 Menu Titles */
.menu-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 25px;
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.menu-title:hover {
  background: rgba(255,255,255,0.08);
  color: #FFD700;
}

/* 🔸 Simple Links */
.menu-item > a {
  display: block;
  padding: 14px 25px;
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: 0.3s;
}

.menu-item > a:hover {
  background: rgba(255,255,255,0.08);
  color: #FFD700;
}

/* 🔻 Submenu Section */
.submenu {
  list-style: none;
  margin: 0;
  padding-left: 0;
  background: #013869;
  display: none;
  flex-direction: column;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease;
}

.submenu li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 35px;
  font-size: 0.95rem;
  color: #e0e0e0;
  text-decoration: none;
  font-family: "Poppins", sans-serif;
  transition: 0.3s;
}

.submenu li a:hover {
  color: #FFD700;
  background: rgba(255,255,255,0.05);
}

/* Show submenu when parent has .open */
.menu-item.open .submenu {
  display: flex;
  max-height: 800px;
}

/* Small logo next to items */
.logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
  vertical-align: middle;
}

/* ===============================
   🌐 Responsive Dropdown Panel
   =============================== */

/* Tablets (max 1024px) */
@media (max-width: 1024px) {
  .menu-panel {
    width: 280px;   /* narrower on tablets */
    top: 65px;
    right: 10px;
  }
}

/* Small Tablets / Large Phones (max 768px) */
@media (max-width: 768px) {
  .menu-panel {
    width: 240px;
    top: 60px;
    right: 5px;
  }
}

/* Mobile Phones (max 480px) */
@media (max-width: 480px) {
  .menu-panel {
    z-index: 1000;
    width: 100%;    /* full width on mobile */
    top: 45px;
    right: 0;
    border-radius: 0; /* optional, remove rounded corners */
  }
}