/*
Theme Name: GeneratePress Child - myGiaLai
Theme URI: https://generatepress.com
Description: Clone 100% theme trang chủ myGiaLai.com theo phong cách Google News UI cho GeneratePress - Toàn diện Archive, Single, Page, Search, 404.
Author: Antigravity
Author URI: https://generatepress.com
Template: generatepress
Version: 1.4.0
Text Domain: generatepress-child
*/

:root {
  /* Google News / Modern Clean Palette */
  --bg: #f8f9fa;
  --card: #ffffff;
  --text: #202124;
  --text-secondary: #5f6368;
  --text-tertiary: #70757a;
  --blue: #1a73e8;
  --blue-hover: #1765cc;
  --blue-light: #e8f0fe;
  --red-brand: #ef3030;
  --red-brand-hover: #d92424;
  --border: #e8eaed;
  --border-strong: #dadce0;
  --radius: 8px;
  --radius-sm: 6px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px 0 rgba(60,64,67,0.1), 0 1px 3px 1px rgba(60,64,67,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);

  /* GeneratePress Variables */
  --contrast: #212121;
  --contrast-2: #2f4468;
  --contrast-3: #878787;
  --base: #fafafa;
  --base-2: #f7f8f9;
  --base-3: #ffffff;
  --accent: #242226;
  --accent-2: #1b78e2;
  --accent-hover: #35343a;
  --highlight: rgba(240, 48, 48, 0.72);
}

body {
  background-color: var(--bg) !important;
  color: var(--text) !important;
  font-family: "Google Sans", "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
  font-size: 15px;
  line-height: 1.6;
}

.grid-container {
  max-width: 1250px !important;
}

/* ==========================================================================
   1. Header / Topbar (Google News Style)
   ========================================================================== */
.topbar {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.logo img {
  width: 88px;
  height: auto;
}

.search-wrap {
  flex: 1;
  max-width: 680px;
  margin: 0 auto;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f1f3f4;
  border-radius: 24px;
  padding: 8px 16px;
  color: var(--text-secondary);
  font-size: 15px;
  border: 1px solid transparent;
  transition: background 0.2s, box-shadow 0.2s;
}

.search-box:hover {
  background: #e8eaed;
}

.search-box:focus-within {
  background: #ffffff;
  box-shadow: 0 1px 6px rgba(32,33,36,0.28);
}

.search-box input {
  border: none !important;
  background: transparent !important;
  outline: none !important;
  font-family: inherit !important;
  font-size: 15px !important;
  color: var(--text) !important;
  width: 100% !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.icon-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text-secondary);
  cursor: pointer;
  background: transparent;
  border: none;
}

.icon-btn:hover {
  background: #f1f3f4;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4285f4, #34a853);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  margin-left: 4px;
}

.mobile-search-btn {
  display: none;
}

/* ==========================================================================
   2. Navigation Tabs
   ========================================================================== */
.tabs {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 64px;
  z-index: 90;
}

.tabs-inner {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
}

.tabs-inner::-webkit-scrollbar {
  display: none;
}

.tab {
  padding: 14px 12px;
  font-size: 14px;
  color: var(--text-secondary) !important;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  flex-shrink: 0;
  display: inline-block;
  text-decoration: none !important;
}

.tab:hover {
  color: var(--blue) !important;
}

.tab.active {
  color: var(--blue) !important;
  border-bottom-color: var(--blue);
  font-weight: 500;
}

/* ==========================================================================
   3. Layout: Primary & Sidebar
   ========================================================================== */
.site {
  margin-top: 24px;
  margin-bottom: 48px;
}

.site-content {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.content-area {
  width: 75%;
  flex: 0 0 75%;
}

.sidebar {
  width: 25%;
  flex: 0 0 25%;
}

/* Topic Grids */
.topics-grid,
.topics-grid-2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.topic-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.topic-card .section-title h2 {
  font-size: 16px;
  font-weight: 500;
  color: var(--blue);
  margin-bottom: 12px;
}

.topic-card .section-title h2 a {
  color: var(--blue) !important;
  text-decoration: none !important;
}

.topic-story {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  align-items: flex-start;
}

.topic-story:first-child {
  border-top: none;
  padding-top: 0;
}

.story-text {
  flex: 1;
  min-width: 0;
}

.source-line {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 4px;
  font-weight: 500;
}

.source-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  background: var(--blue);
}

.headline-sub {
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--text) !important;
  text-decoration: none !important;
}

.headline-sub:hover {
  text-decoration: underline !important;
}

.time {
  font-size: 12px;
  color: var(--text-tertiary);
}

.thumb {
  width: 64px;
  height: 48px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  object-fit: cover;
  background: #e2e6ea;
  display: block;
}

/* Stocks */
.stocks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
}

.stock {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  background: #fafafa;
}

.stock .name {
  color: var(--text-secondary);
  font-size: 11px;
}

.stock .change {
  color: #188038;
  font-weight: 600;
  font-size: 11.5px;
}

.stock .value {
  margin-top: 2px;
  font-weight: 600;
  font-size: 12px;
  color: var(--text);
}

.stocks-foot {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 8px;
  text-align: right;
  font-style: italic;
}

/* Feed Card */
.card-feed {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 24px;
}

.story-row {
  display: flex;
  gap: 16px;
  padding: 16px;
  align-items: flex-start;
  border-top: 1px solid var(--border);
}

.story-row:first-child {
  border-top: none;
}

.thumb-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f1f3f4;
  border-radius: 14px;
  font-size: 11px;
  padding: 4px 10px;
  margin-top: 8px;
  color: var(--text-secondary) !important;
  text-decoration: none !important;
}

