
/* Safety net: neutralize any hardcoded page-title-inner min-height on all pages */
.page-title-inner { min-height: 0 !important; }

/* --- UNIFIED MOBILE & TABLET OPTIMIZATION 2026-04-07 --- */
@media (max-width: 900px) {
  /* Base resets */
  html,
  body {
    font-size: 17px !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow-x: hidden !important;
    background: var(--white) !important;
  }

  body.tqt-has-shared-header {
    padding-top: 82px !important;
  }

  .course-card .box-text {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .container,
  .section,
  .row,
  .col,
  .page-title-inner,
  .entry-content,
  .article-inner {
    padding-left: 2vw !important;
    padding-right: 2vw !important;
    margin: 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Headlines & Text */
  h1 {
    font-size: clamp(1.8rem, 7vw, 2.2rem) !important;
  }
  h2 {
    font-size: clamp(1.5rem, 6vw, 1.8rem) !important;
    margin-bottom: 0.5rem !important;
  }
  h3,
  h4,
  h5,
  h6 {
    font-size: 1.2rem !important;
    margin-bottom: 0.4rem !important;
  }
  p,
  li,
  ul,
  ol,
  .post-meta,
  .section-title p,
  .entry-content p {
    font-size: 1.05rem !important;
    line-height: 1.6 !important;
    text-align: left !important;
    margin-bottom: 0.5rem !important;
  }

  /* Banner / Hero Slider - Fixed "half poster" and "side-cropping" issues */
  .hero,
  .hero-slider {
    margin-top: 0 !important;
    height: auto !important;
    min-height: clamp(176px, 45vw, 256px) !important; /* Reduced 20% */
    max-height: 384px !important;
  }

  .banner,
  .slider,
  .main-banner,
  .carousel,
  .hero-slide {
    width: 100% !important;
    height: 100% !important;
    min-height: clamp(220px, 56vw, 320px) !important;
    object-fit: cover !important;
    background-size: cover !important;
    background-position: center center !important;
    border-radius: 0 !important;
  }

  .hero-slide {
    position: absolute !important;
    inset: 0 !important;
  }

  /* Content Grids - One column on small screens, two on tablets */
  .collection-grid,
  .footer-grid,
  .row:not(.small-columns-1) {
    grid-template-columns: 1fr !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 1.5rem !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Keep 2 columns ONLY for the collection-grid and other generic grids on tablets if desired */
  @media (min-width: 601px) {
    .collection-grid,
    .blog-archive .row.small-columns-1,
    .archive .row.small-columns-1,
    .row.small-columns-1.news-grid-mobile {
      display: grid !important;
      grid-template-columns: repeat(2, 1fr) !important;
      gap: 20px !important;
      width: 100% !important;
      margin: 0 0 2rem 0 !important;
      padding: 0 !important;
      align-items: stretch !important;
    }
  }

  .news-grid .news-card,
  .mission-grid .mission-card {
    margin-bottom: 0 !important; /* Grid gap handles spacing */
    height: 100% !important; /* Stretch to fill row height */
  }

  /* Force 2x2 grid for mission section */
  .mission-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    padding-top: 0.8rem !important;
  }

  .row.small-columns-1 > .col,
  .blog-archive .row.small-columns-1 > .col,
  .archive .row.small-columns-1 > .col {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    flex-basis: auto !important;
    display: flex !important;
  }

  .row.small-columns-1 > .col > .col-inner,
  .post-item .col-inner {
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
  }

  /* Cards - Proper Centering and Spacing */
  .mission-card {
    padding: 1.2rem 0.6rem !important;
    text-align: center !important;
    border-radius: 12px !important;
  }

  .mission-card h3 {
    font-size: 1.1rem !important;
    margin: 0.4rem 0 !important;
    line-height: 1.2 !important;
  }

  .mission-card p {
    font-size: 0.95rem !important;
    line-height: 1.3 !important;
    margin-bottom: 0 !important;
  }

  .mission-card i {
    width: 38px !important;
    height: 38px !important;
    font-size: 0.95rem !important;
    margin-bottom: 0.5rem !important;
  }

  .news-card {
    height: 100% !important;
    background: var(--white) !important;
    position: relative;
    display: flex !important;
    flex-direction: column !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    border: 1px solid #ddd !important;
    box-shadow: none !important;
    transition: transform 0.3s ease !important;
  }

  .news-card:hover,
  .course-card .col-inner:hover {
    transform: translateY(-5px) !important;
    box-shadow: none !important;
    border-color: #ccc !important;
  }

  .news-card .news-img,
  .course-card .box-image {
    height: auto !important;
    aspect-ratio: 3 / 2 !important;
    flex-shrink: 0 !important;
    overflow: hidden !important;
  }

  .news-card .news-img img,
  .course-card .box-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  .news-card .news-content,
  .course-card .box-text {
    padding: 15px 20px !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    justify-content: flex-start;
  }

  .news-card h3 {
    font-size: 0.95rem !important;
    margin-bottom: 0.4rem !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
  }

  .news-card p,
  .news-card .btn,
  .news-card .post-meta,
  .post-item .from_the_blog_excerpt,
  .post-item .post-meta,
  .post-item .is-divider {
    display: none !important;
  }

  .video-card {
    padding: 0 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    background: var(--white) !important;
  }

  .video-card .video-container {
    padding-top: 56.25% !important; /* 16:9 ratio */
    height: 0 !important;
    position: relative !important;
  }

  .video-card .video-container iframe {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
  }

  .video-card .video-info {
    padding: 0.8rem 10px !important;
    background: var(--white) !important;
    color: var(--secondary) !important;
    font-size: 0.95rem !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-align: left !important;
  }

  /* Archive Post Cards Optimization */
  .post-item .box-text {
    padding: 0.8rem 1.1rem !important;
  }

  .post-item .post-title {
    font-size: 1rem !important;
    line-height: 1.3 !important;
    margin-bottom: 0.3rem !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  .mission-grid {
    padding-top: 0.5rem !important;
  }
  #mission.section {
    padding: 1rem 0 !important;
  }
  #mission .section-title {
    margin-bottom: 1rem !important;
  }
  #mission .section-title p {
    font-size: 0.95rem !important;
    margin-top: 0.5rem !important;
  }

  /* Overlay for banner text */
  .banner-text,
  .slider-caption,
  .hero-caption,
  .carousel-caption {
    position: absolute !important;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100% !important;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7)) !important;
    color: var(--white) !important;
    padding: 2.5rem 5vw 1.5rem 5vw !important;
    font-size: 1.2rem !important;
    z-index: 10;
  }

  /* Floating buttons Fix */
  #tqt-floating-contacts {
    right: 12px !important;
    bottom: 12px !important;
    gap: 12px !important;
  }

  /* Hide redundant elements */
  .carousel-indicators,
  .slider-dots,
  .slick-dots,
  .swiper-pagination,
  .poster-dots,
  .hero-dots,
  .hero-nav,
  #ez-toc-container {
    display: none !important;
  }

  /* Reverse contact info and form on mobile */
  .section-contact .row {
    display: flex !important;
    flex-direction: column-reverse !important;
  }

  .section {
    padding: 1.5rem 0 !important;
  }

  #courses-home[style*="padding-bottom"] {
    padding-bottom: 0 !important;
    margin-bottom: -0.5rem !important;
  }

  #courses-home[style*="padding-top"] {
    padding-top: 0 !important;
    margin-top: -0.5rem !important;
  }

  .section-title {
    margin-bottom: 0.8rem !important;
  }
  .section-title h2 {
    padding-bottom: 0.5rem !important;
    margin-bottom: 0.5rem !important;
    color: var(--secondary) !important;
  }
  .section-title h2::after {
    height: 3px !important;
    width: 40px !important;
    background: var(--primary) !important;
  }
  .section-title p {
    font-size: 0.9rem !important;
    line-height: 1.4 !important;
    margin-top: 0.4rem !important;
    color: var(--text-muted) !important;
  }

  .mission-grid,
  .news-grid,
  .video-grid {
    padding-top: 0.8rem !important;
  }

  .hero-highlight {
    padding: 3rem 0 !important;
  }

  .highlight-wrap {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.2rem !important;
    text-align: center !important;
  }

  .highlight-intro {
    width: 100% !important;
  }

  .highlight-intro h2 {
    font-size: 1.5rem !important;
    margin: 0.3rem 0 0.8rem !important;
  }

  .highlight-intro p {
    margin-bottom: 1.5rem !important;
  }

  .highlight-stats {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.5rem !important;
    width: 100% !important;
  }

  .stat-card {
    padding: 1.2rem 0.5rem !important;
    min-height: 100px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: var(--radius) !important;
    margin: 0 !important;
  }

  .stat-card strong {
    font-size: 1.8rem !important;
    margin-bottom: 0.2rem !important;
    color: var(--primary) !important;
  }

  .stat-card span {
    font-size: 0.95rem !important;
    line-height: 1.3 !important;
    color: rgba(255, 255, 255, 0.6) !important;
  }

  .wave-divider {
    display: none !important;
  }

  #courses-home.section {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
  }
  #courses-home .section-title {
    margin-bottom: 0 !important;
  }
  #courses-home .section-title h2 {
    margin-bottom: 0.1rem !important;
    padding-bottom: 0.1rem !important;
  }
  #courses-home .section-title p {
    margin-bottom: 0.2rem !important;
    margin-top: 0 !important;
  }
  #news.section {
    padding-top: 0.5rem !important;
  }
}
/* --- END UNIFIED MOBILE & TABLET OPTIMIZATION --- */

