/ :root {
  --federal-blue: #03045eff;
  --marian-blue: #023e8aff;
  --honolulu-blue: #0077b6ff;
  --blue-green: #0096c7ff;
  --pacific-cyan: #00b4d8ff;
  --vivid-sky-blue: #48cae4ff;
  --non-photo-blue: #90e0efff;
  --non-photo-blue-2: #ade8f4ff;
  --light-cyan: rgb(223, 245, 249);
}

.alert {
  padding: 4px 8px !important;
  margin-bottom: 0 !important;
  border-radius: 0 !important;
}

.alert-warning {
  background: linear-gradient(90deg, #fff3cd, #ffeeba);
  border: 1px solid #ffc107;
  color: #da5e0b;
  font-weight: 500;
  font-size: 13px;
  padding: 4px 8px !important;
  line-height: 1.4;
  letter-spacing: 0.3px;
  box-shadow: 0 1px 2px rgba(255, 193, 7, 0.2);
  animation: fadeInAlert 0.4s ease-in-out;
}

.alert-warning i {
  color: #d39e00;
  font-size: 10px;
}

.alert-warning strong {
  color: #ff6f00;
  margin-right: 4px;
}

@keyframes fadeInAlert {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.alert-warning:hover {
  box-shadow: 0 0 8px rgba(255, 193, 7, 0.5);
  transform: scale(1.01);
  transition: 0.3s ease;
}

.section-title {
  font-size: 2rem;
  font-weight: 600;
  color: #007bff;
  margin-bottom: 1rem;
  color: var(--marian-blue);
  font-weight: 700;
  letter-spacing: 1px;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--honolulu-blue), var(--pacific-cyan));
  transform: translateX(-50%);
  border-radius: 2px;
}

/ .counter-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  height: 100%;
  text-align: center;
  background-color: #f8f9fa;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.counter-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.counter-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.counter-value {
  font-weight: 700;
  font-size: 1.3rem;
}

.counter-label {
  font-size: 0.95rem;
  color: #555;
}

/* ===== OFFICER CARDS ===== */
.officer-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 3rem;
  margin-top: 2rem;
}

.officer-card {
  position: relative;
  width: 100%;
  max-width: 500px;
  background-color: var(--non-photo-blue-2);
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.officer-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(
    90deg,
    var(--honolulu-blue),
    var(--blue-green),
    var(--vivid-sky-blue),
    var(--marian-blue)
  );
  background-size: 300% 100%;
  animation: shimmer 3s linear infinite;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

@keyframes shimmer {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.officer-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.18);
  background: linear-gradient(145deg, var(--non-photo-blue), var(--light-cyan));
}

.officer-card img {
  width: 200px;
  height: 260px;
  object-fit: cover;
  border-radius: 50%;
  margin-top: 1.2rem;
  border: 5px solid var(--vivid-sky-blue);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.officer-card img:hover {
  transform: scale(1.07);
  box-shadow: 0 0 20px var(--blue-green);
}

.officer-card .card-body {
  padding: 1rem 1.5rem 1.5rem;
}

.officer-card .card-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--federal-blue);
  margin-top: 0.8rem;
}

.officer-card .card-text:first-of-type {
  font-size: 1rem;
  font-weight: 600;
  color: var(--honolulu-blue);
  margin-bottom: 0.5rem;
}

.officer-card .card-text:last-of-type {
  font-size: 0.95rem;
  color: #333;
  font-weight: 500;
}

.officer-card .card-text i {
  color: var(--blue-green);
  margin-right: 0.4rem;
}

/* ===== ICON CAROUSEL ===== */
.icon-carousel {
  overflow: hidden;
  width: 100%;
}

.icon-track {
  display: flex;
  gap: 1rem;
  animation: scroll 30s linear infinite;
}

.icon-carousel img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ===== UNIFIED MODAL SYSTEM ===== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 20px;
  box-sizing: border-box;
  animation: fadeIn 0.3s ease;
}

.modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-radius: 12px;
  overflow: hidden;
}

.modal-image {
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  display: block;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.modal-video {
  width: 100%;
  height: auto;
  max-height: 80vh;
  border-radius: 8px;
  background: #000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.modal-iframe {
  width: 100%;
  height: 500px;
  border: none;
  border-radius: 8px;
  background: #000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.modal-info {
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 15px 20px;
  text-align: center;
  width: 100%;
  border-radius: 0 0 8px 8px;
  margin-top: -4px;
}

.modal-title {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 200px;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  color: #333;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  font-weight: bold;
  transition: all 0.3s ease;
  z-index: 10000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.modal-close:hover {
  background: #ff4444;
  color: white;
  transform: scale(1.1);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    backdrop-filter: blur(0px);
  }
  to {
    opacity: 1;
    backdrop-filter: blur(8px);
  }
}

body.modal-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 1.5rem;
  }
  .icon-carousel img {
    width: 60px;
    height: 60px;
  }

  .officer-cards {
    flex-direction: column;
    align-items: center;
  }
  .officer-card {
    max-width: 320px;
  }
  .officer-card img {
    width: 180px;
    height: 250px;
  }

  .counter-card {
    min-height: 130px;
  }

  .modal-overlay {
    padding: 15px;
  }
  .modal-iframe {
    height: 400px;
  }
  .modal-close {
    width: 40px;
    height: 40px;
    font-size: 18px;
    top: 15px;
    right: 300px;
  }
  .modal-info {
    padding: 12px 15px;
  }
  .modal-title {
    font-size: 15px;
  }
}

@media (max-width: 576px) {
  .section-title {
    font-size: 1.25rem;
  }
  .icon-carousel img {
    width: 50px;
    height: 50px;
  }
  .officer-card img {
    width: 150px;
    height: 210px;
  }
}

@media (max-width: 480px) {
  .modal-overlay {
    padding: 10px;
  }
  .modal-content {
    max-width: 95vw;
    max-height: 95vh;
  }
  .modal-image {
    max-height: 70vh;
  }
  .modal-iframe {
    height: 300px;
  }
  .modal-video {
    max-height: 70vh;
  }
  .modal-close {
    top: 10px;
    right: 20px;
    width: 35px;
    height: 35px;
    font-size: 16px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
  }
  .modal-info {
    padding: 10px 12px;
  }
  .modal-title {
    font-size: 14px;
  }
}

@media (max-width: 360px) {
  .modal-iframe {
    height: 250px;
  }
  .modal-image {
    max-height: 65vh;
  }
  .modal-video {
    max-height: 65vh;
  }
  .modal-close {
    top: 5px;
    right: 5px;
    width: 22px;
    height: 22px;
    font-size: 14px;
  }
  .modal-info {
    padding: 8px 10px;
  }
  .modal-title {
    font-size: 13px;
    -webkit-line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  .modal-overlay {
    padding: 15px;
  }
  .modal-content {
    max-width: 95vw;
    max-height: 85vh;
  }
  .modal-iframe {
    height: 400px;
    max-height: 60vh;
  }
  .modal-close {
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
}

.modal-iframe {
  aspect-ratio: 16 / 9 !important;
}
.modal-content img,
.modal-content iframe,
.modal-content video {
  transform: none !important;
}

.modal-overlay * {
  box-sizing: border-box !important;
}
