    .no-select img {
      max-width: 100%; /* Hình ảnh sẽ không vượt quá chiều rộng của div */
      height: auto; /* Giữ nguyên tỷ lệ hình ảnh */
      display: block; /* Đảm bảo hình ảnh là phần tử block để không có khoảng trắng xung quanh */
      white-space: pre-wrap;
  }
    .no-select img {
        padding: 10px;  /* Điều chỉnh giá trị này theo ý muốn */
    }

    .no-select img[align="left"] {
        margin-right: 15px;  /* Khoảng cách bên phải cho hình căn trái */
    }

    .no-select img[align="right"] {
        margin-left: 15px;  /* Khoảng cách bên trái cho hình căn phải */
    }

    .no-select p {
        margin: 0;
        padding: 0;
    }

    .no-select p + p {
        margin-top: 1em;  /* Khoảng cách giữa các đoạn */
    }
	

  /* them su kien phong to */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.overlay img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  width: auto;
  height: auto;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  color: white;
  font-size: 30px;
  cursor: pointer;
  background: none;
  border: none;
  outline: none;
  padding: 10px;
  z-index: 1001;
}

.close-btn:hover {
  color: #ddd;
}

ol {
  list-style-type: lower-alpha;
  padding-left: 2rem;
}


/* Responsive styles */
@media (max-width: 768px) {
  .overlay img {
    max-width: 95%;
    max-height: 95%;
  }

  .close-btn {
    font-size: 24px;
    top: 5px;
    right: 5px;
  }
}

@media (max-width: 480px) {
  .overlay img {
    max-width: 100%;
    max-height: 100%;
  }
}
  h5 strong {
    text-align: center;
    display: inline-block;
    width: 100%;
    margin-bottom: 10px;
    font-size: 15px !important;

}
h6 strong {
    font-size: 13px !important;
}


/* css cho pdf */
#pdf-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 5px; /* Giảm margin-top */
    position: relative;
    width: 100%;
    max-width: 1200px;
}

#pdf-viewer {
    width: 100%;
    height: 50vh;
    border: 1px solid #ddd;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0; /* Xóa khoảng trống bên dưới slide */
}

#navigation-container {
    display: flex;
    justify-content: center; /* Đưa các nút vào giữa */
    align-items: center;
    margin-top: 5px; /* Giảm khoảng cách giữa slide và các nút */
    width: 100%;
    padding: 0 10px; /* Giảm padding bên trái và phải */
    position: relative; /* Để các nút nằm giữa slide */
}

#navigation {
    display: flex;
    align-items: center;
    justify-content: center; /* Đảm bảo nút nằm giữa */
}

#navigation button {
    padding: 10px 20px;
    font-size: 16px;
    margin: 0 5px; /* Giảm khoảng cách giữa các nút */
    cursor: pointer;
    background-color: #4e888d;
    border: none;
    color: white;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

#navigation button:hover {
    background-color: #f48840;
}

#page-num {
    font-size: 16px;
    font-weight: bold;
    margin: 0 10px;
    text-align: center;
}

#download-section {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    margin-top: 5px; /* Giảm khoảng cách giữa nút tải về và slide */
}

.blog-content ul,
.blog-content ol {
  padding-left: 1.5rem; /* tạo khoảng cách với lề trái */
  margin-left: 0;        /* tránh bị lệch thêm */

}



/* Media query cho mobile */
@media (max-width: 768px) {
    #pdf-viewer {
        height: 40vh;
    }

    #navigation button {
        padding: 8px 12px;
        font-size: 12px;
    }

    #download-btn {
        padding: 8px 15px;
        font-size: 12px;
    }
    #blog-content {
        width: 100%;
        overflow-x: auto; /* Hiển thị thanh cuộn ngang nếu nội dung vượt quá chiều rộng */
        -webkit-overflow-scrolling: touch; /* Hỗ trợ cuộn mượt trên các thiết bị cảm ứng (iOS) */
    }
}

/* bai viet lien quan */
    .sidebar-item.related {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    margin-bottom: 15px;
}

.sidebar-heading-related {
    margin-bottom: 10px;
    padding-bottom: 10px;
}

.sidebar-heading-related h2 {
    font-size: 14px;
    font-weight: 600;
    color: #cc3700;
    margin: 0;
}

.content-related {
    margin-top: -20px;
}

.content-related ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.content-related ul li {
    padding: 5px 0;
    transition: all 0.3s ease;
}

.content-related ul li:last-child {
    border-bottom: none;
}

.content-related ul li a {
    text-decoration: none;
    display: block;
}

.content-related ul li h5 {
    color: #1b6259;
    font-size: 15px;
    font-weight: 500;
    margin: 0;
    transition: all 0.3s ease;
    line-height: 1.5;
    text-transform: capitalize;

}

