/* India Chamber Navbar Styles */

/* Basic Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* Authentication buttons */
.auth-btn {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.login-btn {
    color: #2563eb;
    background: transparent;
    border: 1px solid #e5e7eb;
}

.login-btn:hover {
    background: #f8fafc;
    border-color: #2563eb;
}

.signup-btn {
    color: white;
    background: #2563eb;
    border: 1px solid #2563eb;
}

.signup-btn:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

/* User profile dropdown */
.user-profile-dropdown {
    position: relative;
    display: inline-block;
}

.user-profile-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: transparent;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #374151;
    transition: all 0.2s ease;
}

.user-profile-btn:hover {
    background: #f8fafc;
    border-color: #d1d5db;
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.user-avatar-placeholder {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #2563eb;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

.user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    min-width: 240px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

.user-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-info {
    padding: 16px;
    border-bottom: 1px solid #f3f4f6;
}

.user-details strong {
    display: block;
    font-weight: 600;
    color: #111827;
    margin-bottom: 2px;
}

.user-details span {
    color: #6b7280;
    font-size: 13px;
}

.dropdown-divider {
    height: 1px;
    background: #f3f4f6;
    margin: 8px 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s ease;
}

.dropdown-item:hover {
    background: #f8fafc;
    color: #2563eb;
}

.dropdown-item.logout:hover {
    background: #fef2f2;
    color: #dc2626;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .auth-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .user-profile-btn span {
        display: none;
    }
    
    .user-dropdown-menu {
        min-width: 200px;
    }
}

.india-chamber-nav {
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1001;
}

.navbar {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  position: relative;
  height: 70px;
  min-height: 70px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  font-weight: bold;
  font-size: 16px;
}
.logo img { height: 35px; margin-right: 8px; }

/* Menu */
.menu {
  display: flex;
  align-items: center;
  gap: 20px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  height: 100%;
}
.menu a,
.menu .dropdown > a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 45px;
  line-height: 1;
  padding: 0 8px;
  vertical-align: middle;
  white-space: nowrap;
  flex-shrink: 0;
}
.menu a:hover { color: #1e40af; }

/* Dropdown */
.dropdown { 
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 45px;
  flex-shrink: 0;
}
.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  min-width: 200px;
  border-radius: 6px;
  overflow: hidden;
}
.dropdown-content a {
  display: block;
  padding: 10px 15px;
  color: #333;
}
.dropdown-content a:hover { background: rgba(30, 64, 175, 0.1); color: #1e40af; }
.dropdown:hover .dropdown-content { display: block; }

/* Download Brochure Button */
.download-brochure-btn {
  background: #1e40af !important;
  color: #fff !important;
  padding: 8px 30px;
  border-radius: 20px;
  text-decoration: none !important;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  white-space: nowrap;
  min-width: 160px;
}

.download-brochure-btn:hover {
  background: #1e3a8a !important;
  color: #fff !important;
}

/* Right Section */
.right-icons {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.icon-btn {
  background: #1e40af !important;
  color: #ffffff !important;
  border: none;
  font-size: 20px;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.icon-btn:hover {
  background: #1e3a8a !important;
}

/* Specific styling for hamburger button */
#hamburger {
  background: #1e40af !important;
  color: #ffffff !important;
  border: none !important;
  font-size: 20px !important;
  cursor: pointer !important;
  padding: 8px 12px !important;
  border-radius: 20px !important;
  transition: all 0.3s ease !important;
}

#hamburger:hover {
  background: #1e3a8a !important;
}

/* Sidebar (Hamburger Menu) */
.sidebar {
  position: fixed;
  top: 0; right: -300px;
  width: 280px;
  height: 100%;
  background: #000000;
  box-shadow: -2px 0 8px rgba(0,0,0,0.2);
  transition: 0.3s;
  padding: 20px;
  overflow-y: auto;
  z-index: 2000;
}
.sidebar.active { right: 0; }
.sidebar h3 { 
  margin-bottom: 15px; 
  color: #ffffff;
}
.sidebar a {
  display: block;
  padding: 10px 0;
  text-decoration: none;
  color: #ffffff;
  border-bottom: 1px solid #333;
}
.sidebar a:hover { 
  color: #ffffff; 
  background: rgba(30, 64, 175, 0.2);
  border-radius: 4px;
  padding-left: 8px;
  transition: all 0.3s ease;
}

/* Sidebar Dropdown */
.sidebar-dropdown {
  margin: 10px 0;
}

.sidebar-dropdown-btn {
  display: block;
  width: 100%;
  padding: 10px 0;
  background: none;
  border: none;
  color: #ffffff;
  font-size: inherit;
  text-align: left;
  cursor: pointer;
  border-bottom: 1px solid #333;
  transition: all 0.3s ease;
}

.sidebar-dropdown-btn:hover {
  color: #ffffff;
  background: rgba(30, 64, 175, 0.2);
  border-radius: 4px;
  padding-left: 8px;
}

.sidebar-dropdown-content {
  display: none;
  padding-left: 20px;
  margin-top: 5px;
}

.sidebar-dropdown-content.active {
  display: block;
}

.sidebar-dropdown-content a {
  padding: 8px 0;
  border-bottom: 1px solid #444;
  color: #cccccc;
  font-size: 0.9rem;
}

.sidebar-dropdown-content a:hover {
  color: #ffffff;
  background: rgba(30, 64, 175, 0.2);
  padding-left: 12px;
}

/* Download Brochure Sidebar Button */
.download-brochure-sidebar {
  background: #1e40af !important;
  color: #fff !important;
  padding: 10px 30px !important;
  border-radius: 20px !important;
  text-decoration: none !important;
  margin: 10px 0 !important;
  display: block !important;
  text-align: center !important;
  font-weight: 500 !important;
  transition: all 0.3s ease !important;
  white-space: nowrap !important;
}

.download-brochure-sidebar:hover {
  background: #1e3a8a !important;
  color: #fff !important;
}
.close-btn {
  font-size: 22px;
  background: none;
  border: none;
  float: right;
  cursor: pointer;
  color: #ffffff;
}

/* Join Us button */
.join-btn {
  background: #1e40af !important;
  color: #fff !important;
  padding: 8px 16px;
  border-radius: 20px;
  text-decoration: none !important;
}
.join-btn:hover { 
  background: #1e3a8a !important;
  color: #fff !important; 
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .menu {
    display: none;
  }
  
  .right-icons {
    display: flex;
  }
}

@media (min-width: 769px) {
  .right-icons {
    display: flex;
  }
  
  .menu {
    display: flex;
  }
}

/* Hide global banner and ensure content doesn't overlap with fixed navbar */
.global-banner {
  display: none;
}

body {
  padding-top: 70px; /* Only navbar height */
}

/* ===== NESTED DROPDOWN STYLES FOR REF EVENTS ===== */

/* Nested Dropdown - Main Level (Rural Economic Forum) */
.nested-dropdown {
  position: relative;
  width: 100%;
}

.nested-dropdown-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 15px !important;
  color: #333 !important;
  text-decoration: none;
  width: 100%;
  transition: all 0.3s ease;
}

