﻿/*
Theme Name: TechTips Portal
Theme URI: https://example.com/techtips-portal
Author: TW
Description: WordPress theme inspired by a Vietnamese technology tips portal layout.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: techtips-portal
*/

@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/vendor/roboto/roboto-vietnamese.woff2") format("woff2");
}

:root {
  --bg: #f4f8ff;
  --surface: #ffffff;
  --surface-soft: #f8fbff;
  --line: #dfe8f7;
  --text: #102045;
  --muted: #67779b;
  --blue: #0a65ff;
  --blue-dark: #053fbb;
  --cyan: #15c8ff;
  --green: #18b875;
  --red: #ff3d57;
  --orange: #ff9f1a;
  --shadow: 0 18px 45px rgba(18, 54, 116, 0.10);
  --radius: 8px;
}

body.theme-dark {
  --bg: #081322;
  --surface: #101d31;
  --surface-soft: #0d1a2c;
  --line: #21334f;
  --text: #edf4ff;
  --muted: #a4b3cf;
  --blue: #4f8cff;
  --blue-dark: #2f6fe8;
  --cyan: #4ddcff;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/*
 * Default WP Alignment Classes
 *****************************************************************************/

.aligncenter,.alignleft,.alignright {
    display: block;
    padding: 0;
}

.aligncenter {
    float: none;
    margin: .5em auto 1em;
}

.alignright {
    float: right;
    margin: .5em 0 1em 1em;
}

.alignleft {
    float: left;
    margin: .5em 1em 1em 0;
}

.wp-caption {
    padding: 5px 0;
   max-width: 100%;
    background: #f5f5f7;
    text-align: center;
}

.wp-caption img {
    display: inline;
}

.wp-caption p.wp-caption-text {
    margin: 5px 0 0;
    padding: 0;
    text-align: center;
    font-size: 75%;
    font-weight: 100;
    font-style: italic;
    color: #ddd;
}
@media (max-width: 768px) {
  .wp-block-table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .wp-block-table table {
    width: 100% !important;
    min-width: 680px !important;
    table-layout: fixed;
  }

  .wp-block-table th,
  .wp-block-table td {
    padding: 10px 12px !important;
    font-size: 13px !important;
    line-height: 1.45;
    vertical-align: top;
    word-break: normal;
    overflow-wrap: break-word;
  }

  .wp-block-table th {
    font-size: 13px !important;
  }

  .wp-block-table td a,
  .wp-block-table td strong {
    font-size: 13px !important;
  }

  .wp-block-table td span {
    display: block;
    margin-top: 4px;
    font-size: 12px !important;
    line-height: 1.35;
  }

  .wp-block-table th:nth-child(1),
  .wp-block-table td:nth-child(1) {
    width: 150px !important;
  }

  .wp-block-table th:nth-child(2),
  .wp-block-table td:nth-child(2) {
    width: 160px !important;
  }

  .wp-block-table th:nth-child(3),
  .wp-block-table td:nth-child(3) {
    width: 135px !important;
  }

  .wp-block-table th:nth-child(4),
  .wp-block-table td:nth-child(4) {
    width: 170px !important;
  }

  .wp-block-table th:nth-child(5),
  .wp-block-table td:nth-child(5) {
    width: 65px !important;
    text-align: center !important;
  }
}

@media (max-width: 768px) {
  .wp-block-table::-webkit-scrollbar {
    height: 6px;
  }

  .wp-block-table::-webkit-scrollbar-track {
    background: rgba(148, 11, 15, 0.08);
    border-radius: 999px;
  }

  .wp-block-table::-webkit-scrollbar-thumb {
    background: var(--blue);
    border-radius: 999px;
  }
}

body {
  margin: 0;
  background: radial-gradient(circle at top right, #ffffff 0, var(--bg) 42%, #eef5ff 100%);
  color: var(--text);
  font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
}

body.theme-dark {
  background: radial-gradient(circle at top right, #14294a 0, var(--bg) 44%, #050b14 100%);
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.site-shell {
  display: grid;
  grid-template-columns: 188px minmax(0, 1fr);
  min-height: 100vh;
}

.left-rail {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  background: var(--surface);
  border-right: 1px solid var(--line);
  padding: 18px 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 22px;
}

.brand-with-text {
  justify-content: flex-start;
}

.brand-icon-only {
  justify-content: center;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  color: var(--blue);
  font-weight: 700;
  overflow: hidden;
}

.brand-with-text .brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff;
}

.brand-mark img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.brand-logo-only {
  justify-content: flex-start;
  max-width: 100%;
}

.brand-logo-image {
  display: block;
  width: auto;
  height: auto;
  max-width: none;
  min-height: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}

.brand-logo-image img {
  display: block;
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  object-fit: contain;
}

.brand-logo-img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 56px;
  border-radius: 0;
  background: transparent;
  object-fit: contain;
}

.left-rail .brand-logo-only {
  width: 100%;
}

.topbar-mobile-brand.brand-logo-only {
  max-width: 180px;
}

.topbar-mobile-brand .brand-logo-img {
  max-height: 56px;
}

.brand-icon-only .brand-mark {
  width: auto;
  height: auto;
  min-height: 34px;
  font-size: 28px;
}

.topbar-mobile-brand.brand-icon-only {
  justify-content: flex-start;
}

.topbar-mobile-brand.brand-icon-only .brand-mark {
  width: auto;
  height: auto;
  min-height: 34px;
  font-size: 24px;
}

.brand-title {
  display: block;
  color: var(--blue);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

.brand-subtitle {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.rail-label {
  margin: 18px 8px 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.rail-menu {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rail-menu li {
  min-width: 0;
}

.rail-item-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px;
  align-items: center;
  gap: 4px;
  border-radius: 8px;
}

.rail-submenu-check {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.rail-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--text);
  font-size: 13px;
  font-weight: 650;
}

.rail-menu > li > a:hover,
.rail-menu > .is-active > a {
  background: var(--blue);
  color: #fff;
}

.rail-item-row:hover {
  background: var(--blue-50);
}

.rail-item-row:hover > a {
  background: transparent;
  color: var(--blue);
}

.rail-menu > .is-active > .rail-item-row {
  background: var(--blue);
}

.rail-menu > .is-active > .rail-item-row > a,
.rail-menu > .is-active > .rail-item-row > .rail-submenu-toggle {
  background: transparent;
  color: #fff;
}

.rail-submenu-toggle {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: currentColor;
  cursor: pointer;
  user-select: none;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.rail-submenu-toggle:hover {
  background: rgba(255, 255, 255, 0.14);
  color: inherit;
}

.rail-submenu-toggle i {
  font-size: 11px;
  transition: transform 0.18s ease;
}

.rail-submenu-check:checked + .rail-item-row .rail-submenu-toggle i {
  transform: rotate(180deg);
}

.rail-icon {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  font-size: 14px;
}

.rail-submenu {
  display: none;
  gap: 1px;
  margin-top: 6px;;
 padding:0;
  list-style: none;
}

.rail-submenu-check:checked ~ .rail-submenu {
  display: grid;
}

.rail-submenu .rail-submenu {
  margin-left: 14px;
}

.rail-submenu a {
  min-height: 28px;
  padding: 5px 8px 5px 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  border-radius: 7px;
  background: transparent;
}

.rail-submenu a:hover,
.rail-submenu .is-active > a {
  background: var(--blue-50);
  color: var(--blue);
}

.rail-submenu .rail-icon {
  width: 13px;
  height: 13px;
  color: var(--blue);
  font-size: 9px;
}

.theme-card {
  position: relative;
  display: block;
  width: 100%;
  min-height: 118px;
  margin-top: 18px;
  padding: 52px 50px 14px 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 86% 22%, rgba(255, 255, 255, 0.92) 0 15px, transparent 16px),
    radial-gradient(circle at 42% 12%, rgba(255, 210, 77, 0.42), transparent 34%),
    linear-gradient(150deg, #eaf4ff, #bfe2ff 56%, #79b8ff);
  color: var(--text);
  text-align: left;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.theme-card::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 54px;
  background:
    linear-gradient(150deg, transparent 0 26%, rgba(255, 255, 255, 0.24) 27% 29%, transparent 30%),
    linear-gradient(145deg, transparent 0 46%, rgba(92, 147, 210, 0.58) 47%),
    linear-gradient(160deg, transparent 0 58%, rgba(51, 115, 185, 0.72) 59%);
  transition: background 0.2s ease;
}

.theme-card[aria-pressed="true"] {
  border-color: rgba(255, 255, 255, 0.18);
  background:
    radial-gradient(circle at 86% 22%, rgba(255, 255, 255, 0.42) 0 8px, transparent 9px),
    radial-gradient(circle at 46% 18%, rgba(57, 136, 255, 0.32), transparent 34%),
    linear-gradient(150deg, #061638, #082554 54%, #0a65ff);
  color: #fff;
}

.theme-card[aria-pressed="true"]::before {
  background:
    linear-gradient(150deg, transparent 0 26%, rgba(255, 255, 255, 0.06) 27% 29%, transparent 30%),
    linear-gradient(145deg, transparent 0 46%, rgba(3, 12, 31, 0.82) 47%),
    linear-gradient(160deg, transparent 0 58%, rgba(7, 25, 58, 0.92) 59%);
}

.theme-card strong {
  position: relative;
  z-index: 1;
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
  line-height: 1.2;
}

.theme-card span {
  position: relative;
  z-index: 1;
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.theme-card[aria-pressed="true"] span {
  color: rgba(255, 255, 255, 0.72);
}

.theme-card-art {
  position: absolute !important;
  top: 14px;
  left: 14px;
  display: grid !important;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--blue) !important;
  font-size: 18px !important;
}

.theme-card[aria-pressed="true"] .theme-card-art {
  color: #dbe9ff !important;
}

.theme-card-art > span {
  position: absolute;
  right: 1px;
  bottom: 2px;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--orange);
}

.theme-card[aria-pressed="true"] .theme-card-art > span {
  background: #8db8ff;
}

.theme-switch {
  position: absolute !important;
  right: 14px;
  bottom: 15px;
  z-index: 2 !important;
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.theme-card[aria-pressed="true"] .theme-switch {
  background: var(--blue) !important;
}

.theme-switch span {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #fff !important;
  transition: transform 0.2s ease;
}

.theme-card[aria-pressed="true"] .theme-switch span {
  transform: translateX(16px);
}

.main-frame {
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(220px, 620px) auto;
  align-items: center;
  gap: 18px;
  height: 64px;
  padding: 12px 28px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-soft) 84%, transparent);
  backdrop-filter: blur(14px);
}

body.admin-bar .topbar {
  top: 32px;
}

body.admin-bar .left-rail {
  top: 32px;
  height: calc(100vh - 32px);
}

.menu-button,
.icon-button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
}

.search-form {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
}

.search-form input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.top-actions {
  display: flex;
  justify-content: end;
  align-items: center;
  gap: 10px;
}

.topbar-mobile-brand,
.mobile-menu-button {
  display: none;
}

.mobile-search-button {
  display: none;
}

.login-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.content-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 306px;
  gap: 22px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 26px 0px 0;
}

.page-main {
  display: grid;
  gap: 24px;
  min-width: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.hero {
  position: relative;
  min-height: 278px;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 82% 24%, rgba(253, 61, 87, 0.82), transparent 16%),
    radial-gradient(circle at 62% 66%, rgba(21, 200, 255, 0.72), transparent 20%),
    linear-gradient(135deg, #04123a 0%, #092b84 48%, #360b8d 100%);
  color: #fff;
  box-shadow: var(--shadow);
}

.hero-post {
  background-position: center;
  background-size: cover;
}

.hero-bg-img,
.featured-large-bg-img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(3, 13, 44, 0.92), rgba(3, 13, 44, 0.35) 48%, rgba(3, 13, 44, 0.08)),
    repeating-linear-gradient(90deg, transparent 0 42px, rgba(255, 255, 255, 0.05) 43px 44px);
}

.hero:not(.hero-post)::after {
  content: "";
  position: absolute;
  right: 8%;
  top: 20%;
  width: min(360px, 46%);
  aspect-ratio: 1.45;
  border: 10px solid #9dc2ff;
  border-bottom-width: 26px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0a65ff, #15c8ff 45%, #eef5ff 46%, #ffffff 100%);
  transform: perspective(600px) rotateY(-16deg) rotateZ(-4deg);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 520px;
  padding: 36px 42px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(10, 101, 255, 0.92);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.hero h1,
.hero h2 {
  margin: 16px 0 10px;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.12;
  letter-spacing: 0;
}

.hero p {
  max-width: 440px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.78);
}

.primary-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
}

