/*
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.1
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.
*/
.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;
}

.entry-content h3 {
    position: relative;
    background: #03A9F4;
    border-bottom: 5px solid #F44336;
}
.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; /* Kích thước tiêu đề widget */
    letter-spacing: 0.5px;
    padding-bottom: 0.75rem;
    margin-bottom: 1.25rem !important;
    position: relative;
    display: inline-block; /* Để gạch chân chỉ theo độ rộng chữ */
}

.footer-widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%; /* Gạch chân toàn bộ chiều rộng tiêu đề */
    max-width: 50px; /* Giới hạn chiều dài gạch chân */
    height: 3px;
    background-color: #00aeff; /* Màu nhấn (ví dụ: xanh dương sáng) */
}

/* CSS nav gạch dưới */
.navbar-nav .nav-link {
    position: relative;
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease-in-out;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: #007bff;
    left: 50%;
    bottom: -5px;
    transform: translateX(-50%);
    transition: width 0.3s ease-in-out, left 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 100%;
    left: 0;
    transform: translateX(0);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #007bff;
}

#mainHeroSlider .carousel-item {
    height: 90vh; /* Chiều cao slider chiếm 90% chiều cao màn hình */
    min-height: 450px; /* Chiều cao tối thiểu */
    position: relative;
}

#mainHeroSlider .carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Lớp phủ tối nhẹ để làm nổi bật chữ */
    background: linear-gradient(to top, rgba(0,0,0,0.6), rgba(0,0,0,0.1));
}

#mainHeroSlider .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: fill
}

#mainHeroSlider .carousel-caption {
    /* Định vị chú thích ở giữa và hơi thấp xuống */
    bottom: 50%;
    left: 10%;
    right: 10%;
    transform: translateY(50%);
    text-align: left;
}
/* Class của Bootstrap để ẩn phần tử nhưng vẫn giữ nó cho trình đọc màn hình và tham chiếu */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.final-hero-section {
    position: relative;
    background-color: #fd7e14; /* Màu nền cam là lớp dưới cùng */
}

