/* ===== Resource Center Listing Styles ===== */

/* --- Compact Header Bar --- */
.rc-header {
  background: var(--navy) url('/images/hex-hero-bg.jpg') center / cover no-repeat;
  padding: 130px 0 44px;
  text-align: center;
  position: relative;
}




.rc-header-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.rc-header h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.rc-header p {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 900px;
  margin: 0;
  white-space: nowrap;
}

/* --- Full-width Ticker Tape Divider --- */
.ticker-divider {
  width: 100%;
  overflow: hidden;
}

.ticker-divider .tradingview-widget-container {
  min-height: 46px;
  /* Clip the bottom blue bar injected by TradingView */
  margin-bottom: -5px;
  clip-path: inset(0 0 5px 0);
}

.market-news {
  margin-bottom: 40px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

.market-news .tradingview-widget-container {
  min-height: 400px;
}


/* --- Featured Article Spread --- */
.featured-spread-section {
  padding-top: 24px;
  padding-bottom: 0;
}

/* Tighter spacing between sections on resources page */
#resources-content {
  padding-top: 40px;
  padding-bottom: 20px;
}

.featured-spread {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 24px;
  min-height: 420px;
}

/* Big Featured Card */
.featured-card {
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.featured-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(10, 25, 47, 0.12);
  border-color: var(--teal);
}

.featured-card-image {
  width: 100%;
  height: 280px;
  overflow: hidden;
}

.featured-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.featured-card:hover .featured-card-image img {
  transform: scale(1.04);
}

.featured-card-body {
  padding: 28px 32px 32px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.featured-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #d97706;
  background: rgba(217, 119, 6, 0.08);
  padding: 4px 10px;
  border-radius: 20px;
}

.featured-badge .material-symbols-outlined {
  font-size: 14px;
}

.featured-card h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 12px;
}

.featured-card p {
  font-size: 1rem;
  color: #64748b;
  line-height: 1.65;
  flex-grow: 1;
  margin-bottom: 16px;
}

.featured-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 12px;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
}

/* Sidebar Articles */
.sidebar-articles {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  align-items: center;
  background: white;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  padding: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  flex: 1;
  min-height: 0;
}

.sidebar-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(10, 25, 47, 0.08);
  border-color: var(--teal);
}

.sidebar-card-image {
  width: 120px;
  height: 100%;
  min-height: 100px;
  overflow: hidden;
}

.sidebar-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.sidebar-card:hover .sidebar-card-image img {
  transform: scale(1.06);
}

.sidebar-card-body {
  padding: 16px 20px 16px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-card-body .resource-category {
  align-self: flex-start;
  font-size: 10px;
  padding: 3px 8px;
}

.sidebar-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sidebar-card-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: #94a3b8;
}


/* --- Section Header Overrides --- */
.market-intel-section .section-header,
#resources-content .section-header,
.market-news-section .section-header {
  margin-bottom: 32px;
}

#resources-content .section-header h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0;
}

.market-intel-section .section-header > .material-symbols-outlined,
#resources-content .section-header > .material-symbols-outlined,
.market-news-section .section-header > .material-symbols-outlined {
  font-size: 36px;
  color: var(--blue);
  margin-bottom: 8px;
  display: block;
}

.market-news-section {
  padding-top: 32px;
  padding-bottom: 40px;
}



/* --- Tab Filter Bar --- */
.resource-tabs {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 32px;
  flex-wrap: wrap;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 0;
}

.resource-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.resource-tab .material-symbols-outlined {
  font-size: 18px;
}

.resource-tab:hover {
  color: var(--navy);
}

.resource-tab.active {
  color: var(--teal);
  border-bottom-color: var(--teal);
}


/* --- Resource Cards Grid --- */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
  padding-bottom: 40px;
}

.resource-card {
  background: white;
  border-radius: 16px;
  padding: 0;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.resource-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(10, 25, 47, 0.10);
  border-color: var(--teal);
}

.resource-card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.resource-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.resource-card:hover .resource-card-image img {
  transform: scale(1.05);
}

.resource-card-body {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.resource-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.resource-category {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Category colors */
.resource-category[data-cat="shipping-101"] {
  background: rgba(30, 144, 255, 0.1);
  color: var(--blue);
}

.resource-category[data-cat="industry-news"] {
  background: rgba(255, 152, 0, 0.1);
  color: #e67e00;
}

.resource-category[data-cat="insights"] {
  background: rgba(0, 191, 165, 0.1);
  color: var(--teal);
}

.resource-category[data-cat="industry-trends"] {
  background: rgba(156, 39, 176, 0.1);
  color: #8e24aa;
}

.resource-read-time {
  font-size: 13px;
  color: #94a3b8;
}

.resource-card h3 {
  font-size: 1.2rem;
  color: var(--navy);
  line-height: 1.35;
  margin-bottom: 10px;
  font-weight: 600;
}

.resource-card p {
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 16px;
}

.resource-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 12px;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
}

.resource-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--teal);
  transition: gap 0.2s ease;
}

.resource-card:hover .resource-card-link,
.featured-card:hover .resource-card-link {
  gap: 10px;
}

.resource-card-link .material-symbols-outlined {
  font-size: 18px;
}


/* --- Show More Button --- */
.show-more-wrap {
  display: flex;
  justify-content: center;
  padding: 20px 0 40px;
}

.show-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 600;
  color: var(--teal);
  background: transparent;
  border: 2px solid var(--teal);
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.show-more-btn:hover {
  background: var(--teal);
  color: white;
  transform: translateY(-2px);
}

.show-more-btn .material-symbols-outlined {
  font-size: 20px;
}


/* --- Responsive --- */
@media (max-width: 900px) {
  .featured-spread {
    grid-template-columns: 1fr;
  }

  .sidebar-articles {
    flex-direction: row;
    overflow-x: auto;
    gap: 12px;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }

  .sidebar-card {
    min-width: 280px;
    flex: 0 0 auto;
  }
}

@media (max-width: 640px) {
  .rc-header h1 {
    font-size: 1.5rem;
  }

  .rc-header p {
    font-size: 0.9rem;
  }

  .featured-card-image {
    height: 200px;
  }

  .featured-card h2 {
    font-size: 1.3rem;
  }

  .resources-grid {
    grid-template-columns: 1fr;
  }

  .resource-tabs {
    gap: 0;
  }

  .resource-tab {
    padding: 10px 14px;
    font-size: 13px;
  }

  .sidebar-articles {
    flex-direction: column;
  }

  .sidebar-card {
    min-width: unset;
  }

  .market-intel-header p {
    white-space: normal;
  }
}
