/*
Theme Name: Sắc Màu Bootstrap Theme
Theme URI: https://dulichsacmaubinhduong.com
Author: Tống Nhật Trường
Author URI: https://dulichsacmaubinhduong.com
Description: Một theme WordPress tùy chỉnh được xây dựng với Bootstrap 5.
Version: 1.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: bootstrap, responsive-layout, two-columns, right-sidebar, custom-menu, featured-images, translation-ready
Text Domain: mybootstraptheme

Đây là nơi bạn sẽ thêm các CSS tùy chỉnh của mình sau này.
*/
.navbar-nav .dropdown-menu {
    position: absolute!important;
    display: block;
    top: 100%;
    left: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease-in-out;
}

.navbar-nav .nav-item.dropdown:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.image-grid-item {
    position: relative;
    display: block;
    overflow: hidden;
}
.img-zoom-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.image-grid-item:hover .img-zoom-overlay {
    opacity: 1;
}
/* Bo góc cho overlay khớp với ảnh */
.image-grid-item img.rounded-start + .img-zoom-overlay { border-top-left-radius: var(--bs-border-radius); border-bottom-left-radius: var(--bs-border-radius); }
.image-grid-item img.rounded-top-right + .img-zoom-overlay { border-top-right-radius: var(--bs-border-radius); }
.image-grid-item img.rounded-bottom-right + .img-zoom-overlay { border-bottom-right-radius: var(--bs-border-radius); }
.breadcrumb {gap:0.6rem; margin:0}
.breadcrumb-item a {color: #727171 !important}
.breadcrumb-item.active {color: #2196F3 !important;font-weight: 500}
.contact-card {
  background: linear-gradient(135deg, #00c6ff, #0072ff);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: 0.4s ease;
  position: relative;
}

.title.style {
  background-image: linear-gradient(to right, #2196f300, rgb(33 150 243 / 26%));
  background-size: 200% 100%;
  animation: titleFlash 3s linear infinite;
}

@keyframes titleFlash {
  0% { background-position: 0% 50%; }
  100% { background-position: -100% 50%; }
}
.contact-card {
  background: linear-gradient(135deg, #00c6ff, #0072ff);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: 0.4s ease;
  position: relative;
}

.entry-content h3 {
    position: relative;
    padding: 18px 25px;
    margin-bottom: 10px;
    color: #212529;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.03);
    line-height: 1.3;
    overflow: hidden;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}
.entry-content h3::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 12px;
    height: 100%;
    background: linear-gradient(180deg, #007bff 0%, #00c6ff 100%);
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

.entry-content h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, rgba(0,123,255,0.7) 0%, rgba(0,198,255,0) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease-out;
}

.entry-content h3:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.entry-content h3:hover::after {
    transform: scaleX(1);
}
.contact-card::before{
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.6) 50%, rgba(255,255,255,0.2) 100%);
  transform: skewX(-25deg);
  transition: 0.75s;
}

.contact-card:hover::before{
  left: 130%;
}

.contact-card img {
  border-radius: 50%;
  background: white;
  padding: 8px;
}
.footer-widget-title {
    color: #ffffff;
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    padding-bottom: 0.75rem;
    margin-bottom: 1.25rem !important;
    position: relative;
    display: inline-block;
}

.footer-widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: 50px;
    height: 3px;
    background-color: #00aeff;
}

.footer-main-area {
    min-height: 410px;
    background-color: #212529;
    color: #ffffff;
    position: relative;
    padding-top: 75px; /* Thêm padding để nội dung không bị che */
}


/*Mục lục*/

#toc-box {
    background-color: #d9eafc;
    border: 1px solid #1b71c7;
    border-radius: 5px;
}

#toc-box span {
    font-weight: bold; /* Make the heading bold */
    font-size: 1.1em; /* Slightly larger font size */
    color: #343a40; /* Darker text color */
    display: block; /* Make it a block to take full width */
    margin-bottom: 10px; /* Space below the heading */
}

#toc-list {
    list-style: none; /* Remove bullet points */
    padding: 0; /* Remove default padding */
    margin: 0; /* Remove default margin */
}

#toc-list li {
    margin-bottom: 8px; /* Space between list items */
}

#toc-list li:last-child {
    margin-bottom: 0; /* No bottom margin for the last item */
}
/*Sidebar*/
/* ==========================================================================
   Sidebar Widget Styling
   ========================================================================== */

/* Style chung cho các widget trong sidebar */
.widget-area .widget {
    /* Các class bg-light, rounded-3, shadow-sm từ Bootstrap đã xử lý nền và bóng đổ */
    transition: all 0.3s ease-in-out;
}

/* Tiêu đề widget */
.widget-area .widget-title {
    color: #343a40; /* Màu chữ đậm hơn cho tiêu đề */
    position: relative;
    padding-bottom: 0.75rem; /* Tăng padding dưới cho đường kẻ */
}

/* Tạo đường gạch chân trang trí cho tiêu đề */
.widget-area .widget-title::after {
    content: '';
    position: absolute;
    bottom: -1px; /* Nằm ngay trên đường border-bottom */
    left: 0;
    width: 50px; /* Độ dài của đường gạch */
    height: 3px;
    background-color: var(--bs-primary); /* Dùng màu primary của Bootstrap */
}

/* Danh sách trong widget (bài viết mới, chuyên mục) */
.widget-area .widget ul {
    margin-bottom: 0;
}

/* Item trong danh sách bài viết mới */
.widget_recent_entries ul li {
    border-bottom: 1px dashed #dee2e6; /* Đường phân cách nét đứt */
}
.widget_recent_entries ul li:last-child {
    border-bottom: none; /* Bỏ đường kẻ ở item cuối */
    padding-bottom: 0;
}
.widget_recent_entries ul li a:hover .widget-post-title {
    color: var(--bs-primary); /* Đổi màu tiêu đề khi hover */
}
.widget_recent_entries .widget-post-title {
    font-weight: 500;
    transition: color 0.2s ease;
}

/* Danh sách chuyên mục */
.widget_categories .category-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px dashed #dee2e6;
}
.widget_categories .category-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.widget_categories .category-list li a {
    text-decoration: none;
    color: #495057;
    font-weight: 500;
}
.widget_categories .category-list li a:hover {
    color: var(--bs-primary);
}
/* Số lượng bài viết trong chuyên mục */
.widget_categories .category-list li .count {
    background-color: #e9ecef;
    color: #6c757d;
    font-size: 0.75rem;
    padding: 0.15rem 0.5rem;
    border-radius: 10rem;
}

/* Form tìm kiếm trong widget */
.widget_search .search-form {
    display: flex;
}
.widget_search .search-form .search-submit {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}
.widget_search .search-form .search-field {
     border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: 0;
}
.widget_search .search-form .search-field:focus {
    z-index: 2; /* Đảm bảo viền focus không bị nút che mất */
}
/*End sidebar*/
