/* 비활성 카테고리 버튼 */
.mb-board button.tab-menu-off {
    background-color: transparent !important; /* 기존 버튼 배경 유지 */
    color: #666666 !important;                 /* 비활성 폰트 컬러 */
}

/* 활성(선택된) 카테고리 버튼 */
.mb-board button.tab-menu-on {
    background-color: #ea5615 !important; /* 활성 배경 컬러 */
    color: #ffffff !important;             /* 활성 폰트 컬러 */
	border-color: #ea5615 !important;      /* hover 시 활성 라인 컬러 */
}


/* 비활성 버튼 hover */
.mb-board button.tab-menu-off:hover {
    background-color: #ea5615 !important; /* hover 배경 */
    color: #ffffff !important;             /* hover 글자색 */
    border-color: #ea5615 !important;      /* hover 라인 색 */
}

/* 활성 버튼 hover 시 */
.mb-board button.tab-menu-on:hover {
    background-color: #323333 !important; /* 활성 배경색 그대로 유지 */
    color: #ffffff !important;             /* 활성 글자색 그대로 유지 */
    border-color: #323333 !important;      /* hover 시 라인 색만 변경 */
}

/* 버튼 안 텍스트(span) 색상 강제 */
.mb-board button.tab-menu-off span,
.mb-board button.tab-menu-on span {
    color: inherit !important;
    -webkit-text-fill-color: inherit !important;
}

.swiper-slide-image {
    cursor: pointer;
    }



/* 카테고리 목록 → 버튼형 가로 배열 */
.cat-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* a 태그 기본 스타일 강제 리셋 */
.cat-btns a.cat-btn {
  display: inline-block;
  padding: 10px 18px;
  background: #fff;              /* 흰 배경 */
  border: 1px solid #ccc;        /* 회색 라인 */
  color: #333;
  text-decoration: none !important; /* 밑줄 제거 */
  border-radius: 6px;
  font-size: 14px;
  line-height: 1;
  box-shadow: none !important;   /* 기존 라인/그림자 제거 */
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

/* 호버 시 컬러 (강제 적용) */
.cat-btns a.cat-btn:hover {
  background-color: #eb6215 !important;
  border-color: #eb6215 !important;
  color: #fff !important;
}


<의학칼럼게시판>

/* =========================
   grid 아이템 보정
========================= */
.display-posts-listing > * {
  width: auto !important;
  float: none !important;
	
}

/* =========================
   카드 스타일
========================= */
.display-posts-listing .listing-item {
  border: 1px solid #eee;
  border-radius: 5px;
  overflow: hidden;
  background: #fff;
  padding-bottom: 30px;

  /* 기본 그림자 적용 → 떠 있는 느낌 */
  box-shadow: 0 3px 15px rgba(0,0,0,0.12);
  transition: box-shadow 0.3s ease; /* 카드 자체는 이동 없음 */
}

/* 카드 호버 - 카드 자체 이동 제거, 그림자 변하지 않음 */
.display-posts-listing .listing-item:hover {
  transform: none; /* 카드 이동 제거 */
  box-shadow: 0 3px 15px rgba(0,0,0,0.12); /* 그림자 그대로 */
}

/* =========================
   썸네일
========================= */
.display-posts-listing img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

/* 이미지 확대 */
.display-posts-listing .listing-item:hover img {
  transform: scale(1.05);
}

/* =========================
   카테고리 버튼
========================= */
.display-posts-listing .terms,
.display-posts-listing .category {
  display: flex;
  gap: 8px;
  padding: 10px 16px 0;
}

.display-posts-listing .terms a,
.display-posts-listing .category a {
  background: #eb6215;
  color: #fff;
  font-size: 12px;
  padding: 4px 20px;
  border-radius: 6px;
  text-decoration: none !important;
}

/* =========================
   제목 (라인 제거)
========================= */
.display-posts-listing .title,
.display-posts-listing .title a {
  display: block;
  padding: 20px 20px 4px;
  font-size: 20px;
  font-weight: 700;
  color: #333333;
	line-height: 1.4; /* ← 행간 조절 핵심 */
  border: none !important;
  box-shadow: none !important;
  text-decoration: none !important;
}

.display-posts-listing .title::after,
.display-posts-listing .title a::after {
  content: none !important;
  display: none !important;
}

/* =========================
   내용 요약 (excerpt) + - 제거
========================= */
.display-posts-listing .excerpt {
  padding: 0 15px 40px;
  position: relative;
  font-size: 15px;
  line-height: 1.5;
  color: #555;
  text-indent: 0 !important;
	margin-top: 6px;
}

/* =========================
   3열 고정 Grid
========================= */
.display-posts-listing {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  row-gap: 50px;   /* 세로 간격만 */
  column-gap: 25px; /* 좌우 간격은 별도 조절 */
  align-items: start; /* 상단 정렬 */
}

/* =========================
   내용 요약 2줄 제한
========================= */
.display-posts-listing .excerpt {
  padding: 0 20px 40px;
  font-size: 15px;
  line-height: 1.5;
  color: #555;

  display: -webkit-box !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;

  overflow: hidden;
  max-height: calc(1.5em * 2); /* 🔥 보험 */
}


/* =========================
   반응형
========================= */
@media (max-width: 768px) {
  .display-posts-listing {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .display-posts-listing {
    grid-template-columns: 1fr;
  }
	
}

.display-posts-listing .excerpt::before {
  content: none !important;
  display: none !important;
}


/* 퀵메뉴 전체 위치 */
.quick-menu {
  position: fixed;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9999;
}

/* 버튼 기본 */
.qm-btn {
  display: block;
  margin-bottom: 15px;
}

/* 이미지 버튼 */
.qm-btn img {
  width: 70px;           /* 버튼 크기 */
  height: 70px;
  border-radius: 50%;    /* 동그라미 */
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

/* 🔥 호버 효과 (확대 + 그림자) */
.qm-btn:hover img {
  transform: scale(1.15);
  box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}

/* 📱 모바일 전용 퀵메뉴 사이즈 */
@media (max-width: 768px) {

  .quick-menu {
    right: 12px; /* 모바일에서 화면 가장자리와 간격 */
		bottom: 75px;
    top: auto;
    transform: none; /* 중앙 정렬 해제 */
  }

  .qm-btn img {
    width: 40px;   /* 모바일 버튼 크기 */
    height: 40px;
  }

  .qm-btn {
    margin-bottom: 8px; /* 버튼 간 간격도 살짝 줄임 */
  }

  /* 모바일에서는 호버 확대 줄이기 (선택) */
  .qm-btn:hover img {
    transform: scale(1.05);
  }
	
	
/* =========================
   excerpt-dash 완전 제거 (엘리멘터 대응)
========================= */
.display-posts-listing span.excerpt-dash {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 0 !important;
  line-height: 0 !important;
}

/* 사이드바 전용 Display Posts 리셋 */
.sidebar-posts-wrapper.display-posts-listing {
  all: unset !important;       /* 부모 grid 영향 제거 */
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
}

/* 글 1개 = 이미지 + 제목 */
.sidebar-posts-wrapper .listing-item {
  all: unset !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

/* 썸네일 */
.sidebar-posts-wrapper img {
  width: 70px !important;
  height: 70px !important;
  object-fit: cover !important;
  flex-shrink: 0 !important;
}

/* 링크 가로 정렬 */
.sidebar-posts-wrapper a {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  white-space: normal !important;
  line-height: 1.4 !important;
  font-size: 14px !important;
}

