/*=============================================
  HOMEPAGE REDESIGN - Style
  Primary: #6cbee4  Secondary: #1B2A6B
  Dark: #025692
=============================================*/

/* ---- Global Section Styles ---- */
:root {
  --primary-color: #6cbee4;
  --secondary-color: #1b2a6b;
}

.home-stats .section-title,
.home-about .section-title,
.home-why-choose .section-title,
.home-programs .section-title,
.home-featured-tutors .section-title,
.home-reviews .section-title,
.home-news-redesign .section-title,
.home-contact .section-title {
  text-align: center;
  font-size: 35px;
  font-weight: 700;
  color: #212b36;
  margin-bottom: 35px;
  position: relative;
  text-transform: math-auto;
  letter-spacing: 0.5px;
  color: #000c54;
}

.home-why-choose .section-title span,
.home-programs .section-title span,
.home-about .about-title span {
  color: #6cbee4;
}

.home-why-choose .section-title:after,
.home-programs .section-title:after,
.home-featured-tutors .section-title:after,
.home-reviews .section-title:after,
.home-news-redesign .section-title:after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: #6cbee4;
  margin: 12px auto 0;
  border-radius: 2px;
}

/* ========== SLIDER OVERLAY ========== */
.widget.slider .item {
  position: relative;
  overflow: hidden;
}

.widget.slider .item .slide-link {
  display: block;
  line-height: 0;
}

.widget.slider .item img {
  width: 100%;
  height: auto;
  display: block;
}

.widget.slider .slide-overlay-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.35) 50%,
    rgba(0, 0, 0, 0.15) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.widget.slider .slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  pointer-events: none;
  z-index: 2;
}

.widget.slider .slide-overlay > .container {
  pointer-events: auto;
}

.widget.slider .slide-title {
  color: #fff;
  font-size: 52px;
  font-weight: 700;
  line-height: 1.2;
  max-width: 620px;
  margin: 0 0 28px;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.55);
  letter-spacing: 0.3px;
}

.widget.slider .slide-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #3d92e6, #1b2a6b);
  color: #fff;
  padding: 14px 38px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(27, 42, 107, 0.35);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease;
}

.widget.slider .slide-cta:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #1b2a6b, #3d92e6);
  box-shadow: 0 10px 26px rgba(27, 42, 107, 0.45);
  color: #fff;
}

.widget.slider .slide-cta i {
  font-size: 14px;
}

@media (max-width: 991px) {
  .widget.slider .slide-title {
    font-size: 32px;
    max-width: 90%;
    margin-bottom: 20px;
  }

  .widget.slider .slide-cta {
    padding: 11px 28px;
    font-size: 14px;
  }
}

@media (max-width: 575px) {
  .widget.slider .slide-title {
    font-size: 22px;
    margin-bottom: 14px;
  }

  .widget.slider .slide-cta {
    padding: 9px 22px;
    font-size: 13px;
  }
}

/* ========== HEADER REDESIGN: 2-Tier Layout ========== */

/* --- Tier 1: Topbar (Dark Navy) --- */
.header-redesign .header-topbar {
  background: #0a1628;
  padding: 8px 0;
  color: #fff;
  font-size: 13px;
}

.header-redesign .topbar-social {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-redesign .topbar-social a {
  color: #fff;
  font-size: 15px;
  transition: opacity 0.3s;
  text-decoration: none;
}

.header-redesign .topbar-social a:hover {
  opacity: 0.75;
  color: #fff;
}

.header-redesign .topbar-contact {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
}

.header-redesign .topbar-contact span {
  color: #fff;
  font-size: 13px;
}

.header-redesign .topbar-contact i {
  margin-right: 4px;
}

.header-redesign .topbar-divider {
  margin: 0 8px;
  opacity: 0.5;
}

.header-redesign .topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-redesign .topbar-user-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s;
  margin-right: 4px;
}

.header-redesign .topbar-user-icon:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.header-redesign .btn-topbar {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
  border: none;
}

.header-redesign .btn-topbar-blue {
  background: #2b6cb0;
  color: #fff;
}

