/*
Theme Name: Vergus Light Pro Sidebar Button Hover
Theme URI: https://example.com/vergus-light-pro-sidebar-button-hover
Author: OpenAI
Author URI: https://openai.com/
Description: Версия с кнопкой в блоке сайдбара и аккуратным hover-эффектом карточек.
Version: 5.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vergus-light-pro
Tags: blog, one-column, two-columns, custom-logo, custom-menu, featured-images, theme-options, threaded-comments, translation-ready
*/

:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-soft: #f2f5f9;
  --text: #1f2937;
  --muted: #667085;
  --line: #e6ebf2;
  --accent: #2563eb;
  --accent-soft: #eff6ff;
  --button-shadow: rgba(37, 99, 235, 0.22);
  --hero-glow-1: rgba(96, 165, 250, 0.14);
  --hero-glow-2: rgba(191, 219, 254, 0.24);
  --body-grad-1: #f8fbff;
  --body-grad-2: #f5f7fb;
  --hero-grad-2: rgba(244,248,253,0.98);
  --secondary-bg: #eef2f7;
  --secondary-bg-hover: #e2e8f0;
  --accent-border-soft: rgba(37, 99, 235, 0.22);
  --accent-outline-soft: rgba(37, 99, 235, 0.12);
  --accent-border-strong: rgba(37, 99, 235, 0.35);
  --quote-bg: #f8fbff;
  --quote-border: #dbeafe;
  --panel-grad-2: #f8fbff;
  --accent-dark: #1d4ed8;
  --shadow: 0 14px 38px rgba(15, 23, 42, 0.08);
  --radius: 22px;
  --radius-sm: 16px;
  --content: 760px;
  --container: 1220px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif;
  background: linear-gradient(180deg, var(--body-grad-1) 0%, var(--body-grad-2) 100%);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }
figure { margin: 0; }
.container { width: min(calc(100% - 32px), var(--container)); margin: 0 auto; }
.screen-reader-text { position: absolute; left: -9999px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(230, 235, 242, 0.9);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 74px;
}
.site-branding {
  display: flex;
  align-items: center;
  gap: 14px;
}
.site-title {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.site-title a { color: var(--text); }
.site-description {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.93rem;
}
.custom-logo-link img { max-height: 42px; width: auto; }

.main-navigation ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0;
  padding: 0;
}
.main-navigation a {
  color: #344054;
  font-weight: 600;
  font-size: 0.98rem;
}
.main-navigation a:hover,
.main-navigation .current-menu-item > a { color: var(--accent); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-button,
.button,
.wp-block-button__link,
input[type="submit"],
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  border: 0;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 10px 24px var(--button-shadow);
  cursor: pointer;
}
.header-button:hover,
.button:hover,
.wp-block-button__link:hover,
input[type="submit"]:hover,
button:hover {
  background: var(--accent-dark);
  color: #fff;
}

.hero {
  padding: 42px 0 26px;
}
.hero-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), var(--hero-grad-2));
  border: 1px solid rgba(230, 235, 242, 0.92);
  border-radius: 34px;
  padding: 42px;
  box-shadow: var(--shadow);
}
.hero-card::before,
.hero-card::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(10px);
  opacity: 0.6;
}
.hero-card::before {
  width: 240px;
  height: 240px;
  background: var(--hero-glow-1);
  top: -70px;
  right: -40px;
}
.hero-card::after {
  width: 200px;
  height: 200px;
  background: var(--hero-glow-2);
  bottom: -80px;
  left: -40px;
}
.hero-layout {
  position: relative;
  display: grid;
  grid-template-columns: 1.3fr 0.95fr;
  gap: 32px;
  align-items: start;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 18px;
}
.hero-title {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.07;
  letter-spacing: -0.045em;
  max-width: 13ch;
}
.hero-text {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 58ch;
  margin: 0 0 24px;
}
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.button-secondary {
  background: var(--secondary-bg);
  color: #334155;
  box-shadow: none;
}
.button-secondary:hover {
  background: var(--secondary-bg-hover);
  color: #0f172a;
}
.hero-side {
  display: grid;
  gap: 14px;
}
.hero-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.mini-card {
  background: rgba(255,255,255,0.82);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}
