﻿@charset "UTF-8";
/* ===== GLOBAL ===== */
:root {
  --primary: #0086FF;
  --primary-dark: #0054DA;
  --secondary: #DA271D;
  --secondary-dark: #a90e05;
  --accent: #ff6f00;
  --light-bg: #f8f9fa;
  --dark-bg: #1a237e;
  --dark: #28156F;
}

.linear-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Roboto", sans-serif;
  color: #333;
}

.truncate-h, .enrollment-card .card-title, .category-card .card-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-2, .enrollment-card .card-title, .category-card .card-title {
  -webkit-line-clamp: 2;
}

.line-3 {
  -webkit-line-clamp: 3;
}

.line-4 {
  -webkit-line-clamp: 4;
}

a {
  color: var(--secondary);
  text-decoration: none;
  transition: all 0.3s;
}

a:hover {
  color: var(--primary);
}

img {
  max-width: 100%;
  height: auto;
}

.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
  font-weight: 700;
  color: #222;
  font-size: 2rem;
}

.section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background: var(--primary);
  margin: 10px auto 0;
}

.section-title i {
  color: var(--secondary);
  margin-right: 8px;
}

/* ===== TOP BAR ===== */
.top-bar {
  background: #fff;
  padding: 10px 0;
  border-bottom: 2px solid var(--primary);
}

.logo-img {
  height: 55px;
  margin-right: 12px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.logo-title {
  font-weight: 800;
  font-size: 1rem;
  color: var(--dark);
  text-transform: uppercase;
}

.logo-sub {
  font-size: 0.7rem;
  color: var(--dark);
  font-weight: 600;
  text-transform: uppercase;
}

.top-info span {
  font-size: 0.85rem;
  color: #555;
}

/* ===== NAVIGATION ===== */
.main-nav {
  background: var(--primary) !important;
  padding: 0;
  z-index: 99999;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.main-nav .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.5);
}

.main-nav .navbar-toggler-icon {
  filter: brightness(0) invert(1);
}

.main-nav .nav-link {
  color: #fff !important;
  font-weight: 500;
  padding: 14px 18px !important;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  transition: background 0.3s;
}

.main-nav .nav-link:hover,
.main-nav .nav-link.active {
  background: rgba(0, 0, 0, 0.15);
}

.main-nav .dropdown-menu {
  border: none;
  border-radius: 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

/* Multi-level dropdown styles */
.multi-level-dropdown .dropdown-menu {
  position: absolute;
}

.multi-level-dropdown .has-children {
  position: relative;
}

.multi-level-dropdown .has-children > .submenu {
  display: none;
  position: absolute;
  top: 0;
  left: 100%;
  min-width: 200px;
  background: #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  padding: 5px 0;
  z-index: 2000;
}

.multi-level-dropdown .has-children:hover > .submenu {
  display: block;
}

.multi-level-dropdown .submenu .dropdown-item {
  padding-left: 16px;
}

/* small caret */
.multi-level-dropdown .caret {
  float: right;
}

.main-nav .dropdown-item:hover {
  background: var(--primary);
  color: #fff;
}

.main-nav .input-group {
  width: 200px;
}

/* ===================================================================
   MEGA MENU
   Desktop : full-width panel, image grid + sub-list columns
   Mobile  : accordion (max-height transition)
   =================================================================== */
/* ── Trigger item ── */
.nav-item.mega-item {
  position: static; /* stretch to navbar width */
}

/* ── Panel ── */
.mega-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: #fff;
  border-top: 3px solid var(--primary);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.14);
  z-index: 1500;
  /* Hidden by default */
  visibility: hidden;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s 0.22s;
  pointer-events: none;
}

/* Show on hover / focus-within */
.nav-item.mega-item:hover > .mega-menu,
.nav-item.mega-item:focus-within > .mega-menu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s 0s;
  pointer-events: auto;
}

/* ── Inner container ── */
.mega-menu > .container {
  padding-top: 0;
  padding-bottom: 0;
}

/* ── Header strip ── */
.mega-header {
  padding: 12px 0 10px;
  border-bottom: 1px solid #eef0f6;
}

.mega-heading {
  font-weight: 800;
  font-size: 1rem;
  color: var(--primary);
  letter-spacing: 0.3px;
}

.mega-see-all {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--secondary);
}
.mega-see-all:hover {
  color: var(--secondary-dark);
}

/* ── Columns grid ── */
.mega-cols {
  padding: 14px 0 18px;
  /* Each column is equal width, defined by Bootstrap .col */
}

/* ── Single column ── */
.mega-col {
  padding: 0 10px;
  border-right: 1px solid #f0f2f8;
}
.mega-col:last-child {
  border-right: none;
}

/* ── Category title (root node) ── */
.mega-cat-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid #eef0f6;
  /* Category thumbnail image */
  /* When image exists, stack vertically */
}
.mega-cat-title .mega-cat-icon {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  margin-bottom: 8px;
}
.mega-cat-title:has(.mega-cat-icon) {
  flex-direction: column;
  align-items: flex-start;
}
.mega-cat-title a {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--primary);
  text-decoration: none;
  line-height: 1.3;
}
.mega-cat-title a:hover {
  color: var(--primary-dark);
}

/* ── Sub-list (level 2) ── */
.mega-sub-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mega-sub-list li {
  display: flex;
  align-items: center;
}
.mega-sub-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 0.85rem;
  font-weight: 500;
  color: #444;
  text-decoration: none;
  width: 100%;
  transition: color 0.18s, padding-left 0.18s;
}
.mega-sub-list a i {
  font-size: 0.65rem;
  color: var(--secondary);
  flex-shrink: 0;
  transition: transform 0.18s;
}
.mega-sub-list a:hover {
  color: var(--primary);
  padding-left: 4px;
}
.mega-sub-list a:hover i {
  transform: translateX(2px);
}

