@import url('https://fonts.googleapis.com/css2?family=Mulish:ital,wght@0,200..1000;1,200..1000&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');
body {
  font-family: "Open Sans", sans-serif;
  font-weight: normal;
  font-style: normal;
  font-size: 14px;
}
:root {
  --primary-color: #ff0219;
  --dark-color: #1a1a1a;
  --light-gray: #f8f9fa;
  --gradient-primary: linear-gradient(135deg, #ff0219 0%, #cc0014 100%);
}
h1, h2, h3, h4, h5, h6 {
  font-family: "Mulish", sans-serif;
  font-weight: 700;
  color: #555555;
  margin-top: 0px;
  font-style: normal;
  font-weight: 400;
  text-transform: normal;
  line-height: 1.2;
}
a, button {
  color: inherit;
  outline: medium none;
}
@font-face {
  font-family: 'weather';
  src: url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/93/artill_clean_icons-webfont.eot");
  src: url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/93/artill_clean_icons-webfont.eot?#iefix") format("embedded-opentype"), url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/93/artill_clean_icons-webfont.woff") format("woff"), url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/93/artill_clean_icons-webfont.ttf") format("truetype"), url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/93/artill_clean_icons-webfont.svg#artill_clean_weather_iconsRg") format("svg");
  font-weight: normal;
  font-style: normal;
}
@media (min-width: 1200px) {
  .container {
    max-width: 1400px !important;
  }
}
.area-block {
  padding: 12px;
  border-radius: .25rem;
  border: 1px solid #ccc;
}
.section-title span,.section-title h1 {
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
  padding-left: 10px;
  background: linear-gradient(135deg, #f00129, #c80020);
  color: #fff;
  display: inline-block;
  padding: 12px 30px 10px 30px;
  border-radius: 5px;
}

.section-title-2 h2 {
  background: #f70d28;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  display: inline-block;
  color: #fff;
  padding: 10px 30px;
  border-radius: 2px;
  margin: 0;
}
.mb-15 {
  margin-bottom: 15px;
}
/* ========================CSS phần header========================*/
.main-header {
  position: absolute;
  display: block;
  width: 100%;
  background: transparent;
  transition: all 0.5s ease;
  z-index: 99;
}
/* ================= Top Bar ================= */
.main-header-top {
  position: relative;
  display: block;
  padding: 10px 0;
  z-index: 101;
}
.main-header-top-inner {
  position: relative;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 0 50px;
}
.main-header-top-left .location-text {
  color: #fff;
  font-weight: 400;
  transition: all 0.5s ease;
  line-height: 30px;
  font-size: 18px;
}
.main-header-top a {
  color: #fff;
}
.main-header-top a:hover {
  color: #f2f2f2;
  text-decoration: none;
}
.main-header-top .icon-thumbtack {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: #ff0000; /* Màu đỏ cho icon ghim */
}
.main-header-top-middle span {
  text-transform: capitalize;
  color: #ffffff;
  font-weight: 400;
  transition: all 0.5s ease;
  line-height: 30px;
  font-size: 18px;
}
.main-header-top-right .icon-phone {
  color: #f02129;
}
.main-header-top-right .text-hotline {
  cursor: pointer;
  text-transform: capitalize;
  color: #ffffff !important;
  font-weight: 400;
  transition: all 0.5s ease;
  line-height: 30px;
  font-size: 18px;
}
.main-header-top-right span {
  font-size: 18px;
}
/* ================= Bottom Header ================= */
.main-header-bottom {
  position: relative;
  width: 100%;
  background: transparent;
  padding: 10px 0;
}
.main-header-bottom .container {
  display: flex;
  justify-content: center;
}
.bottom-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1400px;
  border-radius: 40px;
  position: relative;
}

/* -------- Logo bên trái -------- */
.logo-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 210px;
  height: 80px;
  z-index: 1;
  overflow: hidden;
}

.logo-bg {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("/frontend/assets/images/logo-box-style3-bg.png");
  background-size: cover;
  background-repeat: repeat;
  background-position: 100%;
  opacity: 0.2;
  z-index: -1;
}

.logo-img {
  position: relative;
  display: block;
  max-width: 90%;
  max-height: 100%;
  z-index: 2;
}
/* ================= MOBILE MENU TOGGLE ================= */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  padding: 10px;
  z-index: 100;
}
/* -------- Menu chính (giữa) -------- */
.bottom-wrapper .nav-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  overflow: visible;
  position: relative;
  height: 80px;
}
.menu-bg {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("/frontend/assets/images/main-header-style3__bottom-middle-bg.png");
  background-size: cover;
  background-repeat: repeat;
  background-position: 100%;
  opacity: 0.2;
  z-index: -1;
}
.nav {
  display: flex;
  margin-bottom: 0;
  padding-left: 0;
  list-style: none;
  z-index: 200;
}
.nav-item {
  position: relative;
}
.nav-item {
  position: relative;
}
.nav-item .nav-link {
  color: #ffffff;
  font-size: 18px;
  font-weight: 500;
  text-transform: capitalize;
  padding: 8px 12px;
  transition: color 0.2s ease;
}
.nav-item .nav-link:hover {
  color: #e30b17;
  text-decoration: none;
}

.nav-item.dropdown:hover > .dropdown-menu {
  display: block;
  opacity: 1;
  visibility: visible;
}

.nav-item.dropdown .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  padding: 8px 0;
  margin: 0;
  border: none;
  border-radius: 8px;
  background-color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.nav-item.dropdown:hover > .dropdown-menu {
  opacity: 1;
  visibility: visible;
}

.dropdown-menu .dropdown-item {
  display: block;
  width: 100%;
  padding: 10px 16px;
  font-size: 16px;
  font-weight: 400;
  color: #8f8f8f;
  text-decoration: none;
  background-color: transparent;
  transition: background-color 0.2s ease, color 0.2s ease;
  position: relative;
}
.dropdown-menu .dropdown-item + .dropdown-item {
  border-top: 1px solid #eeeeee;
}

.dropdown-menu .dropdown-item:hover {
  background-color: #f9f9f9;
  color: #e30b17;
  text-decoration: none;
}

.dropdown-menu .dropdown-item:first-child {
  padding-top: 12px;
}
.dropdown-menu .dropdown-item:last-child {
  padding-bottom: 12px;
}

.nav-item .dropdown-toggle {
  position: relative;
  cursor: pointer;
  text-decoration: none;
  padding: 8px 12px;
  transition: color 0.2s ease;
}

.nav-item .dropdown-toggle::after {
  font-size: 10px;
  margin-left: 6px;
  vertical-align: middle;
  color: #999999;
  transition: transform 0.2s ease;
}

.nav-item:hover .dropdown-toggle::after {
  color: #e30b17;
  transform: translateY(1px);
}

/* -------- CTA (bên phải) -------- */
.cta-wrapper .booking-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background-color: #f02129;
  border-radius: 50%;
}
.cta-wrapper .booking-icon i {
  color: #ffffff;
  font-size: 40px;
}
.cta-wrapper .booking-icon:hover {
  background-color: #d21621;
  text-decoration: none;
}

.cta-btn {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 210px;
  padding: 20px 35px;
  z-index: 1;
}
.cta-btn-bg {
  z-index: -1;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background-image: url("/frontend/assets/images/book-driving-lesson-box-style1-bg.png");
  background-size: 100% 100%;
  background-repeat: repeat;
  background-position: 0;
  opacity: 0.2;
  transition: background-color 0.3s ease, color 0.3s ease, opacity 0.3s ease;
}
.cta-wrapper .booking-btn {
  display: flex;
  align-items: center;
  border: 2px solid #f02129;
  border-radius: 30px;
  padding: 8px 18px;
  cursor: pointer;
  font-weight: 500;
}
.cta-wrapper .booking-btn span {
  font-size: 14px;
  color: #fff;
}
.cta-wrapper .booking-btn:hover {
  opacity: 1;
  background-color: #f02129;
  text-decoration: none;
  color: #fff;
}
/* 2. Style .mobile-only-menu ẩn mặc định */
.mobile-only-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  background-color: #fff;
  border-radius: 0 0 15px 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  z-index: 999;
  padding: 20px 0;
}

/* Khi gán class “show” → menu Mobile-only xuất hiện */
.mobile-only-menu.show {
  display: block;
}

