* {
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
}

body {
  padding-top: 100px;
  overflow-x: hidden;
}

html {
  overflow-x: hidden;
}

.topbar a {
  font-size: 14px;
}

.topbar .social-icons a:hover,
.topbar .lang-switch a:hover {
  text-decoration: underline;
}

#topbar {
  transition: transform 0.3s ease;
  height: 40px;
}


#navbarContainer {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  width: 100%;
}

#mainNavbar {
  position: fixed;
  width: 100%;
  top: 40px;
  z-index: 1000;
  transition: top 0.3s ease;
}

#navbarContainer,
#navbarContainer ul,
#navbarContainer li,
#navbarContainer a,
#navbarContainer .nav-link,
#navbarContainer .dropdown-menu,
#navbarContainer .dropdown-item {
  font-family: 'Roboto', Arial, Helvetica, sans-serif !important;
}

.nav-item.dropdown:hover .dropdown-menu {
  display: block;
  margin-top: 0;
}

.navbar-nav .nav-link {
  position: relative;
  padding-bottom: 5px;
  transition: all 0.3s ease;
}

.btn.lien-he {
  border-radius: 30px;
  background-color: #c82333;
  border: none;
  color: #ffffff;
  text-transform: uppercase;
}

@media (max-width: 767.98px) {
  #topbar {
    display: none !important;
  }

  #mainNavbar {
    top: 0 !important;
    position: sticky;
    z-index: 1000;
  }
}

/* #navbarContainer.scrolled {
  box-shadow: 0 0px 10px rgba(0,0,0,0.2);
} */

.navbar-nav {
  flex-grow: 1;
}

.btn.lienhe {
  border-radius: 20px;
}

.search-box {
  position: relative;
}

#search {
  top: 100%;
  right: 0;
  width: 250px;
  opacity: 0;
  z-index: -1;
  position: absolute;
  transition: all 0.4s ease;
}

#search.show-search {
  opacity: 1;
  z-index: 999;
  transform: translateY(5px);
}

.dangky {
  margin-top: 20px;
  background-color: #ec1d23;
  border-radius: 20px;
}

.anh {
  background-color: white;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #ccc;
  margin-top: 10px;
  margin-bottom: 10px;
}

.anh img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}



#carouselExampleIndicators .carousel-item {
        max-height: 70vh; /* Chiều cao tối đa */
        overflow: hidden;
    }

    #carouselExampleIndicators img {
        width: 100%;
        height: auto;
        object-fit: cover; /* Giữ tỉ lệ và cắt cho vừa khung */
        max-height: 70vh;
    }

    @media (max-width: 768px) {
        #carouselExampleIndicators .carousel-item {
            max-height: 40vh;
        }

        #carouselExampleIndicators img {
            max-height: 40vh;
        }
    }

.banner-dangky {
  background-color: #e53935;
  border-radius: 0 0 30px 30px;
  color: white;
  padding: 30px 20px;
  margin-top: 20px;
}

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

.circle-icon img {
  width: 40px;
  height: 40px;
}

.gach-vang {
  width: 4px;
  height: 60px;
  background-color: yellow;
  margin: 0 15px;
  border-radius: 2px;
}

@media (max-width: 767.98px) {
  .gach-vang {
    display: none;
  }

  .text-trai {
    margin-bottom: 20px;
  }

}

.text-trai p {
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
}


.text-phai p {
  color: yellow;
  font-weight: bold;
  margin-bottom: 10px;
  text-align: center;
}

.text-phai {
  text-align: center;
}

@media(min-width: 768px) {
  .text-phai {
    text-align: right;
  }

  .circle-icon {
    margin: 0;
  }
}

.btn-dangky {
  padding: 8px 20px;
  border: 2px solid yellow;
  color: white;
  background: transparent;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
  display: inline-block;
  margin: 0 auto;
}

.btn-dangky:hover {
  background-color: yellow;
  color: #e53935;
}

