/*
Theme Name: Lập Trình Scratch STEM
Theme URI: https://laptrinhscratch.edu.vn
Author: Lập Trình Scratch Team
Author URI: https://laptrinhscratch.edu.vn
Description: Theme WordPress độc quyền thiết kế riêng cho hệ sinh thái Lập Trình Scratch & Giáo dục STEM.
Version: 2.2.0
Text Domain: laptrinhscratch
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --primary: #0066ff;
  --primary-dark: #004ecc;
  --accent: #855cd6;
  --accent-dark: #6b21a8;
  --bg-hero: #f0f7ff;
  --bg-light: #f8fafc;
  --text-main: #0f172a;
  --text-muted: #475569;
  --border-color: rgba(0, 102, 255, 0.12);
}

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

body,
html {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-main);
  background-color: #ffffff;
  line-height: 1.6;
  width: 100%;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ==========================================
   Header & Top Navigation
   ========================================== */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  padding: 14px 0;
  transition: all 0.25s ease;
}

.header-container {
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
}

/* Retain 1200px centered header layout on Homepage, Course archive & Collection archive */
.home .header-container,
.front-page .header-container,
.post-type-archive-course .header-container,
.post-type-archive-collection .header-container,
.archive-course .header-container,
.archive-collection .header-container {
  max-width: 1200px;
  padding: 0 15px;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

.brand-name {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.brand-sub {
  font-size: 12px;
  font-weight: 700;
  color: #0066ff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 15px;
  font-weight: 600;
  color: #334155;
}

.nav-links a {
  color: #334155;
  transition: color 0.2s ease;
  text-decoration: none;
}

.nav-links a:hover {
  color: #0066ff;
}

.btn-scratch-login {
  background: #0066ff;
  color: white;
  padding: 9px 20px;
  border-radius: 22px;
  box-shadow: 0 4px 14px rgba(0, 102, 255, 0.25);
  font-weight: 700;
  font-size: 13.5px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s ease;
}

.btn-scratch-login:hover {
  transform: translateY(-2px);
  background: #004ecc;
  box-shadow: 0 6px 20px rgba(0, 102, 255, 0.35);
}

.user-header-badge {
  background: #e0f2fe;
  color: #0369a1;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  border: 1px solid #bae6fd;
  transition: all 0.2s ease;
  cursor: pointer;
}

.user-header-badge:hover {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

.logout-link {
  color: #ef4444;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  margin-left: 6px;
  transition: color 0.2s ease;
}

.logout-link:hover {
  color: #dc2626;
  text-decoration: underline;
}

/* ==========================================
   Hero Section (Makeblock / mBlock Exact Style)
   ========================================== */
.hero-section-new {
  background: linear-gradient(180deg, #edf6ff 0%, #e2f0ff 100%);
  padding: 70px 0 90px 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom: 1px solid rgba(0, 102, 255, 0.08);
}

.hero-container-2col {
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  padding: 0 24px;
  min-height: 400px;
}



/* Left Column: Text side */
.hero-text-side {
  flex: 1 1 500px;
  max-width: 550px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.hero-subtitle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 800;
  color: #0066ff;
  background: rgba(255, 255, 255, 0.95);
  padding: 8px 18px;
  border-radius: 30px;
  border: 1.5px solid rgba(0, 102, 255, 0.22);
  box-shadow: 0 4px 16px rgba(0, 102, 255, 0.12), 0 2px 4px rgba(0, 0, 0, 0.02);
  margin-bottom: 16px;
  letter-spacing: -0.2px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.hero-subtitle::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.85), transparent);
  transform: skewX(-25deg);
  animation: subtitleShine 3.5s ease-in-out infinite;
}

@keyframes subtitleShine {
  0% {
    left: -120%;
  }

  35%,
  100% {
    left: 220%;
  }
}

.hero-subtitle:hover {
  transform: translateY(-2px);
  border-color: #0066ff;
  box-shadow: 0 8px 22px rgba(0, 102, 255, 0.22);
}

.hero-subtitle .badge-icon {
  font-size: 16px;
  display: inline-block;
  animation: rotateSparkle 2.5s ease-in-out infinite alternate;
}

@keyframes rotateSparkle {
  0% {
    transform: rotate(-10deg) scale(0.95);
  }

  100% {
    transform: rotate(15deg) scale(1.2);
  }
}

.hero-subtitle .highlight-text {
  background: linear-gradient(135deg, #0066ff 0%, #7c3aed 60%, #ea580c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  animation: textGradFlow 5s ease infinite alternate;
}

@keyframes textGradFlow {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 100% 50%;
  }
}

.hero-main-title {
  font-size: 28px;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.28;
  margin-bottom: 22px;
  letter-spacing: -0.5px;
  text-align: left;
}

.hero-main-title.hero-title-nền-tảng {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-title-nền-tảng .badge-icon {
  font-size: 28px;
  display: inline-block;
  animation: rotateSparkle 2.5s ease-in-out infinite alternate;
}

.hero-title-nền-tảng .highlight-text {
  background: linear-gradient(135deg, #0066ff 0%, #7c3aed 55%, #ea580c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  animation: textGradFlow 5s ease infinite alternate;
}

.hero-bullet-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
  width: 100%;
}

.hero-bullet-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  color: #334155;
  line-height: 1.5;
}

.hero-bullet-dot {
  color: #64748b;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
}

.hero-pill-actions {
  display: flex;
  gap: 14px;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
}

.btn-mblock-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: #0066ff;
  font-size: 14.5px;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 24px;
  border: 1.5px solid #0066ff;
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.08);
  transition: all 0.25s ease;
  text-decoration: none;
  cursor: pointer;
}


