
:root {
  --cd-bg: #f2f8ff;
  --cd-surface: #ffffff;
  --cd-surface-muted: #e7f2ff;
  --cd-text: #10223f;
  --cd-text-soft: #4b6288;
  --cd-primary: #0d6efd;
  --cd-primary-strong: #0052cc;
  --cd-accent: #1ec8ff;
  --cd-border: #c9defc;
  --cd-shadow: 0 16px 45px rgba(13, 63, 140, 0.12);
  --cd-radius: 18px;
  --cd-max: 1180px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--cd-text);
  background: #ffffff;
  font-family: "Inter", "Manrope", "Segoe UI", sans-serif;
  line-height: 1.6;
  font-size: 16px;
}

h1,
h2,
h3,
h4,
h5,
h6,
.cd-brand,
.cd-title,
.cd-post-title,
.cd-single-title {
  font-family: "Sora", "Space Grotesk", "Inter", sans-serif;
  letter-spacing: 0.01em;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  width: 100%;
  height: auto;
  display: block;
}

.site-wrap {
  max-width: var(--cd-max);
  margin: 0 auto;
  padding: 0 1rem;
}

.cd-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #ffffff;
  border-bottom: 1px solid rgba(13, 110, 253, 0.14);
}

.cd-topbar {
  border-bottom: 1px solid rgba(13, 110, 253, 0.1);
}

.cd-topbar-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 32px;
}

.cd-social {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.cd-social a {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-color, #1f2937);
  color: #fff;
  box-shadow: 0 6px 14px rgba(2, 22, 68, 0.2);
  transition: transform 0.16s ease, filter 0.16s ease;
}

.cd-social a:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.cd-social a svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.cd-search-icon {
  color: var(--cd-primary);

  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--cd-border);
  background: #fff;
}

.cd-search-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.cd-lock-scroll {
  overflow: hidden;
}

.cd-header-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 1rem;
  min-height: 50px;
}

.cd-brand {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
}

.cd-brand > a {
  display: inline-flex;
  align-items: center;
}

.cd-brand span {
  color: var(--cd-primary);
}

.cd-brand .custom-logo-link {
  display: inline-flex;
  align-items: center;
}

.cd-brand .custom-logo {
  max-height: 84px;
  width: auto;
  transform: scale(1.15);
  transform-origin: left center;
}

.cd-menu-toggle {
  display: none;
}

.cd-menu-icon,
.cd-menu-icon::before,
.cd-menu-icon::after {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: #12356d;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.cd-menu-icon {
  position: relative;
}

.cd-menu-icon::before,
.cd-menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.cd-menu-icon::before {
  transform: translateY(-6px);
}

.cd-menu-icon::after {
  transform: translateY(6px);
}

.cd-mobile-menu-open .cd-menu-icon {
  background: transparent;
}

.cd-mobile-menu-open .cd-menu-icon::before {
  transform: rotate(45deg);
}

.cd-mobile-menu-open .cd-menu-icon::after {
  transform: rotate(-45deg);
}

.cd-nav {
  justify-self: center;
}

.cd-menu,
.cd-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cd-menu {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  font-weight: 600;
  color: var(--cd-text-soft);
}

.cd-menu li {
  position: relative;
}

.cd-menu a {
  display: inline-block;
  padding: 0.45rem 0.2rem;
}

.cd-menu a:hover {
  color: var(--cd-primary);
}

.cd-menu .menu-item-has-children > a {
  padding-right: 1.15rem;
}

.cd-menu-caret {
  position: absolute;
  right: 0.1rem;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid #5f78a6;
  border-bottom: 2px solid #5f78a6;
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

.cd-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  border: 1px solid rgba(201, 222, 252, 0.6);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 56, 138, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
  z-index: 25;
  padding: 0.3rem 0;
}

.cd-menu .sub-menu .sub-menu {
  top: -1px;
  left: calc(100% - 8px);
}

.cd-menu .sub-menu .menu-item-has-children > .cd-menu-caret {
  right: 0.55rem;
  top: 1rem;
  transform: rotate(-45deg);
}

.cd-menu .sub-menu a {
  display: block;
  padding: 0.5rem 0.85rem;
  color: #36547d;
  font-size: 0.92rem;
  line-height: 1.35;
}

.cd-menu .sub-menu li {
  border-bottom: 1px solid rgba(201, 222, 252, 0.45);
}

.cd-menu .sub-menu li:last-child {
  border-bottom: 0;
}

.cd-menu .sub-menu a:hover {
  background: #f6faff;
  color: #0d6efd;
}

.cd-menu li:hover > .sub-menu,
.cd-menu li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.cd-submenu-toggle {
  display: none;
}

.cd-subscribe-btn {
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.58rem 0.95rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cd-primary), var(--cd-primary-strong));
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
}

.cd-subscribe-mobile {
  display: none;
}

.cd-popup {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 1000;
}

.cd-popup.is-open {
  display: block;
}

.cd-popup-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(30, 200, 255, 0.15) 0%, transparent 40%),
    rgba(7, 18, 42, 0.72);
  backdrop-filter: blur(5px);
}

.cd-popup-dialog {
  position: relative;
  z-index: 1;
  width: min(92vw, 580px);
  margin: min(11vh, 90px) auto 0;
  border: 1px solid rgba(201, 222, 252, 0.95);
  border-radius: 20px;
  padding: 1.25rem 1.2rem 1.3rem;
  background:
    linear-gradient(160deg, rgba(231, 242, 255, 0.72) 0%, rgba(255, 255, 255, 0.98) 42%),
    #fff;
  box-shadow: 0 30px 80px rgba(3, 24, 63, 0.32);
}

.cd-popup-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 36px;
  height: 36px;
  border: 1px solid #a5c8fb;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.98);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0b56d6;
  transition: transform 0.18s ease, background-color 0.18s ease;
}

.cd-popup-close:hover {
  transform: rotate(90deg);
  background: #eaf3ff;
}

.cd-popup-close svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.cd-popup-dialog h3 {
  margin: 0.25rem 0 0.45rem;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.2;
}

