/*
Theme Name: Phong Thần Vạn Tiên 2008
Author: Vạn Tiên 2008
Description: Theme game với trang chủ, bảng tin bốn chuyên mục, thư viện ảnh và phần tùy biến liên kết, banner, logo.
Version: 1.0.6
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.0
Text Domain: phong-than-van-tien-2008
*/

.vt-menu__items {
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
}

.vt-entry__title {
  min-width: 0;
}

.vt-inner .vt-page {
  width: 100%;
  zoom: 1;
  background: linear-gradient(#3f2817, #24160e);
}

.vt-inner .vt-masthead {
  position: relative;
  min-height: 136px;
}

.vt-inner .vt-menu {
  width: min(1168px, calc(100% - 32px));
}

.vt-reading {
  width: min(1100px, calc(100% - 40px));
  min-height: 55vh;
  margin: 0 auto 56px;
  padding: clamp(24px, 4vw, 56px);
  border: 1px solid #b98b43;
  border-radius: 16px;
  background: #fff7df;
  box-shadow: 0 12px 40px #0003;
  overflow-wrap: anywhere;
}

.vt-reading__heading {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid #b98b4359;
}

.vt-reading h1 {
  margin: 12px 0;
  color: #702611;
  font-size: clamp(24px, 3.6vw, 38px);
  line-height: 1.3;
}

.vt-reading__back,
.vt-article__categories,
.vt-article__tags {
  color: #8e361c;
  font-size: 14px;
}

.vt-article__categories {
  margin-top: 16px;
}

.vt-reading time {
  color: #755936;
  font-size: 13px;
}

.vt-post-list {
  display: grid;
  gap: 28px;
}

.vt-post-card {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid #b98b4340;
}

.vt-post-card__image {
  flex: 0 0 28%;
  overflow: hidden;
  border-radius: 8px;
}

.vt-post-card__image img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.vt-post-card__body {
  min-width: 0;
  flex: 1;
}

.vt-post-card h2 {
  margin: 8px 0 12px;
  font-size: 22px;
  line-height: 1.4;
}

.vt-post-card__excerpt {
  margin-bottom: 16px;
  color: #735936;
  line-height: 1.8;
}

.vt-reading__button,
.vt-reading input[type="submit"] {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid #d9a34e;
  border-radius: 8px;
  background: linear-gradient(#ac331b, #7e1f10);
  color: #fff1c4;
  font-size: 14px;
  cursor: pointer;
}

.vt-reading a:hover {
  text-decoration: underline;
}

.vt-reading__empty {
  margin-bottom: 24px;
}

.vt-article__cover {
  width: 100%;
  height: auto;
  margin: 24px 0;
  border-radius: 8px;
}

.vt-article__content {
  font-size: 16px;
  line-height: 1.85;
}

.vt-article__content > * + * {
  margin-top: 1.2em;
}

.vt-article__content h2,
.vt-article__content h3,
.vt-article__content h4 {
  margin: 1.5em 0 0.6em;
  line-height: 1.4;
}

.vt-article__content ul,
.vt-article__content ol {
  padding-left: 1.6em;
}

.vt-article__content a {
  color: #9b3217;
  text-decoration: underline;
}

.vt-article__content img,
.vt-article__content video {
  max-width: 100%;
  height: auto;
}

.vt-article__content iframe {
  max-width: 100%;
}

.vt-article__content figure {
  max-width: 100%;
  margin-inline: 0;
}

.vt-article__content blockquote {
  margin-inline: 0;
  padding: 16px 24px;
  border-left: 4px solid #b98b43;
  background: #f1e2b7;
}

.vt-article__content pre,
.vt-article__content .wp-block-table {
  overflow-x: auto;
}

.vt-article__content pre {
  padding: 20px;
  border-radius: 8px;
  background: #2c1c11;
  color: #fff1c4;
}

.vt-article__content table {
  width: 100%;
  border-collapse: collapse;
}

.vt-article__content td,
.vt-article__content th {
  padding: 8px 12px;
  border: 1px solid #b98b43;
}

.vt-article__tags,
.vt-reading .navigation,
.vt-post-pages,
.vt-comments {
  margin-top: 32px;
}

.vt-reading .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

.vt-reading .page-numbers,
.vt-post-pages .post-page-numbers {
  padding: 8px 14px;
  border: 1px solid #c99f61;
  border-radius: 6px;
}

.vt-reading .page-numbers.current {
  background: #7e1f10;
  color: #fff1c4;
}

.vt-search {
  display: flex;
  gap: 12px;
  margin: 24px 0;
}

.vt-search input,
.vt-comments input:not([type="submit"]):not([type="checkbox"]),
.vt-comments textarea,
.post-password-form input[type="password"] {
  min-width: 0;
  padding: 12px;
  border: 1px solid #b98b43;
  border-radius: 6px;
  background: #fffdf6;
  color: #563505;
}

.vt-search input {
  flex: 1;
}

.vt-comments {
  padding-top: 24px;
  border-top: 1px solid #b98b4359;
}

.vt-comments__list {
  padding-left: 24px;
}

.vt-comments .comment-body,
.vt-comments p {
  margin: 16px 0;
}

.vt-comments textarea {
  width: 100%;
}

.vt-comments label {
  display: block;
  margin-bottom: 6px;
}

.vt-comments .comment-form-cookies-consent label {
  display: inline;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.alignleft {
  float: left;
  margin: 0 20px 20px 0;
}
.alignright {
  float: right;
  margin: 0 0 20px 20px;
}
.aligncenter {
  margin-inline: auto;
}
.wp-caption-text,
.gallery-caption {
  font-size: 13px;
  color: #755936;
}
.vt-article__content::after {
  content: "";
  display: table;
  clear: both;
}

@media (max-width: 1023px) {
  .vt-inner .vt-masthead {
    min-height: 83px;
  }
  .vt-inner .vt-menu {
    width: 100%;
  }
  .vt-reading {
    margin-top: 24px;
  }
  .vt-inner .vt-footer__ornament {
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .vt-reading {
    width: calc(100% - 24px);
    padding: 24px 18px;
    margin-bottom: 32px;
  }
  .vt-post-card {
    flex-direction: column;
    gap: 16px;
  }
  .vt-post-card__image {
    width: 100%;
  }
  .vt-post-card h2 {
    font-size: 20px;
  }
  .vt-article__content {
    font-size: 15px;
  }
  .vt-search {
    flex-direction: column;
  }
  .vt-reading .nav-links {
    flex-direction: column;
  }
}
