/* ============================================================
   MITN BLOG INDEX PAGE CSS
   ============================================================ */

.mitn-blog {
  background: var(--color-surface-raised);
  padding-top: 0 !important;
  margin-top: 0 !important;
  
  --font-heading: 'Be Vietnam Pro', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', 'Be Vietnam Pro', system-ui, sans-serif;
  --font-numeric: 'Inter', monospace;

  --fs-hero: clamp(1.8rem, 1.3rem + 2.4vw, 2.6rem);
  --fs-h2: clamp(1.3rem, 1.1rem + 1vw, 1.6rem);
  --fs-h3: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  --fs-base: 1rem; --fs-sm: 0.875rem; --fs-xs: 0.75rem;

  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem;
  --s-5: 1.25rem; --s-6: 1.5rem; --s-8: 2rem; --s-10: 2.5rem; --s-12: 3rem;
  --container-max: 1280px;
}

.mitn-blog .container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--s-4);
}

.mitn-blog .section {
  padding-block: var(--s-10);
}

.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-4);
  margin-bottom: var(--s-6);
}
.sec-head h2 {
  font-family: var(--font-heading);
  font-size: var(--fs-h2);
  font-weight: 800;
  color: var(--color-text-primary);
  letter-spacing: -0.02em;
  margin: 0;
}
.sec-head a {
  font-size: var(--fs-sm);
  font-weight: 600;
  white-space: nowrap;
  color: var(--color-brand-primary);
}
.sec-head a:hover {
  color: var(--color-brand-primary-hover);
  text-decoration: none;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-size: var(--fs-xs);
  color: var(--color-text-subtle);
  flex-wrap: wrap;
}
.post-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.post-meta svg {
  width: 13px;
  height: 13px;
  stroke-width: 2;
}
.cat-tag {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: var(--fs-xs);
  font-weight: 700;
  background: var(--color-brand-primary);
  color: white;
  text-transform: uppercase;
  margin-bottom: var(--s-1);
}

/* HERO */
.blog-hero {
  background: linear-gradient(160deg, var(--color-surface-inverse), #1e293b);
  color: white;
  padding: var(--s-12) 0;
}
.blog-hero .breadcrumb {
  font-size: var(--fs-sm);
  margin-bottom: var(--s-6);
}
.blog-hero .breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-1);
  list-style: none;
  align-items: center;
  margin: 0;
  padding: 0;
}
.blog-hero .breadcrumb a {
  color: rgba(255,255,255,0.65);
  padding: 2px 4px;
  text-decoration: none;
}
.blog-hero .breadcrumb a:hover {
  color: white;
}
.blog-hero .breadcrumb li:not(:last-child)::after {
  content: '›';
  margin-left: var(--s-2);
  color: rgba(255,255,255,0.4);
}
.blog-hero .breadcrumb [aria-current] {
  color: white;
  font-weight: 500;
}
.blog-hero__inner {
  max-width: 680px;
}
.blog-hero__eyebrow {
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fca5a5;
  margin-bottom: var(--s-3);
}
.blog-hero__title {
  font-family: var(--font-heading);
  font-size: var(--fs-hero);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: var(--s-4);
  color: white;
}
.blog-hero__lead {
  color: rgba(255,255,255,0.8);
  font-size: 1.0625rem;
  line-height: 1.7;
  margin-bottom: var(--s-6);
}
.hero-search {
  display: flex;
  gap: var(--s-2);
  max-width: 480px;
}
.hero-search input {
  flex: 1;
  height: 50px;
  padding: 0 var(--s-4);
  border: none;
  border-radius: var(--radius-md);
  font-size: var(--fs-base);
  font-family: var(--font-body);
  color: var(--color-text-primary);
  background: white;
}
.hero-search input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(221,51,51,0.5);
}
.hero-search button {
  height: 50px;
  padding: 0 var(--s-5);
  background: var(--color-brand-primary);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-body);
  transition: background var(--duration-fast);
}
.hero-search button:hover {
  background: var(--color-brand-primary-hover);
}
.hero-search button svg {
  width: 18px;
  height: 18px;
}