.card-feed .thumb {
  width: 96px;
  height: 72px;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   4. Archive & Category Styles (archive.php)
   ========================================================================== */
.page-header {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 30px;
  margin-bottom: 24px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.page-header .page-title {
  font-size: 26px;
  font-weight: 600;
  color: #00528b;
  margin-bottom: 8px;
}

.page-header .archive-description {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.archive-article {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 20px;
  padding: 28px 30px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.archive-article .entry-header {
  margin-bottom: 14px;
}

.archive-article .entry-title {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 8px;
}

.archive-article .entry-title a {
  color: var(--contrast-2) !important;
  text-decoration: none !important;
}

.archive-article .entry-title a:hover {
  color: var(--blue) !important;
  text-decoration: underline !important;
}

.entry-meta {
  font-size: 13px;
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.entry-meta a {
  color: var(--text-secondary) !important;
}

.entry-meta a:hover {
  color: var(--blue) !important;
}

.archive-article .post-image {
  margin: 16px 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.archive-article .post-image img {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
}

.archive-article .entry-content p {
  color: #444;
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.read-more.button {
  display: inline-block;
  background-color: var(--red-brand);
  color: #ffffff !important;
  font-size: 13.5px;
  font-weight: 500;
  padding: 8px 22px;
  border-radius: 24px;
  text-decoration: none !important;
}

.read-more.button:hover {
  background-color: var(--red-brand-hover);
}

/* Prevent any duplicate read-more button container */
.read-more-container ~ .read-more-container,
.entry-content .read-more-container:nth-of-type(n+2) {
  display: none !important;
}


/* Pagination */
.paging-navigation,
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 32px;
  margin-bottom: 32px;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text) !important;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none !important;
}

.page-numbers:hover {
  background: #f1f3f4;
  border-color: var(--border-strong);
}

.page-numbers.current {
  background: var(--blue) !important;
  border-color: var(--blue) !important;
  color: #ffffff !important;
}

/* ==========================================================================
   5. Single Post & Page (single.php & page.php)
   ========================================================================== */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-tertiary);
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.breadcrumbs a {
  color: var(--text-secondary) !important;
  text-decoration: none !important;
}

.breadcrumbs a:hover {
  color: var(--blue) !important;
  text-decoration: underline !important;
}

.single-post-container,
.page-container {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 40px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
  margin-bottom: 24px;
}

.single-post-container .entry-header {
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
}

.single-post-container .entry-title,
.page-container .entry-title {
  font-size: 28px;
  font-weight: 700;
  color: #111827;
  line-height: 1.35;
  margin-bottom: 12px;
}

.single-featured-image {
  margin: 24px 0 32px;
  border-radius: var(--radius);
  overflow: hidden;
}

.single-featured-image img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
}

.entry-content {
  font-size: 16px;
  line-height: 1.8;
  color: #2b2b2b;
}

.entry-content p {
  margin-bottom: 1.5em;
}

.entry-content h2 {
  font-size: 22px;
  font-weight: 700;
  color: #1e3a8a;
  margin-top: 1.8em;
  margin-bottom: 0.6em;
}

.entry-content h3 {
  font-size: 18px;
  font-weight: 600;
  color: #2f4468;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

.entry-content ul,
.entry-content ol {
  margin-bottom: 1.5em;
  padding-left: 28px;
}

.entry-content li {
  margin-bottom: 0.5em;
}

.entry-content blockquote {
  border-left: 4px solid var(--blue);
  background: #f8fafc;
  padding: 16px 20px;
  margin: 1.5em 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text-secondary);
}

.post-navigation {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  margin: 32px 0;
  gap: 16px;
}

.post-navigation a {
  color: var(--blue) !important;
  font-weight: 500;
  font-size: 14px;
}

.author-info-box {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 32px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.author-avatar {
  flex-shrink: 0 !important;
  width: 72px !important;
  height: 72px !important;
  min-width: 72px !important;
  min-height: 72px !important;
  max-width: 72px !important;
  max-height: 72px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #e8eaed;
}

.author-avatar a {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  border-radius: 50% !important;
}

.author-avatar img,
.author-avatar .avatar {
  width: 72px !important;
  height: 72px !important;
  min-width: 72px !important;
  min-height: 72px !important;
  max-width: 72px !important;
  max-height: 72px !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  display: block !important;
}

.author-details h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.author-details p {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.related-posts-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 32px;
}

.related-header {
  margin-bottom: 18px;
}

.related-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.related-title svg {
  color: var(--blue);
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.related-post-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.related-post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(60, 64, 67, 0.1);
  border-color: #dadce0;
}

.related-post-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f1f3f4;
}

.related-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.related-post-card:hover .related-post-thumb img {
  transform: scale(1.05);
}

.related-cat-badge {
  position: absolute;
  bottom: 6px;
  left: 6px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

.related-post-body {
  padding: 10px 12px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.related-post-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-post-title a {
  color: var(--text) !important;
  text-decoration: none !important;
  transition: color 0.15s;
}

.related-post-title a:hover {
  color: var(--blue) !important;
}

.related-post-meta {
  font-size: 11.5px;
  color: var(--text-tertiary);
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 4px;
}

.related-views {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--text-secondary);
}

@media (max-width: 900px) {
  .related-posts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .related-posts-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* Comments */
.comments-area {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  margin-top: 32px;
}

.comments-title,
.comment-reply-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--contrast-2);
  margin-bottom: 20px;
}

.comment-list {
  list-style: none;
  padding: 0;
  margin-bottom: 32px;
}

.comment-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.comment-author-info {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.comment-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.comment-author-name {
  font-weight: 600;
  font-size: 14px;
}

.comment-date {
  font-size: 12px;
  color: var(--text-tertiary);
}

.comment-content p {
  font-size: 14.5px;
  line-height: 1.6;
  color: #333;
}

.comment-form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"] {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fafafa;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  margin-bottom: 12px;
}

.comment-form input[type="submit"] {
  background: var(--blue);
  color: #ffffff;
  border: none;
  padding: 10px 24px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

/* 404 */
.error-404-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 60px 40px;
  text-align: center;
}

.error-code {
  font-size: 72px;
  font-weight: 800;
  color: var(--red-brand);
  line-height: 1;
  margin-bottom: 12px;
}

.error-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 14px;
}

.error-desc {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 24px;
  line-height: 1.6;
}

.error-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.btn-primary {
  display: inline-block;
  background: var(--blue);
  color: #ffffff !important;
  padding: 10px 24px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none !important;
}

/* ==========================================================================
   6. Sidebar
   ========================================================================== */
.container-widget {
  background-color: rgba(239, 48, 48, 0.1);
  border-radius: 10px;
  border-bottom: 3px groove #ff2121;
  padding: 24px;
  margin-bottom: 20px;
}

.container-widget .widget-heading {
  font-size: 22px;
  font-weight: 700;
  color: #000000;
  margin-bottom: 10px;
}

.container-widget p {
  font-size: 14px;
  line-height: 1.6;
  color: #202124;
  margin-bottom: 16px;
}

.widget-cta-btn {
  display: inline-block;
  background-color: var(--red-brand);
  color: #ffffff !important;
  padding: 6px 20px;
  border-radius: 25px;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none !important;
}

.gtn-sidebar-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
}

.gtn-sidebar-card .section-title {
  padding: 16px 16px 8px;
}

.gtn-sidebar-card .section-title h2 {
  font-size: 16px;
  color: var(--blue);
  font-weight: 500;
}

.gtn-sidebar-card .sidebar-item {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-top: 1px solid var(--border);
}

.gtn-sidebar-card .gtn-headline {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text) !important;
  text-decoration: none !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gtn-sidebar-card .gtn-thumb {
  width: 64px;
  height: 52px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

/* ==========================================================================
   7. Footer
   ========================================================================== */
.gtn-footer {
  background: #ffffff;
  border-top: 1px solid var(--border);
  padding: 48px 0 0;
  color: var(--text-secondary);
  font-size: 14px;
}

.gtn-footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.gtn-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 36px;
}

.gtn-footer-col h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 14px;
  text-transform: uppercase;
}

.gtn-footer-desc {
  line-height: 1.6;
  max-width: 320px;
  margin-top: 14px;
  font-size: 13.5px;
}

.gtn-footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.gtn-footer-col li {
  margin-bottom: 10px;
}

.gtn-footer-col a {
  color: var(--text-secondary) !important;
  text-decoration: none !important;
}

.gtn-footer-col a:hover {
  color: var(--red-brand) !important;
}

.gtn-footer-social {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.gtn-footer-social a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f1f3f4;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary) !important;
}

.gtn-footer-social a:hover {
  background: var(--red-brand) !important;
  color: #fff !important;
}

.gtn-footer-bottom {
  border-top: 1px solid var(--border);
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-tertiary);
}