.cd-popup-eyebrow {
  margin: 0;
  color: #115bcf;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}

.cd-popup-copy {
  margin: 0 0 1rem;
  color: #335584;
  font-size: 0.95rem;
}

.cd-popup .search-form,
.cd-subscribe-form {
  display: grid;
  gap: 0.9rem;
}

.cd-popup .search-form {
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.65rem;
}

.cd-popup .search-form label {
  grid-column: 1 / -1;
  font-size: 0.85rem;
  color: #36547d;
}

.cd-popup .search-form .search-submit {
  min-width: 120px;
  border: 1px solid #0a56d5;
  border-radius: 12px;
  padding: 0.72rem 1rem;
  color: #fff;
  background:
    linear-gradient(145deg, #2a93ff 0%, #0d6efd 45%, #004fd6 100%);
  font-weight: 700;
  letter-spacing: 0.015em;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(10, 86, 213, 0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.cd-popup .search-form .search-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(10, 86, 213, 0.4);
  filter: brightness(1.03);
}

.cd-popup .search-form .search-submit:active {
  transform: translateY(0);
  box-shadow: 0 8px 16px rgba(10, 86, 213, 0.32);
}

.cd-popup input[type="search"],
.cd-popup input[type="email"] {
  width: 100%;
  border: 1px solid #a9c9f7;
  border-radius: 12px;
  padding: 0.72rem 0.82rem;
  background: rgba(255, 255, 255, 0.92);
  font-size: 0.95rem;
  color: #15325f;
}

.cd-popup input[type="text"] {
  width: 100%;
  border: 1px solid #a9c9f7;
  border-radius: 12px;
  padding: 0.72rem 0.82rem;
  background: rgba(255, 255, 255, 0.92);
  font-size: 0.95rem;
  color: #15325f;
}

.cd-popup input[type="search"]:focus,
.cd-popup input[type="email"]:focus,
.cd-popup input[type="text"]:focus {
  outline: 0;
  border-color: #0d6efd;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
}

.cd-subscribe-form label {
  display: block;
  margin-bottom: 0.35rem;
  color: #284d80;
  font-size: 0.84rem;
  font-weight: 600;
}

.cd-field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.cd-subscribe-message {
  margin: 0 0 0.85rem;
  border-radius: 12px;
  padding: 0.55rem 0.75rem;
  font-size: 0.86rem;
}

.cd-subscribe-message.is-success {
  background: #e5fff2;
  color: #00612f;
  border: 1px solid #8fe2b7;
}

.cd-subscribe-message.is-error {
  background: #ffe9ec;
  color: #8a1327;
  border: 1px solid #f6a4b3;
}

.cd-popup button[type="submit"] {
  border: 0;
  border-radius: 12px;
  padding: 0.72rem 0.95rem;
  color: #fff;
  background: linear-gradient(135deg, var(--cd-primary), var(--cd-primary-strong));
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.cd-popup button[type="submit"]:hover {
  filter: brightness(1.05);
}

.cd-search-form-wrap {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(169, 201, 247, 0.8);
  border-radius: 14px;
  padding: 0.75rem;
}

.cd-main {
  padding: 2rem 0 3rem;
}

.cd-hero {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 1.2rem;
  margin-bottom: 1.35rem;
}

.cd-card {
  background: var(--cd-surface);
  border: 1px solid var(--cd-border);
  border-radius: var(--cd-radius);
  box-shadow: var(--cd-shadow);
  overflow: hidden;
}

.home .cd-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.cd-hero-feature {
  min-height: 420px;
  position: relative;
}

.cd-thumb {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #94ccff 0%, #2aa0ff 48%, #0d6efd 100%);
}

.cd-hero-feature .cd-thumb {
  aspect-ratio: auto;
  height: 100%;
}

.cd-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 25%, rgba(3, 24, 63, 0.8) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.3rem;
  color: #fff;
}

.cd-kicker {
  display: inline-flex;
  width: fit-content;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 0.28rem 0.62rem;
  border-radius: 99px;
  background: rgba(30, 200, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.32);
}

.cd-title {
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1.2;
  margin: 0.8rem 0 0.45rem;
}

.cd-meta {
  font-size: 0.85rem;
  opacity: 0.95;
}

.cd-quick-list {
  display: grid;
  gap: 0.8rem;
  padding: 0.9rem;
}

.cd-quick-item {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 0.8rem;
  padding: 0.45rem;
  border-radius: 12px;
}

.cd-quick-item:hover {
  background: var(--cd-surface-muted);
}

.cd-quick-title {
  margin: 0.15rem 0;
  font-size: 0.96rem;
  line-height: 1.35;
}

.cd-grid-title {
  margin: 1.4rem 0 0.8rem;
  font-size: 1.15rem;
}

.cd-post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.cd-post {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--cd-border);
  background: var(--cd-surface);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cd-post:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(12, 65, 158, 0.13);
}

.cd-post-body {
  padding: 0.8rem 0.9rem 1rem;
}

.cd-post-title {
  font-size: 1rem;
  line-height: 1.35;
  margin: 0.35rem 0 0.5rem;
}

.cd-footer {
  margin-top: 2rem;
  padding: 1.6rem 0 2.2rem;
  color: var(--cd-text-soft);
  font-size: 0.92rem;
  text-align: center;
}

.cd-single {
  max-width: 1180px;
  margin: 0 auto;
  padding-top: 1rem;
}

.cd-single-article {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}

.cd-single-title {
  font-size: clamp(2rem, 3.2vw, 3rem);
  line-height: 1.14;
  margin: 0.5rem 0 0.8rem;
  color: #0d2342;
  letter-spacing: 0.005em;
}

.cd-single-head {
  margin-bottom: 0.65rem;
}

.cd-single-category {
  display: inline-block;
  color: #d28733;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cd-single-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  color: #57709a;
  font-size: 0.83rem;
  font-weight: 600;
}

.cd-single-media {
  margin: 0 0 0.95rem;
  border-radius: 12px;
  overflow: hidden;
}

.cd-single-media img {
  max-height: 520px;
  object-fit: cover;
}

.cd-single-toc {
  margin: 0 0 0.95rem;
  border: 1px solid #d8e4f5;
  border-radius: 10px;
  background: #f9fbff;
}

.cd-single-toc-toggle {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0.68rem 0.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #12335e;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
}

.cd-single-toc-icon {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid #b9cef0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #2a538c;
  font-size: 0.95rem;
  line-height: 1;
}

.cd-single-toc-list {
  border-top: 1px solid #dde8f8;
  padding: 0.5rem 0.8rem 0.68rem;
}

.cd-single-toc-list ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.38rem;
}

.cd-single-toc-list li {
  margin: 0;
}

.cd-single-toc-list a {
  color: #1f4f8d;
  font-size: 0.85rem;
  line-height: 1.45;
  display: inline-block;
}

.cd-single-toc-list a:hover {
  color: #d28733;
}

.cd-single-toc-list .toc-level-3 {
  padding-left: 0.8rem;
}

.cd-single-toc-list .toc-level-4 {
  padding-left: 1.4rem;
}

.cd-single-toc-list .toc-level-5 {
  padding-left: 2rem;
}

.cd-single-toc-list .toc-level-6 {
  padding-left: 2.6rem;
}

.cd-single-toc-empty {
  margin: 0;
  color: #6079a1;
  font-size: 0.82rem;
  line-height: 1.45;
}

.cd-single-toc.is-collapsed .cd-single-toc-list {
  display: none;
}

.cd-single-toc:not(.is-collapsed) .cd-single-toc-icon {
  font-size: 1.1rem;
}

.cd-content {
  color: #132f55;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 1.08rem;
  line-height: 1.92;
  max-width: 82ch;
  letter-spacing: 0.002em;
}

.cd-content p {
  margin: 0 0 1.2rem;
}

.cd-content h2,
.cd-content h3,
.cd-content h4 {
  color: #0f2848;
  line-height: 1.28;
  margin: 1.55rem 0 0.78rem;
  scroll-margin-top: 96px;
}

.cd-content h2 {
  font-size: clamp(1.45rem, 2.2vw, 2rem);
}

.cd-content h3 {
  font-size: clamp(1.25rem, 1.8vw, 1.58rem);
}

.cd-content ul,
.cd-content ol {
  margin: 0 0 1.2rem 1.25rem;
}

.cd-content li {
  margin-bottom: 0.45rem;
}

.cd-content blockquote {
  margin: 1.25rem 0;
  padding: 0.9rem 1rem;
  border-left: 3px solid #d28733;
  background: #f6faff;
  color: #1c3f6d;
  font-weight: 700;
  border-radius: 8px;
}

.cd-content a {
  color: #1f4f8d;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1.5px;
  word-break: break-word;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.cd-content a:hover,
.cd-content a:focus-visible {
  color: #d28733;
  text-decoration-color: #d28733;
}

.cd-content a:visited {
  color: #5f3f8a;
}

.cd-content img {
  border-radius: 12px;
  margin: 0.7rem 0 1.15rem;
}

.cd-single-pages {
  display: flex;
  gap: 0.45rem;
  margin-top: 1rem;
}

.cd-single-tags {
  margin-top: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.cd-single-tags a {
  border: 1px solid #c7d8f1;
  border-radius: 999px;
  padding: 0.28rem 0.58rem;
  font-size: 0.72rem;
  color: #22497f;
}

.cd-single-nav {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid #dde8f8;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.cd-single-nav-item a {
  display: block;
  font-size: 0.84rem;
  color: #1e477f;
  font-weight: 700;
}

.cd-single-nav-item.next {
  text-align: right;
}

.cd-single-end {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid #dde8f8;
  display: grid;
  gap: 0.9rem;
}

.cd-single-author-box {
  border: 1px solid #d8e4f5;
  border-radius: 10px;
  padding: 0.7rem;
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 0.75rem;
  align-items: start;
  background: #f9fbff;
}

.cd-single-author-avatar img {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
}

.cd-single-author-label {
  margin: 0 0 0.2rem;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6782aa;
  font-weight: 700;
}

.cd-single-author-content h3 {
  margin: 0 0 0.3rem;
  font-size: 1.08rem;
  color: #0f2848;
}

.cd-single-author-content p {
  margin: 0;
  color: #486287;
  font-size: 0.9rem;
  line-height: 1.6;
}

.cd-single-share {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.cd-single-share p {
  margin: 0;
  color: #5f789f;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.cd-single-share-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.cd-single-share-links a {
  border: 1px solid #c6d8f2;
  border-radius: 999px;
  padding: 0.28rem 0.62rem;
  font-size: 0.76rem;
  color: #1f4f8d;
  font-weight: 700;
}

.cd-single-share-links a:hover {
  border-color: #d28733;
  color: #d28733;
}

.cd-related {
  margin-top: 1.2rem;
}

.cd-related h2 {
  margin: 0 0 0.7rem;
  font-size: 1.25rem;
  color: #0f2848;
}

.cd-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.cd-related-card {
  border: 1px solid #dbe6f6;
  border-radius: 10px;
  overflow: hidden;
  background: #ffffff;
}

.cd-related-thumb {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #eff5ff;
}

.cd-related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cd-related-placeholder {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  color: #5f769c;
  font-weight: 700;
  font-size: 0.78rem;
}

.cd-related-body {
  padding: 0.68rem 0.75rem 0.8rem;
}

.cd-related-body h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  line-height: 1.32;
}

.cd-related-body p {
  margin: 0;
  font-size: 0.74rem;
  color: #d28733;
  font-weight: 700;
  text-transform: uppercase;
}

/* Generic pages */
.cd-page {
  max-width: 980px;
  margin: 0 auto;
  padding-top: 0.95rem;
}

.cd-page-article {
  background: #ffffff;
  border: 1px solid #dbe5f4;
  border-radius: 12px;
  padding: 1rem 1rem 1.05rem;
}

.cd-page-head {
  margin-bottom: 0.7rem;
}

.cd-page-title {
  margin: 0;
  color: #102542;
  font-size: clamp(1.7rem, 2.8vw, 2.4rem);
  line-height: 1.2;
}

.cd-page-excerpt {
  margin: 0.45rem 0 0;
  color: #516a90;
  font-size: 0.98rem;
  line-height: 1.7;
}

.cd-page-media {
  margin: 0 0 0.95rem;
  border-radius: 12px;
  overflow: hidden;
}

.cd-page-media img {
  max-height: 520px;
  object-fit: cover;
}

.cd-page-content {
  color: #1b355a;
  font-size: 1.03rem;
  line-height: 1.85;
  max-width: 72ch;
}

.cd-page-content p {
  margin: 0 0 1.1rem;
}

.cd-page-content h2,
.cd-page-content h3,
.cd-page-content h4 {
  color: #102846;
  line-height: 1.3;
  margin: 1.4rem 0 0.7rem;
}

.cd-page-content ul,
.cd-page-content ol {
  margin: 0 0 1.15rem 1.2rem;
}

.cd-page-content li {
  margin-bottom: 0.45rem;
}

.cd-page-content blockquote {
  margin: 1.25rem 0;
  padding: 0.75rem 0.95rem;
  border-left: 3px solid #d28733;
  background: #f8fbff;
  color: #21416b;
  font-weight: 600;
}

.cd-page-content a {
  color: #1f4f8d;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1.5px;
  word-break: break-word;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.cd-page-content a:hover,
.cd-page-content a:focus-visible {
  color: #d28733;
  text-decoration-color: #d28733;
}

.cd-page-content a:visited {
  color: #5f3f8a;
}

.cd-page-content img {
  border-radius: 10px;
  margin: 0.6rem 0 1rem;
}

.cd-page-pages {
  display: flex;
  gap: 0.45rem;
  margin-top: 1rem;
}

/* Archive pages: category / tag / search */
.cd-archive-page {
  padding-top: 0.95rem;
  padding-bottom: 1rem;
}

.cd-archive-head {
  margin-bottom: 0.95rem;
}

.cd-archive-eyebrow {
  margin: 0;
  color: #5d789f;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.cd-archive-title {
  margin: 0.3rem 0 0.35rem;
  color: #102846;
  font-size: clamp(1.5rem, 2.8vw, 2.15rem);
  line-height: 1.2;
}

.cd-archive-desc {
  margin: 0;
  color: #4f678d;
  font-size: 0.94rem;
  line-height: 1.65;
}

.cd-archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.cd-archive-card {
  border: 1px solid #dae6f7;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.cd-archive-thumb {
  aspect-ratio: 16 / 10;
  background: #edf4ff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cd-archive-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cd-archive-thumb span {
  color: #6380ab;
  font-size: 0.78rem;
  font-weight: 700;
}

.cd-archive-body {
  padding: 0.75rem 0.8rem 0.85rem;
}

.cd-archive-kicker {
  margin: 0;
  color: #6b83a8;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.cd-archive-body h2 {
  margin: 0.35rem 0 0.45rem;
  color: #102846;
  font-size: 1.15rem;
  line-height: 1.3;
}

.cd-archive-meta {
  margin: 0;
  color: #d28733;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
}

.cd-archive-empty {
  margin: 0.4rem 0 0;
  color: #466288;
}

.cd-search-inline-form {
  margin-top: 0.7rem;
}

.cd-search-inline-form .search-form {
  max-width: 560px;
}

@media (max-width: 980px) {
  .cd-hero {
    grid-template-columns: 1fr;
  }

  .cd-hero-feature {
    min-height: 350px;
  }

  .cd-post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cd-related-grid {
    grid-template-columns: 1fr;
  }

  .cd-archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .cd-header-row {
    grid-template-columns: 1fr auto auto;
    min-height: 48px;
  }

  .cd-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 10px;
    background: #fff;
  }

  .cd-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    max-height: calc(100vh - 118px);
    background: #ffffff;
    border-top: 1px solid var(--cd-border);
    border-bottom: 1px solid var(--cd-border);
    box-shadow: 0 14px 30px rgba(9, 40, 101, 0.1);
    z-index: 1200;
    padding: 0.6rem 1rem 1rem;
    transform: translateY(-14px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.26s ease, opacity 0.2s ease;
    overflow-y: auto;
  }

  .cd-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .cd-menu {
    display: block;
    border-top: 1px solid var(--cd-border);
    padding-top: 0.35rem;
  }

  .cd-menu li {
    border-bottom: 1px solid #e2ebf8;
  }

  .cd-menu a {
    display: inline-block;
    width: calc(100% - 42px);
    padding: 0.76rem 0;
    font-size: 0.98rem;
  }

  .cd-menu-caret {
    display: none;
  }

  .cd-submenu-toggle {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--cd-border);
    border-radius: 8px;
    background: #fff;
    margin: 0.3rem 0;
    font-weight: 700;
    color: #0d4eba;
  }

  .cd-menu .sub-menu {
    position: static;
    min-width: 100%;
    border: 0;
    border-left: 1px solid rgba(199, 221, 255, 0.7);
    background: #ffffff;
    box-shadow: none;
    padding-left: 0.7rem;
    margin-bottom: 0.55rem;
    margin-top: 0.1rem;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }

  .cd-menu .sub-menu a {
    padding: 0.62rem 0;
    color: #3c5b8b;
    font-size: 0.94rem;
  }

  .cd-menu .sub-menu li {
    border-bottom: 1px solid rgba(199, 221, 255, 0.4);
  }

  .cd-menu .sub-menu .sub-menu {
    left: auto;
    top: auto;
  }

  .cd-menu .submenu-open > .sub-menu {
    display: block;
  }

  .cd-subscribe-desktop {
    display: none;
  }

  .cd-subscribe-mobile {
    display: inline-flex;
    margin-top: 0.9rem;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .cd-brand .custom-logo {
    max-height: 52px;
    transform: scale(1.05);
  }

  .cd-social {
    gap: 0.32rem;
    max-width: calc(100% - 44px);
  }

  .cd-social a {
    width: 24px;
    height: 24px;
  }

  .cd-social a svg {
    width: 13px;
    height: 13px;
  }

  .cd-subscribe-btn {
    font-size: 0.8rem;
    padding: 0.48rem 0.75rem;
  }

  .cd-popup-dialog {
    margin-top: 6vh;
    width: min(94vw, 560px);
    padding: 1rem 0.85rem 1.05rem;
  }

  .cd-popup .search-form {
    grid-template-columns: 1fr;
  }

  .cd-popup .search-form .search-submit {
    width: 100%;
  }

  .cd-field-grid {
    grid-template-columns: 1fr;
  }

  .cd-main {
    padding-top: 1rem;
  }

  .cd-hero-feature {
    min-height: 290px;
  }

  .cd-quick-item {
    grid-template-columns: 94px 1fr;
  }

  .cd-post-grid {
    grid-template-columns: 1fr;
  }

  .cd-title {
    font-size: 1.3rem;
  }

  .cd-single {
    padding-top: 0.75rem;
  }

  .cd-single-article {
    padding: 0;
  }

  .cd-single-title {
    font-size: 1.7rem;
  }

  .cd-content {
    font-size: 1rem;
    line-height: 1.8;
    max-width: 100%;
  }

  .cd-single-nav {
    grid-template-columns: 1fr;
  }

  .cd-single-nav-item.next {
    text-align: left;
  }

  .cd-single-author-box {
    grid-template-columns: 1fr;
  }

  .cd-single-author-avatar img {
    width: 68px;
    height: 68px;
  }

  .cd-page {
    padding-top: 0.75rem;
  }

  .cd-page-article {
    border-radius: 10px;
    padding: 0.8rem;
  }

  .cd-page-title {
    font-size: 1.5rem;
  }

  .cd-page-excerpt,
  .cd-page-content {
    font-size: 0.98rem;
    line-height: 1.75;
  }

  .cd-page-content {
    max-width: 100%;
  }

  .cd-archive-page {
    padding-top: 0.75rem;
  }

  .cd-archive-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .cd-archive-body h2 {
    font-size: 1.04rem;
  }
}
/* TradingView ticker strip below header */
.cd-ticker-tape-wrap {
  padding: 4px 0 2px;
}

.cd-ticker-tape-wrap tv-ticker-tape {
  display: block;
  width: 100%;
  min-height: 32px;
}

@media (max-width: 900px) {
  .cd-ticker-tape-wrap {
    padding: 2px 0;
  }

  .cd-ticker-tape-wrap tv-ticker-tape {
    min-height: 30px;
  }
}

/* Homepage showcase layout */
.cd-home-showcase {
  padding-top: 0.75rem;
}

.cd-showcase-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.95fr) minmax(0, 1fr);
  gap: 1.4rem;
  align-items: start;
}

.cd-showcase-left {
  display: grid;
  gap: 1.35rem;
}

.cd-featured-panel {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #f0e9df;
}

.cd-featured-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  background: #f8f2ea;
}