@media (max-width: 767.98px) {
  .gach-vang {
    margin: 15px auto;
  }
}

.thongtin {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;

}

@media (max-width: 768px) {
    .content-row {
        flex-direction: column;
    }

    .info-col,
    .image-col {
        width: 100%;
    }

    .image-col img {
        max-height: 300px;
        object-fit: contain;
    }
}

.header-text h2 {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  line-height: 1.3;
  margin-bottom: 10px;
  text-transform: uppercase;
  color: #333;
  white-space: pre-line;
  font-family: 'Roboto', Arial, Helvetica, sans-serif !important;
}

.underline {
  width: 80px;
  height: 4px;
  background-color: #e53935;
  margin: 0 auto 40px auto;
  border-radius: 2px;
}

/* thongtin */
.content-row {
  display: flex;
  gap: 30px;
  align-items: center;
  justify-content: space-between;
}

/* Cột thông tin nằm bên trái */
.info-col {
  flex: 1 1 50%;
  min-width: 280px;
  font-size: 16px;
  color: #555;
}

/* Cột ảnh nằm bên phải */
.image-col {
  flex: 1 1 50%;
  min-width: 280px;
  text-align: right;
  padding-top: 30px;
}

.image-col img {
  max-width: 100%;
  height: 100%;
  border-radius: 8px;
}

.info-col p {
  margin-bottom: 20px;
  line-height: 1.6;
}

.btn-xemthem {
  padding: 10px 25px;
  background-color: #e53935;
  color: white;
  border: none;
  border-radius: 25px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
}

.btn-xemthem:hover {
  background-color: #b32a29;
}

/* Responsive: xếp dọc trên mobile */
@media (max-width: 767.98px) {
  .content-row {
    flex-direction: column;
    text-align: center;
  }

  .image-col {
    text-align: center;
  }

  .header-text h2 {
    font-size: 22px;
  }
}


/*section-4columns*/
.section-4columns {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
}

/* Tiêu đề */
/* .header-text h2 {
  font-size: 28px;
  font-weight: bold;
  text-align: center;
  line-height: 1.3;
  margin-bottom: 10px;
  text-transform: uppercase;
  color: #333;
  white-space: pre-line;
} */

/* Gạch ngang */
.underline {
  width: 80px;
  height: 4px;
  background-color: #e53935;
  margin: 0 auto 40px auto;
  border-radius: 2px;
}

/* 4 cột */
.columns-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

/* Mỗi cột */
.column-item {
  flex: 1 1 22%;
  /* 4 cột với khoảng cách */
  min-width: 200px;
  text-align: center;
  color: #444;
}

/* Hình tròn chứa ảnh */
.circle-img {
  width: 100px;
  height: 100px;
  margin: 0 auto 15px auto;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}


.circle-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Số lớn */
.number {
  font-size: 26px;
  font-weight: 400;
  color: #e53935;
  margin-bottom: 8px;
}

/* Thông tin ngắn */
.info-text {
  font-size: 12px;
  line-height: 1.4;
  color: #666;
}

/* Responsive - xếp 2 cột trên màn nhỏ */
@media (max-width: 768px) {
  .columns-row {
    flex-wrap: wrap;
  }

  .column-item {
    flex: 1 1 45%;
    margin-bottom: 30px;
  }
}

/* Responsive - xếp 1 cột trên điện thoại nhỏ */
@media (max-width: 480px) {
  .column-item {
    flex: 1 1 100%;
  }
}

/* anhngu */