.content-related ul li:hover {
    transform: translateX(8px);
    background: #f8f9fa;
    padding-left: 10px;
    border-radius: 6px;
}

.content-related ul li:hover h5 {
    color: #f48840;
}

/* Related posts grid */
.related-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 992px) {
    .related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
    .related-grid { grid-template-columns: 1fr; }
}

.related-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.related-card {
    display: grid;
    grid-template-columns: 80px 1fr;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    padding: 6px 0;
    border-bottom: 1px solid #e9ecef;
}

.related-card:hover {
    background: #f8f9fa;
}

.related-thumb {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    background: #f5f7f8;
}

.related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-info {
    padding: 0;
}

.related-title {
    font-size: 15px;
    color: #1b6259;
    margin: 0 0 6px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 576px) {
    .related-card { grid-template-columns: 64px 1fr; }
    .related-thumb { width: 64px; height: 64px; }
}

.related-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #6c757d;
}

.related-category { color: #0c2c68; }
.related-dot { color: #adb5bd; }
.related-date { color: #6c757d; }

.related-view-all { margin-top: 12px; }

    #blog-content table, #blog-content th, #blog-content td {
    border: 1px solid #000; /* Đường viền bảng */
    padding: 5px;
    text-align: left;
}
/* CSS mạnh hơn để override Ezoic */
#blog-content table {
    width: 100% !important;
    min-width: 600px !important; /* Đảm bảo bảng đủ rộng để cuộn ngang */
    table-layout: auto !important;
    border-collapse: collapse !important; /* Ghi đè thuộc tính CKEditor */
}

#blog-content .table-wrapper {
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    position: relative !important;
}

@media (max-width: 768px) {
    #blog-content .table-wrapper {
        display: block !important; /* Giữ wrapper hiển thị */
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    #blog-content table {
        min-width: 600px !important; /* Đảm bảo bảng rộng hơn màn hình */
        width: auto !important;
        display: table !important;
    }

    /* Ghi đè inline styles của CKEditor */
    #blog-content table[style] {
        width: 100% !important;
        min-width: 600px !important;
    }
}

/* end */

/* rating */
/* Rating Container Styles */
.sidebar-item.rating {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}

.sidebar-item.rating h3 {
    font-size: 1.25rem;
    margin-bottom: 25px;
    color: #333;
    font-weight: 600;
}
.rating-title i { margin-right: 8px; color: #f39c12; }
.rating-subtitle { text-align: center; color: #666; font-size: 0.95rem; margin: -10px 0 12px 0; }

/* Rating Form Styles */
.rating-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin: 0 auto;
    max-width: 600px;
}
.rating-actions { display: flex; justify-content: center; margin-top: 12px; }
.rating-submit-btn { min-width: 180px; }

.rating-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    min-width: 100px;
    transition: transform 0.2s ease;
}

/* Hide default radio input */
.rating-input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

/* Rating Label Styles */
.rating-label {
    font-size: 2rem;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    background: #f5f5f5;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    margin-bottom: 8px;
}

/* Rating Text Styles */
.rating-text {
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    margin-top: 5px;
}

/* Hover & Active States */
.rating-option:hover {
    transform: translateY(-3px);
}

.rating-input:checked + .rating-label {
    background: #e3f2fd;
    box-shadow: 0 0 10px rgba(33, 150, 243, 0.3);
}

/* Thank You Message Styles */
.text-center p {
    font-size: 1.1rem;
    color: #4CAF50;
    margin: 20px 0;
    padding: 15px;
    background: #E8F5E9;
    border-radius: 8px;
}

/* Rating Stats Styles (commented section) */
.rating-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.rating-stats div {
    background: #f5f5f5;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #666;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .sidebar-item.rating {
        padding: 15px;
    }

    .sidebar-item.rating h3 {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }

    .rating-container {
        gap: 10px;
    }

    .rating-option {
        min-width: 80px;
    }

    .rating-label {
        font-size: 1.75rem;
        width: 50px;
        height: 50px;
    }

    .rating-text {
        font-size: 0.8rem;
    }
}