.cd-featured-image img,
.cd-showcase-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cd-featured-copy {
  padding: 1.35rem 1.4rem;
}

.cd-featured-title {
  margin: 0.45rem 0 0.7rem;
  font-size: clamp(1.65rem, 2.7vw, 2.25rem);
  line-height: 1.2;
  color: #1f2733;
}

.cd-featured-author,
.cd-showcase-card-author,
.cd-rail-author {
  color: #d27a1f;
  text-transform: uppercase;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.015em;
}

.cd-headline-rail {
  background: #fff;
}

.cd-rail-item {
  padding: 0 0 0.92rem;
  margin: 0 0 0.92rem;
  border-bottom: 1px solid #eceff4;
}

.cd-rail-title {
  margin: 0.35rem 0 0.45rem;
  font-size: 1.02rem;
  line-height: 1.35;
  color: #101828;
}

.cd-rail-title a:hover {
  color: #0d6efd;
}

.cd-showcase-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

.cd-showcase-card {
  border: 1px solid #f0e9df;
  border-radius: 10px;
  overflow: hidden;
  background: #f8f2ea;
}

.cd-showcase-card-image {
  aspect-ratio: 16 / 9;
}

.cd-showcase-card-body {
  padding: 0.78rem 0.76rem 0.82rem;
}