.header-redesign .btn-topbar-blue:hover {
  background: #1e5a96;
  color: #fff;
}

.header-redesign .btn-topbar-gold {
  background: #d4a843;
  color: #fff;
}

.header-redesign .btn-topbar-gold:hover {
  background: #c09530;
  color: #fff;
}

/* --- Tier 2: Main Navigation (White) --- */
.header-redesign .header-mainnav {
  background: #fff;
  padding: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  position: relative;
}

.header-redesign .header-mainnav > .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
}

.header-redesign .mainnav-logo img {
  max-height: 50px;
  width: auto;
}

.header-redesign .mainnav-menu {
  flex: 1;
  display: flex;
  justify-content: center;
}

/* Override default menu styles for redesigned header */
.header-redesign .mainnav-menu .navbar-content {
  width: 100%;
}

.header-redesign .mainnav-menu .navbar-d .nav.navbar-nav {
  justify-content: center;
}

.header-redesign .mainnav-menu .navbar-d .nav.navbar-nav > li > a {
  color: #0a1628;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  padding: 18px 12px;
  font-family: "Roboto", Arial, sans-serif;
  transition: color 0.3s;
}

.header-redesign .mainnav-menu .navbar-d .nav.navbar-nav > li > a:hover,
.header-redesign .mainnav-menu .navbar-d .nav.navbar-nav > li.active > a {
  color: #2b6cb0;
}

.header-redesign .mainnav-search {
  display: flex;
  align-items: center;
  margin-left: 12px;
}

.header-redesign .search-icon-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #d4a843;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 15px;
  text-decoration: none;
  transition: background 0.3s;
}

.header-redesign .search-icon-circle:hover {
  background: #c09530;
  color: #fff;
}

