/* Nkiri Core — rebuilt from TheNkiri.com homepage source */

:root {
  --nk-red: #c1121f;
  --nk-blue: #13aff0;
  --nk-blue-dark: #0b93cc;
  --nk-alert-bg: #dceef7;
  --nk-alert-border: #b6d4e3;
  --nk-alert-title: #31708f;
  --nk-alert-text: #3a6d88;
  --nk-search-bg: #d7eef8;
  --nk-text: #333333;
  --nk-muted: #666666;
  --nk-nav: #555555;
  --nk-border: #e9e9e9;
  --nk-header-h: 74px;
  --nk-container: 1200px;
  --nk-radius: 4px;
  --nk-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.8;
  color: var(--nk-text);
  background: #fff;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--nk-blue); }
button, input, select, textarea { font-family: inherit; }
h1, h2, h3, h4, h5, h6 { line-height: 1.4; color: #111; margin: 0 0 0.6em; }
h1 { font-size: 23px; }
h2 { font-size: 20px; }
h3 { font-size: 18px; }
p { margin: 0 0 1em; }

.screen-reader-text {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
  width: 1px; height: 1px; overflow: hidden;
}

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

/* ========== Domain banner ========== */
.domain-warning {
  position: sticky;
  top: 0;
  z-index: 9999;
  width: 100%;
  background: var(--nk-red);
  color: #fff;
}
.admin-bar .domain-warning { top: 32px; }
.domain-warning__inner {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 16px;
}
.domain-warning__text {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.4;
  text-align: center;
  flex: 1;
}
.domain-warning__text u { text-decoration: underline; }
.domain-warning__close {
  appearance: none;
  border: 0;
  background: rgba(255,255,255,.2);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
}
.domain-warning__close:hover { background: rgba(255,255,255,.28); }

/* ========== Header ========== */
#site-header {
  background: #fff;
  border-bottom: 1px solid var(--nk-border);
  min-height: var(--nk-header-h);
}
#site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nk-header-h);
  gap: 24px;
}
#site-logo img,
.custom-logo {
  max-width: 108px;
  height: auto;
}
.custom-logo-link { display: inline-flex; align-items: center; }

#site-navigation { display: flex; align-items: center; gap: 8px; }

.main-menu {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2px;
}
.main-menu > li { position: relative; }
.main-menu a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 12px;
  font-size: 12px;
  letter-spacing: .6px;
  line-height: 1.2;
  color: var(--nk-nav);
  white-space: nowrap;
}
.main-menu a:hover,
.main-menu .current-menu-item > a { color: #111; }
.main-menu .nav-arrow { font-size: 10px; opacity: .7; }

.main-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: #fff;
  border: 1px solid var(--nk-border);
  box-shadow: var(--nk-shadow);
  list-style: none;
  margin: 0;
  padding: 8px 0;
  display: none;
  z-index: 50;
}
.main-menu li:hover > .sub-menu,
.main-menu li:focus-within > .sub-menu { display: block; }
.main-menu .sub-menu li { position: relative; }
.main-menu .sub-menu a {
  padding: 8px 16px;
  white-space: nowrap;
}
.main-menu .sub-menu .sub-menu {
  top: 0;
  left: 100%;
}

.search-toggle {
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px 10px;
  color: var(--nk-nav);
  font-size: 16px;
}
.header-search {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: #fff;
  border: 1px solid var(--nk-border);
  box-shadow: var(--nk-shadow);
  padding: 12px;
  z-index: 60;
  min-width: 280px;
}
.header-search.is-open { display: block; }
#site-navigation-wrap { position: relative; }

.mobile-menu-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--nk-nav);
  font-size: 15px;
  padding: 8px;
}
.mobile-menu-toggle i { font-size: 18px; }

#mobile-dropdown {
  display: none;
  background: #fff;
  border-top: 1px solid var(--nk-border);
}
#mobile-dropdown.is-open { display: block; }
#mobile-dropdown .menu {
  list-style: none;
  margin: 0;
  padding: 8px 16px 16px;
}
#mobile-dropdown .menu a {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid #f2f2f2;
  color: #333;
  font-size: 15px;
}
#mobile-dropdown .sub-menu {
  list-style: none;
  margin: 0;
  padding: 0 0 0 14px;
}

