/********** Template CSS **********/
:root {
    --primary: #2124B1;
    --secondary: #4777F5;
    --light: #F7FAFF;
    --dark: #1D1D27;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}


/*** Heading ***/
h1,
h2,
h3,
.fw-bold {
    font-weight: 700 !important;
}

h4,
h5,
h6,
.fw-medium {
    font-weight: 500 !important;
}

.card-box {
  word-wrap: break-word; /* Đảm bảo chữ tự xuống dòng */
  overflow-wrap: break-word; /* Hỗ trợ cho trình duyệt hiện đại */
  max-width: 100%; /* Đảm bảo chiều rộng không vượt quá card-body */
}

textarea.summernote {
  width: 100%; /* Đảm bảo textarea chiếm toàn bộ chiều rộng card */
  min-height: 200px; /* Đặt chiều cao tối thiểu */
  resize: vertical; /* Cho phép người dùng thay đổi chiều cao */
}

@media (max-width: 768px) {
  .card-box h4 {
    font-size: 1.2rem; /* Giảm kích thước tiêu đề trên màn hình nhỏ */
  }
  textarea.summernote {
    font-size: 0.9rem; /* Kích thước chữ nhỏ hơn trên mobile */
  }
}


/*** Button ***/
.btn {
    font-weight: 500;
    transition: .5s;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: 50px;
}


/*** Navbar ***/
.navbar-light .navbar-nav .nav-link {
    position: relative;
    margin-left: 25px;
    padding: 35px 0;
    color: var(--light) !important;
    outline: none;
    transition: .5s;
}

.sticky-top.navbar-light .navbar-nav .nav-link {
    padding: 20px 0;
    color: var(--dark) !important;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--secondary) !important;
}

.navbar-light .navbar-brand h1 {
    color: #FFFFFF;
}

.navbar-light .navbar-brand img {
    max-height: 60px;
    transition: .5s;
}

.sticky-top.navbar-light .navbar-brand img {
    max-height: 45px;
}

@media (max-width: 991.98px) {
    .sticky-top.navbar-light {
        position: relative;
        background: #FFFFFF;
    }

    .navbar-light .navbar-collapse {
        margin-top: 15px;
        border-top: 1px solid #DDDDDD;
    }

    .navbar-light .navbar-nav .nav-link,
    .sticky-top.navbar-light .navbar-nav .nav-link {
        padding: 10px 0;
        margin-left: 0;
        color: var(--dark) !important;
    }

    .navbar-light .navbar-brand h1 {
        color: var(--primary);
    }

    .navbar-light .navbar-brand img {
        max-height: 45px;
    }
}

@media (min-width: 992px) {
    .navbar-light {
        position: absolute;
        width: 100%;
        top: 0;
        left: 0;
        border-bottom: 1px solid rgba(256, 256, 256, .1);
        z-index: 999;
    }
    
    .sticky-top.navbar-light {
        position: fixed;
        background: #FFFFFF;
    }

    .navbar-light .navbar-nav .nav-link::before {
        position: absolute;
        content: "";
        width: 0;
        height: 2px;
        bottom: -1px;
        left: 50%;
        background: var(--secondary);
        transition: .5s;
    }

    .navbar-light .navbar-nav .nav-link:hover::before,
    .navbar-light .navbar-nav .nav-link.active::before {
        width: 100%;
        left: 0;
    }

    .navbar-light .navbar-nav .nav-link.nav-contact::before {
        display: none;
    }

    .sticky-top.navbar-light .navbar-brand h1 {
        color: var(--primary);
    }
}