.section {
  display: grid;
  gap: 14px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.section-title {
  position: relative;
  margin: 0;
  padding-left: 12px;
  font-size: 18px;
  line-height: 1.25;
}

.section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 4px;
  height: 20px;
  border-radius: 999px;
  background: var(--blue);
}

.view-all {
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 12px;
}

.topic-card,
.tool-card,
.product-card,
.mini-card,
.video-card,
.expert-card,
.faq-card,
.sidebar-box,
.post-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 28px rgba(18, 54, 116, 0.07);
}

.topic-card {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-height: 86px;
  padding: 14px 8px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
}

.topic-icon,
.tool-icon,
.product-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #edf5ff;
  color: var(--blue);
  font-size: 23px;
  overflow: hidden;
}

.topic-icon img,
.product-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.post-card {
  overflow: hidden;
}

.card-thumb,
.video-thumb,
.guide-thumb {
  position: relative;
  min-height: 144px;
  background: linear-gradient(135deg, #0a65ff, #061a4f 62%, #5b28ff);
  color: #fff;
}

.card-thumb::after,
.video-thumb::after,
.guide-thumb::after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.24), transparent 64%);
}

.post-card img,
.video-card img {
  width: 100%;
  height: 144px;
  object-fit: cover;
}

.card-body {
  padding: 13px;
}