/* Hide 'comments disabled' message globally */
.post_comments.op-7.block.is-xsmall {
  display: none !important;
}
:root {
  /* --- VOGUE COLLEGE COLOR PALETTE 2026 --- */
  /* Primary Colors */
  --primary: #e74c3c; /* Tomato Red - Main accent */
  --primary-dark: #363636; /* Dark Gray */
  --secondary: #151515; /* Near Black - Premium text */
  --secondary-dark: #171717; /* Premium Charcoal */
  --accent: #e74c3c; /* Red accent */

  /* Background Colors */
  --bg-main: #ffffff; /* Pure white */
  --bg-alt: #f9f9f9; /* Soft white */
  --bg-secondary: #f5f5f5; /* Light gray */
  --bg-third: #f1f1f1; /* Lighter gray */
  --bg-beige: #f2e8de; /* Warm beige accent */
  --bg-light-gray: #d9d9d9; /* Light gray placeholder */
  --bg-image-placeholder: #f0f0f0; /* Image placeholder gray */

  /* Text Colors */
  --text: #151515; /* Main text - near black */
  --text-muted: #666666; /* Muted text */
  --text-light: #ad694b; /* Brown/tan accent text */
  --white: #ffffff; /* Pure white */
  --text-muted-light: #999999; /* Lighter muted text */

  /* Social & Special Colors */
  --facebook-blue: #1877f2; /* Facebook brand color */

  /* Borders & Details */
  --border: #eeeeee; /* Light border */
  --border-light: #ddd; /* Light border alternative */

  /* Effects */
  --highlight: #e74c3c; /* Highlight color */
  --shadow: none;
  --shadow-lg: none;
  --shadow-sm: none;
  --transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  --radius: 4px;

  /* Typography */
  --tqt-black: #151515;
  --tqt-font-heading: "Quicksand", sans-serif;
  --tqt-font-body: "Quicksand", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Quicksand", sans-serif !important;
  color: var(--text);
  padding-top: 80px;
  background: var(--bg-main);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Quicksand", sans-serif !important;
  letter-spacing: -0.02em !important;
  font-weight: 700 !important;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1700px, 96vw) !important;
  max-width: 1700px !important;
  margin: 0 auto !important;
}

.top-bar {
  background: var(--secondary);
  color: var(--white);
  font-size: 0.9rem;
  display: none;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.65rem 0;
}

.contact-info a,
.socials a {
  color: var(--white);
}

.socials {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.socials a {
  transition:
    transform var(--transition),
    color var(--transition);
}

.socials a:hover {
  color: var(--primary);
  transform: translateY(-2px);
}

.socials .zalo-link img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
}

.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9998;
  background: var(--white);
  border-bottom: none !important;
}

.main-nav.scrolled {
  box-shadow: var(--shadow);
}

.main-nav .container {
  width: min(1320px, 96vw);
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0;
}

.logo img {
  width: clamp(82px, 10.45vw, 112px);
  max-height: 64px;
  height: auto;
  object-fit: contain;
}

.primary-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.35rem;
  align-items: center;
}

.primary-nav a {
  display: inline-block;
  padding: 0.65rem 0.95rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition:
    color var(--transition),
    transform var(--transition);
}

.primary-nav a:hover,
.primary-nav a.active {
  background: transparent !important;
  color: var(--primary) !important;
}

.primary-nav .nav-search-link {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--white);
}

.primary-nav .nav-search-link:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(0);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: var(--radius);
  padding: 10px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  border-radius: 999px;
  transition:
    transform var(--transition),
    opacity var(--transition);
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  padding: 0 !important;
  position: relative;
}

.hero::after {
  display: none;
}

.hero-slide {
  height: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transition: opacity 0.9s ease;
  background-color: var(--bg-beige);
}