/* ========== Alert / notice ========== */
.nk-alert {
  background: var(--nk-alert-bg);
  border-left: 4px solid var(--nk-alert-border);
  color: var(--nk-alert-text);
  padding: 16px 44px 16px 20px;
  position: relative;
  margin: 24px auto;
  max-width: var(--nk-container);
}
.nk-alert__title {
  display: block;
  font-weight: 700;
  color: var(--nk-alert-title);
  margin-bottom: 4px;
}
.nk-alert__close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: 0;
  font-size: 22px;
  cursor: pointer;
  color: var(--nk-alert-title);
  line-height: 1;
}

/* ========== Promo / ad slot ========== */
.nk-promo {
  display: flex;
  justify-content: center;
  margin: 16px 0 28px;
}
.nk-promo img { max-width: 729px; width: 100%; height: auto; }

/* ========== Social ========== */
.nk-social-block { text-align: center; padding: 12px 0 36px; }
.nk-social-block h2 { font-size: 22px; margin-bottom: 28px; }
.nk-social-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 720px;
  margin: 0 auto 32px;
}
.nk-social-item { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.nk-social-item .icon {
  font-size: 48px;
  line-height: 1;
  color: #111;
}
.nk-social-item h3 { font-size: 20px; font-weight: 700; margin: 0; }
.nk-telegram { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.nk-telegram .tg-badge {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: #2aa1d8;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 52px;
}
.nk-telegram p { color: var(--nk-muted); margin: 0; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--nk-blue);
  color: #fff !important;
  border: 1px solid #fff;
  border-radius: 3px;
  padding: 10px 22px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.btn:hover { background: var(--nk-blue-dark); }
.btn-lg { padding: 12px 28px; font-size: 15px; }
.btn-block { display: flex; justify-content: center; width: 100%; }
.btn-outline {
  background: #fff;
  color: #333 !important;
  border: 1px solid #ccc;
}
.btn-outline:hover { border-color: var(--nk-blue); color: var(--nk-blue) !important; }

/* ========== Search band ========== */
.nk-search-band {
  background: linear-gradient(180deg, #cfeaf6 0%, #e8f6fb 100%);
  padding: 28px 16px 32px;
  text-align: center;
}
.nk-search-band h5 {
  font-size: 16px;
  margin: 0 0 12px;
  font-weight: 600;
}
.search-form,
.is-search-form {
  display: flex;
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #c5dbe6;
  border-radius: 3px;
  overflow: hidden;
}
.search-form input[type="search"],
.is-search-form input[type="search"] {
  flex: 1;
  border: 0;
  padding: 10px 14px;
  font-size: 14px;
  outline: none;
}
.search-form button,
.is-search-form button {
  border: 0;
  background: var(--nk-blue);
  color: #fff;
  padding: 0 16px;
  cursor: pointer;
}

/* ========== Post grids ========== */
.nk-section { padding: 36px 0 12px; }
.nk-section__title {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 22px;
}
.post-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px 16px;
}
.post-card { min-width: 0; }
.post-card__media {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #eee;
  border-radius: 2px;
}
.post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.post-card:hover img { transform: scale(1.04); }
.post-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.35);
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity .25s ease;
  color: #fff;
  font-size: 22px;
}
.post-card:hover .post-card__overlay { opacity: 1; }
.post-card__title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  margin: 10px 0 0;
}
.post-card__title a { color: #222; }
.post-card__title a:hover { color: var(--nk-blue); }

.load-more-wrap { text-align: center; margin: 28px 0 8px; }
.load-more {
  background: #fff;
  border: 1px solid #ddd;
  padding: 10px 28px;
  cursor: pointer;
  font-size: 14px;
  border-radius: 3px;
}
.load-more:hover { border-color: var(--nk-blue); color: var(--nk-blue); }
.load-more.is-loading { opacity: .6; pointer-events: none; }

.nk-visit { margin: 18px 0 8px; }
.nk-visit .btn { width: 100%; justify-content: center; padding: 14px; font-size: 16px; }

/* ========== SEO / footer copy ========== */
.nk-seo { padding: 40px 0 60px; }
.nk-seo h2 { font-size: 22px; margin: 28px 0 12px; }
.nk-seo p { color: #444; }

/* ========== Footer ========== */
#footer {
  background: #fff;
  border-top: 1px solid var(--nk-border);
  padding: 24px 0;
  font-size: 12px;
  color: #777;
  text-align: center;
}

/* ========== Single / sidebar layout (from post page source) ========== */
.content-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 36px;
  align-items: start;
  padding: 28px 0 48px;
}
.content-area { min-width: 0; }