.title-wrapper h2 {
  font-family: "Roboto", Arial, Helvetica, sans-serif !important;
  font-size: 28px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.anhngu {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  text-align: center;
}

.anhngu h2 {
  font-size: 36px;
  text-transform: uppercase;
  margin-bottom: 10px;
  font-weight: bold;
  text-align: center;
  line-height: 1.3;
  color: #333;
  white-space: pre-line;
}

.anhngu .underline {
  width: 80px;
  height: 4px;
  background-color: #e53935;
  margin: 0 auto 40px auto;
  border-radius: 2px;
}

/* Grid container */
.grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* Mỗi item */
.program-item .image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.program-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.program-item .title-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(229, 57, 53, 0.8);
  color: white;
  padding: 10px 15px;
  font-size: 18px;
  font-weight: bold;
  text-transform: uppercase;
}

/* Hover effect */
.program-item:hover img {
  transform: scale(1.05);
}

/* Responsive: 2 cột */
@media (max-width: 768px) {
  .grid-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Responsive: 1 cột */
@media (max-width: 500px) {
  .grid-container {
    grid-template-columns: 1fr;
  }
}

/* tuvandangky */
.dangky-tuvan {
  padding: 50px 20px;
  background-color: #ffffff;
  font-family: "Roboto", Arial, Helvetica, sans-serif;
}

.form-tuvan {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: 2px solid #ec1c23;
}

.form-tuvan .form-label {
  font-weight: bold;
}

.btn-danger {
  background-color: #ec1c23;
  border: none;
  transition: 0.3s;
}

.btn-danger:hover {
  background-color: #c5121a;
}

.form-header {
  background-color: #ec1c23;
  font-weight: bold;
  font-size: 20px;
  padding: 12px;
  border-radius: 6px 6px 0 0;
  margin: -30px -30px 30px -30px;
}

.form-control,
.form-select {
  border-radius: 30px !important;
}

.btn {
  border-radius: 30px;
}

.story-section .card p {
  font-size: 0.95rem;
  min-height: 70px;
}

.story-section .card img {
  border: 3px solid #ec1c23;
}

.story-section .carousel {
  position: relative;
}

.story-section .carousel-control-prev,
.story-section .carousel-control-next {
  z-index: 2;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: #444 !important;
  border-radius: 50%;
  padding: 1px;
  background-size: 50% 50%;
  filter: invert(1);
}

.carousel-control-prev,
.carousel-control-next {
  opacity: 1;
  /* hiện rõ */
}

.slick-prev:before,
.slick-next:before {
  color: #ec1c23 !important;
  font-size: 30px;
}

.slick-prev,
.slick-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  color: #fff;
}

/* Đẩy nút ra khỏi .container để sát mép */
.slick-prev {
  left: -5px !important;
}
.slick-next {
  right: -5px !important;
}


.text-truncate {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
  vertical-align: bottom;
  max-width: 100%;
}

.hover-link {
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}

.hover-link:hover {
  text-decoration: underline;
}

.story-section h2 {
  font-size: 36px;
  text-transform: uppercase;
  margin-bottom: 10px;
  font-weight: bold;
  text-align: center;
  line-height: 1.3;
  color: #333;
  white-space: pre-line;
}

.team-section {
  /* background: url('/ice/asset/images/anhnengv.jpg') no-repeat center center/cover; */
  position: relative;
  overflow: hidden;
  color: #fff;
}

.bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: aliceblue;
  z-index: 1;
}

.max-w-600 {
  max-width: 600px;
}

.member-card {
  text-align: center;
  background-color: #fff;
  color: #000;
  border-radius: 6px;
  box-shadow: 0 0 10px rgb(0 0 0 / 0.1);
  padding: 1.5rem;
  margin-bottom: 2rem;
  width: 100%;
  max-width: 22%;
}

.member-card img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.social-icons a {
  color: #444;
  transition: color 0.3s ease;
  cursor: pointer;
}

.social-icons a:hover {
  color: #007bff;
}