@media (min-width: 901px) {
  .hero-slider,
  .hero-slide {
    height: 900px !important;
    min-height: 900px !important;
    margin-top: 0 !important;
  }
  .hero-slide {
    background-size: cover !important;
  }
}

.hero-slider {
  position: relative;
  min-height: clamp(400px, 56.25vw, 750px);
}

.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  border: 1px solid var(--white);
  background: var(--secondary);
  color: var(--white);
  font-size: 1.35rem;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 3;
  transition:
    background-color var(--transition),
    transform var(--transition);
}

.hero-prev {
  left: 16px;
}

.hero-next {
  right: 16px;
}

.hero-nav:hover {
  background: var(--primary);
  transform: translateY(-50%) scale(1.03);
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 3;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--white);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition:
    transform var(--transition),
    background-color var(--transition),
    border-color var(--transition);
}

.hero-dot.is-active {
  background: var(--white);
  border-color: var(--white);
  transform: scale(1.1);
}

.hero-highlight {
  background: var(--secondary-dark);
  color: var(--white);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.highlight-wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.highlight-intro h2 {
  font-family: var(--tqt-font-heading), sans-serif !important;
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.15;
  margin: 0.5rem 0 1.5rem;
  color: var(--white);
  font-weight: 700;
}

.highlight-intro p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.highlight-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}

.highlight-kicker::before {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor;
  border-radius: 99px;
}

.highlight-intro .btn {
  margin-top: 1rem;
  padding: 1.2rem 2.8rem;
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  box-shadow: none !important;
}

.highlight-intro .btn:hover {
  box-shadow: none !important;
  transform: translateY(-3px);
}

.highlight-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.stat-card {
  padding: 2rem 1.5rem;
  border-radius: 4px;
  border: none;
  background: transparent;
  transition: var(--transition);
}

.stat-card strong {
  display: block;
  font-size: 2.5rem;
  font-family: var(--tqt-font-heading), sans-serif !important;
  line-height: 1;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.stat-card span {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.6);
}

.btn {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: 0.72rem 1.35rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  transition:
    transform var(--transition),
    filter var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
  background: var(--primary-dark);
  color: var(--white) !important;
}

.btn-outline {
  display: block;
  width: 100%;
  text-align: center;
  background-color: var(--white) !important;
  color: var(--secondary) !important;
  border: 1px solid var(--border-light) !important;
  border-radius: 6px !important;
  font-weight: 500 !important;
  transition: all 0.3s ease !important;
  padding: 0.85rem 1rem !important;
}

.btn-outline:hover {
  border-color: var(--secondary) !important;
  color: var(--white) !important;
  background-color: var(--secondary) !important;
  transform: translateY(-2px);
}

.read-more {
  display: inline-block;
  font-weight: 700 !important;
  color: var(--secondary);
  text-decoration: none;
  font-size: 0.95rem;
  margin-top: auto;
  transition: color 0.3s ease;
  cursor: pointer;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  text-align: left !important;
  width: auto !important;
}

.read-more:hover {
  color: var(--primary);
}

/* Global Section Title Style */
.section-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2.5rem;
}

.view-all-link {
  font-weight: 700;
  color: var(--secondary);
  text-decoration: none;
  border-bottom: 2px solid var(--secondary);
  padding-bottom: 5px;
  font-size: 1.05rem;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.view-all-link:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.section-title {
  text-align: center;
  margin-bottom: 4.5rem;
}

.section-title h2 {
  font-family: var(--tqt-font-heading), sans-serif !important;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--secondary);
  margin-bottom: 1.2rem;
  display: inline-block;
  position: relative;
  padding-bottom: 0.8rem;
}

.section-title h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--primary);
}

.section-title p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto;
  font-style: italic;
}

.bg-alt {
  background: var(--bg-alt);
}

.bg-secondary {
  background: var(--bg-secondary);
  padding: 1rem 0 0;
}

.home-quote-legacy {
  text-align: center;
  background: var(--secondary);
  color: var(--white);
  padding: 100px 0;
}

#mission {
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 10;
}

#schedule {
  background: var(--secondary);
  color: var(--white);
}

#schedule .section-title h2,
#schedule h3,
#schedule p {
  color: var(--white);
}

#schedule .section-title h2::after {
  background: var(--primary);
}

#schedule [data-reveal] > div {
  backdrop-filter: blur(4px);
}

#gallery {
  background: var(--bg-alt);
}

#media {
  background: var(--bg-alt);
}

#media .section-title h2 {
  color: var(--tqt-black) !important;
}

#media .section-title p {
  color: var(--text-muted) !important;
}

#media .video-info {
  color: var(--tqt-black) !important;
}

#news {
  background: var(--bg-secondary) !important;
  padding-top: 30px !important;
}

#partners {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

/* Consolidated Section Styles */
.section {
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

.section-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center; /* Align with the main title line */
  margin-bottom: 0.8rem;
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .section-header-flex {
    flex-direction: row !important; /* Force same row */
    flex-wrap: nowrap !important;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
  }
  .section-header-flex h2 {
    font-size: 1.2rem !important; /* Smaller title to fit row */
    white-space: nowrap;
  }
  .section-header-flex .view-all-link {
    font-size: 0.8rem !important;
    white-space: nowrap;
  }
}

.section-title {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-title h2 {
  font-family: var(--tqt-font-heading), sans-serif !important;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--secondary);
  font-weight: 700;
  margin: 0;
  padding-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--primary);
}

.section-title p {
  margin: 1.5rem auto 0;
  color: var(--text-muted);
  max-width: 750px;
  font-size: 1.2rem;
  font-style: italic;
  line-height: 1.6;
}

.mission-grid,
.collection-grid,
.video-grid,
.news-grid {
  display: grid;
  gap: 30px;
}

.mission-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
}

.mission-info h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
  margin-bottom: 2rem;
  color: var(--secondary);
}

.mission-info p {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 500px;
  line-height: 1.6;
}

.mission-info .btn-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.95rem;
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.mission-card {
  background: var(--bg-alt);
  padding: 2.2rem 1.8rem;
  border-radius: 14px;
  text-align: left;
  border: 1px solid transparent;
}

.mission-card i {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 0 1.5rem;
  font-size: 1.2rem;
  color: var(--primary);
  background: var(--white);
  box-shadow: none !important;
}

.mission-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--secondary);
}

.mission-card p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 991px) {
  .mission-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 600px) {
  .mission-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.quote-section {
  padding: 0;
}

.quote-section blockquote {
  margin: 0;
  text-align: center;
  padding: 0.2rem 1rem;
  font-family: var(--tqt-font-heading), sans-serif !important;
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.2rem, 3vw, 2rem);
  color: var(--secondary);
  line-height: 1.2;
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
}