.nk-tg-card {
  max-width: 520px;
  margin: 0 auto 28px;
  text-align: center;
  padding: 18px;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  background: #fff;
}
.nk-tg-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: #229ED9;
  color: #fff;
  font-size: 28px;
}
.nk-tg-card__title {
  margin-top: 12px;
  font-size: 18px;
  font-weight: 700;
  color: #111;
}
.nk-tg-card__sub {
  margin-top: 6px;
  font-size: 14px;
  color: #444;
}
.nk-tg-card__btn {
  display: inline-block;
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #229ED9;
  color: #fff !important;
  font-weight: 600;
}

.entry-content { font-size: 15px; color: #333; }
.entry-content h2 {
  font-size: 20px;
  margin: 1.25em 0 0.5em;
}
.entry-content h3 { font-size: 18px; }
.entry-content img {
  margin: 0 auto 16px;
}
.entry-content .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.entry-content iframe,
.entry-content video {
  max-width: 100%;
}

/* Download / CTA buttons inside post content */
.entry-content .wp-block-button__link,
.entry-content .elementor-button,
.entry-content a.btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--nk-blue);
  color: #fff !important;
  border: 1px solid #fff;
  border-radius: 3px;
  padding: 10px 22px;
  font-size: 13px;
  font-weight: 600;
  text-transform: none;
}
.entry-content .wp-block-button { margin: 8px 0 16px; }

/* Elementor-like info alerts if pasted from source */
.entry-content .elementor-alert,
.entry-content .nk-info {
  background: var(--nk-alert-bg);
  border-left: 4px solid #8ab6cc;
  color: var(--nk-alert-text);
  padding: 14px 18px;
  margin: 12px 0 20px;
}
.entry-content .elementor-alert-title,
.entry-content .nk-info strong {
  display: block;
  font-weight: 700;
  color: var(--nk-alert-title);
  margin-bottom: 2px;
}

.entry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 8px;
}
.entry-tags a {
  font-size: 12px;
  padding: 4px 10px;
  border: 1px solid var(--nk-border);
  border-radius: 3px;
  color: #666;
}

