/*
Theme Name: Flatsome Child - Kí Tự Đặc Biệt
Theme URI: #
Description: Kí Tự Đặc Biệt v4.5 Cyber Gaming Theme based on Flatsome
Author: Kí Tự Đặc Biệt Team
Author URI: #
Template: flatsome
Version: 4.5.0
*/

:root {
  --kth-bg: #EEF0F5;
  --kth-dark: #0E1020;
  --kth-dark-card: #151826;
  --kth-blue: #2D5BFF;
  --kth-blue-hover: #1D40C8;
  --kth-blue-light: #E6ECFF;
  --kth-green: #1FC16B;
  --kth-yellow: #FFD400;
  --kth-border-dark: #2A2F45;
  --kth-border-light: #D5D9E4;
  --kth-text-dark: #0E1020;
  --kth-text-light: #FFFFFF;
  --kth-text-muted: #5D6275;
  --kth-text-sub: #C9CEDD;
  --kth-text-meta: #8A90A6;
  --font-display: 'Chakra Petch', sans-serif;
  --font-body: 'Be Vietnam Pro', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-symbols: 'Noto Sans Symbols 2', sans-serif;
}

html {
  scroll-behavior: smooth;
  box-sizing: border-box;
}

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

body.kth-body {
  margin: 0;
  background: var(--kth-bg);
  color: var(--kth-text-dark);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

a {
  color: var(--kth-blue);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--kth-blue-hover);
}

button {
  font-family: inherit;
  cursor: pointer;
  color: inherit;
  border: none;
  background: none;
  transition: all 0.15s ease;
}

input {
  font-family: inherit;
}
/* ------------------------------------------------------------------
 * Base element styles (replaces the parent flatsome.css, which is no
 * longer loaded on the frontend). Values mirror Flatsome's defaults so
 * layouts stay the same; headings inherit colour instead of #555.
 * ------------------------------------------------------------------ */