.quote-section small {
  display: block;
  margin-top: 0.2rem;
  font-size: 1rem;
  color: var(--text-muted);
  font-family: "Quicksand", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.collection-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.collection-item {
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  min-height: 300px;
  box-shadow: none !important;
}

.collection-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.collection-overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 1rem;
  color: var(--white);
  background: linear-gradient(
    to top,
    rgba(10, 35, 66, 0.92),
    rgba(10, 35, 66, 0)
  );
}

.section-title.left-align {
  text-align: left;
  margin-bottom: 2.5rem;
}

.section-title.left-align h2 {
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  display: block;
  padding-bottom: 0;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.section-title.left-align p {
  margin: 0;
  font-size: 1rem;
  font-style: normal;
  color: var(--text-muted);
}

.section-title.left-align h2::after {
  display: none;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.video-card {
  background: none;
  border: none;
  padding: 0;
  box-shadow: none !important;
}

.video-thumb {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  aspect-ratio: 16 / 9;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: none !important;
  z-index: 2;
}

.play-btn svg {
  width: 40px;
  height: 40px;
  margin-left: -1px;
  fill: var(--text-light) !important;
}

.video-title {
  margin-top: 1.2rem;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--secondary);
  font-family: "Playfair Display", serif;
  line-height: 1.4;
  text-align: left;
}

.news-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px !important;
}

.news-card,
.course-card .col-inner {
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  min-height: 100%;
  border-radius: 10px !important;
  border: 1px solid #ddd !important;
  box-shadow: none !important;
  background: #fff !important;
  transition: transform 0.3s ease !important;
  position: relative !important;
}

.news-card:hover,
.course-card .col-inner:hover {
  transform: translateY(-5px) !important;
  box-shadow: none !important;
  border-color: #ccc !important;
}

.news-img img,
.course-card .box-image img,
.post-item .box-image img {
  width: 100% !important;
  aspect-ratio: 3 / 2 !important;
  object-fit: cover !important;
  object-position: center !important;
  flex-shrink: 0 !important;
}

.news-content,
.course-card .box-text {
  padding: 15px 20px !important;
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
}

.news-content h3 {
  margin-top: 0;
  margin-bottom: 0.8rem;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
}

.news-card p,
.news-card .btn,
.news-card .post-meta,
.post-item .post-meta,
.post-item .from_the_blog_excerpt,
.post-item .is-divider {
  display: none !important;
}

.news-content .btn,
.news-content .btn-outline {
  margin-top: auto !important; /* Absolute bottom alignment */
}

.news-link {
  text-decoration: none !important;
  color: inherit !important;
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  flex: 1 1 auto;
}

/* Stretched link to make whole card clickable */
.stretched-link::after {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10;
  content: "";
}

.news-card a,
.course-card a {
  position: relative;
  z-index: 11;
}

.news-card .stretched-link,
.course-card .stretched-link {
  position: static;
}

#partners img {
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

footer {
  background: var(--secondary);
  color: var(--white);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr 1.25fr 1.25fr;
  gap: 1.2rem;
}

.footer-col {
  min-width: 0;
}

.footer-col h4 {
  margin-top: 0;
  color: var(--white);
}

.footer-col p,
.footer-col li,
.footer-col a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
}

.footer-grid > .footer-col:first-child p {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.footer-grid > .footer-col:first-child p i,
.footer-grid > .footer-col:first-child p .fa,
.footer-grid > .footer-col:first-child p .fas,
.footer-grid > .footer-col:first-child p .far {
  flex: 0 0 auto;
  margin-top: 0.22rem;
}

.footer-grid > .footer-col:first-child p:nth-of-type(3),
.footer-grid > .footer-col:first-child p:nth-of-type(4) {
  white-space: nowrap;
  align-items: center;
}

.footer-col p i,
.footer-col p .fa,
.footer-col p .fas,
.footer-col p .far {
  display: inline-block;
  margin-right: 0.45rem;
  vertical-align: middle;
}

.footer-col ul {
  margin: 0;
  padding-left: 1.1rem;
}

.footer-col iframe {
  width: 100%;
  border-radius: 10px;
}

.fanpage-col {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 0.8rem;
}

.footer-grid > .fanpage-col {
  margin-left: 10px;
}

.fanpage-col h4 {
  margin-bottom: 0.75rem;
}

.fanpage-card {
  background: var(--white);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: none !important;
  height: 340px;
  display: flex;
  flex-direction: column;
}

.fanpage-cover {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  background: var(--bg-light-gray);
}

.fanpage-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fanpage-meta {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.9rem 0.9rem 0.6rem;
}

.fanpage-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--white);
  box-shadow: none !important;
  flex: 0 0 auto;
}

.fanpage-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fanpage-text h5 {
  margin: 0 0 0.2rem;
  font-size: 0.98rem;
  line-height: 1.28;
  color: var(--secondary);
}

.fanpage-text p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.fanpage-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0.9rem 0.9rem;
  margin-top: auto;
  background: var(--facebook-blue);
  color: var(--white) !important;
  border-radius: 9px;
  padding: 0.52rem 0.9rem;
  font-size: 0.88rem;
  font-weight: 700;
  transition:
    filter var(--transition),
    transform var(--transition);
}

.fanpage-cta:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.footer-map-card {
  background: var(--white);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: none !important;
  height: 340px;
}

.footer-map-embed {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

#left-contact-floating {
  position: fixed;
  right: 14px;
  bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 10001;
}

#left-contact-floating a {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--white);
  border: 1px solid rgba(83, 18, 42, 0.14);
  box-shadow: none !important;
  transition:
    transform var(--transition),
    border-color var(--transition);
}

#left-contact-floating a:hover {
  transform: translateY(-1px) scale(1.03);
  box-shadow: none !important;
}

#left-contact-floating img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

/* Prevent legacy plugin stack from overlapping homepage icons */
body:not(.wp-theme-flatsome) #button-contact-vr {
  display: none !important;
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Premium Section Style - Dark Mode inspired by Milan Fashion Campus */
.premium-section {
  background-color: var(--secondary-dark);
  color: var(--white);
  padding: 100px 0;
}

.premium-section .section-title h2 {
  color: var(--white);
}

.premium-section .section-title p {
  color: rgba(255, 255, 255, 0.7);
}

/* Global Form Styles inspired by Milan Fashion Campus Affiliate Page */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-family: var(--tqt-font-heading), sans-serif !important;
  font-size: 1rem;
  margin-bottom: 0.6rem;
  color: var(--secondary);
  font-weight: 700;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.1rem;
  font-family: "Quicksand", sans-serif;
  font-size: 1rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  transition: border-color var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: none !important;
  background: var(--white);
}