.cd-showcase-card-title {
  margin: 0.34rem 0 0.55rem;
  font-size: 1.02rem;
  line-height: 1.4;
  color: #171d26;
}

.cd-showcase-card a:hover .cd-showcase-card-title {
  color: #0d6efd;
}

@media (max-width: 1080px) {
  .cd-showcase-shell {
    grid-template-columns: 1fr;
  }

  .cd-headline-rail {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem 1rem;
  }

  .cd-rail-item {
    margin-bottom: 0;
  }
}

@media (max-width: 760px) {
  .cd-featured-link {
    grid-template-columns: 1fr;
  }

  .cd-featured-image {
    aspect-ratio: 16 / 9;
  }

  .cd-featured-copy {
    padding: 0.95rem 0.9rem 1rem;
  }

  .cd-featured-title {
    font-size: clamp(1.4rem, 6vw, 1.9rem);
  }

  .cd-headline-rail {
    grid-template-columns: 1fr;
  }

  .cd-showcase-cards {
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.25rem;
    scroll-snap-type: x mandatory;
  }

  .cd-showcase-card {
    flex: 0 0 82%;
    scroll-snap-align: start;
  }
}

@media (max-width: 560px) {
  .cd-showcase-cards {
    gap: 0.65rem;
  }

  .cd-showcase-card {
    flex-basis: 88%;
  }
}

