:root {
  --brand: #0f4c81;
  --brand-dark: #0b3b63;
  --accent: #f97316;

  --text: #0f172a;
  --muted: #64748b;

  --bg: #f8fafc;
  --white: #ffffff;
  --line: #e2e8f0;

  --container: 1200px;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --radius: 18px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.6;
}

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

a {
  color: var(--brand);
  transition: all 0.2s ease;
}

a:hover {
  color: var(--brand-dark);
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.site-main {
  min-height: 60vh;
}

.entry,
.page-content,
.post-content {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 24px;
}

/* =========================
   CONTENT PAGES
========================= */
.content-page {
  padding: 28px 0 48px;
}

.content-hero {
  margin-bottom: 24px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(249, 115, 22, 0.08), transparent 24%),
    radial-gradient(circle at left top, rgba(15, 76, 129, 0.08), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: var(--shadow);
}

.content-hero--center {
  text-align: center;
}

.content-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(15, 76, 129, 0.08);
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 12px;
}

.content-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 14px;
}

.content-hero__title {
  margin: 0 0 10px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
  color: var(--text);
}

.content-hero__title span {
  color: var(--brand);
}

.content-hero__desc {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
  max-width: 780px;
}

.content-hero__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 22px;
}

.content-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: start;
}

.content-main,
.content-sidebar,
.bttk-sidebar {
  min-width: 0;
}

.content-list {
  display: grid;
  gap: 18px;
}

.content-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.content-card__body {
  padding: 22px;
}

.content-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 10px;
}

.content-card__title {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.3;
}

.content-card__title a {
  text-decoration: none;
  color: var(--text);
}

.content-card__title a:hover {
  color: var(--brand);
}

.content-card__excerpt {
  color: var(--muted);
  line-height: 1.75;
}

.content-card__link {
  display: inline-flex;
  margin-top: 14px;
  text-decoration: none;
  font-weight: 700;
}

.content-article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.content-article__thumb img {
  width: 100%;
  height: auto;
  display: block;
}

.content-article__body {
  padding: 24px;
}

.content-article__body h2,
.content-article__body h3,
.content-article__body h4 {
  color: var(--text);
}

.content-article__body p,
.content-article__body li {
  color: var(--muted);
  line-height: 1.8;
}

.content-article__body a {
  word-break: break-word;
}

.content-article__body img {
  border-radius: 16px;
}

.content-empty {
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 28px;
}

.content-empty--boxed {
  text-align: center;
}

.content-empty h2 {
  margin: 0 0 10px;
  color: var(--text);
}

