﻿/* ============ 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 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;
  /* Ẩn scrollbar “thô” */
  scrollbar-width: none;
}
.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: 480px;
  background: var(--lkh-card-bg);
  border: 1px solid var(--lkh-card-border);
  border-radius: 24px;
  box-shadow: var(--lkh-card-shadow);
  scroll-snap-align: start;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  cursor: pointer;
  outline: 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: translateY(-2px); box-shadow: var(--lkh-card-shadow-hover);}
.lkh_card-inner { height: 100%; padding: 24px; display: flex; flex-direction: column;}


/*************************************************************************
/* Text của card */
.lkh_card-text-1 {
  font-size: 20px;
  line-height: 1.4;
  color: var(--lkh-card-muted);
  margin: 0 0 10px 0; 
  font-weight: 500;
}

.lkh_card-text-2 { 
  font-size: 26px; 
  line-height: 1.35; 
  color: var(--lkh-card-muted);
  margin: 0 0 10px 0; 
  font-weight: 700;
}

.lkh_card-text-3 {
  font-size: 18px;
  line-height: 1.4;
  color: var(--lkh-card-muted);
  margin: 0 0 10px 0; 
}

/*Text của Modal*/
.lkh_card-modal-1 { 
  font-size: 20px;
  line-height: 1.4;
  color: var(--lkh-card-muted);
  margin: 0 0 10px 0;
  font-weight: 700;
}

.lkh_card-modal-2 { 
  font-size: 52px; 
  line-height: 1.3; 
  color: var(--lkh-card-muted);
  margin: 0 0 18px 0; 
  font-weight: 700;
}

.lkh_card-modal-3 { 
  font-size: 20px;
  line-height: 1.4;
  color: var(--lkh-card-muted);
  margin: 0 0 18px 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,.45);
  backdrop-filter: blur(2px);
  display: grid;
  place-items: center;
  z-index: 9999;
  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: 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-close:hover { background: #bfbfbf; }

/* Khóa scroll khi mở modal */
.lkh_card-no-scroll { overflow: hidden; }

/* Responsive nhỏ vẫn OK */
@media (max-width: 420px) {
  .lkh_card-item { width: 86vw; }
  .lkh_card-img { height: 46vw; }
}