/* Remove category tag border on cards */
.cd-showcase-card .cd-kicker,
.cd-featured-copy .cd-kicker,
.cd-headline-rail .cd-kicker,
.cd-post-body .cd-kicker {
  border: 0 !important;
}

/* Category label: remove blue badge background in post card areas */
.cd-showcase-card .cd-kicker,
.cd-featured-copy .cd-kicker,
.cd-headline-rail .cd-kicker,
.cd-post-body .cd-kicker {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  color: #8a97ab;
}

/* Smaller meta typography: category + writer */
.cd-showcase-card .cd-kicker,
.cd-featured-copy .cd-kicker,
.cd-headline-rail .cd-kicker,
.cd-post-body .cd-kicker {
  font-size: 0.68rem;
  letter-spacing: 0.05em;
}

.cd-featured-author,
.cd-showcase-card-author,
.cd-rail-author {
  font-size: 0.74rem;
}

/* Trending news section */
.cd-trending-news {
  margin-top: 1.5rem;
  padding: 0.1rem 0 0.25rem;
}

.cd-trending-title {
  margin: 0 0 0.85rem;
  font-size: 2rem;
  line-height: 1.15;
  color: #1a2432;
}

.cd-trending-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.cd-trending-item {
  min-width: 0;
}

.cd-trending-link {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0.72rem;
  align-items: center;
}

.cd-trending-image {
  border-radius: 9px;
  overflow: hidden;
  background: #f4f6fa;
}

.cd-trending-image img,
.cd-trending-image .cd-thumb {
  width: 100%;
  height: 100%;
  min-height: 96px;
  object-fit: cover;
}

.cd-trending-item-title {
  margin: 0.26rem 0 0.4rem;
  font-size: 1.03rem;
  line-height: 1.34;
  color: #111a29;
}

.cd-trending-author {
  color: #d27a1f;
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.015em;
}

@media (max-width: 1080px) {
  .cd-trending-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .cd-trending-link {
    grid-template-columns: 160px 1fr;
  }
}

@media (max-width: 760px) {
  .cd-trending-title {
    font-size: 1.45rem;
  }

  .cd-trending-grid {
    display: flex;
    gap: 0.8rem;
    overflow-x: auto;
    padding-bottom: 0.2rem;
    scroll-snap-type: x mandatory;
  }

  .cd-trending-item {
    flex: 0 0 90%;
    scroll-snap-align: start;
  }

  .cd-trending-link {
    grid-template-columns: 130px 1fr;
  }
}

/* Consistent plain category labels (no badge background) */
.cd-home-showcase .cd-kicker,
.cd-trending-news .cd-kicker {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  color: #8a97ab !important;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
}

/* Final overrides: smaller author text + trending section background + mobile column layout */
.cd-featured-author,
.cd-showcase-card-author,
.cd-rail-author,
.cd-trending-author {
  font-size: 0.68rem !important;
}

.cd-trending-news {
  background: #f7f9fc;
  border: 1px solid #e7edf6;
  border-radius: 12px;
  padding: 1rem;
}

@media (max-width: 760px) {
  .cd-trending-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0.75rem;
    overflow: visible !important;
    padding-bottom: 0;
    scroll-snap-type: none;
  }

  .cd-trending-item {
    flex: initial !important;
    scroll-snap-align: none;
  }
}

/* Trending section: no boxed container */
.cd-trending-news {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
}

/* Trending cards: full-width clean row and full image coverage */
.cd-trending-grid {
  width: 100%;
  align-items: stretch;
}

.cd-trending-item {
  height: 100%;
}

.cd-trending-link {
  height: 100%;
}

.cd-trending-image {
  height: 100%;
  min-height: 110px;
}

.cd-trending-image img,
.cd-trending-image .cd-thumb {
  height: 100%;
  min-height: 110px;
  object-fit: cover;
}

