/* =============================================
   PredictMarket WordPress Theme — Main Styles
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Mono:wght@300;400;500&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,400&display=swap');

/* ── DESIGN TOKENS ── */
:root {
  --bg: #04060f;
  --surface: #0b0f1e;
  --card: #0f1525;
  --border: #1a2240;
  --accent: #00f5a0;
  --accent2: #0070f3;
  --accent3: #f5a623;
  --text: #e8eaf0;
  --muted: #6b7a99;
  --heading: #ffffff;
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.22s ease;
  --max-width: 1140px;
  --content-width: 780px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ── BASE ── */
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
}

/* Noise texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4, h5, h6,
.entry-title, .site-title, .widget-title {
  font-family: 'Syne', sans-serif;
  color: var(--heading);
  line-height: 1.15;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.6rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.9rem; }

p { margin-bottom: 1.4em; color: var(--text); }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-decoration: none; transition: opacity var(--transition); }
a:hover { opacity: 0.8; }

strong, b { font-weight: 500; color: var(--heading); }
em, i { color: var(--muted); }

code, kbd, samp, pre, .mono {
  font-family: 'DM Mono', monospace;
  font-size: 0.88em;
}
code {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 2px 7px;
  color: var(--accent);
}
pre {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  overflow-x: auto;
  margin: 1.8em 0;
  line-height: 1.6;
}
pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.85rem;
}

blockquote {
  border-left: 3px solid var(--accent);
  margin: 2em 0;
  padding: 16px 24px;
  background: var(--card);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--muted);
}
blockquote cite { display: block; margin-top: 10px; font-size: 0.85rem; color: var(--muted); font-style: normal; }
blockquote p:last-child { margin-bottom: 0; }

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 3em 0;
}

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

ul, ol { padding-left: 1.5em; margin-bottom: 1.4em; }
li { margin-bottom: 0.4em; }
ul li::marker { color: var(--accent); }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
  font-size: 0.9rem;
}
th {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 12px 16px;
  text-align: left;
  font-family: 'DM Mono', monospace;
  font-size: 1rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  border-color:#fff !important;
  font-weight:500;
}
.faq p strong {
    font-size: 1.2rem;
}
td {
  border: 1px solid var(--border);
  padding: 12px 16px;
  color: var(--text);
}
tr:nth-child(even) td { background: rgba(255,255,255,0.02); }

/* ── LAYOUT ── */
.site-wrapper { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; width: 100%; }
.site-content { flex: 1; }

/* ── SKIP LINK ── */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--accent);
  color: #04060f;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

/* ── HEADER / NAV ── */
#masthead {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(4, 6, 15, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 24px;
}

/* Logo */
.site-branding { flex-shrink: 0; }
.site-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--heading) !important;
  line-height: 1;
  display: inline-block;
}
.site-title a { color: inherit; }
.site-title span { color: var(--accent); }
.site-description { font-size: 0.75rem; color: var(--muted); font-family: 'DM Mono', monospace; margin-top: 2px; }

/* Nav menu */
#site-navigation { display: flex; align-items: center; gap: 32px; }
.main-navigation ul {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  gap: 28px;
}
.main-navigation ul li { position: relative; }
.main-navigation ul li a {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
  transition: color var(--transition);
  padding: 4px 0;
}
.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item > a,
.main-navigation ul li.current_page_item > a { color: var(--heading); opacity: 1; }

/* Dropdown */
.main-navigation ul ul {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
  min-width: 200px;
  flex-direction: column;
  gap: 2px;
  display: none;
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
  z-index: 300;
}
.main-navigation ul ul li a {
  display: block;
  padding: 8px 14px;
  border-radius: 7px;
  white-space: nowrap;
}
.main-navigation ul ul li a:hover { background: var(--surface); color: var(--accent); }
.main-navigation ul li:hover > ul { display: flex; }

/* Header CTA */
.header-cta {
  background: var(--accent);
  color: #04060f !important;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  padding: 10px 22px;
  border-radius: 6px;
  white-space: nowrap;
  transition: opacity var(--transition);
  flex-shrink: 0;
}
.header-cta:hover { opacity: 0.85 !important; }