/* Style chung cho link Mobile */
.mobile-only-menu .mobile-link {
  display: block;
  font-size: 18px;
  font-weight: 500;
  padding: 10px 20px;
  color: #333;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Submenu cấp 1 (ẩn mặc định) */
.mobile-only-menu .mobile-submenu {
  display: none;
  margin-top: 5px;
}

/* khi <li class="dropdown"> có class “show” → hiện submenu */
.mobile-only-menu .dropdown.show > .mobile-submenu {
  display: block;
}

/* Style cho link trong submenu cấp 1 */
.mobile-only-menu .mobile-link-sub {
  font-size: 16px;
  padding: 8px 40px;
  color: #555;
}
.mobile-only-menu .mobile-link-sub:hover {
  background-color: #f9f9f9;
  color: #e30b17;
}

/* Nếu bạn có submenu cấp 2, tiếp tục tương tự */
.mobile-only-menu .mobile-subsubmenu {
  display: none;
  margin-top: 5px;
}
.mobile-only-menu .dropdown.show > .mobile-subsubmenu {
  display: block;
}
.mobile-only-menu .mobile-link-sub2 {
  font-size: 14px;
  padding: 6px 60px;
  color: #777;
}
.mobile-only-menu .mobile-link-sub2:hover {
  background-color: #fafafa;
  color: #e30b17;
}
/* ================= RESPONSIVE STYLES ================= */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
  .main-header-top-inner {
    padding: 0 20px;
  }

  .main-header-top-left .location-text,
  .main-header-top-middle span,
  .main-header-top-right .text-hotline {
    font-size: 16px;
  }

  .logo-wrapper {
    width: 160px;
    height: 60px;
  }

  .nav-item .nav-link {
    font-size: 16px;
    padding: 6px 10px;
  }

  .cta-wrapper .booking-icon {
    width: 60px;
    height: 60px;
  }

  .cta-wrapper .booking-icon i {
    font-size: 30px;
  }

  .cta-btn {
    width: 160px;
    padding: 15px 25px;
  }

  .cta-wrapper .booking-btn {
    padding: 6px 15px;
  }

  .cta-wrapper .booking-btn span {
    font-size: 14px;
  }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
  .nav-wrapper {
    display: none !important;
  }

  .bottom-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 15px;
    border-radius: 20px;
  }
  .logo-wrapper {
    width: 120px;
    height: 50px;
    order: 1;
  }
  .mobile-menu-toggle {
    order: 2;
    background-color: #f02129;
    border-radius: 8px;
    padding: 8px 12px;
  }
  .cta-wrapper {
    order: 3;
    gap: 10px;
    justify-content: center;
  }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 479.98px) {
  .logo-wrapper {
    width: 50%;
    height: auto;
  }
  .bottom-wrapper {
    gap: 10px;
    padding: 10px;
  }
  .mobile-only-menu.show {
    padding: 15px 0;
  }
  .mobile-only-menu .mobile-link {
    font-size: 16px;
    padding: 8px 20px;
  }
  .mobile-only-menu .mobile-link-sub {
    font-size: 14px;
    padding: 6px 22px;
  }
  .mobile-only-menu .mobile-link-sub2 {
    font-size: 12px;
    padding: 4px 32px;
  }
  .cta-wrapper {
    flex-direction: column;
    gap: 8px;
  }
  .cta-wrapper .booking-icon {
    width: 45px;
    height: 45px;
  }
  .cta-wrapper .booking-icon i {
    font-size: 20px;
  }
  .cta-btn {
    width: 120px;
    padding: 8px 15px;
  }
  .cta-wrapper .booking-btn span {
    font-size: 11px;
  }
}
@media (hover: hover) {
  .mobile-only-menu .mobile-link:hover {
    background-color: #f02129;
    color: #fff;
  }
}
.sticky-header {
  display: none;
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  background-color: #0a0a0a;
  transition: transform 0.3s ease, opacity 0.3s ease;
  /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4); */
}
.sticky-header.visible {
  display: block;
  transform: translateY(0);
  opacity: 1;
}
.sticky-header {
  transform: translateY(-100%); /* ẩn lên trên */
  opacity: 0;
}
.sticky-header.visible {
  transform: translateY(0);
  opacity: 1;
}
.sticky-header .nav-link {
  color: #ffffff;
}
.sticky-header .nav-link:hover {
  color: #e30b17;
}
.sticky-header .logo-img {
  max-height: 80px;
}
@media (max-width: 768px) {
  .sticky-header .main-header-top {
    display: none;
  }
  .sticky-header .logo-wrapper {
    width: 50%;
    height: auto;
  }
  .sticky-header .nav-wrapper {
    display: none !important;
  }
}
/*===================Banner====================*/
#bannerCarousel .carousel-item {
  aspect-ratio: 16/9;
  overflow: hidden;
}

#bannerCarousel .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#bannerCarousel .carousel-banner-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}
.carousel-caption {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  text-align: center;
  color: white;
  width: 90%;
  max-width: 900px;
  padding: 40px 30px;
}

.carousel-caption h2 {
  font-size: 3.4rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: #ffffff !important;
  line-height: 1.3;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  animation: slideInFromTop 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.carousel-caption h2::after {
  content: "";
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  height: 4px;
  background: linear-gradient(90deg, #e95c5c, #ff0000);
  border-radius: 2px;
  animation: expandLine 1s ease-out 0.5s both;
}

@keyframes expandLine {
  from {
    width: 0;
  }
  to {
    width: 200px;
  }
}
.carousel-caption p {
  font-size: 1.5rem;
  margin-bottom: 2.5rem;
  color: #f8f9fa !important;
  line-height: 1.6;
  font-weight: 400;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  opacity: 0.95;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  animation: slideInFromBottom 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s
    both;
}

.carousel-caption .btn {
  padding: 15px 35px;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 50px;
  margin: 0 8px 10px;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  animation: fadeInUp 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.6s both;
}

.carousel-caption .btn-primary {
  background: linear-gradient(135deg, #ee4a4a 0%, #e40303 100%);
  border: none;
  box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
  color: white;
}

.carousel-caption .btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.6s ease;
}

.carousel-caption .btn-primary:hover::before {
  left: 100%;
}

.carousel-caption .btn-primary:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 35px rgba(255, 107, 107, 0.6);
  background: linear-gradient(135deg, #f54949 0%, #cf0404 100%);
}

.carousel-caption .btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.8);
  color: white;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.carousel-caption .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 30px rgba(255, 255, 255, 0.3);
  border-color: white;
}
@keyframes slideInFromTop {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInFromBottom {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* CONTROLS */
#bannerCarousel .carousel-control-prev,
#bannerCarousel .carousel-control-next {
  width: 60px;
  height: 60px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  opacity: 0.8;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 3;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

#bannerCarousel .carousel-control-prev {
  left: 20px;
}

#bannerCarousel .carousel-control-next {
  right: 20px;
}

/* Hover effects */
#bannerCarousel .carousel-control-prev:hover,
#bannerCarousel .carousel-control-next:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 1);
}

/* Custom arrow icons */
#bannerCarousel .carousel-control-prev-icon,
#bannerCarousel .carousel-control-next-icon {
  width: 24px;
  height: 24px;
  background: none;
  position: relative;
}

/* Arrow shapes */
#bannerCarousel .carousel-control-prev-icon::before,
#bannerCarousel .carousel-control-next-icon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  border-left: 3px solid #333;
  border-bottom: 3px solid #333;
  transform: translate(-50%, -50%);
  transition: all 0.2s ease;
}

#bannerCarousel .carousel-control-prev-icon::before {
  transform: translate(-25%, -50%) rotate(45deg);
}

#bannerCarousel .carousel-control-next-icon::before {
  transform: translate(-75%, -50%) rotate(-135deg);
}

/* Arrow hover effects */
#bannerCarousel
  .carousel-control-prev:hover
  .carousel-control-prev-icon::before,
#bannerCarousel
  .carousel-control-next:hover
  .carousel-control-next-icon::before {
  border-color: #eb1616;
}

#bannerCarousel
  .carousel-control-prev:hover
  .carousel-control-prev-icon::before {
  transform: translate(-25%, -50%) rotate(45deg) scale(1.2);
}

#bannerCarousel
  .carousel-control-next:hover
  .carousel-control-next-icon::before {
  transform: translate(-75%, -50%) rotate(-135deg) scale(1.2);
}

/* Indicators (dots) styling */
#bannerCarousel .carousel-indicators {
  bottom: 20px;
  margin: 0;
  z-index: 3;
}

#bannerCarousel .carousel-indicators li {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 6px;
  background: rgba(255, 255, 255, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
}

#bannerCarousel .carousel-indicators .active {
  background: white;
  transform: scale(1.2);
}
/* Tablet */
@media (max-width: 1024px) {
  .carousel-caption {
    width: 95%;
    padding: 35px 25px;
  }

  .carousel-caption h2 {
    font-size: 3.2rem;
  }

  .carousel-caption p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
  }
}
/* Mobile responsive */
@media (max-width: 768px) {
  #bannerCarousel .carousel-item {
    aspect-ratio: 16/9; /* Giữ tỷ lệ 16:9 */
    height: 50vh; /* Hoặc set chiều cao cố định như 400px */
    min-height: 400px;
    overflow: hidden;
  }

  #bannerCarousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Quan trọng: giữ cover để hình ảnh phủ đầy */
    display: block;
  }

  #bannerCarousel {
    min-height: 400px;
  }

  .carousel-caption {
    position: absolute; /* Giữ position absolute */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Căn giữa */
    width: 95%;
    padding: 30px 20px;
    z-index: 2;
  }

  .carousel-caption::after {
    border-radius: 17px;
  }

  .carousel-caption h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
  }

  .carousel-caption h2::after {
    width: 60px;
    height: 3px;
    bottom: -8px;
  }

  .carousel-caption p {
    font-size: 1.1rem;
    margin-bottom: 1.8rem;
    line-height: 1.5;
  }

  .carousel-caption .btn {
    padding: 12px 25px;
    font-size: 1rem;
    margin: 0 5px 8px;
    letter-spacing: 0.3px;
  }
}

/* Mobile Medium - Updated */
@media (max-width: 576px) {
  #bannerCarousel .carousel-item {
    height: 45vh;
    min-height: 400px;
  }

  .carousel-caption {
    width: 90%;
    padding: 25px 18px;
    border-radius: 12px;
  }

  .carousel-caption::after {
    border-radius: 14px;
  }

  .carousel-caption h2 {
    font-size: 2rem;
    margin-bottom: 0.8rem;
  }

  .carousel-caption h2::after {
    width: 50px;
    height: 2px;
  }

  .carousel-caption p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .carousel-caption .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
    margin: 0 3px 6px;
    display: inline-block;
    min-width: 140px;
  }
}