.team-members {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

/* Responsive: màn nhỏ thì 2 cột */
@media (max-width: 992px) {
  .member-card {
    max-width: 48%;
  }
}

@media (max-width: 576px) {
  .member-card {
    max-width: 100%;
  }
}

/* tin tức sự kiện */

.tintuc h2 {
  font-size: 36px;
  text-transform: uppercase;
  margin-bottom: 10px;
  text-align: center;
  line-height: 1.3;
  color: #333;
  white-space: pre-line;
}

.underline {
  width: 100px;
  height: 3px;
  background-color: #007bff;
  margin: 0 auto;
  border-radius: 3px;
}

.news-date {
  background-color: #dc3545;
  color: white;
  font-size: 0.75rem;
  padding: 4px 6px;
  display: flex;
  flex-direction: column;
  border-bottom-right-radius: 5px;
  line-height: 1;
  z-index: 2;
}

.news-label {
  top: 95%;
  background-color: #c5121a;
  color: white;
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
  z-index: 3;
}

.news-slider .news-card {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.news-slider, .news-blog {
  position: relative;
}



a.text-primary {
  text-decoration: none !important;
}

.news-img {
  position: relative;
  /* overflow: hidden; */
  cursor: pointer;
}

/* Hovered image scaling effect */
.news-hover-img {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover effect */
.news-img:hover .news-hover-img {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.news-img img {
  height: 350px;
  width: 100%;
  object-fit: cover;
}

/* Overlay */
/* .news-hover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
  pointer-events: none;
} */

/* Dots effect */
/* .dots-loading {
  font-size: 2rem;
  color: white;
  position: absolute;
  top: 50%;
  left: -100px;
  transform: translateY(-50%);
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.5s ease;
  pointer-events: none;
} */

/* Hover effect */
/* .news-img:hover .news-hover-overlay {
  opacity: 1;
}

.news-img:hover .dots-loading {
  transform: translateY(-50%) translateX(-50%);
  opacity: 1;
  pointer-events: auto;
  cursor: pointer;
} */

/* Out effect (smooth out when not hover) */
/* .news-img:not(:hover) .dots-loading {
  transform: translateY(150%) translateX(-50%);
  opacity: 0;
} */

/* Optional blinking effect */
/* @keyframes blink {
  0% { opacity: 1; }
  50% { opacity: 0.3; }
  100% { opacity: 1; }
} */

/* Ensure responsive behavior */
/* .img-fluid {
  display: block;
  width: 100%;
  height: auto;
}  */


/* blog */
.news-card {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Tiêu đề bài viết */
.news-card .title {
  display: -webkit-box;
  -webkit-line-clamp: 2; /* Giới hạn 2 dòng */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.5em;
  min-height: 3em; /* 1.5em x 2 dòng */
}

.news-card .description {
  display: -webkit-box;
  -webkit-line-clamp: 3; /* Giới hạn 3 dòng */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.5em;
  min-height: 4.5em; /* 1.5em x 3 dòng */
}

.news-blog .news-card {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%; /* để card stretch bằng nhau khi dùng grid/flex */
}

.blog h2 {
  font-size: 36px;
  text-transform: uppercase;
  margin-bottom: 10px;
  text-align: center;
  line-height: 1.3;
  color: #333;
  white-space: pre-line;
}

/* hoatdong */

.hinhanhhoatdong h2 {
  font-size: 36px;
  text-transform: uppercase;
  margin-bottom: 10px;
  text-align: center;
  line-height: 1.3;
  white-space: pre-line;
  color: #ec1c23;
  font-family: 'Roboto', Arial, Helvetica, sans-serif !important;
}

.slider-hoatdong img {
  width: 100%;
  height: 200px !important;
  object-fit: cover;
}

.slider-hoatdong .slick-slide {
  padding: 0 8px;
}

.slider-hoatdong {
  margin: 0 -8px;
}

/* tai ngay bo de ielts */
.mauielts {
  background-color: #c82333;
}

.gachvang-doi {
  width: 8px;
  height: 60px;
  background-color: gold;
  border-radius: 4px;
}

.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1050;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Popup nằm giữa màn hình */
.popup-form {
  background-color: #fff;
  padding: 30px;
  border-radius: 12px;
  width: 100%;
  max-width: 500px;
  position: relative;
  z-index: 1060;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}


/* footer */
.acet-timeline-content {
  position: relative;
}

footer {
  background-color: #20222d;
}

/* Wrapper chính chứa viền chữ U */
.acet-branch-wrapper {
  position: relative;
  padding: 1.5rem 1rem;
  text-align: left;
  border-radius: 0 0 12px 12px;
  z-index: 0;
}

/* Viền trái, phải và đáy chữ U */
.acet-branch-wrapper::before,
.acet-branch-wrapper::after,
.acet-branch-wrapper::after {
  content: "";
  position: absolute;
  background-color: #dc3545;
  z-index: 0;
}

/* Viền trái */
.acet-branch-wrapper::before {
  left: 55px;
  top: 2.5rem;
  /* Đặt đúng ngay dưới tiêu đề */
  bottom: 0;
  width: 3px;
  border-radius: 0 0 0 12px;
}

/* Viền phải */
.acet-branch-wrapper::after {
  right: 10px;
  top: 2.5rem;
  bottom: 0;
  width: 3px;
  border-radius: 0 0 12px 0;
}

/* Viền đáy */
.acet-bottom-border {
  position: absolute;
  bottom: 0;
  left: 55px;
  /* khớp với viền trái */
  right: 10px;
  /* khớp với viền phải */
  height: 3px;
  background-color: #dc3545;
  border-radius: 0 0 12px 12px;
  z-index: 0;
}

/* Tiêu đề chi nhánh */
.branch-title {
  position: absolute;
  top: 0;
  left: 1.5rem;
  right: 1.5rem;
  background-color: #dc3545;
  color: #fff;
  border-radius: 12px !important;
  padding: 0.5rem 1rem;
  z-index: 2;
  font-weight: bold;
  text-align: center;
}

/* Nội dung mỗi chi nhánh */
.acet-content-wrapper {
  position: relative;
  padding-top: 1rem;
  z-index: 1;
}

/* Khoảng cách giữa các tiêu đề và nội dung */
.branch-title+.acet-content-wrapper {
  margin-top: 2px;
  margin-left: 50px;
}

.branch-info div {
  font-size: 0.75rem;
  /* nhỏ hơn mặc định */
  padding: 5px;
}

.gray-text a,
.gray-text p {
  color: #ced4da !important;
  text-decoration: none;
}

.footer-divider {
  border-top: 1px solid #ced4da;
  opacity: 0.3;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

/* biểu tượng hiển thị */

#contact-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
}

.contact-button {
  width: 50px;
  height: 50px;
  background-color: #EE191A;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: background 0.3s;
}

.contact-button:hover {
  background-color: #c91414;
}

.contact-options {
  display: none;
  flex-direction: column;
  align-items: center;
  margin-top: 10px;
}

#contact-widget.active .contact-options {
  display: flex;
}

.contact-options .option {
  margin-top: 10px;
  width: 45px;
  height: 45px;
  background: #fff;
  border-radius: 50%;
  color: #EE191A;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s;
}

.contact-options .option:hover {
  background: #f9f9f9;
}

#main-contact-icon {
  transition: opacity 0.5s ease;
}

/* CSS tintuc */
.banner-news {
  position: relative;
  background-image: url('../images/bannertintuc.jpg');
  background-size: cover;
  background-position: center;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
}

.banner-overlay {
  text-align: center;
  color: white;
  background-color: rgba(0, 0, 0, 0.4);
  padding: 40px 20px;
  width: 100%;
}

.banner-title {
  font-size: 40px;
  text-transform: uppercase;
  font-weight: bold;
  margin: 0;
}


.breadcrumbs {
  display: inline-block;
}

.puzzle-wrapper img {
  width: 100%;
  height: auto;
  clip-path: url(#puzzleClip);
  -webkit-clip-path: url(#puzzleClip);
  object-fit: cover;
  display: block;
  border-radius: 10px;
}


/* trang khóa học */
.banner-khoahoc {
  position: relative;
  background-image: url('../images/anhnguhocthuatbanner.jpg');
  background-size: cover;
  background-position: center;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
}

.banner-khoahoc .underline {
  width: 50%;
  height: 4px;
  background-color: #fff;
  margin: 10px auto 20px;
}

.section-english {
  padding: 40px;
  max-width: 1200px;
  margin: auto;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  font-size: 28px;
  font-weight: bold;
  color: #2c3e50;
}

@media (max-width: 768px) {
  .section-title h2 {
    font-size: 16px !important;
  }
}

@media (max-width: 768px) {
  .uts-title {
    font-size: 20px;
    text-align: center;
  }
}



.content-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.content-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.content-item .text {
  flex: 1;
  min-width: 250px;
}

.content-item .image {
  flex: 1;
  min-width: 250px;
}

.content-item img {
  width: 100%;
  height: 250px; /* hoặc chiều cao bạn muốn */
  object-fit: cover; /* đảm bảo ảnh không méo, cắt vừa khung */
  border-radius: 8px;
  display: block;
}

@media (max-width: 768px) {
  .content-item img {
    height: 140px; /* nhỏ lại cho mobile nếu muốn */
  }
}


.center-text-block {
  margin-top: 50px;
  display: flex;
  justify-content: center;
}

.center-text-block p {
  text-align: left;
  max-width: 800px;
  line-height: 1.6;
  margin: 0;
}

.section-dia-diem .container {
  max-width: 800px;
}


.ielts-skillset-section {
  margin-top: 50px !important;
  max-width: 800px;
  margin: 0 auto;
  text-align: justify;
}

.ielts-skillset-section p {
  display: block;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.sectionmoii{
  max-width: 800px;
  margin: 0 auto;
}

.img-full {
  width: 100%;
  height: 400px;
  display: block;
  object-fit: cover;
  border-radius: 8px; /* tuỳ chọn */
}

.skillset-info-section ul {
  padding-left: 1.5rem;
}

.skillset-info-section ul li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.skillset-info-section p {
  line-height: 1.8;
  text-align: justify;
}




/* lộ trình */

.lotrinh-title {
  text-transform: uppercase;
}

.lotrinh {
  padding: 50px 20px;
  text-align: center;
}

.lotrinh-title h2 {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 10px;
}

.lotrinh-title .underline {
  width: 80px;
  height: 4px;
  background-color: #3498db;
  margin: 0 auto;
  border-radius: 2px;
}

.lotrinh-button {
  margin-top: 30px;
}

.lotrinh-button button {
  padding: 12px 30px;
  font-size: 16px;
  background-color: #c5121a;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  border-radius: 40px;
}

.lotrinh-button button:hover {
  background-color: #c5121a;
}

/* khóa học */
.cackhoahoc {
  padding: 50px 20px;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.khoahoc-grid {
  display: grid;
  grid-template-columns: calc(50% - 5px) calc(50% - 5px);
  /* 2 cột với khoảng cách chính xác 10px */
  column-gap: 10px;
}

.khoahoc-item {
  display: flex;
  padding: 20px 0;
  /* Không thêm padding ngang để giữ sát lề */
  border-radius: 8px;
  width: 100%;
  align-items: center;
}

.khoahoc-item img {
  width: 220px;
  height:160px;
  object-fit: cover;
  border-radius: 4px;
  margin-right: 20px;
}

@media (max-width: 767.98px) {
  .khoahoc-img {
    width: 100px;
    height: auto;
  }

  .khoahoc-desc {
    display: none;
  }

  .khoahoc-content {
    flex: 1 1 100%;
  }
}

.khoahoc-item .info {
  flex: 1;
}

.khoahoc-item h3 {
  margin: 0 0 10px;
  font-size: 18px;
  color: #333;
}

.khoahoc-item button {
  padding: 8px 20px;
  font-size: 14px;
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.khoahoc-item button:hover {
  background-color: #2c80b4;
}


.custom-two-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.custom-two-columns .branch-info {
  width: calc(50% - 10px); /* 2 cột, trừ khoảng cách */

  padding: 10px;
  border-radius: 8px;
  
}

.social-icon {
  width: 50px;
  height: 50px;
  object-fit: contain;
  transition: opacity 0.3s ease;
    border: none;
  outline: none;
  box-shadow: none;
}

.social-icon:hover {
  opacity: 0.7;
}

.socialtt-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
  transition: opacity 0.3s ease;
    border: none;
  outline: none;
  box-shadow: none;
}

.socialtt-icon:hover {
  opacity: 0.7;
}

.section-english img {
    transition: transform 0.3s ease-in-out;
    border-radius: 6px;
}

.section-english img:hover {
    transform: scale(1.05);
}

.khoahoc-item img {
    flex-shrink: 0;
    object-fit: cover;
}

.content-item p {
  display: -webkit-box;
  -webkit-line-clamp: 3; /* Số dòng muốn hiển thị */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* .h3.fw-bold {
  color: white;
background: url('../asset/images/logoice.png') center;
background-size: cover;
background-clip: text;
color: transparent;
animation: animate 10s linear infinite;
}

@keyframes animate {
  to {
    background-position-x: -200px;
  }
} */

.border-all {
  border: 2px solid #ccc;          
  padding: 20px;               
  border-radius: 10px;         
  box-shadow: 0 0 10px rgba(0,0,0,0.05);  
  background-color: #fff;       
}

.tintuc-detail img {
    border-radius: 8px;
    object-fit: cover;
}
.tintuc-detail .content p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.prev-post a:hover span:first-child,
.next-post a:hover span:last-child {
    color: #0d6efd; /* Bootstrap primary */
    transition: color 0.3s ease;
}
.post-nav-link:hover {
    color: #e74c3c !important; /* đỏ nhạt hoặc bạn đổi mã màu nếu muốn */
}

/* .content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 10px 0;
} */

.teacher-card {
  text-align: center;
  background-color: #fff;
  color: #000;
  border-radius: 6px;
  box-shadow: 0 0 10px rgb(0 0 0 / 0.1);
  padding: 1.5rem;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.center-content-block {
  margin-top: 50px;
  display: flex;
  justify-content: center;
  padding: 0 15px;
}

.center-content-block > div {
  max-width: 700px;
  width: 100%;
  line-height: 1.8;
  text-align: left;
  word-wrap: break-word;
}

.center-content-block img {
    max-width: 100%;
    width: 700px !important;
    height: 467px !important;
    object-fit: cover;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
}

/* Nếu ảnh quá to gây tràn, đảm bảo container co lại */
.center-content-block {
    overflow-x: auto;
    padding: 10px 0;
}

/* Hiển thị dropdown cấp 3 khi hover */
/* Vị trí đúng cho dropdown cấp 2 (menu cấp 1) */
.navbar-nav .dropdown-menu {
    position: absolute;
}

/* Ẩn cấp 3 mặc định */
.dropdown-submenu > .dropdown-menu {
    display: none !important;
    position: absolute;
    top: 0;
    left: 100%;
    margin-top: 0;
    z-index: 999;
}

/* Chỉ hiển thị khi hover vào cấp 2 */
.dropdown-submenu:hover > .dropdown-menu {
    display: block !important;
}

/* Quan trọng: Cho cấp 2 có position relative để menu cấp 3 định vị theo */
.dropdown-submenu {
    position: relative;
}


.fixed-image {
    width: 840px;
    height: 543px;
    overflow: hidden;
}

.fixed-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
