/*
  oXnames WordPress blog polish
  Paste into WordPress > Appearance > Customize > Additional CSS.
  This is scoped to the Newsmatic blog theme and Elementor output.
*/

:root {
  --ox-ink: #10151c;
  --ox-muted: #5f6b77;
  --ox-teal: #08716a;
  --ox-teal-bright: #25d7e8;
  --ox-blue: #1f5fbf;
  --ox-pink: #ff2f7c;
  --ox-coral: #ff6b5f;
  --ox-gold: #f5a623;
  --ox-surface: #f8fbf9;
  --ox-border: rgba(16, 21, 28, 0.08);
}

body.newsmatic_main_body {
  background: var(--ox-surface);
  color: var(--ox-ink);
  --theme-color-red: var(--ox-teal);
}

body.newsmatic_main_body a {
  color: var(--ox-teal);
}

body.newsmatic_main_body a:hover,
body.newsmatic_main_body a:focus {
  color: var(--ox-blue);
}

/* Header: bring the blog closer to the main oXnames site */
body.newsmatic_main_body .site-header,
body.newsmatic_main_body .elementor-location-header,
body.newsmatic_main_body [data-elementor-type="nekit-document"] {
  position: relative;
  z-index: 20;
}

body.newsmatic_main_body .site-header.layout--default .top-header,
body.newsmatic_main_body .elementor-element[data-id="ad33f71"],
body.newsmatic_main_body .elementor-element[data-id="4bc8557"] {
  background: linear-gradient(90deg, #17236f 0%, #0e56d6 58%, #064ec1 100%) !important;
  color: #fff;
}

body.newsmatic_main_body .elementor-widget-icon-list .elementor-icon-list-text,
body.newsmatic_main_body .elementor-widget-text-editor {
  color: inherit;
}

body.newsmatic_main_body .elementor-element[data-id="e514837"],
body.newsmatic_main_body .elementor-element[data-id="0ad4bc7"] {
  font-weight: 800;
}

body.newsmatic_main_body .elementor-element[data-id="e514837"] strong,
body.newsmatic_main_body .elementor-element[data-id="0ad4bc7"] strong {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  color: #061827;
  background: linear-gradient(135deg, #28d7e8, #8be78d);
  font-weight: 900;
}

body.newsmatic_main_body .main-header,
body.newsmatic_main_body .menu-section,
body.newsmatic_main_body .elementor-element[data-id="f63d1c8"] {
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 10px 30px rgba(12, 28, 45, 0.08);
  backdrop-filter: blur(14px);
}

body.newsmatic_main_body .site-header.layout--default .menu-section .row {
  border-top: 0 !important;
}

body.newsmatic_main_body .main-navigation a,
body.newsmatic_main_body .menu a,
body.newsmatic_main_body .elementor-nav-menu a {
  border-radius: 999px;
  color: #243040 !important;
  font-weight: 750;
}

body.newsmatic_main_body .main-navigation a:hover,
body.newsmatic_main_body .menu a:hover,
body.newsmatic_main_body .elementor-nav-menu a:hover {
  color: var(--ox-teal) !important;
  background: rgba(8, 113, 106, 0.08);
}

body.newsmatic_main_body .header-custom-button,
body.newsmatic_main_body a.header-custom-button,
body.newsmatic_main_body .elementor-button {
  border-radius: 10px !important;
  background: linear-gradient(135deg, var(--ox-pink), var(--ox-coral)) !important;
  box-shadow: 0 14px 28px rgba(255, 47, 124, 0.22);
  color: #fff !important;
  font-weight: 900;
}

/* Page and archive layout */
body.newsmatic_main_body .site-content,
body.newsmatic_main_body #content {
  background:
    radial-gradient(circle at 12% 0%, rgba(37, 215, 232, 0.12), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, var(--ox-surface) 48%, #ffffff 100%);
}

body.newsmatic_main_body .site-main,
body.newsmatic_main_body .primary-content {
  color: var(--ox-ink);
}

body.newsmatic_main_body h1,
body.newsmatic_main_body h2,
body.newsmatic_main_body h3,
body.newsmatic_main_body .post-title,
body.newsmatic_main_body .entry-title {
  color: var(--ox-ink);
  letter-spacing: 0;
}

body.newsmatic_main_body .entry-title a,
body.newsmatic_main_body .post-title a {
  color: var(--ox-ink);
}

body.newsmatic_main_body .entry-title a:hover,
body.newsmatic_main_body .post-title a:hover {
  color: var(--ox-teal);
}

body.newsmatic_main_body .post-element,
body.newsmatic_main_body article.post,
body.newsmatic_main_body .widget,
body.newsmatic_main_body .nekit-item-box-wrap,
body.newsmatic_main_body .elementor-widget-container {
  border-color: var(--ox-border);
}

body.newsmatic_main_body main.site-main .primary-content article,
body.newsmatic_main_body .post-element,
body.newsmatic_main_body .nekit-item-box-wrap {
  border: 1px solid var(--ox-border);
  border-radius: 10px !important;
  background: #fff;
  box-shadow: 0 18px 46px rgba(12, 28, 45, 0.07);
  overflow: hidden;
}

body.newsmatic_main_body main.site-main .primary-content article figure.post-thumb-wrap,
body.newsmatic_main_body .post-thumb,
body.newsmatic_main_body figure.post-thumb {
  border-radius: 10px 10px 0 0 !important;
}

body.newsmatic_main_body img {
  height: auto;
}

body.newsmatic_main_body .post-categories .cat-item,
body.newsmatic_main_body body.single .post-categories .cat-item {
  border-radius: 999px;
  background: linear-gradient(135deg, var(--ox-teal), var(--ox-blue)) !important;
}

body.newsmatic_main_body .post-categories .cat-item a {
  color: #fff !important;
  font-weight: 850;
}

body.newsmatic_main_body .post-meta,
body.newsmatic_main_body .byline,
body.newsmatic_main_body .posted-on,
body.newsmatic_main_body .entry-meta {
  color: var(--ox-muted);
  font-size: 0.92rem;
}

body.newsmatic_main_body .read-more,
body.newsmatic_main_body .read-more a,
body.newsmatic_main_body a.read-more-button {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 15px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--ox-teal), var(--ox-blue));
  color: #fff !important;
  font-weight: 850;
}