/* Mobile toggle */
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 8px 12px;
  cursor: pointer;
  color: var(--text);
  font-size: 1.1rem;
  line-height: 1;
}

/* ── HERO (for blog archive / home) ── */
.blog-hero {
  padding: 40px 0 40px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.blog-hero::before {
  content: '';
  position: absolute;
  top: -120px; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 400px;
  background: radial-gradient(ellipse, rgba(0,245,160,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.blog-hero .section-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.blog-hero h1 { margin-bottom: 14px; font-size:2rem; }
.blog-hero p { color: var(--muted); max-width: 560px; font-size: 1.05rem; }

/* ── MAIN CONTENT AREA ── */
.content-area { padding: 72px 0; }
.content-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 56px;
  align-items: start;
}
.content-grid.no-sidebar { grid-template-columns: 1fr; }
.content-grid.no-sidebar .entry-content-wrap { max-width: var(--content-width); margin: 0 auto; }

/* ── POST CARDS (archive/blog list) ── */
.posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.post-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
  display: grid;
  grid-template-columns: 280px 1fr;
}
.post-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.post-card.no-thumb { grid-template-columns: 1fr; }

.post-card-thumb {
  overflow: hidden;
  height: 100%;
  min-height: 200px;
}
.post-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.post-card:hover .post-card-thumb img { transform: scale(1.04); }

.post-card-body { padding: 28px 32px; display: flex; flex-direction: column; justify-content: space-between; }

.post-card-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.post-card-cat {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-transform: uppercase;
  background: rgba(0,245,160,0.08);
  border: 1px solid rgba(0,245,160,0.15);
  border-radius: 100px;
  padding: 4px 12px;
}
.post-card-date {
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  color: var(--muted);
}
.post-card-read {
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  color: var(--muted);
}

.post-card-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--heading);
  line-height: 1.3;
  margin-bottom: 12px;
  transition: color var(--transition);
}
.post-card-title a { color: inherit; }
.post-card:hover .post-card-title a { color: var(--accent); }

.post-card-excerpt { color: var(--muted); font-size: 0.9rem; line-height: 1.7; margin-bottom: 20px; }

.post-card-footer { display: flex; align-items: center; justify-content: space-between;margin-top:20px; }
.post-card-author { display: flex; align-items: center; gap: 10px; }
.post-card-author img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.post-card-author span { font-size: 0.82rem; color: var(--muted); }
.read-more-link {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition);
}
.read-more-link:hover { gap: 10px; opacity: 1; }

/* Featured post (first post larger) */
.post-card.featured-post {
  grid-template-columns: 1fr;
}
.post-card.featured-post .post-card-thumb {
  min-height: 340px;
}
.post-card.featured-post .post-card-body { padding: 32px 36px; }
.post-card.featured-post .post-card-title { font-size: 1.7rem; }

/* ── SINGLE POST ── */
.single-post-header { padding: 64px 0 48px; border-bottom: 1px solid var(--border); }
.single-post-header .post-meta {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 24px;
}
.single-post-header h1 { margin-bottom: 20px; }
.single-post-header .post-subtitle { font-size: 1.15rem; color: var(--muted); max-width: 700px; }

.single-post-author {
  display: flex; align-items: center; gap: 14px; padding: 20px 0;
  padding-bottom:0px;border-top: 1px solid var(--border); margin-top: 24px;
}
.single-post-author img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border); }
.author-info .author-name { font-family: 'Syne', sans-serif; font-weight: 600; font-size: 0.95rem; }
.author-info .author-role { font-size: 0.8rem; color: var(--muted); }