/* ==========================================================================
   8. Responsive Media Queries
   ========================================================================== */
@media (max-width: 1024px) {
  .site-content {
    flex-direction: column;
  }
  .content-area, .sidebar {
    width: 100%;
    flex: 0 0 100%;
  }
  .topics-grid, .topics-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .related-posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .topbar-inner {
    height: 56px;
    gap: 8px;
    padding: 0 12px;
  }
  .search-wrap {
    display: none;
  }
  .mobile-search-btn {
    display: flex;
    margin-left: auto;
  }
  .tabs {
    top: 56px;
  }
  .topics-grid, .topics-grid-2 {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .single-post-container,
  .page-container,
  .archive-article,
  .page-header {
    padding: 20px 16px;
  }
  .single-post-container .entry-title {
    font-size: 22px;
  }
  .related-posts-grid {
    grid-template-columns: 1fr;
  }
  .gtn-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .gtn-footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .stocks {
    grid-template-columns: 1fr;
  }
  .gtn-footer-grid {
    grid-template-columns: 1fr;
  }
  .post-navigation {
    flex-direction: column;
  }
}


/* ==========================================================================
   Prevent default GeneratePress header/navigation/footer duplication
   ========================================================================== */
.site-header:not(.topbar),
#site-navigation,
.main-navigation:not(.tabs),
.site-footer:not(.gtn-footer),
.site-info {
  display: none !important;
}

/* ==========================================================================
   NHÓM 1: CÁC TÍNH NĂNG CỐT LÕI (Group 1 Feature Styles)
   ========================================================================== */

/* 1. Weather Pleiku & Agri Market Widget */
.weather-market-box {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  margin-top: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.wm-weather-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: linear-gradient(135deg, #e8f0fe 0%, #f8f9fa 100%);
  border-bottom: 1px solid var(--border-color);
}

.wm-weather-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  color: #1a73e8;
}

.wm-weather-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wm-weather-icon {
  font-size: 20px;
  line-height: 1;
}

.wm-weather-temp {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-dark);
}

.wm-weather-desc {
  font-size: 12px;
  color: var(--text-muted);
}

.wm-market-section {
  padding: 12px 14px;
}

.wm-market-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.wm-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #188038;
  background: #e6f4ea;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 600;
}

.wm-live-dot {
  width: 6px;
  height: 6px;
  background: #34a853;
  border-radius: 50%;
  animation: wm-pulse 1.5s infinite;
}

@keyframes wm-pulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.wm-market-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.wm-market-item {
  background: #f8f9fa;
  border: 1px solid #edf0f2;
  border-radius: 8px;
  padding: 8px 6px;
  text-align: center;
}

.wm-item-name {
  font-size: 11.5px;
  font-weight: 600;
  color: #5f6368;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wm-item-price {
  font-size: 13px;
  font-weight: 700;
  color: #202124;
}

.wm-item-price small {
  font-size: 10px;
  font-weight: normal;
  color: #70757a;
}

.wm-item-change {
  font-size: 10.5px;
  font-weight: 600;
  margin-top: 2px;
}

.wm-item-change.up { color: #188038; }
.wm-item-change.down { color: #d93025; }
.wm-item-change.stable { color: #5f6368; }

/* 2. Table of Contents (myGiaLai TOC) */
.mygialai-toc {
  background: #f8f9fa;
  border: 1px solid #dadce0;
  border-radius: 10px;
  margin: 24px 0 30px;
  padding: 16px 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.mygialai-toc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.mygialai-toc-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text-dark);
}

.mygialai-toc-title svg {
  color: var(--primary);
}

.mygialai-toc-toggle {
  background: none;
  border: none;
  color: #1a73e8;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.2s;
}

.mygialai-toc-toggle:hover {
  background: rgba(26, 115, 232, 0.08);
}

.mygialai-toc-body {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed #dadce0;
}

.mygialai-toc-body ol {
  margin: 0;
  padding-left: 20px;
  list-style: decimal;
}

.mygialai-toc-body li {
  margin-bottom: 8px;
  font-size: 14.5px;
  line-height: 1.5;
}

.mygialai-toc-body li.toc-h2 {
  font-weight: 600;
}

.mygialai-toc-body li.toc-h3 {
  font-weight: 400;
  font-size: 14px;
}

.mygialai-toc-body ol.toc-sublist {
  margin-top: 6px;
  padding-left: 20px;
  list-style: lower-alpha;
}

.mygialai-toc-body a {
  color: #202124;
  text-decoration: none;
  transition: color 0.2s;
}

.mygialai-toc-body a:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* 3. Social Share Bar */
.mygialai-share-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 24px;
  padding: 10px 14px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #eaedf0;
}

.share-label {
  font-size: 13px;
  font-weight: 600;
  color: #5f6368;
  margin-right: 4px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: #ffffff !important;
  border-radius: 20px;
  text-decoration: none !important;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.2s ease;
}

.share-btn:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.share-btn.share-zalo {
  background: #0068ff;
}

.share-icon-zalo {
  font-weight: 800;
  font-size: 13px;
  letter-spacing: -0.5px;
}

.share-btn.share-fb {
  background: #1877f2;
}

.share-btn.share-tele {
  background: #0088cc;
}

.share-btn.share-copy {
  background: #5f6368;
}

/* 4. Review & Rating Box */
.mygialai-review-box {
  background: #ffffff;
  border: 1px solid #dadce0;
  border-left: 4px solid var(--primary);
  border-radius: 10px;
  padding: 20px;
  margin: 30px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.review-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f3f4;
  margin-bottom: 14px;
}

.review-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 4px;
}

.review-badge-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: #188038;
  background: #e6f4ea;
  padding: 2px 8px;
  border-radius: 12px;
}

.review-score-badge {
  display: flex;
  align-items: baseline;
  padding: 8px 16px;
  border-radius: 10px;
  color: #ffffff;
}

.review-score-badge.score-high {
  background: #188038;
}

.review-score-badge.score-med {
  background: #f2994a;
}

.review-score-badge.score-low {
  background: #d93025;
}

.review-score-badge .score-number {
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
}

.review-score-badge .score-max {
  font-size: 13px;
  opacity: 0.85;
  margin-left: 2px;
}

.review-summary {
  font-size: 14.5px;
  color: #3c4043;
  line-height: 1.6;
  margin-bottom: 18px;
}

.review-pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 18px;
}

@media (max-width: 600px) {
  .review-pros-cons {
    grid-template-columns: 1fr;
  }
}

.pros-column, .cons-column {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 14px 16px;
}

.pros-column h4, .cons-column h4 {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 10px;
}

.pros-column h4 { color: #188038; }
.cons-column h4 { color: #d93025; }

.pros-column ul, .cons-column ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pros-column li, .cons-column li {
  font-size: 13.5px;
  color: #3c4043;
  margin-bottom: 6px;
  line-height: 1.45;
  position: relative;
  padding-left: 14px;
}

.pros-column li::before {
  content: "•";
  color: #34a853;
  position: absolute;
  left: 0;
  font-weight: bold;
}

.cons-column li::before {
  content: "•";
  color: #ea4335;
  position: absolute;
  left: 0;
  font-weight: bold;
}

.review-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px dashed #dadce0;
}

.review-meta-bar .meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #5f6368;
}