/* Mobile Small - Updated */
@media (max-width: 480px) {
  #bannerCarousel .carousel-item {
    height: 40vh;
    min-height: 400px;
  }

  .carousel-caption {
    width: 95%;
    padding: 20px 15px;
  }

  .carousel-caption h2 {
    font-size: 1.5rem;
    line-height: 1.2;
  }

  .carousel-caption p {
    font-size: 0.8rem;
    margin-bottom: 1.2rem;
  }

  .carousel-caption .btn {
    width: 60%;
    margin: 0 0 8px 0;
    padding: 8px;
  }
}

/* Performance optimizations */
#bannerCarousel {
  transform: translateZ(0);
  backface-visibility: hidden;
}
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 2dppx) {
  .carousel-caption h2::after {
    transform: translateX(-50%) scale(0.5);
    transform-origin: center;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  #bannerCarousel .carousel-control-prev,
  #bannerCarousel .carousel-control-next {
    transition: none;
  }
  .carousel-caption,
  .carousel-caption h2,
  .carousel-caption p,
  .carousel-caption .btn,
  .carousel-caption::after,
  .carousel-caption .particles::before,
  .carousel-caption .particles::after {
    animation: none !important;
    transition: none !important;
  }

  .carousel-caption h2::after {
    width: 80px;
  }
}
@media (prefers-contrast: high) {
  .carousel-caption {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid white;
  }

  .carousel-caption::after {
    display: none;
  }

  .carousel-caption h2 {
    color: white !important;
    -webkit-text-fill-color: white;
  }
}
/*===================Intro Section====================*/
.section-intro {
  background-size: cover;
  position: relative;
  z-index: 1;
  overflow: hidden;
  width: 100%;
}

/* ---------- CỘT TRÁI: HÌNH ẢNH ---------- */
.intro-left-wrapper {
  position: relative;
  text-align: center;
}

/* Ảnh chính (nền) */
.main-image-container {
  position: relative;
  display: inline-block;
  overflow: visible;
}

.main-img {
  border-radius: 12px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s;
  width: 100%;
  max-width: 425px;
}

.main-img:hover {
  transform: translateY(-10px);
}

/* Badge tròn nhỏ ở góc trên bên phải ảnh chính */
.badge-circle {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 80px;
  height: 80px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.badge-img {
  width: 60px;
  height: 60px;
}

/* Container cho hình xe và vòng tròn chữ */
.car-container {
  position: absolute;
  bottom: -120px;
  left: 50%;
  width: calc(100% + 100px);
  height: auto;
  pointer-events: none;
}

/* Hình xe */
.car-img {
  position: absolute;
  bottom: 0;
  left: 0;
  transform: translateX(-150%);
  width: 100%;
  z-index: 2;
  animation: carMove 1.5s ease-out forwards;
}
@keyframes carMove {
  0% {
    transform: translateX(-150%);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Khi màn hình nhỏ, thu bé hình và container */
@media (max-width: 768px) {
  .car-container {
    width: calc(100% + 50px);
    height: auto;
    bottom: -100px;
  }
  .circle-text-overlay {
    width: 200px;
    height: 200px;
  }
}

/* ---------- CỘT PHẢI: NỘI DUNG ---------- */
.intro-label {
  position: relative;
  display: inline-block;
  color: #fff;
  font-size: 14px;
  line-height: 24px;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 4px;
  background-color: #101015;
  padding: 8px 15px;
  margin-bottom: 16px;
  z-index: 1;
}
.intro-label::before {
  content: "";
  position: absolute;
  top: 0;
  left: -9px;
  bottom: 0;
  width: 4px;
  border-radius: 4px;
  background-color: #101015;
}
.intro-title {
  font-size: 48px;
  font-weight: 800;
  color: #222;
  margin-bottom: 20px;
  line-height: 1.2;
  text-transform: none;
}

@media (max-width: 768px) {
  .intro-title {
    font-size: 2rem;
  }
}

.intro-description {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.7;
  margin-bottom: 30px;
}

@media (max-width: 768px) {
  .intro-description {
    font-size: 1rem;
    margin-bottom: 20px;
  }
}

/* Our History */
.commit-block {
  margin-bottom: 30px;
}

.commit-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.commit-title img {
  width: 60px;
  height: auto;
}

.commit-list li {
  font-size: 1.1rem;
  color: #555;
  margin: 8px 0;
  display: flex;
  align-items: center;
}

.commit-list li i {
  color: #e63946;
  margin-right: 10px;
  font-size: 0.9rem;
}

/* Nút Read More */
.btn-read-more {
  display: inline-block;
  background: #000;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  position: relative;
  padding: 20px 40px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
  overflow: hidden;
  transition: color 0.3s ease;
  text-decoration: none;
  border: none;
  z-index: 1;
}

.btn-read-more:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background-color: #f02129;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.8s ease;
  z-index: -1;
}

.btn-read-more:hover {
  color: #fff;
}

.btn-read-more:hover:after {
  transform: scaleX(1);
  transform-origin: right;
}

/* Responsive cho cột phải khi màn hình nhỏ */
@media (max-width: 768px) {
  .history-list li {
    font-size: 0.95rem;
  }
  .btn-read-more {
    width: 100%;
    text-align: center;
  }
}

/* ========== SECTION DỊCH VỤ CỦA CHÚNG TÔI ========== */
.section-dich-vu {
  background-color: #f5f0f0;
  padding: 60px 0;
}
.title-home {
  font-size: 36px;
  font-weight: 700;
  color: #333;
  text-transform: uppercase;
  text-align: center;
}
.course-card {
  position: relative; 
  max-width: 380px;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  margin: auto;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.course-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* TIÊU ĐỀ */
.card-header {
  background-color: #fff;
  border-bottom: none;
  position: relative;
  z-index: 2;
}
.card-header .package-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: #333;
  text-transform: uppercase;
  margin: 0;
}

/* KHUNG ẢNH */
.course-image {
  height: 200px;
  overflow: hidden;
}
.course-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.course-card:hover .course-image img {
  transform: scale(1.05);
}

/* Overlay hình tròn icon sao */
.icon-overlay {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 3;
}
.icon-circle {
  width: max-content;
  height: 40px;
  background-color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.icon-circle i {
  font-size: 1rem;
  margin: 0 2px;
}
.icon-circle .star-filled {
  color: #d32f2f;
}
.icon-circle .star-empty {
  color: #999;
}

/* WAPPER CHO PRICE */
.price-wrapper {
  position: relative;
  width: 100%;
  /* height bằng 0 để không ảnh hưởng layout, nhưng vẫn giữ chỗ cho price-badge dùng position absolute */
  height: 0;
}

.price-badge {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #f02129;
  color: #fff;
  padding: 0.8rem 1.4rem;
  border-radius: 6px;
  font-size: 1.2rem;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  z-index: 4;
}

.price-badge:hover {
  background-color: #ffffff;
  color: #333333;
  border: 1px solid #f7f2f2;
}

.price-badge:hover .original-price,
.price-badge:hover .price-value {
  color: #333333;
}

.price-badge .original-price {
  font-size: 0.9rem;
  color: #f0f0f0;
  text-decoration: line-through;
  margin-right: 0.5rem;
  position: relative;
}

.price-badge .price-value {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 900;
  margin-right: 0.2rem;
}

/* CARD BODY */
.card-body {
  flex-grow: 1;
}

.benefits-list li {
  font-size: 16px;
  color: #555;
}
.benefits-list .benefit-icon {
  color: #f02129;
  margin-right: 0.5rem;
}

/* NÚT ĐĂNG KÝ NGAY */
.btn-signup {
  display: inline-block;
  background: #f5f0f0;
  color: #333;
  font-size: 1rem;
  font-weight: 700;
  position: relative;
  padding: 20px 40px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
  overflow: hidden;
  transition: color 0.3s ease;
  text-decoration: none;
  border: none;
  z-index: 1;
}

.btn-signup:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background-color: #f02129;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.8s ease;
  z-index: -1;
}

.btn-signup:hover {
  color: #fff;
}

.btn-signup:hover:after {
  transform: scaleX(1);
  transform-origin: right;
}
/* LINK “XEM CHI TIẾT” */
.terms-link {
  color: #5e5a5a;
  font-size: 14px;
  line-height: 24px;
  font-weight: 700;
}
.terms-link:hover {
  color: #d32f2f;
}

/* ANIMATION PULSE */
@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

/* RESPONSIVE */
@media (max-width: 576px) {
  .course-image {
    height: 160px;
  }
  .price-badge {
    top: -20px;
    font-size: 1rem;
    padding: 0.5rem 1rem;
  }
  .btn-signup {
    width: 100%;
    justify-content: center;
  }
}
@media (max-width: 768px) {
  .title-home {
    font-size: 36px;
  }
}
/* ===================CSS phần Tại sao chọn chúng tôi=================================*/
.reasons-choose-us {
  background-color: #ffffff;
}
.title-subtitle {
  color: #615f5f;
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 24px;
}
.reasons-content {
  margin-top: 30px;
}
.reasons-box {
  position: relative;
  display: block;
  border-radius: 15px;
  transition: all 0.3s ease;
}

.reasons-text-box .text-box-icon {
  display: inline-block;
}

.reasons-text-box img {
  width: 90px;
  height: 90px;
  padding: 12px;
  border-radius: 12px;
  margin-bottom: 8px;
  transition: all 0.3s ease;
}

.reasons-text-box h3 {
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
  text-transform: capitalize;
}
.reasons-text-box h3:hover {
  color: #e30b17;
}
.reasons-round-box {
  position: absolute;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  top: 65px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  z-index: 3;
  border: 1px solid #fcf3f3;
  transition: all 0.3s ease;
}
.pin-dot {
  background-color: red;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transition: transform 0.4s ease;
  transform-origin: center center;
}
.reasons-box:hover .pin-dot {
  transform: scale(2.5);
}
.reasons-round-box img {
  width: 24px;
  height: 24px;
}
.round-left {
  right: -45px;
}
.round-right {
  left: -45px;
}
.reasons-arrow-box img {
  width: 40px;
  height: 40px;
  opacity: 0.4;
}

.reasons-arrow-box.right > img {
  transform: rotate(180deg);
}

.reasons-image {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 510px;
  margin: 0 auto;
  overflow: hidden;
  background: rgba(255, 233, 233, 0.5);
  z-index: 1;
}

.reasons-image::before {
  content: "";
  position: absolute;
  left: -180px;
  top: -500px;
  right: -180px;
  height: 570px;
  background: #ffffff;
  z-index: 2;
  border-radius: 50%;
}

.reasons-image::after {
  content: "";
  position: absolute;
  left: -180px;
  bottom: -500px;
  right: -180px;
  height: 570px;
  background: #ffffff;
  z-index: 2;
  border-radius: 50%;
}

@keyframes backgroundRotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.inner-img {
  position: relative;
  display: inline-block;
  z-index: 3;
  filter: drop-shadow(0 15px 35px rgba(227, 11, 23, 0.2));
}

.steering-wheel {
  animation: steeringWheelRotate 6s ease-in-out infinite;
  transform-origin: center center;
  transition: all 0.3s ease;
}

@keyframes steeringWheelRotate {
  0% {
    transform: rotate(-25deg) scale(1);
  }
  25% {
    transform: rotate(15deg) scale(1.03);
  }
  50% {
    transform: rotate(-10deg) scale(1.05);
  }
  75% {
    transform: rotate(20deg) scale(1.03);
  }
  100% {
    transform: rotate(-25deg) scale(1);
  }
}

/* Hiệu ứng shine effect */
.inner-img::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.5) 50%,
    transparent 70%
  );
  border-radius: 50%;
  animation: shine 8s ease-in-out infinite;
  z-index: 1;
  pointer-events: none;
}