/* ── Chevron on toggle link ── */
.mega-chevron {
  font-size: 0.7rem;
  margin-left: 4px;
  transition: transform 0.22s ease;
  vertical-align: middle;
}

.nav-item.mega-item:hover > .mega-toggle .mega-chevron,
.nav-item.mega-item:focus-within > .mega-toggle .mega-chevron {
  transform: rotate(180deg);
}

.navbar-collapse.show {
  height: calc(100vh - 40px);
  overflow-y: auto;
}

/* ================================================================
   MOBILE mega-menu: accordion
   ================================================================ */
@media (max-width: 991px) {
  /* Reset absolute panel to a collapsible block */
  .mega-menu {
    position: static !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
    border-top: none;
    box-shadow: none;
    background: rgba(0, 0, 0, 0.12);
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
  }
  /* Open state toggled by JS (.mega-open on parent li) */
  .nav-item.mega-item.is-open > .mega-menu {
    max-height: 1400px;
  }
  /* Chevron rotates when open */
  .nav-item.mega-item.is-open > .mega-toggle .mega-chevron {
    transform: rotate(180deg);
  }
  /* Header strip in mobile */
  .mega-header {
    padding: 10px 12px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }
  .mega-heading {
    color: #fff;
  }
  .mega-see-all {
    color: rgba(255, 255, 255, 0.8);
  }
  /* Columns stack vertically */
  .mega-cols {
    flex-direction: column;
    padding: 0;
  }
  .mega-col {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 16px;
  }
  .mega-col:last-child {
    border-bottom: none;
  }
  /* Images hidden on mobile to save space */
  .mega-cat-title .mega-cat-icon {
    display: none;
  }
  /* Category title link becomes white */
  .mega-cat-title {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    flex-direction: row !important;
    align-items: center !important;
  }
  .mega-cat-title a {
    color: #fff;
    font-size: 0.88rem;
  }
  /* Sub-list links white */
  .mega-sub-list a {
    color: rgba(255, 255, 255, 0.85);
    padding: 8px 0;
    font-size: 0.82rem;
  }
  .mega-sub-list a i {
    color: rgba(255, 255, 255, 0.6);
  }
  .mega-sub-list a:hover {
    color: #fff;
  }
  /* Ensure tap target for the main toggle link */
  .mega-toggle {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }
}
/* ================================================================
   MOBILE – other Bootstrap dropdowns + touch targets
   ================================================================ */
@media (max-width: 991px) {
  /* Standard Bootstrap dropdowns stay collapsible */
  .main-nav .dropdown-menu {
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: rgba(0, 0, 0, 0.1);
    padding: 0;
  }
  .main-nav .dropdown-item {
    color: rgba(255, 255, 255, 0.9);
    padding: 10px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    font-size: 0.83rem;
  }
  .main-nav .dropdown-item:hover, .main-nav .dropdown-item:focus {
    background: rgba(0, 0, 0, 0.15);
    color: #fff;
  }
  /* Sub-menu for dropdown-submenu */
  .dropdown-submenu > .dropdown-menu {
    position: static;
    box-shadow: none;
    padding-left: 16px;
  }
}
/* ===== HERO / BANNER ===== */
.hero-section {
  position: relative;
  overflow: hidden;
}

.hero-slide {
  position: relative;
  aspect-ratio: 2.75/1;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}

/*
.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26,35,126,.7), #0054da4c);
}
*/
.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 600px;
}

.hero-content h1 {
  font-size: 2.2rem;
  font-weight: 900;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
  font-size: 1.1rem;
}

.hero-content .btn-danger {
  background: var(--primary);
  border: none;
  padding: 10px 30px;
  font-weight: 600;
  border-radius: 50px;
}

.hero-info-box {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.95);
  padding: 25px;
  border-radius: 15px;
  max-width: 350px;
  z-index: 3;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero-info-box h5 {
  color: var(--primary);
  font-weight: 700;
}

/* ===== WHY CHOOSE US ===== */
.why-us-section {
  padding: 60px 0;
  position: relative;
}
.why-us-section:before {
  position: absolute;
  content: "";
  top: 0;
  right: 0;
  background: url("../images/chain-2.png") no-repeat center;
  background-size: cover;
  width: 400px;
  height: 350px;
  mix-blend-mode: hard-light;
}

.stat-card {
  text-align: center;
  padding: 1rem 20px;
}

.stat-icon {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  /*background: linear-gradient(135deg, var(--primary), var(--accent));*/
  border: 1px #ddd solid;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 15px;
}
.stat-icon img {
  width: 50px;
  aspect-ratio: 1;
  object-fit: contain;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--secondary);
  display: block;
}

.stat-label {
  font-size: 1rem;
  color: #666;
  font-weight: 700;
}

.stat-desc {
  font-size: 0.8rem;
  color: #999;
  margin-top: 5px;
}

/* ===== TRAINING LEVELS / CATEGORIES ===== */
.training-section {
  padding: 60px 0;
  background: var(--light-bg);
}

.course-list .slick-list {
  padding-top: 1rem;
  padding-bottom: 1rem;
  margin-left: -0.75rem;
  margin-right: -0.75rem;
}
.course-list .slick-slide {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.slick-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 99;
  left: -1.5rem;
}
.slick-arrow.next-arrow {
  left: auto;
  right: -1.5rem;
}
@media (max-width: 768px) {
  .slick-arrow {
    left: 0;
  }
  .slick-arrow.next-arrow {
    right: 0;
  }
}

