/* ============================================
   Hawkesbury Education Consultancy - Premium Theme
   Inspired by VIA Education & Hawkesbury Navigation
   ============================================ */

:root {
  --primary: #000;
  --primary-dark: #000;
  --primary-light: #b7010a;
  --accent: #de9400;
  --accent-hover: #d4920f;
  --text-dark: #000;
  --text-muted: #52647c;
  --white: #ffffff;
  --light-bg: #f8fafc;
  --border: #e2e8f0;
  --shadow: 0 10px 40px rgba(26, 61, 107, 0.12);
  --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.08);
  --radius: 12px;
  --transition: all 0.3s ease;
  --font: 'Poppins', sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
}

a {
  text-decoration: none;
  transition: var(--transition);
  color: #b7010a;
}

.bg-primary{
  background-color: #000 !important;
}
img {
  max-width: 100%;
  height: auto;
}

/* ========== VIA-Style Unified Header ========== */
.via-header {
  position: sticky;
  top: 0;
  z-index: 1050;
  background: var(--white);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.via-header.scrolled {
  box-shadow: 0 4px 30px rgba(26, 61, 107, 0.12);
}

.header-top-strip {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.78rem;
  padding: 6px 0;
}

.header-top-strip a {
  color: rgba(255, 255, 255, 0.9);
}

.header-top-strip a:hover {
  color: var(--accent);
}

.header-top-strip i {
  color: var(--accent);
  margin-right: 5px;
  font-size: 0.72rem;
}

.header-main {
  background: var(--white);
  border-bottom: 3px solid var(--primary);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 78px;
  padding: 8px 0;
}

.header-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.header-logo img {
  height: 58px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}

.header-nav {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.header-nav .navbar-nav {
  align-items: center;
  gap: 0;
}

.header-nav .nav-link {
  color: var(--primary) !important;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 10px 14px !important;
  display: flex;
  align-items: center;
  gap: 5px;
  border-radius: 4px;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  position: relative;
}

.header-nav .nav-link::after {
  display: none !important;
}

.header-nav .nav-link .fa-chevron-down {
  font-size: 0.55rem;
  opacity: 0.7;
  margin-top: 1px;
}

.header-nav .nav-link:hover,
.header-nav .nav-link.show,
.header-nav .nav-item:hover > .nav-link,
.header-nav .nav-item.active > .nav-link {
  background: var(--primary);
  color: var(--white) !important;
}

.header-nav .nav-link:hover .fa-chevron-down,
.header-nav .nav-link.show .fa-chevron-down {
  opacity: 1;
}

.header-toggler {
  border: 2px solid var(--primary);
  padding: 6px 10px;
  border-radius: 4px;
  color: var(--primary);
}

.header-toggler:focus {
  box-shadow: 0 0 0 3px rgba(26, 61, 107, 0.15);
}

.header-toggler .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%231a3d6b' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  width: 1.4em;
  height: 1.4em;
}

/* Header Dropdowns */
.header-nav .dropdown-menu {
  border: none;
  border-top: 3px solid var(--accent);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow);
  padding: 8px 0;
  min-width: 240px;
  margin-top: 0 !important;
}

.header-nav .dropdown-item {
  padding: 11px 22px;
  font-size: 0.88rem;
  color: var(--text-dark);
  font-weight: 500;
  transition: var(--transition);
}

.header-nav .dropdown-item:hover,
.header-nav .dropdown-item:focus {
  background: var(--light-bg);
  color: var(--primary);
  padding-left: 26px;
}

/* Nested Dropdown (Courses) - Leadership / Management */
.header-nav .dropdown-menu:has(.dropdown-submenu) {
  background: #f0f2f5;
  padding: 6px 0;
  min-width: 200px;
}

.dropdown-submenu {
  position: relative;
}

.dropdown-submenu > .dropdown-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  color: var(--text-dark);
}

.dropdown-submenu > .dropdown-item:hover,
.dropdown-submenu:hover > .dropdown-item {
  background: #e2e6ea;
  color: var(--primary);
}