.review-meta-bar .meta-item a {
  color: #1a73e8;
  text-decoration: none;
  font-weight: 600;
}

/* 5. Ajax Search Results Dropdown & Toast */
.ajax-search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #ffffff;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 8px 24px rgba(60, 64, 67, 0.18);
  border: 1px solid #dadce0;
  border-top: none;
  z-index: 1000;
  max-height: 460px;
  overflow-y: auto;
}

.ajax-loading, .ajax-empty {
  padding: 16px;
  text-align: center;
  font-size: 13.5px;
  color: #5f6368;
}

.ajax-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid #e0e0e0;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.ajax-list {
  display: flex;
  flex-direction: column;
}

.ajax-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  text-decoration: none !important;
  border-bottom: 1px solid #f1f3f4;
  transition: background 0.15s;
}

.ajax-item:hover {
  background: #f8f9fa;
}

.ajax-thumb {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.ajax-info {
  flex: 1;
  min-width: 0;
}

.ajax-cat {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: #1a73e8;
  margin-bottom: 2px;
}

.ajax-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #202124;
  margin: 0 0 3px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ajax-date {
  font-size: 11.5px;
  color: #70757a;
}

.ajax-all-link {
  display: block;
  padding: 12px 16px;
  text-align: center;
  background: #f8f9fa;
  color: #1a73e8 !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  border-radius: 0 0 16px 16px;
}

.ajax-all-link:hover {
  background: #f1f3f4;
}

/* Toast Notification */
.mygialai-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(50px);
  background: #202124;
  color: #ffffff;
  padding: 10px 22px;
  border-radius: 30px;
  font-size: 13.5px;
  font-weight: 500;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.mygialai-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ==========================================================================
   GROUP 2: READING EXPERIENCE & ENGAGEMENT
   ========================================================================== */

/* 1. Reading Progress Bar */
.reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #1a73e8, #34a853);
  z-index: 99999;
  transition: width 0.08s linear;
  pointer-events: none;
}

/* 2. Post Views Badges */
.entry-meta .post-views,
.card-meta .post-views {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text-secondary);
}

.entry-meta .post-views svg {
  color: #1a73e8;
}

/* 3. Circular Back-to-Top Button */
.mygialai-back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ffffff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(60, 64, 67, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: scale(0.8);
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), visibility 0.25s;
  z-index: 9998;
  padding: 0;
}

.mygialai-back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.mygialai-back-to-top:hover {
  box-shadow: 0 6px 18px rgba(60, 64, 67, 0.25);
  transform: translateY(-2px) scale(1.04);
}

.btt-progress-ring {
  position: absolute;
  top: 0;
  left: 0;
  transform: rotate(-90deg);
}

.btt-ring-fill {
  transition: stroke-dashoffset 0.12s linear;
}

.btt-arrow {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a73e8;
  transition: transform 0.2s ease;
}

.mygialai-back-to-top:hover .btt-arrow {
  transform: translateY(-2px);
}

.btt-percent {
  display: none;
}

/* 4. Dark / Light Mode Switcher Button */
.theme-toggle-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5f6368;
  transition: background-color 0.2s, color 0.2s;
  padding: 0;
}

.theme-toggle-btn:hover {
  background-color: rgba(60, 64, 67, 0.08);
  color: #202124;
}

.sun-icon {
  display: none;
}

.moon-icon {
  display: inline-flex;
}

html.dark-mode .sun-icon {
  display: inline-flex;
  color: #fbbc04;
}

html.dark-mode .moon-icon {
  display: none;
}

/* --------------------------------------------------------------------------
   5. COMPREHENSIVE DARK MODE STYLES (Google News Dark theme inspired)
   -------------------------------------------------------------------------- */
html.dark-mode,
body.dark-mode {
  --bg: #18191a;
  --card: #242526;
  --text: #e4e6eb;
  --text-secondary: #b0b3b8;
  --text-tertiary: #8a8d91;
  --text-dark: #e4e6eb;
  --text-muted: #9aa0a6;
  --border: #393a3b;
  --border-strong: #4a4b4d;
  --border-color: #393a3b;
  --blue: #8ab4f8;
  --blue-hover: #aecbfa;
  --blue-light: rgba(138, 180, 248, 0.15);
  --contrast: #e4e6eb;
  --contrast-2: #8ab4f8;
  --contrast-3: #9aa0a6;
  --base: #18191a;
  --base-2: #242526;
  --base-3: #3a3b3c;
  --accent: #e4e6eb;
  --accent-2: #8ab4f8;
  background-color: #18191a !important;
  color: #e4e6eb !important;
}

/* Navigation Topbar & Tabs */
html.dark-mode .topbar,
html.dark-mode .tabs {
  background-color: #242526 !important;
  border-color: #393a3b !important;
}

html.dark-mode .site-title a,
html.dark-mode .topbar .app-name {
  color: #e4e6eb !important;
}

html.dark-mode .search-box {
  background-color: #3a3b3c !important;
  color: #e4e6eb !important;
  border-color: #4a4b4d !important;
}

html.dark-mode .search-box input {
  color: #e4e6eb !important;
}

html.dark-mode .search-box input::placeholder {
  color: #9aa0a6 !important;
}

html.dark-mode .search-box svg {
  color: #9aa0a6 !important;
}

html.dark-mode .icon-btn {
  color: #9aa0a6 !important;
}

html.dark-mode .icon-btn:hover {
  background-color: #3a3b3c !important;
  color: #e4e6eb !important;
}

html.dark-mode .tab {
  color: #b0b3b8 !important;
}

html.dark-mode .tab:hover {
  color: #8ab4f8 !important;
}

html.dark-mode .tab.active {
  color: #8ab4f8 !important;
  border-bottom-color: #8ab4f8 !important;
}

/* ==========================================================================
   CARDS & CONTAINERS IN DARK MODE
   ========================================================================== */
html.dark-mode .main-card,
html.dark-mode .side-card,
html.dark-mode .card,
html.dark-mode .topic-card,
html.dark-mode .card-feed,
html.dark-mode .gtn-sidebar-card,
html.dark-mode .sidebar-card,
html.dark-mode .single-main-card,
html.dark-mode .archive-main-card,
html.dark-mode .page-main-card,
html.dark-mode .search-main-card,
html.dark-mode .error-404-card,
html.dark-mode .sidebar-box,
html.dark-mode .related-posts-section,
html.dark-mode .related-post-card,
html.dark-mode .author-info-box,
html.dark-mode .mygialai-toc,
html.dark-mode .mygialai-review-box,
html.dark-mode .comments-area,
html.dark-mode .comment-body,
html.dark-mode .ajax-search-results,
html.dark-mode .topic-grid,
html.dark-mode .read-more.button {
  background-color: #242526 !important;
  border-color: #393a3b !important;
  color: #e4e6eb !important;
}

/* Section Titles & Links */
html.dark-mode .section-title h2,
html.dark-mode .section-title h2 a,
html.dark-mode .topic-card .section-title h2 a,
html.dark-mode .gtn-sidebar-card .section-title h2 a {
  color: #8ab4f8 !important;
}

