/* ============================================================ */
/* CMS CONTENT STYLING (.cms-con) */
/* This file contains styles for content generated by CMS/Editor */
/* ============================================================ */

.cms-con {
  font-family: var(--font-poppins);
  color: var(--black);
  line-height: 1.7;
  font-size: 16px;
}

/* --- Headings --- */
.cms-con h1,
.cms-con h2,
.cms-con h3,
.cms-con h4,
.cms-con h5,
.cms-con h6 {
  font-family: var(--font-outfit);
  font-weight: 600;
  color: var(--black);
  line-height: 1.2;
  margin-top: 2rem;
  margin-bottom: 1.25rem;
}

.cms-con h1:first-child,
.cms-con h2:first-child,
.cms-con h3:first-child,
.cms-con h4:first-child,
.cms-con h5:first-child,
.cms-con h6:first-child {
  margin-top: 0;
}

.cms-con h1 {
  font-size: 3rem;
}

.cms-con h2 {
  font-size: 2.5rem;
}

.cms-con h3 {
  font-size: 2rem;
}

.cms-con h4 {
  font-size: 1.5rem;
}

.cms-con h5 {
  font-size: 1.25rem;
}

.cms-con h6 {
  font-size: 1.125rem;
}

/* Responsive Headings */
@media (max-width: 768px) {
  .cms-con h1 {
    font-size: 2.25rem;
  }

  .cms-con h2 {
    font-size: 1.875rem;
  }

  .cms-con h3 {
    font-size: 1.5rem;
  }
}

/* --- Body Text --- */
.cms-con p {
  margin-bottom: 1.5rem;
  opacity: 0.85;
  /* Slightly less than the regular site for better readability in long post */
}

.cms-con strong,
.cms-con b {
  font-weight: 700;
  color: var(--black);
}

.cms-con em,
.cms-con i {
  font-style: italic;
}

/* --- Links --- */
.cms-con a {
  color: var(--primary-color);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.cms-con a:hover {
  border-bottom-color: var(--primary-color);
}

/* --- Lists --- */


.cms-con li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
}


/* Unordered List Styles */
.cms-con ul {
  list-style: none;
}

.cms-con ul li::before {
  content: "";
  display: block;
  width: 20px;
  height: 20px;
  background-color: var(--primary-color);
  -webkit-mask-image: url("../img/svg/check.svg");
  mask-image: url("../img/svg/check.svg");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  flex-shrink: 0;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

/* Ordered List Styles */
.cms-con ol {
  list-style-type: decimal;
}

.cms-con ol li::marker {
  color: var(--primary-color);
  font-weight: 700;
}

/* Nested Lists */
.cms-con ul ul,
.cms-con ol ol,
.cms-con ul ol,
.cms-con ol ul {
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
}

/* --- Blockquote --- */
.cms-con blockquote {
  margin: 2.5rem 0;
  padding: 2rem 2.5rem;
  background-color: #f9f9fb;
  border-left: 5px solid var(--primary-color);
  border-radius: 0 12px 12px 0;
  position: relative;
}

.cms-con blockquote p {
  font-size: 1.25rem;
  font-style: italic;
  font-family: var(--font-outfit);
  line-height: 1.6;
  color: #333;
  margin-bottom: 0;
}

.cms-con blockquote cite {
  display: block;
  margin-top: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  font-style: normal;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- Images --- */
.cms-con img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.cms-con figure {
  margin: 2rem 0;
}

.cms-con figcaption {
  text-align: center;
  font-size: 0.875rem;
  color: #666;
  margin-top: 0.5rem;
  font-style: italic;
}

/* --- Tables --- */
.cms-con .table-responsive {
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.cms-con table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #eee;
}

.cms-con th,
.cms-con td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.cms-con th {
  background-color: #fcfcfc;
  font-family: var(--font-outfit);
  font-weight: 600;
  color: var(--black);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
}

.cms-con tr:last-child td {
  border-bottom: none;
}

.cms-con tr:nth-child(even) {
  background-color: #fafafa;
}

/* --- Horizontal Rule --- */
.cms-con hr {
  margin: 3rem 0;
  border: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, #eee, transparent);
}

/* --- Code Blocks (Bonus) --- */
.cms-con pre {
  background: #2d2d2d;
  color: #f8f8f2;
  padding: 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.cms-con code {
  font-family: 'Courier New', Courier, monospace;
  background: #f1f1f1;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9em;
}

.cms-con pre code {
  background: transparent;
  padding: 0;
}