/* =====================
   mega-dropdown.css
   ===================== */

/* Mega Dropdown Container */
.dropdown-mega {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: fixed;
  top: 60px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  width: calc(100% - 80px);
  max-width: 1300px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  border-radius: 12px;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

/* Show on hover */
.nav-item:hover .dropdown-mega {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  visibility: visible;
}

/* Inner container */
.dropdown-mega .mega-inner {
  width: 100%;
  max-width: 1200px;
  padding: 40px 60px;
  margin: 0 auto;
}

/* 3-column layout */
.mega-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  justify-items: stretch;
  align-items: stretch;
  width: 100%;
}

/* Card Style */
.mega-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.mega-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.mega-card p {
  font-size: 14px;
  color: #555;
  line-height: 1.5;
}

/* Logo + Text layout */
.mega-grid a {
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  text-decoration: none;
  color: #222;
  transition: all 0.3s ease;
}

.mega-grid a:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

/* Logo image */
.mega-grid a img {
  width: 80px;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
  transition: transform 0.3s;
}

.mega-grid a:hover img {
  transform: scale(1.05);
}

/* Logo text */
.mega-grid a span {
  font-size: 15px;
  font-weight: 500;
  color: #333;
  text-align: left;
}

.mega-grid a:hover span {
  color: #1abc9c;
}

/* View More Button */
.mega-footer {
  text-align: center;
  margin-top: 40px;
}

.mega-footer .view-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 50px;
  border: 2px solid #1abc9c;
  color: #1abc9c;
  background: transparent;
  text-decoration: none;
  transition: all 0.3s ease;
}

.mega-footer .view-more:hover {
  background: #1abc9c;
  color: #fff;
  transform: scale(1.05);
}

/* Responsive */
@media (max-width: 992px) {
  .mega-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .mega-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .mega-grid a img {
    width: 100px;
  }
}

/* Hide elements by default */
/* Hidden items */
.mega-grid .hidden {
  display: none;
}

/* When user clicks View More → show them */
.mega-grid.show-all .hidden {
  display: flex;
}



@media (max-width: 480px) {
  .dropdown-mega {
    width: calc(100% - 40px);
    padding: 20px;
    top: 55px;
    border-radius: 8px;
  }

  .dropdown-mega .mega-inner {
    padding: 20px;
  }

  .mega-card {
    padding: 15px;
  }

  .mega-grid a img {
    width: 70px;
  }

  .mega-grid a span {
    font-size: 14px;
  }

  .mega-footer .view-more {
    width: 100%;
    text-align: center;
  }
}