/* Single posts: make articles feel like oXnames guides */
body.single-post.newsmatic_main_body .site-main,
body.single-post.newsmatic_main_body .primary-content {
  max-width: 1180px;
  margin-inline: auto;
}

body.single-post.newsmatic_main_body .entry-content {
  color: #26313d;
  font-size: 1.05rem;
  line-height: 1.85;
}

body.single-post.newsmatic_main_body .entry-content h2 {
  margin-top: 42px;
  color: var(--ox-ink);
  font-size: clamp(1.55rem, 3vw, 2.3rem);
  line-height: 1.16;
}

body.single-post.newsmatic_main_body .entry-content h3 {
  margin-top: 28px;
  color: var(--ox-ink);
}

body.single-post.newsmatic_main_body .entry-content table {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--ox-border);
  border-radius: 10px;
  background: #fff;
  border-collapse: separate;
  border-spacing: 0;
}

body.single-post.newsmatic_main_body .entry-content th {
  background: #07343a;
  color: #fff;
}

body.single-post.newsmatic_main_body .entry-content th,
body.single-post.newsmatic_main_body .entry-content td {
  padding: 15px;
  border-bottom: 1px solid var(--ox-border);
}

body.single-post.newsmatic_main_body .entry-content blockquote,
body.single-post.newsmatic_main_body .entry-content .wp-block-quote {
  border-left: 5px solid var(--ox-teal);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(12, 28, 45, 0.06);
  color: #26313d;
}

/* Sidebar and widgets */
body.newsmatic_main_body aside .widget,
body.newsmatic_main_body .secondary .widget {
  border: 1px solid var(--ox-border);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(12, 28, 45, 0.06);
}

body.newsmatic_main_body aside .widget-title,
body.newsmatic_main_body .widget-title {
  color: var(--ox-ink);
  font-weight: 850;
}

/* Footer */
body.newsmatic_main_body .site-footer,
body.newsmatic_main_body .site-footer.dark_bk {
  border-top: 0 !important;
  background:
    radial-gradient(circle at 20% 0%, rgba(37, 215, 232, 0.14), transparent 28%),
    linear-gradient(135deg, #061827, #07343a 58%, #102a50) !important;
}

body.newsmatic_main_body .site-footer a {
  color: rgba(255, 255, 255, 0.86);
}

body.newsmatic_main_body .site-footer a:hover {
  color: #fff;
}

/* Search and forms */
body.newsmatic_main_body input[type="search"],
body.newsmatic_main_body input[type="text"],
body.newsmatic_main_body input[type="email"],
body.newsmatic_main_body textarea {
  border: 1px solid #cfdde1;
  border-radius: 8px;
}

body.newsmatic_main_body button,
body.newsmatic_main_body input[type="submit"] {
  border-radius: 999px;
  background: linear-gradient(135deg, var(--ox-teal), var(--ox-blue));
  color: #fff;
  font-weight: 850;
}

/* Mobile polish */
@media (max-width: 768px) {
  body.newsmatic_main_body .elementor-element[data-id="ad33f71"],
  body.newsmatic_main_body .elementor-element[data-id="4bc8557"] {
    display: none !important;
  }

  body.newsmatic_main_body main.site-main .primary-content article,
  body.newsmatic_main_body .post-element,
  body.newsmatic_main_body .nekit-item-box-wrap {
    border-radius: 8px !important;
  }

  body.single-post.newsmatic_main_body .entry-content {
    font-size: 1rem;
    line-height: 1.75;
  }
}