/* Article Headlines & Titles (Fixing black/invisible text) */
html.dark-mode h1,
html.dark-mode h2,
html.dark-mode h3,
html.dark-mode h4,
html.dark-mode .entry-title,
html.dark-mode .page-title,
html.dark-mode .archive-title,
html.dark-mode .search-title,
html.dark-mode .error-title,
html.dark-mode .related-title,
html.dark-mode .card-title a,
html.dark-mode .topic-title a,
html.dark-mode .side-card h4 a,
html.dark-mode .headline,
html.dark-mode .headline a,
html.dark-mode .headline-sub,
html.dark-mode .headline-sub a,
html.dark-mode a.headline-sub,
html.dark-mode .gtn-headline,
html.dark-mode .gtn-headline a,
html.dark-mode a.gtn-headline,
html.dark-mode .story-row h3 a,
html.dark-mode .story-row .headline-sub,
html.dark-mode .story-row .headline-sub a,
html.dark-mode .related-post-title a {
  color: #e4e6eb !important;
}

html.dark-mode .headline:hover,
html.dark-mode .headline a:hover,
html.dark-mode .headline-sub:hover,
html.dark-mode .headline-sub a:hover,
html.dark-mode a.headline-sub:hover,
html.dark-mode .gtn-headline:hover,
html.dark-mode .gtn-headline a:hover,
html.dark-mode a.gtn-headline:hover,
html.dark-mode .story-row h3 a:hover,
html.dark-mode .story-row .headline-sub a:hover,
html.dark-mode .related-post-title a:hover {
  color: #8ab4f8 !important;
  text-decoration: underline !important;
}

html.dark-mode a {
  color: #8ab4f8;
}

/* Post Content & Typography */
html.dark-mode .entry-content,
html.dark-mode .entry-content p,
html.dark-mode .entry-content li {
  color: #d1d5db !important;
}

/* Meta, Date & Author Lines */
html.dark-mode .source-line,
html.dark-mode .source-line span,
html.dark-mode .entry-meta,
html.dark-mode .author-date,
html.dark-mode .source,
html.dark-mode .time,
html.dark-mode .related-post-meta,
html.dark-mode .posted-on,
html.dark-mode .byline,
html.dark-mode .reading-time,
html.dark-mode .post-views,
html.dark-mode .topic-meta,
html.dark-mode .related-post-date,
html.dark-mode .gtn-source-line,
html.dark-mode .gtn-time,
html.dark-mode .archive-description,
html.dark-mode .error-desc,
html.dark-mode .author-details p {
  color: #9aa0a6 !important;
}

html.dark-mode .entry-meta a,
html.dark-mode .byline a,
html.dark-mode .breadcrumbs a {
  color: #8ab4f8 !important;
}

html.dark-mode .breadcrumbs {
  color: #9aa0a6 !important;
}

/* ==========================================================================
   HOMEPAGE SPECIFIC COMPONENTS
   ========================================================================== */
/* Topic Story Borders */
html.dark-mode .topic-story {
  border-top-color: #393a3b !important;
}

/* Feed List / Tin tức tổng hợp */
html.dark-mode .card-feed {
  background: #242526 !important;
  border-color: #393a3b !important;
}

html.dark-mode .story-row {
  border-top-color: #393a3b !important;
}

html.dark-mode .thumb-btn {
  background: #3a3b3c !important;
  color: #8ab4f8 !important;
  border: 1px solid #4a4b4d !important;
}

html.dark-mode .thumb-btn:hover {
  background: #4a4b4d !important;
  color: #aecbfa !important;
}

/* Weather & Agricultural Market Box */
html.dark-mode .weather-market-box {
  background: #242526 !important;
  border-color: #393a3b !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3) !important;
}