.btn-mblock-pill:hover {
  background: #0066ff;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 102, 255, 0.25);
}

.btn-mblock-pill.primary {
  background: #0066ff;
  color: #ffffff;
  border: 1.5px solid #0066ff;
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.25);
}

.btn-mblock-pill.primary:hover {
  background: #004ecc;
  border-color: #004ecc;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 102, 255, 0.35);
}

/* Right Column: Hero Visual Container */
.hero-image-side {
  flex: 1 1 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual-container {
  position: relative;
  width: 100%;
  max-width: 420px;
}

.hero-main-img {
  width: 100%;
  height: auto;
  border-radius: 22px;
  box-shadow: 0 16px 36px rgba(0, 102, 255, 0.12), 0 4px 10px rgba(0, 0, 0, 0.04);
  border: 3px solid #ffffff;
  display: block;
}

/* Floating Scratch Blockly Blocks */
.floating-scratch-badge {
  position: absolute;
  left: -14px;
  bottom: 12px;
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 10;
  animation: floatSlow 4s ease-in-out infinite alternate;
}

.scratch-block {
  padding: 5px 9px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  color: white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
  width: fit-content;
}

.scratch-block span {
  background: white;
  color: #0f172a;
  padding: 1px 5px;
  border-radius: 8px;
  font-size: 10px;
  display: inline-block;
}

.block-yellow {
  background: #eab308;
  border-radius: 10px 10px 6px 6px;
}

.block-blue {
  background: #3b82f6;
  margin-left: 8px;
}

.block-purple {
  background: #a855f7;
  margin-left: 8px;
}

/* Floating Code Snippet Card */
.floating-code-badge {
  position: absolute;
  right: -14px;
  bottom: 18px;
  background: #ffffff;
  border-radius: 12px;
  padding: 7px 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 10.5px;
  line-height: 1.4;
  z-index: 10;
  animation: floatSlowReverse 4s ease-in-out infinite alternate;
}

.floating-code-badge .ln {
  color: #94a3b8;
  margin-right: 6px;
  user-select: none;
}

.floating-code-badge .kw {
  color: #0066ff;
  font-weight: 700;
}

.floating-code-badge .fn {
  color: #855cd6;
  font-weight: 700;
}

.floating-code-badge .num {
  color: #ea580c;
  font-weight: 700;
}

/* Floating Code Icon */
.floating-code-icon {
  position: absolute;
  right: -10px;
  top: 25%;
  background: #0066ff;
  color: white;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 12.5px;
  box-shadow: 0 5px 14px rgba(0, 102, 255, 0.35);
  border: 2px solid #ffffff;
  z-index: 10;
}

@keyframes floatSlow {
  0% {
    transform: translateY(0px);
  }

  100% {
    transform: translateY(-5px);
  }
}

@keyframes floatSlowReverse {
  0% {
    transform: translateY(0px);
  }

  100% {
    transform: translateY(5px);
  }
}

/* ==========================================
   Left Floating Vertical Nav Panel & Main Wrapper
   ========================================== */
.main-wrapper {
  width: 100%;
  position: relative;
}

.content-area {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 50px 24px 80px 24px;
}


.left-nav-panel {
  position: fixed;
  left: 24px;
  top: 50%;
  transform: translateY(-50%) translateX(-20px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  padding: 10px;
  border-radius: 40px;
  border: 1px solid rgba(0, 102, 255, 0.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.left-nav-panel.visible {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
  pointer-events: auto;
}

.left-nav-item {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: transparent;
  color: #64748b;
  text-decoration: none;
  transition: all 0.25s ease;
}

.left-nav-item:hover,
.left-nav-item.active {
  background: #0066ff;
  color: #ffffff;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.35);
}

.left-nav-icon {
  font-size: 18px;
  line-height: 1;
}

.left-nav-tooltip {
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(-8px);
  background: #0f172a;
  color: white;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.left-nav-tooltip::before {
  content: "";
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: transparent #0f172a transparent transparent;
}

.left-nav-item:hover .left-nav-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* ==========================================
   Home Sections & mBlock STEM Style Cards
   ========================================== */
.home-section {
  scroll-margin-top: 110px;
  margin-bottom: 100px;
  width: 100%;
}


/* ==========================================
   Makeblock Soft Borderless Slider Style (Generously Spaced & Elegant)
   ========================================== */
.mblock-section-header {
  text-align: center;
  margin-bottom: 48px;
}

.mblock-top-badge {
  color: #0066ff;
  font-size: 14.5px;
  font-weight: 700;
  display: block;
  margin-bottom: 12px;
  letter-spacing: -0.2px;
}

.mblock-top-badge.kit-badge {
  color: #855cd6;
}

.mblock-title {
  font-size: 30px;
  font-weight: 900;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.5px;
  line-height: 1.35;
}

.slider-wrapper {
  position: relative;
  width: 100%;
}

.slider-container.soft-slider {
  display: flex;
  gap: 32px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 14px 4px 45px 4px;
  scrollbar-width: none;
  width: 100%;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
}

.slider-container.soft-slider.dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  user-select: none;
}

.slider-container.soft-slider::-webkit-scrollbar {
  display: none;
}

/* Individual Item (Generous & Airy) */
.soft-slider-item {
  flex: 0 0 240px;
  min-width: 220px;
  max-width: 270px;
  scroll-snap-align: start;
  background: transparent;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.soft-slider-item:hover {
  transform: translateY(-4px);
}

/* Image Container (Comfortable Height & Radius) */
.soft-img-card {
  width: 100%;
  aspect-ratio: 16 / 11;
  max-height: 175px;
  border-radius: 18px;
  overflow: hidden;
  background: #f8fafc;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
  position: relative;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.soft-slider-item:hover .soft-img-card {
  box-shadow: 0 12px 28px rgba(0, 102, 255, 0.14);
  transform: scale(1.02);
}

#products .soft-slider-item:hover .soft-img-card {
  box-shadow: 0 12px 28px rgba(133, 92, 214, 0.14);
}

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

.soft-slider-item:hover .soft-img-card img {
  transform: scale(1.05);
}

/* Text Content below Image (Generous Line Spacing & Distinct Rhythm) */
.soft-item-info {
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  min-height: 125px;
}

.soft-item-title {
  font-size: 15.5px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 10px 0;
  line-height: 1.55;
  letter-spacing: -0.2px;
}

.soft-item-title a {
  color: #0f172a;
  text-decoration: none;
  transition: color 0.2s ease;
}

.soft-item-title a:hover {
  color: #0066ff;
}

#products .soft-item-title a:hover {
  color: #855cd6;
}

.soft-item-sub {
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
  margin: 0 0 16px 0;
  line-height: 1.45;
}

.soft-item-links {
  display: flex;
  flex-direction: column;
  margin-top: auto;
  padding-top: 4px;
}

.soft-link {
  color: #0066ff;
  font-weight: 700;
  font-size: 13.5px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.2s ease, transform 0.2s ease;
  line-height: 1.4;
}

.soft-link:hover {
  color: #004ecc;
  transform: translateX(4px);
}

.soft-link.kit-link {
  color: #855cd6;
}

.soft-link.kit-link:hover {
  color: #6b21a8;
}

/* Navigation Arrow Overlays (Hidden in normal state, Smooth Fade-In on Hover) */
.slider-nav-arrow {
  position: absolute;
  top: 32%;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  backdrop-filter: blur(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease, border-color 0.2s ease;
}

.slider-nav-arrow.prev-arrow {
  left: -32px;
  transform: translateY(-50%) translateX(-8px);
}

.slider-nav-arrow.next-arrow {
  right: -32px;
  transform: translateY(-50%) translateX(8px);
}

/* Reveal Arrows on Hovering Slider Area */
.slider-wrapper:hover .slider-nav-arrow {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.slider-wrapper:hover .slider-nav-arrow.prev-arrow,
.slider-wrapper:hover .slider-nav-arrow.next-arrow {
  transform: translateY(-50%) translateX(0);
}

/* Hovering Arrow directly */
.slider-nav-arrow:hover {
  background: #0066ff;
  color: #ffffff;
  border-color: #0066ff;
  box-shadow: 0 6px 18px rgba(0, 102, 255, 0.25);
}

.slider-wrapper:hover .slider-nav-arrow:hover {
  transform: translateY(-50%) scale(1.1);
}

.slider-nav-arrow.kit-nav:hover {
  background: #855cd6;
  border-color: #855cd6;
  box-shadow: 0 6px 18px rgba(133, 92, 214, 0.25);
}

/* Center Bottom Action Pill Button */
.mblock-bottom-cta {
  text-align: center;
  margin-top: 45px;
}

.btn-mblock-action-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0066ff;
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 700;
  padding: 12px 34px;
  border-radius: 28px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.22);
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
}

.btn-mblock-action-pill:hover {
  background: #004ecc;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 102, 255, 0.35);
}

#products .btn-mblock-action-pill {
  background: #855cd6;
  box-shadow: 0 4px 12px rgba(133, 92, 214, 0.22);
}

#products .btn-mblock-action-pill:hover {
  background: #6b21a8;
  box-shadow: 0 8px 22px rgba(133, 92, 214, 0.35);
}

/* ==========================================
   Section A: One-Click with Ease (Workflow Grid)
   ========================================== */
.mblock-workflow-section {
  padding: 55px 0 25px 0;
}

.workflow-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 55px;
}

.workflow-step-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.workflow-img-box {
  width: 100%;
  height: 220px;
  border-radius: 18px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.workflow-step-item:hover .workflow-img-box {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(0, 102, 255, 0.12);
}

.workflow-img-box img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.workflow-step-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.workflow-step-num {
  font-size: 42px;
  font-weight: 900;
  color: #bfdbfe;
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -1.5px;
  user-select: none;
}

.workflow-step-desc {
  font-size: 14.5px;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.55;
  margin: 0;
}

.workflow-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

/* ==========================================
   Section B: Learn and Teach, All with Ease (Showcase Rows)
   ========================================== */
.mblock-showcase-section {
  padding: 60px 0 25px 0;
}

.showcase-rows {
  display: flex;
  flex-direction: column;
  gap: 90px;
  margin-top: 55px;
}

.showcase-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.showcase-img-side {
  width: 100%;
  max-height: 250px;
  border-radius: 22px;
  overflow: hidden;
  background: #f8fafc;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.showcase-img-side:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(0, 102, 255, 0.12);
}

.showcase-img-side img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.showcase-content-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.showcase-tag {
  font-size: 13.5px;
  font-weight: 700;
  color: #ea580c;
  margin-bottom: 8px;
}

.showcase-heading {
  font-size: 26px;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.35;
  margin: 0 0 14px 0;
  letter-spacing: -0.4px;
}

.showcase-desc {
  font-size: 15px;
  font-weight: 500;
  color: #475569;
  line-height: 1.65;
  margin: 0 0 20px 0;
  max-width: 500px;
}

.showcase-action-link {
  color: #0066ff;
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.showcase-action-link:hover {
  color: #004ecc;
  transform: translateX(4px);
}

/* ==========================================
   News / Blog Grid Cards
   ========================================== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 26px;
  width: 100%;
}

.card {
  background: white;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(2, 132, 199, 0.12);
  border-color: #bae6fd;
}

.card-img-wrapper {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #f1f5f9;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(5px);
  color: white;
  padding: 4px 10px;
  border-radius: 16px;
  font-size: 11.5px;
  font-weight: 700;
}

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

.card-title {
  font-size: 16.5px;
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1.4;
}

.card-title a {
  color: #0f172a;
  text-decoration: none;
  transition: color 0.2s ease;
}

.card-title a:hover {
  color: #0284c7;
}

.card-desc {
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 16px;
  flex-grow: 1;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #0284c7;
  color: white;
  font-weight: 700;
  font-size: 14.5px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.25);
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
  text-decoration: none;
  justify-content: center;
}

.btn-primary:hover {
  background: #0369a1;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.35);
  color: white;
}

/* ==========================================
   Footer
   ========================================== */
.site-footer {
  background: #0f172a;
  color: white;
  padding: 60px 40px 30px 40px;
  width: 100%;
  margin-top: 60px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #f8fafc;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
  color: #94a3b8;
}

.footer-links a {
  color: #94a3b8;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #60a5fa;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 30px;
  border-top: 1px solid #1e293b;
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #64748b;
  flex-wrap: wrap;
  gap: 15px;
}

/* ==========================================
   Responsive Media Queries
   ========================================== */
@media (max-width: 1450px) {
  .left-nav-panel {
    display: none;
  }
}

@media (max-width: 1024px) {
  .hero-container-2col {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .hero-text-side {
    align-items: center;
    text-align: center;
  }

  .hero-main-title,
  .hero-sub-title {
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-bullets {
    align-items: flex-start;
    width: fit-content;
  }

  .hero-image-side {
    max-width: 440px;
    width: 100%;
  }
}

@media (max-width: 900px) {
  .site-header {
    padding: 12px 18px;
    flex-wrap: wrap;
    gap: 12px;
  }

  .nav-links {
    gap: 12px;
    font-size: 13px;
  }

  .hero-section-new {
    padding: 30px 16px;
  }

  .hero-main-title {
    font-size: 26px;
  }

  .slider-card,
  .soft-slider-item {
    flex: 0 0 200px;
  }

  .workflow-steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .showcase-row,
  .showcase-row.reverse {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .showcase-heading {
    font-size: 18px;
  }

  .showcase-desc {
    font-size: 12.5px;
  }
}

@media (max-width: 600px) {
  .brand-name {
    font-size: 16px;
  }

  .hero-main-title {
    font-size: 22px;
  }

  .hero-subtitle {
    font-size: 13px;
  }

  .hero-bullet-item {
    font-size: 12.5px;
  }

  .hero-pill-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn-mblock-pill,
  .workflow-actions .btn-mblock-pill {
    width: 100%;
    justify-content: center;
  }

  .mblock-title {
    font-size: 20px;
  }

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

/* ==========================================
   Bottom-Right Floating Social Buttons (Zalo, FB, YouTube)
   ========================================== */
.floating-social-buttons {
  position: fixed;
  right: 24px;
  bottom: 28px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}

.social-float-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  position: relative;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  user-select: none;
}

.social-float-btn:hover {
  transform: translateY(-3px) scale(1.08);
}

.zalo-btn {
  background: #0068ff;
  box-shadow: 0 4px 16px rgba(0, 104, 255, 0.45);
}

.zalo-btn:hover {
  box-shadow: 0 8px 24px rgba(0, 104, 255, 0.6);
}

.pulse-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #0068ff;
  animation: zaloPulse 2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
  pointer-events: none;
}

@keyframes zaloPulse {
  0% {
    transform: scale(0.95);
    opacity: 0.9;
  }

  70% {
    transform: scale(1.35);
    opacity: 0;
  }

  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}

.fb-btn {
  background: #1877f2;
  box-shadow: 0 4px 16px rgba(24, 119, 242, 0.45);
}

.fb-btn:hover {
  box-shadow: 0 8px 24px rgba(24, 119, 242, 0.6);
}

.yt-btn {
  background: #ff0000;
  box-shadow: 0 4px 16px rgba(255, 0, 0, 0.45);
}

.yt-btn:hover {
  box-shadow: 0 8px 24px rgba(255, 0, 0, 0.6);
}

.float-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  background: #0f172a;
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.float-tooltip::after {
  content: "";
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent transparent #0f172a;
}

.social-float-btn:hover .float-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

@media (max-width: 600px) {
  .floating-social-buttons {
    right: 16px;
    bottom: 20px;
    gap: 10px;
  }

  .social-float-btn {
    width: 42px;
    height: 42px;
  }

  .social-float-btn svg {
    transform: scale(0.9);
  }

  .float-tooltip {
    display: none;
  }
}

/* ==========================================
   Article & Collection Entry Content Images
   ========================================== */
.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  margin: 20px auto;
  display: block;
}

.entry-content figure.wp-block-image {
  max-width: 480px;
  width: 100%;
  margin: 28px auto !important;
  text-align: center;
}

.entry-content figure.wp-block-image img {
  width: 100% !important;
  height: auto !important;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  display: block;
  margin: 0 auto;
}

/* ==========================================
   Article & Collection Entry Content Typography & Spacing
   ========================================== */
.entry-content {
  font-size: 16.5px;
  color: #334155;
  line-height: 1.95;
  letter-spacing: 0.15px;
}

.entry-content p {
  margin-bottom: 22px;
  line-height: 1.95;
}

.entry-content h2 {
  font-size: 25px;
  font-weight: 900;
  color: #0f172a;
  margin-top: 38px;
  margin-bottom: 18px;
  line-height: 1.4;
}

.entry-content h3 {
  font-size: 21px;
  font-weight: 800;
  color: #0f172a;
  margin-top: 30px;
  margin-bottom: 15px;
  line-height: 1.45;
}

.entry-content ul,
.entry-content ol {
  margin-top: 10px;
  margin-bottom: 24px;
  padding-left: 24px;
}

.entry-content li {
  margin-bottom: 10px;
  line-height: 1.9;
  color: #334155;
}

.entry-content blockquote {
  margin: 32px 0;
  padding: 22px 28px 22px 32px;
  background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
  border-left: 5px solid #855cd6;
  border-radius: 0 16px 16px 0;
  font-size: 17px;
  font-style: italic;
  font-weight: 500;
  line-height: 1.9;
  color: #4c1d95;
  box-shadow: 0 4px 15px rgba(133, 92, 214, 0.06);
  position: relative;
}

.entry-content blockquote::before {
  content: "“";
  position: absolute;
  top: -10px;
  left: 12px;
  font-size: 54px;
  color: rgba(133, 92, 214, 0.2);
  font-family: Georgia, serif;
  line-height: 1;
}

/* ==========================================
   Luxury Course & Collection Archive Styling
   ========================================== */

/* Hero Banner */
.luxury-hero-banner {
  position: relative;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.88) 0%, rgba(30, 27, 75, 0.85) 100%), url('assets/images/scratch_arduino_intro-v1.webp') center/cover no-repeat;
  padding: 90px 30px 100px;
  text-align: center;
  overflow: hidden;
  box-shadow: inset 0 -20px 30px rgba(15, 23, 42, 0.6);
}

.luxury-hero-banner.kit-hero {
  background: linear-gradient(135deg, rgba(24, 15, 46, 0.9) 0%, rgba(46, 16, 101, 0.86) 100%), url('assets/images/kit-arduino-master.webp') center/cover no-repeat;
}

.luxury-hero-banner::before {
  content: "";
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 102, 255, 0.25) 0%, rgba(133, 92, 214, 0.15) 50%, transparent 80%);
  filter: blur(80px);
  pointer-events: none;
}

