/* ============================================================
   blog.css
   All styles for the Blog & Resources page, including the hero,
   search bar, category filters, featured article, article grid,
   press section, and newsletter strip.
   ============================================================ */

/* --- Blog hero --- */
.blog-hero {
  background: var(--navy);
  padding: 72px 48px 56px;
}
.blog-hero__inner {
  max-width: 1300px;
  margin: 0 auto;
}

/* --- Eyebrow --- */
.blog-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.blog-hero__eyebrow span {
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* --- Headline --- */
.blog-hero h1 {
  color: var(--od);
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -1.2px;
  line-height: 1.08;
  margin-bottom: 16px;
}
.blog-hero h1 strong { color: var(--blue); }

/* --- Subtitle --- */
.blog-hero__subtitle {
  color: var(--od-m);
  font-size: 16px;
  max-width: 560px;
  line-height: 1.75;
  margin-bottom: 36px;
}

/* --- Search wrapper --- */
.blog-search-wrapper {
  max-width: 1300px;
  margin: 0 auto;
  padding-bottom: 8px;
}

/* --- Search input row --- */
.blog-search {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  padding: 12px 18px;
  max-width: 480px;
}
.blog-search i {
  color: rgba(255,255,255,0.5);
  font-size: 18px;
  flex-shrink: 0;
}
.blog-search input {
  background: none;
  border: none;
  outline: none;
  color: var(--od);
  font-size: 14px;
  font-family: inherit;
  width: 100%;
}
.blog-search input::placeholder { color: rgba(255,255,255,0.4); }

/* --- Category filter bar --- */
.blog-filters {
  background: var(--navy2);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 16px 32px;
}
.blog-filters__inner {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* --- Filter pill button --- */
.blog-filter-btn {
  background: none;
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--od-m);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.blog-filter-btn:hover {
  border-color: rgba(255,255,255,0.5);
  color: var(--od);
}
.blog-filter-btn--active {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

/* --- Blog body container --- */
.blog-body {
  padding: 56px 48px 0;
  background: var(--white);
}
.blog-body__inner {
  max-width: 1300px;
  margin: 0 auto;
}

/* --- Featured article --- */
.blog-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--border);
}

/* --- Featured image link --- */
.blog-featured__image-link {
  border-radius: 10px;
  overflow: hidden;
  display: block;
  flex-shrink: 0;
}
.blog-featured__image-link img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}
.blog-featured__image-link:hover img { transform: scale(1.02); }

/* --- Featured body --- */
.blog-featured__body {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* --- Featured title --- */
.blog-featured__title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin: 12px 0;
}
.blog-featured__title a { color: var(--text); text-decoration: none; }
.blog-featured__title a:hover { color: var(--blue); }

/* --- Featured description --- */
.blog-featured__description {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 16px;
}

/* --- Meta line (date · read time) --- */
.blog-meta {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 20px;
}

/* --- Read article button --- */
.blog-read-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--blue);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.15s;
  align-self: flex-start;
}
.blog-read-btn:hover { background: var(--blue2); }

/* --- Category pill --- */
.blog-category {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 0;
}
.blog-category--mining {
  background: rgba(29,158,117,0.12);
  color: #0E7A5A;
  border: 1px solid rgba(29,158,117,0.25);
}
.blog-category--logistics {
  background: rgba(24,95,165,0.1);
  color: #0C4A8A;
  border: 1px solid rgba(24,95,165,0.2);
}
.blog-category--hospitality {
  background: rgba(153,53,86,0.1);
  color: #7A2340;
  border: 1px solid rgba(153,53,86,0.2);
}
.blog-category--platform {
  background: rgba(0,174,255,0.1);
  color: #005A8A;
  border: 1px solid rgba(0,174,255,0.2);
}

/* --- Section label --- */
.blog-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
  padding-top: 8px;
}

/* --- Article grid --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 16px;
}

/* --- Blog card --- */
.blog-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--white);
  transition: border-color 0.15s;
  display: flex;
  flex-direction: column;
}
.blog-card:hover { border-color: #B0BAD0; }
.blog-card.hidden { display: none; }

/* --- Card image link --- */
.blog-card__image-link {
  display: block;
  overflow: hidden;
  flex-shrink: 0;
}
.blog-card__image-link img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}
.blog-card__image-link:hover img { transform: scale(1.03); }

/* --- Card body --- */
.blog-card__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

/* --- Card title --- */
.blog-card__title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.2px;
}
.blog-card__title a { color: var(--text); text-decoration: none; }
.blog-card__title a:hover { color: var(--blue); }

/* --- Card description --- */
.blog-card__description {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  flex: 1;
}

/* --- Press grid --- */
.press-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 56px;
}

/* --- Press item --- */
.press-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  background: var(--white);
}
.press-item__source {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.press-item h4 {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
}
.press-item h4 a { color: var(--text); text-decoration: none; }
.press-item h4 a:hover { color: var(--blue); }
.press-item p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* --- Newsletter strip --- */
.newsletter-strip {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 36px;
  display: flex;
  align-items: center;
  gap: 28px;
  margin-bottom: 64px;
  flex-wrap: wrap;
}
.newsletter-strip__icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 22px;
  flex-shrink: 0;
}
.newsletter-strip h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.newsletter-strip p {
  font-size: 13px;
  color: var(--muted);
}
.newsletter-strip > div:nth-child(2) {
  flex: 1;
  min-width: 200px;
}

/* --- Newsletter form --- */
.newsletter-form {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}
.newsletter-form input {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 16px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  width: 220px;
  color: var(--text);
}
.newsletter-form input:focus { border-color: var(--blue); }

/* --- Responsive overrides --- */
@media (max-width: 900px) {
  .blog-featured { grid-template-columns: 1fr; }
  .blog-featured__image-link img { height: 240px; }
  .blog-grid, .press-grid { grid-template-columns: 1fr 1fr; }
  .blog-hero, .blog-body, .blog-filters { padding-left: 24px; padding-right: 24px; }
  .newsletter-strip { padding: 24px; }
  .newsletter-form { width: 100%; }
  .newsletter-form input { flex: 1; width: auto; }
}
@media (max-width: 600px) {
  .blog-grid, .press-grid { grid-template-columns: 1fr; }
  .blog-hero h1 { font-size: 32px; }
}