.category-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  background: #fff;
}
.category-card .card-img-top {
  height: 200px;
  object-fit: cover;
}
.category-card .card-body {
  text-align: center;
  padding: 1rem;
}
.category-card .card-title {
  font-weight: 700;
  text-transform: uppercase;
  color: #333;
  height: 3rem;
}

.category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.btn-register {
  background: var(--secondary);
  color: #fff;
  border-radius: 50px;
  padding: 10px 40px;
  font-weight: 600;
  border: none;
  text-transform: uppercase;
}

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

/* ===== TRAINING SYSTEMS ===== */
.systems-section {
  padding: 60px 0;
  background: linear-gradient(90deg, var(--primary) 0, var(--primary-dark) 100%);
  color: #fff;
}

.system-card {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  aspect-ratio: 3/4;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  transition: transform 0.3s;
}
.system-card .btn-dk {
  border-radius: 50px;
  background: var(--secondary);
  color: #fff;
  padding: 0.25rem 1rem;
  font-size: 0.75rem;
}

.system-card:hover {
  transform: scale(1.03);
}

.system-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
}

.system-card-body {
  position: relative;
  z-index: 2;
  padding: 25px;
  width: 100%;
}
.system-card-body h4 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 5px;
  color: #fff;
}
.system-card-body .badge {
  background: var(--primary);
  font-size: 0.8rem;
  margin-bottom: 10px;
}
.system-card-body .btn-outline-light {
  border-radius: 50px;
  font-size: 0.8rem;
  padding: 5px 20px;
}

/* ===== ENROLLMENT INFO ===== */
.enrollment-section {
  padding: 60px 0;
  background: #F4F3F3;
}

.enrollment-list .slick-list {
  padding-top: 1rem;
  padding-bottom: 1rem;
  margin-left: -1rem;
  margin-right: -1rem;
}
.enrollment-list .slick-slide {
  padding-left: 1rem;
  padding-right: 1rem;
}

.enrollment-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s;
}
.enrollment-card .card-img-top {
  aspect-ratio: 1.5;
  object-fit: cover;
}
.enrollment-card .card-body {
  padding: 1rem;
}
.enrollment-card .card-title {
  font-weight: 600;
  font-size: 1.125rem;
  height: 2.75rem;
}
.enrollment-card .card-title a {
  color: #333;
}
.enrollment-card .card-title a:hover {
  color: var(--secondary);
}
.enrollment-card .card-text {
  font-size: 0.85rem;
  color: #777;
}
.enrollment-card .read-more {
  font-size: 0.875rem;
  color: var(--primary);
}

.enrollment-card:hover {
  transform: translateY(-5px);
}

/* ===== NEWS & EVENTS ===== */
.news-section {
  padding: 60px 0;
  position: relative;
}
.news-section:before {
  position: absolute;
  content: "";
  top: 0;
  right: 0;
  background: url("../images/chain-2.png") no-repeat center;
  background-size: cover;
  width: 400px;
  height: 350px;
  z-index: -1;
  mix-blend-mode: hard-light;
}
.news-section:after {
  position: absolute;
  content: "";
  bottom: 0;
  left: 0;
  background: url("../images/chain-1.png") no-repeat center;
  background-size: cover;
  width: 400px;
  height: 350px;
  z-index: -1;
  mix-blend-mode: hard-light;
}

.news-tabs {
  display: flex;
  flex-wrap: nowrap; /* never wrap to next line */
  overflow-x: auto; /* scroll horizontally on mobile */
  gap: 6px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  padding-bottom: 4px;
}
.news-tabs::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}
.news-tabs .nav-item {
  flex-shrink: 0; /* keep each tab its natural width */
}
.news-tabs .nav-link {
  color: #666;
  font-weight: 500;
  border: 2px solid #ddd;
  border-radius: 50px;
  padding: 6px 20px;
  margin: 0;
  font-size: 0.85rem;
  white-space: nowrap; /* prevent text wrapping inside tab */
}
.news-tabs .nav-link.active, .news-tabs .nav-link:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.news-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s;
}
.news-card img {
  height: 180px;
  object-fit: cover;
  width: 100%;
}
.news-card .card-body {
  padding: 15px;
}
.news-card .card-body .news-date {
  color: #939393;
  font-size: 0.875rem;
}
.news-card .card-title {
  font-size: 1.25rem;
  font-weight: 700;
}
.news-card.news-card-big img {
  height: auto;
  aspect-ratio: 1.5;
}
.news-card:hover {
  transform: translateY(-5px);
}

.news-item-side {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

.news-item-side img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 5px;
  flex-shrink: 0;
}

.news-item-side .news-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #333;
  line-height: 1.4;
}

.news-item-side .news-meta {
  font-size: 0.75rem;
  color: #999;
}

.news-sidebar-box {
  background: #f6f6f6;
}
.news-sidebar-box .sidebar-tabs {
  display: flex;
}
.news-sidebar-box .sidebar-tabs .sidebar-tab {
  background: var(--secondary);
  color: #fff;
  flex-basis: 50%;
  text-align: center;
  line-height: 48px;
  font-size: 0.875rem;
}
.news-sidebar-box .sidebar-tabs .sidebar-tab.active {
  background: var(--primary);
}
.news-sidebar-box .sidebar-content {
  padding: 1rem;
}
.news-sidebar-box .news-sidebar-numbered {
  display: flex;
  margin-bottom: 1rem;
}
.news-sidebar-box .news-num-badge {
  background: url("../images/calender-icon.png") no-repeat center;
  background-size: cover;
  width: 51px;
  height: 61px;
  margin-right: 1rem;
  text-align: center;
  padding-top: 1.5rem;
  font-weight: 700;
  color: var(--secondary);
  position: relative;
}
.news-sidebar-box .news-num-badge .month {
  font-size: 0.7rem;
  text-transform: uppercase;
  position: absolute;
  top: 2px;
  font-weight: 400;
  color: #666;
}
.news-sidebar-box .news-num-text {
  flex: 1;
}
.news-sidebar-box .news-num-text a {
  font-weight: 700;
  color: #000;
  text-transform: uppercase;
}
.news-sidebar-box .news-num-text a:hover {
  color: var(--primary);
}