.card-body h3 {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.35;
}

.card-body p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: #7a89aa;
  font-size: 12px;
}

.meta-author,
.meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.meta-avatar {
  flex: 0 0 22px;
  width: 22px !important;
  height: 22px !important;
  border-radius: 999px;
  object-fit: cover;
  margin-right: 0;
}

.article-meta .meta-avatar {
  flex-basis: 24px;
  width: 24px !important;
  height: 24px !important;
  margin-bottom: 0;
}

.feature-row {
  display: grid;
  grid-template-columns: minmax(260px, 1.08fr) minmax(0, 1fr);
  gap: 14px;
}

.featured-large {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 74% 28%, rgba(21, 200, 255, 0.85), transparent 22%),
    linear-gradient(135deg, #071b55, #0a65ff);
  color: #fff;
  padding: 26px;
  box-shadow: var(--shadow);
}

.featured-large-post {
  background-position: center;
  background-size: cover;
}

.featured-large-post::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(5, 18, 54, 0.88), rgba(5, 18, 54, 0.46));
}

.featured-large-post > :not(.featured-large-bg-img) {
  position: relative;
  z-index: 2;
}

.featured-large h3 {
  max-width: 360px;
  margin: 74px 0 10px;
  font-size: 26px;
  line-height: 1.18;
}

