/* Messages Section Styles */
.messages-section {
  margin-bottom: 2rem;
}

.alert {
  border-radius: 8px;
  border: none;
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
  font-weight: 500;
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
  border-left: 4px solid #28a745;
}

.alert-error {
  background-color: #f8d7da;
  color: #721c24;
  border-left: 4px solid #dc3545;
}

.alert-warning {
  background-color: #fff3cd;
  color: #856404;
  border-left: 4px solid #ffc107;
}

.alert-info {
  background-color: #d1ecf1;
  color: #0c5460;
  border-left: 4px solid #17a2b8;
}

.btn-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.btn-close:hover {
  opacity: 1;
}

body {
  margin: 0;
  font-family: 'Vazir', sans-serif;
  background: #222;
  direction: rtl;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background: transparent;
  color: #fff;
  padding: 15px 40px;
  font-size: 16px;
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 10;
  box-shadow: none;   
  border-bottom: none; 
}

/* mobile hamburger (hidden on desktop) */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 22px;
  padding: 6px 10px;
  margin-inline-start: 10px;
  cursor: pointer;
}

.navbar .nav-left {
  display: flex;
  align-items: center;
  padding: 5px;
  gap: 4px;
  margin-right: 16px; /* small gap from brand at far right */
  position: absolute; /* center menu in the header */
  left: 50%;
  transform: translate(-50%, -50%);
  top: 50%;
}

.navbar .nav-right {
  display: flex;
  align-items: center;
}

/* دکمه افزودن ملک */
.navbar .add-btn {
  background: #fff;
  color: #f06292;
  border: none;
  border-radius: 10px;
  padding: 7px 10px;
  font-size: 16px;
  font-weight: 500;
  margin-left: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.navbar .add-btn:hover {
  background: #e0406a;
  color: #fff;
  transform: translateY(-2px);
}

.navbar ul {
  list-style: none;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  gap: 12px;
  flex-wrap: nowrap;            /* keep items in one row */
  justify-content: center;
  max-width: 90vw;
  overflow-x: auto;             /* allow horizontal scroll when needed */
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;        /* hide scrollbar in Firefox */
}

/* hide scrollbar in WebKit browsers */
.navbar ul::-webkit-scrollbar { display: none; }

.navbar li {
  margin: 0;
}

.navbar a {
  color: #fff;
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 16px;
  font-weight: 400;
  padding: 8px 12px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;          /* prevent link labels from breaking */
}

.navbar a:hover {
  color: #f06292;
  background: rgba(255, 255, 255, 0.1);
}

.navbar .logo {
  font-weight: bold;
  display: flex;
  align-items: center;
  font-size: 24px;
  gap: 8px;
  color: #fff;
}

.navbar .logo .fa-home {
  font-size: 24px;
  color: #f06292;
}

/* Profile Dropdown Styles */
.profile-item {
  position: relative;
}

.profile-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.profile-link:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

.profile-link i {
  font-size: 18px;
  color: #f06292;
}

.profile-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  margin-top: 10px;
}

.profile-item:hover .profile-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.profile-dropdown a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: #333;
  border-bottom: 1px solid #f0f0f0;
  transition: all 0.2s ease;
}

.profile-dropdown a:last-child {
  border-bottom: none;
}

.profile-dropdown a:hover {
  background: #f8f9fa;
  color: #f06292;
}

.profile-dropdown a i {
  color: #666;
  font-size: 16px;
  width: 20px;
  text-align: center;
}

.logout-link {
  color: #dc3545 !important;
}

.logout-link:hover {
  background: #dc3545 !important;
  color: #fff !important;
}

.logout-link:hover i {
  color: #fff !important;
}

