/* ========================================
   TERRASERV WEBSITE CSS
   ======================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========================================
   MAIN HEADER
   ======================================== */
.main-header {
  background: white;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 12px 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.logo img {
  height: 70px;
  width: auto;
}

.main-nav {
  flex: 0;
  display: flex;
  margin-left: 40px;  
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 45px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: #666;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  transition: all 0.3s;
  position: relative;
  display: inline-block;
}
.main-nav a:hover,
.main-nav a.active {
  color: #179267;
  transform: translateY(-3px);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.user-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.3s;
}

.user-icon:hover {
  background: #f0f9f6;
}

.btn-account {
  background: #179267;
  color: white;
  padding: 10px 25px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s;
  white-space: nowrap;
}

.btn-account:hover {
  background: #146b52;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(23, 146, 103, 0.3);
}


.dropdown-menu {
  display: none;
}

.hero-section {
  position: relative;
  height: 63vh;
  min-height: 320px;
  overflow: hidden;
}

.hero-carousel-wrapper {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease;
}

.hero-slide {
  position: relative;
  min-width: 100%;
  height: 100%;
  flex-shrink: 0;
}

.hero-slide .carousel-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* dark overlay for readability */
.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
}

.slide-content {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 8%;
  transform: translateY(-50%);
  color: white;
  max-width: 500px;
}

.slide-content h1 {
  font-size: clamp(22px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 12px;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.25);
}

.slide-content p {
  font-size: clamp(13px, 1.5vw, 18px);
  margin-bottom: 20px;
  opacity: 0.92;
}

/* nav buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255,255,255,0.2);
  border: 1.5px solid rgba(255,255,255,0.5);
  color: white;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
}

.carousel-btn-left  { left: 16px; }
.carousel-btn-right { right: 16px; }

/* dots */
.carousel-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.carousel-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: white;
  opacity: 0.4;
  cursor: pointer;
  transition: opacity 0.3s;
}

.carousel-dots span.active { opacity: 1; }

/* ========================================
   BUTTONS
   ======================================== */
.btn-primary {
  background: white;
  color: #2d9d7e;
  padding: 15px 40px;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.btn-secondary {
  background: #2d9d7e;
  color: white;
  padding: 15px 40px;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-secondary:hover {
  background: #1a5f4f;
  transform: translateY(-2px);
}

.btn-help {
  background: #2d9d7e;
  color: white;
  padding: 12px 30px;
  border: none;
  border-radius: 50px;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-help:hover {
  background: #1a5f4f;
}

/* ========================================
   BOTTOM ICONS BAR
   ======================================== */
.hero-bottom-bar {
  background: #179267;
  position: relative;
  z-index: 10;
  padding: 30px 0;
  box-shadow: 0 1px 5px rgba(0,0,0,0.1);
  margin-top: auto;
  opacity: 0;  /* Add this - start hidden */
  transform: translateY(50px);  /* Add this - start below */
  transition: opacity 0.6s ease, transform 0.6s ease;  /* Add this - animate */
}

.hero-bottom-bar.visible {
  opacity: 1;  /* Add this - fade in */
  transform: translateY(0);  /* Add this - slide up */
}

.icon-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 100px;
  text-align: center;
  flex-wrap: nowrap;
}

.icon-item {
  opacity: 0;  /* Add this - start hidden */
  transform: translateY(30px);  /* Add this - start below */
  transition: opacity 0.5s ease, transform 0.5s ease;  /* Add this - animate */
}

.icon-item a {
  text-decoration: none;
  color: inherit;
}

/* Stagger animation for each icon */
.hero-bottom-bar.visible .icon-item:nth-child(1) {
  animation: slideUp 0.5s ease forwards 0.1s;
}

.hero-bottom-bar.visible .icon-item:nth-child(2) {
  animation: slideUp 0.5s ease forwards 0.2s;
}

.hero-bottom-bar.visible .icon-item:nth-child(3) {
  animation: slideUp 0.5s ease forwards 0.3s;
}

.hero-bottom-bar.visible .icon-item:nth-child(4) {
  animation: slideUp 0.5s ease forwards 0.4s;
}

.hero-bottom-bar.visible .icon-item:nth-child(5) {
  animation: slideUp 0.5s ease forwards 0.5s;
}

.hero-bottom-bar.visible .icon-item:nth-child(6) {
  animation: slideUp 0.5s ease forwards 0.6s;
}

.hero-bottom-bar.visible .icon-item:nth-child(7) {
  animation: slideUp 0.5s ease forwards 0.6s;
}

@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}





.icon-circle {
  width: 35px;
  height: 20px;
  background: #179267;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: all 0.3s;
}

.icon-item:hover .icon-circle {
  background: #179267;
  transform: translateY(-5px);
}

.icon-circle img {
  width: 35px;
  height: 35px;
}

.icon-item p {
  font-size: 14px;
  color: #ffffff;
  font-weight: 500;
  margin: 0;
  line-height: 1.4;
}

/* ========================================
   PRODUCTIVE SECTION
   ======================================== */
.productive-section {
  display: flex;
  align-items: flex-end;
  padding: 100px 0;
  background: white;
}

.productive-section .container {
  display: flex;
  align-items: flex-end;
  gap: 60px;
}

.productive-content {
  flex: 0 0 350px;
  padding-bottom: 20px;
}

.productive-content h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #1a5f4f;
  text-align: left;
  line-height: 1.2;
}