/* FEATURED TRIO */
.featured-trio {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--s-5);
}
@media (max-width: 860px) {
  .featured-trio {
    grid-template-columns: 1fr;
  }
}
.feat-main {
  display: flex;
  flex-direction: column;
  background: var(--color-surface-base);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--duration-fast);
}
.feat-main:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.feat-main__thumb {
  background: linear-gradient(135deg, var(--color-surface-sunken), #e2e8f0);
  display: block;
  color: var(--color-border-default);
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}
.feat-main__thumb a {
  display: block;
  height: 100%;
}
.feat-main__thumb svg {
  width: 52px;
  height: 52px;
  opacity: 0.5;
}
.feat-main__thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
}
.feat-pin {
  position: absolute;
  top: var(--s-3);
  left: var(--s-3);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-xs);
  font-weight: 700;
  background: var(--color-surface-inverse);
  color: white;
  z-index: 2;
}
.feat-pin svg {
  width: 12px;
  height: 12px;
}
.feat-main__body {
  padding: var(--s-6);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.feat-main__title {
  font-family: var(--font-heading);
  font-size: var(--fs-h2);
  font-weight: 800;
  color: var(--color-text-primary);
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0;
}
.feat-main__title a {
  color: inherit;
}
.feat-main__title a:hover {
  color: var(--color-brand-primary);
  text-decoration: none;
}
.feat-main__excerpt {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0;
}

.feat-sides {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}
.feat-side {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: var(--s-4);
  background: var(--color-surface-base);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--duration-fast);
  align-items: center;
  padding: var(--s-3);
}
@media (max-width: 768px) {
  .feat-sides {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s-3);
    padding: var(--s-3);
  }
  .feat-side {
    display: flex;
    flex-direction: column;
    padding: 0;
    gap: 0;
  }
  .feat-side__thumb {
    width: 100%;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
  }
  .feat-side__body {
    padding: var(--s-3);
  }
}
.feat-side:hover {
  border-color: var(--color-brand-primary);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.feat-side__thumb {
  background: linear-gradient(135deg, var(--color-surface-sunken), #e2e8f0);
  display: block;
  color: var(--color-border-default);
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  aspect-ratio: 16 / 9;
}
.feat-side__thumb a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}
.feat-side__thumb svg {
  width: 28px;
  height: 28px;
  opacity: 0.55;
}
.feat-side__thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
}
.feat-side__body {
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
  justify-content: center;
}
.feat-side__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--fs-sm);
  color: var(--color-text-primary);
  line-height: 1.35;
  margin: 0;
}
.feat-side__title a {
  color: inherit;
}
.feat-side__title a:hover {
  color: var(--color-brand-primary);
  text-decoration: none;
}

/* CATEGORIES */
.cats-band {
  background: var(--color-surface-base);
  border-top: 1px solid var(--color-border-subtle);
  border-bottom: 1px solid var(--color-border-subtle);
}
.cat-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-3);
}

@media (max-width: 780px) {
  .cat-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .cat-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
.cat-card {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-4);
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  transition: all var(--duration-fast);
}
.cat-card:hover {
  border-color: var(--color-brand-primary);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transform: translateY(-2px);
}
.cat-card__icon {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  background: var(--color-brand-surface);
  color: var(--color-brand-primary);
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
}
.cat-card__icon svg {
  width: 22px;
  height: 22px;
}
.cat-card__icon svg path {
  fill: currentColor;
}
.cat-card__name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--fs-sm);
  color: var(--color-text-primary);
}
.cat-card__count {
  font-size: var(--fs-xs);
  color: var(--color-text-subtle);
  margin-top: 1px;
}