.news-media {
  display: flex;
  margin-bottom: 1rem;
}
.news-media img {
  width: 140px;
  aspect-ratio: 1.5;
  object-fit: cover;
  margin-right: 0.5rem;
}
.news-media .card-body {
  flex: 1;
}
.news-media .card-body .news-date {
  font-size: 0.75rem;
  color: #939393;
}
.news-media .card-body a {
  font-size: 0.875rem;
  color: #000;
}

/* ===== GALLERY ===== */
.gallery-section {
  padding: 60px 0;
  background: #fff;
}

.gallery-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  height: 200px;
  background-size: cover;
  background-position: center;
  transition: transform 0.3s;
}

.gallery-item:hover {
  transform: scale(1.05);
}

.gallery-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
}

.gallery-item .gallery-title {
  position: absolute;
  bottom: 15px;
  left: 15px;
  right: 15px;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 2;
}

/* ===== CONSULTATION FORM ===== */
.consultation-section {
  padding: 50px 0 0;
  background: url("../images/bg-register.jpg") no-repeat center center;
  background-size: cover;
  color: #fff;
}
.consultation-section form {
  margin-bottom: 50px;
}

.consultation-section h3 {
  font-weight: 700;
}

.consultation-section .form-control,
.consultation-section .form-select {
  border-radius: 8px;
  border: none;
  padding: 12px 15px;
}

.consultation-section .btn-submit {
  background: var(--primary-dark);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 40px;
  font-weight: 700;
  text-transform: uppercase;
}

/* ===== FOOTER ===== */
.site-footer {
  background: url("../images/bg-footer.png") no-repeat center center;
  background-size: cover;
  color: #000;
  padding: 50px 0 20px;
}

.site-footer h5, .site-footer h6 {
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 15px;
}

.footer-address-item {
  font-size: 0.875rem;
  margin-top: 1rem;
}

.footer-logo-wrap {
  display: flex;
  align-items: center;
}
.footer-logo-wrap img {
  width: 80px;
  aspect-ratio: 1;
  object-fit: contain;
  margin-right: 0.5rem;
}
.footer-logo-wrap .footer-school-name, .footer-logo-wrap .footer-school-sub {
  font-weight: 700;
  color: var(--primary);
}

.footer-links {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}

.footer-links li {
  margin-bottom: 8px;
  flex-basis: 50%;
}

.footer-links a {
  color: #000;
  font-size: 0.85rem;
}

.footer-links a:hover {
  color: var(--primary);
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--secondary);
  color: #fff;
  transition: background 0.3s;
}

.social-icon:hover {
  background: var(--primary);
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  background: var(--primary);
  font-size: 0.875rem;
  padding: 0.5rem 0;
}

.form-subscribe {
  position: relative;
}
.form-subscribe input {
  border: 1px #a6a6a6 solid;
  background: transparent;
  border-radius: 20px;
}
.form-subscribe button {
  position: absolute;
  top: 2px;
  right: 2px;
  border-radius: 50%;
  width: 34px;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--primary);
  color: #fff;
  border: 0;
}

/* ===== HOTLINE FIXED ===== */
.hotline-fixed {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
}

.hotline-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 5px 20px rgba(211, 47, 47, 0.4);
  animation: pulse-phone 2s infinite;
}

@keyframes pulse-phone {
  0%, 100% {
    box-shadow: 0 5px 20px rgba(211, 47, 47, 0.4);
  }
  50% {
    box-shadow: 0 5px 30px rgba(211, 47, 47, 0.7);
  }
}
/* ===== PAGES ===== */
.page-header {
  background: linear-gradient(135deg, var(--primary), var(--dark-bg));
  color: #fff;
  padding: 40px 0;
  margin-bottom: 40px;
}

.page-header h1 {
  font-weight: 700;
  font-size: 1.8rem;
}

.breadcrumb-item a {
  color: rgba(255, 255, 255, 0.7);
}

.breadcrumb-item.active {
  color: #fff;
}

/* Course Detail */
.course-detail-header {
  margin-bottom: 30px;
}

.course-detail-header h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #222;
}

.course-info-box {
  background: var(--light-bg);
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 30px;
}

.course-info-box .info-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.course-info-box .info-item:last-child {
  border-bottom: none;
}

.course-info-box .info-item i {
  color: var(--primary);
  width: 20px;
  text-align: center;
}

/* Contact Page */
.contact-info-card {
  background: var(--light-bg);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  transition: transform 0.3s;
}

.contact-info-card:hover {
  transform: translateY(-5px);
}

.contact-info-card i {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 15px;
}

/* ===== ADMIN ===== */
.admin-sidebar {
  background: #1a1a2e;
  min-height: 100vh;
  color: #ccc;
  width: 260px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1040;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.admin-sidebar .sidebar-brand {
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.admin-sidebar .sidebar-brand-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #d32f2f, #ff6f00);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.admin-sidebar .sidebar-brand-text {
  display: flex;
  flex-direction: column;
}
.admin-sidebar .sidebar-brand-text span {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  letter-spacing: 0.02em;
}
.admin-sidebar .sidebar-brand-text small {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 2px;
}

.admin-sidebar .sidebar-nav {
  padding: 10px 0;
  flex: 1;
}

.admin-sidebar .sidebar-link {
  color: #b0b8cc;
  padding: 11px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  transition: all 0.25s;
  text-decoration: none;
}
.admin-sidebar .sidebar-link i {
  width: 18px;
  text-align: center;
  font-size: 0.95rem;
}
.admin-sidebar .sidebar-link:hover, .admin-sidebar .sidebar-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  border-left: 3px solid #0086ff;
  padding-left: 17px;
}