.subtitle {
  text-align: left;
  color: #666;
  font-size: 14px;
  margin-bottom: 0;
  line-height: -1;
}

.card-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  height: 300px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.feature-card:hover {
  transform: translateY(-10px);
}

.feature-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  padding: 20px;
  color: white;
}

.card-overlay h3 {
  font-size: 24px;
  margin-bottom: 8px;
}

.card-overlay p {
  font-size: 14px;
  margin-bottom: 15px;
  opacity: 0.9;
}

.card-link {
  display: inline-block;
  color: white;
  background: #179267;
  padding: 10px 20px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.3s;
}

.card-link:hover {
  opacity: 0.8;
}

/* ========================================
   CONNECTION SECTION
   ======================================== */
.connection-section {
  position: relative;
  padding: 0;
  margin: 0;
  overflow: hidden;
  background: #f5f5f5;
}

.connection-carousel-wrapper {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.connection-slide {
  min-width: 100%;
  flex-shrink: 0;
}

.connection-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: 500px;
  padding: 0;
}

.connection-left {
  position: relative;
  z-index: 3;
  max-width: 500px;
  padding: 60px 0 60px 100px;
}

.connection-left h2 {
  font-size: 48px;
  font-weight: 700;
  color: #179267;
  margin-bottom: 15px;
  line-height: 1.2;
}

.connection-left p {
  font-size: 14px;
  color: #333333;
  line-height: 1.6;
  margin-bottom: 30px;
}


/* Banner Navigation Arrows */
.banner-arrow {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  z-index: 10;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #179267;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.banner-arrow:hover {
  background: white;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.banner-arrow-left {
  left: 30px;
}

.banner-arrow-right {
  right: 30px;
}

/* Hide arrows on mobile */
@media (max-width: 768px) {
  .banner-arrow {
    display: none;
  }
}

.btn-secondary {
  background: #179267;
  color: white;
  padding: 12px 35px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-secondary:hover {
  background: #146b52;
}

.connection-right {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.connection-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feature-boxes {
  position: relative;
  z-index: 2;
  background: #f5f5f5;
  padding: 40px 0 80px;
}

.boxes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.info-box {
  background: white;
  padding: 35px 30px;
  border-radius: 15px;
  box-shadow: 0 3px 15px rgba(0,0,0,0.08);
  display: flex;
  align-items: flex-start;
  gap: 20px;
  transition: all 0.3s;
}

.info-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(23, 146, 103, 0.15);
}

.box-icon {
  background: #179267;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.box-icon img {
  width: 70px;
  height: 70px;
  border-radius: 10px;
  object-fit: contain;
}

.info-box-content {
  flex: 1;
}

.info-box h4 {
  font-size: 20px;
  color: #179267;
  margin-bottom: 8px;
  font-weight: 600;
}

.info-box p {
  color: #666;
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

.join-section {
  position: relative;
  padding: 0;
  margin: 0;
  overflow: hidden;
  min-height: 500px;
}

.join-section .container {
  padding: 0;
  margin: 0;
  max-width: 100%;
}

.join-content {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 500px;
  margin: 0;
  padding: 0;
}

.join-left {
  position: relative;
  z-index: 3;
  max-width: 550px;
  padding: 80px 0 80px 100px;
  margin-left: 100px;
}

.join-left h2 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 25px;
  line-height: 1.2;
  color: white;
}

.join-left p {
  font-size: 18px;
  line-height: 1.6;
  color: white;
}

.join-right {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  margin: 0;
  padding: 0;
}

.join-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  margin: 0;
  padding: 0;
}

.join-right::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
 
  z-index: 2;
}