html.dark-mode .wm-weather-row {
  background: linear-gradient(135deg, #1c2738 0%, #242526 100%) !important;
  border-bottom-color: #393a3b !important;
}

html.dark-mode .wm-weather-location {
  color: #8ab4f8 !important;
}

html.dark-mode .wm-weather-location strong {
  color: #8ab4f8 !important;
}

html.dark-mode .wm-weather-location svg {
  stroke: #8ab4f8 !important;
}

html.dark-mode .wm-weather-temp {
  color: #e4e6eb !important;
}

html.dark-mode .wm-weather-desc {
  color: #9aa0a6 !important;
}

html.dark-mode .wm-market-head {
  color: #e4e6eb !important;
}

html.dark-mode .wm-live-badge {
  background: rgba(52, 168, 83, 0.2) !important;
  color: #81c995 !important;
}

html.dark-mode .wm-live-dot {
  background: #81c995 !important;
}

html.dark-mode .wm-market-item {
  background: #2f3032 !important;
  border-color: #3d3e40 !important;
}

html.dark-mode .wm-item-name {
  color: #9aa0a6 !important;
}

html.dark-mode .wm-item-price {
  color: #ffffff !important;
}

html.dark-mode .wm-item-price small {
  color: #9aa0a6 !important;
}

html.dark-mode .wm-item-change.up {
  color: #81c995 !important;
}

html.dark-mode .wm-item-change.down {
  color: #f28b82 !important;
}

html.dark-mode .wm-item-change.stable {
  color: #9aa0a6 !important;
}

html.dark-mode .stocks-foot {
  color: #8a8d91 !important;
}

/* ==========================================================================
   SIDEBAR COMPONENTS IN DARK MODE
   ========================================================================== */
/* Widget 1: About myGiaLai */
html.dark-mode .container-widget {
  background-color: rgba(239, 48, 48, 0.12) !important;
  border: 1px solid rgba(239, 48, 48, 0.25) !important;
  border-bottom: 3px groove #ff4444 !important;
}

html.dark-mode .container-widget .widget-heading,
html.dark-mode .widget-heading {
  color: #ffffff !important;
}

html.dark-mode .container-widget p {
  color: #d1d5db !important;
}

html.dark-mode .container-widget .widget-cta-btn,
html.dark-mode .widget-cta-btn {
  background: #ef3030 !important;
  color: #ffffff !important;
}

html.dark-mode .container-widget .widget-cta-btn:hover,
html.dark-mode .widget-cta-btn:hover {
  background: #d92424 !important;
}

/* Widget 2 & 3: Sidebar News Cards */
html.dark-mode .gtn-sidebar-card {
  background: #242526 !important;
  border-color: #393a3b !important;
}

html.dark-mode .sidebar-item {
  border-top-color: #393a3b !important;
}

html.dark-mode .gtn-source-line {
  color: #9aa0a6 !important;
}

html.dark-mode .gtn-headline,
html.dark-mode .gtn-headline a {
  color: #e4e6eb !important;
}

html.dark-mode .gtn-headline:hover,
html.dark-mode .gtn-headline a:hover {
  color: #8ab4f8 !important;
  text-decoration: underline !important;
}

html.dark-mode .gtn-time {
  color: #8a8d91 !important;
}

/* Widget 4: Partner / Ad Spot */
html.dark-mode .gtn-partner-card {
  background: #242526 !important;
  border-color: #393a3b !important;
}

html.dark-mode .gtn-partner-badge {
  background: #3a3b3c !important;
  color: #8ab4f8 !important;
}

html.dark-mode .gtn-partner-title,
html.dark-mode .gtn-partner-title a {
  color: #e4e6eb !important;
}

html.dark-mode .gtn-partner-desc {
  color: #9aa0a6 !important;
}

/* ==========================================================================
   AJAX LIVE SEARCH IN DARK MODE
   ========================================================================== */
html.dark-mode .ajax-search-results {
  background-color: #242526 !important;
  border-color: #393a3b !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.6) !important;
}

html.dark-mode .ajax-item {
  border-bottom-color: #393a3b !important;
}

html.dark-mode .ajax-item:hover {
  background-color: #3a3b3c !important;
}

html.dark-mode .ajax-title {
  color: #e4e6eb !important;
}

html.dark-mode .ajax-all-link {
  background-color: #1f2022 !important;
  color: #8ab4f8 !important;
  border-top-color: #393a3b !important;
}

html.dark-mode .ajax-all-link:hover {
  background-color: #2c2d2e !important;
}

/* Table of Contents in Dark */
html.dark-mode .toc-list a {
  color: #8ab4f8 !important;
}

html.dark-mode .toc-list a:hover {
  color: #a8c7fa !important;
}

html.dark-mode .toc-header {
  color: #e4e6eb !important;
}

/* Review Box in Dark */
html.dark-mode .review-meter-track {
  background-color: #3a3b3c !important;
}

html.dark-mode .review-meta-info {
  background-color: #1f2022 !important;
  border-top-color: #393a3b !important;
}

html.dark-mode .pros-list li {
  color: #81c995 !important;
}

html.dark-mode .cons-list li {
  color: #f28b82 !important;
}

/* Social Share Bar */
html.dark-mode .share-btn {
  background: #2f3032 !important;
  color: #e4e6eb !important;
  border-color: #3d3e40 !important;
}

html.dark-mode .share-btn:hover {
  background: #3a3b3c !important;
  color: #8ab4f8 !important;
}

/* Reading Progress Bar */
html.dark-mode .reading-progress-bar {
  background: linear-gradient(90deg, #8ab4f8 0%, #aecbfa 100%) !important;
}

/* Post Navigation (Prev / Next) */
html.dark-mode .post-navigation {
  border-top-color: #393a3b !important;
  border-bottom-color: #393a3b !important;
}

html.dark-mode .post-navigation a {
  color: #8ab4f8 !important;
}

html.dark-mode .post-navigation a:hover {
  color: #aecbfa !important;
}

/* Back to Top in Dark */
html.dark-mode .mygialai-back-to-top {
  background-color: #242526 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45) !important;
}

html.dark-mode .btt-ring-bg {
  stroke: rgba(255, 255, 255, 0.12) !important;
}

html.dark-mode .btt-arrow {
  color: #8ab4f8 !important;
}

/* Footer in Dark */
html.dark-mode .gtn-footer {
  background-color: #1f2022 !important;
  border-top-color: #393a3b !important;
}

html.dark-mode .gtn-footer h4 {
  color: #e4e6eb !important;
}

html.dark-mode .gtn-footer a,
html.dark-mode .gtn-footer p {
  color: #9aa0a6 !important;
}

html.dark-mode .gtn-footer a:hover {
  color: #8ab4f8 !important;
}

html.dark-mode .gtn-footer-bottom {
  background-color: #18191a !important;
  border-top-color: #2c2d2e !important;
  color: #9aa0a6 !important;
}

/* ==========================================================================
   GROUP 3: SEO, CONVERSION & MONETIZATION
   ========================================================================== */

/* 1. Mobile Floating Contact Bar */
.mygialai-floating-cta {
  display: none;
}

@media (max-width: 768px) {
  .mygialai-floating-cta {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.12);
    padding: 8px 12px;
    z-index: 9997;
    gap: 8px;
    align-items: center;
    justify-content: space-around;
    transition: transform 0.3s ease;
    border-top: 1px solid #eaedf1;
  }

  .mygialai-floating-cta.hide {
    transform: translateY(100%);
  }

  .floating-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 8px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none !important;
    transition: opacity 0.2s, transform 0.15s;
  }

  .floating-btn:active {
    transform: scale(0.96);
  }

  .floating-btn.call-btn {
    background: #ea4335;
    color: #ffffff !important;
  }

  .floating-btn.zalo-btn {
    background: #0068ff;
    color: #ffffff !important;
  }

  .floating-btn.book-btn {
    background: #1a73e8;
    color: #ffffff !important;
  }

  .pulse-ring {
    display: inline-flex;
    animation: cta-pulse 1.8s infinite;
  }

  @keyframes cta-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.18); }
    100% { transform: scale(1); }
  }

  /* Padding at bottom of body on mobile to avoid content cut off by floating bar */
  body {
    padding-bottom: 58px;
  }
}

/* 2. In-Content CTA Box */
.mygialai-cta-box {
  background: linear-gradient(135deg, #f0f7ff 0%, #e8f0fe 100%);
  border: 1.5px solid #d2e3fc;
  border-radius: 14px;
  padding: 24px;
  margin: 32px 0;
  position: relative;
  box-shadow: 0 4px 12px rgba(26, 115, 232, 0.08);
}

.cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  color: #1a73e8;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.dot-online {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34a853;
  display: inline-block;
}

.cta-title {
  font-size: 18px;
  font-weight: 700;
  color: #202124;
  margin: 0 0 8px;
  line-height: 1.35;
}

.cta-desc {
  font-size: 13.5px;
  color: #5f6368;
  margin: 0 0 18px;
  line-height: 1.5;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  transition: background-color 0.2s, transform 0.15s;
}

.cta-btn.cta-phone {
  background: #ea4335;
  color: #ffffff !important;
}
.cta-btn.cta-phone:hover {
  background: #d93025;
  transform: translateY(-1px);
}

.cta-btn.cta-zalo {
  background: #0068ff;
  color: #ffffff !important;
}
.cta-btn.cta-zalo:hover {
  background: #0056d6;
  transform: translateY(-1px);
}

.cta-btn.cta-custom {
  background: #1a73e8;
  color: #ffffff !important;
}
.cta-btn.cta-custom:hover {
  background: #1557b0;
  transform: translateY(-1px);
}