.admin-sidebar .sidebar-group {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.admin-sidebar .sidebar-group-toggle {
  width: 100%;
  background: none;
  border: none;
  color: #b0b8cc;
  padding: 11px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  text-align: left;
}
.admin-sidebar .sidebar-group-toggle:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}
.admin-sidebar .sidebar-group-toggle .group-icon {
  width: 18px;
  text-align: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.admin-sidebar .sidebar-group-toggle .group-label {
  flex: 1;
}
.admin-sidebar .sidebar-group-toggle .group-arrow {
  font-size: 0.7rem;
  transition: transform 0.3s;
  color: rgba(255, 255, 255, 0.35);
}
.admin-sidebar .sidebar-group-toggle[aria-expanded=true] .group-arrow {
  transform: rotate(180deg);
  color: rgba(255, 255, 255, 0.7);
}

.admin-sidebar .sidebar-group.open > .sidebar-group-toggle {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.admin-sidebar .sidebar-submenu {
  background: rgba(0, 0, 0, 0.18);
}

.admin-sidebar .sidebar-sublink {
  color: rgba(180, 190, 210, 0.85);
  padding: 9px 20px 9px 46px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}
.admin-sidebar .sidebar-sublink i {
  width: 15px;
  text-align: center;
  font-size: 0.82rem;
  opacity: 0.8;
}
.admin-sidebar .sidebar-sublink:hover, .admin-sidebar .sidebar-sublink.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border-left-color: #0086ff;
}
.admin-sidebar .sidebar-sublink.active {
  background: rgba(0, 134, 255, 0.12);
  color: #5bb4ff;
}

.admin-sidebar .sidebar-bottom-links {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 6px 0;
}

.admin-sidebar .sidebar-logout {
  color: #f48fb1 !important;
}
.admin-sidebar .sidebar-logout:hover {
  color: #fff !important;
  background: rgba(211, 47, 47, 0.2) !important;
  border-left-color: #d32f2f !important;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1039;
}
.sidebar-overlay.active {
  display: block;
}

.admin-content {
  margin-left: 260px;
  padding: 0;
  min-height: 100vh;
  background: #f0f2f5;
}

.admin-topbar {
  background: #fff;
  padding: 12px 24px;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}
.admin-topbar .topbar-title {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
}

.admin-body {
  padding: 24px;
}

.toast-success {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  background: #2e7d32;
  color: #fff;
  padding: 14px 22px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  animation: slideIn 0.5s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
.admin-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}
.admin-card .card-header {
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 14px 20px;
  font-weight: 600;
  font-size: 0.9rem;
}
.admin-card .card-body {
  padding: 20px;
}

.admin-table {
  margin: 0;
}
.admin-table th {
  font-weight: 600;
  font-size: 0.82rem;
  color: #555;
  border-top: none;
  white-space: nowrap;
}
.admin-table td {
  vertical-align: middle;
  font-size: 0.88rem;
}

.stat-widget {
  background: #fff;
  border-radius: 12px;
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
.stat-widget .stat-icon-admin {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #fff;
  flex-shrink: 0;
}
.stat-widget h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0;
}
.stat-widget p {
  margin: 0;
  color: #888;
  font-size: 0.85rem;
}

.dash-stat-card {
  background: #fff;
  border-radius: 14px;
  padding: 20px 20px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.dash-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.dash-stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #fff;
  flex-shrink: 0;
}

.dash-stat-red .dash-stat-icon {
  background: linear-gradient(135deg, #d32f2f, #ff6f00);
}

.dash-stat-blue .dash-stat-icon {
  background: linear-gradient(135deg, #1565c0, #42a5f5);
}

.dash-stat-green .dash-stat-icon {
  background: linear-gradient(135deg, #2e7d32, #66bb6a);
}

.dash-stat-orange .dash-stat-icon {
  background: linear-gradient(135deg, #f57c00, #ffb74d);
}

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

.dash-stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: #222;
  line-height: 1.1;
}

.dash-stat-label {
  font-size: 0.88rem;
  color: #666;
  margin-top: 2px;
  font-weight: 500;
}

.dash-stat-sub {
  font-size: 0.78rem;
  color: #999;
  margin-top: 4px;
}

.dash-stat-link {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  text-decoration: none;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}
.dash-stat-link:hover {
  background: #e0e0e0;
  color: #333;
}

.dash-mini-card {
  background: #fff;
  border-radius: 12px;
  padding: 18px 12px 14px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s;
}
.dash-mini-card:hover {
  transform: translateY(-2px);
}

.dash-mini-icon {
  font-size: 1.6rem;
  margin-bottom: 8px;
  display: block;
}

.dash-mini-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: #222;
  line-height: 1;
}

.dash-mini-label {
  font-size: 0.75rem;
  color: #888;
  margin-top: 4px;
}

/* Responsive */
@media (max-width: 991px) {
  .top-info {
    display: none !important;
  }
  .hero-info-box {
    display: none;
  }
  .hero-slide {
    height: 300px;
  }
  .hero-content h1 {
    font-size: 1.5rem;
  }
  .admin-sidebar {
    transform: translateX(-100%);
  }
  .admin-sidebar.sidebar-mobile-open {
    transform: translateX(0);
    box-shadow: 4px 0 30px rgba(0, 0, 0, 0.3);
  }
  .admin-content {
    margin-left: 0;
  }
}
/* ===== CATEGORY TREE ===== */
.category-tree {
  padding: 8px 0;
}

.cat-tree-item {
  border-bottom: 1px solid #f0f0f0;
}

.cat-tree-item:last-child {
  border-bottom: none;
}

.cat-tree-row {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  transition: background 0.2s;
  min-height: 52px;
}

.cat-tree-row:hover {
  background: #f8f9ff;
}

.cat-tree-row.cat-inactive {
  opacity: 0.55;
}

.cat-tree-row.cat-inactive:hover {
  opacity: 0.8;
}

.cat-level-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.cat-thumb {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #eee;
  flex-shrink: 0;
}

.cat-icon-box {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: #f5f5f5;
  flex-shrink: 0;
  font-size: 14px;
}

.cat-toggle {
  background: none !important;
  border: none !important;
  cursor: pointer;
  transition: transform 0.2s;
}

.cat-name {
  font-size: 0.92rem;
}

.cat-children {
  border-left: 2px solid #e8e8f0;
  margin-left: 40px;
}

/* ===== SETTINGS PASSWORD FIELD ===== */
.setting-password {
  position: relative;
}

.setting-password .toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #999;
}

@media (max-width: 767px) {
  .stat-number {
    font-size: 1.5rem;
  }
  .section-title {
    font-size: 1.3rem;
  }
}
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* =====================================================
   EDUCATION DESIGN SYSTEM
   For: Course / Article list & detail pages
   ===================================================== */
/* ---- Page Hero ---- */
.edu-page-hero {
  position: relative;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--dark) 100%);
  padding: 56px 0 40px;
  overflow: hidden;
  margin-bottom: 0;
}

