.dept_main .ob-box .ob-info.type01 {
  float: left;
  width: 100%;
  padding-left: 25px;
  padding-right: 25px;
}

/* 전체 카드 영역 클릭 가능하게 하는 외부 링크 래퍼 */
.quick-link-wrap {
  display: block;
  color: inherit;
  text-decoration: none;
}

.quick-link-wrap:hover .quick-item {
  background-color: #be222f;
  border-color: #be222f;
}

.quick-link-wrap:hover .quick-btn,
.quick-link-wrap:hover .arrow {
  color: #fff;
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 20px;
  grid-auto-rows: 1fr; /* 💡 카드 자동 높이 동일하게 맞추기 */
}

.quick-item {
  background-color: #f5f5f5;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
  padding: 16px 20px;
  border-radius: 8px;
  border: 1px solid #ccc;
  transition: background-color 0.3s, border-color 0.3s;
  cursor: pointer;
}

/* 카드 내부 썸네일 이미지 */
.quick-item .thumb {
  width: 100%;
  margin-bottom: 12px;
  overflow: hidden;
  border-radius: 8px;
  flex-shrink: 0; /* ✅ 이미지 크기 줄어들지 않도록 */
}

.quick-item .thumb img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  margin: 10px 0;
}

/* 학과명 텍스트 */
.quick-btn {
  font-weight: 600;
  font-size: 26px;
  color: #333;
  text-decoration: none;
}

.quick-item:hover .quick-btn {
  color: #fff;
}

/* 텍스트 기반 화살표 */
.link-arrow {
  font-size: 25px;
  color: inherit;
  transition: transform 0.3s;
  padding-left: 10px;
}

.quick-btn:hover .link-arrow {
  transform: translateX(3px);
}

/* SNS 아이콘 */
.sns-icons {
  display: flex;
  gap: 6px;
}
.sns-icons a {
  cursor: pointer; /* SNS는 독립 링크 */
}
.sns-icons img {
  width: 30px;
  height: 30px;
  vertical-align: middle;
  /* filter 제거로 색상 유지 */
}

/* 텍스트 링크 (서브 전공 등) */
.text-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.text-links a {
  display: inline-flex;
  align-items: center;
  background-color: #efefef;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 14px;
  color: #333;
  text-decoration: none;
  transition: background-color 0.3s, color 0.3s;
  font-weight: 500;
}

.text-links a .txt-arrow {
  margin-left: 6px;
  font-size: 14px;
  color: inherit;
  transition: transform 0.3s;
}

.quick-item:hover .text-links a {
  background-color: #740505;
  color: #fff !important;
}

.quick-item:hover .text-links a .txt-arrow {
  transform: translateX(3px);
}

/* ▶ 화살표 */
.arrow {
  font-size: 18px;
  color: #999;
  transition: transform 0.3s, color 0.3s;
}

.quick-item:hover .arrow {
  transform: translateX(4px);
  color: #fff;
}

.quick-item:hover,
.quick-item .sns-icons:hover,
.quick-item .text-links:hover {
  background-color: #be222f;
  border-color: #be222f;
}

.quick-item:hover .quick-btn,
.quick-item .sns-icons:hover ~ .quick-btn,
.quick-item .text-links:hover ~ .quick-btn {
  color: #fff;
}

.quick-item .sns-icons:hover ~ .arrow,
.quick-item .text-links:hover ~ .arrow {
  color: #fff;
}
.dept-desc {
  margin-top: 10px;
  font-size: 16px;
  color: #444;
  line-height: 1.6;
  transition: color 0.3s;
}

.quick-item:hover .dept-desc {
  color: #fff; /* ✅ hover 시 흰색으로 변경 */
}
/* 반응형 대응 */
@media (max-width: 1024px) {
  .quick-links {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .quick-links {
    grid-template-columns: 1fr;
  }
}