html { overflow-x: hidden; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
b, strong { font-weight: bolder; }
small { font-size: 80%; display: inline-block; }
img { max-width: 100%; height: auto; display: inline-block; vertical-align: middle; border-style: none; }
figure { margin: 0; }
hr { margin: 15px 0; border-width: 0; border-top: 1px solid currentColor; opacity: 0.1; }
pre, blockquote, form, figure, p, dl, ul, ol { margin-bottom: 1.3em; }
p { margin-top: 0; }
ol, ul { margin-top: 0; padding: 0; }
li { margin-bottom: .6em; }
h1, h2, h3, h4, h5, h6 { color: inherit; width: 100%; margin-top: 0; margin-bottom: .5em; font-weight: 700; }
h1 { font-size: 1.7em; line-height: 1.3; }
h2 { font-size: 1.6em; line-height: 1.3; }
h3 { font-size: 1.25em; }
h4 { font-size: 1.125em; }
h5 { font-size: 1em; }
h6 { font-size: .85em; }
label { font-weight: bold; display: block; font-size: .9em; margin-bottom: 0.4em; color: #222; }
table { width: 100%; margin-bottom: 1em; border-spacing: 0; }
th, td { padding: .5em; text-align: left; line-height: 1.3; font-size: .9em; }
code { padding: .2rem .5rem; margin: 0 .2rem; font-size: .9em; background: #F1F1F1; border: 1px solid #E1E1E1; border-radius: 4px; }

button {
  position: relative;
  display: inline-block;
  text-transform: uppercase;
  font-size: .97em;
  letter-spacing: .03em;
  font-weight: bolder;
  text-align: center;
  text-decoration: none;
  border: 1px solid transparent;
  vertical-align: middle;
  border-radius: 0;
  margin: 0;
  line-height: 2.4em;
  min-height: 2.5em;
  padding: 0 1.2em;
  max-width: 100%;
  touch-action: manipulation;
}

input[type='text'], input[type='search'], input[type='email'], input[type='number'], input[type='url'], textarea, select {
  box-sizing: border-box;
  border: 1px solid #ddd;
  padding: 0 .75em;
  height: 2.507em;
  font-size: .97em;
  border-radius: 0;
  max-width: 100%;
  width: 100%;
  vertical-align: middle;
  background-color: #fff;
  color: #333;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
  margin-bottom: 1em;
}
textarea { padding-top: 0.7em; min-height: 120px; height: auto; overflow: auto; }
input[type='range'], input[type='color'], input[type='checkbox'] { margin-bottom: 0; }

/* ------------------------------------------------------------------
 * KTH Common UI & Utilities (Moved from header-kth.php)
 * ------------------------------------------------------------------ */
body {
  margin: 0;
  background: #EEF0F5;
  color: #0E1020;
  font-family: "Be Vietnam Pro", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas, video { max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, h5, h6 { color: inherit; }
:focus-visible { outline: 2px solid #2D5BFF; outline-offset: 2px; }
a { color: #2D5BFF; text-decoration: none; }
a:hover { color: #1D40C8; }
button { font-family: inherit; cursor: pointer; color: inherit; border: none; background: transparent; }
input, textarea { font-family: inherit; }

/* Clip Paths */
.clip-poly-8 { clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); }
.clip-poly-14 { clip-path: polygon(14px 0, 100% 0, 100% 100%, 0 100%, 0 14px); }
.clip-poly-22 { clip-path: polygon(22px 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%, 0 22px); }
.clip-poly-21 { clip-path: polygon(21px 0, 100% 0, 100% calc(100% - 21px), calc(100% - 21px) 100%, 0 100%, 0 21px); }
.clip-poly-16 { clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px); }
.clip-poly-15 { clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px); }
.clip-poly-12 { clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px); }

/* Buttons & Hovers */
.btn-hover-blue:hover { background: #2D5BFF !important; color: #FFFFFF !important; }
.btn-hover-dark:hover { background: #0E1020 !important; color: #FFFFFF !important; }
.btn-active-press:active { transform: translate(3px, 3px); box-shadow: 3px 3px 0 #0E1020 !important; }
.hover-bg-soft:hover { background: #E6ECFF !important; }
.kth-btn-reset { margin: 0 !important; min-height: 0; text-transform: none !important; letter-spacing: normal; line-height: 1.2; }
.hover-blue-card:hover { background: #2D5BFF !important; color: #FFFFFF !important; border-color: #2D5BFF !important; }
.hover-blue-card:hover h3, .hover-blue-card:hover p, .hover-blue-card:hover span { color: #FFFFFF !important; }

/* Entry Content Typography */
.kth-entry-content h2 { font-family: 'Chakra Petch', sans-serif; font-size: 26px; font-weight: 700; margin: 32px 0 16px; border-bottom: 2px solid #2D5BFF; padding-bottom: 8px; text-transform: uppercase; color: #0E1020; }
.kth-entry-content h3 { font-family: 'Chakra Petch', sans-serif; font-size: 20px; font-weight: 700; margin: 24px 0 12px; color: #0E1020; }
.kth-entry-content p { margin: 0 0 16px; }
.kth-entry-content ul, .kth-entry-content ol { padding-left: 24px; margin-bottom: 20px; }
.kth-entry-content li { margin-bottom: 8px; }
.kth-entry-content blockquote { margin: 24px 0; padding: 16px 20px; background: #F7F8FB; border-left: 4px solid #2D5BFF; font-style: italic; }
.kth-entry-content table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.kth-entry-content th, .kth-entry-content td { border: 1px solid #D5D9E4; padding: 12px 14px; text-align: left; }
.kth-entry-content th { background: #0E1020; color: #FFFFFF; font-family: 'Chakra Petch', sans-serif; font-weight: 700; }

/* Toast Notification */
.kth-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #0E1020;
  color: #FFFFFF;
  padding: 12px 20px;
  border-left: 4px solid #1FC16B;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  z-index: 9999;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.2s ease;
  pointer-events: none;
}
.kth-toast.show { opacity: 1; transform: translateY(0); }

/* Flatsome Lazy BG fallback */
.bg { opacity: 0; transition: opacity 1s; -webkit-transition: opacity 1s; }
.bg-loaded { opacity: 1; }

/* Responsive Helpers */
@media (max-width: 999px) {
  .hide-on-mobile { display: none !important; }
  .stack-on-mobile { flex-direction: column !important; }
}
@media (min-width: 1000px) {
  .hide-on-desktop { display: none !important; }
}



/* Homepage TikTok downloader promo */
.kth-tt-promo, .kth-tt-promo:hover { color: #FFFFFF; text-decoration: none; }
.kth-tt-promo > div { transition: background 0.15s ease; }
.kth-tt-promo:hover > div { background: #1E2235 !important; }
.kth-tt-promo-icon { transition: transform 0.15s ease; }
.kth-tt-promo:hover .kth-tt-promo-icon { transform: scale(1.05); }
.kth-tt-promo:hover .kth-tt-promo-cta { background: #FFFFFF !important; color: #0E1020 !important; }
.kth-tt-promo-chip { font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 700; color: #C9CEDD; border: 1px solid #2A2F45; background: #0E1020; padding: 4px 10px; }