.mini-card-animated {
  animation: miniCardFloat 0.7s ease both;
}
.mini-card:nth-child(2) { animation-delay: 0.08s; }
.mini-card:nth-child(3) { animation-delay: 0.16s; }
.mini-card:nth-child(4) { animation-delay: 0.24s; }
.mini-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.11);
  border-color: var(--accent-border-soft);
}
.mini-card-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
}
.mini-card-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}
.mini-card-content {
  display: grid;
  gap: 8px;
}
.mini-card h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.3;
}
.mini-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.55;
}
.mini-card-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 14px;
  background: #eef4ff;
  color: var(--accent);
  font-weight: 700;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.mini-card-button:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-1px);
}
@keyframes miniCardFloat {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-title {
  margin: 0 0 18px;
  font-size: clamp(1.55rem, 2vw, 2rem);
  letter-spacing: -0.03em;
}

.content-wrap {
  padding: 14px 0 60px;
}
.home-grid,
.archive-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 34px;
}
.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.post-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.1);
}
.post-card-media img {
  aspect-ratio: 16/10;
  object-fit: cover;
  width: 100%;
}
.post-card-body {
  padding: 22px;
}
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 10px;
}
.post-card-title {
  margin: 0 0 10px;
  font-size: 1.3rem;
  line-height: 1.25;
  letter-spacing: -0.03em;
}
.post-card-title a { color: var(--text); }
.post-card-title a:hover { color: var(--accent); }
.post-card-excerpt {
  color: var(--muted);
  margin: 0 0 14px;
  font-size: 1rem;
}
.read-more {
  font-weight: 700;
}

.sidebar {
  display: grid;
  align-content: start;
  gap: 18px;
}
.widget {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
}
.widget-title {
  margin: 0 0 14px;
  font-size: 1.08rem;
  line-height: 1.3;
}
.widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.widget li + li { margin-top: 10px; }
.widget p,
.widget li,
.widget label { color: var(--muted); }
.search-form,
.wp-block-search__inside-wrapper {
  display: flex;
  gap: 10px;
}
input[type="search"],
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px 15px;
  background: #fff;
  color: var(--text);
  font: inherit;
}
textarea { min-height: 160px; resize: vertical; }
input:focus,
textarea:focus {
  outline: 2px solid var(--accent-outline-soft);
  border-color: var(--accent-border-strong);
}

.single-shell {
  padding: 32px 0 70px;
}
.single-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 34px;
  align-items: start;
}
.article-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.article-header {
  max-width: var(--content);
  margin: 0 auto 22px;
}
.breadcrumbs {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 16px;
}
.entry-title,
h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.045em;
}
.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 0.92rem;
}
.article-thumb {
  max-width: var(--content);
  margin: 22px auto 0;
}
.article-thumb img {
  width: 100%;
  border-radius: 22px;
  object-fit: cover;
}
.entry-content {
  max-width: var(--content);
  margin: 26px auto 0;
  font-size: 1.08rem;
}
.entry-content p,
.entry-content ul,
.entry-content ol,
.entry-content blockquote,
.entry-content table,
.entry-content .wp-block-image,
.entry-content .wp-block-embed,
.entry-content .wp-block-gallery {
  margin: 0 0 1.25em;
}
.entry-content > *:last-child { margin-bottom: 0; }
.entry-content h2 {
  margin: 1.3em 0 0.65em;
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
}
.entry-content h3 {
  margin: 1.05em 0 0.6em;
  font-size: clamp(1.22rem, 2vw, 1.5rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.entry-content h4 {
  margin: 1.5em 0 0.6em;
  font-size: 1.1rem;
  line-height: 1.35;
}
.entry-content ul,
.entry-content ol { padding-left: 1.35em; }
.entry-content blockquote {
  padding: 22px 24px;
  background: var(--quote-bg);
  border: 1px solid var(--quote-border);
  border-left: 4px solid var(--accent);
  border-radius: 20px;
  color: #334155;
}
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 16px;
}
.entry-content th,
.entry-content td {
  border: 1px solid var(--line);
  padding: 12px 14px;
  text-align: left;
}
.entry-content th { background: #f8fafc; }
.entry-content .wp-caption,
.entry-content .wp-caption-text,
.entry-content figcaption {
  color: var(--muted);
  font-size: 0.92rem;
}

.post-bottom {
  max-width: var(--content);
  margin: 28px auto 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
}
.post-tags,
.post-categories { color: var(--muted); }

.author-box,
.cta-box {
  max-width: var(--content);
  margin: 28px auto 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff, var(--panel-grad-2));
}
.author-box h3,
.cta-box h3 { margin: 0 0 10px; font-size: 1.2rem; }
.author-box p,
.cta-box p { margin: 0; color: var(--muted); }
.cta-box { display: grid; gap: 14px; }

.page-header-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 30px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.pagination,
.navigation.posts-navigation,
.navigation.post-navigation {
  margin-top: 26px;
}
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
}
.page-numbers,
.nav-previous a,
.nav-next a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
}
.page-numbers.current {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.site-footer {
  padding: 24px 0 46px;
}
.footer-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 24px 28px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}
.footer-card p,
.footer-card a { color: var(--muted); margin: 0; }
.footer-card a:hover { color: var(--accent); }

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 18px;
}
.footer-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
}
@media (max-width: 720px) {
  .footer-right,
  .footer-links {
    align-items: flex-start;
    justify-content: flex-start;
  }
}

