:root {
  --primary-color: #0c5dff;
  --secondary-color: #7a7a7a;
  --tertiary-color: #f5f5f5;
  --quaternary-color: #2d2d2d;
  --quinary-color: #666666;
  --senary-color: #999999;
}

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

ul,
ol {
  list-style: none;
}

a {
  text-decoration: none;
}

a:visited {
  color: var(--primary-color);
}

a:hover {
  color: var(--primary-color);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'ProductSans', system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, open sans, helvetica neue, sans-serif, serif;
  font-size: 16px;
  line-height: 1;
  color: #333;
}

.site-main {
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

hr.divider {
  border-top: 1px solid #ddd;
  width: 100%;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 8px;
  width: 1200px;
}

@media (max-width: 1200px) {
  .container {
    width: 100%;
  }
}

.line2 {
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-all;
}

.site-header {
  background-color: #ffffff;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 13;
  height: 78px;
  transition: all 0.3s ease;
  box-shadow: 0px 2px 4px 0px rgba(173, 173, 173, 0.5);
}

.site-header.sticky {
  position: sticky;
}

.site-header .container {
  justify-content: space-between;
  align-items: center;
  height: 78px;
  display: grid;
  grid-template-columns: 80px 1fr fit-content(100%);
  gap: 15px;
}

.site-header .container .logo {
  display: flex;
  width: 78px;
  height: 78px;
  overflow: hidden;
}

.site-header .container .logo img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.site-header .container .search-form-button {
  border: none;
  background: transparent;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--quaternary-color);
}

.site-header .container .search-form-button:hover {
  color: var(--primary-color);
}

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

@media (max-width: 1000px) {
  .main-nav-container {
    justify-content: flex-end;
  }
}

.main-nav-container .main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  transition: all 0.3s ease;
}

.main-nav-container .main-nav a {
  color: var(--quaternary-color);
  font-size: clamp(14px, 1vw, 16px);
  font-weight: 700;
  transition: all 0.3s ease;
}

.main-nav-container .main-nav a.current {
  color: var(--primary-color);
}

.main-nav-container .main-nav a:hover {
  color: var(--primary-color);
}

@media (max-width: 1000px) {
  .main-nav-container .main-nav {
    display: none;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: fixed;
    width: 100vw;
    top: 0;
    left: -100%;
    right: 0;
    bottom: 0;
    transition: all 0.5s ease;
    background-color: rgba(4, 3, 8, 0.92);
    color: #ffffff;
    z-index: 99999;
  }
  .main-nav-container .main-nav a {
    color: #ffffff;
    font-size: 1.2rem;
  }
  .main-nav-container .main-nav a.current {
    color: var(--primary-color);
  }
  .main-nav-container .main-nav a:hover {
    color: var(--primary-color);
  }
  .main-nav-container .main-nav .menu-close {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.4rem;
    width: 100%;
    margin-bottom: 3rem;
  }
  .main-nav-container .main-nav .menu-close span {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
  }
  .main-nav-container .main-nav .menu-close i {
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #f5f5f5;
    color: var(--quaternary-color);
    padding: 0;
    border-radius: 50%;
  }
  .main-nav-container .main-nav.active {
    left: 0;
    align-items: flex-start;
  }
}

.main-nav-container .nav-toggle {
  display: none;
}

@media (max-width: 1000px) {
  .main-nav-container .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--quaternary-color);
  }
  .main-nav-container .nav-toggle:hover {
    color: var(--primary-color);
  }
}

.loop.card {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 2vw, 20px);
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: inset 0 0 0px 1px rgba(0, 0, 0, 0.07);
}

.loop.card .content {
  display: flex;
  flex-direction: column;
  gap: clamp(5px, 1vw, 10px);
  padding: 0 10px 10px;
}

.loop.card .content .category {
  color: var(--primary-color);
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}

.loop.card .content .title {
  font-size: 1.15rem;
  color: var(--quaternary-color);
  line-height: 1.5;
  font-weight: 400;
}

.loop.card .content .title:hover {
  color: var(--primary-color);
}

