:root {
  --th-ink: #111827;
  --th-muted: #5b667a;
  --th-line: #d9e1ea;
  --th-bg: #f4f7fb;
  --th-card: #ffffff;
  --th-navy: #10233f;
  --th-blue: #1f5eff;
  --th-blue-dark: #1648c7;
  --th-orange: #ff8a1f;
  --th-green: #18a058;
  --th-shadow: 0 18px 50px rgba(16, 35, 63, 0.13);
  --th-radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--th-ink);
  background: #ffffff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: var(--th-blue);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--th-blue-dark);
}

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

.th-container {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.screen-reader-text,
.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  background: #fff;
  color: var(--th-ink);
  padding: 10px 14px;
  z-index: 9999;
  border-radius: 8px;
}

.th-site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(217, 225, 234, 0.8);
}

.th-header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.th-branding {
  display: flex;
  flex-direction: column;
  min-width: 210px;
}

.th-logo-text {
  font-weight: 950;
  font-size: 24px;
  letter-spacing: -0.04em;
  color: var(--th-navy);
}

.custom-logo {
  max-height: 54px;
  width: auto;
}

.th-tagline {
  color: var(--th-muted);
  font-size: 12px;
}

.th-main-nav {
  margin-left: auto;
}

.th-main-nav ul {
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.th-main-nav a {
  color: var(--th-ink);
  font-weight: 760;
  font-size: 14px;
}

.th-header-cta,
.th-button,
.th-search-form button,
.th-wide-search button,
.th-search-panel button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  background: var(--th-blue);
  color: #fff !important;
  padding: 13px 20px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(31, 94, 255, 0.22);
}

.th-button:hover,
.th-header-cta:hover,
.th-search-form button:hover,
.th-wide-search button:hover,
.th-search-panel button:hover {
  background: var(--th-blue-dark);
  color: #fff;
}

.th-button-light {
  background: #fff;
  color: var(--th-navy) !important;
  box-shadow: none;
}

.th-button-light:hover {
  color: #fff !important;
}

.th-button-small {
  padding: 10px 15px;
  font-size: 14px;
}

.th-menu-toggle {
  display: none;
  border: 1px solid var(--th-line);
  background: #fff;
  color: var(--th-ink);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 800;
}

.th-hero {
  background:
    radial-gradient(circle at 80% 10%, rgba(255, 138, 31, 0.24), transparent 28%),
    linear-gradient(135deg, #0d1c33 0%, #143766 56%, #1f5eff 100%);
  color: #fff;
  padding: 78px 0;
}

.th-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 410px;
  gap: 42px;
  align-items: center;
}

.th-eyebrow,
.th-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(31, 94, 255, 0.1);
  color: var(--th-blue-dark);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.th-hero .th-eyebrow {
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.th-hero h1,
.th-archive-hero h1 {
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.06em;
  margin: 18px 0;
}

.th-hero p,
.th-archive-hero p {
  color: rgba(255, 255, 255, 0.86);
  font-size: 20px;
  max-width: 690px;
}

.th-hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.th-search-panel {
  background: #fff;
  color: var(--th-ink);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--th-shadow);
}

.th-search-panel h2 {
  margin-top: 0;
  font-size: 28px;
}

.th-search-panel form {
  display: grid;
  gap: 12px;
}

.th-search-panel label {
  font-weight: 850;
}

input[type="search"],
input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  width: 100%;
  border: 1px solid var(--th-line);
  border-radius: 14px;
  padding: 14px 15px;
  font: inherit;
  color: var(--th-ink);
  background: #fff;
}

.th-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.th-quick-links a {
  border: 1px solid var(--th-line);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--th-ink);
  font-weight: 800;
  background: var(--th-bg);
}

.th-section {
  padding: 70px 0;
}

.th-section:nth-of-type(even) {
  background: var(--th-bg);
}

.th-section-heading {
  margin-bottom: 28px;
}

.th-section-heading h2,
.th-page-header h1,
.th-single-header h1,
.th-listing-single-hero h1 {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin: 12px 0;
  color: var(--th-navy);
}

.th-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
}

.th-text-link {
  font-weight: 950;
}