.dropdown-submenu > .dropdown-item .fa-chevron-right {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.dropdown-submenu > .dropdown-menu {
  top: 0;
  left: 100%;
  margin-left: 0;
  border-radius: var(--radius);
  border-top: none;
  background: var(--white);
  min-width: 340px;
  padding: 10px 0;
}

.dropdown-submenu > .dropdown-menu .dropdown-item {
  white-space: normal;
  line-height: 1.4;
}

.dropdown-submenu:hover > .dropdown-menu {
  display: block;
}

.dropdown-menu-scroll {
  max-height: 420px;
  overflow-y: auto;
}

@media (max-width: 991.98px) {
  .header-inner {
    min-height: 64px;
    padding: 10px 0;
  }

  .header-logo img {
    height: 48px;
  }
}

/* ========== Mobile Sidebar (App-style Drawer) ========== */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 47, 82, 0.55);
  backdrop-filter: blur(3px);
  z-index: 1060;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: min(320px, 88vw);
  height: 100%;
  height: 100dvh;
  background: var(--white);
  z-index: 1070;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 8px 0 40px rgba(0, 0, 0, 0.15);
}

.mobile-sidebar.active {
  transform: translateX(0);
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--primary);
  color: var(--white);
  flex-shrink: 0;
}

.sidebar-header img {
  height: 42px;
  width: auto;
  filter: brightness(0) invert(1);
}

.sidebar-close {
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  border-radius: 50%;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.sidebar-close:hover {
  background: var(--accent);
  color: var(--primary-dark);
}

.sidebar-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 8px 0 20px;
}

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

.sidebar-link,
.sidebar-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 20px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-dark);
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}

.sidebar-link:hover,
.sidebar-toggle:hover,
.sidebar-link.active {
  background: var(--light-bg);
  color: var(--primary);
  padding-left: 24px;
}

.sidebar-toggle .toggle-icon {
  font-size: 0.7rem;
  color: var(--text-muted);
  transition: transform 0.3s ease;
}

.sidebar-item.open > .sidebar-toggle .toggle-icon {
  transform: rotate(180deg);
  color: var(--primary);
}

.sidebar-submenu {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  background: var(--light-bg);
}

.sidebar-item.open > .sidebar-submenu {
  max-height: 2000px;
}

.sidebar-submenu .sidebar-link,
.sidebar-submenu .sidebar-toggle {
  padding-left: 32px;
  font-size: 0.86rem;
  font-weight: 500;
  border-bottom-color: rgba(0, 0, 0, 0.05);
}

.sidebar-submenu .sidebar-submenu .sidebar-link {
  padding-left: 44px;
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--text-muted);
}

.sidebar-submenu .sidebar-submenu .sidebar-link:hover {
  color: var(--primary);
}

.sidebar-footer {
  flex-shrink: 0;
  padding: 16px 20px;
  background: var(--light-bg);
  border-top: 1px solid var(--border);
}

.sidebar-footer p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.sidebar-footer a {
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 500;
}

.sidebar-footer i {
  color: var(--accent);
  width: 18px;
}

body.sidebar-open {
  overflow: hidden;
  touch-action: none;
}

@media (min-width: 992px) {
  .header-nav .dropdown:hover > .dropdown-menu {
    display: block;
  }
}

/* Legacy aliases (keep for compatibility) */
.site-header { background: var(--white); }
.main-nav { background: transparent; }
.top-bar { display: none; }
.logo-area { display: none; }

/* ========== Hero Swiper ========== */
.hero-section {
  position: relative;
  height: 85vh;
  min-height: 500px;
  max-height: 750px;
}

.hero-swiper,
.hero-swiper .swiper-slide {
  height: 100%;
}

.hero-slide {
  position: relative;
  height: 100%;
  min-height: 500px;
  background-color: var(--primary-dark);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
}

.hero-slide::before {
  /* content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(20, 26, 35, 0.88) 0%, rgba(21, 50, 89, 0.55) 100%); */
}

.rounded-pill {
  padding: 12px 32px;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 700px;
}

.hero-content .badge-hero {
  background: var(--accent);
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 0.8rem;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 20px;
  display: inline-block;
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1.1rem;
  opacity: 0.92;
  margin-bottom: 30px;
}