.edu-page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.edu-page-hero__overlay {
  display: none;
}

.edu-page-hero__content {
  position: relative;
  z-index: 2;
  color: #fff;
}

.edu-page-hero__badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  padding: 4px 16px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.edu-page-hero__title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.25;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

/* ---- Breadcrumb ---- */
.edu-breadcrumb {
  --bs-breadcrumb-divider-color: rgba(255,255,255,.5);
  --bs-breadcrumb-item-active-color: #fff;
}

.edu-breadcrumb a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

.edu-breadcrumb a:hover {
  color: #fff;
}

/* ---- Content Section ---- */
.edu-content-section {
  padding-top: 48px;
  padding-bottom: 64px;
}

/* ---- Filter Bar ---- */
.edu-filter-bar {
  border-bottom: 2px solid #e8eaf0;
  padding-bottom: 20px;
}

.edu-filter-bar__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.edu-filter-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  background: #f1f3f8;
  color: #555;
  text-decoration: none;
  transition: all 0.25s;
  border: 2px solid transparent;
}

.edu-filter-pill:hover {
  background: #e3e8f5;
  color: var(--primary);
}

.edu-filter-pill.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ---- Category badge ---- */
.edu-article-cat-badge {
  display: inline-block;
  background: var(--secondary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* ---- Article Meta ---- */
.edu-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: #888;
}

/* ---- Featured Article ---- */
.edu-article-featured {
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.09);
  transition: box-shadow 0.3s;
}

.edu-article-featured:hover {
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.14);
}

.edu-article-featured__img-wrap {
  position: relative;
  height: 100%;
  min-height: 280px;
  max-height: 400px;
}

.edu-article-featured__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.edu-article-featured__img-wrap .edu-article-cat-badge {
  position: absolute;
  top: 16px;
  left: 16px;
}

.edu-article-featured__body {
  padding: 32px;
}

.edu-article-featured__title {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 12px;
}

.edu-article-featured__title a {
  color: #1a1a2e;
  text-decoration: none;
}

.edu-article-featured__title a:hover {
  color: var(--primary);
}

.edu-article-featured__desc {
  color: #666;
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

/* ---- Article Card ---- */
.edu-article-card {
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.edu-article-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.edu-article-card__img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.edu-article-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.edu-article-card:hover .edu-article-card__img {
  transform: scale(1.06);
}

.edu-article-card__img-wrap .edu-article-cat-badge {
  position: absolute;
  top: 12px;
  left: 12px;
}

.edu-article-card__body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.edu-article-card__title {
  font-size: 0.97rem;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 8px;
  flex: 1;
}

.edu-article-card__title a {
  color: #222;
  text-decoration: none;
}

.edu-article-card__title a:hover {
  color: var(--primary);
}

.edu-article-card__desc {
  font-size: 0.82rem;
  color: #777;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}

/* ---- Course Card ---- */
.edu-course-card {
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.edu-course-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.edu-course-card__img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.edu-course-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.edu-course-card:hover .edu-course-card__img {
  transform: scale(1.06);
}

.edu-course-card__img-wrap .edu-article-cat-badge {
  position: absolute;
  top: 12px;
  left: 12px;
}

.edu-course-card__body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.edu-course-card__title {
  font-size: 0.97rem;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 8px;
  flex: 1;
}

.edu-course-card__title a {
  color: #222;
  text-decoration: none;
}

.edu-course-card__title a:hover {
  color: var(--primary);
}

.edu-course-card__desc {
  font-size: 0.82rem;
  color: #777;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 10px;
}

.edu-course-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
  color: #888;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #f0f0f0;
}

/* ---- Edu Buttons ---- */
.edu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 26px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  transition: all 0.25s;
  cursor: pointer;
  border: 2px solid transparent;
}

.edu-btn--primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.edu-btn--primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
}

.edu-btn--outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.edu-btn--outline:hover {
  background: var(--primary);
  color: #fff;
}

/* ---- Sidebar ---- */
.edu-sidebar-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
  padding: 20px 24px;
  margin-bottom: 24px;
  position: sticky;
  top: 80px;
}

