/*
Theme Name: Tech Press Media - Blog Link News
Theme URI: https://example.com/tech-press-media-blog-link-news
Author: Tech Press Media
Author URI: https://example.com/
Description: A clean information blog theme for WordPress with a global media reference homepage, full article display and a market ticker.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tpm-blog-link-news
Tags: blog, news, one-column, custom-logo, featured-images, full-width-template
*/

:root {
  --tpm-bg: #f4f7fb;
  --tpm-surface: #ffffff;
  --tpm-text: #152033;
  --tpm-muted: #5c6a7d;
  --tpm-border: #dfe7f2;
  --tpm-primary: #0b4ea2;
  --tpm-primary-dark: #06356d;
  --tpm-accent: #18a0fb;
  --tpm-soft: #eaf3ff;
  --tpm-shadow: 0 18px 45px rgba(15, 41, 77, 0.10);
  --tpm-radius: 22px;
  --tpm-content: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--tpm-bg);
  color: var(--tpm-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.72;
}

a {
  color: var(--tpm-primary);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover,
a:focus {
  color: var(--tpm-primary-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.tpm-site-header {
  background: rgba(255,255,255,0.94);
  border-bottom: 1px solid var(--tpm-border);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
}

.tpm-header-inner,
.tpm-container {
  width: min(calc(100% - 40px), var(--tpm-content));
  margin: 0 auto;
}

.tpm-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 82px;
}

.tpm-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 240px;
  text-decoration: none;
}

.tpm-logo-mark {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--tpm-primary), var(--tpm-accent));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  letter-spacing: -0.04em;
  box-shadow: 0 10px 22px rgba(11, 78, 162, 0.23);
}

.tpm-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.tpm-site-title {
  color: var(--tpm-text);
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.tpm-site-tagline {
  color: var(--tpm-muted);
  font-size: 0.82rem;
  margin-top: 4px;
}

.tpm-primary-menu ul,
ul.tpm-primary-menu {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.tpm-primary-menu a {
  color: var(--tpm-text);
  text-decoration: none;
  display: inline-flex;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.93rem;
  font-weight: 700;
}

.tpm-primary-menu a:hover,
.tpm-primary-menu .current-menu-item > a,
.tpm-primary-menu .current_page_item > a {
  background: var(--tpm-soft);
  color: var(--tpm-primary-dark);
}


.tpm-ticker-strip {
  background: #ffffff;
  border-bottom: 1px solid var(--tpm-border);
}

.tpm-ticker-inner {
  width: min(calc(100% - 40px), var(--tpm-content));
  margin: 0 auto;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.tpm-ticker-inner tv-ticker-tape {
  width: 100%;
}

.tpm-hero {
  background:
    radial-gradient(circle at 15% 15%, rgba(24,160,251,0.20), transparent 28%),
    linear-gradient(135deg, #0a2540 0%, #0b4ea2 54%, #18a0fb 100%);
  color: #fff;
  padding: 70px 0 64px;
}

.tpm-hero .tpm-container {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 34px;
  align-items: center;
}

.tpm-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.12);
  border-radius: 999px;
  padding: 8px 13px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tpm-hero h1 {
  font-size: clamp(2.3rem, 5vw, 4.7rem);
  line-height: 0.98;
  margin: 18px 0 18px;
  letter-spacing: -0.065em;
}

.tpm-hero p {
  max-width: 720px;
  color: rgba(255,255,255,0.88);
  font-size: 1.15rem;
  margin: 0;
}

.tpm-hero-card {
  background: rgba(255,255,255,0.13);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--tpm-radius);
  padding: 26px;
  box-shadow: 0 20px 55px rgba(0,0,0,0.18);
}

.tpm-hero-card strong {
  display: block;
  font-size: 1.4rem;
  line-height: 1.15;
  margin-bottom: 10px;
}

.tpm-hero-card span {
  color: rgba(255,255,255,0.82);
  display: block;
}

.tpm-main {
  padding: 46px 0 70px;
}

.tpm-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 22px;
}

.tpm-section-heading h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.tpm-section-heading p {
  color: var(--tpm-muted);
  max-width: 470px;
  margin: 0;
  font-size: 0.98rem;
}

.tpm-post-stack {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.tpm-post-card {
  background: var(--tpm-surface);
  border: 1px solid var(--tpm-border);
  border-radius: var(--tpm-radius);
  box-shadow: var(--tpm-shadow);
  overflow: hidden;
}

.tpm-post-card-inner {
  padding: clamp(24px, 4vw, 42px);
}

.tpm-featured-image {
  margin: 0;
  max-height: 460px;
  overflow: hidden;
  background: #dbe7f5;
}

.tpm-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tpm-entry-meta {
  color: var(--tpm-muted);
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.tpm-entry-meta a {
  color: var(--tpm-muted);
  text-decoration: none;
}

.tpm-entry-meta a:hover {
  color: var(--tpm-primary);
}

.tpm-entry-title {
  font-size: clamp(1.8rem, 3.5vw, 3.3rem);
  line-height: 1.04;
  letter-spacing: -0.055em;
  margin: 0 0 20px;
}

.tpm-entry-title a {
  color: var(--tpm-text);
  text-decoration: none;
}

.tpm-entry-title a:hover {
  color: var(--tpm-primary);
}

.tpm-entry-content {
  color: #243148;
}

.tpm-entry-content > *:first-child {
  margin-top: 0;
}

.tpm-entry-content > *:last-child {
  margin-bottom: 0;
}

.tpm-entry-content h2,
.tpm-entry-content h3,
.tpm-entry-content h4 {
  line-height: 1.18;
  letter-spacing: -0.03em;
  margin-top: 1.55em;
  margin-bottom: 0.6em;
}

.tpm-entry-content p {
  margin: 0 0 1.15em;
}

.tpm-entry-content ul,
.tpm-entry-content ol {
  padding-left: 1.35em;
  margin: 0 0 1.15em;
}

.tpm-entry-content blockquote {
  margin: 1.5em 0;
  border-left: 5px solid var(--tpm-primary);
  padding: 0.15em 0 0.15em 1em;
  color: #33445f;
  background: #f7fbff;
}

.tpm-entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.3em 0;
  overflow-x: auto;
  display: block;
}

.tpm-entry-content th,
.tpm-entry-content td {
  border: 1px solid var(--tpm-border);
  padding: 10px 12px;
  text-align: left;
}

.tpm-entry-content a {
  font-weight: 700;
}

.tpm-read-more-wrap {
  margin-top: 24px;
}

.tpm-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--tpm-primary);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  padding: 12px 18px;
  box-shadow: 0 10px 22px rgba(11, 78, 162, 0.16);
}