/*** Hero Header ***/
.hero-header {
    background:
        url(../img/bg-dot.png),
        url(../img/bg-dot.png),
        url(../img/bg-round.png),
        url(../img/bg-tree.png),
        url(../img/bg-bottom-hero.png);
    background-position:
        10px 10px,
        bottom 190px right 10px,
        left 55% top -1px,
        left 45% bottom -1px,
        center bottom -165px;
    background-repeat: no-repeat;
    background-size:
    auto, /* Kích thước hình nền đầu tiên */
    auto, /* Kích thước hình nền thứ hai */
    auto, /* Kích thước hình nền thứ ba */
    auto, /* Kích thước hình nền thứ tư */
    180% auto; /* Phóng to hình nền cuối cùng theo chiều ngang */
}


/*** Section Title ***/
.section-title::before {
    position: absolute;
    content: "";
    width: 45px;
    height: 4px;
    bottom: 0;
    left: 0;
    background: var(--dark);
}

.section-title::after {
    position: absolute;
    content: "";
    width: 4px;
    height: 4px;
    bottom: 0;
    left: 50px;
    background: var(--dark);
}

.section-title.text-center::before {
    left: 50%;
    margin-left: -25px;
}

.section-title.text-center::after {
    left: 50%;
    margin-left: 25px;
}

.section-title h6::before,
.section-title h6::after {
    position: absolute;
    content: "";
    width: 10px;
    height: 10px;
    top: 2px;
    left: 0;
    background: rgba(33, 66, 177, .5);
}

.section-title h6::after {
    top: 5px;
    left: 3px;
}


/*** Service ***/
.service-item {
    position: relative;
    height: 350px;
    padding: 30px 25px;
    background: #FFFFFF;
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
    transition: .5s;
}

.service-item:hover {
    background: var(--primary);
}
/* Bố cục flexbox cho container */
.logo-container {
    display: flex;
    align-items: center; /* Căn giữa theo trục dọc */
    gap: 10px; /* Khoảng cách giữa các phần tử */
}

/* Tùy chỉnh thêm nếu cần */
.logo-container h1 {
    margin: 0; /* Loại bỏ margin mặc định */
    font-size: 24px;
}

.logo-container img {
    width: 50px; /* Kích thước logo */
    height: auto;
}

.service-item .service-icon {
    margin: 0 auto 20px auto;
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    background: url(../img/icon-shape-primary.png) center center no-repeat;
    transition: .5s;
}

.service-item:hover .service-icon {
    color: var(--primary);
    background: url(../img/icon-shape-white.png);
}

.service-item h5,
.service-item p {
    transition: .5s;
}

.service-item:hover h5,
.service-item:hover p {
    color: var(--light);
}

.service-item a.btn {
    position: relative;
    display: flex;
    color: var(--primary);
    transition: .5s;
    z-index: 1;
}

.service-item:hover a.btn {
    color: var(--primary);
}

.service-item a.btn::before {
    position: absolute;
    content: "";
    width: 35px;
    height: 35px;
    top: 0;
    left: 0;
    border-radius: 35px;
    background: #DDDDDD;
    transition: .5s;
    z-index: -1;
}

.service-item:hover a.btn::before {
    width: 100%;
    background: var(--light);
}


/*** Testimonial ***/
.newsletter,
.testimonial {
    background:
        url(../img/bg-top.png),
        url(../img/bg-bottom.png);
    background-position:
        left top,
        right bottom;
    background-repeat: no-repeat;
}

.testimonial-carousel .owl-item .testimonial-item,
.testimonial-carousel .owl-item.center .testimonial-item * {
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-item {
    background: var(--light) !important;
    border-color: var(--light);
}

.testimonial-carousel .owl-item.center .testimonial-item * {
    color: #888888;
}

.testimonial-carousel .owl-item.center .testimonial-item i {
    color: var(--primary) !important;
}

.testimonial-carousel .owl-item.center .testimonial-item h6 {
    color: var(--dark) !important;
}


/*** Team ***/
.team-item {
    position: relative;
    transition: .5s;
    z-index: 1;
}

.team-item::after {
    position: absolute;
    content: "";
    top: 3rem;
    right: 3rem;
    bottom: 0;
    left: 0;
    border-radius: 10px;
    background: #FFFFFF;
    box-shadow: 0 0 45px rgba(0, 0, 0, .1);
    transition: .5s;
    z-index: -1;
}

.team-item:hover::after {
    background: var(--primary);
}

.team-item h5,
.team-item small {
    transition: .5s;
}

.team-item:hover h5,
.team-item:hover small {
    color: var(--light);
}


/*** Project Portfolio ***/
#portfolio-flters .btn {
    position: relative;
    display: inline-block;
    margin: 10px 4px 0 4px;
    transition: .5s;
}