.content-empty p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.content-empty__actions {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.content-pagination {
  margin-top: 20px;
}

.content-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.content-pagination .page-numbers {
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.content-pagination .page-numbers.current {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.content-post-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.content-post-nav__prev,
.content-post-nav__next {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 18px;
}

.content-post-nav__next {
  text-align: right;
}

.content-post-nav a {
  text-decoration: none;
  font-weight: 700;
}

.content-page .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
}

.content-page .btn-primary {
  background: var(--brand);
  color: #fff;
}

.content-page .btn-primary:hover {
  background: var(--brand-dark);
  color: #fff;
}

.content-page .btn-outline {
  border: 1px solid rgba(15, 76, 129, 0.18);
  background: #fff;
  color: var(--brand);
}

.content-page .btn-outline:hover {
  background: rgba(15, 76, 129, 0.04);
  border-color: var(--brand);
}

/* =========================
   COMMENTS
========================= */
.bttk-comments {
  margin-top: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 24px;
}

.bttk-comments__header {
  margin-bottom: 18px;
}

.bttk-comments__title {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
  color: var(--text);
}

.bttk-comment-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.bttk-comment-list .comment {
  list-style: none;
}

.bttk-comment-list .comment-body {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.bttk-comment-list .comment-meta {
  margin-bottom: 10px;
}

.bttk-comment-list .comment-author {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
}

.bttk-comment-list .comment-author img {
  border-radius: 999px;
}

.bttk-comment-list .comment-metadata {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
}

.bttk-comment-list .comment-metadata a {
  color: var(--muted);
  text-decoration: none;
}

.bttk-comment-list .comment-content p {
  color: var(--muted);
  line-height: 1.8;
}

.bttk-comment-list .reply a {
  display: inline-flex;
  margin-top: 8px;
  text-decoration: none;
  font-weight: 700;
}

.bttk-comments__form {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.bttk-comment-form__title {
  margin: 0 0 16px;
  font-size: 22px;
  line-height: 1.2;
  color: var(--text);
}

.bttk-comment-form label {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.bttk-comment-form input[type="text"],
.bttk-comment-form input[type="email"],
.bttk-comment-form input[type="url"],
.bttk-comment-form textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  background: #fff;
  color: var(--text);
  box-shadow: none;
}

.bttk-comment-form textarea {
  min-height: 140px;
  resize: vertical;
}

.bttk-comment-submit,
.bttk-comment-form input[type="submit"] {
  min-height: 44px;
  padding: 0 18px !important;
  border-radius: 12px !important;
  background: var(--brand) !important;
  color: #fff !important;
  font-weight: 800 !important;
  border: 0 !important;
  box-shadow: none !important;
}

.bttk-comment-submit:hover,
.bttk-comment-form input[type="submit"]:hover {
  background: var(--brand-dark) !important;
  color: #fff !important;
}

/* =========================
   SEARCH FORM
========================= */
.bttk-search-form {
  width: 100%;
}

.bttk-search-form__inner,
.content-empty .search-form,
.content-sidebar .search-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.bttk-search-form__field,
.content-empty .search-field,
.content-sidebar .search-field {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 14px;
  background: #fff;
  color: var(--text);
  box-shadow: none;
}

.bttk-search-form__submit,
.content-empty .search-submit,
.content-sidebar .search-submit {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 12px;
  border: 0;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.bttk-search-form__submit:hover,
.content-empty .search-submit:hover,
.content-sidebar .search-submit:hover {
  background: var(--brand-dark);
}

/* =========================
   SIDEBAR / WIDGETS
========================= */
.bttk-sidebar__inner,
.content-sidebar__box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 20px;
}

.content-sidebar__box {
  position: sticky;
  top: 96px;
}

.widget-area .widget,
.bttk-sidebar .widget,
.content-sidebar .widget {
  margin-bottom: 22px;
}

.widget-area .widget:last-child,
.bttk-sidebar .widget:last-child,
.content-sidebar .widget:last-child {
  margin-bottom: 0;
}

.widget-title {
  margin: 0 0 12px;
  font-size: 18px;
  line-height: 1.3;
  color: var(--text);
}

.widget-area ul,
.bttk-sidebar ul,
.content-sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.widget-area ul li,
.bttk-sidebar ul li,
.content-sidebar ul li {
  margin: 0;
  padding: 0;
  color: var(--muted);
}

.widget-area a,
.bttk-sidebar a,
.content-sidebar a {
  text-decoration: none;
}

.widget-area select,
.widget-area input[type="text"],
.widget-area input[type="search"],
.widget-area input[type="email"],
.bttk-sidebar select,
.bttk-sidebar input[type="text"],
.bttk-sidebar input[type="search"],
.bttk-sidebar input[type="email"],
.content-sidebar select,
.content-sidebar input[type="text"],
.content-sidebar input[type="search"],
.content-sidebar input[type="email"] {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 14px;
  background: #fff;
  color: var(--text);
}

.widget_recent_entries li,
.widget_recent_comments li,
.widget_archive li,
.widget_categories li,
.widget_meta li,
.widget_pages li,
.widget_nav_menu li {
  padding-bottom: 10px;
  border-bottom: 1px solid #eef2f7;
}

.widget_recent_entries li:last-child,
.widget_recent_comments li:last-child,
.widget_archive li:last-child,
.widget_categories li:last-child,
.widget_meta li:last-child,
.widget_pages li:last-child,
.widget_nav_menu li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 991px) {
  .content-shell {
    grid-template-columns: 1fr;
  }

  .content-sidebar__box {
    position: static;
    top: auto;
  }
}

@media (max-width: 767px) {
  .content-page {
    padding: 20px 0 40px;
  }

  .content-hero,
  .content-article,
  .content-empty,
  .content-sidebar__box,
  .bttk-sidebar__inner,
  .bttk-comments {
    border-radius: 18px;
  }

  .content-hero {
    padding: 22px;
  }

  .content-card__body,
  .content-article__body,
  .content-sidebar__box,
  .bttk-sidebar__inner,
  .bttk-comments {
    padding: 18px;
  }

  .content-card__title {
    font-size: 22px;
  }

  .content-post-nav {
    grid-template-columns: 1fr;
  }

  .content-post-nav__next {
    text-align: left;
  }

  .bttk-search-form__inner,
  .content-empty .search-form,
  .content-sidebar .search-form {
    grid-template-columns: 1fr;
  }

  .bttk-search-form__submit,
  .content-page .btn {
    width: 100%;
  }

  .bttk-comment-list .comment-body {
    padding: 16px;
    border-radius: 16px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 20px), var(--container));
  }

  .entry,
  .page-content,
  .post-content {
    border-radius: 16px;
    padding: 20px;
  }
}

/* ================================
   Back to top button
================================ */

.back-to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 14px 32px rgba(220, 38, 38, 0.32);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition:
        opacity 0.2s ease,
        visibility 0.2s ease,
        transform 0.2s ease,
        background 0.2s ease;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #b91c1c;
}

.back-to-top:focus {
    outline: 3px solid rgba(220, 38, 38, 0.25);
    outline-offset: 3px;
}

@media (max-width: 640px) {
    .back-to-top {
        right: 14px;
        bottom: 14px;
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}