/* comment */
<style>
        .container {
            max-width: 100px;
            margin: 0 auto;
        }

        /* Comment Form Styles */
        .submit-comment {
            background: #ffffff;
            border-radius: 20px;
            box-shadow: 0 20px 60px rgba(78, 136, 141, 0.15);
            overflow: hidden;
            position: relative;
            margin-bottom: 30px;
        }

        .submit-comment::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, #4e888d, #6ba3a8, #4e888d);
        }

        .comment-form-header {
            padding: 10px 10px 5px;
            background: linear-gradient(135deg, #4e888d 0%, #6ba3a8 100%);
            color: white;
            text-align: center;
            position: relative;
        }

        .comment-form-header::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 0;
            height: 0;
            border-left: 20px solid transparent;
            border-right: 20px solid transparent;
            border-top: 20px solid #6ba3a8;
        }

        .comment-form-header h3 {
            font-size: 20px;
            margin-bottom: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }

        .submit-comment .content {
            padding: 40px 30px 30px;
        }

        .submit-comment fieldset {
            border: none;
            margin-bottom: 20px;
        }

        .submit-comment textarea {
            width: 100%;
            min-height: 120px;
            padding: 18px 20px;
            border: 2px solid #e1e8ed;
            border-radius: 15px;
            font-family: inherit;
            font-size: 15px;
            line-height: 1.6;
            resize: vertical;
            transition: all 0.3s ease;
            background: #fafbfc;
            color: #333;
        }

        .submit-comment textarea:focus {
            outline: none;
            border-color: #4e888d;
            background: #ffffff;
            box-shadow: 0 0 0 4px rgba(78, 136, 141, 0.1);
            transform: translateY(-2px);
        }

        .submit-comment textarea::placeholder {
            color: #a0a9b8;
            font-style: italic;
        }

        .main-button, .reply-button, .login-button {
            background: linear-gradient(135deg, #4e888d 0%, #6ba3a8 100%);
            color: white;
            border: none;
            padding: 8px 12px;
            border-radius: 50px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            box-shadow: 0 4px 15px rgba(78, 136, 141, 0.3);
            position: relative;
            overflow: hidden;
        }

        .main-button::before, .reply-button::before, .login-button::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
            transition: left 0.5s;
        }

        .main-button:hover::before, .reply-button:hover::before, .login-button:hover::before {
            left: 100%;
        }

        .main-button:hover, .reply-button:hover, .login-button:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(78, 136, 141, 0.4);
        }

        /* Comment Section Styles */
        .comment-section {
            background: #ffffff;
            border-radius: 20px;
            box-shadow: 0 20px 60px rgba(78, 136, 141, 0.15);
            overflow: hidden;
            position: relative;
        }

        .comment-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, #4e888d, #6ba3a8, #4e888d);
        }



        .comments .content {
            padding: 30px;
        }

        .comment-list {
            list-style: none;
        }

        .comment-item {
            margin-bottom: 30px;
            position: relative;
            width: 100%;
        }

        .comment-main {
            display: flex;
            gap: 15px;
            background: #f8fbfc;
            padding: 20px;
            border-radius: 15px;
            border-left: 4px solid #4e888d;
            transition: all 0.3s ease;
            position: relative;
        }

        .comment-main:hover {
            background: #ffffff;
            box-shadow: 0 8px 25px rgba(78, 136, 141, 0.1);
            transform: translateY(-2px);
        }

        .author-thumb {
            flex-shrink: 0;
        }

        .author-thumb img {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            object-fit: cover;
            border: 3px solid #4e888d;
            transition: transform 0.3s ease;
        }

        .author-thumb img:hover {
            transform: scale(1.1);
        }

        .comment-content {
            flex: 1;
            min-width: 0;
        }

        .comment-header {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 10px;
            flex-wrap: nowrap;
        }

        .username {
            font-weight: 600;
            color: #4e888d;
            font-size: 16px;
            flex: 1 1 auto;
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .comment-date {
            color: #666;
            font-size: 13px;
            background: #e8f4f5;
            padding: 4px 10px;
            border-radius: 20px;
            display: flex;
            align-items: center;
            gap: 5px;
            flex: 0 0 auto;
            white-space: nowrap;
        }

        .comment-text {
            line-height: 1.6;
            color: #555;
            margin-bottom: 15px;
            word-wrap: break-word;
        }

        /* Reply Form Styles */
        .reply-form {
            background: #ffffff;
            border: 1px solid #e1e8ed;
            border-radius: 12px;
            padding: 15px;
            margin-top: 15px;
            transition: all 0.3s ease;

        }

        .reply-form:focus-within {
            border-color: #4e888d;
            box-shadow: 0 0 0 3px rgba(78, 136, 141, 0.1);
        }

        .reply-textarea {
            width: 100%;
            min-height: 80px;
            padding: 12px 15px;
            border: 1px solid #e1e8ed;
            border-radius: 8px;
            font-family: inherit;
            font-size: 14px;
            line-height: 1.5;
            resize: vertical;
            transition: all 0.3s ease;
            background: #fafbfc;
        }

        .reply-textarea:focus {
            outline: none;
            border-color: #4e888d;
            background: #ffffff;
            box-shadow: 0 0 0 2px rgba(78, 136, 141, 0.1);
        }

        .reply-textarea::placeholder {
            color: #a0a9b8;
            font-style: italic;
        }

        .reply-actions {
            margin-top: 10px;
            display: flex;
            justify-content: flex-end;
        }

        .reply-button {
            padding: 8px 20px;
            font-size: 13px;
        }

        /* Reply Item Styles */
        .reply-item {
            margin-left: 40px;
            margin-top: 15px;
            position: relative;
            border-radius: 12px;
            background: #f9fbfc;
            padding: 4px;
        }

        .reply-item .comment-main {
            background: #ffffff;
            border-left: 3px solid #6ba3a8;
            box-shadow: 0 2px 10px rgba(78,136,141,0.06);
        }

        .reply-item .author-thumb img {

            border-width: 2px;
        }

        .reply-item .username {
            font-size: 14px;
        }

        .reply-item .comment-text {
            font-size: 14px;
        }

        .reply-form .editor-meta {
            margin-top: 12px;
        }
        .reply-form .char-counter {
            font-size: 11px;
        }

        /* delete comment */

        .delete-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
    margin-left: auto;
    white-space: nowrap;
    flex-shrink: 0;
}