.edu-sidebar-card__title {
  font-size: 0.97rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f2f8;
}

.edu-sidebar-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.edu-sidebar-nav li {
  border-bottom: 1px solid #f2f2f2;
}

.edu-sidebar-nav li:last-child {
  border-bottom: none;
}

.edu-sidebar-nav a {
  display: block;
  padding: 10px 0;
  font-size: 0.88rem;
  color: #444;
  text-decoration: none;
  transition: color 0.2s, padding-left 0.2s;
}

.edu-sidebar-nav a:hover,
.edu-sidebar-nav a.active {
  color: var(--primary);
  padding-left: 6px;
  font-weight: 600;
}

.edu-sidebar-nav--child {
  padding-left: 14px;
  border-left: 2px solid #e8eaf0;
  margin: 4px 0 8px;
}

/* ---- Related list ---- */
.edu-related-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.edu-related-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.edu-related-item:last-child {
  border-bottom: none;
}

.edu-related-item__img-wrap {
  flex-shrink: 0;
  width: 80px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
}

.edu-related-item__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.edu-related-item__body {
  flex: 1;
  min-width: 0;
}

.edu-related-item__title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #333;
  line-height: 1.4;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.edu-related-item__title:hover {
  color: var(--primary);
}

/* ---- Article Detail ---- */
.edu-article-detail__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid #f0f2f8;
}

.edu-article-detail__cover {
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 28px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.edu-article-detail__cover img {
  width: 100%;
  display: block;
  max-height: 480px;
  object-fit: cover;
}

.edu-article-detail__lead {
  font-size: 1.05rem;
  font-weight: 500;
  color: #444;
  line-height: 1.75;
  padding: 18px 22px;
  background: #f8f9ff;
  border-left: 4px solid var(--primary);
  border-radius: 0 10px 10px 0;
  margin-bottom: 24px;
}

/* ---- Prose (article/course body content) ---- */
.edu-prose {
  font-size: 0.97rem;
  line-height: 1.85;
  color: #333;
}

.edu-prose h2, .edu-prose h3, .edu-prose h4 {
  font-weight: 700;
  color: #1a1a2e;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.edu-prose h2 {
  font-size: 1.4rem;
}

.edu-prose h3 {
  font-size: 1.2rem;
}

.edu-prose img {
  border-radius: 10px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
  max-width: 100%;
  height: auto;
}

.edu-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

.edu-prose table th {
  background: var(--primary);
  color: #fff;
  padding: 10px 14px;
  text-align: left;
}

.edu-prose table td {
  padding: 9px 14px;
  border-bottom: 1px solid #eee;
}

.edu-prose table tr:nth-child(even) td {
  background: #f8f9ff;
}

/* ---- Course Info Box ---- */
.edu-info-box {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.09);
}

.edu-info-box__header {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 16px 22px;
  font-weight: 700;
  font-size: 1rem;
}

.edu-info-box__list {
  list-style: none;
  padding: 8px 22px 16px;
  margin: 0;
}

.edu-info-box__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.9rem;
}

.edu-info-box__list li:last-child {
  border-bottom: none;
}

.edu-info-box__list li i {
  margin-top: 3px;
  flex-shrink: 0;
}

/* ---- Share bar ---- */
.edu-share-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 0;
  border-top: 2px solid #f0f2f8;
}

.edu-share-bar__label {
  font-weight: 600;
  font-size: 0.88rem;
  color: #555;
}

.edu-share-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  font-size: 0.88rem;
  transition: transform 0.2s, opacity 0.2s;
}

.edu-share-btn:hover {
  transform: scale(1.15);
  opacity: 0.9;
  color: #fff;
}

.edu-share-btn--fb {
  background: #1877f2;
}

.edu-share-btn--zalo {
  background: #0068ff;
}

.edu-share-btn--tw {
  background: #000;
}

/* ---- Search result info ---- */
.edu-search-result-info {
  padding: 12px 18px;
  background: #f0f4ff;
  border-radius: 10px;
  font-size: 0.9rem;
  color: #444;
  margin-bottom: 24px;
  border-left: 4px solid var(--primary);
}

/* ---- Empty state ---- */
.edu-empty-state {
  text-align: center;
  padding: 64px 24px;
  color: #aaa;
}

.edu-empty-state__icon {
  font-size: 3.5rem;
  display: block;
  margin-bottom: 16px;
  color: #dde;
}

/* ---- Pagination overrides for edu style ---- */
.pagination .page-link {
  color: var(--primary);
  border-color: #dee2e6;
  font-weight: 500;
  min-width: 40px;
  text-align: center;
}

