/* AGIICAM — Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes wapulse {
  0%,100% { box-shadow: 0 4px 18px rgba(37,211,102,.38); }
  50%      { box-shadow: 0 4px 30px rgba(37,211,102,.6), 0 0 0 8px rgba(37,211,102,.08); }
}
.fade-in        { animation: fadeInUp .5s ease both; }
.delay-1        { animation-delay: .1s; }
.delay-2        { animation-delay: .2s; }
.delay-3        { animation-delay: .3s; }

/* Mobile Nav */
.mobile-nav-overlay {
  position: fixed; inset: 0; background: #0B1D35;
  z-index: 999; transform: translateX(100%);
  transition: transform .3s ease; padding: 20px;
  overflow-y: auto;
}
.mobile-nav-overlay.open { transform: translateX(0); }
.mobile-nav-close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none; color: #fff; font-size: 24px; cursor: pointer;
}
.mobile-menu { list-style: none; margin-top: 48px; }
.mobile-menu li a { color: #fff; font-size: 16px; display: block; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.1); }

/* Mobile toggle */
.mobile-menu-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.mobile-menu-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--navy); border-radius: 2px; transition: all .3s;
}
@media (max-width: 768px) {
  .mobile-menu-toggle { display: flex; }
  .agiicam-nav { display: none !important; }
}

/* Search loader */
.search-loader { text-align: center; padding: 40px; color: var(--text2); }
.loader-spinner {
  width: 36px; height: 36px; border: 3px solid var(--border);
  border-top-color: var(--green); border-radius: 50%;
  animation: spin .7s linear infinite; margin: 0 auto 12px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Search suggestions */
.search-suggestions {
  position: absolute; top: 100%; left: 0; right: 0; background: #fff;
  border: 1px solid var(--border); border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12); z-index: 100;
  list-style: none; max-height: 200px; overflow-y: auto;
}
.search-suggestions li {
  padding: 10px 14px; cursor: pointer; font-size: 13px;
  color: var(--text2); display: flex; align-items: center; gap: 8px;
  transition: background .15s;
}
.search-suggestions li:hover { background: var(--green-xl); color: var(--green); }
.search-suggestions li i { color: var(--green); font-size: 11px; }

/* Search results */
.search-results-info { font-size: 13px; color: var(--text2); margin-bottom: 16px; padding: 12px 0; }
.search-results-info strong { color: var(--navy); font-weight: 700; }
.search-pagination { display: flex; gap: 8px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }
.page-btn {
  width: 36px; height: 36px; border-radius: 8px;
  border: 1.5px solid var(--border); background: #fff;
  font-family: 'Poppins', sans-serif; font-size: 13px;
  cursor: pointer; transition: all .2s; color: var(--text2);
}
.page-btn.active, .page-btn:hover { background: var(--green); color: #fff; border-color: var(--green); }
.no-results { text-align: center; padding: 40px 20px; color: var(--text2); }
.no-results h3 { font-size: 18px; color: var(--navy); margin-bottom: 8px; }
.card-img-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center;
  justify-content: center; font-size: 50px;
  background: linear-gradient(135deg,#1B4332,#12345C);
}

/* Header scrolled */
.agiicam-header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,.12); }

/* Field error */
.field-error { color: #EF4444; font-size: 11px; display: block; margin-top: 3px; }

/* Body no scroll */
body.mobile-nav-open { overflow: hidden; }
