/* Category Card */
.category-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1rem;
  min-height: 270px;
  text-align: center;
  transition: box-shadow 0.3s ease;
}

.category-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.category-card img {
  width: 90%;
  /* max-width: 200px; */
  margin: 0 auto 1rem;
}

.category-card h3 {
  margin-bottom: 0;
  font-size: 1.9rem;
  color: #333;
  margin-top: 60px;
}

.category-card .btn {
  margin-top: auto;
  padding: 0.5rem 1rem;
  background: #3D4390;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
}

.category-card .btn:hover {
  background: #003f8f;
}

.category-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
  background-image: linear-gradient(to left, #2d4b78, #496f93, #6d93ac, #97b7c5, #c7dce1);
}

.category-card {
  cursor: pointer;
  transition: box-shadow 0.3s ease;
}

.category-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.category-card img {
  display: none;
}
img.category-card-logo {
  position: absolute;
  left: 30px;
  top: 20px;
  width: 100px;
}

@property --angle {
  syntax: '<angle>';
  initial-value: 45deg;
  inherits: false;
}

.category-card {
  --angle: 45deg;
  background: linear-gradient(var(--angle), #cfd2e1, #f6f8ff, #c7cbe5);
  transition: --angle 0.4s ease;
}

.category-card:hover {
  --angle: 20deg;
}

.category-grid h1 {
  margin-bottom: 1.5rem;
}

.category-grid .grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.category-card-link {
  background: #ffffff;
  border: 0.5px solid rgba(0, 0, 0, 0.12);
  border-radius: 0px;
  padding: 1.25rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: end;
  min-height: 220px;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
}

.category-card-link:hover {
  border-color: rgba(0, 0, 0, 0.25);
  transform: translateY(-2px);
}

.category-card-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #cc1a1a;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.category-card-link:hover::after {
  transform: scaleX(1);
}

.category-card-logo {
  width: 120px;
  height: auto;
  display: block;
}

.category-card-link h3 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #515151;
  line-height: 1.25;
  margin: 0;
  padding-right: 1.5rem;
}

.category-card-arrow {
  position: absolute;
  bottom: 1.25rem;
  right: 1.1rem;
  font-size: 15px;
  color: rgba(0, 0, 0, 0.2);
  line-height: 1;
  transition: color 0.2s, transform 0.2s;
}

.category-card-link:hover .category-card-arrow {
  color: #cc1a1a;
  transform: translate(2px, -2px);
}

@media (max-width: 768px) {
  .category-grid .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .category-grid .grid {
    grid-template-columns: 1fr;
  }
}.category-card-link {
  background: linear-gradient(145deg, #ffffff 0%, #f0f3f8 100%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
}

.category-card-link:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(0, 0, 0, 0.06);
}