.alignwide { width: min(100%, 1080px); margin-left: auto; margin-right: auto; }
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }

@media (max-width: 1100px) {
  .hero-layout,
  .home-grid,
  .archive-grid,
  .single-grid { grid-template-columns: 1fr; }
  .sidebar { order: 2; }
}

@media (max-width: 860px) {
  .posts-grid { grid-template-columns: 1fr; }
  .hero-card { padding: 28px; }
  .hero-mini-grid { grid-template-columns: 1fr 1fr; }
  .article-card { padding: 20px; }
}

@media (max-width: 720px) {
  .header-inner { flex-wrap: wrap; padding: 12px 0; }
  .main-navigation { width: 100%; overflow-x: auto; }
  .main-navigation ul { width: max-content; padding-bottom: 4px; }
  .hero-title,
  .entry-title,
  h1 { font-size: clamp(1.75rem, 7vw, 2.4rem); }
  .entry-content { font-size: 1rem; }
  .entry-content h2 { font-size: 1.45rem; }
  .entry-content h3 { font-size: 1.18rem; }
  .hero-mini-grid { grid-template-columns: 1fr; }
}


/* Minimal header variant */
.site-header-minimal .header-inner-minimal {
  justify-content: flex-start;
}
.site-header-minimal .site-branding-minimal {
  gap: 14px;
}


/* Symmetry tweak: align sidebar blocks with post cards under the section title */
.home-grid {
  align-items: start;
}
.home-grid .sidebar {
  padding-top: 70px;
}
.home-grid .sidebar .widget:first-child {
  padding-top: 22px;
}
@media (max-width: 960px) {
  .home-grid .sidebar {
    padding-top: 0;
  }
}