.luxury-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(0, 102, 255, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(96, 165, 250, 0.3);
  border-radius: 50px;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  backdrop-filter: blur(12px);
  box-shadow: 0 0 25px rgba(0, 102, 255, 0.2);
  margin-bottom: 22px;
}

.luxury-badge.kit-badge-purple {
  background: rgba(133, 92, 214, 0.18);
  color: #c084fc;
  border-color: rgba(192, 132, 252, 0.3);
  box-shadow: 0 0 25px rgba(133, 92, 214, 0.2);
}

.luxury-hero-title {
  font-size: 46px;
  font-weight: 950;
  background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.luxury-hero-desc {
  font-size: 18px;
  color: #94a3b8;
  max-width: 780px;
  margin: 0 auto 30px;
  line-height: 1.7;
  font-weight: 400;
}

.luxury-feature-pills {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  max-width: 850px;
  margin: 0 auto;
}

.luxury-pill-tag {
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 30px;
  color: #cbd5e1;
  font-size: 13.5px;
  font-weight: 600;
  backdrop-filter: blur(8px);
}

/* Luxury Grid & Cards */
.luxury-archive-section {
  width: 100%;
  padding: 70px 40px;
  background: #f8fafc;
  min-height: 600px;
}

.luxury-grid {
  max-width: 1360px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 36px;
}

.luxury-course-card {
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  overflow: hidden;
  box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.luxury-course-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 45px -12px rgba(0, 102, 255, 0.18);
  border-color: rgba(0, 102, 255, 0.3);
}

.luxury-course-card.kit-card:hover {
  box-shadow: 0 25px 45px -12px rgba(133, 92, 214, 0.18);
  border-color: rgba(133, 92, 214, 0.3);
}

.luxury-card-img-wrap {
  position: relative;
  height: 240px;
  overflow: hidden;
  background: #0f172a;
}

.luxury-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.luxury-course-card:hover .luxury-card-img-wrap img {
  transform: scale(1.07);
}

.luxury-card-badge-overlay {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 6px 14px;
  background: rgba(15, 23, 42, 0.75);
  color: #60a5fa;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 800;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.luxury-card-badge-overlay.kit-badge-overlay {
  color: #c084fc;
}

.luxury-card-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.luxury-card-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: #64748b;
  font-weight: 600;
  margin-bottom: 12px;
}

