/* CMS Article & Content Styles */

/* Article layout */
.cms-article {
  padding: 40px 0 80px;
}
.cms-article h1 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 24px;
  line-height: 1.2;
}
.cms-article-body h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-top: 48px;
  margin-bottom: 16px;
}
.cms-article-body h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-top: 36px;
  margin-bottom: 12px;
}
.cms-article-body p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 16px;
}
.cms-article-body ul,
.cms-article-body ol {
  margin-bottom: 16px;
  padding-left: 24px;
}
.cms-article-body li {
  margin-bottom: 6px;
  line-height: 1.7;
}
.cms-article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 24px 0;
}
.cms-article-body blockquote {
  border-left: 4px solid var(--brand-red);
  margin: 24px 0;
  padding: 12px 20px;
  background: #f9f9f9;
  font-style: italic;
}
.cms-article-body code {
  background: #f4f4f4;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.9em;
}
.cms-article-body pre {
  background: #282c34;
  color: #e6e6e6;
  padding: 20px;
  border-radius: 6px;
  overflow-x: auto;
  margin: 12px 0;
  font-size: 14px;
  line-height: 1.6;
  border: 1px solid #3a3f4b;
}
.cms-article-body pre code {
  background: none;
  padding: 0;
  color: inherit;
}
.cms-article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}
.cms-article-body th,
.cms-article-body td {
  border: 1px solid #ddd;
  padding: 10px 14px;
  text-align: left;
}
.cms-article-body th {
  background: #f5f5f5;
  font-weight: 700;
}
.cms-article-body a {
  color: var(--brand-red);
  text-decoration: underline;
}
.cms-article-body a:hover {
  text-decoration: none;
}

/* Breadcrumb */
.cms-breadcrumb {
  font-size: 14px;
  color: #888;
}
.cms-breadcrumb a {
  color: #888;
  text-decoration: none;
}
.cms-breadcrumb a:hover {
  color: var(--brand-red);
}

/* Landing page */
.cms-landing {
  padding-bottom: 60px;
}
.cms-landing-body h1 {
  font-size: 2.4rem;
  font-weight: 700;
}

/* Group index - list */
.cms-group-index {
  padding: 40px 0 80px;
}
.cms-article-list-item {
  display: block;
  padding: 20px 0;
  border-bottom: 1px solid #eee;
  text-decoration: none;
  color: inherit;
}
.cms-article-list-item:hover {
  color: inherit;
}
.cms-article-list-item:hover h3 {
  color: var(--brand-red);
}
.cms-article-list-item h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 4px;
  transition: color 0.15s;
}
.cms-article-list-item p {
  color: #666;
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* Group index - grid cards */
.cms-card {
  display: block;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  height: 100%;
  transition: box-shadow 0.2s;
}
.cms-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  color: inherit;
}
.cms-card-img {
  height: 180px;
  background: #f5f5f5;
  overflow: hidden;
}
.cms-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cms-card-body {
  padding: 16px;
}
.cms-card-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.cms-card-body p {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* Hero section (from markdown extension) */
.cms-hero {
  text-align: center;
  padding: 80px 20px;
  background: #f5f5f5;
  position: relative;
}
.cms-hero-image {
  background-size: cover;
  background-position: center;
  color: #fff;
}
.cms-hero-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}
.cms-hero-image .container {
  position: relative;
  z-index: 1;
}
.cms-hero-image a.btn-red {
  background: #fff;
  color: #000;
  border-color: #fff;
}
.cms-hero-image a.btn-red:hover {
  background: var(--brand-red);
  color: #fff;
  border-color: var(--brand-red);
}
.cms-hero-light {
  color: #fff;
}
.cms-hero h1 {
  font-size: 2.8rem;
  font-weight: 900;
}
.cms-hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 16px auto;
}
.cms-hero .btn-red,
.cms-cta .btn-red {
  display: inline-block;
  background-color: #e20000;
  color: #fff;
  font-size: 20px;
  line-height: 24px;
  padding: 12px 32px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 700;
  margin-top: 16px;
  border: none;
  transition: background-color 0.15s;
}
.cms-hero .btn-red:hover,
.cms-cta .btn-red:hover {
  background-color: #c00;
  color: #fff;
  text-decoration: none;
}

/* CTA section */
.cms-cta {
  text-align: center;
  padding: 60px 20px;
  background: #f5f5f5;
  margin: 40px 0;
}
.cms-cta.cms-cta-dark {
  background: #1a1a1a;
  color: #fff;
}

/* Comparison table */
.cms-comparison th:nth-child(2),
.cms-comparison td:nth-child(2) {
  background: rgba(224,0,0,0.05);
  font-weight: 700;
}

/* Feature grid */
.cms-grid-item {
  text-align: center;
  padding: 20px;
}
.cms-grid-item img {
  max-width: 64px;
  margin-bottom: 16px;
}