.hero-section {
  position: relative;
  width: 100%;
  height: 600px;
  background: url('./img/photo_2025-04-20_05-07-57.jpg') center center/cover;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Dynamic banner background */
.hero-section.has-banner {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-section .overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(44,6,50,0.48); /* رنگ تیره با شفافیت */
  top: 0;
  left: 0;
  z-index: 1;
}

.hero-content {
  width:100%;
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
}
.hero-content h2 {
  font-size: 2rem;
  margin-bottom: 33px;
  color: rgba(255, 255, 255, 0.66);
}

.search-bar {
  display: flex;
  background: rgba(255,255,255,0.4); /* نیمه شفاف */
  border-radius: 5px;
  padding: 10px 10px;
  gap: 12px;
  width: 70%;
  margin: 0 auto;
  align-items: center;
  backdrop-filter: blur(2px);
}
.search-bar-btn {
  display: flex;
  flex-direction: row-reverse;
  background: rgba(255,255,255,0.8);
  border-radius: 5px;
  padding: 10px 10px;
  gap: 12px;
  width: 100%;
  margin: 0 auto;
  align-items: center;
  backdrop-filter: blur(2px);
}


.search-btn {
  width:60%;
  background: transparent;
  border: 1px solid #bfa5e4;
  color: #8561c7;
  border-radius: 5px;
  font-size: 1.05rem;
  padding: 8px 18px;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
}
.search-btn:hover {
  background: #ede7f6;
  color: #4a288c;
}

.search-input-wrap {
  width:60%;
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #bfa5e4;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 1px 6px #0001;
}

.search-input-wrap input {
  border: none;
  outline: none;
  padding: 8px 8px 8px 4px;
  font-size: 1.05rem;
  width: 110px;
  background: transparent;
  color: #333;
}

.search-icon-btn {
  background: transparent;
  border: none;
  color: #7c3aed;
  padding: 0 10px;
  font-size: 1.06rem;
  cursor: pointer;
  transition: color 0.2s;
}

.search-icon-btn:hover {
  color: #ea40c4;
}

.search-bar .fa-search {
  color: #b054af;
  font-size: 18px;
}

/*نیمه دوم*/
.special-properties-section {
  background: #fff;
  margin:0;
  padding:0;
  box-shadow: 0 0 10px 3px #efebf688;
  max-width: 100%;
}

.section-title {
  color: #b274d6;
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 26px;
  letter-spacing: .5px;
  font-weight: bold;
}

.properties-slider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.slider-arrow {
  background: #f7f2fd;
  border: none;
  color: #b274d6;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px #e9dff655;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.slider-arrow:hover {
  background: #e4cff7;
  color: #9515ce;
}

.properties-cards {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.property-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 3px 12px #baa9d610;
  min-width: 305px;
  max-width: 305px;
  padding-bottom: 14px;
  display: flex;
  flex-direction: column;
  border: 1.2px solid #e8ebf4;
  transition: box-shadow 0.22s;
}

.property-card:hover {
  box-shadow: 0 9px 26px #a778e233, 0 1.5px 4px #d2c0eb60;
  transform: translateY(-4px) scale(1.02);
}

.property-image {
  width: 100%;
  height: 168px;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  position: relative;
}
.property-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.property-tag {
  position: absolute;
  top: 11px;
  right: 12px;
  background: #fff5fd;
  color: #c137a2;
  font-size: .97rem;
  padding: 3px 14px;
  border-radius: 10px;
  box-shadow: 0 1px 6px #e5b5ea22;
  font-weight: 500;
}

.property-info {
  padding: 17px 17px 0 17px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.property-title {
  color: #673ab7;
  font-size: 1.13rem;
  font-weight: 700;
  margin: 0 0 5px 0;
  text-align: right;
}

.property-location {
  color: #666;
  font-size: .99rem;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 6px;
}

.property-details {
  display: flex;
  gap: 12px;
  color: #555;
  font-size: .92rem;
}

.property-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid #e8ebf4;
}

.property-price {
  color: #b246de;
  font-weight: bold;
  font-size: 1.07rem;
}

/* Footer Styles */
.footer {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: #fff;
  padding: 60px 0 30px;
  margin-top: 60px;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="footer-pattern" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="white" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23footer-pattern)"/></svg>');
  opacity: 0.3;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.footer-logo h4 {
  color: #fff;
  margin-bottom: 15px;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo h4 i {
  color: #f06292;
}

.footer-section h4 {
  color: #fff;
  margin-bottom: 25px;
  font-size: 18px;
  font-weight: 600;
  position: relative;
}

.footer-section h4::after {
  content: '';
  position: absolute;
  bottom: -8px;
  right: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, #f06292, #e0406a);
  border-radius: 2px;
}

.footer-section p {
  color: #b8c5d6;
  line-height: 1.6;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #b8c5d6;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: #f06292;
  padding-right: 8px;
}

.contact-info {
  margin-top: 20px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
  gap: 15px;
}

.contact-item i {
  color: #f06292;
  font-size: 1.2rem;
  margin-top: 3px;
  min-width: 20px;
}

.contact-item h6 {
  color: #fff;
  font-weight: 600;
  margin-bottom: 5px;
  font-size: 0.95rem;
}

.contact-item p {
  color: #b8c5d6;
  margin: 0;
  font-size: 0.9rem;
}

.social-links,
.footer-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 20px;
}

.social-link,
.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.8));
  color: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 16px;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  font-size: 1.15rem;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.social-link::before,