.hero-stats-layer {
    position: relative;
    z-index: 3;
    background-color: #212529; /* Màu nền tối chính */
    padding-bottom: 150px;
    clip-path: url(#final-wave-clip-path);
}

.hero-content-container {
    position: relative;
    z-index: 5;
}

.hero-stats-layer .stats-label {
    opacity: 0.7;
}

.hero-stats-layer::before {
content: '';
position: absolute;
z-index: 2;
top: 0;
left: 0;
width: 100%;
height: 86%;
background-color: #272727;
clip-path: url(#final-wave-clip-path);
transform: translateY(5px);
}
.hero-stats-layer::after {
    content: '';
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #303030;
    clip-path: url(#final-wave-clip-path);
    transform: translateY(10px);
}

.hero-title-layer {
    padding: 5rem 0;
}

.setup-card {
    border-radius: 1rem;
    border-top: 5px solid var(--bs-primary); /* Màu viền mặc định */
}

/* Đổi màu viền cho thẻ thứ hai */
.col-lg-6:nth-child(2) .setup-card {
    border-top-color: var(--bs-success);
}

.service-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.title-divider {
    width: 60px;
    height: 3px;
    background-color: var(--divider-color, var(--bs-primary));
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 2px;
}

.service-list li {
    margin-bottom: 0.75rem;
    color: #495057;
}

.quote-box {
    background-color: #f8f9fa;
    border-left: 4px solid #dee2e6;
}

/* Tạo màu nền nhẹ cho icon */
.bg-primary-soft { background-color: rgba(13, 110, 253, 0.1); }
.bg-success-soft { background-color: rgba(25, 135, 84, 0.1); }

/* Hiệu ứng hover đã có trong file custom-hovers.css của bạn */
.hover-lift-shadow {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-lift-shadow:hover {
    transform: translateY(-8px);
    box-shadow: 0 1rem 2rem rgba(0,0,0,.1)!important;
}

.course-card {
    border-radius: 1rem; /* Bo góc mềm mại hơn */
    overflow: hidden; /* Quan trọng để bo góc ảnh */
}

.course-image-wrapper {
    height: 280px; /* Đặt chiều cao cố định cho tất cả các ảnh */
    overflow: hidden;
}

.course-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Đảm bảo ảnh luôn vừa vặn và không bị méo */
    transition: transform 0.4s ease;
}

.course-card:hover .course-image-wrapper img {
    transform: scale(1.1); /* Hiệu ứng zoom khi hover */
}

.course-card .card-body {
    padding: 1.5rem;
    background-color: #fff;
}

.course-card .card-title {
    color: #fd7e14; /* Màu cam cho tiêu đề */
    font-size: 1.25rem;
}

/* Hiệu ứng hover đã có trong file custom-hovers.css của bạn */
.hover-lift-shadow {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-lift-shadow:hover {
    transform: translateY(-8px);
    box-shadow: 0 1rem 2rem rgba(0,0,0,.1)!important;
}

.testimonial-section {
    /* Nền Gradient như trong mẫu */
    background: linear-gradient(135deg, #8BC6EC 0%, #9599E2 100%);
    color: #fff;
}

.testimonial-card {
    background-color: rgba(255, 255, 255, 0.1); /* Nền mờ cho thẻ card */
    backdrop-filter: blur(10px); /* Hiệu ứng kính mờ */
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 800px; /* Giới hạn chiều rộng của card */
    margin: 0 auto;
    overflow: hidden; /* Quan trọng để bo góc ảnh */
}

.testimonial-img {
    width: 100%;
    height: 350px; /* Chiều cao cố định cho ảnh */
    object-fit: cover;
}

.testimonial-card .card-body {
    padding: 2rem;
}

.testimonial-card .card-text {
    font-size: 1.1rem;
    font-style: italic;
    line-height: 1.7;
}

/* Tùy chỉnh nút điều khiển slider */
.testimonial-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    transition: background-color 0.3s ease;
}

.testimonial-control:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

.carousel-control-prev.testimonial-control {
    left: -25px;
}
.carousel-control-next.testimonial-control {
    right: -25px;
}

/* Ẩn nút điều khiển trên màn hình nhỏ để không bị vướng */
@media (max-width: 992px) {
    .testimonial-control {
        display: none;
    }
}

/* CSS cho khối tin tức */
.news-card-large, .news-card-small {
    border-radius: 0.75rem;
    overflow: hidden;
}

.news-image-wrapper-large, .news-image-wrapper-small {
    overflow: hidden;
}

.news-image-wrapper-large img, .news-image-wrapper-small img {
    transition: transform 0.4s ease;
}

.news-card-large:hover .news-image-wrapper-large img,
.news-card-small:hover .news-image-wrapper-small img {
    transform: scale(1.08);
}

.news-image-wrapper-small, .news-image-wrapper-small img {
    height: 100%;
    object-fit: cover;
}

.news-card-small .card-title {
    /* Giới hạn tiêu đề trong 2 dòng */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;  
    overflow: hidden;
}

/* Hiệu ứng hover đã có trong file custom-hovers.css của bạn */
.hover-lift-shadow {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-lift-shadow:hover {
    transform: translateY(-8px);
    box-shadow: 0 1rem 2rem rgba(0,0,0,.1)!important;
}

#consultation-form-section {
    /* Màu nền dưới cùng, sẽ lộ ra khi có khoảng trống */
    background-color: #212529; 
}

.form-wrapper {
    position: relative;
    padding: 4rem 0;
    background-image: 
        /* Lớp phủ màu cam */
        linear-gradient(rgba(229, 92, 0, 0.85), rgba(229, 92, 0, 0.85)),
        /* Ảnh nền */
        url('https://daynghenewlife.com/wp-content/uploads/2023/10/bg_register_advisory.jpg.webp');
    background-size: cover;
    background-position: center;
}

/* Tùy chỉnh form */
.consultation-form .form-control,
.consultation-form .form-select {
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
}
.consultation-form .form-control:focus,
.consultation-form .form-select:focus {
    background-color: #fff;
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25);
}
.consultation-form .form-floating > label {
    color: #6c757d;
}

.consultation-form .btn-submit {
    background-color: #fff;
    color: #e55c00;
    font-weight: bold;
    transition: all 0.3s ease;
}
.consultation-form .btn-submit:hover {
    background-color: #212529;
    color: #fff;
    transform: scale(1.05);
}

/* Tùy chỉnh dải phân cách SVG */
.form-divider {
    line-height: 0;
    background-color: #fff; /* Màu nền của section liền kề */
}
.form-divider-top {
    transform: rotate(180deg);
}
.form-divider svg {
    position: relative;
    display: block;
    width: 100%;
    height: 80px;
}
.form-divider .shape-fill {
    fill: #e55c00; /* Màu cam của khối form */
}
.registration-form-wrapper {
    /* Nền Gradient như trong mẫu */
    background: linear-gradient(135deg, #a0d2eb 0%, #e5eaf5 50%, #d9a7c7 100%);
    padding: 2.5rem;
    border-radius: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
.course-registration-form .form-label {
    font-weight: 600;
    color: #343a40;
    margin-bottom: 0.5rem;
}
.course-registration-form .form-control,
.course-registration-form .form-select {
    padding: 0.9rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid #ced4da;
    background-color: rgba(255, 255, 255, 0.8);
    transition: all 0.2s ease-in-out;
}
.course-registration-form .form-control:focus,
.course-registration-form .form-select:focus {
    background-color: #fff;
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}
.course-registration-form .phone-code-select {
    flex: 0 0 150px; /* Cố định chiều rộng của ô mã vùng */
}
.course-registration-form .btn-register {
    background-color: #d9534f;
    color: #fff;
    border: none;
    padding: 0.75rem 2.5rem;
    font-weight: bold;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-bottom: 3px solid #b52b27;
    transition: all 0.2s ease;
}
.course-registration-form .btn-register:hover {
    background-color: #c9302c;
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}
.course-registration-form .btn-register:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
#about-hero { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
#classImageSlider .carousel-item { height: 60vh; min-height: 400px; background-color: #777; }
#classImageSlider .carousel-item img { height: 100%; object-fit: cover; }
.registration-form-wrapper { background: #fff; padding: 2.5rem; border-radius: 1rem; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }