/* ============================================================
   CA FIRM — PROFESSIONAL CORPORATE STYLESHEET v3.0
   ============================================================ */

/* ── Google Fonts & Variables ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,800;1,400;1,600&display=swap');

:root {
  --primary:       #1a3a6b;
  --primary-dark:  #0f2347;
  --primary-light: #2d5aa0;
  --accent:        #c8a84b;
  --accent-dark:   #a8882e;
  --navy:          #0d1b3e;
  --navy-light:    #162040;
  --white:         #ffffff;
  --off-white:     #f8f9fc;
  --gray-100:      #f1f4f9;
  --gray-200:      #e4e9f2;
  --gray-500:      #8896ab;
  --gray-700:      #4a5568;
  --text:          #1a202c;
  --border:        #dde3ef;
  --shadow-sm:     0 2px 12px rgba(26,58,107,0.08);
  --shadow-md:     0 8px 30px rgba(26,58,107,0.12);
  --shadow-lg:     0 20px 60px rgba(26,58,107,0.18);
  --shadow-xl:     0 30px 80px rgba(26,58,107,0.22);
  --radius-sm:     8px;
  --radius-md:     14px;
  --radius-lg:     20px;
  --radius-xl:     28px;
  --transition:    all 0.35s cubic-bezier(0.4,0,0.2,1);
  --transition-fast: all 0.2s ease;
}

/* ── Dark Mode ── */
[data-bs-theme="dark"] {
  --primary:      #3d6fc4;
  --navy:         #0a0f1e;
  --off-white:    #111827;
  --gray-100:     #1f2937;
  --gray-200:     #374151;
  --text:         #e2e8f0;
  --border:       #2d3748;
  --shadow-sm:    0 2px 12px rgba(0,0,0,0.3);
  --shadow-md:    0 8px 30px rgba(0,0,0,0.4);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}
h1,h2,h3,h4,h5,h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--primary);
}
a { transition: var(--transition-fast); text-decoration: none; }
img { max-width: 100%; height: auto; }

/* ── Keyframe Animations ── */
@keyframes fadeInUp    { from { opacity:0; transform:translateY(40px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeInLeft  { from { opacity:0; transform:translateX(-40px); } to { opacity:1; transform:translateX(0); } }
@keyframes fadeInRight { from { opacity:0; transform:translateX(40px); } to { opacity:1; transform:translateX(0); } }
@keyframes fadeIn      { from { opacity:0; } to { opacity:1; } }
@keyframes scaleIn     { from { opacity:0; transform:scale(0.85); } to { opacity:1; transform:scale(1); } }
@keyframes float       { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-12px); } }
@keyframes pulse-ring  { 0% { box-shadow:0 0 0 0 rgba(200,168,75,0.5); } 70% { box-shadow:0 0 0 14px rgba(200,168,75,0); } 100% { box-shadow:0 0 0 0 rgba(200,168,75,0); } }
@keyframes shimmer     { 0% { background-position:-200% 0; } 100% { background-position:200% 0; } }
@keyframes spin-slow   { from { transform:rotate(0deg); } to { transform:rotate(360deg); } }
@keyframes bounce-in   { 0% { transform:scale(0.3); opacity:0; } 50% { transform:scale(1.05); } 70% { transform:scale(0.9); } 100% { transform:scale(1); opacity:1; } }
@keyframes slide-up    { from { transform:translateY(100%); opacity:0; } to { transform:translateY(0); opacity:1; } }
@keyframes counter-up  { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }

/* ── Utility Classes ── */
.animate-float    { animation: float 4s ease-in-out infinite; }
.animate-pulse    { animation: pulse-ring 2s infinite; }
.text-primary     { color: var(--primary) !important; }
.text-accent      { color: var(--accent) !important; }
.text-gradient    { background: linear-gradient(135deg, var(--primary), var(--accent)); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; }
.bg-navy          { background-color: var(--navy) !important; }
.bg-primary-soft  { background-color: rgba(26,58,107,0.06); }
.bg-accent-soft   { background-color: rgba(200,168,75,0.1); }
.hover-lift       { transition: var(--transition); }
.hover-lift:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

/* ── Buttons ── */
.btn { border-radius: 8px; font-weight: 600; font-size: 0.9rem; padding: 0.65rem 1.5rem; transition: var(--transition); letter-spacing: 0.3px; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(26,58,107,0.35); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(200,168,75,0.4); }
.btn-outline-primary { border-color: var(--primary); color: var(--primary); }
.btn-outline-primary:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.btn-outline-light:hover { transform: translateY(-2px); }
.btn-lg { padding: 0.85rem 2.2rem; font-size: 1rem; border-radius: 10px; }
.btn-pill { border-radius: 50px; }

/* ── Section Utilities ── */
.section-tag {
  display: inline-block;
  background: rgba(200,168,75,0.12);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  padding: 5px 14px;
  border-radius: 30px;
  margin-bottom: 0.8rem;
  border: 1px solid rgba(200,168,75,0.25);
}
.section-header h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); margin-bottom: 1rem; }
.section-divider {
  width: 55px; height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
  margin: 0.8rem 0 1.2rem;
}
.section-divider.mx-auto { margin-left: auto; margin-right: auto; }