.form-control::placeholder {
  color: var(--text-muted-light);
  opacity: 0.7;
}

.form-container {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 4px;
  box-shadow: none !important;
  border: 1px solid var(--border);
}

/* Minimalist Post Cards (Ngành đào tạo) */
.post-item .post-title {
  font-size: 1.1rem !important;
  text-transform: none !important;
  margin-bottom: 0.3rem !important;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  line-clamp: 1;
  overflow: hidden;
}

.post-item .post-meta {
  font-size: 0.8rem !important;
  color: var(--text-muted) !important;
  opacity: 0.8;
}

#partners.section {
  padding: 30px 0;
}

#partners .section-title {
  margin-bottom: 2rem;
}

.partner-ticker {
  overflow: hidden;
  width: 100%;
  padding: 2.5rem 0;
  position: relative;
  display: flex;
}

.ticker-track {
  display: flex;
  width: max-content;
  gap: 6rem; /* Khoảng cách giữa các logo */
  animation: scroll-ticker 40s linear infinite; /* Tốc độ chậm hơn để mượt hơn */
  padding-right: 6rem; /* Quan trọng: Tạo khoảng trống cuối bằng đúng gap để loop không giật */
  will-change: transform;
}

.ticker-track img {
  height: clamp(100px, 15vw, 180px);
  width: auto;
  object-fit: contain;
  filter: none;
  opacity: 1;
}

.ticker-track:hover {
  animation-play-state: paused;
}

@keyframes scroll-ticker {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(
      -50%
    ); /* Chạy hết 2 bộ đầu rồi reset (vì bạn có 4 bộ) */
  }
}

@media (max-width: 768px) {
  .ticker-track {
    gap: 3rem;
    padding-right: 3rem;
    animation-duration: 20s;
  }
  .ticker-track img {
    height: 70px;
  }
}

/* Homepage Course Section specific grid */
#courses-home .news-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

/* --- DESKTOP SPACING REDUCTION --- */
@media (min-width: 901px) {
  .section,
  section {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
  }

  .header-main {
    height: 60px !important;
    padding-bottom: 0 !important;
  }

  .page-title-inner {
    min-height: 40px !important;
    padding-top: 5px !important;
    padding-bottom: 5px !important;
  }

  .page-header-wrapper {
    margin-top: 0 !important;
    margin-bottom: 0px !important;
  }

  .page-title {
    padding-top: 0 !important;
  }

  .rank-math-breadcrumb p {
    margin: 0 !important;
  }

  .row {
    margin-bottom: 1rem !important;
  }

  .container {
    max-width: 1230px !important;
  }

  /* Wide container for specific homepage sections */
  #courses-home .container,
  #news .container {
    max-width: 1600px !important;
  }

  .gap-element {
    height: 20px !important;
  }

  #content.page-wrapper {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }

  footer.footer-wrapper section {
    padding-top: 40px !important;
    padding-bottom: 20px !important;
  }
}

/* --- Success Story Image Grid --- */
.success-image-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin: 25px 0;
}

.success-image-grid a {
  display: block;
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: none !important;
  background: var(--bg-image-placeholder);
}

.success-image-grid a::after {
  content: "\f404";
  font-family: "fl-icons";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 24px;
  opacity: 0;
}

.success-image-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 900px) {
  .success-image-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .success-image-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

/* Fashion Illustration Gallery Styles */
.fashion-gallery {
  margin: 1.5rem 0;
}

.fashion-gallery .col {
  margin-bottom: 20px;
}

.fashion-gallery img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: none !important;
  display: block;
}

@media (max-width: 600px) {
  .fashion-gallery img {
    height: 180px;
  }
}

/* Global Modal & Popup Fixes (Ensure visibility over shared header) */
.mfp-bg,
.mfp-wrap {
  z-index: 20000 !important;
}

.mfp-wrap {
  top: 92px !important; /* Offset by shared header height */
  height: calc(100vh - 92px) !important;
}

@media (max-width: 900px) {
  .mfp-wrap {
    top: 82px !important;
    height: calc(100vh - 82px) !important;
  }
}

/* Global Reset for Hover Animations (Static UI Enforcement) */
.post-item:hover,
.post-item:hover .box-image img,
.post-item .box-image:hover img,
.post-item:hover .box-image,
.post-item:hover .box-text,
.has-hover:hover,
.has-hover:hover .box-image img,
.image-zoom:hover img,
.image-zoom:hover,
.box-image:hover img,
.collection-item:hover img,
.collection-item:hover .item-inner img {
  transform: none !important;
  box-shadow: none !important;
  transition: none !important;
  filter: none !important;
}

.image-zoom,
.image-zoom img,
.post-item img,
.box-image img {
  transition: none !important;
}

/* --- GLOBAL NEWS & POST CARD FRAMES: EQUAL HEIGHT SYNC --- */

/* --- GRID FOR HOMEPAGE NEWS & COURSES --- */
@media (min-width: 901px) {
  .news-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
    margin-bottom: 30px !important;
  }
}

.row.large-columns-3 {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: stretch !important;
}

.post-item {
  display: flex !important;
}

/* Removed conflicting overrides to ensure consistent card design */

/* --- BUTTON HOVER REFINEMENT 2026-04-13 --- */
.news-card:hover .btn-outline,
.post-item .col-inner:hover .btn-outline,
.btn-outline:hover {
  background-color: var(--secondary) !important;
  color: var(--white) !important;
  border-color: var(--secondary) !important;
  transition: all 0.3s ease !important;
}

/* --- MOBILE HORIZONTAL SCROLL FOR GRIDS (Final Override) --- */
@media (max-width: 900px) {
  .news-grid,
  .video-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 15px !important;
    padding: 10px 4vw 25px !important;
    margin-left: -4vw !important;
    margin-right: -4vw !important;
    scrollbar-width: none;
    width: calc(100% + 8vw) !important;
    scroll-padding: 0 4vw;
  }

  .news-grid::-webkit-scrollbar,
  .video-grid::-webkit-scrollbar {
    display: none;
  }

  .news-card,
  .video-card {
    flex: 0 0 82% !important;
    width: 82% !important;
    min-width: 82% !important;
    scroll-snap-align: center;
    margin: 0 !important;
    height: auto !important;
  }

  /* Support for items inside col-inner if applicable */
  .news-grid .col {
    flex: 0 0 82% !important;
    width: 82% !important;
    display: flex !important;
  }

  @media (min-width: 601px) {
    /* On larger tablets, show 2 cards nearly but still 1 row scrollable */
    .news-grid .col {
      flex: 0 0 45% !important;
      width: 45% !important;
      min-width: 45% !important;
    }
  }
}