/* 3. Partner & Ad Banners */
.mygialai-partner-banner {
  background: #ffffff;
  border: 1px solid #e8eaed;
  border-radius: 12px;
  padding: 16px 20px;
  margin: 28px 0;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.banner-sponsor-label {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 10.5px;
  color: #80868b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.banner-content {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
}

.banner-img img {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
}

.banner-title {
  font-size: 15px;
  font-weight: 700;
  color: #202124;
  margin: 0 0 4px;
}

.banner-desc {
  font-size: 13px;
  color: #5f6368;
  margin: 0;
  line-height: 1.45;
}

.banner-btn {
  display: inline-block;
  padding: 8px 16px;
  background: #1a73e8;
  color: #ffffff !important;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background-color 0.2s;
}

.banner-btn:hover {
  background: #1557b0;
}

.mygialai-ad-spot {
  position: relative;
  margin: 24px 0;
  text-align: center;
  background: #f8f9fa;
  border-radius: 8px;
  padding: 12px 12px 6px;
  border: 1px dashed #dadce0;
}

.ad-label {
  display: block;
  font-size: 10px;
  color: #9aa0a6;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.mygialai-ad-spot img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

/* 4. Newsletter Subscription Box */
.mygialai-newsletter-box {
  background: #ffffff;
  border: 1px solid #e8eaed;
  border-radius: 14px;
  padding: 24px 28px;
  margin-bottom: 28px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.newsletter-icon {
  color: #1a73e8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.newsletter-text {
  flex: 1;
  min-width: 240px;
}

.newsletter-title {
  font-size: 16px;
  font-weight: 700;
  color: #202124;
  margin: 0 0 4px;
}

.newsletter-desc {
  font-size: 13px;
  color: #5f6368;
  margin: 0;
  line-height: 1.4;
}

.mygialai-newsletter-form {
  min-width: 320px;
}

.input-group {
  display: flex;
  gap: 8px;
}

.newsletter-input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #dadce0;
  border-radius: 8px;
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.newsletter-input:focus {
  border-color: #1a73e8;
  box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.15);
}

.newsletter-submit {
  background: #1a73e8;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
  white-space: nowrap;
}

.newsletter-submit:hover {
  background: #1557b0;
}

.newsletter-feedback {
  font-size: 12.5px;
  margin-top: 8px;
  padding: 6px 10px;
  border-radius: 6px;
}

.newsletter-feedback.success {
  background: #e6f4ea;
  color: #137333;
}

.newsletter-feedback.error {
  background: #fce8e6;
  color: #c5221f;
}

/* 5. Dark Mode for Group 3 */
html.dark-mode .mygialai-floating-cta {
  background: #242526 !important;
  border-top-color: #393a3b !important;
  box-shadow: 0 -2px 14px rgba(0, 0, 0, 0.4) !important;
}

html.dark-mode .mygialai-cta-box {
  background: #1e2530 !important;
  border-color: #2b394e !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3) !important;
}

html.dark-mode .mygialai-cta-box .cta-title {
  color: #e4e6eb !important;
}

html.dark-mode .mygialai-cta-box .cta-desc {
  color: #b0b3b8 !important;
}

html.dark-mode .mygialai-cta-box .cta-badge {
  background: #2b394e !important;
  color: #8ab4f8 !important;
}

html.dark-mode .mygialai-partner-banner {
  background: #242526 !important;
  border-color: #393a3b !important;
}

html.dark-mode .mygialai-partner-banner .banner-title {
  color: #e4e6eb !important;
}

html.dark-mode .mygialai-partner-banner .banner-desc {
  color: #9aa0a6 !important;
}

html.dark-mode .mygialai-ad-spot {
  background: #1f2022 !important;
  border-color: #393a3b !important;
}

html.dark-mode .mygialai-newsletter-box {
  background: #242526 !important;
  border-color: #393a3b !important;
}

html.dark-mode .mygialai-newsletter-box .newsletter-title {
  color: #e4e6eb !important;
}

html.dark-mode .mygialai-newsletter-box .newsletter-desc {
  color: #9aa0a6 !important;
}

html.dark-mode .newsletter-input {
  background: #3a3b3c !important;
  border-color: #4a4b4d !important;
  color: #e4e6eb !important;
}

/* ==========================================================================
   26. AUTHOR PROFILE HERO & E-E-A-T AUTHOR SEO STYLES
   ========================================================================== */

/* Author Hero Card */
.author-hero-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.author-hero-banner {
  height: 110px;
  background: linear-gradient(135deg, #1a73e8 0%, #1557b0 45%, #0d47a1 100%);
  position: relative;
}

.author-hero-banner::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.15) 0%, transparent 60%);
  pointer-events: none;
}

.author-hero-content {
  padding: 0 32px 28px;
  position: relative;
}

.author-hero-top {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-top: -54px;
  margin-bottom: 20px;
}

.author-hero-avatar-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  flex-shrink: 0;
  border-radius: 50%;
}

.author-hero-avatar {
  width: 120px !important;
  height: 120px !important;
  min-width: 120px !important;
  min-height: 120px !important;
  max-width: 120px !important;
  max-height: 120px !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 4px solid var(--card);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  background: #ffffff;
  display: block;
}

.author-verified-icon {
  position: absolute;
  bottom: 2px;
  right: 2px;
  background: #ffffff;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.22);
}

.author-hero-intro {
  flex: 1;
  min-width: 280px;
  padding-top: 58px;
}

.author-hero-name-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.author-hero-name {
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  line-height: 1.25;
}

.author-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #e8f0fe;
  color: #1a73e8;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.author-hero-role {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 12px;
}

.author-hero-role svg {
  color: #1a73e8;
  flex-shrink: 0;
}

/* E-E-A-T Pills */
.author-eeat-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.eeat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f3f4;
  color: var(--text);
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid transparent;
}

.eeat-pill svg {
  color: #1a73e8;
  flex-shrink: 0;
}

.eeat-pill.location-pill svg {
  color: #ea4335;
}

/* Author Bio */
.author-hero-bio {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  margin: 20px 0 16px;
  border-top: 1px solid var(--border);
  padding-top: 18px;
}

.author-hero-bio p {
  margin-bottom: 12px;
}

.author-hero-bio p:last-child {
  margin-bottom: 0;
}

/* Author Quote Box */
.author-quote-box {
  background: #f8fafc;
  border-left: 4px solid #1a73e8;
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  margin: 18px 0;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.quote-icon-wrap {
  flex-shrink: 0;
  color: #1a73e8;
  opacity: 0.85;
}

.author-quote-text {
  margin: 0;
  font-style: italic;
  color: #334155;
  font-size: 14.5px;
  line-height: 1.6;
}

/* Expertise Topics / KnowsAbout */
.author-expertise-wrap {
  margin: 18px 0 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.expertise-title {
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-tertiary);
}

.expertise-tags-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.expertise-tag {
  background: #f1f5f9;
  color: #2563eb;
  border: 1px solid #e2e8f0;
  font-size: 13px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  transition: all 0.2s ease;
}

.expertise-tag .tag-hash {
  color: #94a3b8;
  font-weight: 600;
}

.expertise-tag:hover {
  background: #e0e7ff;
  color: #1d4ed8;
  border-color: #c7d2fe;
}

/* Author Hero Footer: Stats & Social */
.author-hero-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.author-stats-grid {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.author-stat-item {
  background: #f8f9fa;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 16px;
  min-width: 110px;
  text-align: center;
}

.author-stat-item .stat-number {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: #1a73e8;
  line-height: 1.2;
}

.author-stat-item .stat-label {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 3px;
}

.author-stat-item.trust-item .trust-val {
  color: #0d904f;
}

/* Social Buttons */
.author-social-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none !important;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text-secondary) !important;
  transition: all 0.2s ease;
}

