/*
Theme Name: CRM News Today
Theme URI:
Author: CRM News Today
Author URI:
Description: Minimal modern pastel news theme for CRM News Today.
Version: 1.0.0
Text Domain: crm-news-today
*/

:root {
  --bg: #ffffff;
  --text: #000000;
  --muted: #333333;
  --line: #e7eaf2;
  --pastel-blue: #f3f7ff;
  --pastel-mint: #f2fbf7;
  --pastel-peach: #fff8f2;
  --pastel-lilac: #f7f3ff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.2rem;
}

.site-header {
  width: 100%;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.header-inner {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 64px;
  box-sizing: border-box;
}

.site-title {
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: #000000;
  padding: 0.2rem 0.45rem;
  border: 1px solid var(--line);
  background: linear-gradient(90deg, var(--pastel-blue) 0%, var(--pastel-mint) 48%, var(--pastel-peach) 100%);
}

.header-note {
  color: #000000;
  font-size: 0.8rem;
  font-weight: 400;
}

/* Full-width intro strip under header */
.hero-band {
  width: 100%;
  margin: 0;
  padding: 1.35rem 0 1.25rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, var(--pastel-blue) 0%, #fff 35%, var(--pastel-mint) 70%, #fff 100%);
  box-sizing: border-box;
}

.hero-band-inner {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  box-sizing: border-box;
}

.hero-kicker {
  margin: 0;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #000000;
  font-weight: 500;
}

.hero-lead {
  margin: 0.5rem 0 0;
  color: #000000;
  max-width: 56rem;
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.5;
}

.crm-hashtags {
  margin-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.crm-tag {
  border: 1px solid var(--line);
  padding: 0.32rem 0.56rem;
  font-size: 0.76rem;
  font-weight: 400;
  color: #000000;
  background: var(--pastel-blue);
}

.crm-tag:nth-child(3n + 2) {
  background: var(--pastel-mint);
}

.crm-tag:nth-child(3n + 3) {
  background: var(--pastel-peach);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 1rem 0;
}

.news-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--pastel-blue) 0, #fff 26px);
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  min-height: 190px;
}

.news-source {
  margin: 0 0 0.4rem;
  color: #000000;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  opacity: 0.75;
}

.news-title {
  margin: 0 0 0.55rem;
  line-height: 1.42;
  font-size: 0.94rem;
  font-weight: 500;
  color: #000000;
}

.news-excerpt {
  margin: 0;
  color: #000000;
  line-height: 1.52;
  font-size: 0.84rem;
  font-weight: 400;
  opacity: 0.92;
}

.news-link {
  margin-top: auto;
  padding-top: 0.75rem;
  font-weight: 500;
  font-size: 0.78rem;
  color: #000000;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(0, 0, 0, 0.3);
}

.crm-directory {
  margin: 2rem 0;
  border-top: 1px solid var(--line);
  padding-top: 1.2rem;
}

.crm-directory h2 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 500;
  color: #000000;
}

.crm-directory-note {
  margin: 0.45rem 0 0.9rem;
  color: #000000;
  font-size: 0.78rem;
  font-weight: 400;
  opacity: 0.8;
}

.all-crms-wrap {
  margin-top: 0.8rem;
}

.see-all-btn {
  margin-top: 1rem;
  border: 1px solid var(--line);
  background: var(--pastel-lilac);
  color: #000000;
  padding: 0.42rem 0.68rem;
  font-size: 0.76rem;
  font-weight: 400;
  cursor: pointer;
  display: inline-block;
  user-select: none;
}

.crm-toggle {
  margin-top: 0.5rem;
}

.crm-toggle summary {
  list-style: none;
}

.crm-toggle summary::-webkit-details-marker {
  display: none;
}

.crm-toggle[open] .see-all-btn {
  background: var(--pastel-mint);
}

.pagination {
  display: flex;
  margin: 1.7rem 0 2rem;
}

.pagination .page-numbers {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
}

.pagination a.page-numbers,
.pagination span.page-numbers {
  border: 1px solid var(--line);
  padding: 0.38rem 0.6rem;
  font-size: 0.76rem;
  display: inline-block;
  color: #000000;
  font-weight: 400;
}

.pagination .page-numbers.current {
  background: var(--pastel-blue);
  font-weight: 500;
}

.page-content {
  padding-top: 1.25rem;
  padding-bottom: 2rem;
}

.page-body {
  font-weight: 400;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #000000;
}

.page-body h2 {
  font-size: 1rem;
  font-weight: 500;
  margin: 1.25rem 0 0.5rem;
}

.page-body p {
  margin: 0 0 0.85rem;
}

.site-footer {
  width: 100%;
  border-top: 1px solid var(--line);
  margin-top: 2rem;
}

.footer-inner {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  min-height: 56px;
  color: #000000;
  font-size: 0.76rem;
  font-weight: 400;
}

.compliance-links {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.compliance-links a {
  border-bottom: 1px solid var(--line);
  color: #000000;
  font-weight: 400;
}

@media (max-width: 1024px) {
  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .header-inner {
    min-height: 60px;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }
}