.tpm-button:hover,
.tpm-button:focus {
  background: var(--tpm-primary-dark);
  color: #fff;
}

.tpm-page-card {
  background: #fff;
  border: 1px solid var(--tpm-border);
  border-radius: var(--tpm-radius);
  box-shadow: var(--tpm-shadow);
  padding: clamp(26px, 5vw, 52px);
}

.tpm-page-title {
  margin: 0 0 20px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.tpm-footer {
  background: #071a33;
  color: rgba(255,255,255,0.78);
  padding: 38px 0;
}

.tpm-footer a {
  color: #fff;
}

.tpm-footer-inner {
  width: min(calc(100% - 40px), var(--tpm-content));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
}

.tpm-footer-title {
  color: #fff;
  font-weight: 800;
  display: block;
}

.tpm-footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.tpm-footer-links a {
  text-decoration: none;
  font-weight: 700;
}

.tpm-empty {
  background: #fff;
  border: 1px dashed var(--tpm-border);
  border-radius: var(--tpm-radius);
  padding: 28px;
  color: var(--tpm-muted);
}

@media (max-width: 820px) {
  .tpm-header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 0;
  }

  .tpm-primary-menu ul,
  ul.tpm-primary-menu {
    justify-content: flex-start;
  }

  .tpm-hero .tpm-container {
    grid-template-columns: 1fr;
  }

  .tpm-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .tpm-header-inner,
  .tpm-container,
  .tpm-footer-inner {
    width: min(calc(100% - 28px), var(--tpm-content));
  }

  .tpm-brand {
    min-width: 0;
  }

  .tpm-logo-mark {
    width: 42px;
    height: 42px;
    border-radius: 13px;
  }

  .tpm-primary-menu a {
    padding: 8px 10px;
  }

  
.tpm-ticker-strip {
  background: #ffffff;
  border-bottom: 1px solid var(--tpm-border);
}

.tpm-ticker-inner {
  width: min(calc(100% - 40px), var(--tpm-content));
  margin: 0 auto;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.tpm-ticker-inner tv-ticker-tape {
  width: 100%;
}

.tpm-hero {
    padding: 48px 0;
  }
}