#portfolio-flters .btn::after {
    position: absolute;
    content: "";
    right: -1px;
    bottom: -1px;
    border-left: 20px solid transparent;
    border-right: 0 solid transparent;
    border-bottom: 50px solid #FFFFFF;
}

#portfolio-flters .btn:hover,
#portfolio-flters .btn.active {
    color: var(--light);
    background: var(--primary);
}

.portfolio-overlay {
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 30px;
    top: 0;
    left: 0;
    background: var(--primary);
    transition: .5s;
    z-index: 1;
    opacity: 0;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item .btn {
    position: absolute;
    width: 90px;
    height: 90px;
    top: 0px;
    right: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url(../img/icon-shape-white.png) center center no-repeat;
    border: none;
    transition: .5s;
    opacity: 0;
    z-index: 2;
}

.portfolio-item:hover .btn {
    opacity: 1;
    transition-delay: .15s;
}


/*** Footer ***/
.footer {
    background: url(../img/footer.png) center center no-repeat;
    background-size: contain;
}

.footer .btn.btn-social {
    margin-right: 5px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    border: 1px solid rgba(256, 256, 256, .1);
    border-radius: 40px;
    transition: .3s;
}

.footer .btn.btn-social:hover {
    color: var(--primary);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 10px;
    padding: 0;
    text-align: left;
    color: var(--light);
    font-weight: normal;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .copyright {
    padding: 25px 0;
    font-size: 14px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--light);
}

.footer .footer-menu a {
    margin-right: 15px;
    padding-right: 15px;
    border-right: 1px solid rgba(255, 255, 255, .1);
}

.footer .footer-menu a:last-child {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
}












.new_footer_top {
    transform: translateY(-102px); /* Giá trị âm để nhích lên */
}





.new_footer_top .footer_bg {
    position: absolute;
    bottom: 0;
    background: url("https://blogger.googleusercontent.com/img/b/R29vZ2 xl/AVvXsEigB8iI5tb8WSVBuVUGc9UjjB8O0708X7Fdic_4O1LT4CmLHoiwhanLXiRhe82yw0R7LgACQ2IhZaTY0hhmGi0gYp_Ynb49CVzfmXtYHUVKgXXpWvJ_oYT8cB4vzsnJLe3iCwuzj-w6PeYq_JaHmy_CoGoa6nw0FBo-2xLdOPvsLTh_fmYH2xhkaZ-OGQ/s16000/footer_bg.png") no-repeat scroll center 0;
    width: 100%;
    height: 266px;
    z-index: 1;
}

.new_footer_top .footer_bg .footer_bg_one {
    background: url("https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEia0PYPxwT5ifToyP3SNZeQWfJEWrUENYA5IXM6sN5vLwAKvaJS1pQVu8mOFFUa_ET4JuHNTFAxKURFerJYHDUWXLXl1vDofYXuij45JZelYOjEFoCOn7E6Vxu0fwV7ACPzArcno1rYuVxGB7JY6G7__e4_KZW4lTYIaHSLVaVLzklZBLZnQw047oq5-Q/s16000/volks.gif") no-repeat center center;
    width: 330px;
    height: 105px;
    background-size: 100%;
    position: absolute;
    bottom: 0;
    left: 30%;
    -webkit-animation: myfirst 22s linear infinite;
    animation: myfirst 10s linear infinite;
    z-index: 2; /* Đảm bảo gif animation không đè lên popup */
}
@media only screen and (max-width: 768px) {
    .new_footer_top .footer_bg .footer_bg_one {
        background: url("https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEia0PYPxwT5ifToyP3SNZeQWfJEWrUENYA5IXM6sN5vLwAKvaJS1pQVu8mOFFUa_ET4JuHNTFAxKURFerJYHDUWXLXl1vDofYXuij45JZelYOjEFoCOn7E6Vxu0fwV7ACPzArcno1rYuVxGB7JY6G7__e4_KZW4lTYIaHSLVaVLzklZBLZnQw047oq5-Q/s16000/volks.gif") no-repeat center center;
        width: 330px;
        height: 105px;
        background-size: 100%;
        position: absolute;
        bottom: 0;
        left: 30%;
        -webkit-animation: myfirst 22s linear infinite;
        animation: myfirst 10s linear infinite;
        z-index: 2; /* Đảm bảo gif animation không đè lên popup */
    }

   
}




@keyframes myfirst {
    0% {
        transform: translateX(-300px); /* Điểm bắt đầu */
    }
    80% {
        transform: translateX(calc(10%)); /* Điểm đích */
    }
    81% {
        transform: translateX(-300px); /* Trở lại điểm xuất phát ngay lập tức */
    }
    100% {
        transform: translateX(-400px); /* Giữ tại vị trí xuất phát */
    }
}


/* Popup Overlay */
.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

/* Popup Visible */
.popup.show {
    opacity: 1;
    visibility: visible;
}

/* Popup Content */
.popup-content {
    position: relative;
    background: linear-gradient(135deg, #172ace, #3a57e8);
    padding: 30px 20px;
    width: 90%;
    max-width: 400px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.3);
    animation: popup-bounce 0.5s ease-in-out forwards;
}

/* Close Button */
.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ff3e3e;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.3s ease;
    z-index: 10000;
}