/* ── Topbar ── */
.topbar {
  background: var(--navy);
  color: rgba(255,255,255,0.85);
  font-size: 0.82rem;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.topbar a { color: rgba(255,255,255,0.75); }
.topbar a:hover { color: var(--accent); }
.topbar .social-link {
  width: 28px; height: 28px;
  background: rgba(255,255,255,0.08);
  border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: var(--transition-fast);
  font-size: 0.75rem;
}
.topbar .social-link:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }

/* ── Navbar ── */
#mainNav {
  background: #fff;
  border-bottom: 3px solid var(--primary);
  box-shadow: 0 2px 20px rgba(26,58,107,0.08);
  transition: var(--transition);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1030;
}
#mainNav.scrolled {
  box-shadow: 0 4px 30px rgba(26,58,107,0.15);
  padding: 0;
}
.navbar-brand { padding: 10px 0; }
.brand-logo { display: flex; align-items: center; gap: 12px; }
.brand-icon {
  width: 46px; height: 46px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 4px 15px rgba(26,58,107,0.3);
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.firm-name {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--primary);
  white-space: nowrap;
}
.firm-tag {
  font-size: 0.6rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
}

/* Nav links */
.navbar-nav .nav-link {
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--text) !important;
  padding: 1.1rem 0.85rem !important;
  position: relative;
  transition: color 0.2s ease;
  white-space: nowrap;
}
.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0.85rem; right: 0.85rem;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
  border-radius: 2px 2px 0 0;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active { color: var(--primary) !important; }
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after { transform: scaleX(1); }

/* Dropdown toggle caret */
.navbar-nav .dropdown-toggle::after {
  border: none;
  content: '\f107';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.7rem;
  vertical-align: middle;
  margin-left: 4px;
  transition: transform 0.2s ease;
}
.navbar-nav .dropdown.show .dropdown-toggle::after { transform: rotate(180deg); }

/* Mega Menu */
.mega-dropdown {
  min-width: 680px;
  border: none;
  border-radius: 0 0 16px 16px;
  border-top: 3px solid var(--primary);
  box-shadow: 0 20px 60px rgba(26,58,107,0.18);
  padding: 1.5rem;
  animation: fadeInUp 0.22s ease;
  left: 50%;
  transform: translateX(-50%);
}
.mega-dropdown .dropdown-item {
  font-size: 0.83rem;
  padding: 0.42rem 0.75rem;
  border-radius: 7px;
  color: var(--gray-700);
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
}
.mega-dropdown .dropdown-item:hover {
  background: var(--gray-100);
  color: var(--primary);
  padding-left: 1rem;
}
.mega-dropdown .dropdown-item i { width: 18px; color: var(--primary); flex-shrink: 0; }

/* Regular dropdown */
.dropdown-menu {
  border: none;
  border-radius: 12px;
  box-shadow: 0 15px 50px rgba(26,58,107,0.15);
  animation: fadeInUp 0.2s ease;
  padding: 0.5rem;
  min-width: 200px;
}
.dropdown-item {
  font-size: 0.875rem;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dropdown-item:hover { background: var(--gray-100); color: var(--primary); }
.dropdown-item i { width: 16px; color: var(--primary); font-size: 0.85rem; }

/* Icon buttons in nav */
.navbar-nav .btn-link.nav-link {
  color: var(--gray-700) !important;
  padding: 1.1rem 0.6rem !important;
  font-size: 0.95rem;
}
.navbar-nav .btn-link.nav-link::after { display: none; }
.navbar-nav .btn-link.nav-link:hover { color: var(--primary) !important; }

/* Toggler */
.navbar-toggler {
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  transition: var(--transition-fast);
}
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(26,58,107,0.1); }
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2826, 58, 107, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ── Mobile Nav ── */
@media (max-width: 991px) {
  #mainNav .container { padding: 0 1rem; }
  .navbar-collapse {
    background: #fff;
    border-top: 1px solid var(--border);
    padding: 0.75rem 0;
    margin-top: 0;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 10px 30px rgba(26,58,107,0.12);
  }
  .navbar-nav .nav-link {
    padding: 0.65rem 1rem !important;
    border-radius: 8px;
    margin: 1px 0.5rem;
  }
  .navbar-nav .nav-link::after { display: none; }
  .navbar-nav .nav-link:hover,
  .navbar-nav .nav-link.active {
    background: var(--gray-100);
    color: var(--primary) !important;
  }
  .mega-dropdown {
    min-width: 100%;
    transform: none;
    left: 0;
    border-radius: 8px;
    margin: 0 0.5rem;
    width: calc(100% - 1rem);
  }
  .dropdown-menu {
    border: 1px solid var(--border);
    box-shadow: none;
    margin: 0 0.5rem;
    width: calc(100% - 1rem);
  }
  .navbar-nav .btn-link.nav-link {
    padding: 0.65rem 1rem !important;
    border-radius: 8px;
    margin: 1px 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
  .navbar-nav .btn-link.nav-link::before {
    content: attr(title);
    font-size: 0.875rem;
    font-weight: 500;
  }
}
/* ── Hero Slider ── */
.hero-slider { position: relative; overflow: hidden; }
.hero-slide {
  min-height: 620px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
}
.hero-slide::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(110deg, rgba(10,20,50,0.88) 0%, rgba(26,58,107,0.65) 55%, rgba(26,58,107,0.3) 100%);
}
.hero-content { position: relative; z-index: 2; color: #fff; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent);
  color: #fff;
  padding: 6px 18px;
  border-radius: 30px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1.2rem;
  animation: fadeInLeft 0.6s ease both;
}
.hero-content h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.2rem;
  color: #fff;
  animation: fadeInLeft 0.7s 0.1s ease both;
}
.hero-content h1 span { color: var(--accent); }
.hero-content p {
  font-size: 1.05rem;
  opacity: 0.88;
  max-width: 560px;
  margin-bottom: 2rem;
  animation: fadeInLeft 0.7s 0.2s ease both;
  line-height: 1.75;
}
.hero-btns { animation: fadeInLeft 0.7s 0.3s ease both; }
.hero-stats {
  display: flex; gap: 2rem;
  margin-top: 2.5rem;
  animation: fadeInLeft 0.7s 0.4s ease both;
}
.hero-stat-item { text-align: center; }
.hero-stat-num { font-size: 1.8rem; font-weight: 800; color: var(--accent); font-family: 'Inter', sans-serif; line-height: 1; }
.hero-stat-label { font-size: 0.72rem; color: rgba(255,255,255,0.7); text-transform: uppercase; letter-spacing: 1px; margin-top: 3px; }

