/* Categories Section */
.categories-section {
  padding: 100px 0;
}
.section-header {
  margin-bottom: 50px;
}
.section-header h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--text-heading, #0F172A);
}
.section-header .subheading {
  color: var(--accent-cta, #14B8A6);
  font-weight: 700;
  margin-bottom: 5px;
  display: block;
}
/* Bento Grid Categories */
.bento-categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 300px);
  gap: 20px;
}
.bento-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  align-items: flex-end;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}
.bento-large {
  grid-column: span 2;
}
.bento-small {
  grid-column: span 1;
}
.bento-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
  z-index: 1;
}
.bento-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.2) 100%);
  z-index: 2;
  transition: background 0.4s ease;
}
.bento-content {
  position: relative;
  z-index: 3;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.bento-icon {
  position: absolute;
  top: -180px;
  right: 0;
  width: 50px;
  height: 50px;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-size: 24px;
}
.bento-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}
.bento-text h3 {
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 5px;
  transition: transform 0.3s ease;
}
.bento-text .course-count {
  color: var(--accent-cta, #14B8A6);
  font-size: 14px;
  font-weight: 700;
  opacity: 0.9;
}
.bento-arrow {
  width: 40px;
  height: 40px;
  background: var(--accent-cta, #14B8A6);
  color: #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: translateX(-20px);
  opacity: 0;
  transition: all 0.3s ease;
}

/* Hover Effects */
.bento-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.bento-card:hover .bento-bg {
  transform: scale(1.1);
}
.bento-card:hover .bento-overlay {
  background: linear-gradient(to top, rgba(15, 76, 129, 0.95) 0%, rgba(15, 76, 129, 0.4) 100%);
}
.bento-card:hover .bento-arrow {
  transform: translateX(0);
  opacity: 1;
}
.bento-card:hover .bento-text h3 {
  transform: translateX(-5px);
}

@media (max-width: 992px) {
  .bento-categories {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .bento-large, .bento-small {
    grid-column: span 1;
    height: 250px;
  }
  .bento-icon {
    top: -120px;
  }
}

@media (max-width: 768px) {
  .bento-categories {
    grid-template-columns: 1fr;
  }
  .bento-large, .bento-small {
    grid-column: span 1;
    height: 220px;
  }
  .bento-icon {
    top: -100px;
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
  .bento-text h3 {
    font-size: 20px;
  }
}