.close-btn:hover {
    background: #172ace;
}

/* Font Awesome Icon */
.close-btn i {
    font-size: 18px;
    line-height: 18px;
}

/* Heading */
.popup-content h2 {
    color: #fff;
    font-size: 24px;
    margin-bottom: 15px;
    text-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
}

/* Paragraph */
.popup-content p {
    color: #ffe;
    font-size: 16px;
    margin-bottom: 20px;
}

/* Register Button */
.register-btn {
    background: #fff;
    color: #172ace;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0px 5px 15px rgba(255, 117, 140, 0.3);
}

.register-btn:hover {
    background: #ffe0e6;
    color: #ff3e3e;
    transform: scale(1.1);
}

/* Animation for Popup */
@keyframes popup-bounce {
    0% {
        transform: scale(0.7);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .close-btn {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}


/* Animation */
@keyframes popup-bounce {
    0% {
        transform: scale(1);
        opacity: 0;
    }
    60% {
        transform: scale(1.05);
        opacity: 1;
    }
    100% {
        transform: scale(1);
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .popup-content {
        width: 95%;
        padding: 20px 15px;
        border-radius: 10px;
        margin-left: 0; /* Xóa margin-left để popup không bị lệch */
    }

    .popup-content h2 {
        font-size: 20px;
    }

    .popup-content p {
        font-size: 14px;
    }

    .register-btn {
        padding: 10px 15px;
        font-size: 14px;
    }

    .close-btn {
        top: 10px;
        right: 10px;
        width: 25px;
        height: 25px;
        font-size: 16px;
        line-height: 25px;
    }
}


.bounce-effect {
    animation: bounce 1.5s infinite; /* Tên hiệu ứng, thời gian và lặp vô hạn */
    display: inline-block; /* Giữ nút trong một khối nội dung */
}

/* Hiệu ứng nhấp nháy nổi lên nổi xuống */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0); /* Vị trí ban đầu */
    }
    50% {
        transform: translateY(-10px); /* Nổi lên */
    }
}
.bounce-effect {
    animation: bounce 1.5s infinite; /* Tên hiệu ứng, thời gian và lặp vô hạn */
    display: inline-block; /* Đảm bảo phần tử hiển thị trong dòng khối */
}

