/* ===== BASE ===== */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
}

.department {
  padding: 60px 20px;
  background: linear-gradient(135deg, #eef5ff, #f9fbff);
}

.container {
  max-width: 1100px;
  margin: auto;
}

/* ===== TITLE ===== */
.title-card {
  background: linear-gradient(45deg, #0b2e59, #1d4ed8);
  color: #fff;
  padding: 18px;
  text-align: center;
  font-size: 26px;
  font-weight: bold;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* ===== INTRO ===== */
.intro {
  text-align: center;
  margin: 25px 0;
  color: #333;
  font-size: 16px;
}

/* ===== SECTION ===== */
.section-box {
  margin-top: 50px;
}

.section-title {
  text-align: center;
  margin-bottom: 25px;
  color: #0b2e59;
  font-size: 22px;
}

/* ===== GRID ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

/* ===== CARD ===== */
.card {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(10px);
  padding: 18px;
  text-align: center;
  border-radius: 14px;
  font-weight: 500;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
  transition: all 0.4s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

/* Hover Animation */
.card:hover {
  transform: translateY(-8px) scale(1.03);
  background: #e0edff;
}

/* Shine Effect */
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.6), transparent);
  transition: 0.5s;
}

.card:hover::before {
  left: 100%;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeTop {
  from {
    opacity: 0;
    transform: translateY(-40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animation Classes */
.animate-up {
  animation: fadeUp 0.8s ease forwards;
}

.animate-left {
  animation: fadeLeft 0.8s ease forwards;
}

.animate-right {
  animation: fadeRight 0.8s ease forwards;
}

.animate-top {
  animation: fadeTop 0.8s ease forwards;
}

.animate-fade {
  animation: fadeUp 1s ease forwards;
}

/* Delay for better effect */
.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }
.card:nth-child(6) { animation-delay: 0.6s; }
.card:nth-child(7) { animation-delay: 0.7s; }
.card:nth-child(8) { animation-delay: 0.8s; }