/* --- Premium Hero Quote Box --- */
.home-quote-section {
  padding-bottom: 0 !important;
  margin-top: 25px !important;
  margin-bottom: -100px !important;
  position: relative;
  z-index: 5;
}

@media (max-width: 768px) {
  .home-quote-section {
    margin-bottom: 0 !important;
    padding: 20px 0 !important;
  }
}

.premium-hero-quote {
  background: var(--secondary-dark);
  color: var(--white);
  padding: 2rem 2rem;
  border-radius: 0;
  margin: 1.5rem 0 1.5rem 0;
  font-size: 2.3rem;
  line-height: 1.5;
  font-weight: 500;
  text-align: center;
}

@media (max-width: 768px) {
  .home-quote-section,
  .home-quote-section .container {
    padding-left: 0 !important;
    padding-right: -17px !important;
  }

  .premium-hero-quote {
    padding: 2rem 1.5rem;
    font-size: 1.5rem;
    margin: 16px auto !important;
    line-height: 1.8;
    aspect-ratio: auto !important;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 92% !important;
    box-sizing: border-box;
    text-align: center;
  }
}

/* --- Course Section Mobile Slider (Category Pages) --- */
@media (max-width: 900px) {
  .course-section-viewport {
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0 0 20px !important;
  }
  .course-section-viewport::-webkit-scrollbar {
    display: none;
  }
  .course-section-track {
    display: flex !important;
    flex-wrap: nowrap !important;
    transform: none !important; /* Disable JS transform to allow native scroll */
    gap: 15px !important;
    padding: 0 5vw !important;
    font-weight: bold !important;
    scroll-padding: 0 5vw;
  }
  .course-section-track .course-card {
    flex: 0 0 82% !important;
    width: 82% !important;
    min-width: 82% !important;
    max-width: 82% !important;
    scroll-snap-align: center;
    margin: 0 !important;
  }
  .course-section .btn-prev,
  .course-section .btn-next {
    display: none !important; /* Hide redundant arrows on mobile */
  }
}

@media (max-width: 600px) {
  .course-section-track .course-card {
    flex: 0 0 85% !important;
    width: 85% !important;
    min-width: 85% !important;
  }
}

/* --- News Archive Controls (Search & Filter) --- */
.news-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 40px auto 25px !important;
  align-items: center;
  justify-content: flex-end;
  padding: 0 15px;
}

.news-search {
  display: flex;
  align-items: center;
  background: #f5f5f5;
  border-radius: 25px;
  padding: 5px 18px;
  border: 1px solid transparent !important;
  transition: all 0.3s ease;
  flex: 0 1 400px;
  max-width: 100%;
}

.news-search:focus-within {
  background: #fff;
  border-color: #e74c3c !important;
  box-shadow: none !important;
}

.news-search-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  flex-shrink: 0;
}

.news-search input {
  border: none !important;
  background: transparent !important;
  outline: none !important;
  box-shadow: none !important;
  padding: 8px 12px !important;
  width: 100% !important;
  font-size: 0.95rem !important;
  height: auto !important;
  margin-bottom: 0 !important;
}

.news-filters {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
}

.news-filters select {
  height: 48px !important;
  padding: 0 35px 0 15px !important;
  border-radius: 8px !important;
  border: 1px solid #ddd !important;
  background: #f9f9f9
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M1 4l5 5 5-5z'/%3E%3C/svg%3E")
    no-repeat right 12px center !important;
  background-size: 12px !important;
  appearance: none !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  color: #555 !important;
  min-width: 120px !important;
  margin-bottom: 0 !important;
}

.news-filters select:focus {
  border-color: #e74c3c !important;
  background-color: #fff !important;
}

@media (max-width: 768px) {
  .news-controls {
    flex-direction: column;
    align-items: stretch;
    margin: 0px auto 10px !important;
  }
  .news-search {
    flex: 1 1 auto;
    max-width: 100%;
  }
  .news-filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }
  .news-filters select {
    min-width: 0 !important;
  }

  /* News Grid 2x2 on Mobile */
  #news-grid-container {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    margin: 10px 0 0 0 !important;
    padding: 0 12px !important;
    width: 100% !important;
  }

  #news-grid-container .post-item {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .post-item .box-text {
    padding: 12px 10px !important;
  }

  .post-item .post-title a {
    font-size: 0.85rem !important;
    line-height: 1.3 !important;
  }

  .post-item .post-meta {
    font-size: 0.75rem !important;
    margin-bottom: 4px !important;
  }

  .post-item .from_the_blog_excerpt {
    display: none !important; /* Hide excerpt on 2-column mobile to keep it clean */
  }
}

/* --- News Card Aesthetics --- */
.post-item .post-title a {
  color: #151515 !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  transition: color 0.3s ease !important;
}

.post-item .post-title a:hover {
  color: #e74c3c !important;
}

.post-item .post-meta {
  color: #555555 !important;
  font-size: 0.85rem !important;
  margin-bottom: 8px !important;
}

.post-item .from_the_blog_excerpt {
  color: #444444 !important;
  font-size: 0.9rem !important;
  line-height: 1.6 !important;
}

#no-results-message {
  width: 100%;
  text-align: center;
  padding: 60px 20px;
  color: #888;
  font-size: 1.1rem;
  display: none;
}

/* --- REGISTRATION FORM --- */
.tqt-registration-wrapper {
  margin: 50px 0;
  padding: 40px;
  background: #fdfdfd;
  border: 1px solid #eee;
  border-radius: 12px;
  box-shadow: none !important;
}

.tqt-registration-wrapper h3 {
  margin-top: 0;
  font-size: 1.6rem;
  color: var(--secondary);
  text-align: center;
  margin-bottom: 30px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tqt-registration-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.tqt-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tqt-form-group.full-width {
  grid-column: span 2;
}

.tqt-form-group label {
  font-weight: 900;
  font-size: 0.9rem;
  color: var(--secondary);
}

.tqt-registration-form input,
.tqt-registration-form select {
  height: 56px !important;
  padding: 10px 18px 12px 18px !important; /* Slightly more at bottom to accommodate accents */
  font-size: 1.15rem !important;
  line-height: 1 !important;
  border: 1px solid #ddd !important;
  border-radius: 8px !important;
  background: #fff !important;
  transition: border-color 0.3s !important;
  width: 100% !important;
  color: var(--secondary) !important;
  box-sizing: border-box !important;
}

.tqt-registration-form textarea {
  height: 56px !important;
  padding: 16px 18px !important; /* Adjusted to center text vertically */
  font-size: 1.15rem !important;
  line-height: 1.2 !important;
  border: 1px solid #ddd !important;
  border-radius: 8px !important;
  background: #fff !important;
  transition: border-color 0.3s !important;
  width: 100% !important;
  color: var(--secondary) !important;
  box-sizing: border-box !important;
  resize: vertical;
}

.tqt-registration-form select {
  appearance: none !important;
  -webkit-appearance: none !important;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 18px center !important;
  padding-right: 45px !important;
}

.tqt-registration-form input:focus,
.tqt-registration-form select:focus,
.tqt-registration-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: none !important;
}