@keyframes shine {
  0%,
  100% {
    transform: rotate(0deg) scale(0.8);
    opacity: 0;
  }
  50% {
    transform: rotate(180deg) scale(1.2);
    opacity: 1;
  }
}

@keyframes float-bob-y {
  0% {
    transform: translateY(-20px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(-20px);
  }
}

/* Responsive styles */
@media (max-width: 1200px) {
  .reasons-round-box,
  .reasons-arrow-box {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .reasons-content .row {
    display: flex;
    flex-direction: column;
  }
  .reasons-content .col-xl-3,
  .reasons-content .col-xl-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  /* Thứ tự: list trái → list phải → ảnh */
  .reasons-content .col-xl-3:first-child { order: 1; }
  .reasons-content .col-xl-3:last-child { order: 2; }
  .reasons-content .col-xl-6       { order: 3 !important; }

  .reasons-round-box,
  .reasons-arrow-box {
    display: none !important;
  }

  .reasons-box {
    text-align: center !important;
    padding: 1rem !important;
  }
  .reasons-text-box img {
    margin: 0 auto 0.75rem;
  }
  .reasons-text-box h3 {
    font-size: 1.25rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
  }
  .reasons-text-box p {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .reasons-image {
    height: auto;
    padding: 0.5rem 0;
    background: none;
  }
  .inner-img img.steering-wheel {
    width: 180px !important;
    height: 180px !important;
  }
}


@media (max-width: 576px) {
  .title-home {
    font-size: 1.6rem;
  }

  .inner-img img {
    width: 200px !important;
    height: 200px !important;
  }

  .reasons-text-box h3 {
    font-size: 20px;
  }
}

.reasons-choose-us:hover .inner-img {
  animation-play-state: running;
}

.reasons-box.text-right {
  text-align: right;
}

.reasons-box.text-left {
  text-align: left;
}

.reasons-box.text-right .pr-3 {
  padding-right: 1rem;
}

.reasons-box.text-left .pl-3 {
  padding-left: 1rem;
}
/*=========================Qui trình đăng ký=====================================*/
.registration-process {
  background: url(/frontend/assets/images/registration-process-bg.png) no-repeat center center;
    background-size: cover;
    position: relative;
    overflow: hidden;
}

.timeline-container {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 0;
}

/* Đường timeline chính giữa */
.timeline-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 2px;
  z-index: 0;
}

.timeline-item {
  position: relative;
  width: 100%;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

/* Node trên timeline */
.timeline-node {
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 70px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  box-shadow: 0 0 0 8px white, 0 0 0 12px var(--primary-color);
}

.timeline-node .step-number {
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
}

/* Content box */
.timeline-content {
  background: white;
  border-radius: 20px;
  padding: 0.75rem;
  border: 2px solid transparent;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.timeline-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--gradient-primary);
}

.timeline-content:hover {
  transform: translateY(-8px);
  border-color: var(--primary-color);
  box-shadow: 0 10px 20px rgba(255, 2, 25, 0.1);
}

/* Bên trái */
.timeline-item.left .timeline-content {
  margin-right: 60%;
  margin-left: 0;
}

.timeline-item.left .timeline-content::after {
  content: "";
  position: absolute;
  top: 45px;
  right: -15px;
  width: 0;
  height: 0;
  border: 15px solid transparent;
  border-left-color: white;
  z-index: 2;
}

/* Bên phải */
.timeline-item.right .timeline-content {
  margin-left: 60%;
  margin-right: 0;
}

.timeline-item.right .timeline-content::after {
  content: "";
  position: absolute;
  top: 45px;
  left: -15px;
  width: 0;
  height: 0;
  border: 15px solid transparent;
  border-right-color: white;
  z-index: 2;
}

.step-icon {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1.2rem;
  text-align: center;
  display: block;
}

.step-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 1rem;
  text-align: center;
  line-height: 1.3;
}

.step-description {
  font-size: 14px;
  color: #555555;
  line-height: 1.6;
  text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
  .timeline-container::before {
    left: 40px;
  }

  .timeline-node {
    left: 40px;
    width: 60px;
    height: 60px;
    box-shadow: 0 0 0 6px white, 0 0 0 10px var(--primary-color);
  }
  .timeline-item{
    margin-bottom: 12px;
  }
  .timeline-node .step-number {
    font-size: 1.3rem;
  }

  .timeline-item.left .timeline-content,
  .timeline-item.right .timeline-content {
    margin-left: 100px;
    margin-right: 0;
  }

  .timeline-item.left .timeline-content::after,
  .timeline-item.right .timeline-content::after {
    top: 35px;
    left: -15px;
    border: 15px solid transparent;
    border-right-color: white;
    border-left-color: transparent;
  }

  .title-home {
    font-size: 2rem;
  }
  .title-subtitle {
    font-size: 1rem;
  }
  .step-description {
    font-size: 0.9rem;
  }
  .timeline-content {
    padding: 2rem;
  }

  .step-icon {
    font-size: 2rem;
  }

  .step-title {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .timeline-node {
    left: 30px;
    width: 50px;
    height: 50px;
    box-shadow: 0 0 0 4px white, 0 0 0 8px var(--primary-color);
  }

  .timeline-node .step-number {
    font-size: 1.1rem;
  }

  .timeline-container::before {
    left: 30px;
  }

  .timeline-item.left .timeline-content,
  .timeline-item.right .timeline-content {
    margin-left: 80px;
  }

  .timeline-content {
    padding: 1rem;
  }

  .title-home {
    font-size: 1.8rem;
  }
  .title-subtitle {
    font-size: 1rem;
  }
  .step-description {
    font-size: 14px;
  }
}

/* Animation cho các item khi xuất hiện */
.timeline-item {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s ease forwards;
}

.timeline-item:nth-child(1) {
  animation-delay: 0.1s;
}
.timeline-item:nth-child(2) {
  animation-delay: 0.2s;
}
.timeline-item:nth-child(3) {
  animation-delay: 0.3s;
}
.timeline-item:nth-child(4) {
  animation-delay: 0.4s;
}
.timeline-item:nth-child(5) {
  animation-delay: 0.5s;
}
.timeline-item:nth-child(6) {
  animation-delay: 0.6s;
}
.timeline-item:nth-child(7) {
  animation-delay: 0.7s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/*=========================Hình ảnh học viên=====================================*/
.student-gallery {
  background-color: #101015;
  position: relative;
}

.student-gallery-bg {
  background: url("/frontend/assets/images/student-gallery-bg.webp");
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  opacity: 0.1;
  mix-blend-mode: luminosity;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: scroll;
  background-position: 50%;
}

.student-gallery .container {
  position: relative;
  z-index: 2;
}

.student-gallery .text-container {
  padding: 2rem 0;
}

.student-gallery .gallery-title h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: capitalize;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.student-gallery .gallery-text {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #b8b8b8;
  margin-bottom: 2rem;
}

.student-gallery .gallery-text-box {
  background: linear-gradient(135deg, #ff0219, #f16e6e);
  padding: 1.5rem 2rem;
  border-radius: 12px;
  font-size: 1.2rem;
  font-weight: 600;
  color: white;
  text-align: center;
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
}

.student-gallery .images-container {
  height: max-content;
}

.student-gallery .vertical-images {
  height: 100%;
  max-height: 500px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 10px;
}

.student-gallery .vertical-images::-webkit-scrollbar {
  width: 6px;
}

.student-gallery .vertical-images::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.student-gallery .vertical-images::-webkit-scrollbar-thumb {
  background: rgba(255, 107, 53, 0.6);
  border-radius: 3px;
}

.student-gallery .vertical-images::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 107, 53, 0.8);
}

.student-gallery .image-item {
  margin-bottom: 1rem;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.student-gallery .image-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.student-gallery .small-images .image-item img {
  height: 200px;
}

.student-gallery .large-images .image-item img {
  height: 300px;
  padding: 12px;
  background-color: #ffffff;
}

.student-gallery .small-images .image-item {
  margin-bottom: 0.8rem;
}

.student-gallery .large-images .image-item {
  margin-bottom: 1.2rem;
}

@media (max-width: 768px) {
  .student-gallery .gallery-title h2 {
    font-size: 1.85rem;
  }
  .student-gallery .gallery-text {
    font-size: 0.95rem;
  }
  .student-gallery .images-container {
    height: max-content;
    margin-top: 2rem;
  }

  .student-gallery .vertical-images {
    max-height: 400px;
  }

  .student-gallery .text-container {
    text-align: center;
  }

  .student-gallery .small-images {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
  }

  .student-gallery .small-images .image-item {
    width: calc(50% - 5px);
    margin-bottom: 10px;
    flex-shrink: 0;
  }

  .student-gallery .large-images .image-item img {
    height: 200px;
  }
  .student-gallery .large-images .image-item img {
    height: 200px;
  }
}
/* ===================Chương trình ưu đãi=================================*/
.promotion-section {
  position: relative;
  padding: 3rem 0;
  background-image: url("/frontend/assets/images/why-choose-us-bg.webp");
  background-size: cover;
  background-position: center;
  color: #2c3e50;
  width: 100%;
  overflow: hidden;
}

/* White overlay */
.promotion-section .bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.5);
  z-index: 1;
}

.promotion-content {
  position: relative;
  z-index: 3;
}

.title-promotion {
  color: #2c3e50;
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
  text-align: center;
}

.offer-highlight {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  padding: 30px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.offer-text {
  color: #2c3e50;
  font-size: 1.3rem;
  line-height: 1.6;
  margin-bottom: 25px;
  text-align: center;
}

.promo-pulse {
  display: inline-block;
  will-change: transform;
  font-size: 1.25rem;
  color: #f02129;
  margin-bottom: 25px;
  text-shadow: 0 0 4px rgba(250, 212, 214, 0.5);
  animation: pulse 1.5s ease-in-out infinite;
}

.offer-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 30px 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.feature-badge {
  background: linear-gradient(135deg, #ff0808, #f37575);
  color: white;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(236, 109, 109, 0.3);
}

.cta-container {
  text-align: center;
  margin-top: 20px;
}

.cta-text {
  color: #f02129;
  font-size: 1.2rem;
  margin-bottom: 25px;
  font-weight: 600;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.promo-btn {
  background: linear-gradient(45deg, #ff6b6b, #ee5a24);
  color: white;
  border: none;
  padding: 18px 40px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(255, 107, 107, 0.2);
  position: relative;
  overflow: hidden;
}

.promo-btn:focus {
  outline: none;
}

.promo-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s ease;
}

.promo-btn:hover::before {
  left: 100%;
}

.promo-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(255, 107, 107, 0.4);
  color: white;
}

.contact-btn {
  background: rgba(204, 211, 218, 0.1);
  color: #f02129;
  border: 2px solid #f02129;
  padding: 16px 35px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.contact-btn:hover {
  background: #f02129;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(204, 109, 109, 0.3);
}

@media (max-width: 768px) {
  .title-home {
    font-size: 2.2rem;
  }

  .offer-highlight {
    padding: 30px 20px;
  }

  .offer-text {
    font-size: 1.1rem;
  }

  .offer-features {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    max-width: 100%;
  }

  .feature-badge {
    padding: 10px 12px;
    font-size: 0.8rem;
    white-space: normal;
    line-height: 1.3;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .promo-btn,
  .contact-btn {
    width: 100%;
    max-width: 280px;
  }
}
/*=======================CSS Nhận xét từ KH=======================*/
.reviews-section {
  position: relative;
  background: #ffffff;
  width: 100%;
  overflow: hidden;
}

/* White overlay */
.reviews-section .bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(219, 216, 216, 0.5);
  z-index: 1;
}

.reviews-section .promotion-content {
  position: relative;
  z-index: 3;
}

/* Header */
.section-header {
  text-align: center;
  margin-bottom: 40px;
}
.subtitle {
  font-size: 1.2rem;
  color: #a0a0a0;
  max-width: 700px;
  margin: 0 auto;
}

/* Reviews Grid */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Review Card */
.review-card {
  background-color: #ffffff;
  border: 1px solid #333333;
  border-radius: 20px;
  padding: 35px;
  position: relative;
  transition: all 0.3s ease;
  overflow: hidden;
}
.review-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #f00219, #ff1744);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.review-card:hover {
  transform: translateY(-8px);
  border-color: #f00219;
  box-shadow: 0 20px 40px rgba(240, 2, 25, 0.15);
}
.review-card:hover::before {
  transform: scaleX(1);
}

/* Reviewer Info */
.reviewer-info {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
}
.reviewer-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #f00219;
  margin-right: 20px;
  transition: transform 0.3s ease;
}
.review-card:hover .reviewer-avatar {
  transform: scale(1.1);
}
.reviewer-details h5 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #413d3d;
  margin-bottom: 5px;
}
.reviewer-role {
  font-size: 0.9rem;
  color: #a0a0a0;
}

/* Rating */
.rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}
.stars i {
  color: #ffd700;
  font-size: 16px;
}
.rating-text {
  font-size: 0.9rem;
  color: #a0a0a0;
  margin-left: 10px;
}