.th-type-grid,
.th-post-grid,
.th-listing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.th-post-grid,
.th-listing-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.th-type-grid a {
  display: block;
  background: #fff;
  border: 1px solid var(--th-line);
  border-radius: var(--th-radius);
  padding: 24px;
  box-shadow: 0 12px 30px rgba(16, 35, 63, 0.07);
  color: var(--th-ink);
  min-height: 160px;
}

.th-type-grid strong {
  display: block;
  font-size: 20px;
  margin-bottom: 8px;
  color: var(--th-navy);
}

.th-type-grid span {
  color: var(--th-muted);
}

.th-post-card,
.th-listing-card {
  overflow: hidden;
  border: 1px solid var(--th-line);
  border-radius: var(--th-radius);
  background: var(--th-card);
  box-shadow: 0 14px 32px rgba(16, 35, 63, 0.08);
}

.th-post-card-image,
.th-listing-image {
  display: block;
  aspect-ratio: 16 / 10;
  background: #dfe7f0;
  overflow: hidden;
}

.th-post-card-image img,
.th-listing-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.th-post-card:hover img,
.th-listing-card:hover img {
  transform: scale(1.04);
}

.th-placeholder {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--th-navy);
  font-weight: 950;
}

.th-post-card-body,
.th-listing-body {
  padding: 22px;
}

.th-post-card h3,
.th-listing-card h3 {
  margin: 12px 0 8px;
  font-size: 23px;
  line-height: 1.15;
}

.th-post-card h3 a,
.th-listing-card h3 a {
  color: var(--th-navy);
}

.th-meta,
.th-listing-specs,
.th-listing-single-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--th-muted);
  font-size: 13px;
  font-weight: 750;
}

.th-meta span,
.th-listing-specs span,
.th-listing-single-meta span {
  background: var(--th-bg);
  border-radius: 999px;
  padding: 6px 10px;
}

.th-price {
  color: var(--th-green);
  font-size: 24px;
  font-weight: 950;
  margin: 8px 0;
}

.th-read-more {
  font-weight: 950;
}

.th-split-cta {
  background: #0d1c33 !important;
  color: #fff;
}

.th-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.th-split-grid > div {
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 26px;
  padding: 32px;
  background: rgba(255, 255, 255, 0.07);
}

.th-split-grid h2 {
  color: #fff;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.05;
  margin: 12px 0;
}

.th-split-grid p {
  color: rgba(255, 255, 255, 0.82);
}

.th-content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 36px;
  padding-top: 44px;
  padding-bottom: 70px;
}

.th-main-column {
  min-width: 0;
}

.th-page-header {
  margin-bottom: 30px;
}

.th-page-header p {
  color: var(--th-muted);
  font-size: 19px;
}

.th-post-grid-single {
  grid-template-columns: 1fr 1fr;
}

.th-sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
}

.th-widget {
  background: var(--th-bg);
  border: 1px solid var(--th-line);
  border-radius: var(--th-radius);
  padding: 22px;
  margin-bottom: 18px;
}

.th-widget h2,
.th-widget h3 {
  margin-top: 0;
  color: var(--th-navy);
}

.th-widget ul {
  padding-left: 18px;
  margin-bottom: 0;
}

.th-widget li {
  margin-bottom: 8px;
}

.th-search-form {
  display: flex;
  gap: 8px;
}

.th-search-form input {
  min-width: 0;
}