.social-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.social-btn.web-btn:hover { color: #1a73e8 !important; border-color: #1a73e8; background: #e8f0fe; }
.social-btn.fb-btn:hover { color: #1877f2 !important; border-color: #1877f2; background: #e7f3ff; }
.social-btn.in-btn:hover { color: #0a66c2 !important; border-color: #0a66c2; background: #e8f4f9; }
.social-btn.x-btn:hover { color: #000000 !important; border-color: #000000; background: #f1f3f4; }
.social-btn.yt-btn:hover { color: #ff0000 !important; border-color: #ff0000; background: #fee7e7; }
.social-btn.mail-btn:hover { color: #ea4335 !important; border-color: #ea4335; background: #fce8e6; }
.social-btn.zalo-btn:hover { color: #0068ff !important; border-color: #0068ff; background: #e6f0ff; }

.zalo-text-badge {
  font-weight: 800;
  font-size: 11px;
  background: #0068ff;
  color: #ffffff;
  padding: 1px 4px;
  border-radius: 3px;
  line-height: 1;
}

/* Author Articles Section */
.author-articles-section {
  margin-top: 16px;
}

.author-articles-header {
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--blue);
}

.author-articles-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 4px;
}

.author-articles-title svg {
  color: #1a73e8;
  flex-shrink: 0;
}

.articles-count-pill {
  background: #e8f0fe;
  color: #1a73e8;
  font-size: 13px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 12px;
}

.author-articles-subtitle {
  font-size: 13.5px;
  color: var(--text-secondary);
  display: block;
}

.author-articles-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.author-post-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  margin-bottom: 0;
}

.author-post-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #c2e7ff;
}

.author-post-card .post-image {
  width: 220px;
  height: 145px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  background: #f1f3f4;
}

.author-post-card .post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
  display: block;
}

.author-post-card:hover .post-image img {
  transform: scale(1.05);
}

.author-post-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.author-post-cat a {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #1a73e8;
  margin-bottom: 6px;
  text-decoration: none;
}

.author-post-cat a:hover {
  text-decoration: underline;
}

.author-post-card .entry-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 8px;
}

.author-post-card .entry-title a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}

.author-post-card .entry-title a:hover {
  color: var(--blue);
}

.author-post-card .entry-meta {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.author-post-card .entry-meta .posted-on {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.author-post-card .entry-content {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.author-post-card-footer {
  margin-top: auto;
}

.author-read-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: #1a73e8;
  text-decoration: none !important;
  transition: gap 0.2s, color 0.2s;
}

.author-read-more:hover {
  color: #1557b0;
  gap: 7px;
}

/* Empty State */
.author-no-posts {
  background: var(--card);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  padding: 48px 24px;
  text-align: center;
}

.no-posts-icon {
  margin-bottom: 16px;
}

.author-no-posts h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.author-no-posts p {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto;
}

/* Upgraded Single Post Author Info Box */
.author-details-header {
  margin-bottom: 6px;
}

.author-label-top {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #1a73e8;
  display: block;
  margin-bottom: 2px;
}

.author-verified-mini {
  display: inline-flex;
  vertical-align: middle;
  margin-left: 4px;
}

.author-job-sub {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
  margin-top: 2px;
}

.author-box-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
  flex-wrap: wrap;
  gap: 12px;
}

.author-view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13.5px;
  font-weight: 600;
  color: #1a73e8;
  text-decoration: none !important;
  transition: gap 0.2s ease;
}

.author-view-all-link:hover {
  gap: 8px;
  color: #1557b0;
}

.author-mini-socials {
  display: flex;
  gap: 6px;
  align-items: center;
}

.author-mini-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f1f3f4;
  color: #5f6368;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.author-mini-socials a:hover {
  background: #1a73e8;
  color: #ffffff;
}

.mini-zalo-link {
  width: auto !important;
  padding: 2px 7px;
  border-radius: 4px !important;
  font-size: 11px;
  font-weight: 700;
  background: #0068ff !important;
  color: #ffffff !important;
}

/* ==========================================================================
   27. DARK MODE FOR AUTHOR SYSTEM
   ========================================================================== */
html.dark-mode .author-hero-card {
  background: #242526 !important;
  border-color: #393a3b !important;
}

html.dark-mode .author-hero-avatar {
  border-color: #242526 !important;
  background: #242526 !important;
}

html.dark-mode .author-verified-icon {
  background: #242526 !important;
  box-shadow: 0 2px 5px rgba(0,0,0,0.5) !important;
}

html.dark-mode .author-hero-name {
  color: #e4e6eb !important;
}

html.dark-mode .author-trust-badge {
  background: #2b394e !important;
  color: #8ab4f8 !important;
}

html.dark-mode .eeat-pill {
  background: #3a3b3c !important;
  color: #e4e6eb !important;
  border-color: #4e4f50 !important;
}

html.dark-mode .author-hero-bio {
  color: #e4e6eb !important;
  border-color: #393a3b !important;
}

html.dark-mode .author-quote-box {
  background: #1e1f20 !important;
  border-left-color: #8ab4f8 !important;
}

html.dark-mode .author-quote-text {
  color: #e4e6eb !important;
}

html.dark-mode .expertise-tag {
  background: #3a3b3c !important;
  color: #8ab4f8 !important;
  border-color: #4e4f50 !important;
}

html.dark-mode .author-hero-footer {
  border-color: #393a3b !important;
}

html.dark-mode .author-stat-item {
  background: #1e1f20 !important;
  border-color: #393a3b !important;
}

html.dark-mode .author-stat-item .stat-number {
  color: #8ab4f8 !important;
}

html.dark-mode .author-stat-item.trust-item .trust-val {
  color: #81c995 !important;
}

html.dark-mode .social-btn {
  background: #1e1f20 !important;
  border-color: #393a3b !important;
  color: #e4e6eb !important;
}

html.dark-mode .social-btn:hover {
  background: #3a3b3c !important;
}

html.dark-mode .author-articles-title {
  color: #e4e6eb !important;
}

html.dark-mode .articles-count-pill {
  background: #2b394e !important;
  color: #8ab4f8 !important;
}

html.dark-mode .author-post-card {
  background: #242526 !important;
  border-color: #393a3b !important;
}

html.dark-mode .author-post-card .entry-title a {
  color: #e4e6eb !important;
}

html.dark-mode .author-post-card .entry-title a:hover {
  color: #8ab4f8 !important;
}

html.dark-mode .author-box-footer {
  border-color: #393a3b !important;
}

html.dark-mode .author-mini-socials a {
  background: #3a3b3c !important;
  color: #e4e6eb !important;
}

html.dark-mode .author-no-posts {
  background: #242526 !important;
  border-color: #393a3b !important;
}

/* ==========================================================================
   28. RESPONSIVE BREAKPOINTS FOR AUTHOR SYSTEM
   ========================================================================== */
@media (max-width: 768px) {
  .author-hero-content {
    padding: 0 18px 20px;
  }

  .author-hero-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: -60px;
    gap: 16px;
  }

  .author-hero-intro {
    padding-top: 0;
    min-width: 100%;
  }

  .author-hero-name-row {
    justify-content: center;
  }

  .author-hero-role {
    justify-content: center;
  }

  .author-eeat-pills {
    justify-content: center;
  }

  .author-expertise-wrap {
    align-items: center;
    text-align: center;
  }

  .expertise-tags-list {
    justify-content: center;
  }

  .author-hero-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .author-stats-grid {
    justify-content: space-between;
  }

  .author-stat-item {
    flex: 1;
    min-width: 0;
    padding: 8px 10px;
  }

  .author-stat-item .stat-number {
    font-size: 17px;
  }

  .author-social-list {
    justify-content: center;
  }

  .author-post-card {
    flex-direction: column;
    gap: 14px;
    padding: 14px;
  }

  .author-post-card .post-image {
    width: 100%;
    height: 190px;
  }
}
