/* ----------------------------------------------------------
   CASE LIST — archive-case
   ---------------------------------------------------------- */

.case-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-bottom: 60px;
}

.case-item {
	display: flex;
	overflow: hidden;
	transition: box-shadow .25s ease;
	position: relative;
	
}
.case-item:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,.16);
}

.case-item-thumb {
  flex-shrink: 0;
  width: 50%;
  height: 450px;
  display: block;
  overflow: hidden;
  background: #e8e8e8;
}
.case-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .35s ease;
}
.case-item:hover .case-item-thumb img {
  transform: scale(1.04);
}

.case-item-body {
  flex: 1;
  background: #fff;
  padding: 18px 20px 14px;
  display: flex;
  flex-direction: column;
}

.case-item-title {
	padding: 0 0 5px;
	margin: 0 0 25px;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.7;
	color: #111;
	border-bottom: 1px solid #ccc;
}
.case-item-title a {
	color: inherit;
	text-decoration: none;
}
.case-item-title a:hover { color: var(--main-cl); }

.case-item-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.case-item-tags li a {
	display: inline-block;
	padding: 10px 25px;
	background: #c8b98c;
	color: #222222;
	font-size: 13px;
	font-weight: bold;
	text-decoration: none;
	white-space: nowrap;
	transition: opacity .2s;
}
.case-item-tags li a:hover { opacity: .8; }

.case-item-btn {
  text-align: right;
  margin-top: auto;
  padding-top: 10px;
	position: absolute;
    bottom: 15px;
    right: 15px;
}
.case-item-btn a {
  display: inline-block;
  font-size: 14px;
	font-weight: bold;
  color: #000;
  text-decoration: none;
  transition: color .2s;
  position: relative;
  border-bottom: 1px solid var(--main-cl);
  padding: 0 30px;
  line-height: 1.8em;
}
.case-item-btn a::before {
  position: absolute;
  width: 40px;
  height: 1px;
  content: "";
  background: var(--main-cl);
  right: 0;
  bottom: -1px;
  transform: rotate(45deg);
  transform-origin: right;
}
.case-item-btn a:hover { color: var(--main-cl); }

@media screen and (max-width: 768px) {
  .case-item       { flex-direction: column; }
  .case-item-thumb { width: 100%;
        min-height: 100%;
        height: 350px;}
  .case-item-body  { padding: 15px 15px 100px; }
  .case-item-title { font-size: 15px; }
  .case-item-tags  { gap: 5px; }
}

/* ----------------------------------------------------------
   CASE FILTER — bộ lọc tab cha / tag con
   ---------------------------------------------------------- */

.case-filter {
  margin-bottom: 60px;
}
.case-filter .container {
  max-width: 1290px;
  margin: 0 auto;
  padding: 0 15px;
}

.case-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 0;
  border-bottom: 2px #353736;
}

.case-filter-tab {
  flex: 1 1 0;
  padding: 15px 16px;
  font-size: 15px;
  font-weight: 700;
  color: #353736;
  background: #f4f7fb;
  border: 1px solid #353736;
  border-bottom-color: #353736;
  text-align: center;
  cursor: pointer;
  letter-spacing: .05em;
  user-select: none;
  position: relative;
  bottom: -2px;
  transition: background .2s, color .2s;
}
.case-filter-tab:hover {
  background: #dce6f0;
}
.case-filter-tab.is-active {
  background: #353736;
  color: #fff;
}

.case-filter-panel {
  display: none;
}
.case-filter-panel.is-active {
  display: block;
  background: #353736;
  border: 2px solid #353736;
  border-top: none;
  padding: 4px 20px 8px;
}

.case-filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 0 10px;
}
.case-filter-tags li a {
  display: inline-block;
  padding: 10px 16px;
	background: #c8b98c;
	color: #222222;
  font-size: 14px;
  font-weight: bold;
  letter-spacing: .04em;
  text-decoration: none;
  transition: opacity .2s;
}
.case-filter-tags li a:hover {
  opacity: .8;
}
.case-filter-tags li.is-active a {
  background: #fff;
  color: #000;
}

@media screen and (max-width: 768px) {
  .case-filter-tab      { padding: 8px 12px; font-size: 13px; }
  .case-filter-tags li a { font-size: 12px; padding: 4px 12px; }
}
@media screen and (max-width: 520px) {
  .case-filter-tabs { flex-direction: column; gap: 2px; }
  .case-filter-tab  { flex: none; width: 100%; text-align: center; padding: 12px 16px; font-size: 14px; }
}

/* ----------------------------------------------------------
   CASE SINGLE TAGS — single-case 下部
   ---------------------------------------------------------- */

.case-single-tags-section {
  margin-top: 0;
  margin-bottom: 0;
  background: #2d2d2d;
}
.case-single-tags-inner {
  padding: 28px 0 32px;
  max-width: 1290px;
  margin: 0 auto;
}
.case-single-tags-title {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .12em;
  margin-bottom: 18px;
}
.case-single-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.case-single-tags li a {
	display: inline-block;
	background: #c8b98c;
	color: #222222;
	font-weight: bold;
	padding: 6px 16px;
	font-size: 13px;
	letter-spacing: .06em;
	text-decoration: none;
	transition: background .2s, color .2s;
}
.case-single-tags li a:hover {
  background: #ccc;
  color: #000;
}

@media screen and (max-width: 768px) {
  .case-single-tags-inner { padding: 20px 16px 24px; }
  .case-single-tags li a  { font-size: 12px; padding: 5px 12px; }
}

/* ----------------------------------------------------------
   SINGLE CASE — gallery thumbnails
   ---------------------------------------------------------- */

.ud-img-galley li { line-height: 0; align-items: stretch; }
.ud-img-galley li img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.icase-btn{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:20px;
}
.icase-btn .slick-prev,
.icase-btn .slick-next{
    order:-1;
}
.icase-btn .slick-prev:before,
.icase-btn .slick-next:before{
    content:none;
}
.icase-btn .slick-prev,
.icase-btn .slick-next{
    position:relative;
    width:44px;
    height:44px;
    border:1px solid #284F96;
    border-radius:50%;
    background:#fff;
}
.icase-btn .slick-prev::after{
    content:"";
    position:absolute;
    inset:0;
    margin:auto;
    width:24px;
    height:10px;
	background:url("../images/arrow-next.png") no-repeat center/contain;
	transform: none;
    border: 0;
}
.icase-btn .slick-next::after{
    content:"";
    position:absolute;
    inset:0;
    margin:auto;
    width:24px;
    height:10px;
    background:url("../images/arrow-prev.png") no-repeat center/contain;
	transform: none;
    border: 0;
}
.icase .icase-btn .slick-prev {
	left: 0;
}
.icase .icase-btn .slick-next {
	right: 0;
}
.icase .icase-btn .slick-arrow {
	width: 60px;
	height: 60px;
	top: 0;
	top: 20px;
	background: #284F96;
}

