.happy-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 40px;
  text-align: center;
}

/* GRID */
.happy-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto 30px;
}

/* THUMBNAIL */
.happy-item {
display: block;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.happy-item img {
  width: 100%;
  display: block;
  transition: transform 0.4s ease;
}

.happy-item:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.happy-item:hover img {
  transform: scale(1.08);
}

/* RESPONSIVE */
/* Tablet */
@media (max-width: 1024px) {
  .happy-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Mobile */
@media (max-width: 660px) {
  .happy-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* POPUP */
.happy-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.happy-modal-content {
  position: relative;
  width: 100%;
  max-width: 900px;
  background: #000;
  border-radius: 16px;
  overflow: visible; /* cho nút close trồi ra */
}

/* VIDEO bo góc */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: 16px;
  overflow: hidden;
}

.video-wrapper iframe {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

/* CLOSE BUTTON sát mép ngoài */
.wrapper-happy-close{
margin: 0;
}
.happy-close {
  position: absolute;
  top: -18px;
  right: -18px;
  font-size: 26px;
  color: #fff;
  background: #000;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 99999;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  transition: 0.3s;
}

.happy-close:hover {
  background: #222;
  transform: scale(1.1);
}
.happy-item.hidden {
  display: none;
}

/* ===== SHOW MORE BUTTON ===== */
.happy-show-more {
  margin: 40px auto 0;
  display: block;
  padding: 12px 32px;
  background: #000;
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.3s ease;
}

.happy-show-more:hover {
  background: #333;
}
.carousel-wrapper{
  position:relative;
  margin:auto;
}

/* FIX P TAG (DRUPAL AUTO ADD) */
.carousel-wrapper > p{
  margin:0;
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:100%;
  pointer-events:none;
  z-index:10;
}

.carousel-wrapper > p .carousel-btn{
  pointer-events:auto;
}

/* CAROUSEL */
.custom-carousel{
  overflow:hidden;
  border-radius:16px;
}

.carousel-track{
  display:flex;
  cursor: grab;
  transition:transform .4s ease;
}
.carousel-track:active {
  cursor: grabbing;
}

.carousel-slide{
  min-width:100%;
  background:#f5a000;
}

/* GRID */
.slide-inner{
  display:grid;
  grid-template-columns:1fr 360px 1fr;
  align-items:center;
  padding: 0 40px;
  gap:40px;
}

/* TEXT */
.slide-left h3,
.slide-right p{
  color:#000;
}
.color-title{
color:#fff;
}

/* VIDEO */
.video-wrapper{
  position:relative;
  width:100%;
  height:640px;
  border-radius:16px;
  overflow:hidden;
}

.video-thumb{
  width:100%;
  object-fit:cover;
}

/* PLAY BUTTON */
.play-btn{
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  width:90px;              /* ⬅️ to hơn */
  height:90px;
  border-radius:50%;
  border:3px solid #fff;
}

.play-btn::before{
    content: '';
    position: absolute;
    left: 32px;
    top: 20px;
    border-left: 32px solid #fff;
    border-top: 24px solid transparent;
    border-bottom: 24px solid transparent;
}

/* ARROW */
.carousel-btn{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:56px;
  height:56px;
  background:transparent;    
  border:none;
  box-shadow:none;           
  cursor:pointer;
  z-index:20;
}


.prev{ left:-38px; }
.next{ right:-38px; }

.carousel-btn .arrow{
  display:block;
  width:25px;
  height:25px;
  border-top:3px solid #999;
  border-right:3px solid #999;
  margin:auto;
}

.prev .arrow{
  transform:rotate(-135deg);
}

.next .arrow{
  transform:rotate(45deg);
}
@media (max-width: 660px){
.carousel-btn .arrow{
  width:18px;
  height:18px;

}

  .slide-inner{
    display:flex;
    flex-direction:column;
    padding: 20px;
    gap:16px;
  }

  /* 👉 Order lại layout */
  .slide-left{
    order:1;
  }

  .slide-right{
    order:2;
  }

  .slide-center{
    order:3;
  }

  /* 👉 Video nhỏ lại cho mobile */
  .video-wrapper{
    height:490px;
  }

  /* 👉 Text căn giữa cho đẹp hơn */
  .slide-left h3,
  .slide-right p{
    text-align:center;
  }

  /* 👉 Arrow chỉnh lại cho mobile */
  .prev{ left:-4px; }
  .next{ right:-4px; }

  .carousel-btn{
    width:40px;
    height:40px;
  }

}