/* Review Text */
.review-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #555555;
  position: relative;
  padding-left: 20px;
  border-left: 3px solid #f00219;
  font-style: italic;
}

/* Stats Section */
.stats-section {
  position: relative;
  padding: 40px 0;
  background: url("/frontend/assets/images/feedback-bottom-bg.webp")
    center/cover no-repeat;
  margin-top: 40px;
}

.stats-section-bg-overlay {
  position: absolute;
  inset: 0;
  /* Giảm opacity overlay để nền hiện lên rõ hơn */
  background: rgba(255, 255, 255, 0.3);
  z-index: 1;
}

.stats-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 15px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(240, 0, 41, 0.15);
}

.stat-icon {
  font-size: 2.4rem;
  color: #f00129;
  margin-bottom: 8px;
}

.stat-number {
  font-size: 1.6rem;
  color: #222;
  margin: 4px 0;
}

.stat-label {
  font-size: 0.95rem;
  color: #333;
  margin: 0;
  font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
  .main-title {
    font-size: 2.5rem;
  }
  .reviews-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .review-card {
    padding: 25px;
  }
  .stats-grid {
    gap: 12px;
  }
  .stat-number {
    font-size: 2rem;
  }
}
@media (max-width: 480px) {
  .main-title {
    font-size: 2rem;
  }
  .stats-section {
    padding: 30px 0;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .stat-card {
    padding: 10px;
    border-radius: 8px;
  }
  .stat-icon {
    font-size: 1.8rem;
  }
  .stat-number {
    font-size: 1.4rem;
    margin: 2px 0;
  }
  .stat-label {
    font-size: 0.8rem;
  }
  .cta-button {
    padding: 15px 30px;
    font-size: 1rem;
  }
}

/* Entry Animations */
.review-card {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s ease forwards;
}
.review-card:nth-child(1) {
  animation-delay: 0.1s;
}
.review-card:nth-child(2) {
  animation-delay: 0.2s;
}
.review-card:nth-child(3) {
  animation-delay: 0.3s;
}
.review-card:nth-child(4) {
  animation-delay: 0.4s;
}
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.highlight {
  color: #ff1744;
  font-weight: 600;
}
/*=======================CSS Section Đăng ký=======================*/
.registration-section {
  position: relative;
  overflow: hidden;
  padding: 30px 0;
}

@keyframes backgroundFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(1deg); }
}

/* Form Container */
.form-container {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  box-shadow: 
      0 20px 40px rgba(0, 0, 0, 0.1),
      0 0 0 1px rgba(255, 255, 255, 0.2);
  padding: 30px;
  position: relative;
  overflow: hidden;
  transform: translateY(20px);
  opacity: 0;
  animation: slideInUp 0.8s ease-out forwards;
  margin: 0 15px;
}

@keyframes slideInUp {
  to {
      transform: translateY(0);
      opacity: 1;
  }
}

.form-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #f00129, #ff6b6b, #4ecdc4, #45b7d1);
  background-size: 300% 100%;
  animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.form-header {
  margin-bottom: 30px;
  position: relative;
}

.title-subtitle {
  font-size: 0.95rem;
  color: #6c757d;
  line-height: 1.5;
  margin-bottom: 0;
}

/* Form Controls */
.form-group {
  margin-bottom: 20px;
  position: relative;
}

.form-group label {
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 8px;
  font-size: 0.9rem;
  position: relative;
  display: flex;
  align-items: center;
}

.form-group label i {
  margin-right: 8px;
  color: #f00129;
  font-size: 14px;
  width: 16px;
  text-align: center;
}

.form-control {
  border: 2px solid #e9ecef;
  border-radius: 12px;
  height: 48px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  background: #fff;
  position: relative;
  padding: 0 15px;
}

.form-control:focus {
  border-color: #f00129;
  box-shadow: 0 0 0 0.25rem rgba(240, 1, 41, 0.1);
  transform: translateY(-1px);
  background: #fff;
  outline: none;
}

.form-control::placeholder {
  color: #adb5bd;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.form-control:focus::placeholder {
  opacity: 0.7;
}

/* Input Icons */
.input-icon {
  position: relative;
}