/* Featured image */
.post-featured-image {
  margin: 48px 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.post-featured-image img { width: 100%; object-fit: cover; max-height: 520px; }

/* Entry content */
.entry-content {
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--text);
}
.entry-content > * { margin-bottom: 1.5em; }
.entry-content > *:last-child { margin-bottom: 0; }
.entry-content h2 { font-size: 1.7rem; margin-top: 2.2em; margin-bottom: 0.8em; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.entry-content h3 { font-size: 1.25rem; margin-top: 2em; margin-bottom: 0.6em; }
.entry-content h4 { font-size: 1.05rem; margin-top: 1.6em; margin-bottom: 0.5em; color: var(--accent); }
.entry-content a { color: var(--accent); border-bottom: 1px solid rgba(0,245,160,0.3); }
.entry-content a:hover { border-bottom-color: var(--accent); }
.entry-content img { border-radius: var(--radius); border: 1px solid var(--border); margin: 1.5em 0; }
.entry-content .wp-caption { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 8px 12px; }
.entry-content .wp-caption-text { font-size: 0.82rem; color: var(--muted); text-align: center; margin-top: 6px; font-family: 'DM Mono', monospace; }

/* Post tags */
.post-tags { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--border); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tags-label { font-family: 'DM Mono', monospace; font-size: 0.72rem; letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase; }
.tag-pill {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: 0.8rem;
  color: var(--text);
  transition: border-color var(--transition), color var(--transition);
}
.tag-pill:hover { border-color: var(--accent); color: var(--accent); opacity: 1; }

/* Share bar */
.post-share { margin-top: 32px; padding: 24px 28px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.share-label { font-family: 'Syne', sans-serif; font-weight: 600; font-size: 0.88rem; }
.share-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px; border-radius: 7px; font-size: 0.82rem; font-weight: 600;
  font-family: 'Syne', sans-serif; cursor: pointer; transition: opacity var(--transition);
}
.share-btn:hover { opacity: 0.85; }
.share-btn.twitter { background: #1da1f2; color: #fff; }
.share-btn.telegram { background: #229ED9; color: #fff; }
.share-btn.whatsapp { background: #25D366; color: #fff; }
.share-btn.copy { background: var(--surface); border: 1px solid var(--border); color: var(--text); }

/* Author bio box */
.author-bio-box {
  margin-top: 48px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  display: flex; gap: 24px; align-items: flex-start;
}
.author-bio-box img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2px solid var(--border); }
.author-bio-text .author-name { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.05rem; margin-bottom: 4px; }
.author-bio-text .author-role { font-family: 'DM Mono', monospace; font-size: 0.72rem; color: var(--accent); letter-spacing: 0.1em; margin-bottom: 10px; }
.author-bio-text p { font-size: 0.9rem; color: var(--muted); }

/* Related posts */
.related-posts { margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--border); }
.related-posts h3 { font-size: 1.3rem; margin-bottom: 28px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.related-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
}
.related-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.related-card img { width: 100%; height: 160px; object-fit: cover; }
.related-card-body { padding: 18px 20px; }
.related-card-cat { font-family: 'DM Mono', monospace; font-size: 0.68rem; color: var(--accent); letter-spacing: 0.1em; margin-bottom: 8px; }
.related-card-title { font-family: 'Syne', sans-serif; font-weight: 600; font-size: 0.95rem; line-height: 1.3; }
.related-card-title a { color: var(--heading); }
.related-card:hover .related-card-title a { color: var(--accent); }

/* ── PAGINATION ── */
.pagination, .post-navigation { margin-top: 56px; }
.nav-links, .pagination .nav-links {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;justify-content: space-between;
}
.page-numbers, .nav-links a, .nav-links span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; height: 42px; padding: 0 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: 'DM Mono', monospace;
  font-size: 0.85rem;
  color: var(--muted);
  transition: all var(--transition);
}
.page-numbers:hover, .nav-links a:hover { border-color: var(--accent); color: var(--accent); opacity: 1; }
.page-numbers.current { background: var(--accent); border-color: var(--accent); color: #04060f; font-weight: 700; }
.nav-links .nav-previous a, .nav-links .nav-next a {
  font-family: 'Syne', sans-serif; font-size: 0.85rem; color: var(--text);
}

/* ── SIDEBAR ── */
.widget-area { position: sticky; top: 100px; }
.widget {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
}
.widget-title {
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget ul li { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 0.88rem; }
.widget ul li:last-child { border-bottom: none; padding-bottom: 0; }
.widget ul li a { color: var(--text); transition: color var(--transition); }
.widget ul li a:hover { color: var(--accent); opacity: 1; }
.widget_recent_entries .post-date {
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  color: var(--muted);
  display: block;
  margin-top: 2px;
}
.widget_search .search-form { display: flex; gap: 8px; }
.widget_search .search-field {
  flex: 1; background: var(--surface); border: 1px solid var(--border);
  border-radius: 7px; padding: 10px 14px; color: var(--text); font-size: 0.88rem;
  outline: none; font-family: 'DM Sans', sans-serif;
  transition: border-color var(--transition);
}
.widget_search .search-field:focus { border-color: var(--accent); }
.widget_search .search-field::placeholder { color: var(--muted); }
.widget_search .search-submit {
  background: var(--accent); color: #04060f;
  border: none; border-radius: 7px; padding: 10px 16px; cursor: pointer;
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.82rem;
  transition: opacity var(--transition);
}
.widget_search .search-submit:hover { opacity: 0.85; }
.tagcloud a {
  display: inline-block; margin: 4px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 100px; padding: 4px 12px;
  font-size: 0.8rem !important; color: var(--text);
  transition: border-color var(--transition), color var(--transition);
}
.tagcloud a:hover { border-color: var(--accent); color: var(--accent); opacity: 1; }

/* CTA Widget */
.widget-cta {
  background: linear-gradient(135deg, rgba(0,245,160,0.06) 0%, rgba(0,112,243,0.06) 100%);
  border-color: rgba(0,245,160,0.2);
  text-align: center;
}
.widget-cta h3 { font-size: 1.1rem; margin-bottom: 8px; }
.widget-cta p { font-size: 0.85rem; color: var(--muted); margin-bottom: 16px; }
.widget-cta-btn {
  display: block; text-align: center;
  background: var(--accent); color: #04060f;
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.85rem;
  padding: 12px 18px; border-radius: 8px;
  transition: opacity var(--transition);
  border:none;
}
#contact-modal h3 {
    font-size: 20px;
    text-align: center;
    margin-bottom: 20px;
}
#contact-modal p:nth-child(8) {
    margin-bottom: 0;
}
.widget-cta-btn:hover { opacity: 0.85; }

/* ── FORMS ── */
input[type="text"], input[type="email"], input[type="url"],
input[type="password"], input[type="search"],input[type="number"], textarea, select {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  padding: 12px 16px;
  width: 100%;
  outline: none;
  transition: border-color var(--transition);
}
input:focus, textarea:focus, select:focus { border-color: var(--accent); }
input::placeholder, textarea::placeholder { color: var(--muted); }
label { font-size: 0.85rem; color: var(--muted); display: block; margin-bottom: 6px; }

/* ── COMMENTS ── */
#comments { margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--border); }
.comments-title { font-size: 1.3rem; margin-bottom: 32px; }
.comment-list { list-style: none; padding: 0; }
.comment-list .comment { margin-bottom: 28px; }
.comment-body {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.comment-meta { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.comment-author img { width: 38px; height: 38px; border-radius: 50%; }
.comment-author .fn { font-family: 'Syne', sans-serif; font-weight: 600; font-size: 0.95rem; }
.comment-metadata { font-family: 'DM Mono', monospace; font-size: 0.72rem; color: var(--muted); }
.comment-content p { font-size: 0.92rem; color: var(--muted); }
.reply a {
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.06em;
}
.comment-respond { margin-top: 48px; }
.comment-reply-title { font-size: 1.2rem; margin-bottom: 24px; }
.comment-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.comment-form .comment-form-comment,
.comment-form .form-submit { grid-column: span 2; }
.comment-form textarea { min-height: 140px; resize: vertical; }
.comment-form .submit {
  background: var(--accent); color: #04060f;
  border: none; border-radius: var(--radius-sm);
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.9rem;
  padding: 13px 28px; cursor: pointer;
  transition: opacity var(--transition);
}
.comment-form .submit:hover { opacity: 0.85; }

/* ── BREADCRUMBS ── */
.breadcrumbs {
  padding: 16px 0;
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .sep { margin: 0 8px; }
.breadcrumbs .current { color: var(--text); }

/* ── CATEGORY / TAG ARCHIVE ── */
.archive-header { padding: 56px 0 40px; border-bottom: 1px solid var(--border); }
.archive-header .archive-label { font-family: 'DM Mono', monospace; font-size: 0.72rem; letter-spacing: 0.12em; color: var(--accent); margin-bottom: 10px; }
.archive-header h1 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.archive-header p { color: var(--muted); margin-top: 10px; }

/* ── 404 PAGE ── */
.error-404 { text-align: center; padding: 120px 0; }
.error-404 .error-code {
  font-family: 'Syne', sans-serif;
  font-size: clamp(5rem, 15vw, 10rem);
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 2px var(--border);
  line-height: 1;
  margin-bottom: 20px;
}
.error-404 h2 { font-size: 1.8rem; margin-bottom: 14px; }
.error-404 p { color: var(--muted); max-width: 440px; margin: 0 auto 32px; }
.error-404 .btn-primary {
  display: inline-block;
  background: var(--accent); color: #04060f;
  font-family: 'Syne', sans-serif; font-weight: 700;
  padding: 14px 28px; border-radius: 8px;
}

/* ── FOOTER ── */
#colophon {
  background: var(--surface);
  border-top: 1px solid var(--border);
  position: relative; z-index: 1;
}
.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding: 64px 0 48px;
}
.footer-brand .site-title { font-size: 1.1rem; margin-bottom: 10px; }
.footer-brand p { font-size: 0.88rem; color: var(--muted); max-width: 260px; }
.footer-col-title {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 0.88rem; color: var(--muted); transition: color var(--transition); }
.footer-links a:hover { color: var(--text); opacity: 1; }
.footer-bottom {
  padding: 20px 0;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 0.82rem; color: var(--muted); margin-bottom: 0; }
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--accent); }
.footer-nav ul { list-style: none; padding: 0; display: flex; gap: 20px; }
.footer-nav ul li a { font-size: 0.82rem; color: var(--muted); }
.footer-nav ul li a:hover { color: var(--accent); opacity: 1; }