/* Swiper controls */
.swiper-button-next, .swiper-button-prev {
  width: 48px !important; height: 48px !important;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  transition: var(--transition-fast);
}
.swiper-button-next:hover, .swiper-button-prev:hover { background: var(--accent); }
.swiper-button-next::after, .swiper-button-prev::after { font-size: 1rem !important; color: #fff; }
.swiper-pagination-bullet { background: rgba(255,255,255,0.5) !important; width: 8px !important; height: 8px !important; }
.swiper-pagination-bullet-active { background: var(--accent) !important; width: 24px !important; border-radius: 4px !important; }

/* ── Stats Bar ── */
.stats-bar {
  background: #fff;
  box-shadow: 0 4px 20px rgba(26,58,107,0.1);
  position: relative;
  z-index: 5;
}
.stats-bar-item {
  display: flex; align-items: center; gap: 12px;
  padding: 1.2rem 0;
  border-right: 1px solid var(--border);
}
.stats-bar-item:last-child { border-right: none; }
.stats-bar-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.stats-bar-num { font-size: 1.3rem; font-weight: 800; color: var(--primary); font-family: 'Inter', sans-serif; line-height: 1; }
.stats-bar-label { font-size: 0.75rem; color: var(--gray-500); }

/* ── Service Cards ── */
.service-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 2rem 1.6rem;
  border: 1px solid var(--border);
  transition: var(--transition);
  height: 100%;
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.service-card::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.3rem;
  transition: var(--transition);
  box-shadow: 0 6px 20px rgba(26,58,107,0.25);
}
.service-card:hover .service-icon { transform: rotate(-8deg) scale(1.1); background: linear-gradient(135deg, var(--accent), var(--accent-dark)); }
.service-card h5 { font-size: 1.05rem; color: var(--primary); margin-bottom: 0.7rem; }
.service-card p { color: var(--gray-500); font-size: 0.875rem; flex: 1; }
.service-card .read-more {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--primary); font-weight: 600; font-size: 0.85rem;
  margin-top: 1rem;
  transition: var(--transition-fast);
}
.service-card:hover .read-more { color: var(--accent); gap: 10px; }

/* ── Team Cards ── */
.team-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
}
.team-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-xl); }
.team-img-wrap {
  position: relative;
  height: 300px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
}
.team-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.team-card:hover .team-img-wrap img { transform: scale(1.08); }
.team-img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--navy));
  color: rgba(255,255,255,0.3);
  font-size: 5rem;
}
.team-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,20,50,0.92) 0%, rgba(10,20,50,0.4) 50%, transparent 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: var(--transition);
}
.team-card:hover .team-overlay { opacity: 1; }
.team-social { display: flex; gap: 8px; margin-top: 0.8rem; }
.team-social a {
  width: 34px; height: 34px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 0.8rem;
  transition: var(--transition-fast);
  backdrop-filter: blur(4px);
}
.team-social a:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-3px); }
.team-info { padding: 1.4rem; }
.team-info h5 { font-size: 1rem; color: var(--primary); margin-bottom: 0.2rem; }
.team-designation { color: var(--accent); font-size: 0.82rem; font-weight: 600; }
.team-qualification { color: var(--gray-500); font-size: 0.78rem; margin-top: 2px; }
.team-membership { font-size: 0.75rem; color: var(--gray-500); margin-top: 4px; }
.team-badge {
  position: absolute; top: 14px; right: 14px;
  background: var(--accent);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── Blog Cards ── */
.blog-card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
  display: flex; flex-direction: column;
  border: 1px solid var(--border);
}
.blog-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.blog-img { height: 220px; overflow: hidden; position: relative; }
.blog-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.blog-card:hover .blog-img img { transform: scale(1.07); }
.blog-category-badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--primary); color: #fff;
  font-size: 0.72rem; font-weight: 700;
  padding: 4px 12px; border-radius: 20px;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.blog-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.blog-meta { font-size: 0.78rem; color: var(--gray-500); display: flex; gap: 1rem; margin-bottom: 0.8rem; }
.blog-meta i { color: var(--accent); }
.blog-body h5 { font-size: 1rem; color: var(--primary); margin-bottom: 0.6rem; line-height: 1.45; }
.blog-body h5 a { color: inherit; }
.blog-body h5 a:hover { color: var(--accent); }
.blog-body p { font-size: 0.875rem; color: var(--gray-500); flex: 1; }
.blog-read-more {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--primary); font-weight: 600; font-size: 0.83rem;
  margin-top: 1rem; transition: var(--transition-fast);
}
.blog-read-more:hover { color: var(--accent); gap: 10px; }

/* ── Testimonials ── */
.testimonial-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  position: relative;
  transition: var(--transition);
  height: 100%;
}
.testimonial-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.testimonial-card::before {
  content: '\201C';
  font-size: 6rem; color: var(--primary); opacity: 0.07;
  position: absolute; top: -10px; left: 16px;
  font-family: 'Playfair Display', serif; line-height: 1;
}
.stars { color: #f59e0b; font-size: 0.85rem; margin-bottom: 1rem; }
.testimonial-text { color: var(--gray-700); font-size: 0.9rem; line-height: 1.75; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; margin-top: 1.5rem; padding-top: 1.2rem; border-top: 1px solid var(--border); }
.testimonial-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary);
  flex-shrink: 0;
}
.testimonial-avatar-placeholder {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.2rem; flex-shrink: 0;
  border: 3px solid var(--primary);
}
.testimonial-name { font-weight: 700; font-size: 0.9rem; color: var(--primary); }
.testimonial-role { font-size: 0.78rem; color: var(--gray-500); }

/* ── Stats Counter Section ── */
.stats-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--navy) 100%);
  position: relative; overflow: hidden;
}
.stats-section::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.stat-item { text-align: center; padding: 2.5rem 1rem; position: relative; }
.stat-number {
  font-size: 3.2rem; font-weight: 900;
  color: var(--accent);
  font-family: 'Inter', sans-serif;
  line-height: 1;
  display: block;
}
.stat-label { color: rgba(255,255,255,0.75); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1.5px; margin-top: 6px; }
.stat-icon { font-size: 2rem; color: rgba(255,255,255,0.15); margin-bottom: 0.8rem; }

/* ── Why Choose Us ── */
.why-item {
  display: flex; gap: 1.2rem;
  padding: 1.2rem;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  margin-bottom: 0.5rem;
}
.why-item:hover { background: var(--gray-100); }
.why-icon {
  width: 52px; height: 52px; min-width: 52px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 15px rgba(26,58,107,0.25);
  transition: var(--transition);
}
.why-item:hover .why-icon { transform: rotate(-8deg) scale(1.1); background: linear-gradient(135deg, var(--accent), var(--accent-dark)); }
.why-content h6 { font-size: 0.95rem; color: var(--primary); margin-bottom: 0.2rem; font-family: 'Inter', sans-serif; font-weight: 700; }
.why-content p { font-size: 0.83rem; color: var(--gray-500); margin: 0; }

/* ── Page Header ── */
.page-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--navy) 100%);
  padding: 5rem 0 3.5rem;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute; right: -80px; top: -80px;
  width: 350px; height: 350px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}
.page-header::after {
  content: '';
  position: absolute; left: -60px; bottom: -60px;
  width: 250px; height: 250px;
  border-radius: 50%;
  background: rgba(200,168,75,0.08);
}
.page-header h1 { font-size: clamp(2rem, 4vw, 3rem); color: #fff; margin-bottom: 0.5rem; }
.breadcrumb { background: none; padding: 0; margin: 0; }
.breadcrumb-item a { color: rgba(255,255,255,0.65); }
.breadcrumb-item a:hover { color: var(--accent); }
.breadcrumb-item.active { color: var(--accent); }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.4); }

/* ── Contact ── */
.contact-info-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border: 1px solid var(--border);
  display: flex; gap: 1rem;
  transition: var(--transition);
  margin-bottom: 1rem;
}
.contact-info-card:hover { transform: translateX(6px); box-shadow: var(--shadow-md); border-color: var(--primary); }
.contact-icon {
  width: 52px; height: 52px; min-width: 52px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.contact-icon.accent { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); }
.contact-info-card h6 { font-size: 0.85rem; color: var(--gray-500); margin-bottom: 0.2rem; font-family: 'Inter', sans-serif; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.contact-info-card p, .contact-info-card a { font-size: 0.95rem; color: var(--primary); font-weight: 600; margin: 0; }

/* ── Forms ── */
.form-control, .form-select {
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  transition: var(--transition-fast);
  background: #fff;
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(26,58,107,0.08);
  outline: none;
}
.form-label { font-weight: 600; font-size: 0.875rem; color: var(--gray-700); margin-bottom: 0.4rem; }
.form-floating .form-control { padding-top: 1.4rem; }

/* ── FAQ ── */
.faq-accordion .accordion-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm) !important;
  margin-bottom: 0.6rem;
  overflow: hidden;
}
.faq-accordion .accordion-button {
  font-weight: 600; font-size: 0.95rem;
  color: var(--primary);
  background: #fff;
  padding: 1.1rem 1.3rem;
}
.faq-accordion .accordion-button:not(.collapsed) {
  background: var(--primary); color: #fff;
  box-shadow: none;
}
.faq-accordion .accordion-button::after { filter: none; }
.faq-accordion .accordion-button:not(.collapsed)::after { filter: brightness(0) invert(1); }
.faq-accordion .accordion-body { font-size: 0.9rem; color: var(--gray-700); line-height: 1.75; padding: 1.1rem 1.3rem; }