.featured-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.mini-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  padding: 10px;
}

.mini-thumb {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 8px;
  background: linear-gradient(135deg, #092b84, #0a65ff);
  color: #fff;
  font-size: 24px;
  overflow: hidden;
}

.mini-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mini-card h3 {
  margin: 0 0 5px;
  font-size: 13px;
  line-height: 1.35;
}

.products,
.tools {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.product-card,
.tool-card {
  padding: 14px;
  text-align: center;
}

.product-icon,
.tool-icon {
  margin: 0 auto 10px;
}

.product-card h3,
.tool-card h3 {
  margin: 0 0 6px;
  font-size: 13px;
}

.product-card h3 a {
  color: inherit;
}

.stars {
  color: var(--orange);
  font-size: 12px;
}

.download {
  display: inline-flex;
  justify-content: center;
  min-width: 100px;
  margin-top: 10px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #edf5ff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.guides-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.guide-thumb {
  min-height: 126px;
  border-radius: 8px 8px 0 0;
}

.step-label {
  position: absolute;
  left: 12px;
  top: 10px;
  z-index: 1;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
}

.split-sections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.video-card {
  overflow: hidden;
}

.video-thumb {
  min-height: 124px;
}

.video-thumb img {
  width: 100%;
  height: 124px;
  object-fit: cover;
}

.play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--blue);
  transform: translate(-50%, -50%);
}

.video-duration {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 1;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(4, 18, 58, 0.82);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.video-card h3 {
  margin: 0;
  padding: 10px;
  font-size: 13px;
  line-height: 1.35;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-cloud a,
.tag-cloud span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: #526587;
  font-size: 12px;
  font-weight: 700;
}

.newsletter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
  align-items: center;
  gap: 24px;
  padding: 28px 34px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #064cff, #5928ff);
  color: #fff;
}

.newsletter h2 {
  margin: 0 0 4px;
  font-size: 24px;
}

.newsletter p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
}

.newsletter form,
.newsletter-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.newsletter input,
.newsletter-form input[type="email"] {
  min-width: 0;
  height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 0 14px;
}

.newsletter button,
.newsletter-form button {
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: var(--blue);
  padding: 0 20px;
  font-weight: 700;
  cursor: pointer;
}

.experts {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.expert-card {
  padding: 13px;
  text-align: center;
}

.avatar {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #e8f2ff, #d7f8ff);
  color: var(--blue);
  font-weight: 700;
}

.avatar img {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  object-fit: cover;
}

.expert-card strong {
  display: block;
  font-size: 13px;
}

.expert-card strong a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 4px 6px;
}

.expert-card span {
  color: var(--muted);
  font-size: 12px;
}

.expert-role {
  display: block;
  margin-top: 3px;
  color: var(--blue) !important;
  font-weight: 700;
}

.expert-count {
  display: block;
  margin-top: 2px;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.faq-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  color: #526587;
  font-size: 13px;
  font-weight: 750;
}

.right-sidebar {
  display: grid;
  align-content: start;
  align-self: start;
  gap: 18px;
  position: sticky;
  top: 86px;
}

.sidebar-box {
  padding: 16px;
}

.sidebar-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 13px;
  font-size: 16px;
}

.sidebar-title .fa-fire {
  color: var(--orange);
}

.popular-list,
.category-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.popular-item {
  display: grid;
  grid-template-columns: 30px 76px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.rank {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-top: 18px;
  border-radius: 999px;
  background: #edf5ff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.popular-rank-1 .rank {
  width: 32px;
  height: 32px;
  margin-top: 16px;
  background: var(--orange);
  color: #fff;
  font-size: 14px;
  box-shadow: 0 8px 18px rgba(255, 159, 26, 0.22);
}

.popular-rank-2 .rank {
  background: var(--blue);
  color: #fff;
}

.popular-rank-3 .rank {
  background: var(--green);
  color: #fff;
}

.popular-thumb {
  width: 76px;
  height: 62px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0a65ff, #071f4c);
  overflow: hidden;
}

.popular-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.popular-content {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 62px;
}

.popular-item h3 {
  margin: 0;
  font-size: 13px;
  line-height: 1.32;
}

.popular-content span,
.category-list span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
}