/* ── UTILITY ── */
.section-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}
.text-muted { color: var(--muted); }
.text-accent { color: var(--accent); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ── CONNECT POPUP ── */
#connect-modal,#contact-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  background: rgba(4,6,15,0.82);
  backdrop-filter: blur(8px);
  padding: 24px;
}
.modal-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 36px 32px 28px;
  width: 100%;
  max-width: 420px;
  position: relative;
  box-shadow: 0 0 60px rgba(0,245,160,0.08), 0 24px 64px rgba(0,0,0,0.6);
  animation: popIn 0.22s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes popIn {
  from { opacity:0; transform:scale(0.88) translateY(16px); }
  to   { opacity:1; transform:scale(1) translateY(0); }
}
.modal-close {
  position: absolute; top: 16px; right: 18px;
  background: none; border: none;
  color: var(--muted); font-size: 1.3rem; cursor: pointer;
  line-height: 1; transition: color var(--transition);
}
.modal-close:hover { color: var(--heading); }
.modal-tag { font-family: 'DM Mono', monospace; font-size: 0.7rem; letter-spacing: 0.12em; color: var(--accent); margin-bottom: 10px; display: block; }
.modal-box h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 8px; }
.modal-box .modal-sub { color: var(--muted); font-size: 0.9rem; margin-bottom: 28px; }
.modal-btn {
  display: flex; align-items: center; gap: 14px;
  color: #fff; font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1rem;
  padding: 16px 22px; border-radius: 12px; text-decoration: none;
  margin-bottom: 12px; transition: opacity var(--transition), transform var(--transition);
}
.modal-btn:hover { opacity: 0.88; transform: translateY(-2px); }
.modal-btn.whatsapp { background: #25D366; box-shadow: 0 4px 24px rgba(37,211,102,0.25); }
.modal-btn.telegram { background: #229ED9; box-shadow: 0 4px 24px rgba(34,158,217,0.25); }
.modal-close-link {
  display: block; text-align: center; margin-top: 12px;
  background: none; border: none; color: var(--muted); font-size: 0.88rem;
  cursor: pointer; font-family: 'DM Sans', sans-serif; transition: color var(--transition);
  width: 100%;
}
.modal-close-link:hover { color: var(--heading); }
.fixed_links {position: fixed;bottom: 0px;z-index:2;}.fixed_links ul {margin: 0;padding: 0;list-style: none;}.fixed_links ul li {margin-bottom: 30px;margin-left: 20px;position: relative;display:table;}.fixed_links ul li:last-child {margin: 0;}.fixed_links ul li a {display: block;font-size: 0px;}.fixed_links ul li.whatsapp a:before {border-color: #29a71a;}.fixed_links ul li.teams a:before {border-color: #3e45b0;}.fixed_links ul li a::before {width: 62px;height: 62px;display: block;border: 5px solid #019be5;position: absolute;content: '';top: -15px;left: -15px;border-radius: 35px;animation: animate 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;}@keyframes animate {0% {transform: scale(0.5);opacity: 0;}50% {opacity: 1;}100% {opacity: 0;}}.apply h1 {text-align: center;color: #fff;z-index: 9;position: relative;}.consult p.h3 {font-weight: bold;}.box-card h3 a,.box-card-1 h3 a,.box-card-2 h3 a,.craft-work .box h3 a {color: #000;}.craft-work .box:hover h3 a,.box-card:hover h3 a,.box-card-1:hover h3 a,.box-card-2:hover h3 a {text-decoration: underline;}.fantasy-bg {background-color:#AAFFEE;}
.social_link li {
    display: inline-block;
    padding: 0 !important;
    border: none !important;
    margin: 0 10px;
}
.social_link {
    margin-top: 13px;
    margin-bottom: 5px;
}
.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.unaccepted .wpcf7-response-output, .wpcf7 form.payment-required .wpcf7-response-output {
    margin: 0px !important;
}
[type="number"]::-webkit-inner-spin-button, [type="number"]::-webkit-outer-spin-button {
    display: none;
}


/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .footer-main { grid-template-columns: 1fr 1fr; gap: 36px; }
  .related-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
    .post-card.featured-post .post-card-body {
        padding: 30px 20px;
    }
   .blog-hero{padding:20px 0 20px;}
  .content-grid { grid-template-columns: 1fr; }
  .widget-area { position: static; }
  .post-card { grid-template-columns: 1fr; }
  .post-card-thumb { min-height: 220px; height: 220px; }
  .menu-toggle { display: block; }
  #site-navigation { display: none; flex-direction: column; gap: 0; }
  #site-navigation.toggled {
    display: flex;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
  }
  .main-navigation ul { flex-direction: column; gap: 0; }
  .main-navigation ul li a { padding: 12px 0; display: block; border-bottom: 1px solid var(--border); font-size: 0.95rem; }
  .header-cta { display: none; }
  .fixed_links ul li {
        display: inline-block;
        margin-bottom: 0;
        margin-right: 5px;
    }
    .fixed_links {
        bottom: 10px;
        left: 0;
        right: 0;
        margin: 0 auto;
        display: table;
    }
    .footer-bottom {
        margin-bottom: 70px;
    }
}
@media (max-width: 640px) {
  .footer-main { grid-template-columns: 1fr; gap: 24px; }
  .related-grid { grid-template-columns: 1fr; }
  .comment-form { grid-template-columns: 1fr; }
  .comment-form .comment-form-comment,
  .comment-form .form-submit { grid-column: span 1; }
  .author-bio-box { flex-direction: column; }
  .post-share { flex-direction: column; align-items: flex-start; }
}