/* ========================================
   ADVANTAGE SECTION
   ======================================== */
.advantage-section {
  padding: 100px 0;
  background: white;
}

.advantage-section .container {
  max-width: 1400px;
  padding-left: 40px;
  padding-right: 40px;
}

.advantage-inner {
  background: #e8e8e8;
  border-radius: 50px;
  padding: 10px 50px;
}

.advantage-content {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 60px;
  align-items: center;
}

.advantage-left {
  padding-right: 20px;
}

.advantage-left h2 {
  font-size: 48px;
  font-weight: 700;
  color: #179267;
  margin-bottom: 15px;
  line-height: 1.2;
}

.advantage-left h3 {
  font-size: 26px;
  font-weight: 700;
  color: #333;
  margin-bottom: 20px;
  line-height: 1.3;
}

.advantage-left p {
  color: #666;
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 30px;
}

.btn-secondary {
  background: #179267;
  color: white;
  padding: 15px 45px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-secondary:hover {
  background: #146b52;
}

.advantage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 300px 300px;
  gap: -200px;  
  margin-left: 50px;
}

.advantage-card {
  position: relative;
  border-radius: 25px;
  overflow: hidden;
  box-shadow: none;
}

.advantage-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
}

.advantage-card-overlay {
  position: absolute;
  padding: 20px;
  color: white;
  z-index: 2;
}

.advantage-card-overlay p {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
  color: white;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
}

/* First card - CCTV camera (top left) - text bottom left */
.advantage-card:nth-child(1) {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  z-index: 5;
  height: 100%;
  transform: scale(1.4);  
  margin-left: -150px;
  margin-right: auto;
  margin-bottom: -60px;  
  
}

.advantage-card:nth-child(1) .advantage-card-overlay {
  bottom: 20px;
  left: 100px;
  max-width: 200px;
}

/* Second card - Running man (bottom left) - text bottom center */
.advantage-card:nth-child(2) {
  grid-column: 1;
  grid-row: 2;
  position: relative;
  z-index: 5;
  height: 110%;
  transform: scale(1.4);  
  margin-left: -130px;
  margin-right: auto;
  margin-top: -50px;
  margin-bottom: -100px;  
  
}

.advantage-card:nth-child(2) .advantage-card-overlay {
  bottom: 50px;
  left: 210px;
  text-align: right;
  max-width: 200px;
}

.advantage-card:nth-child(3) {
  grid-column: 2;
  grid-row: 1 / 3;
  overflow: hidden;
  position: relative;
  z-index: 10;
  height: 95%;
  transform: scale(1);
  margin-left: -150px;  /* Adjust margins accordingly */
  margin-right: -100px;
}

.advantage-card:nth-child(3) .advantage-card-overlay {
  top: 30px;
  left: 300px;
  text-align: right;
  max-width: 200px;
}

.advantage-card:nth-child(3) img {
  object-fit: cover;
  object-position: center center;
  transform: scale(1.05);
}

/* ========================================
   TESTIMONIAL SECTION - FIXED
   ======================================== */
.testimonial-section {
  padding: 100px 0;
  background: white;
}

.testimonial-header {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: start;
}

.testimonial-left {
  text-align: left;
}

.testimonial-label {
  font-size: 12px;
  color: #666;
  letter-spacing: 1px;
  margin-bottom: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

.testimonial-left h2 {
  font-size: 42px;
  font-weight: 700;
  color: #333;
  margin-bottom: 15px;
  line-height: 1.2;
}

.testimonial-subtitle {
  font-size: 16px;
  color: #666;
  margin-bottom: 40px;
}

.testimonial-controls {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
}

.testimonial-arrow {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  background: linear-gradient(135deg, #179267 0%, #0d4d38 100%);
}

.testimonial-arrow:hover {
  transform: scale(1.1);
  opacity: 0.9;
}

.pagination-dots {
  display: flex;
  gap: 10px;
}

.dot {
  height: 4px;
  width: 40px;
  background: #ddd;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.3s;
}

.dot.active {
  background: #179267;
}

.testimonial-right {
  position: relative;
  min-height: 500px;
}

.testimonial-card {
  background: white;
  padding: 50px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.752);
  text-align: left;
  
  /* Hidden by default */
  opacity: 0;
  visibility: hidden;
  
  /* Smooth fade transition */
  transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
  
  /* Position cards on top of each other */
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.testimonial-card.active {
  opacity: 1;
  visibility: visible;
}

.company-logo {
  margin-bottom: 30px;
  text-align: center;
}

.company-logo img {
  height: 150px;
  width: auto;
  display: block;
  margin: 0 auto;
}

.testimonial-text {
  font-size: 15px;
  line-height: 1.8;
  color: #333;
  margin-top: -50px;
  margin-bottom: 25px;
}

.testimonial-author {
  color: #333;
  font-size: 13px;
  line-height: 1.6;
}

.testimonial-author strong {
  font-weight: 700;
  color: #000;
}
/* ========================================
   HELP SECTION
   ======================================== */
.help-section {
  padding: 100px 0;
  background: white;
  text-align: center;
}

.help-section h2 {
  font-size: 42px;
  font-weight: 700;
  color: #000;
  margin-bottom: 60px;
}

.help-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.help-card {
  background: #0d3d47;
  padding: 60px 40px;
  border-radius: 20px;
  color: white;
  transition: all 0.3s;
  cursor: pointer;
  text-align: left;
}

.help-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(13, 61, 71, 0.4);
}

.help-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 80px;
}

