/* Navbar & Dropdown CSS - shared across pages */

* { margin: 0; padding: 0; box-sizing: border-box; }
a { text-decoration: none; }

:root {
  --primary-dark: #281545;
  --primary-purple: #4b1f78;
  --accent-orange: #ff6b3d;
  --accent-light: #ff9f5c;
  --gray-bg: #fafafc;
  --shadow-sm: 0 12px 30px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 20px 35px -12px rgba(0, 0, 0, 0.1);
  --radius-card: 28px;
  --radius-btn: 40px;
}

.container { width: 90%; max-width: 1280px; margin: 0 auto; }

/* Full width container for navbar */
.navbar .container { width: 100%; max-width: 100%; padding: 0 20px; }

/* Prevent text overflow */
* { word-wrap: break-word; overflow-wrap: break-word; }

/* top bar */
.top-bar { background: #4b1f78; color: white; padding: 10px 0; font-size: 0.85rem; font-weight: 500; }
.top-flex { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; align-items: center; }
.top-contact { display: flex; gap: 24px; flex-wrap: wrap; }
.top-contact i, .top-location i { margin-right: 8px; }

/* navbar */
.navbar { background: white; padding: 16px 0; position: sticky; top: 0; z-index: 1000; transition: all 0.25s ease; box-shadow: 0 1px 0 rgba(0,0,0,0.03); }
.navbar.sticky { box-shadow: 0 12px 28px rgba(0,0,0,0.08); backdrop-filter: blur(2px); background: rgba(255,255,255,0.98); }
.nav-flex { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon { width: 48px; height: 48px; background: #ff6b3d; border-radius: 18px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.8rem; color: white; box-shadow: 0 8px 14px rgba(255,107,61,0.25); }
.logo .logo-text { font-size: 1.8rem; font-weight: 800; letter-spacing: -0.5px; color: #281545; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { text-decoration: none; font-weight: 600; color: #1f1a3c; transition: all 0.15s ease; font-size: 0.95rem; padding: 8px 18px; border-radius: 12px; background: #ffffff; border: 1px solid #e0dce8; box-shadow: 0 4px 0 #c9c4d4, 0 6px 10px rgba(0,0,0,0.08); position: relative; top: 0; }
.nav-links a:hover { color: #4b1f78; top: 2px; box-shadow: 0 2px 0 #c9c4d4, 0 3px 6px rgba(0,0,0,0.06); }
.nav-links a:active { top: 4px; box-shadow: 0 0px 0 #c9c4d4, 0 1px 3px rgba(0,0,0,0.04); }
.btn-outline-nav { background: #4b1f78; padding: 8px 22px; border-radius: 40px; color: white !important; font-weight: 600; }
.hamburger { display: none; font-size: 28px; cursor: pointer; color: #4b1f78; padding: 10px; z-index: 1100; position: relative; }
.hamburger i { pointer-events: none; }
.mobile-menu-close { display: none; position: absolute; top: 20px; right: 20px; font-size: 24px; color: white; cursor: pointer; z-index: 1102; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.1); align-items: center; justify-content: center; }
.mobile-menu-close i { pointer-events: none; }

/* Full-page dropdown */
.nav-dropdown { position: fixed; top: 82px; left: 0; width: 100%; height: 80vh; background: #ffffff; z-index: 999; overflow: hidden; display: flex; max-height: 0; opacity: 0; transition: max-height 0.7s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.5s ease; padding: 0; box-shadow: 0 20px 60px rgba(0,0,0,0.12); border-top: 3px solid #ff6b3d; }
.nav-dropdown.active { max-height: 80vh; opacity: 1; }
.dropdown-sidebar { width: 20%; background: #fafafe; color: #1f1a3c; padding: 48px 24px 36px; display: flex; flex-direction: column; justify-content: space-between; overflow-y: auto; position: relative; scrollbar-width: none; -ms-overflow-style: none; }
.dropdown-sidebar::-webkit-scrollbar { display: none; }
.dropdown-sidebar::after { display: none; }
.dropdown-sidebar-top { flex: 1; }
.dropdown-sidebar .dropdown-title { font-size: 1.6rem; font-weight: 800; color: #1f0f3a; margin-bottom: 14px; letter-spacing: -0.02em; }
.dropdown-sidebar .dropdown-title span { color: #ff6b3d; }
.dropdown-sidebar .dropdown-subtitle { color: #7a7a8e; font-size: 0.9rem; line-height: 1.65; margin-bottom: 32px; max-width: 280px; }
.dropdown-sidebar-links { display: flex; flex-direction: column; gap: 6px; }
.dropdown-sidebar-links a { display: flex; align-items: center; gap: 14px; padding: 12px 18px; border-radius: 12px; color: #5a5a6e; text-decoration: none; font-weight: 600; font-size: 0.92rem; transition: all 0.2s ease; background: #ffffff; border: 1px solid #e0d8f0; box-shadow: 0 4px 0 #d0cce0, 0 6px 12px rgba(0,0,0,0.08); position: relative; top: 0; }
.dropdown-sidebar-links a:hover { background: #f5f0ff; color: #4b1f78; border-color: #c9c4d4; transform: translateY(-2px); box-shadow: 0 6px 0 #c9c4d4, 0 8px 16px rgba(75,31,120,0.12); }
.dropdown-sidebar-links a:active { top: 4px; box-shadow: 0 0px 0 #c9c4d4, 0 2px 6px rgba(75,31,120,0.08); }
.dropdown-sidebar-links a.active { background: #4b1f78; color: white; border-color: #3a1758; box-shadow: 0 4px 0 #2d1459, 0 6px 12px rgba(75,31,120,0.2); }
.dropdown-sidebar-links a i { width: 34px; height: 34px; background: #f5f0ff; border: 1px solid #e0d8f0; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 14px; color: #4b1f78; flex-shrink: 0; transition: all 0.25s ease; }
.dropdown-sidebar-links a:hover i { background: #4b1f78; color: white; border-color: transparent; }
.dropdown-sidebar-bottom { margin-top: 28px; padding-top: 20px; border-top: 1px solid #eeeaf4; }
.dropdown-sidebar-bottom p { color: #9a9ab0; font-size: 0.8rem; line-height: 1.5; letter-spacing: 0.01em; }
.dropdown-content { width: 80%; padding: 44px 56px; overflow-y: auto; background: #fafafe; }
.dropdown-close { width: 44px; height: 44px; border-radius: 10px; background: #ffffff; border: 1px solid #e8e5f0; box-shadow: 0 2px 8px rgba(0,0,0,0.06); display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 1rem; color: #6b6b80; transition: all 0.2s ease; position: relative; top: 0; z-index: 10; }
.dropdown-close:hover { background: #ff6b3d; color: white; border-color: #ff6b3d; box-shadow: 0 4px 12px rgba(255,107,61,0.3); }
.dropdown-close:active { transform: scale(0.95); }
.dropdown-content-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 36px; padding-bottom: 20px; border-bottom: 1px solid #eeeaf4; }
.dropdown-content-title { font-size: 1.75rem; font-weight: 800; color: #1f0f3a; letter-spacing: -0.02em; }
.dropdown-content-title span { color: #ff6b3d; }
.dropdown-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.dropdown-card { background: #ffffff; border-radius: 16px; padding: 26px 24px; border: 1px solid #f0edf5; box-shadow: 0 2px 8px rgba(0,0,0,0.03); transition: all 0.3s ease; cursor: pointer; position: relative; overflow: hidden; }
.dropdown-card::before { content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 0; background: #4b1f78; border-radius: 0 0 4px 0; transition: height 0.3s ease; }
.dropdown-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(75,31,120,0.08); border-color: #e8dff0; }
.dropdown-card:hover::before { height: 100%; }
.dropdown-card .dc-icon { width: 48px; height: 48px; background: #f5f0ff; border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; transition: all 0.3s ease; }
.dropdown-card:hover .dc-icon { background: #4b1f78; }
.dropdown-card .dc-icon i { font-size: 20px; color: #4b1f78; transition: color 0.3s ease; }
.dropdown-card:hover .dc-icon i { color: white; }
.dropdown-card h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; color: #1f1a3c; }
.dropdown-card p { color: #7a7a8e; line-height: 1.55; font-size: 0.88rem; }
.dropdown-card::after { content: '\f054'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: #ff6b3d; font-size: 1.2rem; opacity: 0; transition: all 0.3s ease; }
.dropdown-card:hover::after { opacity: 1; right: 16px; }
.dropdown-links-list { display: flex; flex-direction: column; gap: 10px; }
.dropdown-links-list a { display: flex; align-items: center; gap: 16px; padding: 16px 22px; background: #ffffff; border-radius: 14px; border: 1px solid #f0edf5; box-shadow: 0 2px 8px rgba(0,0,0,0.02); text-decoration: none; color: #1f1a3c; font-weight: 600; font-size: 1rem; transition: all 0.3s ease; position: relative; overflow: hidden; }
.dropdown-links-list a::after { content: '\f054'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; right: 20px; color: #c0bdd0; font-size: 0.75rem; transition: all 0.3s ease; }
.dropdown-links-list a:hover { transform: translateX(6px); border-color: #e0d8f0; box-shadow: 0 6px 20px rgba(75,31,120,0.06); background: #fdfcff; }
.dropdown-links-list a:hover::after { color: #ff6b3d; right: 16px; }
.dropdown-links-list a i { width: 42px; height: 42px; background: #f5f0ff; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #4b1f78; font-size: 17px; flex-shrink: 0; transition: all 0.3s ease; }
.dropdown-links-list a:hover i { background: #4b1f78; color: white; }
.dropdown-links-list a .dl-desc { font-weight: 400; font-size: 0.85rem; color: #7a7a8e; margin-top: 2px; }
.dropdown-contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.dropdown-contact-card { background: #ffffff; border-radius: 16px; padding: 26px; border: 1px solid #f0edf5; box-shadow: 0 2px 8px rgba(0,0,0,0.03); transition: all 0.3s ease; position: relative; overflow: hidden; }
.dropdown-contact-card::after { content: '\f054'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: #ff6b3d; font-size: 1.2rem; opacity: 0; transition: all 0.3s ease; }
.dropdown-contact-card:hover::after { opacity: 1; right: 16px; }
.dropdown-contact-card:hover { box-shadow: 0 8px 20px rgba(75,31,120,0.06); border-color: #e0d8f0; }
.dropdown-contact-card h4 { font-size: 1.2rem; font-weight: 700; margin-bottom: 14px; color: #1f1a3c; }
.dropdown-contact-card p, .dropdown-contact-card a { color: #606070; line-height: 1.7; font-size: 0.95rem; text-decoration: none; display: block; }
.dropdown-contact-card a:hover { color: #ff6b3d; }
.dropdown-contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.contact-detail-panel { min-height: 300px; }
.contact-detail-panel .cdp-item { background: #ffffff; border-radius: 14px; padding: 22px; border: 1px solid #f0edf5; margin-bottom: 14px; transition: all 0.3s ease; }
.contact-detail-panel .cdp-item:hover { border-color: #e0d8f0; box-shadow: 0 4px 14px rgba(75,31,120,0.05); }
.contact-detail-panel .cdp-item h4 { font-size: 1.1rem; font-weight: 700; color: #1f1a3c; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.contact-detail-panel .cdp-item h4 i { color: #ff6b3d; }
.contact-detail-panel .cdp-item p, .contact-detail-panel .cdp-item a { color: #606070; line-height: 1.7; font-size: 0.95rem; text-decoration: none; display: block; }
.contact-detail-panel .cdp-item a:hover { color: #ff6b3d; }
.contact-back-btn { display: inline-flex; align-items: center; gap: 6px; background: #f5f0ff; color: #4b1f78; border: none; padding: 8px 16px; border-radius: 10px; font-size: 0.85rem; font-weight: 600; cursor: pointer; margin-bottom: 16px; transition: all 0.2s; }
.contact-back-btn:hover { background: #ede5ff; }
.dropdown-contact-form { background: #faf8ff; border-radius: 16px; padding: 26px; border: 1px solid #ede8f5; }
.dropdown-contact-form h4 { font-size: 1.15rem; font-weight: 700; color: #1f1a3c; margin-bottom: 18px; }
.cdf-group { margin-bottom: 12px; }
.cdf-group input, .cdf-group select, .cdf-group textarea { width: 100%; padding: 14px 16px; border: 2px solid #e0dce8; border-radius: 10px; font-size: 0.88rem; font-family: 'Poppins', sans-serif; transition: 0.3s; background: #fff; min-height: 44px; }
.cdf-group input:focus, .cdf-group select:focus, .cdf-group textarea:focus { border-color: #6a11cb; outline: none; box-shadow: 0 0 0 3px rgba(106,17,203,0.1); }
.cdf-group textarea { resize: vertical; min-height: 60px; }
.cdf-submit { width: 100%; padding: 11px 20px; background: #6a11cb; color: #fff; border: none; border-radius: 10px; font-weight: 600; font-size: 0.9rem; cursor: pointer; transition: 0.3s; font-family: 'Poppins', sans-serif; display: flex; align-items: center; justify-content: center; gap: 8px; }
.cdf-submit:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(106,17,203,0.3); }
.cdf-submit.loading { opacity: 0.8; pointer-events: none; }
.cdf-spinner { display: none; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%; animation: cdf-spin 0.6s linear infinite; }
.cdf-submit.loading .cdf-spinner { display: inline-block; }
.cdf-submit.loading .cdf-btn-text { display: none; }
@keyframes cdf-spin { to { transform: rotate(360deg); } }
.cdf-alert { margin-top: 12px; padding: 10px 14px; border-radius: 10px; font-size: 0.85rem; display: none; }
.cdf-alert.success { display: block; background: #dcfce7; color: #15803d; border: 1px solid #86efac; }
.cdf-alert.error { display: block; background: #fee2e2; color: #dc2626; border: 1px solid #fca5a5; }
.nav-links a.nav-active-btn { background: #4b1f78; color: white !important; border-color: transparent; box-shadow: 0 4px 0 #8b5cf6, 0 6px 10px rgba(75,31,120,0.2); }
.nav-links a.nav-active-btn:hover { box-shadow: 0 2px 0 #8b5cf6, 0 3px 6px rgba(75,31,120,0.15); top: 2px; }
.dynamic-content-area { display: none; padding: 20px; }
.dynamic-content-area.active { display: block; }
.dynamic-content-area h3 { color: #4b1f78; font-size: 1.5rem; margin-bottom: 15px; }
.dynamic-content-area p { color: #606070; line-height: 1.7; font-size: 0.95rem; }
.dropdown-auth-layout { display: flex; gap: 40px; align-items: start; max-width: 700px; margin: 0 auto; }
.auth-right-panel { flex: 1; }

/* Register/Login Form Styles (from index.php) */
.login-form-container, .register-form-container, .forgot-form-container {
  max-width: 480px;
  padding: 20px;
}

.register-form-container h3, .login-form-container h3, .forgot-form-container h3 {
  margin-bottom: 20px;
  color: #1f0f3a;
  font-size: 1.3rem;
  font-weight: 700;
}

.register-form-container h3 i, .login-form-container h3 i, .forgot-form-container h3 i {
  color: #ff6b3d;
  margin-right: 8px;
}

.reg-field {
  margin-bottom: 16px;
}

.reg-field label {
  display: block;
  font-weight: 600;
  color: #1f1a3c;
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.reg-field input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e0dce8;
  border-radius: 12px;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fafafe;
  box-sizing: border-box;
  min-height: 44px;
}

.reg-field input:focus {
  border-color: #4b1f78;
  box-shadow: 0 0 0 3px rgba(75,31,120,0.1);
  outline: none;
}

.reg-submit-btn {
  width: 100%;
  padding: 14px;
  background: #4b1f78;
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}

.reg-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(75,31,120,0.3);
}

.reg-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.reg-login-link {
  margin-top: 18px;
  text-align: center;
  color: #666;
  font-size: 0.9rem;
}

.reg-login-link a {
  color: #4b1f78;
  font-weight: 600;
  text-decoration: none;
}

.reg-login-link a:hover {
  color: #ff6b3d;
}

.reg-error {
  color: #dc3545;
  font-size: 0.8rem;
  margin-top: 4px;
  display: none;
}

.password-wrapper {
  position: relative;
}

.password-wrapper input {
  width: 100%;
  padding-right: 45px;
}

.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #777;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.toggle-password:hover {
  color: #4b1f78;
}

/* Profile Dropdown Layout */
.dropdown-profile-layout {
  max-width: 600px;
  margin: 0 auto;
}

.profile-header {
  background: linear-gradient(135deg, #4b1f78 0%, #6a11cb 100%);
  border-radius: 20px;
  padding: 40px 30px;
  display: flex;
  align-items: center;
  gap: 25px;
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(75, 31, 120, 0.2);
}

.profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-info {
  flex: 1;
}

.profile-info h3 {
  color: white;
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.profile-email, .profile-mobile {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-email i, .profile-mobile i {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
}

.profile-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-admin {
  background: rgba(255, 107, 61, 0.9);
  color: white;
}

.badge-user {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.profile-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-action-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px;
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #f0edf5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  text-decoration: none;
  color: #1f1a3c;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.profile-action-btn::after {
  content: '\f054';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  right: 20px;
  color: #c0bdd0;
  font-size: 0.75rem;
  transition: all 0.3s ease;
}

.profile-action-btn:hover {
  transform: translateX(6px);
  border-color: #e0d8f0;
  box-shadow: 0 6px 20px rgba(75, 31, 120, 0.06);
  background: #fdfcff;
}

.profile-action-btn:hover::after {
  color: #ff6b3d;
  right: 16px;
}

.profile-action-btn i {
  width: 42px;
  height: 42px;
  background: #f5f0ff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4b1f78;
  font-size: 17px;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.profile-action-btn:hover i {
  background: #4b1f78;
  color: white;
}

.logout-btn {
  border-color: #fee2e2;
  background: #fef2f2;
}

.logout-btn i {
  background: #fee2e2;
  color: #dc2626;
}

.logout-btn:hover {
  border-color: #fca5a5;
  background: #fee2e2;
}

.logout-btn:hover i {
  background: #dc2626;
  color: white;
}

.logout-btn::after {
  display: none;
}

/* Hide mobile-only buttons on desktop */
.mobile-back-btn,
.mobile-sidebar-close {
  display: none !important;
}

/* Responsive */
@media (max-width: 992px) {
  .hamburger { display: block; }
  .mobile-menu-close { display: flex; }
  .nav-links { position: fixed; top: 0; right: -100%; width: 280px; height: 100vh; background: #4b1f78; flex-direction: column; padding: 80px 30px 30px; gap: 15px; transition: right 0.3s ease; z-index: 1050; box-shadow: -5px 0 20px rgba(0,0,0,0.2); overflow-y: auto; }
  .nav-links.active { right: 0; }
  .nav-links a { background: rgba(255,255,255,0.1); color: white; border: none; box-shadow: none; padding: 15px 20px; width: 100%; text-align: left; min-height: 44px; }
  .nav-links a:hover { background: rgba(255,255,255,0.2); color: white; top: 0; }
  
  /* Mobile Dropdown - Sidebar first, then content */
  .nav-dropdown { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100vh; 
    z-index: 1100; 
    overflow-y: auto; 
    flex-direction: column;
    background: #fff;
  }
  .nav-dropdown.active { 
    max-height: 100vh; 
  }
  
  /* Show sidebar by default on mobile, hide content */
  .dropdown-sidebar { 
    display: flex; /* Show sidebar by default */
    flex-direction: column;
    width: 100%; 
    height: auto; 
    min-height: 100vh;
    padding: 80px 20px 20px;
    background: linear-gradient(135deg, #4b1f78 0%, #2d1459 100%);
    border-bottom: 3px solid #ff6b3d;
    position: relative;
  }
  
  /* Mobile Sidebar Close Button */
  .mobile-sidebar-close {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1103;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 1.2rem;
    display: flex !important; /* Show on mobile by default */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
  }
  
  .mobile-sidebar-close:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: rotate(90deg);
  }
  
  .mobile-sidebar-close:active {
    transform: rotate(90deg) scale(0.9);
  }
  
  /* Hide sidebar close button when content is shown */
  .nav-dropdown.showing-mobile-content .mobile-sidebar-close {
    display: none !important;
  }
  
  /* Hide content by default on mobile */
  .dropdown-content { 
    display: none; /* Hidden by default */
    width: 100%; 
    height: auto; 
    padding: 80px 20px 40px;
    background: #fff;
  }
  
  /* When showing content, hide sidebar and show content */
  .nav-dropdown.showing-mobile-content .dropdown-sidebar {
    display: none;
  }
  
  .nav-dropdown.showing-mobile-content .dropdown-content {
    display: block;
    min-height: 100vh;
  }

  
  .dropdown-sidebar .dropdown-title {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 10px;
  }
  
  .dropdown-sidebar .dropdown-subtitle {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 24px;
    max-width: 100%;
  }
  
  .dropdown-sidebar-links a {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 14px 16px;
    font-size: 0.95rem;
    box-shadow: none;
  }
  
  .dropdown-sidebar-links a i {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    width: 38px;
    height: 38px;
  }
  
  .dropdown-sidebar-links a.active {
    background: #ff6b3d;
    border-color: #ff6b3d;
    color: #fff;
    box-shadow: 0 4px 12px rgba(255, 107, 61, 0.4);
  }
  
  .dropdown-sidebar-links a.active i {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
  }
  
  .dropdown-sidebar-links a:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    transform: translateY(0);
    box-shadow: none;
  }
  
  .dropdown-sidebar-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }
  
  .dropdown-sidebar-bottom p {
    color: rgba(255, 255, 255, 0.7);
  }
  

  
  .dropdown-content-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
  }
  
  .dropdown-content-title {
    font-size: 1.4rem;
    flex: 1;
  }
  
  .dropdown-close {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1101;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  }
  
  /* Hide content close button when sidebar is shown (not in content view) */
  .nav-dropdown:not(.showing-mobile-content) .dropdown-close {
    display: none;
  }
  
  /* Show content close button only when content is shown */
  .nav-dropdown.showing-mobile-content .dropdown-close {
    display: flex;
  }
  
  /* Mobile Grid - Single Column */
  .dropdown-grid { 
    grid-template-columns: 1fr; 
    gap: 16px;
  }
  
  .dropdown-card {
    padding: 20px 18px;
  }
  
  .dropdown-card h4 {
    font-size: 1.05rem;
  }
  
  .dropdown-card p {
    font-size: 0.85rem;
  }
  
  .dropdown-contact-grid { 
    grid-template-columns: 1fr; 
    gap: 16px;
  }
  
  .dropdown-contact-card {
    padding: 20px 18px;
  }
  
  .dropdown-links-list {
    gap: 12px;
  }
  
  .dropdown-links-list a {
    padding: 14px 18px;
    font-size: 0.95rem;
  }
  
  .dropdown-links-list a i {
    width: 38px;
    height: 38px;
    font-size: 16px;
  }
  
  /* Mobile Contact Layout */
  .dropdown-contact-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  /* Mobile Dynamic Content */
  .dynamic-content-area {
    padding: 20px 16px;
  }
  
  .dynamic-content-area h3 {
    font-size: 1.3rem;
  }
  
  .dynamic-content-area p {
    font-size: 0.9rem;
  }
  
  /* Back button for mobile navigation */
  .mobile-back-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1102;
    display: none !important; /* Hidden by default on mobile too */
    align-items: center;
    gap: 8px;
    background: #4b1f78;
    color: #fff;
    border: 1px solid #6a11cb;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(75, 31, 120, 0.3);
    transition: all 0.2s;
  }
  
  .mobile-back-btn:hover {
    background: #6a11cb;
    box-shadow: 0 6px 16px rgba(75, 31, 120, 0.4);
  }
  
  /* Hide back button when sidebar is shown */
  .nav-dropdown .mobile-back-btn {
    display: none !important;
  }
  
  /* Show back button when content is shown */
  .nav-dropdown.showing-mobile-content .mobile-back-btn {
    display: inline-flex !important;
  }
  
  /* Mobile Profile Layout */
  .profile-header {
    flex-direction: column;
    text-align: center;
    padding: 30px 20px;
  }
  
  .profile-avatar {
    width: 80px;
    height: 80px;
  }
  
  .profile-info h3 {
    font-size: 1.4rem;
  }
  
  .profile-email, .profile-mobile {
    justify-content: center;
    font-size: 0.85rem;
  }
  
  .profile-action-btn {
    padding: 14px 18px;
    font-size: 0.95rem;
  }
  
  .profile-action-btn i {
    width: 38px;
    height: 38px;
    font-size: 16px;
  }
  
  /* Mobile Form Styles */
  .login-form-container, 
  .register-form-container, 
  .forgot-form-container {
    max-width: 100%;
    padding: 20px 16px;
  }
  
  .register-form-container h3, 
  .login-form-container h3, 
  .forgot-form-container h3 {
    font-size: 1.2rem;
  }
  
  .reg-field input {
    font-size: 0.9rem;
    padding: 12px 14px;
  }
  
  .dropdown-contact-form {
    padding: 20px 18px;
  }
  
  .dropdown-contact-form h4 {
    font-size: 1.05rem;
  }
  
  .cdf-group input, 
  .cdf-group select, 
  .cdf-group textarea {
    font-size: 0.85rem;
    padding: 12px 14px;
  }
  
  .top-bar { display: none; }
}

@media (max-width: 768px) {
  .dropdown-contact-layout { grid-template-columns: 1fr; }
  .dropdown-auth-layout { 
    grid-template-columns: 1fr; 
    gap: 20px; 
    max-width: 100%;
  }
  .nav-flex { padding: 15px 0; }
  .logo .logo-text { font-size: 1.5rem; }
  
  .dropdown-sidebar { 
    padding: 70px 18px 18px; 
  }
  
  .dropdown-content {
    padding: 70px 18px 36px;
  }
  
  .dropdown-sidebar .dropdown-title {
    font-size: 1.6rem;
  }
  
  .dropdown-content-title {
    font-size: 1.3rem;
  }
}

@media (max-width: 580px) {
  .container { width: 92%; }
  .navbar .container { padding: 0 15px; }
  .nav-links { width: 100%; }
  
  .dropdown-sidebar { 
    padding: 60px 15px 15px; 
  }
  
  .dropdown-content { 
    padding: 60px 15px 30px; 
  }
  
  .dropdown-sidebar .dropdown-title {
    font-size: 1.4rem;
  }
  
  .dropdown-content-title {
    font-size: 1.2rem;
  }
  
  .dropdown-grid { gap: 12px; }
  .dropdown-contact-grid { gap: 12px; }
  
  .dropdown-card {
    padding: 18px 16px;
  }
  
  .dropdown-card .dc-icon {
    width: 42px;
    height: 42px;
  }
  
  .dropdown-card .dc-icon i {
    font-size: 18px;
  }
  
  .dropdown-sidebar-links a {
    padding: 12px 14px;
    font-size: 0.9rem;
  }
  
  .dropdown-links-list a {
    padding: 12px 16px;
    font-size: 0.9rem;
  }
  
  .contact-detail-panel .cdp-item {
    padding: 18px;
  }
}

/* Extra small devices */
@media (max-width: 360px) {
  .dropdown-grid { grid-template-columns: 1fr; }
  .dropdown-contact-grid { grid-template-columns: 1fr; }
  .navbar .container { padding: 0 10px; }
  
  .dropdown-sidebar { 
    padding: 60px 12px 12px; 
  }
  
  .dropdown-content { 
    padding: 60px 12px 24px; 
  }
  
  .dropdown-close {
    width: 40px;
    height: 40px;
    top: 15px;
    right: 15px;
  }
  
  .dropdown-sidebar .dropdown-title {
    font-size: 1.3rem;
  }
  
  .dropdown-content-title {
    font-size: 1.1rem;
  }
  
  .dropdown-card {
    padding: 16px 14px;
  }
  
  .dropdown-card h4 {
    font-size: 1rem;
  }
  
  .dropdown-card p {
    font-size: 0.82rem;
  }
  
  .dropdown-sidebar-links a {
    padding: 11px 12px;
    font-size: 0.88rem;
    gap: 10px;
  }
  
  .dropdown-sidebar-links a i {
    width: 34px;
    height: 34px;
    font-size: 13px;
  }
  
  .dropdown-links-list a {
    padding: 11px 14px;
    font-size: 0.88rem;
    gap: 12px;
  }
  
  .dropdown-links-list a i {
    width: 34px;
    height: 34px;
    font-size: 15px;
  }
  
  .profile-header {
    padding: 24px 16px;
  }
  
  .profile-avatar {
    width: 70px;
    height: 70px;
  }
  
  .profile-info h3 {
    font-size: 1.2rem;
  }
  
  .reg-field input {
    font-size: 0.88rem;
    padding: 11px 12px;
  }
  
  .reg-submit-btn {
    font-size: 0.95rem;
    padding: 12px;
  }
}

/* Landscape mode mobile */
@media (max-width: 992px) and (max-height: 500px) and (orientation: landscape) {
  .dropdown-sidebar {
    padding: 80px 20px 20px;
    max-height: none;
  }
  
  .dropdown-content {
    padding: 80px 20px 20px;
  }
  
  .dropdown-sidebar .dropdown-title {
    font-size: 1.3rem;
    margin-bottom: 8px;
  }
  
  .dropdown-sidebar .dropdown-subtitle {
    font-size: 0.85rem;
    margin-bottom: 16px;
  }
  
  .dropdown-sidebar-links {
    gap: 4px;
  }
  
  .dropdown-sidebar-links a {
    padding: 10px 14px;
  }
  
  .dropdown-close {
    top: 15px;
    right: 15px;
  }
}
