/* Dept Grid Styles */
.dept-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.dept-card {
  display: flex;
  flex-direction: column;
  background-color: #f7f9fc;
  transition: transform 0.2s ease;
}

.dept-card .img-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: #ddd;
}

.dept-card .img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* New Tab Button using ::before background */
.dept-card .img-box .btn-newtab {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 40px;
  height: 40px;
  background-color: #48c9b0; /* Teal color from design */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.dept-card .img-box .btn-newtab::before {
  content: "";
  display: block;
  width: 15px;
  height: 12px;
  background: url("../img/content/ico_link.png") no-repeat center / contain;
}

.dept-card .txt-box {
  padding: 25px 20px;
  flex-grow: 1;
}

.dept-card .txt-box .tit {
  font-size: 18px;
  font-weight: 700;
  color: #333;
  margin-bottom: 8px;
}

.dept-card .txt-box .sub {
  font-size: 14px;
  color: #666;
  line-height: 1.4;
}

/* Responsive Rules */
@media (max-width: 1024px) {
  .dept-grid {
    grid-template-columns: repeat(2, 1fr);
	  gap: 20px;
  }
}

@media (max-width: 768px) {
  .dept-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}