/* --- Mobile Header Toggle --- */
.header-redesign .header-mobile-toggle {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

.header-redesign .header-mobile-toggle a {
  color: #0a1628;
  font-size: 22px;
  text-decoration: none;
}

/* --- Hide old header elements if present --- */
.header-redesign #header-main,
.header-redesign #wide-nav,
.header-redesign .header-cta-buttons {
  display: none !important;
}

/* --- Responsive: Topbar + Main Nav --- */
@media (max-width: 991px) {
  .header-redesign .topbar-social,
  .header-redesign .topbar-contact,
  .header-redesign .topbar-user-icon {
    display: none !important;
  }

  .header-redesign .header-topbar .container {
    justify-content: flex-end;
  }

  .header-redesign .topbar-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .header-redesign .btn-topbar {
    padding: 5px 14px;
    font-size: 12px;
  }

  .header-redesign .mainnav-menu .navbar-d {
    display: none !important;
  }

  .header-redesign .mainnav-search {
    display: none !important;
  }

  .header-redesign .header-mainnav > .container {
    justify-content: center;
    min-height: 50px;
  }

  .header-redesign .mainnav-logo img {
    max-height: 42px;
            margin-left: 130px;
  }
}

@media (max-width: 575px) {
  .header-redesign .header-topbar {
    padding: 6px 0;
  }

  .header-redesign .btn-topbar {
    padding: 4px 12px;
    font-size: 11px;
  }
}

/* ========== SECTION: Stats Counter ========== */
.home-stats {
  background: transparent;
  padding: 28px 0;
  color: #333;
}

.home-stats .stats-item {
  padding: 8px 15px;
}

.home-stats .stats-inner {
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: 0px 0px 13px 0px rgba(0, 0, 0, 0.1);
  padding: 30px 15px;
  text-align: center;
}

.home-stats .stats-number {
  display: flex;
  justify-content: center;
  color: #0052b1;
  font-size: 45px;
  font-weight: 700;
  line-height: 40px;
  margin-bottom: 0;
}

.home-stats .stats-item p {
  color: #2e2e2e;
  font-size: 16px;
  font-weight: 500;
  margin-top: 8px;
  margin-bottom: 0;
  line-height: 1.3;
}

@media (max-width: 767px) {
  .home-stats {
    padding: 20px 0;
  }

  .home-stats .stats-number {
    font-size: 32px;
    line-height: 30px;
  }

  .home-stats .stats-item {
    margin-bottom: 10px;
    padding: 5px 10px;
  }

  .home-stats .stats-inner {
    padding: 15px 10px;
  }

  .home-stats .stats-item p {
    font-size: 14px;
  }
}

/* ========== SECTION: About / Gioi thieu (3 khoi) ========== */
.home-about {
  padding: 0;
  background: #fff;
}

/* --- Khoi 1: Text intro --- */
.home-about .about-intro {
  padding: 60px 0 50px;
  background: #fff;
}

.home-about .about-intro-inner {
  max-width: 70%;
  margin: 0 auto;
  text-align: center;
}

.home-about .about-subtitle {
  color: #6cbee4;
  font-size: 35px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.home-about .about-title {
  font-size: 35px;
  font-weight: 700;
  color: #000c54;
  margin-bottom: 22px;
  line-height: 1.3;
}

.home-about .about-desc {
  font-size: 15px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 15px;
}

.home-about .btn-about {
  display: inline-block;
  background: #d4a843;
  color: #fff;
  padding: 12px 30px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  margin-top: 15px;
  transition: all 0.3s ease;
}

.home-about .btn-about:hover {
  background: #c09530;
  color: #fff;
}

.home-about .btn-about i {
  margin-right: 8px;
}

/* --- Khoi 2: Banner hinh anh --- */
.home-about .about-banner {
  width: 100%;
  justify-items: center;
  line-height: 0;
}

.home-about .about-banner img {
  width: 600px;
  height: auto;
  display: block;
}

.fixwidth {
  max-width: 1260px;
  margin: auto;
}

.home-about .img-banner {
  position: relative;
  padding-bottom: 45px;
}

.home-about .img-banner::before {
  position: absolute;
  content: "";
  width: 100%;
  height: 50%;
  background: #f5f5f5;
  bottom: 0;
}

/* --- Khoi 3: 3 card gia tri (nen xanh navy) --- */
.home-about .about-values {
  padding: 50px 0;
  background-color: #f5f5f5;
}

.home-about .about-values .value-card {
  text-align: center;
  border-radius: 15px;
  background: radial-gradient(50% 50% at 50% 50%, #025bc3 0%, #0f4699 100%);
  position: relative;
  padding: 60px 40px 40px 40px;
}

.home-about .about-values .value-icon {
  width: 85px;
  height: 85px;
  border-radius: 50%;
  background: #d4a843;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  position: absolute;
  top: -45px;
  left: 50%;
  transform: translateX(-50%);
}

.home-about .about-values .value-icon i {
  color: #fff;
  font-size: 50px;
}

.home-about .about-values .value-card h4 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.home-about .about-values .value-card p {
  font-size: 14px;
  color: #fff;
  line-height: 1.7;
  margin: 0;
}

/* --- Responsive About --- */
@media (max-width: 991px) {
  .home-about .about-intro-inner {
    max-width: 90%;
  }

  .home-about .about-banner-content {
    flex-direction: column;
    gap: 25px;
    padding: 30px 0;
  }

  .home-about .about-banner,
  .home-about .about-banner-overlay {
    min-height: 220px;
  }

  .home-about .banner-center h2 {
    font-size: 22px;
  }

  .home-about .about-values {
    padding: 40px 0;
  }
}

@media (max-width: 575px) {
  .home-about .about-intro {
    padding: 40px 0 30px;
  }

  .home-about .about-intro-inner {
    max-width: 95%;
  }

  .home-about .about-title {
    font-size: 24px;
  }

  .home-about .about-banner-content {
    gap: 15px;
    padding: 25px 15px;
  }

  .home-about .banner-center h2 {
    font-size: 18px;
  }

  .home-about .banner-center h3 {
    font-size: 13px;
  }

  .home-about .about-values {
    padding: 30px 0;
  }

  .home-about .about-values .value-card {
    padding: 50px 15px;
  }
}

/* ========== SECTION: Why Choose Us ========== */
.home-why-choose {
  padding: 60px 0;
  background: #f5f9fc;
}

.home-why-choose .section-title {
  margin-bottom: 65px !important;
  font-size: 35px;
}

.why-card {
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  height: 100%;
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.2);
  padding: 60px 40px 40px 40px;
  position: relative;
}

.why-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(108, 190, 228, 0.2);
  border-color: #6cbee4;
}

.why-card img {
  width: 100px;
  height: 100px;
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translate(-50%, 20%);
}

.why-card h4 {
  font-size: 25px;
  font-weight: 600;
  color: #6cbee4;
  margin-bottom: 12px;
}

.why-card h4::before {
  position: absolute;
  content: "";
  width: 30%;
  height: 2px;
  background: #6cbee4;
  left: 50%;
  transform: translateX(-50%);
  top: 95px;
}

.why-card p {
  color: #666;
  line-height: 1.7;
  font-size: 14px;
  margin: 0;
}

@media (max-width: 991px) {
  .home-why-choose {
    padding: 50px 0;
  }

  .why-card {
    padding: 50px 20px;
  }
}

/* ========== SECTION: Programs ========== */
.home-programs {
  padding: 60px 0;
  background-image: url("../../uploads/background/bg-tutor.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.program-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
}

.program-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(108, 190, 228, 0.2);
  border-color: #6cbee4;
}

.program-image {
  overflow: hidden;
  height: 190px;
  position: relative;
}

.program-image a {
  display: block;
  width: 100%;
  height: 100%;
}

.program-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.program-card:hover .program-image img {
  transform: scale(1.05);
}

/* Play icon overlay - always visible like reference */
.program-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(108, 190, 228, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
  transition: all 0.3s ease;
  z-index: 2;
}

.program-play-icon i {
  color: #fff;
  font-size: 18px;
  margin-left: 3px;
}

.program-card:hover .program-play-icon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
  background: rgba(108, 190, 228, 1);
}

