@import url("https://fonts.googleapis.com/css2?family=Montserrat+Alternates:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");
::-webkit-scrollbar {
  width: 5px;
  display: none;
}

::-webkit-scrollbar-thumb {
  background-color: #D0D0D0;
  border-radius: 2.5px;
}

nav::-webkit-scrollbar {
  display: initial;
}

.single-post-container h1, .single-post-container h2, .single-post-container h3, .single-post-container h4, .single-post-container h5, .single-post-container h6, .post-title, .basic-heading {
  font-family: "Montserrat Alternates";
  font-weight: 700;
  line-height: 1.5;
}

.single-post-title, .nav-title, .menu > .menu-item {
  font-family: "Montserrat";
  font-weight: 700;
  line-height: 1.5;
}

.single-post-content, .single-post-date, .single-post-author, .meta-row span, .label-vip, .post-category, .excerpt, .project-content, .content-card, .sub-menu > .menu-item, .user-login-logout-container .button-field, .user-login-logout-container .button-group, .basic-text, .readmore, header #header-top, option, select, input::placeholder, input {
  font-family: "Montserrat Alternates";
  font-weight: normal;
  line-height: 1.5;
}

#login-signin-form button, .search-form-button, .basic-button {
  background-color: #EFC416;
  color: white;
  border-radius: 5px;
  font-family: "Montserrat Alternates";
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: all 0.2s;
}

ul {
  list-style: none;
}

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

button {
  background-image: none;
  border: none;
  cursor: pointer;
}

th, td {
  padding: 10px;
}

input {
  outline: none;
  border: none;
  background-color: transparent;
  font-size: 12px;
}

input::placeholder {
  color: #D0D0D0;
  opacity: 0.8;
}

select {
  border: none;
  background-color: transparent;
  color: #D0D0D0;
  font-size: 14px;
  cursor: pointer;
}

img {
  max-width: 95%;
}

option {
  color: #04143B;
  font-size: 14px;
  outline: none;
}

#container {
  display: grid;
  grid-template-columns: minmax(320px, max-content) 1fr;
  grid-template-rows: 90px 1fr;
  grid-template-areas: "header header" "nav main";
  height: 100vh;
}
@media screen and (max-width: 768px) {
  #container {
    grid-template-columns: 1fr;
    grid-template-rows: 60px 1fr;
    grid-template-areas: "header" "main";
  }
}

header {
  grid-area: header;
  display: flex;
  flex-direction: column;
  height: 100%;
}
header #header-top {
  background-color: #04143B;
  color: white;
  height: 30px;
  line-height: 30px;
  text-align: center;
  font-size: 12px;
  overflow: hidden;
}
@media screen and (max-width: 768px) {
  header #header-top {
    display: none;
  }
}
header #header-bottom {
  background-color: #D0D0D0;
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-inline: 100px;
}
header #header-bottom img.main-logo {
  height: 40px;
}
@media screen and (max-width: 768px) {
  header #header-bottom {
    padding-inline: 30px;
  }
  header #header-bottom img.main-logo {
    height: 30px;
  }
}

nav {
  grid-area: nav;
}

main {
  grid-area: main;
}

footer {
  grid-area: footer;
}

.text-yellow {
  color: #FFEE8F;
  font-weight: 700;
}

.error-display {
  width: 100%;
  margin: 30px auto;
  text-align: center;
}
@media screen and (max-width: 768px) {
  .error-display img {
    width: 100%;
  }
}

.basic-button {
  color: #04143B;
  padding: 10px 15px;
  border-radius: 10px;
}

.basic-input {
  border: 1px solid #D0D0D0;
  padding: 10px 20px;
  border-radius: 5px;
}

.readmore {
  font-size: 14px;
  cursor: pointer;
}

.click-button {
  cursor: pointer;
  font-size: 20px;
  margin-right: 5px;
}

.align-center {
  display: flex;
  align-items: center;
  gap: 5px;
}

.basic-heading {
  font-size: 18px;
  text-align: center;
  margin-top: 20px;
}

.basic-text {
  font-size: 10px;
}

.center-v {
  display: flex;
  align-items: center;
}

#mobile-menu-icon-group {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
@media screen and (min-width: 768px) {
  #mobile-menu-icon-group {
    display: none;
  }
}

hr {
  background-color: #D0D0D0;
  border: none;
  height: 1px;
  width: 100%;
  margin: 20px auto;
}

.search-box-form {
  background-color: white;
  width: 400px;
  height: 40px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  border-radius: 8px;
}
.search-box-form input {
  border-bottom: 0.5px solid #D0D0D0;
}