.category-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.count {
  min-width: 36px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #edf5ff;
  color: var(--blue);
  text-align: center;
  font-size: 11px;
  font-weight: 700;
}

.side-newsletter {
  overflow: hidden;
  background: linear-gradient(145deg, #fff, #eef5ff);
}

.side-newsletter .newsletter-form {
  margin-top: 12px;
  gap: 8px;
}

.side-newsletter .newsletter-form input[type="email"] {
  width: 100%;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.side-newsletter .newsletter-form button {
  height: 42px;
  background: var(--blue);
  color: #fff;
  padding: 0 14px;
}

.site-footer {
  margin-top: 28px;
  padding: 34px 28px;
  padding-bottom: 10px;
  background: linear-gradient(135deg, #031431, #04285a);
  color: #cfe0ff;
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 26px;
  max-width: 1280px;
  margin: 0 auto;
}

.footer-inner h1,
.footer-inner h2,
.footer-inner h3,
.footer-inner h4,
.footer-inner h5,
.footer-inner h6,
.footer-widget-title {
  margin: 0 0 12px;
  color: #fff;
}

.footer-inner p,
.footer-inner a,
.footer-inner li {
  color: #aebfe2;
  font-size: 13px;
}

.footer-inner ul,
.footer-links {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-widget {
  min-width: 0;
}

.footer-widget img {
  max-width: 100%;
  height: auto;
}

.footer-copy {
  max-width: 1280px;
  margin: 0px auto 0;
  padding-top: 10px;
  border-top: 1px solid rgba(223, 232, 247, 0.18);
  color: #aebfe2;
  font-size: 13px;
  text-align: center;
}

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(5, 16, 40, 0.48);
  backdrop-filter: blur(4px);
}

.sidebar-backdrop[hidden] {
  display: none;
}

.article-layout,
.archive-layout {
  align-items: start;
}

.article-card,
.archive-hero,
.empty-state {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.article-hero,
.page-hero,
.archive-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 20%, rgba(21, 200, 255, 0.35), transparent 22%),
    radial-gradient(circle at 15% 82%, rgba(10, 101, 255, 0.26), transparent 28%),
    linear-gradient(135deg, #061946, #08358f 54%, #2a13a1);
  color: #fff;
}

.article-hero::after,
.page-hero::after,
.archive-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 42px, rgba(255, 255, 255, 0.045) 43px 44px);
}

.article-hero-content,
.page-hero,
.archive-hero > * {
  position: relative;
  z-index: 1;
}

.article-hero-content,
.page-hero {
  padding: 34px 38px;
}

.article-hero h1,
.page-hero h1,
.archive-hero h1 {
  max-width: 860px;
  margin: 16px 0 12px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
  letter-spacing: 0;
}

.page-hero p,
.archive-hero p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.breadcrumb-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  font-weight: 750;
}

.breadcrumb-line a {
  color: #fff;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 700;
}

.article-meta > span,
.article-meta a {
  display: inline-flex;
  align-items: center;
}

.article-meta > span {
  gap: 5px;
  white-space: nowrap;
}

.article-meta .meta-author {
  gap: 7px;
}

.ai-disclosure-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  margin-top: 0;
  padding: 6px 10px;
  border: 1px solid rgba(10, 101, 255, 0.22);
  border-radius: 999px;
  background: #edf5ff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.article-meta .ai-disclosure-badge {
  margin-top: 0;
}

.article-meta .meta-avatar {
  flex: 0 0 auto;
  margin-right: 0;
}

.article-featured {
  margin: 0;
  background: #eaf2ff;
}

.article-featured img {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
}

.article-body {
  padding: 28px;
}

.entry-content {
  min-width: 0;
  color: var(--text);
  font-size: 17px;
  line-height: 1.78;
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  color: var(--text);
  line-height: 1.28;
}

.entry-content a {
  color: var(--blue);
  font-weight: 750;
}

.entry-content blockquote {
  margin: 24px 0;
  padding: 18px 20px;
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--muted);
}

.entry-content pre,
.entry-content code {
  border-radius: 8px;
  background: #071b3a;
  color: #eaf2ff;
}

.entry-content pre {
  overflow-x: auto;
  padding: 18px;
}

.entry-content code {
  padding: 2px 6px;
}

.entry-content pre code {
  padding: 0;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: var(--radius);
}

.entry-content th,
.entry-content td {
  padding: 12px;
  border: 1px solid var(--line);
}

.entry-content th {
  background: var(--surface-soft);
}

.article-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 0 28px 28px;
}

.article-footer-actions {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  justify-content: end;
  gap: 10px;
}

.article-ai-disclosure {
  display: flex;
  justify-content: flex-start;
  min-width: 0;
}