.delete-btn:hover {
    background: #c82333;
    color: white;
    text-decoration: none;
}

/* Popup Overlay */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Popup Container */
.popup-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 440px;
    overflow: hidden;
    transform: scale(0.8) translateY(20px);
    transition: all 0.3s ease;
}

.popup-overlay.active .popup-container {
    transform: scale(1) translateY(0);
}

/* Popup Header */
.popup-header {
    padding: 24px 24px 0;
    text-align: center;
}

.popup-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.popup-icon svg {
    width: 28px;
    height: 28px;
    color: white;
}

.popup-title {
    font-size: 20px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
}

.popup-message {
    font-size: 16px;
    color: #718096;
    line-height: 1.5;
    margin-bottom: 24px;
}

/* Popup Actions */
.popup-actions {
    padding: 0 24px 24px;
    display: flex;
    gap: 12px;
}

.popup-btn {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    text-align: center;
    display: block;
}

.popup-btn-cancel {
    background: #f7fafc;
    color: #4a5568;
    border: 2px solid #e2e8f0;
}

.popup-btn-cancel:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
    transform: translateY(-1px);
}

.popup-btn-delete {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    border: 2px solid transparent;
}

.popup-btn-delete:hover {
    background: linear-gradient(135deg, #c82333, #bd2130);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

/* Responsive */
@media (max-width: 480px) {
    .popup-container {
        margin: 20px;
        width: calc(100% - 40px);
    }

    .popup-actions {
        flex-direction: column;
    }

    .popup-btn {
        width: 100%;
    }
}

/* Animation cho loading spinner */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* end delete */

        /* Responsive Design */
        @media (max-width: 768px) {
            .container {
                padding: 0 10px;
            }

            .submit-comment .content,
            .comments .content {
                padding: 20px;
            }



            .comment-main {
                flex-direction: column;
                gap: 10px;
            }

            .author-thumb {
                align-self: flex-start;
            }

            .comment-header {
                align-items: center;
                gap: 8px;
                flex-wrap: nowrap;
            }

            .delete-btn {
                padding: 4px 8px;
                font-size: 11px;
            }

            .comment-date {
                font-size: 12px;
            }
        }

            .reply-item {
                margin-left: 20px;
            }

            .reply-item::before {
                left: -10px;
            }
            .blog-posts .submit-comment textarea{
            margin-top: 20px !important;
            }
        }

        /* Loading Animation */
        .loading {
            opacity: 0.7;
            pointer-events: none;
        }

        .loading .main-button,
        .loading .reply-button {
            background: #ccc;
        }

        /* Success Message */
        .success-message {
            background: #d4edda;
            color: #155724;
            border: 1px solid #c3e6cb;
            padding: 12px 15px;
            border-radius: 8px;
            margin-bottom: 20px;
            display: none;
            align-items: center;
            gap: 10px;
        }

        .success-message i {
            color: #28a745;
        }

        /* Modern editor layout */
        .comment-editor {
            display: flex;
            gap: 14px;
            align-items: flex-start;
        }

        .editor-avatar img {
            width: 48px;
            height: 48px;
            border-radius: 50%;
            object-fit: cover;
            border: 2px solid #e1e8ed;
        }

        .editor-field {
            flex: 1;
        }

        .editor-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 10px;
        }

        .char-counter {
            font-size: 12px;
            color: #8a8d91;
        }

        .editor-actions {
            display: flex;
            gap: 8px;
        }

        /* Empty State */
        .empty-comments {
            text-align: center;
            padding: 60px 30px;
            color: #666;
        }

        .empty-comments i {
            font-size: 48px;
            color: #4e888d;
            margin-bottom: 20px;
            opacity: 0.5;
        }
    </style>
	
	/* end comment */