/* ── Career Cards ── */
.career-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 1.8rem;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.career-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.job-badge {
  font-size: 0.72rem; font-weight: 700;
  padding: 4px 12px; border-radius: 20px;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.job-badge.full-time { background: rgba(16,185,129,0.1); color: #059669; }
.job-badge.part-time { background: rgba(245,158,11,0.1); color: #d97706; }
.job-badge.internship { background: rgba(59,130,246,0.1); color: #2563eb; }
.job-badge.contract { background: rgba(139,92,246,0.1); color: #7c3aed; }

/* ── Footer ── */
.footer { background: var(--navy); color: rgba(255,255,255,0.75); }
.footer-brand h5 { color: #fff; font-size: 1.2rem; }
.footer h6 { color: #fff; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 1.2rem; }
.footer-link {
  display: block; color: rgba(255,255,255,0.6);
  font-size: 0.875rem; padding: 3px 0;
  transition: var(--transition-fast);
}
.footer-link:hover { color: var(--accent); padding-left: 6px; }
.footer-social a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.65);
  transition: var(--transition-fast);
  font-size: 0.85rem;
}
.footer-social a:hover { background: var(--accent); color: #fff; transform: translateY(-3px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 1.2rem 0; font-size: 0.82rem; }
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--accent); }

/* ── WhatsApp Float ── */
.whatsapp-float {
  position: fixed; bottom: 85px; right: 22px;
  width: 52px; height: 52px;
  background: #25d366; color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; z-index: 999;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  transition: var(--transition);
  text-decoration: none;
  animation: pulse-ring 2.5s infinite;
}
.whatsapp-float:hover { transform: scale(1.12); color: #fff; }

/* ── Back to Top ── */
.back-to-top {
  position: fixed; bottom: 22px; right: 22px;
  width: 44px; height: 44px;
  background: var(--primary); color: #fff;
  border: none; border-radius: 50%;
  display: none; align-items: center; justify-content: center;
  font-size: 1rem; z-index: 999; cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}
.back-to-top:hover { background: var(--accent); transform: translateY(-3px); }
.back-to-top.show { display: flex; animation: bounce-in 0.4s ease; }

/* ── Modal Open Button ── */
.modal-open-btn {
  position: fixed; bottom: 140px; right: 22px;
  z-index: 998;
  border-radius: 30px;
  padding: 10px 18px;
  font-size: 0.82rem; font-weight: 700;
  background: var(--accent); border-color: var(--accent); color: #fff;
  box-shadow: 0 4px 20px rgba(200,168,75,0.5);
  animation: pulse-ring 2.5s infinite;
}
.modal-open-btn:hover { background: var(--accent-dark); color: #fff; transform: translateY(-2px); }

/* ── Home Modal ── */
.home-modal-content { border: none; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-xl); }
.home-modal-close {
  position: absolute; top: 12px; right: 12px; z-index: 10;
  /* background: rgba(255,255,255,0.9); border-radius: 50%; */
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15); opacity: 1;
}
.home-modal-img-wrap { height: 100%; min-height: 440px; background: linear-gradient(145deg, var(--primary), var(--navy)); overflow: hidden; }
.home-modal-img { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; }
.home-modal-body { padding: 2.5rem 2rem; background: #fff; display: flex; flex-direction: column; justify-content: center; }
.home-modal-icon { width: 58px; height: 58px; background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: #fff; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 1.2rem; }
.home-modal-title { font-size: 1.5rem; color: var(--primary); font-weight: 800; margin-bottom: 0.3rem; }
.home-modal-subtitle { color: var(--accent); font-weight: 700; font-size: 1rem; margin-bottom: 0.8rem; }
.home-modal-desc { color: var(--gray-500); font-size: 0.875rem; line-height: 1.7; margin-bottom: 1.2rem; }
.home-modal-categories { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 1rem; }
.modal-cat-btn {
  background: linear-gradient(135deg, var(--primary), var(--navy));
  color: #fff; border-radius: 10px;
  padding: 12px 10px; text-align: center;
  font-size: 0.78rem; font-weight: 600; line-height: 1.4;
  text-decoration: none; transition: var(--transition);
  border: 2px solid transparent;
}
.modal-cat-btn:hover { background: linear-gradient(135deg, var(--accent-dark), var(--accent)); color: #fff; transform: translateY(-3px); box-shadow: 0 6px 18px rgba(200,168,75,0.35); }
.modal-cat-btn i { font-size: 1.1rem; display: block; margin-bottom: 4px; }

/* ── Dynamic Section Cards ── */
.dynamic-card {
  background: #fff; border-radius: var(--radius-md);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: var(--transition); display: flex; flex-direction: column;
  border: 1px solid var(--border);
}
.dynamic-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.dynamic-card-img { height: 200px; overflow: hidden; }
.dynamic-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.dynamic-card:hover .dynamic-card-img img { transform: scale(1.07); }
.dynamic-card-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.dynamic-card-body h5 { font-size: 1rem; color: var(--primary); margin-bottom: 0.6rem; }
.dynamic-card-body p { font-size: 0.875rem; color: var(--gray-500); flex: 1; }
.dynamic-icon { width: 56px; height: 56px; background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: #fff; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 1rem; transition: var(--transition); }
.dynamic-card:hover .dynamic-icon { transform: rotate(-8deg) scale(1.1); }
.dynamic-icon-light { background: rgba(255,255,255,0.2); border: 2px solid rgba(255,255,255,0.35); }
.dynamic-icon-accent { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); }
.dynamic-card-gradient { background: linear-gradient(145deg, var(--primary), var(--navy)); border-color: transparent; }
.dynamic-card-gradient:hover { border-color: var(--accent); }
.dynamic-card-dark { background: linear-gradient(145deg, #0d1b3e, #1a2a4a); border-color: rgba(255,255,255,0.06); }
.dynamic-card-dark:hover { border-color: var(--accent); }
.dynamic-card-border { border-top: 4px solid var(--primary); }
.dynamic-card-border:hover { border-top-color: var(--accent); }

/* ── Contact Info Items ── */
.contact-info-item {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1rem; border-radius: var(--radius-sm);
  transition: var(--transition-fast); margin-bottom: 0.75rem;
  border: 1px solid transparent;
}
.contact-info-item:hover { background: var(--off-white); border-color: var(--border); transform: translateX(4px); }

/* ── Blog Category (inline) ── */
.blog-category {
  display: inline-block;
  background: rgba(26,58,107,0.08);
  color: var(--primary);
  font-size: 0.72rem; font-weight: 700;
  padding: 4px 12px; border-radius: 20px;
  text-transform: uppercase; letter-spacing: 0.5px;
}

/* ── Border Primary Left ── */
.border-primary-left { border-left: 4px solid var(--primary); }

/* ── Team Image (about page) ── */
.team-img { position: relative; height: 300px; overflow: hidden; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.team-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.team-card:hover .team-img img { transform: scale(1.08); }
.team-img .team-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(10,20,50,0.9), transparent);
  padding: 1.2rem; display: flex; gap: 8px;
  opacity: 0; transition: var(--transition);
}
.team-card:hover .team-img .team-overlay { opacity: 1; }

/* ── Designation/Qualification ── */
.designation { color: var(--accent); font-size: 0.82rem; font-weight: 600; }
.qualification { color: var(--gray-500); font-size: 0.78rem; margin-top: 2px; }

/* ── Testimonial Client Info ── */
.client-info {
  display: flex; align-items: center; gap: 12px;
  padding-top: 1rem; border-top: 1px solid var(--border);
}
.client-img {
  width: 48px; height: 48px; border-radius: 50%;
  object-fit: cover; border: 2px solid var(--primary); flex-shrink: 0;
}

/* ── Service Content (prose) ── */
.service-content { font-size: 0.95rem; color: var(--gray-700); line-height: 1.85; }
.service-content p { margin-bottom: 1rem; }
.service-content h3, .service-content h4 { color: var(--primary); margin-top: 1.5rem; margin-bottom: 0.8rem; }
.service-content ul, .service-content ol { padding-left: 1.2rem; margin-bottom: 1rem; }
.service-content li { margin-bottom: 0.4rem; }

/* ── Blog Content (prose) ── */
.blog-content { font-size: 0.95rem; color: var(--gray-700); line-height: 1.9; }
.blog-content p { margin-bottom: 1.2rem; }

/* ── Loading Spinner ── */
.btn-loading { pointer-events: none; opacity: 0.7; }
.btn-loading::after {
  content: ''; display: inline-block; width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff;
  border-radius: 50%; animation: spin-slow 0.6s linear infinite;
  margin-left: 8px; vertical-align: middle;
}

/* ── Flash Messages ── */
.flash-message {
  position: fixed; top: 20px; right: 20px; z-index: 10000;
  min-width: 300px; max-width: 420px;
  padding: 1rem 1.5rem; border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  animation: slide-up 0.4s ease;
  display: flex; align-items: center; gap: 10px;
  font-size: 0.9rem; font-weight: 500;
}
.flash-success { background: #059669; color: #fff; }
.flash-error { background: #dc2626; color: #fff; }
.flash-info { background: var(--primary); color: #fff; }

/* ── Responsive ── */
@media (max-width: 991px) {
  .mega-dropdown { min-width: 100%; }
  .hero-slide { min-height: 480px; }
  .hero-stats { gap: 1.2rem; }
  .hero-stat-num { font-size: 1.4rem; }
  .team-img { height: 260px; }
}
@media (max-width: 767px) {
  .hero-slide { min-height: 400px; }
  .hero-content h1 { font-size: 1.9rem; }
  .hero-content p { font-size: 0.95rem; }
  .hero-stats { display: none; }
  .stat-number { font-size: 2.4rem; }
  .home-modal-body { padding: 1.8rem 1.4rem; }
  .home-modal-categories { grid-template-columns: 1fr 1fr; gap: 8px; }
  .modal-cat-btn { font-size: 0.72rem; padding: 10px 8px; }
  .team-img-wrap { height: 260px; }
  .team-img { height: 240px; }
  .page-header { padding: 3.5rem 0 2.5rem; }
  .contact-info-item { flex-direction: column; text-align: center; }
  .flash-message { left: 15px; right: 15px; min-width: unset; }
}
@media (max-width: 480px) {
  .home-modal-categories { grid-template-columns: 1fr; }
  .hero-btns .btn { width: 100%; margin-bottom: 0.5rem; }
  .team-img-wrap { height: 220px; }
  .team-img { height: 200px; }
}

/* ============================================================
   NAVBAR OVERRIDE — FULL FIX v4
   ============================================================ */

/* Sticky navbar */
#mainNav {
  background: #fff !important;
  border-bottom: 3px solid var(--primary) !important;
  box-shadow: 0 2px 20px rgba(26,58,107,0.08) !important;
  padding: 0 !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 1030 !important;
  transition: box-shadow 0.3s ease !important;
}
#mainNav.scrolled { box-shadow: 0 4px 30px rgba(26,58,107,0.18) !important; }

/* Brand */
#mainNav .navbar-brand { padding: 10px 0; }
#mainNav .brand-logo { display: flex; align-items: center; gap: 12px; }
#mainNav .brand-icon {
  width: 46px; height: 46px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 4px 15px rgba(26,58,107,0.3);
}
#mainNav .brand-text { display: flex; flex-direction: column; line-height: 1.2; }
#mainNav .firm-name {
  font-family: 'Playfair Display', serif; font-weight: 700;
  font-size: 1.05rem; color: var(--primary); white-space: nowrap;
}
#mainNav .firm-tag {
  font-size: 0.6rem; color: var(--accent);
  text-transform: uppercase; letter-spacing: 1.5px; font-weight: 600;
}

/* Nav links */
#mainNav .navbar-nav .nav-link {
  font-weight: 500 !important; font-size: 0.875rem !important;
  color: #1a202c !important;
  padding: 1.1rem 0.85rem !important;
  position: relative; white-space: nowrap;
  transition: color 0.2s ease;
}
#mainNav .navbar-nav .nav-link::after {
  content: '' !important; border: none !important;
  position: absolute; bottom: 0;
  left: 0.85rem; right: 0.85rem;
  height: 3px; background: var(--accent);
  transform: scaleX(0); transform-origin: center;
  transition: transform 0.25s ease;
  border-radius: 2px 2px 0 0;
}
#mainNav .navbar-nav .nav-link:hover,
#mainNav .navbar-nav .nav-link.active { color: var(--primary) !important; }
#mainNav .navbar-nav .nav-link:hover::after,
#mainNav .navbar-nav .nav-link.active::after { transform: scaleX(1); }

/* Dropdown caret */
#mainNav .navbar-nav .dropdown-toggle::after {
  border: none !important;
  font-family: 'Font Awesome 6 Free' !important;
  font-weight: 900 !important;
  content: '\f107' !important;
  font-size: 0.7rem; vertical-align: middle; margin-left: 4px;
  transition: transform 0.2s ease;
}
#mainNav .navbar-nav .dropdown.show .dropdown-toggle::after { transform: rotate(180deg); }

/* Icon buttons */
#mainNav .nav-icon-btn {
  background: none !important; border: none !important;
  color: #4a5568 !important;
  padding: 1.1rem 0.65rem !important;
  font-size: 0.95rem; cursor: pointer;
  transition: color 0.2s ease;
  display: flex; align-items: center;
}
#mainNav .nav-icon-btn::after { display: none !important; }
#mainNav .nav-icon-btn:hover { color: var(--primary) !important; }

/* Toggler */
#mainNav .navbar-toggler {
  border: 1.5px solid #dde3ef !important;
  border-radius: 8px; padding: 6px 10px;
}
#mainNav .navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(26,58,107,0.1) !important; }
#mainNav .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2826%2C58%2C107%2C0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* ── MEGA MENU — Full Width ── */
#mainNav .mega-menu-li { position: static !important; }

#mainNav .mega-dropdown {
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  transform: none !important;
  min-width: unset !important;
  border: none !important;
  border-top: 3px solid var(--primary) !important;
  border-radius: 0 0 16px 16px !important;
  box-shadow: 0 25px 60px rgba(26,58,107,0.18) !important;
  padding: 2rem !important;
  background: #fff !important;
  z-index: 1040 !important;
  margin-top: 0 !important;
  animation: fadeInUp 0.22s ease;
}

#mainNav .mega-dropdown .mega-section-title {
  font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px;
  color: var(--accent); margin-bottom: 0.7rem;
  padding-left: 0.75rem;
}