/* LATEST POSTS */
.posts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-4);
}
@media (max-width: 1024px) {
  .posts {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 768px) {
  .posts {
    grid-template-columns: repeat(2, 1fr);
  }
}
.post-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface-base);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--duration-fast);
}
.post-card:hover {
  border-color: var(--color-brand-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.post-card__thumb {
  background: linear-gradient(135deg, var(--color-surface-sunken), #e2e8f0);
  display: block;
  color: var(--color-border-default);
  position: relative;
  overflow: hidden;
}
.post-card__thumb svg {
  width: 34px;
  height: 34px;
  opacity: 0.55;
}
.post-card__thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
}
.post-card__thumb a,
.feat-main__thumb a,
.feat-side__thumb a {
  display: block;
  width: 100%;
}
.post-card__cat {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: var(--fs-xs);
  font-weight: 700;
  background: var(--color-brand-primary);
  color: white;
  margin-bottom: var(--s-1);
}
.post-card__tag {
  display: inline-block;
  align-self: flex-start;
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-brand-primary);
  margin-bottom: var(--s-1);
}
.post-card__body {
  padding: var(--s-4);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  flex: 1;
}
.post-card__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--fs-base);
  color: var(--color-text-primary);
  line-height: 1.35;
  margin: 0;
}
.post-card__title a {
  color: inherit;
}
.post-card__title a:hover {
  color: var(--color-brand-primary);
  text-decoration: none;
}
.post-card__excerpt {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  line-height: 1.55;
  margin: 0;
  flex: 1;
}
.post-card__readmore {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--color-brand-primary);
  margin-top: auto;
  text-decoration: none;
}
.post-card__readmore:hover {
  text-decoration: underline;
}

/* PAGINATION */
.mitn-blog .navigation.pagination .nav-links {
  display: flex;
  justify-content: center;
  gap: var(--s-2);
  margin-top: var(--s-8);
}
.mitn-blog .navigation.pagination .page-numbers {
  min-width: 40px;
  height: 40px;
  padding: 0 var(--s-3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-default);
  background: var(--color-surface-base);
  font-weight: 700;
  font-size: var(--fs-sm);
  color: var(--color-text-body);
  text-decoration: none;
  transition: all var(--duration-fast);
}
.mitn-blog .navigation.pagination .page-numbers:hover {
  border-color: var(--color-brand-primary);
  color: var(--color-brand-primary);
}
.mitn-blog .navigation.pagination .page-numbers.current {
  background: var(--color-brand-primary);
  border-color: var(--color-brand-primary);
  color: white;
}
.mitn-blog .navigation.pagination .page-numbers.dots {
  background: transparent;
  border-color: transparent;
  color: var(--color-text-muted);
}

/* NEWSLETTER */
.newsletter {
  background: linear-gradient(135deg, var(--color-brand-primary), var(--color-brand-primary-hover));
  border-radius: var(--radius-xl);
  padding: var(--s-10) var(--s-6);
  text-align: center;
  color: white;
}
.newsletter h2 {
  font-family: var(--font-heading);
  font-size: var(--fs-h2);
  font-weight: 800;
  margin: 0 0 var(--s-2);
  color: white;
}
.newsletter p {
  color: rgba(255,255,255,0.9);
  margin: 0 auto var(--s-5);
  max-width: 520px;
}
.newsletter form.wpcf7-form > p,
.newsletter form.wpcf7-form > div,
.newsletter form.wpcf7-form .wpcf7-spinner {
  display: flex;
  gap: var(--s-2);
  max-width: 460px;
  margin-inline: auto;
  flex-wrap: nowrap;
  width: 100%;
}
.newsletter form {
  display: block;
}
.newsletter .wpcf7-form-control-wrap {
  flex: 1;
  min-width: 200px;
}
.newsletter input[type="email"] {
  width: 100%;
  height: 48px;
  padding: 0 var(--s-4);
  border: none;
  border-radius: var(--radius-md);
  font-size: var(--fs-base);
  font-family: var(--font-body);
  color: var(--color-text-primary);
  background: white;
}
.newsletter input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.5);
}
.newsletter button {
  height: 48px;
  padding: 0 var(--s-6);
  background: var(--color-surface-inverse);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-body);
  transition: opacity var(--duration-fast);
}
.newsletter button:hover {
  opacity: 0.9;
}
.newsletter small {
  display: block;
  margin-top: var(--s-3);
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.7);
}

/* ============================================================
   MITN BUTTON COMPONENT (Secondary)
   ============================================================ */
