/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/


@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/


}

.justify-content-center {
    justify-content: center ;
}
.post-card {
    display: block;
    height: 100%;
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0px 4px 4px rgb(0 0 0 / 10%);
    overflow: hidden;
    text-decoration: none;
    transition: all .3s;
}
.post-card .content-wrap {
    height: calc(100% - 200px);
    padding: 20px 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
-----------------------------------------------
.related-posts-container {
  margin-top: 40px;
}

.related-title {
  font-size: 20px;
  font-weight: bold;
  color: #002f6c;
  margin-bottom: 20px;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
  gap: 20px;
}

.related-post-item {
  display: flex;
  align-items: center;
  background-color: #f5f5f5;
  border-radius: 10px;
  padding: 10px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.related-post-item:hover {
  background-color: #e2ecff;
}

.related-post-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  margin-right: 15px;
}

.related-post-item strong {
  color: #002f6c;
  font-size: 15px;
  line-height: 1.4;
}
/* C&#7845;u trúc chung cho danh sách video */
.video-item {
    position: relative;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.video-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* &#7842;nh thumbnail */
.video-thumbnail {
    width: 100%;
    border-radius: 6px;
    transition: transform 0.3s ease-in-out;
}

/* Hi&#7879;u &#7913;ng khi hover lên &#7843;nh */
.video-item:hover .video-thumbnail {
    transform: scale(1.1);
}

/* Nút Play */
.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3em;
    color: #fff;
    opacity: 0.8;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
}

/* Hi&#7879;u &#7913;ng khi hover lên video */
.video-item:hover .play-button {
    opacity: 1;
}

/* Tùy ch&#7881;nh ki&#7875;u nút Play */
.play-button i {
    font-size: 2rem;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    padding: 0.5em;
}

/* T&#7841;o grid cho video */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