.hero-rating {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.hero-rating .stars {
  color: var(--accent);
}

.hero-swiper .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 1;
}

.hero-swiper .swiper-pagination-bullet-active {
  background: var(--accent);
  width: 32px;
  border-radius: 6px;
}

.hero-swiper .swiper-button-next,
.hero-swiper .swiper-button-prev {
  color: var(--white);
  background: rgba(255, 255, 255, 0.15);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  backdrop-filter: blur(4px);
}

.hero-swiper .swiper-button-next::after,
.hero-swiper .swiper-button-prev::after {
  font-size: 1.2rem;
}

/* ========== Buttons ========== */
.btn-primary-custom {
  background: var(--accent);
  color: var(--primary-dark);
  border: 2px solid var(--accent);
  padding: 12px 32px;
  font-weight: 600;
  border-radius: 50px;
  font-size: 0.95rem;
}

.btn-primary-custom:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(232, 163, 23, 0.35);
}

.btn-outline-custom {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
  padding: 12px 32px;
  font-weight: 600;
  border-radius: 50px;
}

.btn-outline-custom:hover {
  background: var(--white);
  color: var(--primary);
}

.btn-navy {
  background: var(--primary);
  color: var(--white);
  border: 2px solid var(--primary);
  padding: 12px 32px;
  font-weight: 600;
  border-radius: 50px;
}

.btn-navy:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
}

/* ========== Section Styles ========== */
.section-padding {
  padding: 50px 0;
}

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

.section-title .subtitle {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
  display: block;
}

.section-title h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--primary);
  margin-bottom: 16px;
}

.section-title p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.bg-light-custom {
  background: var(--light-bg);
}

.bg-navy {
  background: var(--primary);
  color: var(--white);
}

/* ========== Quick Links Cards ========== */
.quick-link-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  height: 100%;
  transition: var(--transition);
  border: 1px solid var(--border);
}

.quick-link-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
  border-color: var(--primary-light);
}

.quick-link-card .icon-box {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.quick-link-card h5 {
  color: var(--primary);
  margin-bottom: 10px;
}

.quick-link-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.quick-link-card .read-more {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
}

.quick-link-card .read-more i {
  margin-left: 6px;
  transition: var(--transition);
}

.quick-link-card:hover .read-more i {
  transform: translateX(4px);
}

/* ========== Course Cards ========== */
.course-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
  border: 1px solid var(--border);
}

.course-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.course-card .course-img {
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.course-card .course-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--accent);
  color: var(--primary-dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
}

.course-card .course-body {
  padding: 24px;
}

.course-card h5 {
  color: var(--primary);
  font-size: 1rem;
  margin-bottom: 12px;
  min-height: 48px;
}

.course-card .course-meta {
  display: flex;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.course-card .course-meta i {
  color: var(--accent);
  margin-right: 4px;
}

.course-card .view-details {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
}

.course-card .view-details:hover {
  color: var(--accent);
}

/* ========== Why Choose / Features ========== */
.feature-item {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.feature-item .feature-num {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.feature-item h5 {
  color: var(--primary);
  margin-bottom: 8px;
}

.feature-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* ========== Testimonials Swiper ========== */
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  height: 100%;
  border: 1px solid var(--border);
  position: relative;
}

.testimonial-card .quote-icon {
  font-size: 2.5rem;
  color: var(--accent);
  opacity: 0.3;
  position: absolute;
  top: 20px;
  right: 30px;
}

.testimonial-card p {
  font-style: italic;
  color: var(--text-dark);
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.testimonial-author .avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 1.2rem;
}

.testimonial-author h6 {
  margin: 0;
  color: var(--primary);
}

.testimonial-author span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ========== FAQ Accordion ========== */
.faq-accordion .accordion-item {
  border: 1px solid var(--border);
  border-radius: var(--radius) !important;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-accordion .accordion-button {
  font-weight: 600;
  color: var(--primary);
  padding: 20px 24px;
  background: var(--white);
  box-shadow: none !important;
}

.faq-accordion .accordion-button:not(.collapsed) {
  background: var(--light-bg);
  color: var(--primary);
}

.faq-accordion .accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%231a3d6b'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.faq-accordion .accordion-body {
  color: var(--text-muted);
  padding: 0 24px 20px;
}

.faq-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--accent);
  color: var(--primary-dark);
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
  margin-right: 12px;
  flex-shrink: 0;
}