.mitn-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 24px;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  transition: all var(--duration-fast) ease-in-out;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.mitn-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.mitn-btn--secondary {
  background-color: var(--color-surface-base, #ffffff);
  color: var(--color-brand-primary, #dd3333);
  border: 1.5px solid var(--color-brand-primary, #dd3333);
}
.mitn-btn--secondary:hover, .mitn-btn--secondary:active {
  background-color: var(--color-brand-surface, #fef1f1);
  color: var(--color-brand-primary-hover, #c12424);
  border-color: var(--color-brand-primary-hover, #c12424);
  text-decoration: none;
}

/* ============================================================
   ARCHIVE / CATEGORY / TAG PAGE
   ============================================================ */

/* HERO */
.page-hero { background: linear-gradient(160deg, var(--color-surface-inverse), #1e293b); color: white; padding: var(--s-8) 0; }
.breadcrumb { font-size: var(--fs-sm); margin-bottom: var(--s-4); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: var(--s-1); list-style: none; align-items: center; margin: 0; padding: 0;}
.breadcrumb a { color: rgba(255,255,255,0.65); padding: 2px 4px; }
.breadcrumb a:hover { color: white; text-decoration: none; }
.breadcrumb li:not(:last-child)::after { content: '›'; margin-left: var(--s-2); color: rgba(255,255,255,0.4); }
.breadcrumb [aria-current] { color: white; font-weight: 500; }
.hero-eyebrow { font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #fca5a5; margin-bottom: var(--s-2); }
.page-hero__title { font-family: var(--font-heading); font-size: var(--fs-h1); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: var(--s-3); }
.page-hero__desc { color: rgba(255,255,255,0.78); max-width: 680px; line-height: 1.7; margin-bottom: 0;}
.page-hero__count { margin-top: var(--s-4); font-size: var(--fs-sm); color: rgba(255,255,255,0.6); display: inline-flex; align-items: center; gap: 6px; }
.page-hero__count svg { width: 15px; height: 15px; }

/* SUBCATEGORY CHIPS */
.subcats { background: var(--color-surface-base); border-bottom: 1px solid var(--color-border-subtle); }
.subcats__row { display: flex; gap: var(--s-2); padding: var(--s-4) 0; overflow-x: auto; }
.subcat { flex-shrink: 0; height: 36px; padding: 0 var(--s-4); display: inline-flex; align-items: center; border-radius: var(--radius-pill); font-size: var(--fs-sm); font-weight: 600; color: var(--color-text-body); background: var(--color-surface-sunken); border: 1px solid transparent; white-space: nowrap; }
.subcat:hover { color: var(--color-brand-primary); text-decoration: none; background: var(--color-brand-surface); }
.subcat.is-active { background: var(--color-brand-primary); color: white; }
.subcat.is-active:hover { background: var(--color-brand-primary-hover); color: white; }

/* MOBILE CATEGORY ACTIONS & MODAL */
.subcat-actions { display: none; }
.subcat-modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 9999; align-items: flex-end; justify-content: center; }
.subcat-modal__content { background: white; width: 100%; border-radius: 20px 20px 0 0; padding: 20px; animation: slideUp 0.3s ease; }
.subcat-modal__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.subcat-modal__head h3 { margin: 0; font-size: 18px; font-weight: 700; }
.subcat-modal__close { background: none; border: none; font-size: 24px; font-weight: bold; cursor: pointer; padding: 0; line-height: 1; }
.subcat-modal__body { display: flex; flex-wrap: wrap; gap: 10px; }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

@media (max-width: 920px) {
  /* Hide the scrollable tags on mobile */
  .subcats__row > a.subcat { display: none; }
  
  .subcat-actions {
    display: flex; gap: 8px; width: 100%; justify-content: flex-start;
  }
  .subcat-action-btn {
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    background: var(--color-brand-primary); color: white;
    border: none; border-radius: 20px; height: 34px; padding: 0 14px; gap: 6px;
    box-shadow: 0 2px 5px rgba(220, 38, 38, 0.4); cursor: pointer;
    font-size: 13px; font-weight: 600; font-family: inherit;
  }
  .subcat-action-btn i { font-size: 14px; }
}

/* LAYOUT */
.blog-grid { display: grid; grid-template-columns: 1fr 320px; gap: var(--s-8); padding: var(--s-8) 0 var(--s-12); align-items: start; }
@media (max-width: 920px) { .blog-grid { grid-template-columns: 1fr; gap: var(--s-6); } }

/* FEATURED */
.featured { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; background: var(--color-surface-base); border: 1px solid var(--color-border-subtle); border-radius: var(--radius-xl); overflow: hidden; margin-bottom: var(--s-6); transition: all var(--duration-fast); }
.featured:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
@media (max-width: 768px) { .featured { grid-template-columns: 1fr; } }
.featured__thumb { aspect-ratio: 4 / 3; background: linear-gradient(135deg, var(--color-surface-sunken), #e2e8f0); display: grid; place-items: center; color: var(--color-border-default); position: relative; }
.featured__thumb svg { width: 48px; height: 48px; opacity: 0.55; }
.featured__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.featured__pin { position: absolute; top: var(--s-3); left: var(--s-3); display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: var(--radius-pill); font-size: var(--fs-xs); font-weight: 700; background: var(--color-surface-inverse); color: white; z-index: 2; }
.featured__pin svg { width: 12px; height: 12px; }
.featured__body { padding: var(--s-6); display: flex; flex-direction: column; gap: var(--s-3); }
.featured__cat { font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-brand-primary); }
.featured__title { font-family: var(--font-heading); font-size: var(--fs-h2); font-weight: 800; color: var(--color-text-primary); line-height: 1.25; letter-spacing: -0.01em; margin: 0; }
.featured__title a { color: inherit; }
.featured__title a:hover { color: var(--color-brand-primary); text-decoration: none; }
.featured__excerpt { font-size: var(--fs-sm); color: var(--color-text-muted); line-height: 1.6; flex: 1; margin: 0; }

/* POST GRID */
.blog-grid .posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
@media (max-width: 1024px) { .blog-grid .posts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .blog-grid .posts { grid-template-columns: repeat(2, 1fr); gap: var(--s-3); } }
.post-card { display: flex; flex-direction: column; background: var(--color-surface-base); border: 1px solid var(--color-border-subtle); border-radius: var(--radius-lg); overflow: hidden; transition: all var(--duration-fast); }
.post-card:hover { border-color: var(--color-brand-primary); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.post-card__thumb { aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--color-surface-sunken), #e2e8f0); display: grid; place-items: center; color: var(--color-border-default); position: relative; }
.post-card__thumb svg { width: 34px; height: 34px; opacity: 0.55; }
.post-card__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.post-card__cat { position: absolute; top: var(--s-3); left: var(--s-3); padding: 3px 10px; border-radius: var(--radius-pill); font-size: var(--fs-xs); font-weight: 700; background: var(--color-brand-primary); color: white; z-index: 2; }
.post-card__body { padding: var(--s-4); display: flex; flex-direction: column; gap: var(--s-2); flex: 1; }
.post-card__title { font-family: var(--font-heading); font-weight: 700; font-size: var(--fs-base); color: var(--color-text-primary); line-height: 1.35; margin: 0; }
.post-card__title a { color: inherit; }
.post-card__title a:hover { color: var(--color-brand-primary); text-decoration: none; }
.post-card__excerpt { font-size: var(--fs-sm); color: var(--color-text-muted); line-height: 1.55; flex: 1; margin: 0; }
@media (max-width: 920px) {
  .post-card__title { font-size: var(--fs-base); }
  .post-card__excerpt { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: normal; }
}

/* SIDEBAR */
.sidebar { position: sticky; top: var(--s-8); display: flex; flex-direction: column; gap: var(--s-6); }
.sidebar-close { display: none; position: absolute; top: var(--s-4); right: var(--s-4); background: none; border: none; font-size: 24px; font-weight: bold; cursor: pointer; color: var(--color-text-primary); z-index: 10; }
.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 9998; }

@media (max-width: 920px) {
  .sidebar {
    position: fixed; top: 0; bottom: 0; right: 0; width: 320px; max-width: 85vw;
    background: white; z-index: 9999; padding: var(--s-6); overflow-y: auto;
    transform: translateX(100%); transition: transform 0.3s ease; box-shadow: -5px 0 20px rgba(0,0,0,0.1);
  }
  .sidebar.is-open { transform: translateX(0); }
  .sidebar-close { display: block; }
  .sidebar.is-open ~ .sidebar-overlay { display: block; }
}

.widget { background: var(--color-surface-base); border: 1px solid var(--color-border-subtle); border-radius: var(--radius-lg); padding: var(--s-5); }
.widget__title { font-family: var(--font-heading); font-size: var(--fs-h3); font-weight: 800; color: var(--color-text-primary); margin-bottom: var(--s-4); letter-spacing: -0.01em; }
.search-box { display: flex; gap: var(--s-2); }
.search-box input { flex: 1; height: 44px; padding: 0 var(--s-3); background: var(--color-surface-raised); border: 1px solid var(--color-border-default); border-radius: var(--radius-md); font-size: var(--fs-sm); font-family: var(--font-body); }
.search-box input:focus { outline: none; border-color: var(--color-border-default); background: var(--color-surface-base); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.search-box button { width: 44px; height: 44px; flex-shrink: 0; background: var(--color-brand-primary); color: white; border: none; border-radius: var(--radius-md); cursor: pointer; display: grid; place-items: center; }
.search-box button:hover { background: var(--color-brand-primary-hover); }
.search-box button svg { width: 18px; height: 18px; }

.cat-list { list-style: none; display: flex; flex-direction: column; margin: 0; padding: 0; }
.cat-list li { border-bottom: 1px solid var(--color-border-subtle); }
.cat-list li:last-child { border-bottom: none; }
.cat-list a { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: var(--s-3) 0; font-size: var(--fs-sm); font-weight: 600; color: var(--color-text-body); }
.cat-list a:hover { color: var(--color-brand-primary); text-decoration: none; }
.cat-list .count { font-size: var(--fs-xs); font-weight: 700; color: var(--color-text-subtle); background: var(--color-surface-sunken); border-radius: var(--radius-pill); padding: 2px 9px; min-width: 28px; text-align: center; }
.cat-list a:hover .count { background: var(--color-brand-surface); color: var(--color-brand-primary); }

.pop-list { display: flex; flex-direction: column; gap: var(--s-4); }
.pop-item { display: flex; gap: var(--s-3); align-items: flex-start; }
.pop-item__thumb { width: 64px; height: 56px; flex-shrink: 0; border-radius: var(--radius-md); background: linear-gradient(135deg, var(--color-surface-sunken), #e2e8f0); display: grid; place-items: center; color: var(--color-border-default); overflow: hidden; }
.pop-item__thumb svg { width: 20px; height: 20px; opacity: 0.6; }
.pop-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.pop-item__title { font-size: var(--fs-sm); font-weight: 600; color: var(--color-text-primary); line-height: 1.4; }
.pop-item__title a { color: inherit; }
.pop-item__title a:hover { color: var(--color-brand-primary); text-decoration: none; }
.pop-item__date { font-size: var(--fs-xs); color: var(--color-text-subtle); margin-top: 4px; }

.widget--cta { background: linear-gradient(135deg, var(--color-brand-primary), var(--color-brand-primary-hover)); color: white; text-align: center; }
.widget--cta .widget__title { color: white; }
.widget--cta p { font-size: var(--fs-sm); color: rgba(255,255,255,0.9); margin-bottom: var(--s-4); line-height: 1.6; }
.widget--cta a { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); height: 44px; padding: 0 var(--s-5); background: white; color: var(--color-brand-primary); border-radius: var(--radius-md); font-weight: 700; font-size: var(--fs-sm); }
.widget--cta a:hover { text-decoration: none; opacity: 0.92; }
.widget--cta a svg { width: 16px; height: 16px; }