.social-link::after,
.footer-social-link::before,
.footer-social-link::after {
  position: absolute;
  right: 50%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease, transform 0.12s ease;
}

.social-link::before,
.footer-social-link::before {
  content: attr(data-tooltip);
  top: -46px;
  transform: translate(50%, 6px);
  background: rgba(15, 23, 42, 0.96);
  color: #fff;
  padding: 0.4rem 0.65rem;
  border-radius: 10px;
  white-space: nowrap;
  font-size: 0.78rem;
  line-height: 1;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.26);
  z-index: 20;
}

.social-link::after,
.footer-social-link::after {
  content: "";
  top: -10px;
  transform: translate(50%, 6px);
  border-width: 6px 6px 0 6px;
  border-style: solid;
  border-color: rgba(15, 23, 42, 0.96) transparent transparent transparent;
  z-index: 19;
}

.social-link i,
.footer-social-link i {
  color: #0f172a;
}

.social-link img,
.footer-social-link img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
  filter: none !important;
}

.social-link--image,
.footer-social-link--image {
  width: auto;
  height: auto;
  padding: 0;
  background: transparent !important;
  border: none !important;
  border-radius: 0;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.social-link--image img,
.footer-social-link--image img {
  width: 28px;
  height: 28px;
}

.social-link:hover,
.footer-social-link:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0.9));
  color: #0f172a;
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.24);
}

.social-link:hover::before,
.social-link:hover::after,
.social-link:focus-visible::before,
.social-link:focus-visible::after,
.footer-social-link:hover::before,
.footer-social-link:hover::after,
.footer-social-link:focus-visible::before,
.footer-social-link:focus-visible::after {
  opacity: 1;
}

.social-link:hover::before,
.social-link:hover::after,
.social-link:focus-visible::before,
.social-link:focus-visible::after,
.footer-social-link:hover::before,
.footer-social-link:hover::after,
.footer-social-link:focus-visible::before,
.footer-social-link:focus-visible::after {
  transform: translate(50%, 0);
}

.social-link--image:hover,
.footer-social-link--image:hover {
  background: transparent !important;
  box-shadow: none !important;
  transform: translateY(-2px) scale(1.04);
}

