@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Outfit:wght@400;500;600;700&display=swap');

:root {
  --bento-font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --bento-font-heading: 'Outfit', 'Plus Jakarta Sans', -apple-system, sans-serif;
  --bento-bg: #ffffff;
  --bento-card-bg: #ffffff;
  --bento-text-main: #0f172a;
  --bento-text-muted: #64748b;
  --bento-text-light: #94a3b8;
  --bento-accent-dark: #09090b;
  --bento-radius-lg: 28px;
  --bento-radius-md: 20px;
  --bento-radius-sm: 14px;
  --bento-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --bento-shadow-md: 0 10px 30px -5px rgba(0, 0, 0, 0.08);
  --bento-shadow-float: 0 16px 36px -4px rgba(0, 0, 0, 0.12), 0 0 1px rgba(0, 0, 0, 0.08);
}

body.bento-homepage-body {
  font-family: var(--bento-font-sans);
  background-color: #ffffff !important;
  color: var(--bento-text-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body.bento-homepage-body footer {
  background-color: #ffffff !important;
  background: #ffffff !important;
  padding: 14px 0 !important;
  margin-top: 28px !important;
}

.bento-page-wrapper {
  max-width: 1360px;
  margin: 0 auto;
  padding: 32px 24px 20px 24px;
}

.footer-menu {
  margin: 0 !important;
  padding: 0 !important;
}

.footer-menu a {
  font-size: 12px !important;
  font-weight: 500 !important;
  color: #64748b !important;
  padding: 4px 6px !important;
  text-decoration: none !important;
  transition: color 0.2s ease;
}

.footer-menu a:hover {
  color: #0f172a !important;
  text-decoration: underline !important;
}

/* Header / Navigation bar for homepage */
.bento-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0 32px 0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  margin-bottom: 32px;
}

.bento-brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--bento-text-main);
  font-family: var(--bento-font-heading);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.bento-nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.bento-nav-links a {
  text-decoration: none;
  color: var(--bento-text-muted);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.bento-nav-links a:hover,
.bento-nav-links a.active {
  color: var(--bento-text-main);
  font-weight: 600;
}

/* 3-Column Bento Grid */
.editorial-bento-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.35fr 1fr;
  gap: 32px;
  align-items: stretch;
}

/* Section Header Bar */
.bento-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.bento-section-title-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--bento-font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--bento-text-main);
  cursor: pointer;
  user-select: none;
  text-decoration: none;
}

.bento-section-title-wrap .chevron-icon {
  font-size: 12px;
  color: var(--bento-text-muted);
  transition: transform 0.2s ease;
}

.bento-section-title-wrap:hover .chevron-icon {
  transform: translateY(1px);
}

.bento-view-all-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--bento-text-main);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.bento-view-all-link:hover {
  opacity: 0.75;
  color: var(--bento-text-main);
}

/* Column Wrappers */
.bento-col {
  display: flex;
  flex-direction: column;
}

.bento-col-left {
  display: flex;
  flex-direction: column;
}

.bento-col-middle {
  display: flex;
  flex-direction: column;
  justify-content: stretch;
}

.bento-col-right {
  display: flex;
  flex-direction: column;
}

/* Card with Image Overlay */
.bento-card-media-overlay {
  position: relative;
  border-radius: var(--bento-radius-md);
  overflow: hidden;
  background-color: #0f172a;
  aspect-ratio: 16 / 10;
  box-shadow: var(--bento-shadow-sm);
  display: block;
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.bento-card-media-overlay:hover {
  transform: translateY(-3px);
  box-shadow: var(--bento-shadow-md);
}

.bento-card-media-overlay .media-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-card-media-overlay:hover .media-bg-img {
  transform: scale(1.04);
}

.bento-card-media-overlay .media-gradient-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.2) 40%, rgba(0, 0, 0, 0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px 20px;
}

.media-meta-author {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 6px;
}

.media-meta-author .author-dot {
  width: 6px;
  height: 6px;
  background-color: #22c55e;
  border-radius: 50%;
  display: inline-block;
}