/* Submit Button */
.btn-submit {
  background: linear-gradient(135deg, #f00129 0%, #ff4757 100%);
  border: none;
  border-radius: 12px;
  padding: 16px 30px;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: white;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(240, 1, 41, 0.3);
  width: 100%;
  min-height: 52px;
}

.btn-submit::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(240, 1, 41, 0.4);
  background: linear-gradient(135deg, #d70021 0%, #ff3742 100%);
}

.btn-submit:hover::before {
  left: 100%;
}

.btn-submit:active {
  transform: translateY(0px);
}

/* Image Section */
.image-section {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.image-placeholder {
  width: 100%;
  max-width: 400px;
  height: 450px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  backdrop-filter: blur(10px);
  border: 2px dashed rgba(230, 86, 86, 0.3);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  animation: fadeInLeft 0.8s ease-out;
}

@keyframes fadeInLeft {
  from {
      opacity: 0;
      transform: translateX(-50px);
  }
  to {
      opacity: 1;
      transform: translateX(0);
  }
}

.image-placeholder:hover {
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.image-content {
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  padding: 20px;
  width: 100%;
  height: 100%;
}

.image-content img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
}

/* Responsive Design - Tablet */
@media (max-width: 991px) {
  .registration-section {
      padding: 40px 0;
  }

  .image-section {
      order: 1;
      padding: 20px;
      margin-bottom: 20px;
  }

  .form-container {
      order: 2;
      margin: 0 20px;
  }

  .title-home {
      font-size: 1.9rem;
  }
}

/* Mobile Large */
@media (max-width: 768px) {
  .registration-section {
      padding: 30px 0;
  }

  .image-section {
      padding: 15px;
      margin-bottom: 15px;
  }

  .image-placeholder {
      height: 280px;
      max-width: 350px;
  }

  .form-container {
      padding: 25px 20px;
      margin: 0 15px;
      border-radius: 15px;
  }

  .title-home {
      font-size: 1.6rem;
      margin-bottom: 12px;
  }

  .title-subtitle {
      font-size: 0.9rem;
  }

  .form-group {
      margin-bottom: 18px;
  }

  .form-control {
      height: 46px;
      font-size: 0.9rem;
  }

  .btn-submit {
      padding: 14px 25px;
      font-size: 0.95rem;
      letter-spacing: 0.3px;
      min-height: 50px;
  }

  .form-header {
      margin-bottom: 25px;
  }
}

/* Mobile Medium */
@media (max-width: 576px) {
  .registration-section {
      padding: 20px 0;
  }

  .image-section {
      padding: 10px;
      margin-bottom: 10px;
  }

  .image-placeholder {
      height: 220px;
      max-width: 280px;
      border-radius: 15px;
  }

  .image-content img {
      border-radius: 13px;
  }

  .form-container {
      padding: 20px 15px;
      margin: 0 10px;
      border-radius: 12px;
  }

  .title-home {
      font-size: 1.4rem;
      line-height: 1.2;
      margin-bottom: 10px;
  }

  .title-subtitle {
      font-size: 0.85rem;
      line-height: 1.4;
  }

  .form-header {
      margin-bottom: 20px;
  }

  .form-group {
      margin-bottom: 15px;
  }

  .form-group label {
      font-size: 0.85rem;
      margin-bottom: 6px;
  }

  .form-group label i {
      font-size: 13px;
      width: 14px;
  }

  .form-control {
      height: 44px;
      font-size: 0.85rem;
      border-radius: 10px;
      padding: 0 12px;
  }

  .form-control::placeholder {
      font-size: 0.8rem;
  }

  .btn-submit {
      padding: 12px 20px;
      font-size: 0.9rem;
      border-radius: 10px;
      min-height: 48px;
      margin-top: 15px;
  }

  /* Tối ưu cho form-row trên mobile */
  .form-row {
      margin-left: 0;
      margin-right: 0;
  }

  .form-row > .col-md-6 {
      padding-left: 0;
      padding-right: 0;
      margin-bottom: 0;
  }
}

/* Mobile Small */
@media (max-width: 480px) {
  .registration-section {
      padding: 15px 0;
  }

  .image-placeholder {
      height: 200px;
      max-width: 250px;
  }

  .form-container {
      padding: 18px 12px;
      margin: 0 8px;
  }

  .title-home {
      font-size: 1.3rem;
  }

  .title-subtitle {
      font-size: 0.9rem;
  }

  .form-control {
      height: 42px;
      font-size: 0.8rem;
      padding: 0 10px;
  }

  .btn-submit {
      padding: 11px 18px;
      font-size: 0.85rem;
      min-height: 46px;
  }
}

/* Mobile Extra Small */
@media (max-width: 360px) {
  .image-placeholder {
      height: 180px;
      max-width: 220px;
  }

  .form-container {
      padding: 15px 10px;
      margin: 0 5px;
  }

  .title-home {
      font-size: 1.2rem;
  }

  .form-control {
      height: 40px;
      font-size: 0.75rem;
  }

  .btn-submit {
      font-size: 0.8rem;
      min-height: 44px;
  }
}

/* Loading Animation */
.btn-submit.loading {
  pointer-events: none;
  opacity: 0.8;
}

.btn-submit.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Cải thiện touch experience */
@media (hover: none) and (pointer: coarse) {
  .form-control:focus {
      transform: none;
  }
  
  .btn-submit:hover {
      transform: none;
  }
  
  .btn-submit:active {
      transform: scale(0.98);
  }
  
  .image-placeholder:hover {
      transform: none;
  }
}
/*=======================Latest Blog Section===============================*/
.blog-section {
  background: linear-gradient(135deg, #f5f0f0 0%, #faf7f7 100%);
  position: relative;
  overflow: hidden;
}

.blog-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(243, 43, 43, 0.05) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(52, 152, 219, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.blog-content {
  position: relative;
  z-index: 1;
}

/* Header Styles */
.blog-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 40px;
  gap: 30px;
}

.blog-title {
  flex: 1;
}

.blog-title h2 {
  text-align: left !important;
}

.title-home {
  font-size: 2.5rem;
  font-weight: 800;
  color: #2c3e50;
  margin-bottom: 10px;
  background: linear-gradient(45deg, #2c3e50, #34495e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.subtitle-home {
  font-size: 1.1rem;
  color: #7f8c8d;
  margin-bottom: 0;
  line-height: 1.6;
}

.view-all-btn,
.btn-view-all {
  background: linear-gradient(45deg, #ffffff, #f8f9fa);
  border: 2px solid #f32b2b;
  color: #f32b2b;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(243, 43, 43, 0.2);
}

.view-all-btn::before,
.btn-view-all::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}

.view-all-btn:hover::before,
.btn-view-all:hover::before {
  left: 100%;
}

.view-all-btn:hover,
.btn-view-all:hover {
  background: linear-gradient(45deg, #f32b2b, #e74c3c);
  color: white;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 35px rgba(243, 43, 43, 0.4);
  text-decoration: none;
}

/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 40px;
  min-height: 600px;
}

/* Featured Post */
.featured-post {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.featured-post::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(0,0,0,0.1), transparent);
  z-index: 1;
  transition: opacity 0.4s ease;
}

.featured-post:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
}

.featured-post:hover::before {
  opacity: 0;
}

.featured-post img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.featured-post:hover img {
  transform: scale(1.1);
}

.featured-post a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.featured-post a:hover {
  text-decoration: none;
  color: inherit;
}

.featured-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
  padding: 50px 40px 40px;
  color: white;
  z-index: 2;
}

.featured-category {
  background: linear-gradient(45deg, #e74c3c, #c0392b);
  color: white;
  padding: 8px 20px;
  border-radius: 25px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  display: inline-block;
  box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

.featured-title {
  font-size: 2rem;
  font-weight: 800;
  color: white;
  margin-bottom: 15px;
  line-height: 1.3;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.featured-meta {
  display: flex;
  align-items: center;
  gap: 25px;
  font-size: 14px;
  opacity: 0.9;
}

.featured-meta span {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Side Posts */
.side-posts {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.side-post {
  display: flex;
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(0,0,0,0.05);
}

.side-post:hover {
  transform: translateX(10px) translateY(-5px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  color: inherit;
}

.side-post-image {
  width: 140px;
  height: 100%;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.side-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.side-post:hover .side-post-image img {
  transform: scale(1.1);
}

.side-post-date {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(45deg, #ffffff, #f8f9fa);
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  color: #2c3e50;
  text-align: center;
  line-height: 1.2;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  backdrop-filter: blur(10px);
}

.side-post-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.side-post-category {
  background: linear-gradient(45deg, #3498db, #2980b9);
  color: white;
  padding: 6px 15px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  display: inline-block;
  width: fit-content;
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.side-post-category.safety { 
  background: linear-gradient(45deg, #e74c3c, #c0392b);
  box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.side-post-category.driving { 
  background: linear-gradient(45deg, #f39c12, #e67e22);
  box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

.side-post-category.licence { 
  background: linear-gradient(45deg, #27ae60, #229954);
  box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.side-post-title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 15px;
  color: #2c3e50;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.side-post-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #7f8c8d;
}

.side-post-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.read-more {
  color: #3498db;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 11px;
  position: relative;
}

.read-more::after {
  content: '→';
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.side-post:hover .read-more::after {
  transform: translateX(5px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .blog-header {
      flex-direction: column;
      gap: 20px;
      text-align: center;
      align-items: center;
  }

  .title-home {
      font-size: 2rem;
  }

  .blog-grid {
      grid-template-columns: 1fr;
      gap: 30px;
      min-height: auto;
  }

  .side-post {
      flex-direction: column;
  }

  .side-post-image {
      width: 100%;
      height: 200px;
  }

  .side-post-content {
      padding: 20px;
  }
}

@media (max-width: 480px) {
  .title-home {
      font-size: 1.8rem;
  }

  .blog-title h2 {
      text-align: center !important;
  }

  .featured-overlay {
      padding: 20px;
  }

  .featured-title {
      font-size: 1.5rem;
  }

  .side-post-image {
      height: 180px;
  }

  .view-all-btn,
  .btn-view-all {
      padding: 12px 20px;
      font-size: 12px;
  }
}

/* Animation cho page load */
@keyframes fadeInUp {
  from {
      opacity: 0;
      transform: translateY(30px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

.blog-section {
  animation: fadeInUp 0.6s ease-out;
}

.featured-post {
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.side-post {
  animation: fadeInUp 0.6s ease-out calc(0.4s + var(--delay, 0s)) both;
}

.side-post:nth-child(1) { --delay: 0.1s; }
.side-post:nth-child(2) { --delay: 0.2s; }
.side-post:nth-child(3) { --delay: 0.3s; }
.side-post:nth-child(4) { --delay: 0.4s; }
/*=======================CSS for right.php===============================*/
.sidebar-wrapper {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.sidebar-right {
  margin-top: 12px;
  padding: 0 8px;
  border-radius: 10px;
  height: max-content;
}

/* Responsive - optional */
@media (max-width: 991.98px) {
  .sidebar-right {
    margin-top: 1rem;
  }
}

/* ===================CSS Modal=================================*/
.modal-lg {
  margin-top: calc(70px + 2.5rem);
  max-width: 700px;
}

@media (min-width: 768px) {
  .form-image {
    max-width: 100%;
    height: auto;
  }
}

.modal-header {
  position: relative;
  justify-content: center;
}

.modal-header .close {
  position: absolute;
  right: 15px;
  top: 15px;
}

.modal-title {
  font-weight: bold;
  text-transform: uppercase;
  color: #ff0219;
  font-size: 1.5em;
}

.btn-modal {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}

.btn-modal-send {
  background-color: #ffb300 !important;
  color: #fff !important;
  max-width: 300px;
  border-radius: 8px;
  font-weight: bold;
}

.btn-modal-send:hover {
  background-color: #446084 !important;
}

/*=================CSS for footer.php===============================*/
/* =============================CSS FAQ===============================*/
.faq-section {
  background: #f8f9fa;
  position: relative;
  min-height: auto;
  overflow: hidden;
}

.faq-section .container {
  position: relative;
  z-index: 1;
}

.faq-header {
  text-align: center;
  margin-bottom: 40px;
  color: #2c3e50;
}

.faq-header h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #2c3e50;
}

.faq-header p {
  font-size: 1.1rem;
  opacity: 0.8;
  max-width: 600px;
  margin: 0 auto;
  color: #666;
}

.faq-container {
  max-width: 900px;
  margin: 0 auto;
}

/* FAQ Card Styles */
.faq-card {
  background: #ffffff;
  border-radius: 12px;
  margin-bottom: 16px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
}

.faq-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.faq-card-header {
  position: relative;
  cursor: pointer;
  padding: 0;
  border: none;
  background: none;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  font-size: 1rem;
  font-weight: 600;
  color: #2c3e50;
  text-decoration: none;
  transition: color 0.3s ease, background-color 0.3s ease;
  position: relative;
}

.faq-question::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(103, 126, 234, 0.1), transparent);
  transition: left 0.5s ease;
}

.faq-question:hover::before {
  left: 100%;
}

.faq-question:hover {
  color: #cc3737;
}

.faq-icon {
  background: linear-gradient(135deg, #dacccc, #ff4a4a);
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: transform 0.3s ease, background 0.3s ease;
  flex-shrink: 0;
  margin-left: 16px;
  will-change: transform;
}

.faq-card.active .faq-icon {
  transform: rotate(180deg);
  background: linear-gradient(135deg, #f32b2b, #ff6b6b);
}

.faq-card.active .faq-question {
  color: #f32b2b;
  background: rgba(243, 43, 43, 0.05);
}

/* Answer Styles */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  background: rgba(248, 249, 250, 0.8);
}

.faq-answer.active {
  max-height: 200px;
  padding: 18px 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.faq-answer p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #555;
  margin: 0;
}

/* Decorative Elements */
.faq-decoration {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 50px;
  height: 50px;
  background: rgba(103, 126, 234, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #667eea;
}

/* Responsive Design */
@media (max-width: 768px) {
  .faq-section {
      padding: 40px 0;
  }

  .faq-header h2 {
      font-size: 1.75rem;
  }

  .faq-header p {
      font-size: 1rem;
  }

  .faq-question {
      padding: 16px 20px;
      font-size: 0.95rem;
  }

  .faq-answer.active {
      padding: 16px 20px;
  }

  .faq-answer p {
      font-size: 0.9rem;
  }

  .faq-icon {
      width: 28px;
      height: 28px;
      font-size: 12px;
      margin-left: 12px;
  }

  .faq-decoration {
      display: none;
  }
}

/* Animation for FAQ items */
@keyframes fadeInUp {
  from {
      opacity: 0;
      transform: translateY(20px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

.faq-card {
  animation: fadeInUp 0.6s ease forwards;
}

.faq-card:nth-child(1) { animation-delay: 0.05s; }
.faq-card:nth-child(2) { animation-delay: 0.1s; }
.faq-card:nth-child(3) { animation-delay: 0.15s; }
.faq-card:nth-child(4) { animation-delay: 0.2s; }

.footer-info {
  position: relative;
  padding: 60px 0 40px;
  min-height: 320px;
  background-color: #ffffff;
  background-size: cover;
  overflow: hidden;
}

/* Lớp overlay mờ phủ lên ảnh nền với gradient */
.footer-info::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0f0f14 0%, #1a1a24 100%);
  z-index: 0;
}

/* Thêm pattern trang trí */
.footer-info::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: 0;
}

/* Đảm bảo nội dung nằm trên overlay */
.footer-info .container {
  position: relative;
  z-index: 1;
}

/* Thêm đường viền trên cùng */
.footer-info::before {
  border-top: 3px solid #4a90e2;
}

.footer-info h3 {
  font-size: 20px;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 12px;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Cải thiện gạch chân tiêu đề */
.footer-info h3:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #4a90e2, #357abd);
  border-radius: 2px;
}

.footer-info p {
  margin-bottom: 15px;
  font-size: 15px;
  line-height: 1.6;
  display: flex;
  justify-content: start;
  align-items: center;
}

.info-col img {
  width: 80%;
  height: auto;
  margin-bottom: 20px;
  filter: brightness(1.1);
  transition: transform 0.3s ease;
}

.info-col img:hover {
  transform: scale(1.05);
}

.info-col p {
  color: #c5c5cc;
  font-size: 14px;
  line-height: 1.7;
}

.footer-info i {
  width: 20px;
  margin-right: 8px;
  color: #4a90e2;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: color 0.3s ease;
}

.footer-info ul {
  list-style: none;
  padding-left: 0;
}

.footer-info ul li {
  margin-bottom: 12px;
  position: relative;
}

.footer-info ul li a {
  color: #c5c5cc;
  text-decoration: none;
  font-size: 15px;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
  padding: 5px 0;
  border-radius: 4px;
}

.footer-info ul li a:hover {
  color: #ffffff;
  text-decoration: none;
  padding-left: 10px;
  background-color: rgba(74, 144, 226, 0.1);
}

.footer-info ul li a:hover i {
  color: #ffffff;
  transform: translateX(3px);
}

.footer-info ul li i {
  margin-right: 12px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.social-icons {
  display: flex;
  margin-top: 20px;
  gap: 12px;
}

.social-icons a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  text-decoration: none;
  color: #c5c5cc;
  background-color: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-icons a:hover {
  background-color: #4a90e2;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

/* Responsive cải tiến */
@media (max-width: 768px) {
  .footer-info {
    padding: 40px 0 30px;
  }
  
  .footer-info h3 {
    font-size: 18px;
    margin-bottom: 20px;
  }
  
  .info-col img {
    width: 60%;
    margin-bottom: 15px;
  }
  
  .footer-info ul li a {
    font-size: 14px;
  }
  
  .social-icons {
    justify-content: center;
  }
}

/* Thêm animation cho các elements */
.footer-info .info-col,
.footer-info .col-md-4 {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Divider giữa các cột */
.footer-info .col-md-4:not(:last-child) {
  position: relative;
}

.footer-info .col-md-4:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.2), transparent);
}

@media (max-width: 768px) {
  .footer-info .col-md-4:not(:last-child)::after {
    display: none;
  }
}

/* Bottom Section - Copyright */
.footer-copyright {
  background-color: #f14040;
  padding: 15px 0;
  text-align: center;
}

.footer-copyright p {
  font-size: 14px;
  color: #ffffff;
  font-weight: 400;
  margin-bottom: 0;
}
/* sticky btn */
#backtotop {
  background: linear-gradient(45deg, #1c1c22, #30303a) !important;
  height: 50px !important;
  width: 50px !important;
  position: fixed !important;
  right: 20px !important;
  bottom: 60px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #fff !important;
  font-size: 20px !important;
  border-radius: 50% !important;
  z-index: 100 !important;
  visibility: visible !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3) !important;
  transition: all 0.3s ease !important;
}
#backtotop:hover {
  background: #e91717 !important;
  transform: scale(1.1) !important;
}
/* Nút gọi và đăng ký bên trái */
.floating-buttons {
position: fixed;
right: 15px;
bottom: 30%;
transform: translateY(50%);
z-index: 999;
display: flex;
flex-direction: column;
align-items: flex-start;
}

.floating-button {
width:  70px;
height: 70px;
border: none;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
position: relative;
background-color: #28a745;
transition: transform 0.3s ease, box-shadow 0.3s ease;
cursor: pointer;
margin: 10px 0;
}

.btn-call {
background-color: #28a745;
animation: neon-green 1s ease-in-out infinite alternate;
}
.btn-register {
background-color: #dc3545;
animation: neon-red 1s ease-in-out infinite alternate;
}

/* Keyframes neon glow */
@keyframes neon-green {
from { box-shadow: 0 0 10px #28a745; }
to   { box-shadow: 0 0 15px #28a745; }
}
@keyframes neon-red {
from { box-shadow: 0 0 10px #dc3545; }
to   { box-shadow: 0 0 15px #dc3545; }
}

/* Icon luôn bounce nhẹ */
.floating-button i {
font-size: 28px;
color: #fff;
animation: bounce 2s infinite;
}
@keyframes bounce {
0%,100% { transform: translateY(0); }
50%     { transform: translateY(-5px); }
}

/* Scale + rotate khi hover */
.floating-button:hover {
transform: scale(1.15) rotate(-3deg);
}
.floating-button .label {
color: #fff;
margin-left: 5px;
font-weight: bold;
font-size: 16px;
}
.floating-button .tooltip {
display: none;
position: absolute;
right: calc(100% + 10px);
top: 50%;
transform: translateY(-50%);
background: rgba(0,0,0,0.8);
color: #fff;
padding: 12px 12px;
border-radius: 4px;
white-space: nowrap;
font-size: 14px;
pointer-events: none;
opacity: 0;
transition: opacity 0.2s ease;
}
.floating-button:hover .tooltip {
display: block;
opacity: 1;
}
@media (max-width: 767.98px) {
.floating-buttons {
display: none;
}
}  

/* CSS cho thanh ghim dưới bottom trên mobile */
.fixed-bottom-bar {
position: fixed;
bottom: 0;
left: 0;
right: 0;
z-index: 1000;
}

.footer-btn-register,
.footer-btn-call {
padding: 12px 0;
font-weight: 600;
text-transform: uppercase;
transition: all 0.3s ease;
border-radius: 0;
height: 50px;
display: flex;
align-items: center;
justify-content: center;
}

.footer-btn-register {
background: linear-gradient(135deg, #f44336, #e53935);
color: #ffffff;
border: none;
}

.footer-btn-register:hover,
.footer-btn-register:focus {
background-color: #e55c00;
color: #ffffff;
}

.footer-btn-call {
background-color: #28a745;
color: #ffffff;
border: none;
}

.footer-btn-call:hover,
.footer-btn-call:focus {
background-color: #218838;
color: #ffffff;
}

/* Đảm bảo thanh chỉ hiển thị trên mobile */
@media (min-width: 768px) {
.fixed-bottom-bar {
display: none !important;
}
}
.footer-btn-register:active,
.footer-btn-call:active {
transform: scale(0.97);
}
/* ==================CSS for trangloai.php============================*/
.trangloai-news-area {
  padding: 10px 0;
}

.trangloai-news-card {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  background-color: #fff;
  margin-bottom: 30px;
}

.trangloai-news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.trangloai-news-img-container {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.trangloai-news-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.trangloai-news-card:hover .trangloai-news-img {
  transform: scale(1.05);
}

.trangloai-news-content {
  padding: 20px;
}

.trangloai-news-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
}

.trangloai-news-title a {
  color: #e43232;
  text-decoration: none;
  transition: color 0.3s ease;
}

.trangloai-news-meta {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  color: #6c757d;
  font-size: 0.85rem;
}

.trangloai-news-meta i {
  color: #cccccc;
  margin-right: 5px;
}

.trangloai-news-summary {
  color: #555;
  font-size: 0.95rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.pagination {
  justify-content: center;
  margin-top: 40px;
}

.page-link {
  color: #2c3e50;
  border: none;
  margin: 0 5px;
  border-radius: 4px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  transition: all 0.3s ease;
}

.page-link:hover {
  background-color: #f8f9fa;
  color: #fa2626;
}

.page-item.active .page-link {
  background-color: #ffffff !important;
  color: #ff2e2e;
}

.empty-content {
  padding: 40px 20px;
  text-align: center;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.empty-content i {
  font-size: 3rem;
  color: #3498db;
  margin-bottom: 15px;
}

@media (max-width: 767.98px) {
  .trangloai-news-title {
    font-size: 1.1rem;
  }
  .trangloai-news-card {
    flex-direction: column !important;
    display: flex !important;
  }

  .trangloai-news-img-container {
    width: 100% !important;
    flex: none !important;
    padding: 0;
  }

  .trangloai-news-content {
    width: 100% !important;
    flex: none !important;
    padding: 15px !important;
  }
}

/*===================CSS right_bar.php========================*/
/* =================================
   1. LAYOUT & STRUCTURE
   ================================= */
   .rightBar {
    width: 100%;
    max-width: 350px;
  }
  
  /* =================================
     2. SIDEBAR WIDGET BASE
     ================================= */
  .sidebar-widget {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.6s ease forwards;
  }
  
  .sidebar-widget:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.35);
  }
  
  .sidebar-widget-title {
    background: linear-gradient(135deg, #f00129, #c80020);
    color: white;
    padding: 20px;
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
  }
  
  .sidebar-widget-title::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;
  }
  
  .sidebar-widget:hover .sidebar-widget-title::before {
    left: 100%;
  }
  
  .sidebar-widget-content {
    padding: 16px 8px;
  }
  
  /* =================================
     3. FORM STYLING
     ================================= */
  .sidebar-form-group {
    margin-bottom: 12px;
  }
  .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;
  }
  
  .sidebar-form-input, 
  .sidebar-form-textarea, 
  .sidebar-form-select {
    width: 100%;
    border: 2px solid #e8ecf4;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 0.95rem;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
  }
  
  .sidebar-form-input:focus, 
  .sidebar-form-textarea:focus, 
  .sidebar-form-select:focus {
    outline: 2px solid #a3dbff;
    outline-offset: 2px;
    border-color: #457b9d;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: white;
  }
  
  .sidebar-form-textarea {
    resize: vertical;
    min-height: 60px;
  }
  
  .sidebar-submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #f00129, #c80020);
    border: none;
    border-radius: 12px;
    padding: 14px 30px;
    font-weight: 600;
    font-size: 1rem;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
  }
  .sidebar-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
  }
  .sidebar-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(240, 1, 41, 0.4);
  }
  
  .sidebar-submit-btn:focus {
    outline: 2px solid #ea6666;
    outline-offset: 2px;
  }
  
  .sidebar-submit-btn::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;
  }
  
  .sidebar-submit-btn:hover::before {
    left: 100%;
  }
  
  /* =================================
     4. POSTS WIDGET
     ================================= */
  .sidebar-post-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #e8ecf4;
    transition: all 0.3s ease;
  }
  
  .sidebar-post-item:last-child {
    border-bottom: none;
  }
  
  .sidebar-post-item:hover {
    background: rgba(102, 126, 234, 0.05);
    border-radius: 10px;
    padding-left: 10px;
    padding-right: 10px;
  }
  
  .sidebar-post-image {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    margin-right: 15px;
    border: 2px solid #e8ecf4;
    flex-shrink: 0;
    transition: opacity 0.3s ease;
  }
  .sidebar-post-image.lazy {
    opacity: 0.5;
  }
  .sidebar-post-item:hover .sidebar-post-image {
    border-color: #457b9d;
    transform: scale(1.05);
  }
  
  .sidebar-post-title {
    color: #2d3748;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.4;
    transition: color 0.3s ease;
  }
  
  .sidebar-post-title:hover {
    color: #457b9d;
    text-decoration: none;
  }
  
  /* =================================
     5. CATEGORY WIDGET
     ================================= */
  .sidebar-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .sidebar-category-item {
    margin-bottom: 8px;
  }
  
  .sidebar-category-toggle {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    cursor: pointer;
  }
  .sidebar-category-toggle:focus {
    outline: 2px solid #4A90E2;
    outline-offset: 2px;
  }
  .sidebar-category-link {
    color: #2d3748;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
  }
  
  .sidebar-category-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    transition: left 0.3s ease;
  }
  
  .sidebar-category-link:hover::before {
    left: 0;
  }
  
  .sidebar-category-link:hover {
    color: #6fa2c2;
    text-decoration: none;
    transform: translateX(5px);
  }
  
  .toggle-icon {
    margin-left: 8px;
    transition: transform 0.3s ease;
  }
  
  .sidebar-category-item.open .toggle-icon {
    transform: rotate(180deg);
  }
  
  .collapsible-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }
  
  .sidebar-category-item.open .collapsible-list {
    max-height: 500px;
  }
  
  .sidebar-subcategory-list {
    list-style: none;
    padding: 0;
    margin: 8px 0 0 30px;
  }
  
  .sidebar-subcategory-link {
    color: #718096;
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
  }
  
  .sidebar-subcategory-link:hover {
    color: #667eea;
    text-decoration: none;
    background: rgba(102, 126, 234, 0.05);
    transform: translateX(3px);
  }
  
  /* =================================
     6. ANIMATIONS
     ================================= */
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .sidebar-widget:nth-child(1) { animation-delay: 0.1s; }
  .sidebar-widget:nth-child(2) { animation-delay: 0.2s; }
  .sidebar-widget:nth-child(3) { animation-delay: 0.3s; }
  
  /* =================================
     7. RESPONSIVE DESIGN
     ================================= */
  @media (max-width: 768px) {
    .rightBar {
      max-width: 100%;
    }
    
    .sidebar-widget-content {
      padding: 20px;
    }
    
    .sidebar-register-widget {
      display: block !important;
    }
  }