.search-form-button {
  width: 50px;
  height: 30px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.user-login-logout-container {
  display: flex;
  gap: 15px;
}
.user-login-logout-container .avatar_main {
  max-width: 40px;
  aspect-ratio: 1/1;
}
.user-login-logout-container .button-field, .user-login-logout-container .button-group {
  font-size: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  position: relative;
}
@media screen and (max-width: 768px) {
  .user-login-logout-container .button-field, .user-login-logout-container .button-group {
    font-size: 10px;
  }
}
.user-login-logout-container .login-signin-button span {
  text-decoration: underline;
  cursor: pointer;
}
.user-login-logout-container .my-account-button {
  cursor: pointer;
}

#login-signin-form {
  position: absolute;
  background-color: white;
  bottom: 0;
  left: 0;
  transform: translateY(100%) translateX(-60%);
  padding: 20px;
  width: 300px;
  z-index: 10000;
}
#login-signin-form input {
  width: 100%;
  color: #04143B;
  margin-top: 10px;
  margin-bottom: 10px;
  border: 1px solid #D0D0D0;
  padding: 10px;
}
#login-signin-form input::placeholder {
  color: #04143B;
}
#login-signin-form button {
  width: 100%;
  height: 40px;
  margin-top: 10px;
  margin-bottom: 10px;
  color: #04143B;
}
#login-signin-form label {
  margin-top: 15px;
}

nav {
  width: calc(100% - 75px);
  margin: 0 0 0 auto;
  padding-top: 30px;
  border-inline: 2px solid #D0D0D0;
  height: 100%;
  overflow: auto;
  position: relative;
}
@media screen and (max-width: 768px) {
  nav {
    position: fixed;
    transform: translateX(-100%);
    background-color: white;
    width: 50%;
    z-index: 1000;
  }
}

.menu > .menu-item {
  margin-bottom: 20px;
  text-transform: uppercase;
  position: relative;
  padding-inline: 20px;
  font-size: 14px;
}
.menu > .menu-item i {
  margin-right: 5px;
  font-size: 14px;
}

.menu > .menu-item::after {
  content: "";
  display: block;
  height: 1px;
  width: 50%;
  background-color: #D0D0D0;
  margin: auto;
  margin-top: 20px;
  border-radius: 1px;
}

.sub-menu > .menu-item {
  padding-left: 15px;
  margin: 10px 0;
  text-transform: none;
}

.sub-menu > .menu-item.active {
  color: red;
}

.sub-menu > .menu-item a:hover {
  color: red;
}

#close-menu-mobile {
  padding-inline: 20px;
  margin-bottom: 30px;
  text-align: right;
}
@media screen and (min-width: 768px) {
  #close-menu-mobile {
    display: none;
  }
}
#close-menu-mobile i {
  font-size: 24px;
}

main {
  background-color: #F3F3F3;
  height: 100%;
  overflow: hidden;
}

.nav-title {
  font-size: 18px;
}

#main-cover {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.nav-title {
  width: 100%;
  text-align: center;
  background-color: white;
  box-shadow: 0 2px 5px #ACACAC;
  padding-top: 10px;
  padding-bottom: 10px;
}

.page-content {
  width: 90%;
  max-width: 650px;
  max-height: 90%;
  overflow-y: scroll;
}
@media screen and (max-width: 768px) {
  .page-content {
    width: 90%;
  }
}

.full-width {
  width: 95%;
  max-width: none;
}