@media (max-width: 768px) {
  .loop.card .content .title {
    font-size: 1rem;
  }
}

.loop.card .content .summary {
  font-size: 14px;
  line-height: 2;
  color: var(--secondary-color);
}

.loop.card .content .author,
.loop.card .content .date {
  color: var(--secondary-color);
  font-weight: 700;
  font-size: .8rem;
}

@media (max-width: 768px) {
  .loop.card .content .author,
  .loop.card .content .date {
    font-size: .7rem;
  }
}

.loop.card .content .author {
  margin-top: 1rem;
}

@media (max-width: 768px) {
  .loop.card .content .author {
    margin-top: .5rem;
  }
}

.loop.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  aspect-ratio: 26 / 15;
}

.post-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 1000px) {
  .post-list {
    gap: 15px;
  }
}

@media (max-width: 768px) {
  .post-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
}

@media (max-width: 540px) {
  .post-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 390px) {
  .post-list {
    grid-template-columns: repeat(1, 1fr);
  }
}

.post-list .loop:first-child {
  grid-column: span 4;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 768px) {
  .post-list .loop:first-child {
    grid-template-columns: 1fr;
    grid-column: unset;
  }
  .post-list .loop:first-child .summary,
  .post-list .loop:first-child .author,
  .post-list .loop:first-child .date {
    display: none;
  }
}

.post-list .loop:first-child .content {
  margin-top: 1.5rem;
}

@media (max-width: 768px) {
  .post-list .loop:first-child .content {
    margin-top: 0;
  }
}

.post-list.related .loop.card:first-child, .post-list.archive .loop.card:first-child {
  grid-column: unset;
  grid-template-columns: unset;
}

.post-list.related .loop.card:first-child .content, .post-list.archive .loop.card:first-child .content {
  margin-top: 0;
}

.post-list.related .loop.card:first-child .summary,
.post-list.related .loop.card:first-child .author,
.post-list.related .loop.card:first-child .date, .post-list.archive .loop.card:first-child .summary,
.post-list.archive .loop.card:first-child .author,
.post-list.archive .loop.card:first-child .date {
  display: none;
}

.recommended-posts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 1000px) {
  .recommended-posts {
    gap: 15px;
  }
}

@media (max-width: 768px) {
  .recommended-posts {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
}

@media (max-width: 540px) {
  .recommended-posts {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 390px) {
  .recommended-posts {
    grid-template-columns: repeat(1, 1fr);
  }
}

.recommended-posts .loop.item-1,
.recommended-posts .loop.item-2 {
  grid-column: span 2;
  position: relative;
}

@media (max-width: 768px) {
  .recommended-posts .loop.item-1,
  .recommended-posts .loop.item-2 {
    grid-column: unset;
    gap: 10px;
  }
}

.recommended-posts .loop.item-1 .content,
.recommended-posts .loop.item-2 .content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px;
}

@media (max-width: 768px) {
  .recommended-posts .loop.item-1 .content,
  .recommended-posts .loop.item-2 .content {
    position: relative;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0 10px 10px;
  }
}

.recommended-posts .loop.item-1 .content .category,
.recommended-posts .loop.item-2 .content .category {
  color: var(--primary-color);
  font-size: .8rem;
}

.recommended-posts .loop.item-1 .content .title,
.recommended-posts .loop.item-2 .content .title {
  color: #ffffff;
}

@media (max-width: 768px) {
  .recommended-posts .loop.item-1 .content .title,
  .recommended-posts .loop.item-2 .content .title {
    color: unset;
  }
}

.recommended-posts .loop.item-1 .content .author,
.recommended-posts .loop.item-1 .content .date,
.recommended-posts .loop.item-2 .content .author,
.recommended-posts .loop.item-2 .content .date {
  display: none;
}

@media (max-width: 768px) {
  .recommended-posts .loop.item-1 .content .author,
  .recommended-posts .loop.item-1 .content .date,
  .recommended-posts .loop.item-2 .content .author,
  .recommended-posts .loop.item-2 .content .date {
    display: flex;
  }
}

.site-footer {
  background-color: #f8f9fa;
  margin-top: 3rem;
  color: #333;
  padding: 40px 20px;
  text-align: center;
  border-top: 1px solid #dee2e6;
  padding-bottom: 80px;
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.site-footer .container .footer-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.site-footer .container .footer-nav {
  display: flex;
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .site-footer .container .footer-nav {
    gap: 1rem;
  }
}

.site-footer .container .footer-nav a {
  font-size: 16px;
  font-weight: 700;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .site-footer .container .footer-nav a {
    font-size: 14px;
    font-weight: 400;
  }
}

.related-posts .related-posts-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--quaternary-color);
  margin-bottom: 1.5rem;
}