.program-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.program-name {
  font-size: 14px;
  font-weight: 700;
  color: #212b36;
  margin-bottom: 8px;
  text-transform: uppercase;
  line-height: 1.4;
}

.program-name a {
  color: #212b36;
  text-decoration: none;
  transition: color 0.3s;
}

.program-name a:hover {
  color: #6cbee4;
}

.program-desc {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 12px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.program-badges {
  margin-bottom: 12px;
}

.program-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 15px;
  font-size: 11px;
  font-weight: 500;
  margin-right: 4px;
  margin-bottom: 4px;
}

.badge-essential {
  background: #e8f4f8;
  color: #6cbee4;
}

.badge-standard {
  background: #6cbee4;
  color: #fff;
}

.badge-premium {
  background: #025692;
  color: #fff;
}

.btn-program {
  display: inline-block;
  background: #6cbee4;
  color: #fff;
  padding: 8px 18px;
  border-radius: 25px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  align-self: flex-start;
}

.btn-program:hover {
  background: #3d92e6;
  color: #fff;
}

.btn-program i {
  margin-left: 5px;
}

@media (max-width: 991px) {
  .home-programs {
    padding: 50px 0;
  }
}

/* ========== SECTION: Featured Tutors ========== */
.home-featured-tutors {
  padding: 45px 0;
  background: #f5f9fc;
}

.home-featured-tutors .section-title-wrapper {
  position: relative;
}