/* ========== Page Banner ========== */
.page-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 80px 0;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.page-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.page-banner h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 12px;
}

.breadcrumb-custom {
  background: none;
  padding: 0;
  margin: 0;
}

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

.breadcrumb-custom .breadcrumb-item.active {
  color: var(--accent);
}

.breadcrumb-custom .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.5);
}

/* ========== Content Sections ========== */
.content-section {
  padding: 80px 0;
}

.content-block {
  margin-bottom: 48px;
}

.content-block h3 {
  color: var(--primary);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--accent);
  display: inline-block;
}

.content-block p {
  color: var(--text-muted);
}

.info-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 15px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  /* height: 100%; */
}

.info-card .icon {
  width: 56px;
  height: 56px;
  background: var(--light-bg);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.info-card h5 {
  color: var(--primary);
  margin-bottom: 12px;
}

/* ========== Future Students Sidebar Nav ========== */
.future-nav {
  position: sticky;
  top: 100px;
}

.future-nav .nav-link {
  color: var(--text-dark);
  padding: 12px 5px;
  border-left: 3px solid transparent;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 0;
}

.future-nav .nav-link:hover,
.future-nav .nav-link.active {
  background: var(--light-bg);
  color: var(--primary);
  border-left-color: var(--accent);
}

.future-section {
  scroll-margin-top: 100px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 60px;
}

.future-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

/* ========== Agent Cards ========== */
.agent-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  height: 100%;
  transition: var(--transition);
}

.agent-card-public {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.agent-card-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

.agent-card-avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  font-weight: 700;
  font-size: 1.5rem;
}

.agent-card-name {
  color: var(--text-dark);
  font-weight: 700;
  margin-bottom: 12px;
}

.agent-card-public p {
  width: 100%;
  text-align: left;
  margin-bottom: 8px;
}

.agent-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--primary-light);
}

.agent-card .agent-letter {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.agent-card h6 {
  color: var(--primary);
  margin-bottom: 8px;
}

.agent-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.agent-card a {
  color: var(--primary-light);
  font-size: 0.85rem;
}

/* ========== Gallery ========== */
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.gallery-item .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 50%, rgba(26, 61, 107, 0.85));
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: var(--transition);
}

.gallery-item:hover .overlay {
  opacity: 1;
}

.gallery-item .overlay h6 {
  color: var(--white);
  margin: 0;
}

/* ========== Contact Form ========== */
.contact-form .form-control,
.contact-form .form-select {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.95rem;
}

.contact-form .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 61, 107, 0.1);
}

.contact-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-info-item .icon {
  width: 48px;
  height: 48px;
  background: var(--light-bg);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

/* ========== Agent Apply Form ========== */
.agent-apply-section {
  background: linear-gradient(180deg, var(--light-bg) 0%, var(--white) 120px);
}

.agent-apply-sidebar {
  position: sticky;
  top: 100px;
  background: var(--white);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.agent-apply-sidebar__badge {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(183, 1, 10, 0.1), rgba(222, 148, 0, 0.15));
  color: var(--primary-light);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.agent-apply-sidebar__intro h3 {
  color: var(--primary);
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.agent-apply-sidebar__intro p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 24px;
}

.agent-apply-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.agent-apply-steps__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--border);
  opacity: 0.55;
  transition: var(--transition);
}

.agent-apply-steps__item:last-child {
  border-bottom: 0;
}

.agent-apply-steps__item.is-active,
.agent-apply-steps__item.is-done {
  opacity: 1;
}

.agent-apply-steps__num {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--light-bg);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.agent-apply-steps__item.is-active .agent-apply-steps__num {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  box-shadow: 0 6px 16px rgba(183, 1, 10, 0.25);
}

.agent-apply-steps__item.is-done .agent-apply-steps__num {
  background: #198754;
  color: var(--white);
}