.media-overlay-title {
  font-family: var(--bento-font-heading);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Left Bottom Article Feature */
.bento-article-feature {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.bento-feature-meta-header {
  margin-bottom: 12px;
}

.bento-author-line {
  font-size: 14px;
  font-weight: 700;
  color: var(--bento-text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}

.bento-author-line .time-ago {
  font-weight: 400;
  color: var(--bento-text-muted);
}

.bento-secondary-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--bento-text-muted);
  margin-top: 4px;
}

.bento-heading-lg {
  font-family: var(--bento-font-heading);
  font-size: 26px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.5px;
  color: var(--bento-text-main);
  margin: 0 0 14px 0;
}

.bento-heading-lg a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.bento-heading-lg a:hover {
  color: #2563eb;
}

.bento-excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: var(--bento-text-muted);
  margin: 0 0 24px 0;
}

.bento-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  background-color: #000000;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  border-radius: 9999px;
  text-decoration: none;
  width: fit-content;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-btn-primary:hover {
  background-color: #27272a;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Centerpiece Tall Hero Card */
.bento-hero-centerpiece {
  position: relative;
  border-radius: var(--bento-radius-lg);
  overflow: hidden;
  height: 100%;
  min-height: 580px;
  box-shadow: var(--bento-shadow-md);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-color: #18181b;
  text-decoration: none;
}

.hero-main-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-hero-centerpiece:hover .hero-main-img {
  transform: scale(1.03);
}

/* Floating interactive overlay at bottom of hero card */
.bento-hero-floating-dock {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  padding: 18px 20px;
  box-sizing: border-box;
}

.dock-pill-stats {
  display: inline-flex;
  align-items: center;
  width: auto;
  max-width: fit-content;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.45);
  padding: 8px 18px 8px 10px;
  border-radius: 9999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  gap: 10px;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

.dock-pill-stats .avatar-stack-img {
  margin: 0;
  border: 1.5px solid #ffffff;
  display: block;
}

.bento-hero-centerpiece:hover .dock-pill-stats {
  background: rgba(255, 255, 255, 0.98);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

.avatar-stack-group {
  display: flex;
  align-items: center;
  margin-right: 4px;
}

.avatar-stack-img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  margin-left: -8px;
  background-color: #e2e8f0;
  object-fit: cover;
  display: inline-block;
}

.avatar-stack-img:first-child {
  margin-left: 0;
}

.avatar-stack-plus {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  margin-left: -8px;
  background-color: #94a3b8;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.stat-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
  line-height: 1.2;
}

/* Accessible SEO Landmark Heading */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.stat-item svg,
.stat-item i {
  font-size: 14px;
}

.dock-pill-author {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 8px 18px;
  border-radius: 9999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  gap: 10px;
}

.dock-author-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #ffffff;
}

.dock-author-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.dock-author-label {
  font-size: 10px;
  font-weight: 500;
  color: var(--bento-text-muted);
  text-transform: capitalize;
  line-height: 1.1;
}

.dock-author-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--bento-text-main);
  line-height: 1.2;
}

/* Right Column Articles List */
.bento-article-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 26px;
}

.bento-list-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
}

.bento-list-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.bento-list-item-title {
  font-family: var(--bento-font-heading);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--bento-text-main);
  margin: 0;
}

.bento-list-item-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.bento-list-item-title a:hover {
  color: #2563eb;
}

.bento-read-more-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--bento-text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-top: 2px;
  width: fit-content;
  transition: color 0.2s ease;
}

.bento-read-more-link:hover {
  color: var(--bento-text-main);
}

/* Responsive Media Queries */
@media (max-width: 1100px) {
  .editorial-bento-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  
  .bento-col-middle {
    grid-column: span 2;
    order: -1;
  }

  .bento-hero-centerpiece {
    min-height: 440px;
  }
}

@media (max-width: 768px) {
  .editorial-bento-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .bento-col-middle {
    grid-column: span 1;
    order: 0;
  }

  .bento-hero-centerpiece {
    min-height: 380px;
  }

  .bento-page-wrapper {
    padding: 16px 16px 48px 16px;
  }

  .bento-heading-lg {
    font-size: 22px;
  }

  .bento-hero-floating-dock {
    flex-wrap: wrap;
    justify-content: center;
  }
}