.article-footer-actions .share-actions {
  justify-content: flex-end;
}

.share-actions {
  display: flex;
  gap: 8px;
}

.share-actions a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: #edf5ff;
  color: var(--blue);
}

.author-box {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 28px rgba(18, 54, 116, 0.07);
}

.author-box-content {
  display: grid;
  gap: 14px;
}

.author-box-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.author-box-main {
  min-width: 0;
  flex: 1 1 auto;
}

.author-box-avatar img {
  width: 76px;
  height: 76px;
  border-radius: 999px;
  object-fit: cover;
  box-shadow: 0 0 0 5px #edf5ff;
}

.author-box-label {
  display: inline-flex;
  margin-bottom: 3px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.author-box h2 {
  margin: 0 0 6px;
  font-size: 20px;
  line-height: 1.25;
}

.author-box-role,
.archive-author-role {
  display: block;
  margin: -4px 0 0 !important;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
}

.archive-author-profile {
  display: grid;
  gap: 18px;
  align-items: start;
}

.archive-author-summary {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  width: 100%;
}

.archive-author-avatar img {
  width: 84px;
  height: 84px;
  border-radius: 999px;
  object-fit: cover;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.16);
}

.author-hero .breadcrumb-line {
  margin-bottom: 0;
}

.author-hero h1 {
  margin: 0 0 8px;
}

.author-hero {
  display: block;
}

.author-hero .archive-author-profile {
  width: 100%;
}

.archive-author-detail {
  max-width: none;
  width: 100%;
}

.archive-author-detail p {
  max-width: none;
}

.archive-author-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
}

.archive-author-post-count {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.author-box p {
  max-width: none;
  margin: 0;
  color: var(--muted);
}

.author-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 0;
}

.author-socials a {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #edf5ff;
  color: var(--blue);
}

.author-socials a:hover {
  background: var(--blue);
  color: #fff;
}

.archive-author-socials {
  margin-top: 0;
}

.archive-author-socials a {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.archive-author-socials a:hover {
  background: #fff;
  color: var(--blue);
}

.cards-grid-compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.page-card .entry-content {
  padding: 30px 38px 38px;
}

.archive-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 38px;
}

.archive-stat {
  display: grid;
  place-items: center;
  min-width: 132px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.archive-stat i {
  margin-bottom: 8px;
  font-size: 26px;
}

.archive-stat strong {
  font-size: 32px;
  line-height: 1;
}

.archive-stat span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 700;
}

.archive-grid {
  display: grid;
  gap: 14px;
}

.archive-card {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 28px rgba(18, 54, 116, 0.07);
}