#mainNav .mega-dropdown .dropdown-item {
  font-size: 0.84rem !important;
  padding: 0.45rem 0.75rem !important;
  border-radius: 7px !important;
  color: #4a5568 !important;
  display: flex !important; align-items: center !important; gap: 8px !important;
  transition: all 0.15s ease !important;
  white-space: nowrap;
}
#mainNav .mega-dropdown .dropdown-item:hover {
  background: #f1f4f9 !important;
  color: var(--primary) !important;
  padding-left: 1rem !important;
}
#mainNav .mega-dropdown .dropdown-item i {
  width: 16px; color: var(--primary); font-size: 0.8rem; flex-shrink: 0;
}

#mainNav .mega-dropdown .mega-footer {
  border-top: 1px solid #dde3ef;
  margin-top: 1.2rem; padding-top: 1.2rem;
  display: flex; align-items: center; justify-content: space-between;
}

/* ── Regular Dropdown ── */
#mainNav .dropdown-menu:not(.mega-dropdown) {
  border: none !important;
  border-radius: 14px !important;
  box-shadow: 0 15px 50px rgba(26,58,107,0.15) !important;
  padding: 0.6rem !important;
  min-width: 220px !important;
  margin-top: 0 !important;
  animation: fadeInUp 0.2s ease;
}
#mainNav .dropdown-menu:not(.mega-dropdown) .dropdown-item {
  font-size: 0.875rem !important;
  padding: 0.55rem 0.9rem !important;
  border-radius: 8px !important;
  color: #4a5568 !important;
  display: flex !important; align-items: center !important; gap: 9px !important;
  transition: all 0.15s ease !important;
}
#mainNav .dropdown-menu:not(.mega-dropdown) .dropdown-item:hover {
  background: #f1f4f9 !important;
  color: var(--primary) !important;
}
#mainNav .dropdown-menu:not(.mega-dropdown) .dropdown-item i {
  width: 16px; color: var(--primary); font-size: 0.85rem; flex-shrink: 0;
}
#mainNav .dropdown-divider { border-color: #dde3ef !important; margin: 0.3rem 0 !important; }