.tqt-form-submit {
  grid-column: span 2;
  text-align: center;
  margin-top: 15px;
}

.tqt-btn-submit {
  background: var(--secondary) !important;
  color: white;
  border: none;
  padding: 12px 40px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: none !important;
}

.tqt-btn-submit:hover {
  background: var(--secondary-hover) !important;
  transform: translateY(-3px);
  box-shadow: none !important;
}

.tqt-registration-wrapper p.form-note {
  text-align: center;
  font-size: 0.85rem;
  color: #888;
  margin-top: 15px;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .tqt-registration-form {
    grid-template-columns: 1fr;
  }
  .tqt-form-group.full-width {
    grid-column: span 1;
  }
  .tqt-form-submit {
    grid-column: span 1;
  }
  .tqt-registration-wrapper {
    padding: 30px 20px;
    margin: 30px 0;
  }
  .tqt-registration-wrapper h3 {
    font-size: 1.3rem;
  }
  .tqt-btn-submit {
    padding: 12px 20px;
    font-size: 0.9rem;
    width: 100%;
    border-radius: 8px;
    letter-spacing: 0.5px;
  }
}

/* Sidebar Specific Registration Form */
#secondary .tqt-registration-wrapper,
.post-sidebar .tqt-registration-wrapper {
  padding: 25px 20px;
  margin: 25px 0;
  border-radius: 8px;
}
#secondary .tqt-registration-form,
.post-sidebar .tqt-registration-form {
  grid-template-columns: 1fr;
  gap: 15px;
}
#secondary .tqt-form-group.full-width,
#secondary .tqt-form-submit,
.post-sidebar .tqt-form-group.full-width,
.post-sidebar .tqt-form-submit {
  grid-column: span 1;
}
#secondary .tqt-btn-submit,
.post-sidebar .tqt-btn-submit {
  padding: 10px 30px;
  font-size: 0.85rem;
  width: auto;
  max-width: 90%;
  border-radius: 6px;
  letter-spacing: 1px;
  background: var(--secondary) !important;
  box-shadow: none !important;
}
#secondary .tqt-form-group input,
#secondary .tqt-form-group select,
#secondary .tqt-form-group textarea,
.post-sidebar .tqt-form-group input,
.post-sidebar .tqt-form-group select,
.post-sidebar .tqt-form-group textarea {
  padding: 10px 14px !important;
  font-size: 1rem !important;
  line-height: 1.4 !important;
  min-height: auto !important;
}
#secondary .tqt-form-group label,
.post-sidebar .tqt-form-group label {
  font-size: 0.8rem !important;
  margin-bottom: 2px !important;
}
#secondary .tqt-registration-wrapper h3,
.post-sidebar .tqt-registration-wrapper h3 {
  font-size: 1.15rem;
  margin-bottom: 15px;
}

/* --- COMMON COURSE DETAIL COMPONENTS --- */
.course-highlights {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 15px !important;
  margin: 25px 0 !important;
}

@media (min-width: 768px) {
  .course-highlights {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

.highlight-item {
  background: #f8f9fa !important;
  padding: 20px !important;
  border-radius: 12px !important;
  text-align: center !important;
  border: 1px solid #eee !important;
  transition: all 0.3s ease !important;
  box-shadow: none !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
}

.highlight-item:hover {
  background: #fff !important;
  border-color: #3498db !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
  transform: translateY(-5px) !important;
}

@media (min-width: 901px) {
  .course-highlights:hover .highlight-item:not(:hover) {
    opacity: 0.4 !important;
    filter: blur(2px);
    transform: scale(0.8) !important;
  }

  .highlight-item:hover {
    transform: translateY(-20px) scale(1.15) !important;
    z-index: 10;
    border-color: var(--primary-color) !important;
    background: #fff !important;
    opacity: 1 !important;
    filter: none !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
  }
}

.highlight-item i {
  font-size: 24px !important;
  color: #3498db !important;
  margin-bottom: 10px !important;
  display: block !important;
}

.highlight-item strong {
  display: block !important;
  font-size: 13px !important;
  color: #888 !important;
  text-transform: uppercase !important;
  margin-bottom: 5px !important;
  letter-spacing: 0.5px !important;
}

.highlight-item span {
  display: block !important;
  font-size: 15px !important;
  color: #333 !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
}

/* Accordion Styles */
.tqt-accordion {
  margin: 25px 0 !important;
}

.accordion-item {
  margin-bottom: 10px !important;
  border: none !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  box-shadow: none !important;
}

.accordion-header {
  width: 100% !important;
  padding: 15px 20px !important;
  background: #f8f9fa !important;
  border: none !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  font-weight: 800 !important;
  color: #333 !important;
  text-align: left !important;
  box-shadow: none !important;
}

.accordion-header:hover {
  background: #f1f1f1 !important;
}

.accordion-header.active {
  background: var(--secondary) !important;
  color: #fff !important;
}

.accordion-icon {
  transition: transform 0.3s ease !important;
}

.accordion-header.active .accordion-icon {
  transform: rotate(180deg) !important;
}

.accordion-content {
  display: none !important;
  padding: 20px !important;
  background: #fff !important;
  border-top: 1px solid #eee !important;
}

.accordion-content.active {
  display: block !important;
}

/* --- Course Detail Unified Section Styles --- */
.curriculum-section,
.gallery-section {
  margin-top: 40px !important;
}

.curriculum-section h3,
.gallery-section h3 {
  border-bottom: 2px solid #eee !important;
  padding-bottom: 10px !important;
  margin-bottom: 20px !important;
  text-align: center !important;
  color: var(--primary-color) !important;
  text-transform: uppercase !important;
  font-weight: 700 !important;
}

/* Contact CTA Styles */
.contact-cta {
  background: var(--secondary-dark) !important;
  color: #fff !important;
  padding: 40px !important;
  border-radius: 12px !important;
  text-align: center !important;
  margin: 40px 0 !important;
}

.contact-cta h3 {
  color: #fff !important;
  margin-top: 0 !important;
  font-size: 1.5rem !important;
}

.contact-cta p {
  color: #fff !important;
}

.contact-cta .hotline-text {
  font-size: 28px !important;
  font-weight: 800 !important;
  color: #3498db !important;
  margin: 15px 0 0 !important;
}

/* Image Grid Styles */
.article-image-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 20px !important;
  margin: 30px 0 !important;
}

.article-image-grid img {
  width: 100% !important;
  height: 300px !important;
  object-fit: cover !important;
  border-radius: 12px !important;
  transition: all 0.3s ease !important;
  cursor: zoom-in !important;
}

.article-image-grid img:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

@media (max-width: 600px) {
  .article-image-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  .article-image-grid img {
    height: 150px !important;
  }
}

/* Image Modal Styles */
.tqt-image-modal {
  display: none !important;
  position: fixed !important;
  z-index: 99999 !important;
  left: 0 !important;
  top: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background-color: rgba(0, 0, 0, 0.95) !important;
  backdrop-filter: blur(10px) !important;
  opacity: 0 !important;
  transition: opacity 0.3s ease !important;
  justify-content: center !important;
  align-items: center !important;
  cursor: zoom-out !important;
}

.tqt-image-modal.active {
  display: flex !important;
  opacity: 1 !important;
}

.tqt-image-modal-content {
  max-width: 90% !important;
  max-height: 90vh !important;
  object-fit: contain !important;
  transform: scale(0.8) !important;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}

.tqt-image-modal.active .tqt-image-modal-content {
  transform: scale(1) !important;
}

.tqt-close-modal {
  position: absolute !important;
  top: 30px !important;
  right: 40px !important;
  color: #fff !important;
  font-size: 50px !important;
  font-weight: 200 !important;
  cursor: pointer !important;
  line-height: 1 !important;
  transition: all 0.3s ease !important;
}

.tqt-close-modal:hover {
  color: #ff0000 !important;
  transform: rotate(90deg) !important;
}

/* --- COURSE SLIDER STYLES 2026-04-20 --- */
.course-slider-wrapper {
  margin-top: 2rem;
  padding: 1rem 0;
}

@media (max-width: 900px) {
  .course-slider-wrapper {
    margin-top: 0.5rem;
    padding: 0.5rem 0;
  }
}

.course-slider {
  position: relative;
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  min-height: 500px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}

.course-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 6fr 4fr;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 1s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 1s;
  background: var(--white);
}