/* Small Mobile Styles */
@media (max-width: 480px) {
    .rating-container {
        gap: 8px;
    }

    .rating-option {
        min-width: 70px;
    }

    .rating-label {
        font-size: 1.5rem;
        width: 45px;
        height: 45px;
    }
}

/* comment */
/* Comment Form Styling */


.author-thumb img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

.right-content {
    flex: 1;
}

.right-content h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.right-content h4 span {
    font-size: 0.85rem;
    color: #666;
    margin-left: 1rem;
    font-weight: normal;
}

.right-content p {
    color: #444;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Reply Section */
.submit-reply textarea {
    font-size: 16px; /* Đảm bảo kích thước tối thiểu */
    padding: 0.75rem;
}


.reply-button {
    font-size: 0.8rem;
    padding: 0.5rem 1.2rem;
}

/* Replied Comments */
.replied {
    margin-left: 2.5rem;
    background: #f8f9fa;
    border-radius: 6px;
    padding: 1rem;
}


/* Responsive Adjustments */
@media (max-width: 768px) {
    .comments li {
        flex-direction: column;
        gap: 1rem;
    }

    .replied {
        margin-left: 1rem;
    }

    .author-thumb img {
        width: 45px;
        height: 45px;
    }
}

/* end comment */
/* ========================== */
/* Global Styles */
/* ========================== */



.underline-text {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5px 10px;
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease !important;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    width: fit-content;
    margin: 0 auto;
}

.underline-text:hover {
    background: linear-gradient(135deg, #e55a5a, #e07b49);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.underline-text h5 {
    margin: 0;
    font-size: 14px;
    text-align: center !important;
}
.view-all-cta {
    display: flex;
    justify-content: center;
    align-items: center;

    width: fit-content;
    margin: 0 auto;
}
/* ========================== */
/* Breadcrumb Navigation */
/* ========================== */
.breadcrumb {
  display: flex;
  align-items: center;
  font-family: Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #007bff;
  margin: 30px 0 15px 0;
  padding: 8px 15px;
  background-color: #ffffff;
  border-radius: 6px;
}

.breadcrumb a {
  display: flex;
  align-items: center;
  color: #0056b3;
  text-decoration: none;
  transition: color 0.3s ease-in-out;
}

.breadcrumb a:hover {
  color: #f48840;
  text-decoration: underline;
}

.breadcrumb i {
  font-size: 15px;
  margin-right: 6px;
  position: relative;
  top: -2px;
}

.breadcrumb a:not(:last-child)::after {
  content: '>';
  margin: 0 5px;
  color: #888;
  font-weight: bold;
}

.breadcrumb .active {
  color: #555;
  font-weight: bold;
}


/* ========================== */
/* Category List */
/* ========================== */

.content {
    margin-top: -20px;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category-item {
    margin: 0;
    padding: 0;
}

.category-item a {
    display: inline-block;
    padding: 5px 15px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.category-item a:hover {
    background-color: #f0f0f0;
    color: #333;
}

/* Responsive for Category List */
@media (max-width: 768px) {
    .category-list {
        gap: 8px;
    }

    .category-item a {
        padding: 4px 12px;
        font-size: 13px;
    }
}

/* ========================== */
/* Sidebar Items */
/* ========================== */

.sidebar-item.feedback {
    text-align: center;
    margin-top: 20px;
}

.feedback-button {
    display: block;
    width: 100%;
    background-color: #3d70ab;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 400;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-transform: none !important;
}

.feedback-button:hover {
    background-color: #fbc02d;
    color: #fff;
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

/* Hide sidebar ads on small screens */
@media (max-width: 768px) {
    .sidebar-item.sidebar-ads {
        display: none;
    }
}

/* ========================== */
/* Blog Posts Section */
/* ========================== */

.blog-posts {
    margin-top: -50px !important;
}

/* ========================== */
/* Animations */
/* ========================== */

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* tiktok */
 .tiktok-content {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 16px;
  padding: 10px 10px;
  max-width: 100%;
  margin: 0 auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  text-align: center;
  font-family: 'Segoe UI', Tahoma, sans-serif;
    margin-bottom: 20px;
}

.tiktok-header h2 {
  font-size: 24px;
  color: #111;
  margin-bottom: 12px;
}

.tiktok-username {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
}

.tiktok-description {
  font-size: 16px;
  color: #666;
  margin-bottom: 20px;
}
  .follow-button {
            display: inline-flex;
            align-items: center;
            background: linear-gradient(135deg, #ff0050 0%, #ff4081 50%, #e91e63 100%);
            color: white;
            text-decoration: none;
            padding: 10px 15px;
            border-radius: 50px;
            font-weight: 600;
            font-size: 1.1rem;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow:
                0 8px 24px rgba(255, 0, 80, 0.3),
                0 4px 12px rgba(255, 0, 80, 0.2);
            position: relative;
            overflow: hidden;
        }

        .follow-button::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
            transition: left 0.5s ease;
        }

        .follow-button:hover {
            transform: translateY(-2px);
            box-shadow:
                0 12px 32px rgba(255, 0, 80, 0.4),
                0 6px 16px rgba(255, 0, 80, 0.3);
        }

        .follow-button:hover::before {
            left: 100%;
        }

        .follow-button:active {
            transform: translateY(0px);
        }

        .follow-button span {
            font-size: 1.2rem;
            animation: bounce 2s infinite;
        }

        @keyframes bounce {
            0%, 20%, 50%, 80%, 100% {
                transform: translateY(0);
            }
            40% {
                transform: translateY(-4px);
            }
            60% {
                transform: translateY(-2px);
            }
        }

@media (max-width: 576px) {
  .tiktok-content {
    padding: 20px 16px;
  }

  .follow-button {
    font-size: 14px;
    padding: 8px 16px;
  }
}
/* end tiktok */

/* catalog */
.service-container {
            max-width: 1200px;
            margin: 20px auto;
        }

        h1 {
            text-align: center;
            color: #2c3e50;
            font-size: 1.4rem;
            font-weight: 700;
            margin-bottom: 30px;
            position: relative;
        }

        h1::after {
            content: '';
            width: 60px;
            height: 4px;
            background: linear-gradient(45deg, #ff6b35, #f7931e);
            position: absolute;
            bottom: -15px;
            left: 50%;
            transform: translateX(-50%);
            border-radius: 2px;
        }

.service-subtitle {
    text-align: center;
    color: #6c757d;
    font-size: 0.95rem;
    margin: 8px 0 12px 0;
}

        .services-grid {
            display: flex;
            overflow-x: auto;
            gap: 20px;
            padding: 0 10px 15px;
            scroll-snap-type: x mandatory;
            scrollbar-width: thin;
            scrollbar-color: #ff6b35 #f1f1f1;
        }

        .services-grid::-webkit-scrollbar {
            height: 8px;
        }

        .services-grid::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 10px;
        }

        .services-grid::-webkit-scrollbar-thumb {
            background: linear-gradient(90deg, #ff6b35, #f7931e);
            border-radius: 10px;
        }

        .service-card {
            flex: 0 0 180px;
            min-width: 180px;
            background: white;
            border: 2px solid #e9ecef;
            border-radius: 15px;
            padding: 30px 20px;
            text-align: center;
            text-decoration: none;
            color: #2c3e50;
            transition: all 0.3s ease;
            position: relative;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            min-height: 160px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            scroll-snap-align: start;
        }

.service-card:focus {
    outline: 3px solid rgba(255, 107, 53, 0.25);
    outline-offset: 4px;
}

.service-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
            border-color: #ff6b35;
            background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
        }

.service-card.active {
            border-color: #ff6b35;
            background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
            color: white;
            transform: translateY(-5px);
            box-shadow: 0 12px 25px rgba(255, 107, 53, 0.3);
        }

.service-card.theme-6 .service-icon { background: linear-gradient(135deg, #2ecc71, #27ae60); }
.service-card.theme-6:hover { border-color: #27ae60; }
.service-card.theme-6.active { background: linear-gradient(135deg, #27ae60, #2ecc71); }
.service-card.theme-8 .service-icon { background: linear-gradient(135deg, #3498db, #2c82c9); }
.service-card.theme-8:hover { border-color: #2c82c9; }
.service-card.theme-8.active { background: linear-gradient(135deg, #2c82c9, #3498db); }
.service-card.theme-9 .service-icon { background: linear-gradient(135deg, #9b59b6, #8e44ad); }
.service-card.theme-9:hover { border-color: #8e44ad; }
.service-card.theme-9.active { background: linear-gradient(135deg, #8e44ad, #9b59b6); }
.service-card.theme-10 .service-icon { background: linear-gradient(135deg, #f39c12, #e67e22); }
.service-card.theme-10:hover { border-color: #e67e22; }
.service-card.theme-10.active { background: linear-gradient(135deg, #e67e22, #f39c12); }
.service-card.theme-11 .service-icon { background: linear-gradient(135deg, #1abc9c, #16a085); }
.service-card.theme-11:hover { border-color: #16a085; }
.service-card.theme-11.active { background: linear-gradient(135deg, #16a085, #1abc9c); }
.service-card.theme-12 .service-icon { background: linear-gradient(135deg, #e74c3c, #c0392b); }
.service-card.theme-12:hover { border-color: #c0392b; }
.service-card.theme-12.active { background: linear-gradient(135deg, #c0392b, #e74c3c); }
.service-card.theme-gioi .service-icon { background: linear-gradient(135deg, #f1c40f, #f39c12); }
.service-card.theme-gioi:hover { border-color: #f39c12; }
.service-card.theme-gioi.active { background: linear-gradient(135deg, #f39c12, #f1c40f); }
.service-card.theme-tacpham .service-icon { background: linear-gradient(135deg, #f39c12, #d35400); }
.service-card.theme-tacpham:hover { border-color: #d35400; }
.service-card.theme-tacpham.active { background: linear-gradient(135deg, #d35400, #f39c12); }
.service-card.theme-dethi .service-icon { background: linear-gradient(135deg, #34495e, #2c3e50); }
.service-card.theme-dethi:hover { border-color: #2c3e50; }
.service-card.theme-dethi.active { background: linear-gradient(135deg, #2c3e50, #34495e); }
.service-card.theme-kynang .service-icon { background: linear-gradient(135deg, #f4d03f, #f5b041); }
.service-card.theme-kynang:hover { border-color: #f5b041; }
.service-card.theme-kynang.active { background: linear-gradient(135deg, #f5b041, #f4d03f); }
.service-card.theme-mau .service-icon { background: linear-gradient(135deg, #e91e63, #c2185b); }
.service-card.theme-mau:hover { border-color: #c2185b; }
.service-card.theme-mau.active { background: linear-gradient(135deg, #c2185b, #e91e63); }
.service-card.theme-sach .service-icon { background: linear-gradient(135deg, #3f51b5, #303f9f); }
.service-card.theme-sach:hover { border-color: #303f9f; }
.service-card.theme-sach.active { background: linear-gradient(135deg, #303f9f, #3f51b5); }
.service-card.theme-quiz .service-icon { background: linear-gradient(135deg, #6c5ce7, #5b4bc4); }
.service-card.theme-quiz:hover { border-color: #5b4bc4; }
.service-card.theme-quiz.active { background: linear-gradient(135deg, #5b4bc4, #6c5ce7); }
.service-card.theme-qanda .service-icon { background: linear-gradient(135deg, #00bcd4, #0097a7); }
.service-card.theme-qanda:hover { border-color: #0097a7; }
.service-card.theme-qanda.active { background: linear-gradient(135deg, #0097a7, #00bcd4); }

.service-chevron {
    position: absolute;
    right: 12px;
    top: 12px;
    color: #adb5bd;
    transition: transform 0.2s ease, color 0.2s ease;
}
.service-card:hover .service-chevron { transform: translateX(3px); color: #ff6b35; }
.service-card.active .service-chevron { color: #fff; }

        .service-icon {
            width: 60px;
            height: 60px;
            margin: 0 auto 15px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: linear-gradient(135deg, #ff6b35, #f7931e);
            border-radius: 50%;
            color: white;
            font-size: 24px;
            transition: all 0.3s ease;
        }

        .service-card:hover .service-icon {
            transform: scale(1.1);
            background: linear-gradient(135deg, #f7931e, #ff6b35);
        }

        .service-card.active .service-icon {
            background: rgba(255, 255, 255, 0.2);
            backdrop-filter: blur(10px);
        }

        .service-title {
            font-weight: 600;
            font-size: 1rem;
            line-height: 1.3;
        }

        /* Mobile Responsive */
        @media (max-width: 768px) {

            h1 {
                font-size: 1.3rem;
                margin-bottom: 40px;
            }

            .services-grid {
                gap: 15px;
                padding: 0 5px 15px;
            }

            .service-card {
                flex: 0 0 150px;
                min-width: 150px;
                padding: 20px 15px;
                min-height: 140px;
            }

            .service-icon {
                width: 50px;
                height: 50px;
                font-size: 20px;
                margin-bottom: 12px;
            }

            .service-title {
                font-size: 0.9rem;
            }
        }

        @media (max-width: 480px) {


            .service-card {
                flex: 0 0 130px;
                min-width: 130px;
                padding: 18px 12px;
                min-height: 130px;
            }

            .service-icon {
                width: 45px;
                height: 45px;
                font-size: 18px;
                margin-bottom: 10px;
            }

            .service-title {
                font-size: 0.85rem;
            }
        }

        /* Animation */
        .service-card {
            animation: fadeInUp 0.6s ease-out forwards;
            opacity: 0;
            transform: translateY(30px);
        }

        .service-card:nth-child(1) { animation-delay: 0.1s; }
        .service-card:nth-child(2) { animation-delay: 0.2s; }
        .service-card:nth-child(3) { animation-delay: 0.3s; }
        .service-card:nth-child(4) { animation-delay: 0.4s; }
        .service-card:nth-child(5) { animation-delay: 0.5s; }
        .service-card:nth-child(6) { animation-delay: 0.6s; }
        .service-card:nth-child(7) { animation-delay: 0.7s; }
        .service-card:nth-child(8) { animation-delay: 0.8s; }
        .service-card:nth-child(9) { animation-delay: 0.9s; }
        .service-card:nth-child(10) { animation-delay: 1.0s; }
        .service-card:nth-child(11) { animation-delay: 1.1s; }
        .service-card:nth-child(12) { animation-delay: 1.2s; }

        @keyframes fadeInUp {
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

   /*  social */
.post-container {
            max-width: 800px;
            margin: 0 auto;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            border-radius: 20px;
            padding: 30px;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
        }

        .post-options {
            background: white;
            border: 1px solid #e4e6ea;
            border-radius: 8px;
            margin-top: 20px;
        }

        /* Tags section - horizontal layout */
        .tags-section {
            padding: 12px 16px;
            border-bottom: 1px solid #e4e6ea;
        }

        .post-tags {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 8px;
            list-style: none;
            margin: 0;
            padding: 0;
        }

        .tags-icon {
            color: #65676b;
            font-size: 14px;
            margin-right: 4px;
        }

        .tag-item {
            background: #e7f3ff;
            color: #0c2c68;
            padding: 4px 8px;
            border-radius: 12px;
            text-decoration: none;
            font-size: 13px;
            font-weight: 500;
            transition: background-color 0.2s;
        }

        .tag-item:hover {
            background: #cce7ff;
            color: #1877f2;
            text-decoration: none;
        }

        .no-tags {
            color: #8a8d91;
            font-size: 13px;
        }

        /* Social actions section - Facebook style */
        .social-section {
            padding: 0;
        }

        .engagement-stats {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 8px 16px;
            color: #65676b;
            font-size: 14px;
            border-bottom: 1px solid #e4e6ea;
        }

        .like-counter {
            display: flex;
            align-items: center;
            gap: 4px;
            color: #65676b;
            font-size: 16px;
        }

        .like-counter::before {
            content: '👍';
            font-size: 15px;
            background: #1877f2;
            border-radius: 50%;
            width: 20px;
            height: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
        }


        .post-share {
            display: flex;
            list-style: none;
            margin: 0;
            padding: 0;

        }

        .post-share li {
            flex: 1;
        }

        .action-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            width: 100%;
            padding: 10px 8px;
            background: transparent;
            border: none;
            font-weight: 500;
            text-decoration: none;
            cursor: pointer;
            transition: background-color 0.2s;
            border-radius: 4px;
            margin: 0 2px;
        }

        .action-btn span {
        font-size: 16px !important;
        color: #65676b !important;
        text-transform: none !important;
        font-weight: 500 !important;
        padding-top: 3px !important; /* hoặc thử 4px, 6px tùy mắt nhìn */
}

        .action-btn:hover {
            background: #f2f3f4;
            color: #65676b;
            text-decoration: none;
        }

        .like-btn.liked {
            color: #1877f2;
        }

        .like-btn.liked .heart-icon {
            color: #1877f2;
        }
        .like-btn.liked span {
        color: #1877f2 !important;

        }

        .comment-btn.commented,
        .comment-btn.commented span,
        .comment-btn.commented i {
         color: #1877f2 !important; /* xanh Facebook */
        }

        .comment-btn:hover {
            background: #f2f3f4;
        }

        .facebook-btn {
            color: #1877f2;
        }

        .facebook-btn:hover {
            background: #e7f3ff;
            color: #1877f2;
        }

        .share-btn:hover {
            background: #f2f3f4;
        }

        .heart-icon {
            font-size: 16px;
            transition: all 0.2s ease;
        }

        .login-required {
            color: #65676b;
        }

        .login-required:hover {
            background: #f2f3f4;
            color: #65676b;
        }

        @media (max-width: 768px) {
            .post-container {
                margin: 10px;
                padding: 20px;
            }

            .options-row {
                flex-direction: column;
                gap: 20px;
            }

            .tags-section,
            .social-section {
                width: 100%;
                min-width: auto;
            }

            .post-share {
                justify-content: center;
            }

            .post-tags {
                justify-content: left;
            }
        }

        @media (max-width: 480px) {
            .post-share {
                flex-direction: flex;
                align-items: stretch;

            }

            .action-btn {
                justify-content: center;
            }
        }

        /* Animation for like button */
        @keyframes heartPulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.3); }
            100% { transform: scale(1); }
        }

        .heart-animation {
            animation: heartPulse 0.6s ease-in-out;
        }

        /* Loading state */
        .loading {
            opacity: 0.6;
            pointer-events: none;
        }

        .loading::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 20px;
            height: 20px;
            margin: -10px 0 0 -10px;
            border: 2px solid #ffffff;
            border-top: 2px solid transparent;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

   /* end social */
