/* ============================================================
   NEWS PAGE — U.S. Customs Portal
   ============================================================ */

/* Page Hero */
.cbp-page-hero {
  position: relative;
  padding: 4rem 0 3rem;
  overflow: hidden;
}
.cbp-page-hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      160deg,
      rgba(0, 19, 38, 0.92) 0%,
      rgba(0, 51, 102, 0.85) 100%
    ),
    url("mainx.PNG") center/cover no-repeat;
}

.cbp-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1rem;
}
.cbp-breadcrumb a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.2s;
}
.cbp-breadcrumb a:hover {
  color: var(--cbp-gold);
}
.cbp-breadcrumb i {
  font-size: 0.65rem;
}
.cbp-breadcrumb span {
  color: rgba(255, 255, 255, 0.9);
}

.cbp-page-title {
  font-size: 2.4rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}
.cbp-page-subtitle {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  margin: 0;
}

/* Pressroom Intro */
.cbp-pressroom-intro {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 2rem;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}
.cbp-pressroom-icon {
  width: 60px;
  height: 60px;
  background: var(--cbp-navy);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cbp-gold);
  font-size: 1.5rem;
  flex-shrink: 0;
}

/* News Articles */
.cbp-news-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cbp-news-article {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--gray-200);
  transition: var(--transition);
}
.cbp-news-article:last-child {
  border-bottom: none;
}
.cbp-news-article:hover {
  transform: translateX(4px);
}

.cbp-news-article-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-width: 52px;
  background: var(--cbp-navy);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.4rem;
  text-align: center;
  flex-shrink: 0;
  height: fit-content;
}
.cbp-news-day {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--cbp-gold);
  line-height: 1;
}
.cbp-news-month {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.2rem;
}

.cbp-news-article-body {
  flex: 1;
}
.cbp-news-article-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  line-height: 1.4;
}
.cbp-news-article-title a {
  color: var(--cbp-navy);
  text-decoration: none;
  transition: color 0.2s;
}
.cbp-news-article-title a:hover {
  color: var(--cbp-gold);
}
.cbp-news-article-excerpt {
  font-size: 0.85rem;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}
.cbp-news-read-more {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--cbp-blue);
  text-decoration: none;
  transition: color 0.2s;
}
.cbp-news-read-more:hover {
  color: var(--cbp-gold);
}

/* Social Feed */
.cbp-social-feed {
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  max-height: 600px;
  overflow-y: auto;
}
.cbp-social-feed::-webkit-scrollbar {
  width: 4px;
}
.cbp-social-feed::-webkit-scrollbar-track {
  background: var(--gray-100);
}
.cbp-social-feed::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: 2px;
}

.cbp-tweet {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--gray-100);
  transition: background 0.2s;
}
.cbp-tweet:last-child {
  border-bottom: none;
}
.cbp-tweet:hover {
  background: var(--gray-50);
}

.cbp-tweet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}
.cbp-tweet-author {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.cbp-tweet-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--cbp-navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
}
.cbp-tweet-author strong {
  font-size: 0.9rem;
  color: var(--gray-900);
}
.cbp-tweet-handle {
  font-size: 0.75rem;
  color: var(--gray-500);
  display: block;
}
.cbp-tweet-icon {
  color: #1da1f2;
  font-size: 1.2rem;
}
.cbp-tweet-body {
  font-size: 0.88rem;
  color: var(--gray-700);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}
.cbp-hashtag {
  color: var(--cbp-blue);
  font-weight: 600;
  text-decoration: none;
}
.cbp-hashtag:hover {
  text-decoration: underline;
}
.cbp-tweet-img {
  width: 100%;
  border-radius: var(--radius-sm);
  object-fit: cover;
  max-height: 180px;
}

/* Resource Cards */
.cbp-resource-card {
  transition: var(--transition);
}
.cbp-resource-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Spinner */
.cbp-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--cbp-navy);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 768px) {
  .cbp-page-title {
    font-size: 1.8rem;
  }
  .cbp-pressroom-intro {
    flex-direction: column;
  }
  .cbp-news-article {
    flex-direction: column;
    gap: 0.75rem;
  }
  .cbp-news-article-date {
    flex-direction: row;
    gap: 0.5rem;
    width: auto;
    padding: 0.4rem 0.75rem;
  }
}