.post-content {
  font-size: 16px;
  line-height: 2;
  color: var(--secondary-color);
  box-shadow: inset 0 0 0px 1px rgba(0, 0, 0, 0.07);
  padding: 1.5rem;
  border-radius: 10px;
}

.post-content .post-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--quaternary-color);
  margin: 0 0 1rem;
}

.post-content .post-meta {
  display: flex;
  gap: 1rem;
  font-size: .8rem;
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.post-content p {
  margin-bottom: 1rem;
}

.post-content img {
  max-width: 100%;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
  margin-bottom: 1rem;
}

.post-content h1 {
  font-size: 1.5rem;
}

.post-content h2 {
  font-size: 1.25rem;
}

.post-content h3 {
  font-size: 1.15rem;
}

.post-content h4 {
  font-size: 1rem;
}

.post-content h5 {
  font-size: .85rem;
}

.post-content h6 {
  font-size: .75rem;
}

.post-content blockquote {
  border-left: 4px solid var(--primary-color);
  padding-left: 1rem;
  font-style: italic;
  color: var(--secondary-color);
}

.post-content hr {
  border-top: 1px solid #ddd;
  margin: 2rem 0;
}

.post-content ul,
.post-content ol {
  margin-bottom: 1rem;
  margin-left: 1.25rem;
}

.post-content ul {
  list-style: disc;
}

.post-content ol {
  list-style: decimal;
}

.page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.page-numbers li {
  display: inline-block;
}

.page-numbers li .current {
  background-color: var(--primary-color);
  color: #ffffff;
  padding: 5px 10px;
  border-radius: 5px;
  border: 1px solid var(--primary-color);
}

.page-numbers li a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.page-numbers li a:hover {
  background-color: var(--primary-color);
  color: #ffffff;
}

.error-404 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 60vh;
}

.error-404 .error-404-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--quaternary-color);
}

.error-404 .error-404-description {
  font-size: 1.5rem;
  color: var(--secondary-color);
}

#search-form-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75);
  z-index: 100;
  display: none;
}

#search-form-container.active {
  display: flex;
  justify-content: center;
  align-items: center;
}

#search-form-container .search-form {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  border-radius: 60px;
  padding: 0 4px 0 1.5rem;
  overflow: hidden;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 600px;
  height: clamp(40px, 10vh, 60px);
  margin: 1rem;
}

#search-form-container .search-form input {
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
}

#search-form-container .search-form button {
  background-color: var(--quaternary-color);
  color: #ffffff;
  border: none;
  outline: none;
  padding: 1rem;
  border-radius: 50%;
  cursor: pointer;
}

#search-form-container .search-form button:hover {
  background-color: var(--primary-color);
  color: #ffffff;
}

#search-pagination nav.posts-navigation h2 {
  display: none;
}

#search-pagination nav.posts-navigation .nav-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

#search-pagination nav.posts-navigation .nav-links a {
  text-transform: capitalize;
}

#to-top-btn {
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 100;
}

@media (max-width: 768px) {
  #to-top-btn {
    width: 30px;
    height: 30px;
  }
}

#to-top-btn a {
  display: flex;
  width: 100%;
  height: 100%;
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 700;
  transition: all 0.3s ease;
  justify-content: center;
  align-items: center;
}

#to-top-btn a:hover {
  color: #ffffff;
}