.course-slide.active {
  opacity: 1;
  visibility: visible;
  position: relative;
}

.course-slide-content {
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.2rem;
  z-index: 2;
}

@media (max-width: 900px) {
  .course-slide-content {
    padding: 1.2rem 1.2rem 2rem 1.2rem !important;
    gap: 0.8rem !important;
  }
}

.course-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(231, 76, 60, 0.1);
  color: var(--primary);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  width: fit-content;
}

.course-slide-title {
  font-size: clamp(2rem, 4vw, 2.8rem) !important;
  line-height: 1.1;
  color: var(--secondary);
  margin: 0;
  font-weight: 800 !important;
}

.course-slide-summary {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0.5rem 0;
  line-height: 1.6;
}

.course-meta {
  margin-bottom: 1rem;
  font-weight: 600;
  color: var(--text-muted);
}

.course-meta i {
  color: var(--primary);
  margin-right: 8px;
}

.btn-slider {
  background: var(--secondary);
  color: var(--white) !important;
  padding: 16px 32px;
  border-radius: 50px;
  font-weight: 700;
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
}

@media (max-width: 900px) {
  .btn-slider {
    padding: 12px 24px !important;
    font-size: 0.95rem !important;
  }
}

.btn-slider:hover {
  background: var(--primary);
  transform: translateX(5px);
}

.course-slide-thumb {
  position: relative;
  height: 100%;
  overflow: hidden;
}

.course-slide-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--white), transparent 20%);
}

.course-slide-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 6s linear;
}

.course-slide.active .course-slide-thumb img {
  transform: scale(1.1);
}

.course-nav {
  display: none;
}

.course-slider-dots {
  position: absolute;
  bottom: 30px;
  left: 3rem;
  display: flex;
  gap: 12px;
  z-index: 10;
}

.course-dot {
  width: 8px;
  height: 8px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.course-dot.active {
  background: var(--primary);
  width: 40px;
  border-radius: 10px;
}

/* Animations */
.course-slide.active .course-slide-title {
  animation: slideUpFade 0.8s both 0.3s;
}

.course-slide.active .course-slide-summary {
  animation: slideUpFade 0.8s both 0.5s;
}

.course-slide.active .btn-slider {
  animation: slideUpFade 0.8s both 0.7s;
}

@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .course-slider {
    min-height: auto;
  }
  .course-slide {
    grid-template-columns: 1fr;
    position: absolute;
    opacity: 0;
    visibility: hidden;
    display: flex;
    flex-direction: column;
    height: auto;
  }
  .course-slide.active {
    opacity: 1;
    visibility: visible;
    position: relative;
  }
  .course-slide-thumb {
    height: 250px;
    width: 100%;
    flex-shrink: 0;
  }
  .course-slide-thumb::after {
    background: linear-gradient(to bottom, transparent 80%, var(--white));
    width: 100%;
    left: 0;
  }
  .course-slide-content {
    padding: 1rem 1.2rem 2rem 1.2rem;
    text-align: center;
    align-items: center;
  }
  .course-slider-dots {
    display: none !important;
  }
  .course-nav {
    display: flex !important;
    position: absolute;
    top: 125px; /* Center of 250px thumb */
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    border-radius: 0;
    align-items: center;
    justify-content: center;
    z-index: 20;
    color: var(--secondary);
    box-shadow: none;
    cursor: pointer;
  }
  .course-nav.prev {
    top: 20%;
    left: 2%;
  }
  .course-nav.next {
    top: 20%;
    right: 2%;
  }
  .course-nav i {
    font-size: 2rem;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
  }
}
/* --- QUOTE SLIDER --- */
.quote-slider-section {
  padding: 80px 0 20px 0 !important;
  text-align: center;
  overflow: hidden;
}

.quote-slider {
  position: relative;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quote-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 1s ease,
    visibility 1s ease,
    transform 1s ease;
  transform: translateY(10px);
}

.quote-slide.active {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.quote-slide blockquote {
  font-size: clamp(1.4rem, 4vw, 2.2rem) !important;
  font-weight: 500 !important;
  font-style: italic !important;
  margin: 0 !important;
  border: none !important;
  padding: 0 !important;
  line-height: 1.4 !important;
  color: var(--secondary-dark) !important;
}

.quote-slide blockquote small {
  display: block !important;
  margin-top: 25px !important;
  font-size: 0.9rem !important;
  font-style: normal !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 3px !important;
  color: var(--text-light) !important;
}

@media (max-width: 768px) {
  .quote-slider-section {
    padding: 40px 0 10px 0 !important;
  }
  .quote-slider {
    min-height: 200px;
  }
}
