:root {
  color-scheme: light dark;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-size: 18px;
  font-family: "Mulish", sans-serif;
  background-color: #000;
  overscroll-behavior: none;
}

* {
  transition: transform 0.5s, color 0.5s, background-color 0.5s, border 0.5s, color 0.5s, box-shadow 0.5s, opacity 0.5s;
}

*::-webkit-scrollbar {
  display: none !important;
}

.rounded-tl {
  border-top-left-radius: 5px;
}

.rounded-bl {
  border-bottom-left-radius: 5px;
}

.rounded-tr {
  border-top-right-radius: 5px;
}

.rounded-br {
  border-bottom-right-radius: 5px;
}

a {
  text-decoration: none !important;
  cursor: pointer !important;
  color: rgb(35, 103, 158);
}

a:hover {
  color: #ff3700 !important;
}

p {
  margin-bottom: 0.5rem !important;
  color: #444;
}

img,
p,
label,
.grid-title,
img,
p,
label,
h1,
h2,
h3,
h4,
h5,
h6,
div {
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

img,
p,
label,
h1,
h2,
h3,
h4,
h5,
h6 {
  pointer-events: none;
}

a,
iframe,
video,
audio,
button,
input {
  pointer-events: all;
}

video {
  background-color: #fcfcf0;
  object-fit: cover;
}

.animate__animated {
  animation-duration: 0.8s;
}

.page-err {
  position: absolute;
  background: linear-gradient(135deg, #d18100, #967e06);
  height: 100%;
  color: rgb(255, 243, 226);
}

.head-logo {
  background-repeat: no-repeat;
  background-size: auto 100%;
  background-position: center top;
}

.mag-logo {
  position: absolute;
  opacity: 0;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center center;
  top: 0;
  z-index: 2000;
  transition: opacity 5s;
}

.mag-logo-show {
  opacity: 1;
}

.borderless td {
  border: solid 1px transparent !important;
}

.back-video {
  object-fit: cover;
  position: relative;
}

.form-control {
  color: #c81426;
  border: 1px solid #e1dfbc;
  background-color: #fff9e6;
}

.form-control::placeholder {
  color: #666;
}

.form-control:focus {
  color: #333;
  border: 1px solid #aaa;
  -webkit-box-shadow: none;
  box-shadow: none;
}

.bg-flat {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.mask-flat {
  mask-repeat: no-repeat;
  mask-size: 100%;
}

.bg-fix {
  background-attachment: fixed;
  background-position: top center;
  background-repeat: no-repeat;
  background-size: cover;
}

.tria-top,
.tria-bot,
.wavy-top,
.wavy-bot {
  height: 100px;
  min-height: 50px;
}

.wavy-top,
.tria-top {
  mask-position: center bottom !important;
}

.wavy-bot,
.tria-bot {
  mask-position: center top !important;
}

.bg-blur {
  backdrop-filter: blur(3px) !important;
}

.bg-a {
  background-color: #fcfcf0 !important;
}

.btn-view {
  font-size: 0.8rem;
}

.card-none {
  transition: none;
  background-color: transparent;
  border: none;
}

.card-none .card-img-top {
  border-radius: 0;
}

.card-none .card-body {
  padding: 8px 0 0 0;
}

.card-text {
  color: #888;
  font-style: italic;
  font-size: 0.9rem;
}

.card-item a {
  display: flex;
  flex-direction: column;
}

.card-img-top {
  overflow: hidden;
  position: relative;
}

.card-img-top img,
.card-img-top video {
  object-fit: cover;
}

.core-desc {
  font-size: 0.8rem;
  color: #888;
  text-align: center;
  padding: 0px;
}

.core-image {
  display: block;
  min-height: 300px;
  object-fit: cover;
  max-width: 100%;
}

.core-embed {
  min-width: 100px;
  min-height: 300px;
}

.text-justify {
  text-align: justify;
}

.d-center {
  display: flex;
  justify-content: center;
  flex-direction: column;
}

.text-bold {
  font-weight: bold;
}

.d-nav-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

section {
  position: relative;
  display: flex;
  min-height: 50px;
}

.section-con {
  position: relative;
  width: 100%;
  margin: 0;
  height: fit-content;
  overflow: hidden;
}

.section-con div {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.mag-tit-con {
  position: absolute;
  left: 4rem;
  bottom: 20rem;
  width: 40%;
  background-color: rgba(20, 20, 20, 0.5);
  z-index: 1;
}

.mag-title {
  font-size: 360%;
  color: #fff;
}

.start-read {
  position: absolute;
  left: 4rem;
  bottom: 4rem;
  width: 10rem;
  color: #fff;
  background-color: #f02c00;
  cursor: pointer;
  z-index: 1;
}

.start-read:hover {
  background-color: #ff5c3c;
}

.nav-top {
  position: fixed;
  top: 0;
  left: 0;
  color: #333;
  z-index: 1;
  height: 60px;
  background-color: #fcfcf0bb;
  border-top: solid 2px #f02c00;
}

.nav-task {
  font-size: 1.2rem;
  cursor: pointer;
}

.nav-task:hover {
  transform: scale(1.1);
}

.nav-task a {
  display: block;
  height: 100%;
  color: #000 !important;
}

.nav-title {
  font-size: 1.25rem;
  color: #fff;
}

.nav-page-title {
  font-size: 0.8rem;
  color: #ddd;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.nav-task:hover,
.nav-task a:hover,
.nav-btn-menu:hover {
  color: #f02c00 !important;
  cursor: pointer !important;
}

.navigate-con {
  position: fixed;
  flex-wrap: nowrap;
  right: calc(50% - 1.5rem);
  bottom: 1.5rem;
  width: 5rem;
  height: 2.5rem;
  z-index: 1000;
}

.down-page {
  position: fixed;
  width: 2.5rem;
  height: 2.5rem;
  bottom: 1.5rem;
  right: 0.75rem;
  color: #fcfcf0 !important;
  background-color: #dd3300aa;
  cursor: pointer;
  z-index: 1000;
}

.navigate-con .nav-task {
  height: 100%;
  color: #fcfcf0 !important;
  background-color: #dd3300aa;
}

.navigate-con .nav-task:hover,
.down-page:hover,
.share-face:hover,
.share-x:hover {
  background-color: rgba(255, 92, 60, 0.9) !important;
  color: #fff !important;
  transform: scale(1.1);
}

.share-face,
.share-x {
  position: fixed;
  width: 2.5rem;
  height: 2.5rem;
  bottom: 4.5rem;
  right: 0.8rem;
  background-color: #dd3300aa;
  cursor: pointer;
  z-index: 1000;
}

.share-x {
  bottom: 7.5rem;
}

.share-face a,
.share-x a {
  color: #fcfcf0;
}

.share-face:hover a,
.share-x:hover a {
  color: #fff !important;
}

.grid-header {
  color: #333;
  margin-top: 80px;
}

.grid-page-index {
  position: relative;
  font-family: "Oleo Script", system-ui;
  font-weight: 700;
  color: #000;
  text-align: center;
  font-size: 2rem;
  z-index: 1;
}

.grid-page-index span {
  position: relative;
  text-align: center;
  font-weight: bold;
  color: #dd3300;
}

.grid-title {
  color: #333;
  font-size: 1.1rem;
  z-index: 1;
}

.grid-title-in {
  position: relative;
  font-size: 0.9rem;
}

.grid-title-in b {
  font-family: "Oleo Script", system-ui;
  font-weight: 700;
  font-size: 1.2rem;
  color: #dd3300;
}

.grid-img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.grid-desc {
  color: #666;
  text-align: justify;
  text-overflow: ellipsis;
  overflow: hidden;
  font-size: 0.8rem;
  display: -webkit-box;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.grid-stack {
  padding-top: 50px !important;
  padding-bottom: 50px !important;
  display: flex;
}

.grid-stack-item-content {
  position: relative;
  overflow: hidden;
  height: 9rem;
  align-items: end !important;
  cursor: pointer;
}

.grid-stack-item-content:hover {
  transform: scale(1.01);
}

.gr {
  animation: btnClan 2s infinite;
}

/* Effect */
.carousel-inner {
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
  -webkit-transition-property: -webkit-transform;
  transition-property: transform;
  perspective: 200rem;
}

.carousel-item {
  height: 100%;
  overflow-y: auto;
  transition: none;
  background-color: #fcfcf0 !important;
  overscroll-behavior: none;
  scrollbar-width: none;
}

.carousel-item.waited {
  transition: none;
  display: block;
  margin-right: -100%;
  z-index: 999 !important;
}

.carousel-item.turnpageleft {
  transform-origin: center left;
  animation: turnpageleft 0.8s ease-in-out;
  display: block;
  z-index: 1000 !important;
}

.carousel-item.turnpageright {
  transform-origin: center left;
  animation: turnpageright 0.8s ease-in-out;
  display: block;
  z-index: 1000 !important;
}

.carousel-item .mag-part:last-child {
  margin-bottom: 100px;
}

.mag-part {
  position: relative;
}

.rounded-pill {
  border-radius: 25%;
}


.line-0 * {
  margin-bottom: 0.3 !important;
  line-height: 1.2 !important;
}

.line-1 * {
  margin-bottom: 0.6rem !important;
  line-height: 1.5 !important;
}

.line-2 * {
  margin-bottom: 0.8rem !important;
  line-height: 2 !important;
}

.line-3 * {
  margin-bottom: 1.2rem !important;
  line-height: 2.5 !important;
}

.line-4 * {
  margin-bottom: 1.6rem !important;
  line-height: 3 !important;
}

.line-5 * {
  margin-bottom: 2rem !important;
  line-height: 3.5 !important;
}

/* Footer */

.footer-part {
  position: relative;
  background-color: light-dark(#fcfcf0, #fcfcf0);
  font-size: 0.9rem;
}

.footer-part ul {
  padding: 0;
  margin: 0
}

.footer-part ul li {
  list-style: none
}

.footer-part p {
  color: #333 !important;
}

.footer-part a {
  color: #dd3300 !important;
}

.footer-part a:hover,
li a:hover {
  color: #ff8800 !important;
}

.site_info {
  padding: 0 20%;
}

.legal {
  position: relative;
  z-index: 10;
}

.legal ul li a {
  display: block;
}

.legal ul li,
.site_info ul li {
  padding-right: 1rem;
  display: inline-block
}

.footer {
  position: relative;
  z-index: 2;
}

.hoa-mai {
  position: absolute;
  height: 350px;
  top: 0px;
  margin-top: -2rem !important;
  z-index: 1;
}

.maivang1 {
  position: relative;
  background-image: url('../images/CanhDao.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: left top;
  width: 100%;
  height: 100%;
  z-index: 5;
}

.maivang2 {
  position: relative;
  background-image: url('../images/CanhDao2.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: right top;
  width: 100%;
  height: 100%;
  z-index: 5;
}

.tet-divider-up,
.tet-divider-down {
  position: absolute;
  background-size: contain;
}

.tet-divider-up {
  height: 20px;
  top: 5px;
  background-image: url('https://android.visiontimesvn.com/wp-content/uploads/trithucvn_config/tet_2025/images/divpat.png');
}

.tet-divider-down {
  top: auto;
  bottom: 0;
  height: 60px;
  background-image: url('../images/FootPat.png');
}

.fire-works {
  position: absolute;
  bottom: 0;
  height: calc(100% + 3rem);
}

/* End Footer */

/* Share */

.fixed-share-bar {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2002 !important;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 40px;
  color: light-dark(#dd3300, #dd3300);
  background-color: light-dark(#ffe7abaa, #ffe7abaa);
  text-decoration: none;
  font-size: 20px;
  transition: all 0.5s;
}

.share-btn:hover {
  margin-right: -4px;
  width: 40px;
  color: #fff !important;
}

.shareother:hover {
  background-color: #cf1c35;
}

.facebook:hover {
  background-color: #1877f2;
}

.x-twitter:hover {
  background-color: #111;
}

.zalo:hover {
  background-color: #0068ff;
}

.whatsapp:hover {
  background-color: #25d366;
}

.linkedin:hover {
  background-color: #0a66c2;
}

.copy:hover {
  background-color: #cf1c35;
}

/* Media */
@media only screen and (min-width: 2000px) {

  body {
    font-size: 1.5rem;
  }

}

@media only screen and (min-width: 1800px) {

  body {
    font-size: 1.3rem;
  }

}

@media only screen and (max-width: 1200px) {
  .mag-tit-con {
    width: 58%;
  }

  .fire-works {
    height: calc(100% + 4rem);
  }

}

@media only screen and (max-width: 1025px) {
  .mag-tit-con {
    left: 15%;
    bottom: 14rem;
    width: 70%;
  }

  .start-read {
    left: 15%;
    bottom: 6rem;
  }

  .mag-title {
    font-size: 280%;
  }

  .grid-stack-item-content {
    height: 12rem !important;
  }

  .fire-works {
    height: calc(100% + 3rem);
  }
}

@media only screen and (max-width: 1100px) {
  .hoa-mai {
    height: 300px;
  }
}

@media only screen and (max-width: 990px) {
  .site_info {
    border-right: none !important;
  }
}

@media only screen and (max-width: 770px) {
  .site_info {
    border-right: none !important;
    padding: 0% 5%;
  }

  .tria-top,
  .tria-bot,
  .wavy-top,
  .wavy-bot {
    height: 70px;
  }

  .grid-img-con,
  .grid-img {
    overflow: hidden;
  }

  .down-page {
    left: 2rem !important;
  }

  .mag-tit-con {
    left: 8%;
    bottom: 12rem;
    width: 84%;
  }

  .start-read {
    left: 8%;
    bottom: 6rem;
  }

  .mag-title {
    font-size: 250%;
  }

  .d-md-center {
    display: flex !important;
    justify-content: center !important;
    flex-direction: column;
  }

  .tofc-head * {
    font-size: 1rem;
  }

  .grid-stack-item-content {
    height: auto !important;
  }

  .grid-title-in {
    font-size: 1rem !important;
  }

  .mag-part {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .grid-title {
    font-size: 1.1rem;
  }

  .full-sec {
    width: 100% !important;
    padding: 0 !important;
    height: auto !important;
    margin-bottom: 2rem !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .card-img-top {
    height: auto !important;
  }

  .hoa-mai {
    height: 160px;
    margin-top: -2.6rem !important;
  }

  .fire-works {
    height: calc(100% + 2rem);
  }
}

@media only screen and (max-width: 440px) {
  .site_info {
    border-right: none !important;
    border-bottom: solid 1px #bbb;
  }

  .grid-img-con,
  .grid-img {
    overflow: hidden;
  }

  .tria-top,
  .tria-bot,
  .wavy-top,
  .wavy-bot {
    height: 50px;
  }

  .down-page {
    left: 1rem !important;
    bottom: 1rem !important;
  }

  .nav-title {
    font-size: 1.2rem;
  }

  .mag-title-sub {
    font-size: 1rem;
  }

  .nav-page-index,
  .nav-page-count {
    font-size: 0.8rem;
  }

  .mag-title {
    font-size: 200%;
  }

  .tofc-head * {
    font-size: 0.7rem;
  }

  .grid-stack-item-content {
    height: auto !important;
  }

  .grid-title-in {
    font-size: 1rem !important;
  }

  .mag-part {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .core-desc {
    width: 90% !important;
    font-size: max(12px) !important;
  }

  .grid-title {
    font-size: 1rem;
  }

  .full-sec {
    width: 100% !important;
    padding: 0 !important;
    height: auto !important;
    margin-bottom: 2rem !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .card-img-top {
    height: auto !important;
  }

  .hoa-mai {
    height: 150px;
    margin-top: -1.5rem !important;
  }

  .navigate-con {
    bottom: 1rem !important;
  }

  .share-face,
  .share-x {
    position: fixed;
    width: 2.5rem;
    height: 2.5rem;
    bottom: 1rem !important;
    right: 1rem;
    cursor: pointer;
    z-index: 1000;
  }

  .share-x {
    right: 4rem;
  }

  .fire-works {
    height: calc(100% + 1rem);
  }
}

@media only screen and (max-width: 376px) {
  .grid-page-index span {
    font-size: 1rem;
  }

  .grid-img-con,
  .grid-img {
    overflow: hidden;
  }

  .grid-stack-item-content {
    height: auto !important;
  }

  .grid-title-in {
    font-size: 1rem !important;
  }

  .grid-title {
    font-size: 0.9rem;
    margin: 0 !important;
  }

  .share-btn {
    width: 30px;
    height: 36px;
    font-size: 14px;
    opacity: 0.7;
  }

  .share-btn:hover {
    margin-right: 0px;
    width: 30px;
  }
}

/* Styles applied when the viewport width is 600px or less */
@media screen and (max-width: 600px) {
  body {
    background-color: lightblue;
  }

  .detectDiv {
    width: 600px;
  }

  .share-btn {
    width: 30px;
    height: 36px;
    font-size: 14px;
    opacity: 0.7;
  }

  .share-btn:hover {
    margin-right: 0px;
    width: 30px;
  }
}

/* Styles applied when the viewport width is between 601px and 1024px */
@media screen and (min-width: 601px) and (max-width: 1024px) {
  body {
    background-color: lightgreen;
  }

  .detectDiv {
    width: 1024px;
  }
}

/* Styles applied when the viewport width is 1025px or more */
@media screen and (min-width: 1025px) {
  body {
    background-color: white;
  }

  .detectDiv {
    width: 100%;
  }
}


@media (orientation: portrait) {
  .mag-logo {
    height: 30vh;
  }
}


@media (orientation: landscape) {
  .mag-logo {
    height: 22vw;
  }
}

.detectDiv {
  position: absolute;
  display: none;
  top: 0;
  left: 0;
}

.fra_main {
  position: relative;
  opacity: 0;
  width: 100%;
  min-height: 1000px;
  -ms-overflow-style: none;
  scrollbar-width: none;
  overflow-y: scroll;
}

.carousel-item.active .fra_main {
  opacity: 1;
  background-color: #fcfcf0;
}

.carousel-content {
  position: relative;
  display: block;
  background-color: #fcfcf0;
  min-height: 800px;
}

.carousel-content-img {
  position: relative;
  display: block;
  min-height: 40vh;
}

.snowflake {
  position: absolute;
  color: #fff;
  line-height: 1;
  pointer-events: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.snowflake-solid {
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  border-radius: 50%;
  background: #fff;
}

.swipe {
  position: absolute;
  top: 0;
  width: 10%;
  background-color: transparent;
}

.leftSwipe {
  left: 0;
}

.rightSwipe {
  right: 0;
}

/* Animation */

@keyframes btnClan {
  50% {
    box-shadow: 0 0 0 20px #ffc1a0aa;
  }
}

@keyframes turnpageleft {
  from {
    transform: rotateY(0deg);
  }

  to {
    transform: rotateY(-90deg);
  }
}

@keyframes turnpageright {
  from {
    transform: rotateY(-90deg);
  }

  to {
    transform: rotateY(0deg);
  }
}