.related-posts { margin: 36px 0 16px; }
.related-posts-title {
  font-size: 16px;
  letter-spacing: .4px;
  margin: 0 0 18px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--nk-border);
}
.related-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px 12px;
}
.related-post-media {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #eee;
  margin: 0 0 8px;
}
.related-post-media img { width: 100%; height: 100%; object-fit: cover; }
.related-post-title {
  font-size: 13px;
  line-height: 1.35;
  margin: 0 0 6px;
  font-weight: 600;
}
.related-post-title a { color: #222; }
.related-post time {
  font-size: 12px;
  color: #888;
}

#right-sidebar { min-width: 0; }
.sidebar-box {
  margin-bottom: 28px;
  font-size: 13px;
  line-height: 1.7;
}
.sidebar-box .widget-title {
  font-size: 13px;
  line-height: 1;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0 0 12px;
  font-weight: 700;
}

.comments-area { margin: 32px 0 16px; }
.comment-reply-title { font-size: 20px; }
.comment-form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 3px;
  padding: 10px 12px;
  margin: 0 0 12px;
}
.comment-form textarea { min-height: 110px; resize: vertical; }
.comment-form .submit {
  background: var(--nk-blue);
  color: #fff;
  border: 1px solid #fff;
  padding: 10px 22px;
  cursor: pointer;
  border-radius: 3px;
}
.comment-list { list-style: none; margin: 0 0 24px; padding: 0; }
.comment-list .comment { padding: 12px 0; border-bottom: 1px solid #f0f0f0; }

/* ========== Inner pages ========== */
.page-header {
  padding: 28px 0 8px;
}
.page-header h1 { font-size: 28px; margin: 0 0 8px; }
.breadcrumbs { font-size: 13px; color: #888; margin-bottom: 18px; }
.breadcrumbs a { color: #666; }

.site-main-inner { padding: 8px 0 48px; }

.single-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}
.entry-thumb { margin-bottom: 18px; }
.entry-thumb img { border-radius: 4px; max-height: 520px; object-fit: cover; width: auto; margin: 0 auto; }
.entry-content { font-size: 15px; }
.entry-content h2 { margin-top: 1.4em; }
.entry-meta { font-size: 13px; color: #888; margin-bottom: 16px; }

.archive-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px 16px;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 32px 0;
  flex-wrap: wrap;
}
.pagination a,
.pagination span {
  min-width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid #ddd;
  border-radius: 3px;
  padding: 0 10px;
}
.pagination .current { background: var(--nk-blue); color: #fff; border-color: var(--nk-blue); }

.not-found { text-align: center; padding: 60px 16px; }

/* Scroll top */
#scroll-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 40px;
  height: 40px;
  background: var(--nk-blue);
  color: #fff;
  display: grid;
  place-items: center;
  border-radius: 3px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
  z-index: 40;
}
#scroll-top.is-visible { opacity: 1; pointer-events: auto; }

/* ========== Responsive ========== */
@media (max-width: 1200px) {
  .post-grid,
  .archive-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1024px) {
  .post-grid,
  .archive-grid { grid-template-columns: repeat(3, 1fr); }
  .main-menu { display: none; }
  .mobile-menu-toggle { display: inline-flex; }
  .search-toggle { display: none; }
}
@media (max-width: 900px) {
  .content-wrap { grid-template-columns: 1fr; }
  .related-row { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767px) {
  .post-grid,
  .archive-grid { grid-template-columns: repeat(2, 1fr); gap: 14px 10px; }
  .related-row { grid-template-columns: repeat(2, 1fr); }
  .nk-social-row { grid-template-columns: 1fr; }
  .nk-section__title { font-size: 22px; }
  .domain-warning__text { font-size: 14px; }
  #site-logo img, .custom-logo { max-width: 88px; }
  .post-card__title { font-size: 12px; }
}
@media (max-width: 480px) {
  .admin-bar .domain-warning { top: 46px; }
}

/* ========== Category / archive thumbnail entries ========== */
.entries {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 24px;
}
.blog-entry-inner {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.blog-entry .thumbnail {
  position: relative;
  overflow: hidden;
  background: #eee;
  aspect-ratio: 2 / 3;
}
.blog-entry .thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.blog-entry .thumbnail .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.25);
  opacity: 0;
  transition: opacity .2s;
}
.blog-entry .thumbnail-link:hover .overlay { opacity: 1; }
.blog-entry-category {
  font-size: 12px;
  color: #888;
  margin-bottom: 6px;
}
.blog-entry-category a { color: #888; }
.blog-entry-category a:hover { color: var(--nk-blue); }
.blog-entry-title {
  font-size: 16px;
  line-height: 1.35;
  margin: 0 0 10px;
  font-weight: 700;
}
.blog-entry-title a { color: #222; }
.blog-entry-title a:hover { color: var(--nk-blue); }
.blog-entry-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  font-size: 12px;
  color: #888;
}
.blog-entry-comments a { color: #888; }

.oceanwp-pagination .nav-links,
.pagination .nav-links,
.oceanwp-pagination ul.page-numbers {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
}
.page-numbers,
.pagination .page-numbers {
  min-width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid #ddd;
  border-radius: 3px;
  padding: 0 10px;
  color: #555;
}
.page-numbers.current {
  background: var(--nk-blue);
  color: #fff;
  border-color: var(--nk-blue);
}

@media (max-width: 1024px) {
  .entries { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  .entries { grid-template-columns: 1fr; }
  .blog-entry-inner { grid-template-columns: 110px minmax(0, 1fr); }
}