.agent-apply-steps__item strong {
  display: block;
  color: var(--primary);
  font-size: 0.92rem;
  margin-bottom: 2px;
}

.agent-apply-steps__item small {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.agent-apply-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 8px;
}

.agent-apply-trust div {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--light-bg);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
}

.agent-apply-trust i {
  color: var(--accent);
}

.agent-apply-form {
  background: var(--white);
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.agent-form-section {
  padding-bottom: 32px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 110px;
}

.agent-form-section:last-of-type {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.agent-form-section__head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.agent-form-section__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.agent-form-section__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 4px;
}

.agent-form-section__head h4 {
  color: var(--primary);
  margin: 0;
  font-size: 1.2rem;
}

.agent-field-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
}

.agent-field-label span {
  color: var(--primary-light);
}

.agent-input-wrap {
  position: relative;
}

.agent-input-wrap > i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.9rem;
  z-index: 1;
  pointer-events: none;
}

.agent-input-wrap--textarea > i {
  top: 18px;
  transform: none;
}

.agent-input-wrap .form-control,
.agent-input-wrap .form-select {
  padding-left: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: var(--transition);
  background: var(--white);
}

.agent-input-wrap .form-control:focus,
.agent-input-wrap .form-select:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(183, 1, 10, 0.1);
}

.agent-apply-form .form-control:not(.agent-input-wrap .form-control),
.agent-apply-form .form-select:not(.agent-input-wrap .form-select) {
  border-radius: 10px;
  border: 1px solid var(--border);
  padding: 12px 16px;
}

.agent-apply-form .form-control:focus,
.agent-apply-form .form-select:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(183, 1, 10, 0.1);
}

.agent-experience-panel {
  background: linear-gradient(135deg, rgba(248, 250, 252, 1) 0%, rgba(255, 255, 255, 1) 100%);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  padding: 20px;
  animation: agentPanelIn 0.35s ease;
}

.agent-experience-panel.is-visible,
#experienceDetails:not(.d-none) .agent-experience-panel {
  animation: agentPanelIn 0.35s ease;
}

@keyframes agentPanelIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.agent-experience-panel__title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 16px;
}

.agent-experience-panel__title i {
  color: var(--accent);
}

.agent-referee-card {
  background: var(--light-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  height: 100%;
  transition: var(--transition);
}

.agent-referee-card:hover {
  border-color: rgba(183, 1, 10, 0.25);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.agent-referee-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.agent-referee-card__badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.agent-referee-card__head h6 {
  margin: 0;
  color: var(--primary);
  font-size: 1rem;
}

.agent-form-submit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 32px;
  padding: 24px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 14px;
  color: var(--white);
}

.agent-form-submit__note {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  opacity: 0.9;
  max-width: 420px;
}

.agent-form-submit__note i {
  font-size: 1.1rem;
  color: var(--accent);
}

.agent-form-submit__btn {
  background: var(--white) !important;
  color: var(--primary) !important;
  border-color: var(--white) !important;
  padding: 14px 36px !important;
  white-space: nowrap;
}

.agent-form-submit__btn:hover {
  background: var(--accent) !important;
  color: var(--white) !important;
  border-color: var(--accent) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

@media (max-width: 991.98px) {
  .agent-apply-sidebar {
    position: static;
  }

  .agent-apply-steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .agent-apply-steps__item {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px;
    background: var(--light-bg);
  }

  .agent-apply-form {
    padding: 24px 20px;
  }
}

@media (max-width: 575.98px) {
  .agent-apply-steps {
    grid-template-columns: 1fr;
  }

  .agent-form-submit {
    flex-direction: column;
    text-align: center;
  }

  .agent-form-submit__note {
    justify-content: center;
  }

  .agent-form-submit__btn {
    width: 100%;
  }
}

/* ========== CTA Section ========== */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 80px 0;
  color: var(--white);
  text-align: center;
}

.cta-section h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 16px;
}

.cta-section p {
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 30px;
}

/* ========== Footer ========== */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.8);
  padding-top: 60px;
}

.footer-logo-wrap {
  display: inline-block;
  background: var(--white);
  padding: 12px 18px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  transition: var(--transition);
}