/* Hiệu ứng nổi lên và xuống */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0); /* Vị trí ban đầu */
    }
    50% {
        transform: translateY(-10px); /* Nổi lên */
    }
}
.attention-effect {
    animation: pulse 1.5s infinite; /* Tên hiệu ứng, thời gian và lặp vô hạn */
    display: inline-block; /* Đảm bảo phần tử hiển thị trong dòng khối */
}

/* Hiệu ứng nhấp nháy (nổi bật) */
@keyframes pulse {
    0%, 100% {
        transform: scale(1); /* Kích thước ban đầu */
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.5); /* Ánh sáng nhấn mạnh */
    }
    50% {
        transform: scale(1.1); /* Tăng kích thước nhẹ */
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.7); /* Tăng độ sáng */
    }
}
.styled-table {
    border-collapse: collapse;
    font-size: 16px;
    font-family: 'Arial', sans-serif;
    width: 90%;
    margin: 0 auto;
    border: 1px solid #ddd;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.styled-table thead {
    background-color: #00405d;
    color: #ffffff;
    font-weight: bold;
    text-transform: uppercase;
}

.styled-table th, .styled-table td {
    padding: 12px 15px;
    text-align: center;
}

.styled-table tbody tr:nth-child(even) {
    background-color: #f3f3f3;
}

.styled-table tbody tr:hover {
    background-color: #f0f8ff;
    cursor: pointer;
}

.styled-table tbody td {
    color: #333;
}

.styled-table .text-muted {
    color: #888;
    font-style: italic;
}

.custom-btn {
    background-color: #00405d;
    color: #fff;
    border: none;
    transition: background-color 0.3s ease;
}

.custom-btn:hover {
    background-color: #002a3c;
    text-decoration: none;
    color: #ffffff;
}

.text-center h4 {
    border-bottom: 3px solid #00405d;
    display: inline-block;
    padding-bottom: 5px;
}
/* Ẩn phần lịch ban đầu */
#schedule-section {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-in-out;
}

/* Hiện hiệu ứng khi phần lịch xuất hiện */
#schedule-section.show {
    opacity: 1;
    transform: translateY(0);
}


/*************footer End*****************/

.contact-icons {
    position: fixed;
    right: 20px;
    top: 40%;
    z-index: 9995; /* Đảm bảo luôn nổi trên */
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: auto; /* Cho phép thao tác */
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative; /* Cần thiết để thêm ::before hoặc ::after */
}

.contact-icon::before {
    content: "";
    position: absolute;
    width: 50px; /* Kích thước vòng tròn nổi lớn hơn một chút */
    height: 50px;
    border: 2px solid #007bff; /* Màu của vòng tròn nổi */
    border-radius: 50%; /* Biến nó thành một vòng tròn */
    top: 1px; /* Đưa nó lên một chút để tạo hiệu ứng nổi */
    left: -2px; /* Đưa nó sang một chút để căn chỉnh */
    z-index: -1; /* Đảm bảo vòng tròn nổi nằm phía sau biểu tượng chính */
    animation: bounceInOut 1s infinite; /* Gọi hiệu ứng này với thời gian lặp lại vô hạn */
}

.contact-icon:hover::before {
    transform: scale(1.1); /* Tạo hiệu ứng nhồi nhồi */
}

@keyframes bounceInOut {
    0%, 100% {
        transform: scale(1); /* Hiệu ứng trở lại vị trí ban đầu */
    }
    50% {
        transform: scale(1.1); /* Hiệu ứng nổi ra */
    }
}
