/* Reset */
body {
  font: 400 14px/1.5 var(--font-main);
  color: var(--clr-static);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.5;
  padding: 0;
  margin: 0;
}

a,
input,
textarea,
button {
  border: none;
  outline: none;
  padding: 0;
  margin: 0;
}

a,
a:hover {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease-out;
}

ul,
ol {
  list-style: none;
  padding: 0;
}

p,
address,
figure {
  margin: 0;
}

img {
  display: inline-block !important;
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  border-style: none;
  line-height: 1;
  object-fit: cover;
}

img.lazy {
  opacity: 0;
  transition: opacity 0.3s ease-in;
}

img.lazy.loaded {
  opacity: 1;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

/* Base CSS dành riêng cho Content SEO - Chuẩn Responsive */
.ckeditor {
  font-size: 1rem;
  line-height: 1.8;
  color: #333;
  max-width: 100%;
  margin: 0 auto;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 400;
}

.ckeditor h1,
.ckeditor h2,
.ckeditor h3,
.ckeditor h4,
.ckeditor h5,
.ckeditor h6 {
  margin-bottom: 1rem;
  line-height: 1.3;
  color: #222;
}

.ckeditor h1 {
  font-size: 2rem;
}
.ckeditor h2 {
  font-size: 1.75rem;
  font-weight: 700;
}
.ckeditor h3 {
  font-size: 1.5rem;
  font-weight: 600;
}
.ckeditor h4 {
  font-size: 1.25rem;
}
.ckeditor h5 {
  font-size: 1rem;
}
.ckeditor h6 {
  font-size: 0.875rem;
}

.ckeditor p {
  margin-bottom: 1rem;
  word-wrap: break-word;
}

.ckeditor b,
strong {
  font-weight: inherit !important;
}

.ckeditor ul,
.ckeditor ol {
  list-style: unset;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.ckeditor ul li,
.ckeditor ol li {
  margin-bottom: 0.5rem;
}

.ckeditor a {
  color: #007bff;
  text-decoration: underline;
}

.ckeditor a:hover {
  color: #0056b3;
}

.ckeditor blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  background-color: #f9f9f9;
  border-left: 4px solid #007bff;
  font-style: italic;
  color: #555;
}

.ckeditor img {
  max-width: 100% !important;
  height: auto;
  display: inline-block;
}

.ckeditor table {
  width: 100%;
  overflow-x: auto;
  display: block;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}

.ckeditor table th,
.ckeditor table td {
  border: 1px solid #ddd;
  padding: 0.75rem;
  text-align: left;
  font-size: 0.95rem;
}

.ckeditor .toc {
  background: #f8f9fa;
  border: 1px solid #ddd;
  padding: 1rem;
  margin-bottom: 2rem;
  border-radius: 0.25rem;
}

.ckeditor .toc ul {
  list-style: none;
  padding-left: 0;
}

.ckeditor .toc ul li {
  margin-bottom: 0.5rem;
}

.ckeditor .toc a {
  color: #212529;
  text-decoration: none;
}

.ckeditor .toc a:hover {
  color: #007bff;
}

.ckeditor hr {
  margin: 1rem 0;
  border: none;
  border-top: 1px solid #ccc;
}

/* Responsive Typography */
@media (max-width: 768px) {
  .ckeditor h1 {
    font-size: 1.75rem;
  }
  .ckeditor h2 {
    font-size: 1.5rem;
  }
  .ckeditor h3 {
    font-size: 1.25rem;
  }
  .ckeditor h4 {
    font-size: 1.125rem;
  }
  .ckeditor h5 {
    font-size: 1rem;
  }
  .ckeditor h6 {
    font-size: 0.875rem;
  }

  .ckeditor table th,
  .ckeditor table td {
    font-size: 0.875rem;
    padding: 0.5rem;
  }
}

.a2a_kit .a2a_svg {
  width: 30px;
  height: 30px;
  line-height: 30px;
}

.form-control,
.form-control-plaintext:not(textarea),
.custom-select {
  height: calc(1em + 1.25rem + 8px);
}

.quote-hidden:before,
.quote-hidden:after {
  content: unset;
}

.figcaption-hidden {
  overflow: hidden;
  width: 0;
  height: 0;
}

.hidden-seoh {
  overflow: hidden;
  visibility: hidden;
  height: 0;
  margin: 0;
}

.hidden {
  display: none;
}

/* Main */
.body-container {
  position: relative;
  background: var(--bg-static);
}

.main-content {
  max-width: 100%;
  padding: 0px;
  margin: 0 auto;
}

.wrap-home {
  max-width: 100%;
  padding: 0;
}

.wrapper-content {
  --w: 1200px;
  width: min(100% - 20px, var(--w));
  margin: 0 auto;
}

.wrap-content {
  --w: 1200px;
  width: min(100% - 20px, var(--w));
  margin: 0 auto;
}

.rps-xl--visible[class*="rps-xl"][class*="--visible"],
.rps-lg--visible[class*="rps-lg"][class*="--visible"],
.rps-md--visible[class*="rps-md"][class*="--visible"],
.rps-sm--visible[class*="rps-sm"][class*="--visible"] {
  display: none !important;
}

.rps-xl--hidden[class*="rps-xl"][class*="--hidden"],
.rps-lg--hidden[class*="rps-lg"][class*="--hidden"],
.rps-md--hidden[class*="rps-md"][class*="--hidden"],
.rps-sm--hidden[class*="rps-sm"][class*="--hidden"] {
  display: block !important;
}

/* Grid Box */
.grid-container {
  display: grid;
  grid-template-columns: repeat(var(--grid-items, 4), minmax(0, 1fr));
  grid-template-rows: minmax(min-content, max-content);
  grid-gap: var(--grid-column, var(--grid-gap, 20px))
    var(--grid-row, var(--grid-gap, 20px));
}

/* Text Truncate */
[class*="text-split"] {
  overflow: hidden;
  display: -webkit-box;
  text-overflow: ellipsis;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: var(--line-clamp, 3);
}

.text-split-1 {
  --line-clamp: 1;
}

.text-split-2 {
  --line-clamp: 2;
}

.text-split-4 {
  --line-clamp: 4;
}

.text-split-5 {
  --line-clamp: 5;
}

.text-split-6 {
  --line-clamp: 6;
}

.text-split-7 {
  --line-clamp: 7;
}

.text-split-8 {
  --line-clamp: 8;
}

/* Transition All */
.transition {
  -webkit-transition: all 0.3s ease-out;
  -moz-transition: all 0.3s ease-out;
  -ms-transition: all 0.3s ease-out;
  -o-transition: all 0.3s ease-out;
  transition: all 0.3s ease-out;
}

/* swipper */
.swiper-slide figure > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.swiper-button-prev,
.swiper-button-next {
  --swiper-navigation-size: 40px;
  --swiper-navigation-color: #fff;
  --swiper-background-color: var(--clr-main);
  --swiper-navigation-top-offset: 50%;
  --swiper-navigation-sides-offset: 10px;
  background: var(--swiper-background-color);
  border-radius: 50%;
  transition: 0.5s ease-out;
}

.swiper-button-next:after,
.swiper-button-prev:after {
  --swiper-navigation-size: 18px;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
  --swiper-background-color: var(--clr-hover);
}

.swiper-thumb-pro .swiper-button-prev,
.swiper-thumb-pro .swiper-button-next {
  --swiper-navigation-size: 30px;
}

.swiper-thumb-pro .swiper-button-next:after,
.swiper-thumb-pro .swiper-button-prev:after {
  --swiper-navigation-size: 18px;
}

/* bootstrap custom */
.form-check-input {
  margin-top: 1em;
}

/* Customs splide__arrow */
.splide__arrow {
  width: 44px;
  height: 44px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  color: var(--clr-main);
  opacity: 1;

  &:hover {
    background: var(--clr-main);
    color: #fff;
  }

  svg {
    stroke: currentColor;
    transform: none;
    fill: none;
    height: 1.5rem;
    width: 1.5rem;
  }
}