.social-link[data-social="facebook"] i,
.footer-social-link[data-social="facebook"] i { color: #1877f2; }

.social-link[data-social="instagram"] i,
.footer-social-link[data-social="instagram"] i { color: #e1306c; }

.social-link[data-social="telegram"] i,
.footer-social-link[data-social="telegram"] i { color: #229ed9; }

.social-link[data-social="whatsapp"] i,
.footer-social-link[data-social="whatsapp"] i { color: #25d366; }

.social-link[data-social="linkedin"] i,
.footer-social-link[data-social="linkedin"] i { color: #0a66c2; }

.footer-divider {
  border: none;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 50px 0 30px;
}

.footer-bottom {
  position: relative;
  z-index: 1;
}

.footer-bottom-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.copyright {
  color: #b8c5d6;
  margin: 0;
  font-size: 0.9rem;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  color: #b8c5d6;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
  color: #f06292;
}

/* No Properties Section */
.no-properties {
  text-align: center;
  padding: 3rem 0;
  background: #f8f9fa;
  border-radius: 15px;
  margin: 2rem 0;
}

.no-properties-content {
  max-width: 500px;
  margin: 0 auto;
}

.no-properties-content i {
  font-size: 4rem;
  color: #bdc3c7;
  margin-bottom: 1rem;
}

.no-properties-content h3 {
  font-size: 1.5rem;
  color: #7f8c8d;
  margin-bottom: 1rem;
}

.no-properties-content p {
  color: #95a5a6;
  margin-bottom: 2rem;
}

.add-property-btn {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  padding: 12px 30px;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.add-property-btn:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
}

/* Responsive Footer */
@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .footer-section {
    text-align: center;
  }
  
  .social-links {
    justify-content: center;
  }
  
  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-bottom-links {
    justify-content: center;
    margin-top: 15px;
  }
  
  .copyright {
    text-align: center;
  }
}

/* Consultation Section */
.consultation-section {
  padding: 5rem 0;
  background: radial-gradient(800px 400px at 10% -10%, rgba(255,255,255,.5) 0, transparent 60%),
              radial-gradient(800px 400px at 110% 110%, rgba(255,255,255,.4) 0, transparent 60%),
              linear-gradient(135deg, var(--primary-color, #667eea) 0%, var(--secondary-color, #764ba2) 100%);
  position: relative;
}
.consultation-section:after{
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots2" width="16" height="16" patternUnits="userSpaceOnUse"><circle cx="8" cy="8" r="1" fill="white" opacity="0.08"/></pattern></defs><rect width="100" height="100" fill="url(%23dots2)"/></svg>');
}

.consultation-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.2rem;
  align-items: stretch;
  max-width: 1100px;
  margin: 0 auto;
}

.consultation-info { padding-right: 2rem; }

.consultation-info .section-title {
  font-size: 2.1rem;
  color: #fff;
  margin-bottom: .75rem;
  font-weight: 800;
}

.consultation-info .section-subtitle {
  font-size: 1.06rem;
  color: rgba(255,255,255,.92);
  margin-bottom: 1.25rem;
  line-height: 1.9;
}

.consultation-features { margin-bottom: 2rem; }

.feature-item {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0.5rem 0;
}

.feature-item i { color: #00e6ff; font-size: 1.05rem; margin-left: .6rem; width: 16px; }
.feature-item span { color: #fff; font-weight: 600; }

.contact-info h5 { color: #fff; margin-bottom: .8rem; font-weight: 700; }
.contact-info .contact-item { display: flex; align-items: center; margin-bottom: 0.8rem; }
.contact-info .contact-item i { color: var(--primary-color); margin-left: 0.8rem; width: 16px; }
.contact-info .contact-item span { color: rgba(255,255,255,.9); }

/* Consultation Form */
.consultation-form { position: relative; }

.form-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
  border: 1px solid rgba(255,255,255,.35);
  overflow: hidden;
}

.form-header { background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); color: white; padding: 1.1rem 1.5rem; text-align: center; }
.form-header h4 { margin: 0; font-size: 1.3rem; font-weight: 600; }
.form-header i { margin-left: 0.5rem; }

.form-body { padding: 1.3rem 1.4rem; }
.messages { margin-bottom: 1.5rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; margin-bottom: 0.35rem; color: #334155; font-weight: 600; }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  height: 48px;
  border: 1px solid #dbe5f1;
  border-radius: 12px;
  font-size: 0.97rem;
  background: #f7f9fc;
  transition: box-shadow .2s ease, border-color .2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.18); }

.form-group textarea { resize: vertical; min-height: 120px; height: auto; }
.error-message { color: #e74c3c; font-size: 0.85rem; margin-top: 0.3rem; }

.form-submit { margin-top: 2rem; }
.submit-btn { width: 100%; background: var(--primary-color); color: white; border: none; padding: 0.95rem 1rem; border-radius: 12px; font-size: 1.05rem; font-weight: 800; letter-spacing: .2px; cursor: pointer; transition: all 0.25s ease; display: flex; align-items: center; justify-content: center; gap: 0.5rem; box-shadow: 0 10px 24px rgba(0,0,0,.12); }
.submit-btn:hover { background: var(--secondary-color); transform: translateY(-2px); }
.submit-btn i { font-size: 1rem; }

/* Responsive Consultation */
@media (max-width: 768px) {
  .consultation-content { grid-template-columns: 1fr; gap: 2rem; }
  .consultation-info { padding-right: 0; text-align: center; }
  .consultation-info .section-title { font-size: 2rem; }
  .form-row { grid-template-columns: 1fr; }
  .feature-item { justify-content: center; }
  .contact-info .contact-item { justify-content: center; }
}

/* Dropdown Menu Fixes */
.dropdown-menu {
  margin-top: 8px !important;
  border: none !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
  padding: 8px 0 !important;
  z-index: 9999 !important;
  position: absolute !important;
}

.dropdown-menu-end {
  right: 0 !important;
  left: auto !important;
}

.dropdown-item {
  padding: 10px 20px !important;
  color: #333 !important;
  transition: all 0.2s ease !important;
  border-radius: 0 !important;
}

.dropdown-item:hover {
  background: #f8f9fa !important;
  color: #f06292 !important;
}

.dropdown-item i {
  margin-left: 8px !important;
  width: 16px !important;
  text-align: center !important;
}

.dropdown-divider {
  margin: 8px 0 !important;
  border-color: #e9ecef !important;
}

/* Ensure dropdowns are above other elements */
.navbar-nav .dropdown {
  position: relative;
}

.navbar-nav .dropdown-menu {
  z-index: 9999 !important;
}

/* Fix for services dropdown specifically */
#servicesDropdownMarketing + .dropdown-menu {
  z-index: 9999 !important;
  position: absolute !important;
  top: 100% !important;
  right: 0 !important;
  left: auto !important;
}

/* Ensure navbar has proper z-index */

/* Ensure all dropdowns are above hero section */
.hero-section {
  z-index: 1 !important;
}

.hero-section .overlay {
  z-index: 2 !important;
}

.hero-section .hero-content {
  z-index: 3 !important;
}

/* Responsive navbar improvements */
@media (max-width: 991.98px) {
  .navbar {
    padding: 10px 20px;
  }
  .mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  
  /* slide-down mobile panel */
  .nav-menus { display: none; position: absolute; top: 100%; right: 0; left: 0; background: #fff; color: #333; z-index: 10000; padding: 14px 16px; box-shadow: 0 10px 30px rgba(0,0,0,.15); border-bottom-left-radius: 12px; border-bottom-right-radius: 12px; max-height: calc(100vh - 64px); overflow-y: auto; }
  .nav-menus.open { display: block; }
  .navbar .nav-left, .navbar .nav-right { position: static; transform: none; margin-right: 0; }
  .navbar .nav-left ul, .navbar .nav-right ul { flex-direction: column; width: 100%; gap: 6px; }
  /* force dark text inside the mobile panel (higher specificity to beat inline stylesheet) */
  .navbar .nav-menus .nav-left a, .navbar .nav-menus .nav-right > ul > li > a { color: #333 !important; }
  
  .navbar ul {
    flex-direction: column;
    gap: 8px;
    width: 100%;
    overflow: visible;
  }
  
  .profile-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    margin-top: 10px;
    box-shadow: none;
    border: 1px solid #e9ecef;
  }
  
  .navbar .logo {
    font-size: 20px;
  }
  
  .navbar .logo .fa-home {
    font-size: 20px;
  }
  
  /* Logout button in mobile - hide desktop version, show mobile version */
  .nav-logout {
    display: none !important;
  }
  
  .nav-logout-mobile {
    display: block !important;
  }
}

/* Mobile banner and search responsiveness */
@media (max-width: 640px) {
  .hero-section { height: auto; min-height: 380px; padding: 72px 0 18px; }
  .hero-content h2 { font-size: 1.6rem; margin-bottom: 16px; }
  .search-bar { width: 94%; flex-direction: column; gap: 8px; padding: 8px; }
  .search-bar-btn { flex-wrap: wrap; gap: 8px; padding: 8px; }
  .search-btn { flex: 1 1 calc(50% - 8px); width: auto; padding: 10px; font-size: .95rem; }
  .search-input-wrap { width: 100%; }
  .search-input-wrap input { width: 100%; font-size: 1rem; }
}

/* Additional dropdown fixes */
.navbar-nav .dropdown-menu {
  position: absolute !important;
  top: 100% !important;
  left: auto !important;
  right: 0 !important;
  z-index: 9999 !important;
  min-width: 200px !important;
  background: #fff !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

/* Specific fix for services dropdown */
#servicesDropdownMarketing + .dropdown-menu {
  z-index: 9999 !important;
  position: absolute !important;
  top: 100% !important;
  right: 0 !important;
  left: auto !important;
  margin-top: 5px !important;
}

/* Ensure navbar container has proper positioning */
.navbar .container {
  position: relative !important;
}

/* Fix for all dropdown items */
.dropdown-item {
  display: flex !important;
  align-items: center !important;
  padding: 12px 20px !important;
  color: #333 !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
  border-bottom: 1px solid #f0f0f0 !important;
}

.dropdown-item:last-child {
  border-bottom: none !important;
}

.dropdown-item:hover {
  background: #f8f9fa !important;
  color: #f06292 !important;
  text-decoration: none !important;
}

.dropdown-item i {
  margin-left: 10px !important;
  width: 16px !important;
  text-align: center !important;
  color: #666 !important;
}

.dropdown-item:hover i {
  color: #f06292 !important;
}

/* Bootstrap dropdown override */
.dropdown-menu.show {
  display: block !important;
  z-index: 9999 !important;
}

/* Ensure proper stacking context */
}

.navbar-nav {
  position: relative !important;
}

.nav-item.dropdown {
  position: relative !important;
}

/* Mobile dropdown fixes */
@media (max-width: 991.98px) {
    .navbar-nav .dropdown-menu {
        position: static !important;
        float: none !important;
        width: 100% !important;
        margin-top: 10px !important;
        box-shadow: none !important;
        border: 1px solid #e9ecef !important;
        border-radius: 8px !important;
        background: #f8f9fa !important;
    }
    
    .dropdown-menu-end {
        right: auto !important;
        left: auto !important;
    }
    
    .navbar-nav .dropdown {
        position: static !important;
    }
    
    .navbar-nav .dropdown-menu.show {
        display: block !important;
        position: static !important;
        top: auto !important;
        right: auto !important;
        left: auto !important;
        transform: none !important;
        margin-top: 10px !important;
    }
    
    /* Ensure proper spacing in mobile */
    .navbar-nav .nav-item {
        margin-bottom: 10px !important;
    }
    
    .navbar-nav .dropdown-toggle::after {
        float: left !important;
        margin-right: 10px !important;
    }
}

/* Additional z-index fixes for all screen sizes */
.navbar-nav .dropdown-menu {
    z-index: 9999 !important;
    position: absolute !important;
}

.navbar-nav .dropdown-menu.show {
    z-index: 9999 !important;
    display: block !important;
}

/* Ensure dropdowns are above all other elements */
.navbar-nav .dropdown-menu,
.profile-dropdown {
    z-index: 9999 !important;
    position: absolute !important;
}

/* Fix for any remaining positioning issues */
.dropdown-menu[data-bs-popper="static"] {
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    left: auto !important;
    z-index: 9999 !important;
}