/* Trending section: distinct full-width background band */
.cd-trending-news {
  background: linear-gradient(180deg, #f4f8ff 0%, #eef4fc 100%) !important;
  padding: 1rem 0.9rem !important;
  border: 0 !important;
  border-radius: 0 !important;
}

/* Trending section full-bleed width + smaller title */
.cd-trending-news {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: max(0.9rem, calc((100vw - var(--cd-max)) / 2 + 1rem)) !important;
  padding-right: max(0.9rem, calc((100vw - var(--cd-max)) / 2 + 1rem)) !important;
}

.cd-trending-title {
  font-size: 1.55rem !important;
}

@media (max-width: 760px) {
  .cd-trending-title {
    font-size: 1.25rem !important;
  }
}

/* Trending section background: near-white grey */
.cd-trending-news {
  background: #f5f6f8 !important;
}

/* Latest news section */
.cd-latest-news {
  margin-top: 1.4rem;
}

.cd-latest-title {
  margin: 0 0 0.9rem;
  font-size: 1.55rem;
  line-height: 1.15;
  color: #1a2432;
}

.cd-latest-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.cd-latest-card {
  border: 1px solid #f0e9df;
  border-radius: 10px;
  overflow: hidden;
  background: #f8f2ea;
}

.cd-latest-image {
  aspect-ratio: 16 / 9;
}

.cd-latest-image img,
.cd-latest-image .cd-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cd-latest-body {
  padding: 0.72rem 0.75rem 0.8rem;
}

.cd-latest-card-title {
  margin: 0.32rem 0 0.52rem;
  color: #171d26;
  font-size: 1.03rem;
  line-height: 1.38;
}

.cd-latest-author {
  color: #d27a1f;
  text-transform: uppercase;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.015em;
}

.cd-latest-card a:hover .cd-latest-card-title {
  color: #0d6efd;
}

@media (max-width: 1080px) {
  .cd-latest-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .cd-latest-title {
    font-size: 1.25rem;
  }

  .cd-latest-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
}

/* Bitcoin + Ethereum two-block section */
.cd-category-duo {
  margin-top: 1.6rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.cd-cat-title {
  margin: 0 0 0.8rem;
  font-size: 2rem;
  line-height: 1.15;
  color: #182334;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.cd-cat-title-arrow {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #d28b3d;
  color: #fff;
  font-size: 1rem;
}

.cd-cat-feature-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: 0.95rem;
}

.cd-cat-feature {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #f0e9df;
  background: #f8f2ea;
}

.cd-cat-feature-image {
  aspect-ratio: 16 / 9;
}

.cd-cat-feature-image img,
.cd-cat-feature-image .cd-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cd-cat-feature-body {
  padding: 0.72rem 0.75rem 0.8rem;
}

.cd-cat-feature-title {
  margin: 0 0 0.45rem;
  color: #171d26;
  font-size: 1.05rem;
  line-height: 1.35;
}

.cd-cat-feature-author,
.cd-cat-list-author {
  color: #d27a1f;
  text-transform: uppercase;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.015em;
}

.cd-cat-list-item {
  padding: 0 0 0.85rem;
  margin: 0 0 0.85rem;
  border-bottom: 1px solid #eceff4;
}

.cd-cat-list-title {
  margin: 0 0 0.4rem;
  color: #111a29;
  font-size: 1.02rem;
  line-height: 1.38;
}

.cd-cat-list-title a:hover,
.cd-cat-feature a:hover .cd-cat-feature-title {
  color: #0d6efd;
}

@media (max-width: 1080px) {
  .cd-category-duo {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .cd-cat-title {
    font-size: 1.35rem;
  }

  .cd-cat-feature-wrap {
    grid-template-columns: 1fr;
  }
}

.cd-cat-title a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

/* Remaining categories: Commentary / Analysis / Altcoin */
.cd-category-trio {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.3rem;
}

.cd-cat-top-item {
  margin-bottom: 0.8rem;
}

.cd-cat-top-link {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 0.75rem;
  align-items: center;
}

.cd-cat-top-image {
  border-radius: 9px;
  overflow: hidden;
  background: #f4f6fa;
  min-height: 95px;
}

.cd-cat-top-image img,
.cd-cat-top-image .cd-thumb {
  width: 100%;
  height: 100%;
  min-height: 95px;
  object-fit: cover;
}

.cd-cat-top-title {
  margin: 0 0 0.35rem;
  color: #141d2b;
  font-size: 1.02rem;
  line-height: 1.35;
}

.cd-cat-top-author {
  color: #d27a1f;
  text-transform: uppercase;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.015em;
}

.cd-cat-top-link:hover .cd-cat-top-title {
  color: #0d6efd;
}

@media (max-width: 1080px) {
  .cd-category-trio {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }
}

@media (max-width: 760px) {
  .cd-cat-top-link {
    grid-template-columns: 135px 1fr;
  }
}

/* Latest Blogs: 6 cards from blog category */
.cd-latest-blogs {
  margin-top: 1.6rem;
}

.cd-latest-blogs-title {
  margin: 0 0 0.85rem;
  font-size: 1.9rem;
  line-height: 1.15;
  color: #182334;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.cd-latest-blogs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem 1.15rem;
}

.cd-latest-blog-link {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0.72rem;
  align-items: center;
}

.cd-latest-blog-image {
  min-height: 100px;
  border-radius: 9px;
  overflow: hidden;
  background: #f4f6fa;
}

.cd-latest-blog-image img,
.cd-latest-blog-image .cd-thumb {
  width: 100%;
  height: 100%;
  min-height: 100px;
  object-fit: cover;
}

.cd-latest-blog-title {
  margin: 0.3rem 0 0.42rem;
  color: #151e2d;
  font-size: 1.02rem;
  line-height: 1.35;
}

.cd-latest-blog-author {
  color: #d27a1f;
  text-transform: uppercase;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.015em;
}

.cd-latest-blog-link:hover .cd-latest-blog-title {
  color: #0d6efd;
}

@media (max-width: 1200px) {
  .cd-latest-blogs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .cd-latest-blogs-title {
    font-size: 1.35rem;
  }

  .cd-latest-blogs-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .cd-latest-blog-link {
    grid-template-columns: 145px 1fr;
  }
}

/* Blog page layout + pagination */
.cd-blog-page {
  padding-top: 0.85rem;
}

.cd-blog-page-title {
  margin: 0 0 0.9rem;
  font-size: 1.9rem;
  line-height: 1.15;
  color: #182334;
}

.cd-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.cd-blog-card {
  border: 1px solid #f0e9df;
  border-radius: 10px;
  overflow: hidden;
  background: #f8f2ea;
}

.cd-blog-card-image {
  aspect-ratio: 16 / 9;
}

.cd-blog-card-image img,
.cd-blog-card-image .cd-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cd-blog-card-body {
  padding: 0.78rem 0.8rem 0.85rem;
}

.cd-blog-card-title {
  margin: 0.32rem 0 0.52rem;
  color: #151d2b;
  font-size: 1.05rem;
  line-height: 1.35;
}

.cd-blog-card-author {
  color: #d27a1f;
  text-transform: uppercase;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.015em;
}

.cd-blog-card a:hover .cd-blog-card-title {
  color: #0d6efd;
}

.cd-blog-empty {
  margin: 0;
  color: #526a8f;
}

.cd-pagination {
  margin-top: 1.25rem;
}

.cd-pagination .page-numbers {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.cd-pagination .page-numbers li {
  margin: 0;
}

.cd-pagination .page-numbers a,
.cd-pagination .page-numbers span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 0.72rem;
  border: 1px solid #d7e4f7;
  border-radius: 8px;
  color: #2f4b79;
  font-weight: 600;
  background: #fff;
}

.cd-pagination .page-numbers .current {
  background: #0d6efd;
  border-color: #0d6efd;
  color: #fff;
}

.cd-pagination .page-numbers a:hover {
  border-color: #0d6efd;
  color: #0d6efd;
}

@media (max-width: 1080px) {
  .cd-blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .cd-blog-page-title {
    font-size: 1.35rem;
  }

  .cd-blog-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
}

/* Blue footer redesign */
.cd-site-footer {
  margin-top: 2rem;
  background: linear-gradient(180deg, #0b3f99 0%, #08357f 100%);
  color: #f2f7ff;
}

.cd-footer-top {
  display: grid;
  grid-template-columns: 1.25fr 1fr 0.9fr;
  gap: 1.6rem;
  padding-top: 2rem;
  padding-bottom: 1.4rem;
}

.cd-footer-brand-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
}

.cd-footer-brand .custom-logo {
  max-height: 52px;
  width: auto;
  transform: none;
}

.cd-footer-social {
  display: flex;
  gap: 0.42rem;
  flex-wrap: wrap;
}

.cd-footer-social a {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-color, #3b82f6);
  color: #fff;
}

.cd-footer-social a svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.cd-footer-desc {
  margin: 0.8rem 0 0;
  color: #d7e6ff;
  font-size: 0.96rem;
  line-height: 1.6;
}

.cd-footer-col h3 {
  margin: 0 0 0.65rem;
  color: #ffffff;
  font-size: 1.2rem;
}

.cd-footer-newsletter p {
  margin: 0 0 0.65rem;
  color: #d7e6ff;
  font-size: 0.92rem;
}

.cd-footer-news-form {
  display: grid;
  gap: 0.55rem;
}

.cd-footer-news-form input[type="email"] {
  width: 100%;
  height: 40px;
  border: 1px solid #5b88db;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 0 0.72rem;
}

.cd-footer-news-form input::placeholder {
  color: #c4d7f8;
}

.cd-footer-news-form button {
  border: 0;
  border-radius: 9px;
  height: 40px;
  background: #4ea4ff;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.cd-footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.cd-footer-links a {
  color: #e5efff;
  font-weight: 600;
}

.cd-footer-links a:hover {
  color: #ffffff;
}

.cd-footer-bottom {
  border-top: 1px solid rgba(177, 207, 255, 0.28);
  text-align: center;
  color: #d5e6ff;
  font-size: 0.88rem;
  padding: 0.75rem 1rem 0.95rem;
}

@media (max-width: 980px) {
  .cd-footer-top {
    grid-template-columns: 1fr;
    gap: 1.1rem;
    padding-top: 1.4rem;
  }
}

/* Footer refinements: bigger logo + screenshot-like socials + dynamic quick menu */
.cd-footer-brand .custom-logo {
  max-height: 64px;
  width: auto;
}

.cd-footer-social a {
  background: #d28b3d;
}

.cd-footer-social a:hover {
  filter: brightness(1.05);
}

.cd-footer-quick-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.cd-footer-quick-menu a {
  color: #e5efff;
  font-weight: 600;
}

.cd-footer-quick-menu a:hover {
  color: #ffffff;
}

/* Footer top row like reference: logo left, socials right, desc full width */
.cd-footer-top {
  grid-template-columns: 1fr 1fr;
}

.cd-footer-about {
  grid-column: 1 / -1;
}

.cd-footer-brand-row {
  width: 100%;
  align-items: center;
}

.cd-footer-desc {
  margin-top: 0.7rem;
  max-width: none;
}

/* Keep social icon original brand colors from header */
.cd-footer-social a {
  background: var(--brand-color, #3b82f6) !important;
}

/* Place newsletter + quick links in next row */
.cd-footer-newsletter {
  grid-column: 1 / 2;
}

.cd-footer-links {
  grid-column: 2 / 3;
}

@media (max-width: 980px) {
  .cd-footer-about,
  .cd-footer-newsletter,
  .cd-footer-links {
    grid-column: auto;
  }
}

/* Footer disclaimer strip */
.cd-footer-disclaimer {
  margin: 0.35rem 0 1rem;
  border-radius: 12px;
  background: rgba(15, 20, 31, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.75rem 0.9rem 0.8rem;
}

.cd-footer-disclaimer h4 {
  margin: 0 0 0.45rem;
  color: #d28733;
  text-transform: uppercase;
  font-size: 1.05rem;
}

.cd-footer-disclaimer p {
  margin: 0;
  color: #f1f5ff;
  font-size: 0.95rem;
  line-height: 1.55;
}

/* Footer responsive refinements + company credit */
.cd-footer-credit a {
  color: #ffffff;
  font-weight: 700;
}

@media (max-width: 980px) {
  .cd-footer-top {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  .cd-footer-about,
  .cd-footer-newsletter,
  .cd-footer-links {
    grid-column: auto !important;
  }

  .cd-footer-brand-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }

  .cd-footer-social {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .cd-site-footer {
    margin-top: 1.4rem;
  }

  .cd-footer-top {
    padding-top: 1.2rem;
    padding-bottom: 1rem;
  }

  .cd-footer-desc {
    font-size: 0.9rem;
  }

  .cd-footer-news-form input[type="email"],
  .cd-footer-news-form button {
    height: 38px;
  }

  .cd-footer-bottom {
    font-size: 0.82rem;
    line-height: 1.5;
    padding-left: 0.7rem;
    padding-right: 0.7rem;
  }
}

/* Footer logo bigger */
.cd-footer-brand .custom-logo {
  max-height: 78px;
}

/* Footer newsletter compact + clearer */
.cd-footer-newsletter h3 {
  margin-bottom: 0.45rem;
  font-size: 1.05rem;
}

.cd-footer-newsletter p {
  margin-bottom: 0.5rem;
  font-size: 0.84rem;
  color: #cfe0fb;
}

.cd-footer-news-form {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(191, 213, 248, 0.42);
  border-radius: 9px;
  padding: 0.3rem;
}

.cd-footer-news-form input[type="email"] {
  flex: 1 1 auto;
  min-width: 0;
  height: 34px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  padding: 0 0.5rem;
  font-size: 0.86rem;
}

.cd-footer-news-form button {
  height: 34px;
  padding: 0 0.72rem;
  border-radius: 7px;
  font-size: 0.82rem;
  background: #4ea4ff;
}

@media (max-width: 640px) {
  .cd-footer-brand .custom-logo {
    max-height: 68px;
  }

  .cd-footer-news-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.35rem;
    padding: 0.4rem;
  }

  .cd-footer-news-form input[type="email"],
  .cd-footer-news-form button {
    width: 100%;
    height: 36px;
  }
}

/* Footer redesign: consistent theme palette + cleaner responsive layout */
.cd-site-footer {
  background: #0d3f97;
  color: #eef5ff;
}

.cd-footer-top {
  grid-template-columns: 1.2fr 1fr 0.95fr !important;
  gap: 1.25rem !important;
  padding-top: 1.4rem;
  padding-bottom: 1rem;
}

.cd-footer-brand .custom-logo {
  max-height: 64px;
}

.cd-footer-brand-row {
  align-items: center;
}

.cd-footer-desc {
  color: #d7e7ff;
  font-size: 0.92rem;
  line-height: 1.55;
  margin-top: 0.55rem;
}

.cd-footer-social a {
  box-shadow: none;
  width: 28px;
  height: 28px;
}

.cd-footer-col h3 {
  font-size: 1rem;
  margin-bottom: 0.45rem;
  color: #ffffff;
}

.cd-footer-newsletter p {
  color: #d2e3ff;
  font-size: 0.84rem;
  margin-bottom: 0.45rem;
}

.cd-footer-news-form {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(203, 223, 255, 0.35);
  border-radius: 8px;
  padding: 0.3rem;
  display: flex;
  gap: 0.4rem;
}

.cd-footer-news-form input[type="email"] {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  height: 34px;
  color: #fff;
  font-size: 0.86rem;
  padding: 0 0.5rem;
}

.cd-footer-news-form input::placeholder {
  color: #bdd3f6;
}

.cd-footer-news-form button {
  height: 34px;
  border-radius: 7px;
  background: #4a9dff;
  border: 0;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0 0.72rem;
}

.cd-footer-quick-menu,
.cd-footer-links ul {
  gap: 0.35rem;
}

.cd-footer-quick-menu a,
.cd-footer-links a {
  font-size: 0.9rem;
  color: #e7f0ff;
}

.cd-footer-disclaimer {
  margin: 0.2rem 0 0.85rem;
  background: rgba(6, 26, 66, 0.72);
  border: 1px solid rgba(204, 223, 255, 0.2);
}

.cd-footer-disclaimer h4 {
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

.cd-footer-disclaimer p {
  color: #eaf2ff;
  font-size: 0.9rem;
}

.cd-footer-bottom {
  border-top: 1px solid rgba(186, 209, 246, 0.28);
  color: #d8e8ff;
  font-size: 0.82rem;
  padding: 0.65rem 0.75rem 0.85rem;
}

@media (max-width: 980px) {
  .cd-footer-top {
    grid-template-columns: 1fr !important;
    gap: 0.9rem !important;
  }

  .cd-footer-brand-row {
    flex-direction: row;
    justify-content: space-between;
  }

  .cd-footer-news-form {
    display: grid;
    grid-template-columns: 1fr auto;
  }
}

@media (max-width: 640px) {
  .cd-site-footer {
    margin-top: 1.1rem;
  }

  .cd-footer-top {
    padding-top: 1rem;
    padding-bottom: 0.8rem;
  }

  .cd-footer-brand .custom-logo {
    max-height: 56px;
  }

  .cd-footer-brand-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
  }

  .cd-footer-news-form {
    grid-template-columns: 1fr;
  }

  .cd-footer-news-form input[type="email"],
  .cd-footer-news-form button {
    height: 36px;
    width: 100%;
  }

  .cd-footer-disclaimer {
    padding: 0.65rem 0.75rem;
  }
}

/* Footer categories column */
.cd-footer-category-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.cd-footer-category-menu a {
  color: #e7f0ff;
  font-size: 0.9rem;
  font-weight: 600;
}

.cd-footer-category-menu a:hover {
  color: #ffffff;
}

/* Breadcrumbs */
.cd-breadcrumbs {
  border: 0;
  background: #0b2a57;
}

.cd-breadcrumbs ol {
  margin: 0;
  padding: 0.52rem 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  justify-content: flex-start;
}

.cd-breadcrumbs li {
  display: inline-flex;
  align-items: center;
  color: #cddfff;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.25;
}

.cd-breadcrumbs li + li::before {
  content: "\2022";
  color: #90abd6;
  margin-right: 0.4rem;
}

.cd-breadcrumbs a {
  color: #f5f9ff;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease, text-decoration-color 0.2s ease;
}

.cd-breadcrumbs a:hover {
  color: #d28733;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}

.cd-breadcrumbs span {
  color: #ffffff;
}

.cd-breadcrumbs + .cd-site-footer {
  margin-top: 0 !important;
}

/* Contact page */
.cd-contact-page {
  padding-top: 0.9rem;
  padding-bottom: 1.2rem;
}

.cd-contact-hero {
  margin-bottom: 1.1rem;
}

.cd-contact-hero-inner {
  border: 1px solid #dde8f6;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
  padding: 1.15rem 1.15rem 1.2rem;
}

.cd-contact-eyebrow {
  margin: 0;
  color: #486389;
  text-transform: uppercase;
  font-size: 0.68rem;
  letter-spacing: 0.11em;
  font-weight: 700;
}

.cd-contact-title {
  margin: 0.3rem 0 0.45rem;
  color: #182334;
  font-size: 2.05rem;
  line-height: 1.15;
}

.cd-contact-subtitle {
  margin: 0;
  color: #516a90;
  max-width: 700px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.cd-contact-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 1.05rem;
}

.cd-contact-info {
  display: grid;
  gap: 0.8rem;
  align-content: start;
}

.cd-contact-card,
.cd-contact-form-wrap {
  border: 1px solid #d9e6f7;
  border-radius: 12px;
  background: #f9fbff;
  padding: 0.95rem;
  box-shadow: 0 8px 18px rgba(31, 62, 109, 0.05);
}

.cd-contact-form-wrap {
  background: #ffffff;
}

.cd-contact-card-eyebrow {
  margin: 0 0 0.32rem;
  color: #6684b1;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.62rem;
  font-weight: 700;
}

.cd-contact-card h3 {
  margin: 0 0 0.42rem;
  font-size: 1.03rem;
  color: #14253f;
}

.cd-contact-card p {
  margin: 0.08rem 0;
  color: #325179;
  font-size: 0.93rem;
  line-height: 1.45;
}

.cd-contact-card a {
  color: #214f8d;
}

.cd-contact-card a:hover {
  color: #16365f;
}

.cd-contact-social {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.cd-contact-social a {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-color, #3b82f6);
  color: #fff;
  transition: transform 0.2s ease;
}

.cd-contact-social a:hover {
  transform: translateY(-2px);
}

.cd-contact-social a svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.cd-contact-form-head {
  margin-bottom: 0.8rem;
}

.cd-contact-form-head h2 {
  margin: 0 0 0.22rem;
  color: #132845;
  font-size: 1.3rem;
  line-height: 1.25;
}

.cd-contact-form-head p {
  margin: 0;
  color: #4b668e;
  font-size: 0.9rem;
}

.cd-contact-message {
  margin: 0 0 0.8rem;
  border-radius: 8px;
  padding: 0.55rem 0.7rem;
  font-size: 0.9rem;
}

.cd-contact-message.is-success {
  background: #e5fff2;
  color: #00612f;
  border: 1px solid #8fe2b7;
}

.cd-contact-message.is-error {
  background: #ffe9ec;
  color: #8a1327;
  border: 1px solid #f6a4b3;
}

.cd-contact-form {
  display: grid;
  gap: 0.75rem;
}

.cd-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.cd-contact-form label {
  display: block;
  margin-bottom: 0.3rem;
  color: #1e416f;
  font-size: 0.81rem;
  letter-spacing: 0.02em;
  font-weight: 600;
}

.cd-contact-form input,
.cd-contact-form textarea {
  width: 100%;
  border: 1px solid #c4d8f4;
  border-radius: 10px;
  padding: 0.68rem 0.75rem;
  background: #fbfdff;
  color: #16325b;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.cd-contact-form input:focus,
.cd-contact-form textarea:focus {
  outline: none;
  border-color: #4f86c8;
  box-shadow: 0 0 0 3px rgba(79, 134, 200, 0.13);
  background: #ffffff;
}

.cd-contact-form textarea {
  resize: vertical;
  min-height: 148px;
}

.cd-contact-form button {
  border: 0;
  border-radius: 10px;
  height: 42px;
  background: linear-gradient(135deg, #1e4d87, #133969);
  color: #fff;
  font-weight: 700;
  font-size: 0.87rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cd-contact-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(14, 61, 131, 0.3);
}

@media (max-width: 980px) {
  .cd-contact-hero-inner {
    padding: 0.95rem;
  }

  .cd-contact-layout {
    grid-template-columns: 1fr;
  }

  .cd-contact-info {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }
}

@media (max-width: 640px) {
  .cd-breadcrumbs ol {
    padding: 0.48rem 0;
    gap: 0.35rem;
  }

  .cd-breadcrumbs li {
    font-size: 0.68rem;
  }

  .cd-contact-page {
    padding-top: 0.65rem;
  }

  .cd-contact-hero-inner {
    border-radius: 12px;
    padding: 0.85rem 0.8rem;
  }

  .cd-contact-title {
    font-size: 1.55rem;
  }

  .cd-contact-subtitle {
    font-size: 0.9rem;
  }

  .cd-contact-info {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .cd-contact-card,
  .cd-contact-form-wrap {
    padding: 0.8rem;
    border-radius: 10px;
  }

  .cd-contact-grid {
    grid-template-columns: 1fr;
  }

  .cd-contact-form button {
    height: 40px;
  }
}