/* ── MOBILE ── */
@media (max-width: 991px) {
  #mainNav .navbar-collapse {
    background: #fff;
    border-top: 1px solid #dde3ef;
    padding: 0.5rem 0 1rem;
    border-radius: 0 0 14px 14px;
    box-shadow: 0 12px 35px rgba(26,58,107,0.12);
    max-height: 80vh;
    overflow-y: auto;
  }
  #mainNav .navbar-nav .nav-link {
    padding: 0.65rem 1rem !important;
    border-radius: 8px !important;
    margin: 1px 0.5rem !important;
  }
  #mainNav .navbar-nav .nav-link::after { display: none !important; }
  #mainNav .navbar-nav .nav-link:hover,
  #mainNav .navbar-nav .nav-link.active {
    background: #f1f4f9 !important;
    color: var(--primary) !important;
  }
  /* Mobile mega */
  #mainNav .mega-dropdown {
    position: static !important;
    width: calc(100% - 1rem) !important;
    border-radius: 10px !important;
    box-shadow: none !important;
    border: 1px solid #dde3ef !important;
    border-top: 2px solid var(--primary) !important;
    margin: 0 0.5rem 0.5rem !important;
    padding: 1rem !important;
    animation: none !important;
  }
  #mainNav .mega-dropdown .row { flex-direction: column; }
  #mainNav .mega-dropdown .col-md-3 { width: 100% !important; max-width: 100% !important; }
  /* Mobile regular dropdown */
  #mainNav .dropdown-menu:not(.mega-dropdown) {
    position: static !important;
    box-shadow: none !important;
    border: 1px solid #dde3ef !important;
    border-radius: 10px !important;
    margin: 0 0.5rem 0.5rem !important;
    width: calc(100% - 1rem) !important;
    animation: none !important;
  }
  #mainNav .nav-icon-btn {
    padding: 0.65rem 1rem !important;
    border-radius: 8px !important;
    margin: 1px 0.5rem !important;
    width: calc(100% - 1rem) !important;
    justify-content: flex-start !important;
  }
  #mainNav .nav-icon-btn:hover { background: #f1f4f9 !important; }
}
