.card-item {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: 0.3s;
}

.card-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.card-img-wrapper {
    position: relative;
}

.card-img-wrapper img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.date-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #0d6efd;
    color: #fff;
    padding: 5px 10px;
    font-size: 13px;
    border-radius: 6px;
}

.tags i {
    margin-right: 5px;
    color: #0d6efd;
}

.price {
    font-weight: bold;
    color: #dc3545;
    font-size: 18px;
}

.btn-detail {
    border-radius: 20px;
}

.footer {
    background: #111;
    color: #ccc;
}

.footer a {
    color: #ccc;
    text-decoration: none;
}

.footer a:hover {
    color: #0d6efd;
}

.footer-title {
    font-weight: bold;
    margin-bottom: 15px;
    color: #fff;
}

.footer-logo {
    font-size: 22px;
    font-weight: bold;
    color: #0d6efd;
}

.social-icons a {
    display: inline-block;
    margin-right: 10px;
    color: #ccc;
    font-size: 18px;
}

.social-icons a:hover {
    color: #0d6efd;
}

.footer-bottom {
    border-top: 1px solid #333;
    margin-top: 20px;
    padding-top: 10px;
    text-align: center;
    font-size: 14px;
}
.swiper {
    width: 100%;
    height: 400px;
    /* chỉnh theo nhu cầu */
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* quan trọng: ảnh phủ full mà không méo */
}

.product-img-main img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 10px;
}

.product-thumbs img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.7;
    transition: 0.2s;
}
.product-thumbs img:hover {
    opacity: 1;
}

.price {
    color: #dc3545;
    font-size: 24px;
    font-weight: bold;
}

.rating i {
    color: #ffc107;
}

.sidebar-box {
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
}

.category-list li {
    padding: 8px 0;
    border-bottom: 1px dashed #ddd;
}

.google-btn {
    background: #fff;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
}
.google-btn:hover {
    background: #f8f9fa;
}

.comment-box img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.progress {
    height: 8px;
}
/* ===== Card / Box ===== */
.product-box,
.sidebar-box {
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

/* ===== Ảnh chính ===== */
.product-img-main img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 10px;
    transition: 0.3s;
}

.product-img-main img:hover {
    transform: scale(1.02);
}

/* ===== Thumbnail ===== */
.product-thumbs img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.7;
    transition: 0.3s;
}

.product-thumbs img:hover {
    opacity: 1;
    transform: scale(1.05);
}
.author-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(13,110,253,0.9);
  color: #fff;
  padding: 4px 8px;
  border-radius: 5px;
  font-size: 12px;
}
ul.navbar-nav li a {
    font-size: 17px;
    /* font-weight: bold; */
}
ul.navbar-nav li:hover {
    background: cadetblue;
}
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-item {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  background: #f1f1f1;
  color: #333;
  font-size: 13px;
  text-decoration: none;
  transition: all 0.3s ease;
}
.star {
  font-size: 24px;
  color: #ccc;
  cursor: pointer;
}