.tutor-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.tutor-detail-card {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.tutor-detail-card:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Phần trên: Avatar + thông tin cơ bản cùng hàng */
.tutor-top {
  display: flex;
}

.tutor-avatar {
  width: 210px;
  height: 275px;
  flex-shrink: 0;
}

.tutor-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.tutor-basic {
  flex: 1;
  padding: 12px 15px;
}

.tutor-basic table,
.tutor-bottom table {
  width: 100%;
  font-size: 13px;
  border-collapse: collapse;
}

.tutor-basic table th,
.tutor-bottom table th {
  width: 110px;
  color: #1b2a6b;
  font-size: 16px;
  font-weight: 600;
  padding: 3px 5px;
  white-space: nowrap;
  vertical-align: top;
  text-align: left;
}

.tutor-basic table td,
.tutor-bottom table td {
  padding: 3px 5px;
  color: #333;
}

/* Phần dưới: Thông tin chi tiết full-width */
.tutor-bottom {
  padding: 10px 15px;
  border-top: 1px solid #f0f0f0;
}

/* Footer card: nút liên hệ */
.tutor-card-footer {
  padding: 8px 15px 12px;
  text-align: center;
}

.btn-tutor-contact {
  display: inline-block;
  background: #1b2a6b;
  color: #fff;
  padding: 6px 20px;
  border-radius: 20px;
  font-size: 13px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-tutor-contact:hover {
  background: #f5a623;
  color: #fff;
}

.btn-tutor-contact i {
  margin-right: 5px;
}

.tutor-pagination-wrap {
  text-align: center;
  margin-top: 25px;
}

.tutor-pagination {
  display: inline-flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 5px;
}

.tutor-pagination li a {
  display: block;
  width: 36px;
  height: 36px;
  line-height: 36px;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: #333;
  cursor: pointer;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
}

.tutor-pagination li a:hover,
.tutor-pagination li a.active {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

.tutor-pagination-dots {
  display: block;
  width: 36px;
  height: 36px;
  line-height: 36px;
  text-align: center;
  color: #999;
}

.tutor-total-count {
  text-align: center;
  margin-top: 15px;
  font-size: 14px;
  color: #666;
}

.widget.slider .slide-overlay > .container {
  padding: 0 30px !important;
}

.slider-wrap .owl-theme .owl-nav [class*="owl-"] {
  width: 25px !important;
}

@media (max-width: 991px) {
  .home-featured-tutors {
    padding: 35px 0;
  }

  .tutor-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575px) {
  .tutor-avatar {
    width: 185px;
    min-height: 130px;
  }

  .tutor-basic table th,
  .tutor-bottom table th {
    width: 80px;
    font-size: 12px;
  }

  .tutor-basic table td,
  .tutor-bottom table td {
    font-size: 12px;
  }

  .tutor-basic {
    padding: 8px 10px;
  }

  .tutor-bottom {
    padding: 8px 10px;
  }
}

/* ========== SECTION: Reviews ========== */
.home-reviews {
  padding: 60px 0;
  background: #fff;
}

.review-item {
  padding: 25px 5px 25px;
}

.review-card {
  position: relative;
  background: #fff;
  border-radius: 14px;
  padding: 50px 28px 28px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  border-top: 3px solid #6cbee4;
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(108, 190, 228, 0.22);
}

.review-quote-icon {
  position: absolute;
  top: -22px;
  left: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6cbee4, #3d92e6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 4px 10px rgba(61, 146, 230, 0.35);
}

.review-content {
  color: #4a4a4a;
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 20px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.review-content video{
  width: 290px;
}

.review-content p,
.review-content span {
  font-size: 15px !important;
  font-family: inherit !important;
  line-height: 1.7 !important;
  color: #4a4a4a !important;
  margin: 0 0 8px;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid #eef2f5;
}

.review-avatar {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #6cbee4;
}

.review-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.review-info {
  flex: 1;
  min-width: 0;
}

.review-name {
  font-weight: 700;
  color: #025692;
  font-size: 15px;
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.review-role {
  color: #6cbee4;
  font-size: 13px;
  font-style: italic;
}

.home-reviews .owl-nav button {
  width: 38px;
  height: 38px;
  border-radius: 50% !important;
  background: #6cbee4 !important;
  color: #fff !important;
  font-size: 18px !important;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.home-reviews .owl-nav .owl-prev {
  left: -20px;
}

.home-reviews .owl-nav .owl-next {
  right: -20px;
}

.home-reviews .owl-nav button:hover {
  background: #3d92e6 !important;
}

.home-reviews .owl-dots {
  margin-top: 20px;
  text-align: center;
}

.home-reviews .owl-dots .owl-dot span {
  background: #d0e8f5;
}

.home-reviews .owl-dots .owl-dot.active span {
  background: #6cbee4;
}

@media (max-width: 991px) {
  .home-reviews {
    padding: 50px 0;
  }

  .home-reviews .owl-nav .owl-prev {
    left: -5px;
  }

  .home-reviews .owl-nav .owl-next {
    right: -5px;
  }
}

/* ========== SECTION: News Redesign ========== */
.home-news-redesign {
  padding: 60px 0;
  background: #f5f9fc;
}

/* Override shared section-title for dual-color */
.home-news-redesign .section-title {
  font-size: 35px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
}

.home-news-redesign .section-title .title-gold {
  color: #f5a623;
}

.home-news-redesign .section-title .title-black {
  color: #1a1a1a;
  font-weight: 700;
}

/* 2-column layout: left ~60%, right ~40% */
.news-layout {
  display: flex;
  gap: 30px;
  align-items: stretch;
}

/* === LEFT COLUMN: 2 featured cards side-by-side === */
.news-left {
  flex: 0 0 60%;
  max-width: 60%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  align-content: start;
}

.news-featured-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
  border-bottom: 3px solid #f5a623;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.news-featured-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.news-featured-image {
  overflow: hidden;
}

.news-featured-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.news-featured-card:hover .news-featured-image img {
  transform: scale(1.05);
}

.news-featured-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-featured-date {
  color: #999;
  font-size: 13px;
  margin-bottom: 8px;
}

.news-featured-date i {
  margin-right: 4px;
  color: #bbb;
}

.news-featured-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  margin: 0 0 10px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-featured-title a {
  color: #1a1a1a;
  text-decoration: none;
  transition: color 0.3s;
}

.news-featured-title a:hover {
  color: #1b2a6b;
}

.news-featured-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin: 0 0 15px 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.btn-news-detail {
  display: inline-block;
  background: var(--primary-color);
  color: #fff;
  padding: 8px 22px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  align-self: flex-start;
}

.btn-news-detail:hover {
  background: #142050;
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(27, 42, 107, 0.3);
}

/* === RIGHT COLUMN: 4 horizontal small items === */
.news-right {
  flex: 0 0 calc(40% - 30px);
  max-width: calc(40% - 30px);
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.news-small-item {
  display: flex;
  align-items: center;
  gap: 15px;
  background: #fff;
  border-radius: 8px;
  padding: 0 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border-left: 4px solid #1b2a6b;
  transition: all 0.3s ease;
  flex: 1;
}

.news-small-item:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transform: translateX(3px);
}

.news-small-thumb {
  flex-shrink: 0;
  width: 85px;
  height: 85px;
  border-radius: 6px;
  overflow: hidden;
}

.news-small-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.news-small-item:hover .news-small-thumb img {
  transform: scale(1.08);
}

.news-small-info {
  flex: 1;
  min-width: 0;
}

.news-small-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-small-title a {
  color: #1a1a1a;
  text-decoration: none;
  transition: color 0.3s;
}

.news-small-title a:hover {
  color: #1b2a6b;
}

/* "Xem Thêm" button centered below layout */
.news-view-all {
  text-align: center;
  margin-top: 35px;
}

.btn-news-viewall {
  display: inline-block;
  background: var(--primary-color);
  color: #fff;
  padding: 12px 35px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
}

.btn-news-viewall:hover {
  background: #142050;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(27, 42, 107, 0.3);
  text-decoration: none;
}

.btn-news-viewall i {
  margin-left: 8px;
  font-size: 13px;
}

/* News Responsive */
@media (max-width: 991px) {
  .home-news-redesign {
    padding: 50px 0;
  }

  .news-layout {
    flex-direction: column;
    gap: 25px;
  }

  .news-left {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .news-right {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .news-featured-image img {
    height: 180px;
  }
}

@media (max-width: 575px) {
  .news-left {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .news-featured-image img {
    height: 200px;
  }

  .news-small-thumb {
    width: 70px;
    height: 70px;
  }

  .news-small-title {
    font-size: 13px;
  }

  .news-view-all {
    margin-top: 25px;
  }

  .btn-news-viewall {
    padding: 10px 28px;
    font-size: 14px;
  }
}

/* ========== SECTION: Contact Quick ========== */
.home-contact {
  padding: 60px 0;
  background: linear-gradient(135deg, #6cbee4, #3d92e6);
  color: #fff;
}

.home-contact h2 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 10px;
}

.home-contact h2 i {
  margin-right: 10px;
}

.home-contact .contact-subtitle {
  font-size: 15px;
  opacity: 0.9;
  margin-bottom: 25px;
  line-height: 1.6;
}

.contact-method {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.contact-method:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(5px);
}

.contact-icon {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-right: 14px;
  flex-shrink: 0;
}

.contact-info {
  flex: 1;
}

.contact-info strong {
  display: block;
  font-size: 15px;
  margin-bottom: 2px;
}

.contact-info span {
  font-size: 13px;
  opacity: 0.85;
}

.contact-link {
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.contact-link:hover {
  background: #fff;
  color: #3d92e6;
}

/* Form */
.contact-form-wrapper {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 30px 25px;
  backdrop-filter: blur(10px);
}

.contact-form-wrapper h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #fff;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 11px 14px;
  margin-bottom: 12px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.15);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.contact-form select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='6'%3E%3Cpath fill='%23fff' d='M0 0l6 6 6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 35px;
}

.contact-form select option {
  color: #212b36;
  background: #fff;
}

.contact-form textarea {
  resize: vertical;
  min-height: 90px;
}

.btn-submit {
  display: inline-block;
  background: #fff;
  color: #3d92e6;
  padding: 12px 35px;
  border-radius: 25px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-submit:hover {
  background: #212b36;
  color: #fff;
  transform: translateY(-2px);
}

.btn-submit i {
  margin-left: 8px;
}

@media (max-width: 991px) {
  .home-contact {
    padding: 50px 0;
  }

  .contact-form-wrapper {
    padding: 25px 20px;
  }
}

@media (max-width: 575px) {
  .contact-method {
    flex-wrap: wrap;
    gap: 10px;
  }

  .contact-link {
    width: 100%;
    text-align: center;
  }
}

/* ========== FOOTER Redesign (4 columns) ========== */
.footer-links-title {
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 10px;
}

.footer-links-title:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background: #6cbee4;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links li a {
  color: #ccc;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-links li a:hover {
  color: #6cbee4;
  transform: translateX(5px);
}

.footer-links li a i {
  margin-right: 8px;
  font-size: 12px;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background: #6cbee4;
  transform: translateY(-3px);
}

/* ========== Homepage full-width override ========== */
body.index #content > .container {
  max-width: 100%;
  padding: 0;
}

body.index #content > .container > .row {
  margin: 0;
}

body.index #content-sidebar {
  padding: 0;
}

/* ========== Slider overlay text (for homepage hero) ========== */
.home-slider .item {
  position: relative;
}

.home-slider .slide-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  z-index: 2;
  width: 80%;
  max-width: 700px;
}

.home-slider .slide-content h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 15px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.home-slider .slide-content p {
  font-size: 16px;
  margin-bottom: 20px;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.home-slider .slide-content .btn-slide {
  display: inline-block;
  background: #6cbee4;
  color: #fff;
  padding: 12px 30px;
  border-radius: 25px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.home-slider .slide-content .btn-slide:hover {
  background: #3d92e6;
  transform: translateY(-2px);
}

/* ========== Additional refinements ========== */
/* Smooth scroll for anchor links */
html {
  scroll-behavior: smooth;
}

/* Fix owl carousel on homepage */
body.index .owl-carousel .owl-stage-outer {
  overflow: hidden;
}

/* Section transition animations */
.home-stats,
.home-about,
.home-why-choose,
.home-programs,
.home-classes,
.home-featured-tutors,
.home-reviews,
.home-news-redesign,
.home-contact {
  overflow: hidden;
}

/* ========== SECTION: Danh sách lớp dạy kèm ========== */
.home-classes {
  padding: 50px 0;
  background: #fff;
}

.class-badge-wrap {
  text-align: center;
  margin-bottom: 12px;
}

.class-badge {
  display: inline-block;
  background: linear-gradient(135deg, #1b2a6b, #2b6cb0);
  color: #fff;
  padding: 8px 25px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.class-badge i {
  margin-right: 8px;
}

.class-subtitle {
  text-align: center;
  font-size: 15px;
  color: #555;
  margin-bottom: 25px;
}

.class-subtitle strong {
  color: #e74c3c;
  font-size: 18px;
}

/* Filter form */
.class-filter-form {
  background: #f8f9fa;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 25px;
}

.class-filter-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 15px;
}

.class-select,
.class-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  color: #333;
  background: #fff;
  transition: border-color 0.3s;
}

.class-select:focus,
.class-input:focus {
  border-color: #1b2a6b;
  outline: none;
}

.class-filter-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.btn-class-search {
  display: inline-block;
  background: var(--primary-color);
  color: #fff;
  padding: 10px 25px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-class-search:hover {
  background: #f5a623;
}

.btn-class-search i {
  margin-right: 5px;
}

.btn-class-viewall {
  display: inline-block;
  background: transparent;
  color: var(--secondary-color);
  padding: 10px 25px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  border: 2px solid var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-class-viewall:hover {
  background: var(--secondary-color);
  color: #fff;
}

.btn-class-viewall i {
  margin-right: 5px;
}

/* Card grid */
.class-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  transition: opacity 0.3s;
}

.class-card {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.class-card:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.class-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  background: #f0f4f8;
  border-bottom: 1px solid #e0e0e0;
}

.class-code {
  font-weight: 700;
  color: #1b2a6b;
  font-size: 14px;
}

.class-code i {
  margin-right: 4px;
}

.class-status-need {
  color: #e74c3c;
  font-size: 12px;
  font-weight: 600;
}

.class-status-done {
  color: #27ae60;
  font-size: 12px;
  font-weight: 600;
}

.class-card-body {
  padding: 12px 15px;
}

.class-card-body p {
  margin: 0 0 6px;
  font-size: 16px;
  color: #333;
  line-height: 1.5;
}

.class-card-body p i {
  width: 18px;
  text-align: center;
  color: #1b2a6b;
  margin-right: 4px;
}

.class-card-body p strong {
  color: #1b2a6b;
  font-size: 16px;
}

.class-card-footer {
  padding: 10px 15px;
  border-top: 1px solid #f0f0f0;
  text-align: center;
}

.btn-dang-ky-lop {
  display: inline-block;
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: #fff;
  padding: 7px 20px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-dang-ky-lop:hover {
  background: linear-gradient(135deg, #c0392b, #a93226);
  color: #fff;
  transform: translateY(-1px);
}

.btn-dang-ky-lop i {
  margin-right: 5px;
}

/* No result */
.class-no-result {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  color: #999;
  font-size: 15px;
}

.class-no-result i {
  margin-right: 8px;
  font-size: 20px;
}

/* Pagination */
.class-pagination-wrap {
  text-align: center;
  margin-top: 25px;
}

.class-pagination {
  display: inline-flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 5px;
}

.class-pagination li a {
  display: block;
  width: 36px;
  height: 36px;
  line-height: 36px;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: #333;
  cursor: pointer;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
}

.class-pagination li a:hover,
.class-pagination li a.active {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

.class-pagination-dots {
  display: block;
  width: 36px;
  height: 36px;
  line-height: 36px;
  text-align: center;
  color: #999;
}

.class-total-count {
  text-align: center;
  margin-top: 15px;
  font-size: 14px;
  color: #666;
}

#site-footer {
  background: #0a1023 !important;
}
/* Responsive */
@media (max-width: 991px) {
  .home-classes {
    padding: 35px 0;
  }

  .class-filter-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .class-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575px) {
  .class-filter-row {
    grid-template-columns: 1fr;
  }

  .class-filter-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-class-search,
  .btn-class-viewall {
    text-align: center;
  }

  .class-badge {
    font-size: 14px;
    padding: 6px 18px;
  }

  .class-card-header {
    flex-direction: column;
    gap: 5px;
    align-items: flex-start;
  }
  .about-values .mb-4,
  .home-why-choose .mb-4 {
    margin-bottom: 5rem !important;
  }
  .why-card h4 {
    margin-bottom: 30px;
  }
}
