.archiveTitle {
  margin: 0 0 24px;
  padding: 0;
  border-bottom: 1px solid #ddd;
}

.archiveTitle a {
  font-size: 26px;
  font-weight: 700;
  font-family: "Oswald", sans-serif;
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.3s ease;
  background: linear-gradient(90deg, #861023, #c94f7c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.archiveTitle a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, #861023, #c94f7c);
  transition: width 0.3s ease;
}

.archiveTitle a:hover::after {
  width: 100%;
}

.archive-top h1,
.archiveTitle h1 {
  font-size: 26px;
  font-weight: 700;
  font-family: "Oswald", sans-serif;
  margin: 0;
  text-transform: uppercase;
  position: relative;
  display: flex;
  align-items: center;
  padding-bottom: 4px;
  background: linear-gradient(90deg, #861023, #c94f7c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.archive-top h1::after,
.archiveTitle h1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, #861023, #c94f7c);
  transition: width 0.3s ease;
}

.search-form {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    box-shadow: none;
    background: #fff;
    overflow: visible;
    padding-right: 4px;
    transition: border-color .2s, box-shadow .2s;
}

.search-form:focus-within {
    border-color: #860B0B;
    box-shadow: 0 0 0 3px rgba(198,40,40,.1);
}

.search-icon-left {
    flex-shrink: 0;
    margin-left: 12px;
    display: block;
}

.search-field {
    flex: 1;
    padding: 8px 8px 8px 8px;
    height: 38px;
    border: none;
    border-radius: 0;
    box-shadow: none;
    font-family: "Roboto", sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #374151;
    background: #fff;
}

.search-field:focus {
    outline: none;
}

.search-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 32px;
    padding: 0;
    margin: 3px 0;
    background: #860B0B;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s;
    flex-shrink: 0;
}

.search-submit:hover {
    background: #b71c1c;
}

.search-submit img {
    filter: brightness(0) invert(1);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

/* Ad block trong .results-grid phải span TOÀN BỘ row, không chen vào 1 ô grid. */
.results-grid > .archive-ad-center {
    grid-column: 1 / -1;
    text-align: center;
    margin: 8px 0;
}

.results-grid > .archive-ad-center .mine-banner {
    margin: 0 auto;
}

.result-card {
    background: white;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    animation: fadeIn 0.5s ease-in-out;
}

.result-card:hover {
    transform: none;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.card-thumbnail img {
    width: 100%;
    height: auto;       
    object-fit: contain; 
    display: block;
}

.card-content {
    padding: 5px;
}

.card-content h2 {
    font-size: 1.2em;
    margin: 0 0 10px;
}

.card-title a {
font-family : "Oswald", sans-serif;
font-weight : 500;
font-size : 24px;
line-height : 1.5;
text-decoration : none;
color : #004175;
}

.card-title {
margin-bottom : 5px;
}

.card-title a:hover {
color : #d90202;
}

.search-form-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 10px 0;
}

.search-form-wrapper .search-form {
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 auto;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    box-shadow: none;
    background: #fff;
    overflow: visible;
    padding-right: 4px;
}

.search-form-wrapper .search-field {
    flex: 1 1 auto;
    width: 100%;
    max-width: none;
    border: none;
    outline: none;
    font-family: "Roboto", sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #374151;
    background: #fff;
}

.search-form-wrapper .search-submit {
    flex: 0 0 36px;
    width: 36px;
    height: 32px;
    padding: 0;
    margin: 3px 0;
    border: none;
    background: #860B0B;
    color: #fff;
    border-radius: 6px;
    transition: background 0.15s;
}

.search-form-wrapper .search-submit:hover {
    background: #b71c1c;
}

.clear-search {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: url(./img/hand.png), pointer;
    font-size: 16px;
    color: #666;
	display: none;
    z-index: 10;
}

.clear-search:hover {
    color: #000;
}

.search-input-wrapper {
    position: relative;
	display: flex;
	align-items: center;
	flex: 1 1 auto;
	width: 100%;
	min-width: 0;
}

.search-field::placeholder {
    font-weight: 400;
    color: #9ca3af;
}

.archive-sorting-wrapper {
    display: flex;
    justify-content: flex-end;
    margin: 20px 0;
	padding-left: 0;
}

.archive-sorting-form {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f9fafb;
    padding: 10px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    font-family: system-ui, sans-serif;
    transition: all 0.25s ease-in-out;
}

.archive-sorting-form:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.archive-sorting-label {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.archive-sorting-select {
    font-size: 14px;
    padding: 6px 10px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: white;
    cursor: url(./img/hand.png), pointer;
    transition: border-color 0.2s, box-shadow 0.2s, color 0.2s;
    color: #111827;
    font-weight: 600;
}

.archive-sorting-select:hover {
    border-color: #9ca3af;
}

.archive-sorting-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.2);
    outline: none;
}

.archive-sorting-select option {
    font-weight: normal;
    color: #374151;
    padding: 8px 12px;
    cursor: url(./img/hand.png), pointer;
    border-bottom: 1px solid #eee;
}

.archive-sorting-select option:last-child {
    border-bottom: none;
}

.archive-sorting-select option:hover {
    background-color: #f3f4f6;
}

.archive-sorting-select option:checked,
.archive-sorting-select option[selected] {
    color: #111827;
    font-weight: 600;
}

.archive-search .search-form {
    max-width: 600px;
    margin: 0 auto;
}

.mod-type,
.result-card .mod-type,
.archive-2025 .result-card .mod-type {
    margin-top: 10px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.archive-2025 .result-card .mod-type {
    margin-top: 8px;
}

.mod-type-label,
.result-card .mod-type-label,
.archive-2025 .result-card .mod-type-label {
    font-family: "Roboto Condensed", sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: #d4a017;
    margin-right: 4px;
    display: flex;
    align-items: center;
    line-height: 1.5;
}

.mod-type-btn,
.result-card .mod-type-btn,
.archive-2025 .result-card .mod-type-btn {
    background: transparent;
    border: 1px solid #b80707;
    border-radius: 5px;
    padding: 3px 8px;
    cursor: url(./img/hand.png), pointer;
    font-family: "Roboto Condensed", sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #b80707;
    line-height: 1.5;
}

.mod-type-btn a {
    color: #b80707;
    font-size: 14px;
    font-weight: 600;
}

.mod-type-btn:hover,
.archive-2025 .result-card .mod-type-btn:hover {
    background: #b80707;
    color: #fff;
}

.mod-type-btn:hover a,
.archive-2025 .result-card .mod-type-btn:hover a {
    color: #fff;
}

.map-type,
.result-card .map-type,
.archive-2025 .result-card .map-type {
    margin-top: 10px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.archive-2025 .result-card .map-type {
    margin-top: 8px;
}

.map-type-label,
.result-card .map-type-label,
.archive-2025 .result-card .map-type-label {
    font-family: "Roboto Condensed", sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: #d4a017;
    margin-right: 4px;
    display: flex;
    align-items: center;
    line-height: 1.5;
}

.map-type-btn,
.result-card .map-type-btn,
.archive-2025 .result-card .map-type-btn {
    background: transparent;
    border: 1px solid #2e7d32;
    border-radius: 5px;
    padding: 3px 8px;
    cursor: url(./img/hand.png), pointer;
    font-family: "Roboto Condensed", sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #2e7d32;
    line-height: 1.5;
    transition: all 0.2s ease-in-out;
}

.map-type-btn a {
    color: #2e7d32;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.map-type-btn:hover,
.archive-2025 .result-card .map-type-btn:hover {
    background: #2e7d32;
    color: #fff;
}

.map-type-btn:hover a,
.archive-2025 .result-card .map-type-btn:hover a {
    color: #fff;
}

.resource-pack-type,
.result-card .resource-pack-type,
.archive-2025 .result-card .resource-pack-type {
    margin-top: 10px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.archive-2025 .result-card .resource-pack-type {
    margin-top: 8px;
}

.resource-pack-type-label,
.result-card .resource-pack-type-label,
.archive-2025 .result-card .resource-pack-type-label {
    font-family: "Roboto Condensed", sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: #d4a017;
    margin-right: 4px;
    display: flex;
    align-items: center;
    line-height: 1.5;
}

.resource-pack-type-btn,
.result-card .resource-pack-type-btn,
.archive-2025 .result-card .resource-pack-type-btn {
    background: transparent;
    border: 1px solid #1565c0;
    border-radius: 5px;
    padding: 3px 8px;
    cursor: url(./img/hand.png), pointer;
    font-family: "Roboto Condensed", sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #1565c0;
    line-height: 1.5;
    transition: all 0.2s ease-in-out;
}

.resource-pack-type-btn a {
    color: #1565c0;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.resource-pack-type-btn:hover,
.archive-2025 .result-card .resource-pack-type-btn:hover {
    background: #1565c0;
    color: #fff;
}

.resource-pack-type-btn:hover a,
.archive-2025 .result-card .resource-pack-type-btn:hover a {
    color: #fff;
}

.plugin-server-platforms,
.result-card .plugin-server-platforms,
.archive-2025 .result-card .plugin-server-platforms {
    margin-top: 10px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.archive-2025 .result-card .plugin-server-platforms {
    margin-top: 8px;
}

.plugin-server-platforms-label,
.result-card .plugin-server-platforms-label,
.archive-2025 .result-card .plugin-server-platforms-label {
    font-family: "Roboto Condensed", sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: #d4a017;
    margin-right: 4px;
    display: flex;
    align-items: center;
    line-height: 1.5;
}

.plugin-server-platforms-btn,
.result-card .plugin-server-platforms-btn,
.archive-2025 .result-card .plugin-server-platforms-btn {
    background: transparent;
    border: 1px solid #D35400;
    border-radius: 5px;
    padding: 3px 8px;
    cursor: url(./img/hand.png), pointer;
    font-family: "Roboto Condensed", sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #D35400;
    line-height: 1.5;
    transition: all 0.2s ease-in-out;
}

.plugin-server-platforms-btn a {
    color: #D35400;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.plugin-server-platforms-btn:hover,
.archive-2025 .result-card .plugin-server-platforms-btn:hover {
    background: #D35400;
    color: #fff;
}

.plugin-server-platforms-btn:hover a,
.archive-2025 .result-card .plugin-server-platforms-btn:hover a {
    color: #fff;
}

.client-types,
.result-card .client-types,
.archive-2025 .result-card .client-types {
    margin-top: 10px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.archive-2025 .result-card .client-types {
    margin-top: 8px;
}

.client-types-label,
.result-card .client-types-label,
.archive-2025 .result-card .client-types-label {
    font-family: "Roboto Condensed", sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: #d4a017;
    margin-right: 4px;
    display: flex;
    align-items: center;
    line-height: 1.5;
}

.client-types-label a,
.result-card .client-types-label a,
.archive-2025 .result-card .client-types-label a {
    color: #7a5c0c;
    text-decoration: none;
    font-weight: 700;
}

.client-types-btn,
.result-card .client-types-btn,
.archive-2025 .result-card .client-types-btn {
    background: transparent;
    border: 1px solid #7a5c0c;
    border-radius: 5px;
    padding: 3px 8px;
    cursor: url(./img/hand.png), pointer;
    font-family: "Roboto Condensed", sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #7a5c0c;
    line-height: 1.5;
    transition: all 0.2s ease-in-out;
}

.client-types-btn a {
    color: #7a5c0c;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.client-types-btn:hover,
.archive-2025 .result-card .client-types-btn:hover {
    background: #7a5c0c;
    color: #fff;
}

.client-types-btn:hover a,
.archive-2025 .result-card .client-types-btn:hover a {
    color: #fff;
}

.archive-search--container {
  display: inline-flex;
  align-items: center;
  position: relative;
  overflow: visible;
  gap: 8px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  transition:
    width 360ms cubic-bezier(.2, .8, .2, 1),
    box-shadow 200ms ease;
}

.archive-search-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  padding: 2px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.archive-search-toggle img {
  display: block;
  width: 100%;
  height: auto;
}

.archive-search-panel {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  opacity: 0;
  transform: translateX(6px);
  pointer-events: none;
  transition:
    opacity 280ms ease,
    transform 320ms cubic-bezier(.2, .8, .2, 1);
}

.archive-search-form .search-input-wrapper {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0;
  box-sizing: border-box;
}

.archive-search-form .search-field {
  width: 100%;
  border: 0;
  outline: none;
  padding: 8px 8px 8px 8px;
  font-family: "Roboto", sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: #374151;
  background: #fff;
}

.archive-search-form .search-submit {
    flex: 0 0 36px;
    width: 36px;
    height: 32px;
    padding: 0;
    margin: 3px 4px 3px 0;
    background: #860B0B;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.archive-search-form .search-submit:hover {
    background: #b71c1c;
}

.archive-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.google-search-box {
  margin: 30px 0;
  padding: 20px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f9f9f9, #ffffff);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  border: 1px solid #eee;
}

.google-logo-big {
  width: 160px;
  height: auto;
  margin: 0 auto 15px;
  display: block;
}

.google-desc {
  font-size: 15px;
  color: #555;
  margin-bottom: 20px;
  line-height: 1.4;
  text-align: center;
}

/* === Archive mobile: sắp xếp thứ tự bên trong card-content === */
/* Desktop không thay đổi. Chỉ áp dụng khi < 992px */
@media (max-width: 991px) {
    .archive-2025 .result-card .card-content {
        display: flex;
        flex-direction: column;
    }
    /* Thứ tự: title → excerpt → mod/map/type tags */
}

.wcat-card-title {
    margin: 0;
    font-family: "Oswald", sans-serif;
    font-weight: 500;          /* matches legacy .card-title weight */
    font-size: 19px;           /* baseline for card vertical (between hero 24 and compact 17) */
    line-height: 1.3;
    /* No line-clamp — full title always shown (per user request). */
}

/* Force font on <a> too — some legacy `a` rules elsewhere set font-family,
   which would override the inherited Oswald from the parent h3. */
.wcat-card-title a {
    font-family: "Oswald", sans-serif;
    font-weight: inherit;
    font-size: inherit;
    color: var(--wcat-blue);
    text-decoration: none;
}

.wcat-card-title a:hover { color: var(--wcat-red); }

.wcat-hero .wcat-card-title {
    font-size: 24px;          /* matches legacy custom-grid card-title */
    font-weight: 500;         /* Oswald 500 like legacy */
    line-height: 1.25;
}

.wcat-compact .wcat-card-title {
    font-size: 17px;            /* slightly smaller than card vertical (smaller card) */
    line-height: 1.3;
    font-weight: 500;           /* unify with legacy weight 500 */
}

.wcat-layout-split-2col .wcat-compact .wcat-card-title {
    font-size: 19px;          /* matches card vertical baseline (split cards are wider) */
    line-height: 1.3;
    font-weight: 500;         /* unify with legacy */
}

@media (max-width: 767px) {
  /* h1 ép xuống dòng riêng, đẩy count + container xuống row 2 */
  .archive-top h1,
  .archiveTitle a {
    flex: 0 0 100%;
    font-size: 22px;
  }
  /* Closed: button 30px ngay sau count, không margin auto — chừa chỗ panel xổ phải */
  .archive-search--container {
    flex: 0 0 30px;
  }
  /* Open: container grow tới hết row 2, panel xổ ra bên phải nút.
     Override width:100% từ rule mobile cũ ở line 4874 (chính nó gây wrap dòng). */
  .archive-search--container.is-open {
    flex: 1 1 auto;
    width: auto !important;
  }
  /* Panel transition siêu nhẹ: chỉ opacity, bỏ transform, 120ms linear → GPU yếu vẫn mượt */
  .archive-search-panel {
    transform: none !important;
    transition: opacity 120ms linear !important;
  }
}

@media (prefers-color-scheme: dark) {
  .result-card {
        background: #333;
        color: white;
    }
}

@media (max-width: 600px) {
  .results-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991px) {
  .clear-search {
        right: 8px;
    }
}

@media (min-width: 992px) {
  .results-grid {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
  .result-card {
        display: grid;
        grid-template-columns: minmax(200px, 300px) 1fr minmax(140px, 180px);
        gap: 10px;
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        padding: 8px;
    }
  .result-card .card-thumbnail img {
        width: 100%;
        height: auto;
        object-fit: contain;
        border-radius: 5px;
        display: block;
    }
  .result-card .card-content {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
  .result-card .card-title {
        margin: 0;
    }
  .result-card .card-title a {
		font-family : "Oswald", sans-serif;
		font-weight : 500;
		font-size : 22px;
        color: #004175;
        text-decoration: none;
    }
  .result-card .card-title a:hover {
        color: #d90202;
    }
  .result-card .excerpt {
        color: #333;
        font-weight: 500;
        font-family: "Roboto", sans-serif;
        font-size: 14px;
        margin: 0;
    }
  .result-card .post_all_info--archive,
    .result-card .post_all_info--widget {
        display: flex;
        flex-direction: column;
        gap: 6px;
        font-family: "Roboto Condensed", sans-serif;
        font-size: 14px;
    }
  /* Widget: padding-left để căn lề sidebar */
    .result-card .post_all_info--widget > * {
        display: flex;
        align-items: center;
        gap: 6px;
        padding-left: 30px;
    }
  /* Archive: không padding-left, căn trái tuyệt đối */
    .result-card .post_all_info--archive > * {
        display: flex;
        align-items: center;
        gap: 6px;
        padding-left: 0;
    }
  .result-card .post_view {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 6px;
    }
  .result-card .view-count {
        font-size: 26px;
        font-weight: 700;
        color: #860B0B;
    }
  .result-card .view-label {
        font-size: 14px;
        color: #860B0B;
    }
  .result-card .post_comments {
        color: #d4a017;
        font-weight: 700;
        text-decoration: none;
    }
  .result-card .post_comments:hover {
        color: #d90202;
        text-decoration: underline;
    }
  .result-card .date_time,
    .result-card .post_author {
        color: #535353;
    }
  .result-card .post_view img,
    .result-card .post_comments img,
    .result-card .date_time img,
    .result-card .post_author img {
        width: 24px;
        height: 24px;
        margin-right: 6px;
        flex-shrink: 0;
    }
}

@media (max-width: 991px) {
  .results-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
  .result-card {
        display: flex;
        flex-direction: column;
        gap: 2px;
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        padding: 12px 12px 14px;
    }
  .result-card .card-thumbnail img {
        width: 100%;
        height: auto;
        object-fit: contain;
        border-radius: 5px;
    }
  .result-card .card-content {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }
  /* Archive mobile: thumbnail → title+excerpt → views/date → tags */
    .archive-2025 .result-card .card-thumbnail         { order: 1; }
  .archive-2025 .result-card .card-content           { order: 2; margin-bottom: 0; }
  .archive-2025 .result-card .post_all_info--archive { order: 3; margin-bottom: 0; }
  .archive-2025 .result-card .card-tags              { order: 4; }
  .archive-2025 .result-card .post_all_info--archive {
        margin-top: 0;
        padding-bottom: 0;
    }
  .result-card .post_all_info--archive,
    .result-card .post_all_info--widget {
        display: flex;
        flex-direction: column;
        gap: 3px;
        margin-top: 0;
        padding-bottom: 0;
    }
  .result-card .post_all_info--archive > .info-row,
    .result-card .post_all_info--widget > .d-flex {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 4px 8px;
    }
  .result-card .post_all_info--archive > .info-row > *,
    .result-card .post_all_info--widget > .d-flex > * {
        flex: 1 1 auto;
        min-width: 0;
        overflow: visible;
        text-overflow: unset;
        white-space: normal;
        padding-left: 0;
        margin-left: 0 !important;
    }
  .result-card .post_all_info--archive > .info-row img {
        width: 18px !important;
        height: 18px !important;
        margin-right: 4px !important;
    }
}

@media (min-width: 992px) {
  .result-card {
        display: flex;
        flex-direction: column;
        gap: 15px;
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        padding: 10px;
    }
  .result-card .card-thumbnail {
        width: 100%;
    }
  .result-card .card-thumbnail img {
        width: 100%;
        height: auto;
        object-fit: contain;
        border-radius: 5px;
        display: block;
    }
  .result-card .card-content {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
  .result-card .card-title {
        margin: 0;
    }
  .result-card .card-title a {
		font-family : "Oswald", sans-serif;
		font-weight : 500;
		font-size : 22px;
        color: #004175;
        text-decoration: none;
    }
  .result-card .card-title a:hover {
        color: #d90202;
    }
  /* Widget desktop: 2 cột đều nhau */
    .result-card .post_all_info--widget {
        display: flex;
        flex-direction: column;
        gap: 6px;
        font-family: "Roboto Condensed", sans-serif;
        font-size: 14px;
    }
  .result-card .post_all_info--widget > .d-flex {
        display: flex;
        align-items: center;
        gap: 0;
        padding-left: 0;
        width: 100%;
    }
  .result-card .post_all_info--widget > .d-flex > * {
        flex: 1 1 0;
        min-width: 0;
        display: flex;
        align-items: center;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
  .result-card .post_view {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 6px;
    }
  .result-card .view-count {
        font-size: 26px;
        font-weight: 700;
        color: #860B0B;
    }
  .result-card .view-label {
        font-size: 14px;
        font-weight: 400; 
        color: #860B0B;
    }
  .result-card .post_comments {
        color: #d4a017;
        font-weight: 700;
        text-decoration: none;
    }
  .result-card .post_comments:hover {
        color: #d90202;
        text-decoration: underline;
    }
  .result-card .date_time,
    .result-card .post_author {
        color: #535353;
    }
  .result-card .post_view img,
    .result-card .post_comments img,
    .result-card .date_time img,
    .result-card .post_author img {
        width: 24px;
        height: 24px;
        margin-right: 6px;
        flex-shrink: 0;
    }
  .result-card .excerpt {
        color: #333;
        font-weight: 500;
        font-family: "Roboto", sans-serif;
        font-size: 14px;
        margin: 0;
    }
  .results-grid.grid-post-2 {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
  .results-grid.grid-post-3 {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
  .results-grid.grid-post-4 {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
}

@media (max-width: 600px) {
  .result-card {
        padding: 5px;
    }
  .results-grid {
        gap: 8px;
    }
}

@media (min-width: 992px) {
  .archive-2025 .results-grid {
        display: flex;
        flex-direction: column;
        gap: 5px; 
    }
  .archive-2025 .result-card {
        display: grid;
        grid-template-columns: 300px 1fr minmax(110px, 140px);
        grid-template-rows: auto auto;
        /* row gap nhỏ giữa content/tags, col gap rộng cho thumbnail breathing */
        gap: 5px 18px;
        background: #fff;
        border-radius: 6px;
        padding: 8px;
        align-items: start;
    }
  .archive-2025 .result-card .card-thumbnail {
        grid-column: 1;
        grid-row: 1 / 3;
    }
  .archive-2025 .result-card .card-content {
        grid-column: 2;
        grid-row: 1;
        padding: 0;             /* override .card-content { padding:5px } để align với card-tags */
    }
  .archive-2025 .result-card .card-tags {
        grid-column: 2;
        grid-row: 2;
        padding: 0;
    }
  .archive-2025 .result-card .post_all_info--archive {
        grid-column: 3;
        grid-row: 1 / 3;
    }
  .archive-2025 .result-card:hover {
        transform: none;
    }
  .archive-2025 .result-card .card-thumbnail {
        width: 300px;
        align-self: start;
    }
  .archive-2025 .result-card .card-thumbnail img {
        width: 100%;
        height: auto;
        object-fit: contain;
        border-radius: 5px;
        display: block;
    }
  .archive-2025 .result-card .card-content {
        display: flex;
        flex-direction: column;
        gap: 8px;
        align-self: start;
        padding-top: 0;
    }
  .archive-2025 .result-card .card-tags {
        display: flex;
        flex-direction: column;
        gap: 6px;
        align-self: start;
        padding-top: 0;
    }
  .archive-2025 .result-card .card-title {
        margin: 0;
    }
  .archive-2025 .result-card .card-title h2 {
	margin: 0;
	padding: 0;
	line-height: 1.2;
        font-family: "Oswald", sans-serif;
        font-weight: 500;
        font-size: 22px;
        color: #004175;
    }
  .archive-2025 .result-card .card-title a {
		margin-top: 0;
        font-family: "Oswald", sans-serif;
        font-weight: 500;
        font-size: 22px;
        color: #004175;
        text-decoration: none;
    }
  .archive-2025 .result-card .card-title a:hover {
        color: #d90202;
    }
  .archive-2025 .result-card .excerpt {
        color: #333;
        font-weight: 500;
        font-family: "Roboto", sans-serif;
        font-size: 14px;
        margin: 0;
    }
  .archive-2025 .result-card .post_all_info--archive {
        display: flex;
        flex-direction: column;
        gap: 8px;
        font-family: "Roboto Condensed", sans-serif;
        font-size: 14px;
        align-self: start;
        align-items: flex-start;
    }
  /* Mỗi .info-row con xếp dọc → tổng 4 hàng, căn trái */
    .archive-2025 .result-card .post_all_info--archive > .info-row {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding-left: 0;
    }
  .archive-2025 .result-card .post_all_info--archive > .info-row > * {
        flex: none;
        white-space: normal;
        word-break: break-word;
    }
  .archive-2025 .result-card .post_view {
        display: flex;
        align-items: center;
        gap: 6px;
    }
  .archive-2025 .result-card .view-count {
        font-size: 26px;
        font-weight: 700;
        color: #860B0B;
    }
  .archive-2025 .result-card .view-label {
        font-size: 14px;
        font-weight: 400;
        color: #860B0B;
    }
  .archive-2025 .result-card .post_comments {
        color: #d4a017;
        font-weight: 700;
        text-decoration: none;
        display: flex;
        align-items: center;
        gap: 6px;
    }
  .archive-2025 .result-card .post_comments:hover {
        color: #d90202;
        text-decoration: underline;
    }
  .archive-2025 .result-card .date_time,
    .archive-2025 .result-card .post_author {
        color: #535353;
        display: flex;
        align-items: center;
        gap: 6px;
    }
  .archive-2025 .result-card .post_view img,
    .archive-2025 .result-card .post_comments img,
    .archive-2025 .result-card .date_time img,
    .archive-2025 .result-card .post_author img {
        width: 24px;
        height: 24px;
        margin-right: 6px;
        flex-shrink: 0;
    }
}

@media (max-width: 991px) {
  .search-field {
        width: 100%;
        padding: 8px 8px 8px 8px;
        border: none;
        border-radius: 0;
        font-family: "Roboto", sans-serif;
        font-size: 15px;
        font-weight: 400;
        color: #374151;
        outline: none;
        background: #fff;
    }
  .search-form {
        display: flex;
        align-items: center;
        gap: 0;
        border: 1px solid #d1d5db;
        border-radius: 8px;
        overflow: visible;
        padding-right: 4px;
    }
  .search-input-wrapper {
        flex-grow: 1;
        position: relative;
    }
  .search-submit {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 32px;
        padding: 0;
        margin: 3px 0;
        background: #860B0B;
        color: #fff;
        border: none;
        border-radius: 6px;
        cursor: url(./img/hand.png), pointer;
        flex-shrink: 0;
        transition: background 0.15s;
    }
  .search-submit:hover {
        background: #b71c1c;
    }
}

@media (max-width: 768px) {
  .archive-search--container.is-open {
    width: 100%;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .10);
  }
  .archive-search--container.is-open .archive-search-panel {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
  }
}

@media (min-width: 769px) {
  .archive-search--container {
    flex-shrink: 0;
  }
  .archive-search--container.is-open {
    flex: 1 1 auto;
    width: auto;
    box-shadow: 0 8px 26px rgba(0, 0, 0, .12);
  }
  .archive-search--container.is-open .archive-search-panel {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
    flex: 1 1 auto;
    min-width: 0;
  }
}

@media (max-width: 768px) {
  .archive-title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .archive-title-row h1 {
    font-size: 1.4rem;
    line-height: 1.3;
  }
  .archive-search--container {
    width: 24px;
    height: 24px;
  }
  .archive-search-toggle {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
  }
  .archive-search--container.is-open {
    width: 100%;
    max-width: 100%;
    box-shadow: 0 6px 18px rgba(0,0,0,.1);
  }
  .archive-search--container.is-open .archive-search-panel {
    opacity: 1 !important;
    transform: translateY(6px) !important;
    pointer-events: auto !important;
  }
}

@media (max-width: 480px) {
  .google-search-box input.gsc-input {
    width: 100%;
    box-sizing: border-box;
  }
}

@media (max-width: 767px) {
  .archive-2025 .result-card {
        gap: 2px;
        padding: 10px 10px 12px;
    }
  .archive-2025 .result-card .card-content {
        gap: 1px;
        margin-bottom: 0;
    }
  .archive-2025 .result-card .card-title {
        margin-bottom: 0;
    }
  .archive-2025 .result-card .excerpt {
        margin: 0;
        margin-top: 5px;
    }
  .archive-2025 .result-card .post_all_info--archive {
        gap: 2px;
        margin-top: 2px;
        margin-bottom: 0;
    }
  .archive-2025 .result-card .card-tags {
        margin-top: 2px;
        gap: 3px;
    }
}

@media (max-width: 991px) {
  .archive-2025 .result-card .card-content {
        display: flex;
        flex-direction: column;
    }
}

@media (max-width: 768px) {
  .wcat-compact .wcat-card-title,
    .wcat-layout-featured-1-3-3 .wcat-row-cells .wcat-card .wcat-card-title {
        grid-area: title;
        font-size: 17px;            /* slightly smaller for tighter mobile rhythm */
        line-height: 1.4;           /* more breathing between wrapped lines */
        font-weight: 500;           /* one notch bolder for readability */
        align-self: start;
        padding-right: 8px;
    }
  .wcat-layout-split-2col .wcat-compact .wcat-card-title {
        grid-area: auto;
        align-self: auto;
        font-size: 17px;          /* bigger so it's clearly readable on mobile */
        line-height: 1.3;
        font-weight: 400;
        padding: 0;
    }
  /* Tablet font bump for hero (text now outside image) */
    .wcat-hero .wcat-card-title { font-size: 22px; }
}

@media (max-width: 480px) {
  /* ===== Phone accessibility: bump fonts so elderly/low-vision users
       can read titles and meta clearly without zooming.
       Strategy: titles ≥ 16px, meta ≥ 13px, hero title 20px. ===== */

    /* Hero card */
    .wcat-hero .wcat-card-title { font-size: 20px; line-height: 1.3; }
  /* Card vertical (magazine, carousel, featured-1-3-3 bottom, mosaic side) */
    .wcat-card .wcat-card-title { font-size: 17px; line-height: 1.3; }
}

@media 768) — no overrides needed here */
}

@media (max-width: 360px) {
  /* Mini phone: title slightly smaller to fit narrow viewport */
    .wcat-compact .wcat-card-title,
    .wcat-layout-featured-1-3-3 .wcat-row-cells .wcat-card .wcat-card-title {
        font-size: 17px;
    }
}

@media (prefers-color-scheme: dark) {
  .wcat-card-title a { color: #93c5fd; }
  .wcat-card-title a:hover { color: #fca5a5; }
}