.comments-area {
  max-width: var(--content);
  margin: 28px auto 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff, var(--panel-grad-2));
}
.comments-title,
.comment-reply-title {
  margin: 0 0 16px;
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
}
.comment-list,
.children {
  list-style: none;
  margin: 0;
  padding: 0;
}
.comment-list {
  display: grid;
  gap: 16px;
  margin-bottom: 24px;
}
.comment-list .children {
  margin-top: 14px;
  margin-left: 28px;
  display: grid;
  gap: 14px;
}
.comment-body {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
}
.comment-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}
.comment-author {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-style: normal;
  font-weight: 700;
}
.comment-author .avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
}
.comment-metadata {
  font-size: 0.92rem;
}
.comment-metadata a,
.comment-edit-link {
  color: var(--muted);
}
.comment-content {
  color: var(--text);
}
.comment-content p:last-child {
  margin-bottom: 0;
}
.reply {
  margin-top: 12px;
}
.reply a,
.comment-reply-link,
#cancel-comment-reply-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--secondary-bg);
  color: var(--text);
  font-weight: 700;
}
.reply a:hover,
.comment-reply-link:hover,
#cancel-comment-reply-link:hover {
  background: var(--secondary-bg-hover);
  color: var(--text);
}
.comment-respond {
  margin-top: 12px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.comment-notes,
.logged-in-as,
.comment-form-cookies-consent,
.no-comments {
  color: var(--muted);
  font-size: 0.95rem;
}
.comment-form {
  display: grid;
  gap: 14px;
}
.comment-form p {
  margin: 0;
}
.comment-form label {
  display: inline-block;
  margin-bottom: 8px;
  font-weight: 600;
}
.comment-form-comment textarea {
  min-height: 170px;
}
.comment-form-author,
.comment-form-email,
.comment-form-url {
  display: grid;
}
.comment-awaiting-moderation {
  display: inline-flex;
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
}
@media (max-width: 720px) {
  .comments-area {
    padding: 18px;
    border-radius: 20px;
  }
  .comment-list .children {
    margin-left: 14px;
  }
  .comment-body {
    padding: 16px;
    border-radius: 18px;
  }
  .comment-meta {
    align-items: flex-start;
    flex-direction: column;
  }
}


/* === Clean footer without lines === */
.site-footer .footer-card {
  display: block !important;
  text-align: left !important;
}

.site-footer .footer-copy {
  margin: 0 0 16px 0 !important;
}

.site-footer .footer-links {
  display: block !important;
  text-align: left !important;
}

.site-footer .footer-links a {
  position: static !important;
  display: block !important;
  width: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  text-decoration: none !important;
  border: 0 !important;
  box-shadow: none !important;
  background: none !important;
  background-image: none !important;
}

.site-footer .footer-links a::before,
.site-footer .footer-links a::after {
  content: none !important;
  display: none !important;
}

.site-footer .footer-links a + a {
  margin-top: 12px !important;
}

.site-footer .footer-links a:hover,
.site-footer .footer-links a:focus,
.site-footer .footer-links a:active {
  text-decoration: none !important;
  box-shadow: none !important;
  background: none !important;
  background-image: none !important;
  opacity: 0.75;
}


/* === Footer precise click area fix === */
.site-footer .footer-links {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 12px !important;
}

.site-footer .footer-links a {
  display: inline-flex !important;
  align-items: center !important;
  align-self: flex-start !important;
  flex: 0 0 auto !important;
  width: auto !important;
  max-width: fit-content !important;
  min-width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

.site-footer .footer-links a + a {
  margin-top: 0 !important;
}


/* === Footer icons === */
.site-footer .footer-links a {
  gap: 8px !important;
}

.site-footer .footer-icon {
  display: inline-flex;
  width: 16px;
  height: 16px;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  opacity: .8;
  flex: 0 0 auto;
}

.site-footer .footer-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

.site-footer .footer-links a:hover .footer-icon {
  opacity: 1;
  color: var(--accent);
}


/* === Sidebar CTA button === */
.sidebar-about-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 14px;
  background: #eef4ff;
  color: var(--accent);
  font-weight: 700;
  text-decoration: none !important;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.sidebar-about-button:hover {
  background: var(--accent);
  color: #fff !important;
  transform: translateY(-1px);
}

/* === Light hover for post cards === */
.post-card {
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  will-change: transform;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  border-color: rgba(37, 99, 235, 0.18);
}

.post-card:hover .post-card-title a {
  color: var(--accent);
}


/* FIX: center images */
.wp-block-image {
  text-align: center !important;
}

.wp-block-image img {
  margin: 0 auto !important;
}

.aligncenter {
  display: block;
  margin: 20px auto;
}



/* ALIGN FIX FOR IMAGES */

/* Gutenberg */
.wp-block-image.aligncenter { text-align:center; }
.wp-block-image.alignleft { text-align:left; }
.wp-block-image.alignright { text-align:right; }

.wp-block-image.aligncenter img { margin: 0 auto; display:block; }
.wp-block-image.alignleft img { margin: 0 auto 0 0; display:block; }
.wp-block-image.alignright img { margin: 0 0 0 auto; display:block; }

/* Classic editor */
.aligncenter { display:block; margin: 20px auto; }
.alignleft { float:left; margin: 0 20px 20px 0; }
.alignright { float:right; margin: 0 0 20px 20px; }

/* Fix images default */
img { max-width:100%; height:auto; }




/* MOBILE FIX FOR PAGES */

@media (max-width: 768px) {

  .container {
    width: 100%;
    padding: 0 16px;
  }

  .content,
  .entry-content,
  .post-content,
  .page-content {
    padding: 0;
  }

  .card,
  .page,
  .post {
    border-radius: 16px;
    padding: 16px;
  }

  h1 {
    font-size: 28px;
    line-height: 1.2;
  }

  h2 {
    font-size: 22px;
  }

  p {
    font-size: 16px;
  }

  img {
    width: 100%;
    height: auto;
    display: block;
    margin: 16px auto;
  }

}




/* SIDEBAR ICONS */

.widget-title {
  display:flex;
  align-items:center;
  gap:8px;
}

.widget-title::before {
  content:'';
  width:16px;
  height:16px;
  display:inline-block;
  background-size:contain;
  background-repeat:no-repeat;
  opacity:0.7;
}

/* Search */
.widget_search .widget-title::before {
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%231f4e79' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
}

/* Categories */
.widget_categories .widget-title::before {
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%231f4e79' stroke-width='2' viewBox='0 0 24 24'%3E%3Crect x='3' y='3' width='7' height='7'/%3E%3Crect x='14' y='3' width='7' height='7'/%3E%3Crect x='14' y='14' width='7' height='7'/%3E%3Crect x='3' y='14' width='7' height='7'/%3E%3C/svg%3E");
}

/* Pages */
.widget_pages .widget-title::before {
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%231f4e79' stroke-width='2' viewBox='0 0 24 24'%3E%3Crect x='4' y='2' width='16' height='20' rx='2'/%3E%3Cline x1='8' y1='6' x2='16' y2='6'/%3E%3Cline x1='8' y1='10' x2='16' y2='10'/%3E%3Cline x1='8' y1='14' x2='13' y2='14'/%3E%3C/svg%3E");
}




/* HOVER EFFECTS */
.widget ul li a {
  transition: all 0.2s ease;
  display:inline-block;
  padding-left:2px;
}

.widget ul li a:hover {
  color:#1f4e79;
  transform:translateX(3px);
}

/* ICONS INSIDE LIST */
.widget ul li {
  position:relative;
  padding-left:18px;
}

.widget ul li::before {
  content:'';
  position:absolute;
  left:0;
  top:8px;
  width:8px;
  height:8px;
  border-radius:50%;
  background:#1f4e79;
  opacity:0.4;
  transition:all 0.2s ease;
}

.widget ul li:hover::before {
  opacity:0.9;
  transform:scale(1.2);
}

/* MINI ANIMATION (VERY SUBTLE) */
.widget {
  transition: all 0.2s ease;
}

.widget:hover {
  transform:translateY(-2px);
}

/* OPTIONAL: RECENT POSTS ICON */
.widget_recent_entries .widget-title::before {
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%231f4e79' stroke-width='2' viewBox='0 0 24 24'%3E%3Cline x1='8' y1='6' x2='21' y2='6'/%3E%3Cline x1='8' y1='12' x2='21' y2='12'/%3E%3Cline x1='8' y1='18' x2='21' y2='18'/%3E%3Ccircle cx='3' cy='6' r='1'/%3E%3Ccircle cx='3' cy='12' r='1'/%3E%3Ccircle cx='3' cy='18' r='1'/%3E%3C/svg%3E");
}




/* MOBILE FIX FOR PAGES */

@media (max-width: 768px) {

  .content,
  .entry-content,
  .post-content,
  .page-content {
    padding: 16px !important;
  }

  .entry-content img,
  .page-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 16px auto !important;
    border-radius: 12px;
  }

  .entry-content p,
  .page-content p {
    font-size: 16px;
    line-height: 1.6;
  }

  .entry-title,
  h1 {
    font-size: 22px !important;
    line-height: 1.3;
  }

  .breadcrumbs {
    font-size: 13px;
  }

  .container,
  .wrap,
  .content-area {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
}




/* FIX PRIVACY PAGE LISTS */

.entry-content ol,
.entry-content ul,
.page-content ol,
.page-content ul {
  padding-left: 20px !important;
  margin-left: 0 !important;
}

.entry-content li,
.page-content li {
  margin-bottom: 8px;
  line-height: 1.6;
}

/* FIX LONG TEXT BLOCKS */
.entry-content,
.page-content {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* MOBILE EXTRA FIX */
@media (max-width:768px){
  .entry-content ol,
  .entry-content ul,
  .page-content ol,
  .page-content ul {
    padding-left:18px !important;
  }
}




/* FIX GUTENBERG BLOCK CONTENT (privacy page issue) */

.wp-block,
.wp-block-paragraph,
.wp-block-heading,
.wp-block-list {
  max-width:100% !important;
}

.wp-block-list {
  padding-left:20px !important;
}

.wp-block-list li {
  margin-bottom:10px;
}

@media (max-width:768px){
  .wp-block {
    padding-left:0 !important;
    padding-right:0 !important;
  }
}


.pagination-wrap {
    margin: 40px 0 20px;
    text-align: center;
}

.pagination-wrap .page-numbers {
    display: inline-block;
    margin: 0 5px;
    padding: 8px 14px;
    border-radius: 8px;
    background: #eef2f7;
    color: #1f2937;
    text-decoration: none;
}

.pagination-wrap .current {
    background: #2563eb;
    color: #fff;
}


/* === FIXED PAGINATION CENTER === */
.pagination-wrap {
    margin: 20px 0 10px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination-wrap .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border-radius: 10px;
    background: #eef2f7;
    color: #1f2937;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.pagination-wrap .page-numbers:hover {
    background: #2563eb;
    color: #fff;
    transform: translateY(-1px);
}

.pagination-wrap .current {
    background: #2563eb;
    color: #fff;
}

/* mobile */
@media (max-width: 768px) {
    .pagination-wrap {
        margin: 16px 0 6px;
        gap: 6px;
    }

    .pagination-wrap .page-numbers {
        min-width: 32px;
        height: 32px;
        font-size: 14px;
    }
}