.star.active {
  color: gold;
}
.search-result {
  position: absolute;
  background: #fff;
  width: 100%;
  
  z-index: 999;
}
.post-detail {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

/* Title */
.post-title {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 10px;
  line-height: 1.4;
}

/* Meta */
.post-meta {
  color: #777;
  font-size: 14px;
  margin-bottom: 20px;
}

/* Excerpt */
.post-excerpt {
  font-size: 18px;
  color: #555;
  margin-bottom: 20px;
  font-style: italic;
}

/* Nội dung */
.post-content {
  font-size: 17px;
  line-height: 1.8;
  color: #333;
}

/* Heading trong content */
.post-content h1,
.post-content h2,
.post-content h3 {
  margin-top: 20px;
  margin-bottom: 10px;
  font-weight: bold;
}

/* Ảnh */
.post-content img {
  max-width: 100%;
  border-radius: 10px;
  margin: 15px 0;
}
/* =========================
   NAVBAR CUSTOM
========================= */

.navbar-custom {
    background: #333333;
    padding: 12px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Logo */
.navbar-custom .navbar-brand {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
}

.navbar-custom .navbar-brand:hover {
    color: #f1f1f1;
}

/* Menu item */
.navbar-custom .nav-link {
    color: #000;
    font-size: 15px;
    font-weight: 500;
    margin: 0 8px;
    padding: 10px 15px !important;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}
.tab-content.p-3 img {
    width: 100% !important;
}
.video-card{
            margin-bottom:30px;
        }

        .thumb{
            position:relative;
            overflow:hidden;
            border-radius:12px;
            cursor:pointer;
        }

        .thumb img{
            width:100%;
            height:100%;
            object-fit:cover;
            transition:0.4s;
        }

        .thumb:hover img{
            transform:scale(1.05);
        }

        .duration{
            position:absolute;
            bottom:10px;
            right:10px;
            background:rgba(0,0,0,0.8);
            padding:3px 7px;
            border-radius:5px;
            font-size:13px;
        }

        .video-title{
            font-size:26px;
            font-weight:bold;
            line-height:1.4;
            margin-bottom:10px;
        }

        .video-meta{
            color:#aaa;
            font-size:15px;
            margin-bottom:12px;
        }

        .channel{
            display:flex;
            align-items:center;
            gap:10px;
            margin-bottom:12px;
        }

        .channel img{
            width:42px;
            height:42px;
            border-radius:50%;
        }

        .desc{
            color:#cfcfcf;
            line-height:1.6;
        }

        .badge-new{
            display:inline-block;
            background:#2d2d2d;
            padding:4px 10px;
            border-radius:6px;
            font-size:13px;
            margin-top:8px;
        }

        .summary-box{
            margin-top:15px;
            background:#1f2e2b;
            border-radius:12px;
            padding:14px 18px;
            display:flex;
            align-items:center;
            justify-content:space-between;
            color:#d8f3e3;
        }

        .summary-left{
            display:flex;
            align-items:center;
            gap:10px;
        }

       
h6.code_goi_y {
    text-align: center;
    text-transform: uppercase;
    font-size: 20px;
    font-weight: bold;
}
.col-md-8.box-content {
    padding: 0 20px;
    border: 1px solid #ddd;
}
.col-4.replated-box a {
    /* text-align: center; */
    text-decoration: none;
    color: #000;
    padding: 5px;
    font-size: 15px;
    text-transform: uppercase;
}
/* Hover */
/* .navbar-custom .nav-link:hover {
    color: #fff;
    background: rgba(255,255,255,0.08);
} */
.navbar-nav > li {
    text-transform: uppercase;
}
/* Active */
.navbar-custom .nav-link.active {
    color: #fff !important;
    background: #0d6efd;
}

/* Active underline effect */
.navbar-custom .nav-link.active::after {
    content: '';
    position: absolute;
    left: 15px;
    right: 15px;
    bottom: 4px;
    height: 2px;
    background: #fff;
    border-radius: 10px;
}

/* Dropdown */
.navbar-custom .dropdown-menu {
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.navbar-custom .dropdown-item {
    padding: 10px 15px;
    transition: 0.2s;
}

.navbar-custom .dropdown-item:hover {
    background: #f5f5f5;
}

/* Search box */
.navbar-custom .form-control {
    border-radius: 30px;
    border: none;
    padding-left: 15px;
}

.navbar-custom .btn-search {
    border-radius: 30px;
    background: #0d6efd;
    color: #fff;
    border: none;
    padding: 8px 15px;
}

.navbar-custom .btn-search:hover {
    background: #0b5ed7;
}

/* Mobile toggle */
.navbar-custom .navbar-toggler {
    border: none;
}

.navbar-custom .navbar-toggler:focus {
    box-shadow: none;
}
/* Code block */
.post-content pre {
  background: #1e1e1e;
  color: #fff;
  padding: 15px;
  border-radius: 8px;
  overflow-x: auto;
}

/* Link */
.post-content a {
  color: #0d6efd;
  text-decoration: none;
}

.post-content a:hover {
  text-decoration: underline;
}

/* Quote */
.post-content blockquote {
  border-left: 4px solid #0d6efd;
  padding-left: 15px;
  color: #555;
  margin: 20px 0;
  font-style: italic;
}
.post-cover {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 20px;
}

.search-item {
  padding: 8px;
  cursor: pointer;
}

.search-item:hover {
  background: #f1f1f1;
}
.tag-item:hover {
  background: #0d6efd;
  color: #fff;
  transform: scale(1.1);
}
/* ===== Giá ===== */
.price {
    color: #e74c3c;
    font-size: 16px;
    font-weight: bold;
}

/* ===== Rating ===== */
.rating i {
    color: #ffc107;
    margin-right: 2px;
}

/* ===== Thông tin chi tiết ===== */
.product-info ul {
    padding-left: 0;
}

.product-info li {
    list-style: none;
    padding: 5px 0;
    border-bottom: 1px dashed #eee;
}

.product-info i {
    color: #0d6efd;
    margin-right: 6px;
}

/* ===== Progress rating ===== */
.progress {
    height: 8px;
    border-radius: 10px;
}

.progress-bar {
    background: #0d6efd;
}

/* ===== Bình luận ===== */
.comment-box {
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.comment-box img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.comment-box strong {
    font-size: 14px;
}

textarea.form-control {
    border-radius: 8px;
}

/* ===== Sidebar ===== */
.sidebar-box h5,
.sidebar-box h6 {
    font-weight: 600;
    margin-bottom: 10px;
}

/* ===== Danh mục ===== */
.category-list li {
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
    transition: 0.2s;
}

.category-list li:hover {
    color: #0d6efd;
    transform: translateX(5px);
    cursor: pointer;
}

.category-list i {
    margin-right: 5px;
    color: #0d6efd;
}

/* ===== Google button ===== */
.google-btn {
    background: #fff;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: 0.3s;
}

.google-btn:hover {
    background: #f1f3f5;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}
.info-box {
    background: #fff;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.info-list li {
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
    font-size: 14px;
}

.info-list li:last-child {
    border-bottom: none;
}

.info-list i {
    color: #0d6efd;
    margin-right: 6px;
}
.info-list li:nth-child(4) strong, /* lượt xem */
.info-list li:nth-child(5) strong {
    /* lượt tải */
    color: #e74c3c;
}
.badge {
    margin-left: 5px;
}

/* Note box */
.note-box {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 10px;
    border-radius: 6px;
    font-size: 14px;
}

.note-box i {
    color: #ff9800;
    margin-right: 5px;
}
/* ===== Button ===== */
.btn-primary {
    border-radius: 8px;
}
/* Tab style */
.nav-tabs .nav-link {
    border: none;
    color: #555;
    font-weight: 500;
}

.nav-tabs .nav-link.active {
    color: #0d6efd;
    border-bottom: 2px solid #0d6efd;
    background: transparent;
}

/* Tab content */
.tab-content {
    background: #fff;
    border-radius: 0 0 10px 10px;
}

/* Progress */
.progress {
    height: 8px;
    border-radius: 10px;
}

/* Comment */
.comment-box img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}
/* ===== Responsive ===== */
@media (max-width: 768px) {
    .product-img-main img {
        height: 250px;
    }

    .product-thumbs img {
        height: 70px;
    }
}

.cart-box {
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.cart-item {
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.cart-img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}

.cart-summary {
    background: #fff;
    padding: 15px;
    border-radius: 10px;
}
 @media(max-width:768px){

            .video-title{
                font-size:20px;
            }

            .thumb{
                margin-bottom:15px;
            }
        }