﻿/* ============ Base ============ */
:root {
  --lkh-card-bg: #fff;
  --lkh-card-text: #0f0f0f;
  --lkh-card-muted: #272727;
  --lkh-card-border: #e7e7e7;
  --lkh-card-shadow: 0 6px 20px rgba(0,0,0,.08);
  --lkh-card-shadow-hover: 0 10px 28px rgba(0,0,0,.12);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--lkh-card-text);
  background: #fafafa;
}

/* ============ Slider ============ */
.lkh_card-section {
  padding: 32px 32px 16px 16px;
  box-sizing: border-box;
}

.lkh_card-slider {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    scrollbar-width: none;
    scroll-behavior: smooth;
    transition: scroll-left 0.9s ease-out;
    height: 536px;
    padding-top: 10px;
    padding-left: 18px;
}


.lkh_card-slider::-webkit-scrollbar { display: none; }

/* cho cảm giác drag 
.lkh_card-slider.lkh_card-grabbing { cursor: grabbing; }*/

/* ============ Card ============ */
.lkh_card-item {
  flex: 0 0 auto;
  width: 360px;
  height: 492px;
  background: var(--lkh-card-bg);
  border: 1px solid var(--lkh-card-border);
  border-radius: 24px;
  box-shadow: var(--lkh-card-shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  cursor: pointer;
  outline: none;
  user-select: none;
}

.lkh_card-item:focus-visible { border-color: #1d4ed8; box-shadow: 0 0 0 3px rgba(29,78,216,.2), var(--lkh-card-shadow);}
.lkh_card-item:hover { transform: scale(1.03); box-shadow: var(--lkh-card-shadow-hover);}
.lkh_card-inner { height: 480px; padding: 24px; display: flex; flex-direction: column;}


/*************************************************************************
/* Text của card */
.lkh_card-text-1, .lkh_card-modal-1 {
  font-size: 20px;
  line-height: 1.4;
  color: var(--lkh-card-muted);
  margin: 0 0 10px 0;
  font-weight: 500;
}

.lkh_card-modal-2 { font-size: 42px;}
.lkh_card-text-2 { font-size: 26px;}

.lkh_card-text-2, .lkh_card-modal-2 {
  line-height: 1.35;
  color: var(--lkh-card-muted);
  margin: 0 0 10px 0;
  font-weight: 700;
}

.lkh_card-text-3, .lkh_card-modal-3 {
  font-size: 18px;
  line-height: 1.4;
  color: var(--lkh-card-muted);
  margin: 0 0 10px 0;
}

/*********** CSS Button Tìm hiểu thêm ***/

.lkh_card-modal-link {
    display: grid;
    place-items: center;
    background: #efefef;
    /* padding: 1.4em; */
    border-radius: 10px;
    box-shadow: 6px 6px 10px -1px rgba(0, 0, 0, 0.15), -6px -6px 10px -1px rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0);
    cursor: pointer;
    transition: transform 0.5s;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    color: inherit;
    max-width: 130px;
    min-height: 51px;
}

.lkh_card-modal-link:hover {
  box-shadow: inset 4px 4px 6px -1px rgba(0,0,0,0.2),
	      inset -4px -4px 6px -1px rgba(255,255,255,0.7),
	      -0.5px -0.5px 0px rgba(255,255,255,1),
	      0.5px 0.5px 0px rgba(0,0,0,0.15),
	      0px 12px 10px -10px rgba(0,0,0,0.05);
  border: 1px solid rgba(0,0,0,0.1);
  transform: translateY(0.2em);
}

.lkh_card-modal-link:hover svg {
  transform: scale(0.9);
  fill: #333333;
}

/* Hình ở dưới cùng */
.lkh_card-img {
  margin-top: auto;
  width: 100%;
  height: 260px;         
  object-fit: cover;   
  border-radius: 16px;
  user-select: none;
  pointer-events: none;
}

/* ============ Overlay + Modal ============ */
.lkh_card-overlay[hidden] { display: none; }

.lkh_card-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.836);
  backdrop-filter: blur(2px);
  display: grid;
  place-items: center;
  z-index: 9998;
  animation: lkh_card-fade .18s ease-out;
}

/* Nút tìm hiểu thêm */
.lkh_card-modal {
  width: 800px;
  height: 600px;
  max-width: calc(100vw - 24px);
  max-height: calc(100vh - 24px);
  background: var(--lkh-card-bg);
  border: 1px solid var(--lkh-card-border);
  border-radius: 28px;
  padding: 64px;
  box-shadow: 0 18px 60px rgba(0,0,0,.25);
  position: relative;
  overflow: auto;
  animation: lkh_card-pop .16s ease-out;
}

/* Nút đóng X */
.lkh_card-modal-close { 
    position: absolute;
    top: 18px;
    right: 6px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #dbdbdb;
    border: 0;
    font-size: 19px;
    line-height: 1;
    cursor: pointer;
    padding: 0px;
}


.lkh_card-modal-close:hover { background: #bfbfbf; }

/*.lkh_card-modal-open { position: absolute; top: 8px; right: 12px; width: 48px; height: 48px; border-radius: 50%; background: #dbdbdb; border: 0; font-size: 26px; line-height: 1; cursor: pointer;}
.lkh_card-modal-open:hover { background: #bfbfbf; }*/


.lkh_card-modal-open { 
    position: absolute;
    bottom: 16px;
    right: 17px;
    padding: 8px 16px;
    background-color: #dbdbdb;
    color: #000;
    border: none;
    border-radius: 50%;
    font-size: 17px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    margin-right: 0px;
    line-height: 0px;
    margin-bottom: 0px;
}

.lkh_card-item .lkh_card-inner {
  position: relative;
}

.lkh_card-modal-open:hover {
  background-color: #bfbfbf;
  transform: translateY(-2px);
}


/* Khóa scroll khi mở modal */
.lkh_card-no-scroll { overflow: hidden; }

/* Responsive nhỏ vẫn OK */
@media (max-width: 430px) {
  .lkh_card-item { width: 86vw; }
  .lkh_card-img { height: 46vw; }
  .lkh_card-modal { padding: 28px;}
}



/* Style for the previous and next buttons */
.lkh_card-prev, .lkh_card-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 30px;
  border: none;
  padding: 10px;
  cursor: pointer;
  z-index: 10;
}

.lkh_card-prev {
  left: 10px;
}

.lkh_card-next {
  right: 10px;
}

.lkh_card-prev:hover, .lkh_card-next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}