.help-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(65%) sepia(35%) saturate(450%) hue-rotate(120deg) brightness(95%) contrast(85%);
}

.help-card h4 {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  color: white;
  margin: 0;
}

/* ========================================
   FOOTER
   ======================================== */
.main-footer {
  background: white;
  color: #333;
  padding: 60px 0 0;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1.2fr 1fr;
  gap: 60px;
  padding-bottom: 40px;
  border-bottom: 1px solid #179267;
}

.footer-brand {
  padding-right: 40px;
}

.footer-logo {
  width: 180px;
  margin-bottom: 25px;
}

.footer-tagline {
  font-size: 15px;
  line-height: 1.6;
  color: #333;
  font-weight: 500;
  margin-bottom: 5px;
}

.footer-subtitle {
  font-size: 15px;
  line-height: 1.6;
  color: #333;
  margin-bottom: 30px;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icon {
  width: 45px;
  height: 45px;
  background: #ffffff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  color: white;
  text-decoration: none;
  font-size: 18px;
}

.social-icon:hover {
  background: #146b52;
  transform: translateY(-3px);
}

.footer-col h4 {
  font-size: 18px;
  margin-bottom: 25px;
  font-weight: 700;
  color: #179267;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 15px;
}

.footer-col a {
  color: #666;
  text-decoration: none;
  font-size: 15px;
  transition: color 0.3s;
  line-height: 1.6;
}

.footer-col a:hover {
  color: #179267;
}

.footer-bottom {
  padding: 25px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: #999;
}

.footer-bottom a {
  color: #999;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-bottom a:hover {
  color: #179267;
}













        
    /* Ensure the parent list item is the anchor point */
.nav-item-dropdown {
  position: relative;
  display: inline-block;
    list-style: none;
}

/* Style for the main "Services" link */
.nav-link-main {
  display: flex !important;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

/* The Dropdown Indicator (Arrow Down) */
.nav-dropdown-indicator::after {
  content: '▼';
  font-size: 9px;
  display: inline-block;
  transition: transform 0.3s ease;
}

/* The Actual Dropdown Menu */
.nav-dropdown-menu {
  display: none !important;            /* Hidden by default */
  position: absolute;
  top: 100%;                 /* Appears right below the tab */
  left: 0;
  background-color: #ffffff;
  min-width: 120px;
  box-shadow: 0px 4px 12px rgba(0,0,0,0.15);
  padding: 5px;            /* Tight vertical padding for the container */
  margin: 0;
  list-style: none;
  z-index: 999;
  border-radius: 4px;
}

/* Dropdown Menu Items */
.nav-dropdown-menu li {
  width: 100%;
  display: block;            /* Forces vertical stacking */
}

/* Dropdown Links (Tight Spacing) */
.nav-dropdown-menu li a { 
    white-space: nowrap;
  padding: 8px 15px;         /* Adjust these numbers for spacing */
  display: block;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  transition: background 0.2s;
}

.nav-dropdown-menu li a:hover {
  background-color: #f5f5f5;
}

/* --- HOVER STATES --- */

/* 1. Show the menu on hover */
.nav-item-dropdown:hover .nav-dropdown-menu {
  display: block !important;
}

/* 2. Flip the arrow up on hover */
.nav-item-dropdown:hover .nav-dropdown-indicator::after {
  transform: rotate(180deg);
}


/* Keep all your desktop CSS as is, but update the media query at the bottom */