.footer-logo-wrap:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.footer-logo-wrap img {
  height: 52px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  display: block;
}

.site-footer h5 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: 1.1rem;
}

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

.site-footer ul li {
  margin-bottom: 10px;
}

.site-footer ul a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
}

.site-footer ul a:hover {
  color: var(--accent);
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  margin-right: 8px;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--accent);
  color: var(--primary-dark);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 0;
  margin-top: 0;
  font-size: 0.85rem;
}

.footer-bottom__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.footer-bottom__copy {
  text-align: center;
}

.footer-bottom__credit {
  justify-self: end;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  text-decoration: none;
  transition: var(--transition);
}

.footer-bottom__credit:hover {
  color: var(--accent);
}

@media (max-width: 767.98px) {
  .footer-bottom__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-bottom__copy,
  .footer-bottom__credit {
    justify-self: center;
    text-align: center;
  }

  .footer-bottom__spacer {
    display: none;
  }
}

.acknowledgement-country {
  position: relative;
  background: #1a1d21;
  color: #fff;
  padding: 48px 24px;
  text-align: center;
  margin-top: 40px;
  overflow: hidden;
}

.acknowledgement-country__pattern {
  position: absolute;
  top: 0;
  bottom: 0;
  width: min(160px, 18vw);
  pointer-events: none;
  opacity: 0.45;
  background: url('../images/flags/acknowledgement-dots.svg') center / cover no-repeat;
}

.acknowledgement-country__pattern--left {
  left: 0;
}

.acknowledgement-country__pattern--right {
  right: 0;
  transform: scaleX(-1);
}

.acknowledgement-country__title {
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.acknowledgement-flags {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.acknowledgement-flags img {
  width: 80px;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.acknowledgement-country__text {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 720px;
  margin: 0 auto 12px;
}

.acknowledgement-country__text:last-of-type {
  margin-bottom: 0;
}

/* ========== Course Detail Page ========== */
.course-detail-hero {
  background: var(--light-bg);
  padding: 60px 0;
}

.course-detail-hero .course-code {
  background: var(--accent);
  color: var(--primary-dark);
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  display: inline-block;
  margin-bottom: 16px;
}

.brochure-list {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.brochure-list li {
  margin-bottom: 0.5rem;
}

.download-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  text-align: center;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.download-card:hover {
  box-shadow: 0 8px 24px rgba(26, 61, 107, 0.12);
  transform: translateY(-4px);
}

.download-card .download-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26, 61, 107, 0.08);
  border-radius: 50%;
  color: var(--primary);
  font-size: 1.75rem;
}

.download-card h5 {
  color: var(--primary);
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.download-card p {
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.download-card .btn-download {
  width: 100%;
}

.support-guide-nav {
  /* max-height: calc(100vh - 120px); */
  overflow-y: auto;
}

.support-contacts-table th {
  width: 28%;
  vertical-align: top;
}

.support-contacts-table td {
  font-size: 0.9rem;
}

.detail-table {
  width: 100%;
  border-collapse: collapse;
}

.detail-table th,
.detail-table td {
  padding: 10px 10px;
  border: 1px solid var(--border);
  text-align: left;
}

.detail-table th {
  background: var(--primary);
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  width: 40%;
}

.detail-table td {
  color: var(--text-muted);
}

/* ========== Back to Top ========== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: var(--accent);
  color: var(--primary-dark);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  box-shadow: var(--shadow-sm);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--accent-hover);
  transform: translateY(-4px);
}

/* ========== Search (Agents) ========== */
.search-box {
  position: relative;
  max-width: 400px;
}

.search-box input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.95rem;
}

.search-box input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 61, 107, 0.1);
}

.search-box i {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

/* ========== Responsive ========== */
@media (max-width: 767.98px) {
  .section-padding {
    padding: 60px 0;
  }

  .hero-section {
    height: 70vh;
    min-height: 450px;
  }

  .future-nav {
    position: static;
    margin-bottom: 40px;
  }
}

@media (min-width: 992px) {
  .dropdown:hover > .dropdown-menu {
    display: block;
  }
}