.luxury-card-title {
  font-size: 21px;
  font-weight: 850;
  color: #0f172a;
  line-height: 1.38;
  margin-bottom: 14px;
}

.luxury-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.luxury-course-card:hover .luxury-card-title a {
  color: #0066ff;
}

.luxury-course-card.kit-card:hover .luxury-card-title a {
  color: #855cd6;
}

.luxury-card-excerpt {
  font-size: 15px;
  color: #475569;
  line-height: 1.65;
  margin-bottom: 24px;
  flex-grow: 1;
}

.luxury-card-btn {
  background: linear-gradient(135deg, #0066ff 0%, #0052cc 100%);
  color: #ffffff !important;
  text-align: center;
  padding: 14px 24px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 20px rgba(0, 102, 255, 0.25);
  transition: all 0.25s ease;
}

.luxury-card-btn:hover {
  background: linear-gradient(135deg, #1a75ff 0%, #0040a8 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0, 102, 255, 0.35);
}

.luxury-card-btn.kit-btn {
  background: linear-gradient(135deg, #855cd6 0%, #6b3bb8 100%);
  box-shadow: 0 8px 20px rgba(133, 92, 214, 0.25);
}

.luxury-card-btn.kit-btn:hover {
  background: linear-gradient(135deg, #9366e3 0%, #582a9f 100%);
  box-shadow: 0 12px 26px rgba(133, 92, 214, 0.35);
}

@media (max-width: 768px) {
  .luxury-hero-title {
    font-size: 32px;
  }
  .luxury-hero-banner {
    padding: 50px 20px;
  }
  .luxury-archive-section {
    padding: 40px 20px;
  }
  .luxury-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================
   Makeblock Reference Style Course Cards (/course/)
   ========================================== */
.makeblock-archive-section {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 50px 30px 80px;
}

.makeblock-course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 24px;
}

@media (max-width: 992px) {
  .makeblock-course-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 20px;
  }
}

@media (max-width: 640px) {
  .makeblock-course-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.makeblock-course-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  background: #ffffff;
  border-radius: 18px;
  padding: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.makeblock-card-img-box {
  width: 100%;
  aspect-ratio: 16 / 10;
  max-height: 190px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
  background: #f8fafc;
  margin-bottom: 14px;
  position: relative;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.makeblock-card-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
}

.makeblock-course-card:hover .makeblock-card-img-box {
  box-shadow: 0 12px 28px rgba(0, 102, 255, 0.12);
}

.makeblock-course-card:hover .makeblock-card-img-box img {
  transform: scale(1.05);
}

.makeblock-card-title {
  font-size: 16.5px;
  font-weight: 750;
  color: #0f172a;
  line-height: 1.45;
  margin-bottom: 8px;
  letter-spacing: -0.2px;
  transition: color 0.25s ease;
  min-height: 48px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.makeblock-course-card:hover .makeblock-card-title {
  color: #0066ff;
}

.makeblock-card-excerpt {
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.55;
  margin-bottom: 14px;
  min-height: 42px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.makeblock-card-link {
  font-size: 13.5px;
  font-weight: 700;
  color: #0066ff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  transition: gap 0.25s ease;
}

.makeblock-course-card:hover .makeblock-card-link {
  gap: 10px;
}


/* 2x2 Grid Layout */
.mblock-grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (max-width: 768px) {
  .mblock-grid-2x2 {
    grid-template-columns: 1fr;
  }
}

/* ==========================================
   Comprehensive Table & Data Grid Styling
   (Supports Classic Editor, Gutenberg Block, WooCommerce & Custom HTML Tables)
   ========================================== */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 28px 0;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.entry-content table,
.wp-block-table table,
article table,
.single-content table,
.woocommerce-product-details__short-description table,
#article-body-content table,
table {
  width: 100%;
  max-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 24px 0;
  font-size: 15px;
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

/* Table Header (Th) */
.entry-content table thead th,
.entry-content table th,
.wp-block-table table th,
article table th,
table th {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 14.5px;
  text-align: left;
  padding: 14px 18px;
  letter-spacing: -0.2px;
  border-bottom: 2.5px solid #0066ff;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  white-space: nowrap;
}

.entry-content table th:last-child,
table th:last-child {
  border-right: none;
}

/* Specific Accent for Collection Kit Tables */
.single-collection .entry-content table th {
  background: linear-gradient(135deg, #3b0764 0%, #581c87 100%);
  border-bottom: 2.5px solid #855cd6;
}

/* Specific Accent for Course Tables */
.single-course .entry-content table th {
  background: linear-gradient(135deg, #0f172a 0%, #0369a1 100%);
  border-bottom: 2.5px solid #0284c7;
}

/* Table Body Cells (Td) */
.entry-content table td,
.wp-block-table table td,
article table td,
table td {
  padding: 12px 18px;
  color: #334155;
  font-size: 14.5px;
  line-height: 1.6;
  border-bottom: 1px solid #e2e8f0;
  border-right: 1px solid #f1f5f9;
  vertical-align: middle;
  background-color: #ffffff;
  transition: background-color 0.15s ease;
}

.entry-content table td:last-child,
table td:last-child {
  border-right: none;
}

.entry-content table tr:last-child td,
table tr:last-child td {
  border-bottom: none;
}

/* Zebra Striping */
.entry-content table tbody tr:nth-child(even) td,
.entry-content table tr:nth-child(even) td,
.wp-block-table table tr:nth-child(even) td,
article table tr:nth-child(even) td,
table tr:nth-child(even) td {
  background-color: #f8fafc;
}

/* Row Hover Highlight */
.entry-content table tbody tr:hover td,
.entry-content table tr:hover td,
.wp-block-table table tr:hover td,
article table tr:hover td,
table tr:hover td {
  background-color: #eff6ff;
}

/* Number / STT column */
.entry-content table td:first-child,
.entry-content table th:first-child {
  font-weight: 700;
  text-align: center;
  width: 55px;
}

/* Quantity / Unit column */
.entry-content table td:nth-child(3),
.entry-content table td:nth-child(4),
.entry-content table th:nth-child(3),
.entry-content table th:nth-child(4) {
  text-align: center;
}

/* Responsive Table Adjustment on Small Screens */
@media (max-width: 768px) {
  .entry-content table,
  .wp-block-table table,
  article table {
    display: table;
    min-width: 480px;
  }
  .entry-content th,
  .entry-content td {
    padding: 10px 12px;
    font-size: 13.5px;
  }
}