.th-archive-hero,
.th-listing-single-hero {
  background:
    radial-gradient(circle at 80% 10%, rgba(255, 138, 31, 0.25), transparent 28%),
    linear-gradient(135deg, #0d1c33 0%, #143766 60%, #1f5eff 100%);
  color: #fff;
  padding: 56px 0;
}

.th-archive-hero .th-breadcrumbs,
.th-listing-single-hero .th-breadcrumbs,
.th-archive-hero .th-breadcrumbs a,
.th-listing-single-hero .th-breadcrumbs a {
  color: rgba(255, 255, 255, 0.8);
}

.th-wide-search {
  display: flex;
  gap: 10px;
  max-width: 800px;
  margin-top: 24px;
}

.th-wide-search input {
  background: #fff;
}

.th-single,
.th-page {
  background: #fff;
}

.th-single-header,
.th-page-header {
  margin-bottom: 24px;
}

.th-featured-image {
  border-radius: 24px;
  overflow: hidden;
  margin: 24px 0;
  border: 1px solid var(--th-line);
}

.th-featured-image img {
  display: block;
  width: 100%;
}

.th-entry-content {
  font-size: 18px;
}

.th-entry-content h2,
.th-entry-content h3,
.th-entry-content h4 {
  color: var(--th-navy);
  line-height: 1.15;
  margin-top: 34px;
}

.th-entry-content p,
.th-entry-content li {
  color: #263241;
}

.th-entry-content a {
  font-weight: 850;
}

.th-inline-cta,
.th-error-page,
.th-empty-state {
  background: var(--th-bg);
  border: 1px solid var(--th-line);
  border-radius: 26px;
  padding: 30px;
  margin: 36px 0;
}

.th-listing-single-grid,
.th-listing-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 34px;
  align-items: start;
}

.th-listing-contact-card,
.th-spec-card {
  background: #fff;
  color: var(--th-ink);
  border-radius: 26px;
  padding: 26px;
  box-shadow: var(--th-shadow);
}

.th-price-large {
  color: #fff !important;
  background: rgba(24, 160, 88, 0.85) !important;
  font-size: 20px !important;
}

.th-spec-card {
  position: sticky;
  top: 100px;
  border: 1px solid var(--th-line);
}

.th-spec-card dl {
  display: grid;
  gap: 12px;
}

.th-spec-card dt {
  color: var(--th-muted);
  font-weight: 850;
}

.th-spec-card dd {
  margin: -10px 0 8px;
  font-weight: 900;
  color: var(--th-navy);
}

.th-breadcrumbs {
  margin-bottom: 18px;
  color: var(--th-muted);
  font-size: 14px;
}

.th-tags a {
  display: inline-flex;
  margin: 4px;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--th-bg);
  color: var(--th-ink);
  font-weight: 800;
}

.comments-area {
  margin-top: 40px;
}

.navigation.pagination {
  grid-column: 1 / -1;
  margin-top: 20px;
}

.nav-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.page-numbers {
  display: inline-flex;
  min-width: 38px;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--th-bg);
  color: var(--th-ink);
  font-weight: 850;
}

.page-numbers.current {
  background: var(--th-blue);
  color: #fff;
}

.th-site-footer {
  background: #0d1c33;
  color: #cbd6e2;
  padding: 56px 0 24px;
}

.th-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 30px;
}

.th-site-footer h2,
.th-site-footer h3 {
  color: #fff;
  margin-top: 0;
}

.th-site-footer ul {
  padding: 0;
  list-style: none;
}

.th-site-footer li {
  margin-bottom: 9px;
}

.th-site-footer a {
  color: #eaf1ff;
}

.th-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  margin-top: 34px;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 14px;
}

@media (max-width: 980px) {
  .th-header-inner {
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .th-menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .th-main-nav {
    display: none;
    width: 100%;
    order: 5;
  }

  .th-main-nav.is-open {
    display: block;
  }

  .th-main-nav ul {
    display: grid;
    gap: 10px;
    padding: 14px 0;
  }

  .th-header-cta {
    display: none;
  }

  .th-hero-grid,
  .th-content-layout,
  .th-listing-single-grid,
  .th-listing-detail-grid,
  .th-split-grid {
    grid-template-columns: 1fr;
  }

  .th-sidebar,
  .th-spec-card {
    position: static;
  }

  .th-type-grid,
  .th-post-grid,
  .th-listing-grid,
  .th-post-grid-single,
  .th-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .th-container {
    width: min(100% - 28px, 1180px);
  }

  .th-hero,
  .th-section,
  .th-archive-hero,
  .th-listing-single-hero {
    padding: 44px 0;
  }

  .th-type-grid,
  .th-post-grid,
  .th-listing-grid,
  .th-post-grid-single,
  .th-footer-grid {
    grid-template-columns: 1fr;
  }

  .th-heading-row,
  .th-wide-search,
  .th-search-form {
    flex-direction: column;
    align-items: stretch;
  }

  .th-hero h1,
  .th-archive-hero h1 {
    font-size: 42px;
  }
}