.pagination .page-item.active .page-link {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.pagination .page-link:hover {
  background: #e8f0fe;
  color: var(--primary-dark);
}

/* ---- Responsive ---- */
@media (max-width: 767px) {
  .edu-page-hero__title {
    font-size: 1.4rem;
  }
  .edu-article-featured__img-wrap {
    min-height: 220px;
    max-height: 300px;
  }
  .edu-article-featured__body {
    padding: 20px;
  }
  .edu-filter-bar__inner {
    gap: 6px;
  }
  .edu-filter-pill {
    font-size: 0.78rem;
    padding: 6px 14px;
  }
  .navbar-toggler {
    padding: 2px 5px;
    margin: 0.25rem 0;
  }
  .search-nav-form {
    margin-bottom: 1rem;
  }
}
/* ===== MOBILE IMPROVEMENTS ===== */
/* --- Hero mobile --- */
@media (max-width: 575px) {
  .hero-section picture,
  .hero-section img {
    width: 100%;
    display: block;
  }
  .hero-section .carousel-inner a {
    display: block;
    line-height: 0;
  }
}
/* --- Why-us (stat cards) --- */
@media (max-width: 575px) {
  .why-us-section {
    padding: 40px 0;
  }
  .why-us-section:before {
    display: none;
  }
  .stat-icon {
    width: 72px;
    height: 72px;
    font-size: 1.5rem;
  }
  .stat-icon img {
    width: 36px;
  }
  .stat-number {
    font-size: 1.8rem;
  }
  .stat-label {
    font-size: 0.85rem;
  }
}
/* --- Training / Category cards --- */
@media (max-width: 575px) {
  .training-section {
    padding: 36px 0;
  }
  .category-card .card-title {
    height: auto;
    font-size: 0.82rem;
  }
}
/* --- Systems section --- */
@media (max-width: 575px) {
  .systems-section {
    padding: 36px 0;
  }
  .system-card {
    aspect-ratio: 4/3;
  }
  .system-card-body h4 {
    font-size: 1.1rem;
  }
}
/* --- Enrollment cards --- */
@media (max-width: 575px) {
  .enrollment-section {
    padding: 36px 0;
  }
  .enrollment-card .card-title {
    height: auto;
    font-size: 0.92rem;
  }
}
/* --- News section --- */
@media (max-width: 575px) {
  .news-section {
    padding: 36px 0;
  }
  .news-section:before, .news-section:after {
    display: none;
  }
  .news-card img {
    height: 160px;
  }
  .news-card .card-title {
    font-size: 1rem;
  }
  .news-sidebar-box .sidebar-tabs .sidebar-tab {
    font-size: 0.78rem;
    line-height: 40px;
  }
  .news-media img {
    width: 90px;
  }
}
/* --- Gallery --- */
@media (max-width: 575px) {
  .gallery-section {
    padding: 36px 0;
  }
  .gallery-item {
    height: 140px;
  }
}
/* --- Consultation form --- */
@media (max-width: 767px) {
  .consultation-section {
    padding: 32px 0 0;
  }
  .consultation-section .col-lg-4 img {
    max-height: 160px;
    object-fit: contain;
    margin-bottom: 1rem;
  }
}
/* --- Footer mobile --- */
@media (max-width: 575px) {
  .footer-links li {
    flex-basis: 100%;
  }
  .site-footer {
    padding: 36px 0 16px;
  }
  .footer-bottom {
    font-size: 0.75rem;
  }
}
/* --- Hotline button --- */
@media (max-width: 575px) {
  .hotline-btn {
    padding: 8px 14px;
    font-size: 0.78rem;
  }
}
/* --- Navigation mobile --- */
@media (max-width: 991px) {
  .main-nav .nav-link {
    padding: 10px 14px !important;
    font-size: 0.8rem;
  }
  .main-nav .input-group {
    width: 100%;
    margin-top: 0.5rem;
  }
}
/* --- Section title mobile --- */
@media (max-width: 575px) {
  .section-title {
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
  }
  .section-title::after {
    width: 50px;
  }
}
/* ===== CONTACT PAGE – PROFESSIONAL REDESIGN ===== */
.contact-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--dark) 100%);
  padding: 56px 0 40px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.contact-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.contact-hero .contact-hero__badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  padding: 4px 16px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.contact-hero h1 {
  font-size: 2rem;
  font-weight: 800;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}
.contact-hero .edu-breadcrumb a {
  color: rgba(255, 255, 255, 0.75);
}
.contact-hero .edu-breadcrumb a:hover {
  color: #fff;
}

.contact-info-strip {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.09);
  overflow: hidden;
  margin-top: -32px;
  position: relative;
  z-index: 5;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px 20px;
  border-right: 1px solid #f0f0f0;
  transition: background 0.2s;
}
.contact-info-item:last-child {
  border-right: none;
}
.contact-info-item:hover {
  background: #f8f9ff;
}
.contact-info-item .contact-info-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #fff;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}
.contact-info-item .contact-info-icon--red {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
}
.contact-info-item .contact-info-icon--orange {
  background: linear-gradient(135deg, #f57c00, #ff8f00);
}
.contact-info-item h6 {
  font-weight: 700;
  color: #333;
  margin-bottom: 4px;
  font-size: 0.88rem;
}
.contact-info-item p {
  font-size: 0.85rem;
  color: #666;
  margin: 0;
  line-height: 1.5;
}
.contact-info-item a {
  color: var(--primary);
  font-weight: 600;
}

@media (max-width: 991px) {
  .contact-info-item {
    border-right: none;
    border-bottom: 1px solid #f0f0f0;
  }
  .contact-info-item:last-child {
    border-bottom: none;
  }
  .contact-info-strip {
    margin-top: -16px;
  }
}
.contact-form-card {
  background: #fff;
  border-radius: 16px;
  padding: 36px 32px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}
@media (max-width: 575px) {
  .contact-form-card {
    padding: 24px 18px;
  }
}

.contact-form-card .form-control,
.contact-form-card .form-select {
  border-radius: 10px;
  border: 1.5px solid #e0e4ec;
  padding: 11px 14px;
  font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.contact-form-card .form-control:focus,
.contact-form-card .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 134, 255, 0.12);
}

.contact-form-card textarea.form-control {
  resize: vertical;
  min-height: 130px;
}

.contact-map-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.contact-map-header {
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
  font-weight: 700;
  font-size: 0.95rem;
  color: #222;
}
.contact-map-header i {
  color: var(--secondary);
  margin-right: 6px;
}

.contact-branch-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-branch-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid #f5f5f5;
  font-size: 0.85rem;
  color: #555;
}
.contact-branch-item:last-child {
  border-bottom: none;
}
.contact-branch-item i {
  color: var(--secondary);
  margin-top: 2px;
  flex-shrink: 0;
}