.content-card {
  padding: 20px;
  background-color: white;
  margin-top: 20px;
  margin-bottom: 20px;
  border-radius: 10px;
  border: 1px solid #D0D0D0;
  font-size: 13px;
  line-height: 1.5;
}
.content-card .row-1 {
  display: flex;
  flex-direction: row;
  margin-bottom: 20px;
}
.content-card .row-2 {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 20px;
}
.content-card .row-2 .col-2 {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.content-card .content-row {
  margin-bottom: 20px;
  font-size: 14px;
}
.content-card .content-row p {
  margin-top: 15px;
  margin-bottom: 15px;
}
.content-card .content-row ul {
  list-style: initial;
  list-style-position: inside;
  margin-bottom: 8px;
}
.content-card .content-row li {
  text-indent: 1em;
}
.content-card .banner-reference {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 10px;
  overflow: hidden;
}
.content-card .banner-reference img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-title {
  font-size: 18px;
}

.author_name {
  font-size: 16px;
}

.createAt {
  color: #ACACAC;
  font-size: 12px;
}

.avatar {
  width: 40px;
  aspect-ratio: 1/1;
  overflow: hidden;
  border-radius: 50%;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.post-container {
  margin: 10px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  row-gap: 30px;
  column-gap: 30px;
}
@media screen and (max-width: 1024px) {
  .post-container {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media screen and (max-width: 768px) {
  .post-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

.project-container {
  grid-template-rows: repeat(4, auto);
}

.post-card {
  padding: 10px;
  background-color: white;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  position: relative;
  box-shadow: -2px 2px 10px -3px #D0D0D0;
}

.project-card {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 4;
}

.post-title {
  font-size: 14px;
}

.excerpt, .project-content {
  font-size: 12px;
  color: #ACACAC;
}
.excerpt strong, .excerpt b, .project-content strong, .project-content b {
  color: rgb(26, 26, 26);
}

.post-card .readmore {
  display: flex;
  gap: 8px;
  align-items: center;
  font-weight: bolder;
}
.post-card .readmore i {
  font-size: 16px;
}

.post-card:hover .readmore {
  color: #EFC416;
}

.label-vip, .post-category {
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: #FFEE8F;
  border-radius: 5px;
  font-weight: bold;
  font-size: 12px;
  padding: 5px 15px;
}

.banner_img {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 5px;
}
.banner_img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.meta-row {
  margin: 10px 0px;
  display: flex;
  flex-direction: row;
  gap: 30px;
}
.meta-row span {
  font-size: 12px;
  font-weight: bold;
}
.meta-row .sum-value, .meta-row .real-value {
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}
.meta-row .sum-value {
  color: red;
}
.meta-row .real-value {
  color: green;
}
.meta-row .col-1, .meta-row .col-2 {
  display: flex;
  flex-direction: column;
}

.single-post-container {
  margin: 20px 10px;
  padding: 30px 25px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 2px 2px 8px 0px #ACACAC;
}
.single-post-container h1, .single-post-container h2, .single-post-container h3, .single-post-container h4, .single-post-container h5, .single-post-container h6 {
  margin-top: 16px;
  margin-bottom: 8px;
}
.single-post-container p {
  margin: 6px 0px;
}
.single-post-container p::first-line {
  padding-left: 8px;
}
.single-post-container p:has(strong) {
  margin-top: 18px;
}
.single-post-container ul {
  list-style: disc;
  list-style-position: inside;
  text-indent: 10px;
}
.single-post-container li {
  margin: 6px auto;
}
.single-post-container img {
  display: block;
  max-width: 100%;
  margin: 5px auto;
}

.single-post-title {
  margin: 10px 0px;
  text-align: center;
}

.single-post-author {
  font-size: 14px;
  margin-bottom: 5px;
  text-align: center;
  font-weight: 600;
}

.single-post-date {
  color: #ACACAC;
  margin-bottom: 5px;
  font-size: 14px;
  text-align: center;
  font-style: italic;
}

.single-post-banner {
  width: 100%;
  margin: auto;
}
.single-post-banner img {
  width: 100%;
  border-radius: 10px;
}

.single-post-content {
  margin: 20px 0px;
  font-size: 14px;
  text-align: justify;
}

.tool_container input {
  border: 1px solid #D0D0D0;
  padding: 10px;
}

.tinh-thue {
  display: flex;
  flex-wrap: wrap;
  column-gap: 100px;
  padding: 20px;
  box-sizing: border-box;
}

.tinh-thue-nhap, .tinh-thue-hien-thi {
  flex-grow: 1;
}

.tinh-thue-title {
  font-weight: bold;
  margin-bottom: 10px;
  font-size: 15px;
}

.tinh-thue-note {
  margin: 5px 0;
}

.tinh-thue-hien-thi .tinh-thue-note {
  margin: 10px 0;
}

input.nhap-so {
  height: 40px;
  width: 100%;
  min-width: 10ch;
  margin-bottom: 10px;
}

.tinh-thue .tinh-thue-nhap button.tinh-thue-button {
  border: 1px solid darkblue;
  background: none;
  width: 150px;
  height: 40px;
  box-sizing: border-box;
  margin-top: 15px;
  margin-left: 5px;
  cursor: pointer;
  font-weight: bolder;
  color: darkblue;
  transition: 0.4s;
  border-radius: 10px;
}

.tinh-thue .tinh-thue-nhap button.tinh-thue-button:hover {
  background-color: darkblue;
  color: white;
}