.nested-dropdown-trigger:hover {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(16, 185, 129, 0.1)) !important;
  color: #16a34a !important;
}

.nested-dropdown-content {
  display: none;
  position: absolute;
  left: 100%;
  top: 0;
  background: #ffffff;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  min-width: 220px;
  border-radius: 6px;
  overflow: hidden;
  z-index: 1000;
}

.nested-dropdown:hover > .nested-dropdown-content {
  display: block;
}

.nested-dropdown-content > a {
  display: block;
  padding: 10px 15px !important;
  color: #333;
  text-decoration: none;
  transition: all 0.3s ease;
}

.nested-dropdown-content > a:hover {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(16, 185, 129, 0.1)) !important;
  color: #16a34a !important;
}

/* Sub-nested Dropdown (Past Events, Upcoming) */
.sub-nested-dropdown {
  position: relative;
  width: 100%;
}

.sub-nested-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 15px !important;
  color: #333 !important;
  text-decoration: none;
  width: 100%;
  transition: all 0.3s ease;
  cursor: pointer;
}

.sub-nested-trigger:hover {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(16, 185, 129, 0.1)) !important;
  color: #16a34a !important;
}

.sub-nested-content {
  display: none;
  position: absolute;
  left: 100%;
  top: 0;
  background: #ffffff;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  min-width: 180px;
  border-radius: 6px;
  overflow: hidden;
  z-index: 1001;
}

.sub-nested-dropdown:hover > .sub-nested-content {
  display: block;
}

.sub-nested-content a {
  display: block;
  padding: 10px 15px !important;
  color: #333;
  text-decoration: none;
  transition: all 0.3s ease;
}

.sub-nested-content a:hover {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(16, 185, 129, 0.15)) !important;
  color: #16a34a !important;
  font-weight: 600;
}

/* ===== SIDEBAR NESTED DROPDOWN STYLES ===== */

/* Sidebar REF Dropdown Specific Styling */
.sidebar-ref-dropdown .sidebar-dropdown-btn {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(16, 185, 129, 0.05));
  border-radius: 6px;
  font-weight: 600;
}

.sidebar-ref-dropdown .sidebar-dropdown-btn:hover {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(16, 185, 129, 0.1));
}

/* Sidebar Nested Dropdown (inside REF dropdown) */
.sidebar-nested-dropdown {
  margin: 8px 0;
}

.sidebar-nested-btn {
  display: block;
  width: 100%;
  padding: 8px 0;
  background: none;
  border: none;
  color: #cccccc;
  font-size: 0.9rem;
  text-align: left;
  cursor: pointer;
  border-bottom: 1px solid #444;
  transition: all 0.3s ease;
  padding-left: 0;
}

.sidebar-nested-btn:hover {
  color: #4ade80;
  background: rgba(34, 197, 94, 0.1);
  border-radius: 4px;
  padding-left: 8px;
}

.sidebar-nested-content {
  display: none;
  padding-left: 20px;
  margin-top: 5px;
}

.sidebar-nested-content.active {
  display: block;
}

.sidebar-nested-content a {
  padding: 6px 0 !important;
  border-bottom: 1px solid #555 !important;
  color: #aaaaaa !important;
  font-size: 0.85rem !important;
}

.sidebar-nested-content a:hover {
  color: #4ade80 !important;
  background: rgba(34, 197, 94, 0.15) !important;
  padding-left: 12px !important;
  font-weight: 600 !important;
}

/* Special styling for REF dropdown content links */
.sidebar-ref-dropdown .sidebar-dropdown-content > a {
  color: #e0e0e0 !important;
  font-weight: 500;
}

.sidebar-ref-dropdown .sidebar-dropdown-content > a:hover {
  color: #4ade80 !important;
  background: rgba(34, 197, 94, 0.15) !important;
}