.archive-thumb {
  display: grid;
  place-items: center;
  min-height: 180px;
  background: linear-gradient(135deg, #0a65ff, #061a4f 62%, #5b28ff);
  color: rgba(255, 255, 255, 0.9);
  font-size: 42px;
}

.archive-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.archive-card-body {
  padding: 18px;
}

.post-kicker {
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.archive-card h3 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.26;
}

.archive-card p {
  margin: 0 0 14px;
  color: var(--muted);
}

.pagination-wrap .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.pagination-wrap .page-numbers {
  display: grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-weight: 700;
}

.pagination-wrap .current {
  background: var(--blue);
  color: #fff;
}

.empty-state {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 48px 28px;
  text-align: center;
}

.empty-state > i {
  color: var(--blue);
  font-size: 44px;
}

.empty-state h2,
.empty-state p {
  margin: 0;
}

.empty-state p {
  max-width: 480px;
  color: var(--muted);
}

.empty-state-compact {
  padding: 24px 18px;
  box-shadow: none;
}

.empty-state-compact > i {
  font-size: 28px;
}

.search-empty-form {
  width: min(100%, 520px);
}

body.theme-dark .topic-card,
body.theme-dark .post-card,
body.theme-dark .guide-card,
body.theme-dark .compare-card,
body.theme-dark .tool-card,
body.theme-dark .product-card,
body.theme-dark .mini-card,
body.theme-dark .video-card,
body.theme-dark .expert-card,
body.theme-dark .faq-card,
body.theme-dark .sidebar-box,
body.theme-dark .article-card,
body.theme-dark .page-card,
body.theme-dark .author-box,
body.theme-dark .archive-card,
body.theme-dark .empty-state,
body.theme-dark .comment-body {
  background: var(--surface);
  border-color: var(--line);
  box-shadow: var(--shadow);
}

body.theme-dark .search-form,
body.theme-dark .tag-cloud a,
body.theme-dark .download,
body.theme-dark .topic-icon,
body.theme-dark .tool-icon,
body.theme-dark .product-icon,
body.theme-dark .author-socials a,
body.theme-dark .category-list .count,
body.theme-dark .pagination-wrap .page-numbers {
  background: var(--surface-soft);
  color: var(--text);
}

body.theme-dark .card-body p,
body.theme-dark .archive-card p,
body.theme-dark .author-box p,
body.theme-dark .meta,
body.theme-dark .popular-content span,
body.theme-dark .side-newsletter p {
  color: var(--muted);
}

body.theme-dark .icon-button.theme-toggle {
  background: var(--blue);
  color: #fff;
}

body.theme-dark .ai-disclosure-badge {
  border-color: rgba(79, 140, 255, 0.38);
  background: rgba(79, 140, 255, 0.14);
  color: #cfe0ff;
}

body.theme-dark .entry-content,
body.theme-dark .entry-content p,
body.theme-dark .entry-content li,
body.theme-dark .entry-content td {
  color: var(--text);
}

body.theme-dark .entry-content h1,
body.theme-dark .entry-content h2,
body.theme-dark .entry-content h3,
body.theme-dark .entry-content h4,
body.theme-dark .entry-content h5,
body.theme-dark .entry-content h6,
body.theme-dark .entry-content strong,
body.theme-dark .entry-content b {
  color: #fff;
}

body.theme-dark .entry-content a {
  color: #79a9ff;
}

body.theme-dark .entry-content blockquote,
body.theme-dark .entry-content th {
  background: var(--surface-soft);
  color: var(--text);
}

body.theme-dark .entry-content table {
  background: var(--surface);
}
/*
.comments-area,
.comment-respond {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 28px rgba(18, 54, 116, 0.07);
}

.comments-area {
  padding: 24px;
}

.comment-respond {
  padding: 24px;
}

.comment-reply-title,
.comments-title,
#comments {
  position: relative;
  margin: 0 0 18px;
  padding-left: 12px;
  color: var(--text);
  font-size: 20px;
  line-height: 1.25;
}

.comment-reply-title::before,
.comments-title::before,
#comments::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 4px;
  height: 22px;
  border-radius: 999px;
  background: var(--blue);
}

.comment-reply-title small {
  margin-left: 8px;
  font-size: 12px;
}

.comment-reply-title small a {
  color: var(--red);
  font-weight: 700;
}

.comment-form {
  display: grid;
  gap: 14px;
}

.comment-form p {
  margin: 0;
}

.comment-form label {
  display: block;
  margin-bottom: 7px;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.comment-form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font: inherit;
  outline: 0;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.comment-form textarea {
  min-height: 148px;
  padding: 13px 14px;
  resize: vertical;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
  height: 42px;
  padding: 0 12px;
}

.comment-form textarea:focus,
.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus {
  border-color: rgba(10, 101, 255, 0.62);
  box-shadow: 0 0 0 4px rgba(10, 101, 255, 0.10);
}

.logged-in-as,
.comment-notes,
.required-field-message {
  color: var(--muted);
  font-size: 13px;
}

.logged-in-as a,
.comment-notes a {
  color: var(--blue);
  font-weight: 700;
}

.comment-form .required {
  color: var(--red);
}

.form-submit {
  display: flex;
  justify-content: flex-end;
}

.comment-form .submit {
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  padding: 0 18px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(10, 101, 255, 0.20);
}

.comment-form .submit:hover {
  background: var(--blue-dark);
}

.comment-list,
.commentlist {
  display: grid;
  gap: 14px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.comment-list .comment-body,
.commentlist .comment-body {
  position: relative;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: none;
}

.commentlist li {
  list-style: none;
}

.commentlist .children {
  position: relative;
  display: grid;
  gap: 10px;
  margin: 10px 0 0 18px;
  padding: 0 0 0 14px;
  border-left: 1px solid #dbe7fb;
}

.commentlist .children .comment-body {
  background: #f8fbff;
  box-shadow: none;
}

.commentlist .children .comment-body::before {
  content: "";
  position: absolute;
  left: -15px;
  top: 25px;
  width: 14px;
  height: 1px;
  background: #e4edfb;
}

.comment-body .comment-meta {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  column-gap: 12px;
  align-items: start;
}

.comment-author {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 700;
}

.comment-author.vcard {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  column-gap: 12px;
  row-gap: 2px;
}

.comment-author.vcard .fn {
  align-self: center;
}

.comment-author img {
  grid-row: 1 / span 2;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  box-shadow: none;
}

.comment-meta {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
}

.comment-meta footer,
footer.comment-meta {
  display: grid;
  gap: 5px;
  margin: 0 0 10px;
}

.comment-author .fn,
.comment-author .fn a {
  color: var(--text);
  font-weight: 700;
}

.comment-author .says {
  display: none;
  color: var(--muted);
  font-size: 12px;
}

.comment-metadata {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  grid-column: 2;
  margin: -14px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.comment-metadata a,
.edit-link a {
  color: var(--muted);
}

.edit-link {
  margin-left: 0;
}

.edit-link a {
  color: var(--blue);
  font-weight: 700;
}

.comment-content {
  margin-left: 52px;
  color: #203253;
  font-size: 14px;
  line-height: 1.58;
}

.comment-content p {
  margin: 0 0 10px;
}

.comment-content p:last-child {
  margin-bottom: 0;
}

.reply {
  display: flex;
  justify-content: flex-start;
  margin: 10px 0 0 52px;
}

.comment-reply-link {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #edf5ff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.comment-reply-link:hover {
  background: var(--blue);
  color: #fff;
}
  */

@media (max-width: 1180px) {
  .content-wrap {
    grid-template-columns: 1fr;
  }

  .right-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    position: static;
  }

  .topic-grid,
  .products,
  .tools,
  .video-grid,
  .experts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  body.admin-bar .topbar {
    top: 46px;
  }

  body.admin-bar .left-rail {
    top: 46px;
    height: calc(100vh - 46px);
  }

  .site-shell {
    display: block;
  }

  .left-rail {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 90;
    width: 188px;
    max-width: calc(100vw - 24px);
    height: 100dvh;
    transform: translate3d(-100%, 0, 0);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.24s ease;
    box-shadow: 22px 0 46px rgba(6, 26, 79, 0.18);
  }

  .left-rail.is-open {
    transform: translate3d(0, 0, 0);
    visibility: visible;
    pointer-events: auto;
  }

  body.sidebar-open {
    overflow: hidden;
  }

  .topbar {
    position: sticky;
    grid-template-columns: auto 1fr;
    height: auto;
    padding: 12px 14px;
  }

  .topbar-mobile-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
  }

 /* .topbar-mobile-brand .brand-mark {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
  }*/

  .topbar-mobile-brand .brand-title {
    font-size: 18px;
  }

  .topbar-mobile-brand .brand-subtitle {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .top-actions {
    justify-self: end;
    gap: 8px;
  }

  .mobile-menu-button {
    display: grid;
  }

  .login-button {
    display: none;
  }

  .search-form {
    display: none;
    grid-column: 1 / -1;
    order: 3;
    height: 42px;
    max-height: none;
    margin-top: 0;
    padding-top: 0;
    padding-bottom: 0;
    overflow: hidden;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    transform-origin: right center;
  }

  body.mobile-search-open .search-form {
    display: flex;
    height: 42px;
    margin-top: 2px;
    padding-top: 0;
    padding-bottom: 0;
  }

  .mobile-search-button {
    display: grid;
  }

  body.mobile-search-open .mobile-search-button {
    background: var(--blue);
    color: #fff;
  }

  .content-wrap {
    padding: 18px 10px 0;
  }

  .cards-grid,
  .guides-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-row,
  .split-sections,
  .newsletter,
  .footer-inner,
  .archive-card {
    grid-template-columns: 1fr;
  }

  .archive-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .archive-author-summary {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .archive-author-avatar img {
    width: 72px;
    height: 72px;
  }

  .author-hero .author-stat {
    display: none;
  }

  .archive-author-post-count {
    display: inline-flex;
  }

  .right-sidebar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .topic-grid,
  .products,
  .tools,
  .video-grid,
  .experts,
  .compare-grid,
  .faq-grid,
  .featured-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cards-grid,
  .guides-grid,
  .cards-grid-compact {
    grid-template-columns: 1fr;
  }

  .article-hero-content,
  .page-hero,
  .archive-hero {
    padding: 26px 20px;
  }

  .article-card{
      border-radius: 0; 
   border:0;
    box-shadow: unset;
    background: transparent
  }

  .breadcrumb-line {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    white-space: nowrap;
  }

  .breadcrumb-line::-webkit-scrollbar {
    display: none;
  }

  .breadcrumb-line > * {
    flex: 0 0 auto;
  }

  .article-body,
  .page-card .entry-content {
    padding: 15px 0;

  }

  .article-footer {
    align-items: flex-start;
    grid-template-columns: 1fr;
    padding: 0 22px 22px;
  }

  .article-footer-actions {
    grid-template-columns: 1fr;
    justify-content: start;
    width: 100%;
    min-width: 0;
  }

  .article-footer-actions .share-actions {
    justify-content: flex-start;
  }

  .author-box-head {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .author-box-main {
    flex-basis: calc(100% - 90px);
  }

  .commentlist .children {
    margin-left: 8px;
    padding-left: 12px;
  }

  .comment-metadata,
  .comment-content {
    margin-left: 0;
  }

  .reply {
    margin-left: 0;
    justify-content: flex-start;
  }

  .comment-body .comment-meta,
  .comment-author.vcard {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .comment-author img {
    width: 36px;
    height: 36px;
  }

  .hero-content {
    padding: 28px 22px;
  }

  .hero::after {
    opacity: 0.28;
  }

  .newsletter form,
  .newsletter-form {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }

  .newsletter button,
  .newsletter-form button {
    padding: 0 14px;
  }
}
