/*
 Theme Name:   BlogHash Child
 Theme URI:    https://allaboutblockchain.net
 Description:  Child theme for BlogHash - Modern redesign for AllAboutBlockchain.net
 Author:       AllAboutBlockchain
 Template:     bloghash
 Version:      1.0.0
 Text Domain:  bloghash-child
*/

/* ============================================================
   IMPORT GOOGLE FONTS - Lightweight, SEO-friendly
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;600;700&display=swap');
/* ============================================================
   CSS VARIABLES - Brand Colors & Design Tokens
   ============================================================ */
:root {
  /* Brand Colors */
  --bh-primary:        #1e40af;
  --bh-primary-light:  #3b82f6;
  --bh-primary-dark:   #1e3a8a;
  --bh-accent:         #f7931a;
  --bh-accent-hover:   #e07d0a;

  /* Neutrals - Light Mode */
  --bh-bg:             #f8fafc;
  --bh-surface:        #ffffff;
  --bh-surface-2:      #f1f5f9;
  --bh-border:         rgba(30, 64, 175, 0.12);
  --bh-text:           #0f172a;
  --bh-text-muted:     #475569;
  --bh-text-faint:     #94a3b8;

  /* Typography */
  --bh-font-body:      'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --bh-font-display:   'Space Grotesk', 'Inter', sans-serif;

  /* Spacing */
  --bh-radius:         0.75rem;
  --bh-radius-lg:      1.25rem;
  --bh-radius-full:    9999px;

  /* Shadows */
  --bh-shadow-sm:      0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --bh-shadow-md:      0 4px 16px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.04);
  --bh-shadow-lg:      0 12px 32px rgba(15, 23, 42, 0.10), 0 4px 12px rgba(15, 23, 42, 0.06);

  /* Transitions */
  --bh-transition:     180ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dark Mode Variables */
html[data-darkmode="dark"] {
  --bh-bg:             #0d1117;
  --bh-surface:        #161b22;
  --bh-surface-2:      #1c2129;
  --bh-border:         rgba(99, 179, 237, 0.10);
  --bh-text:           #e2e8f0;
  --bh-text-muted:     #94a3b8;
  --bh-text-faint:     #475569;
  --bh-primary-light:  #60a5fa;
  --bh-shadow-sm:      0 1px 3px rgba(0, 0, 0, 0.3);
  --bh-shadow-md:      0 4px 16px rgba(0, 0, 0, 0.4);
  --bh-shadow-lg:      0 12px 32px rgba(0, 0, 0, 0.5);
}

/* ============================================================
   BASE & TYPOGRAPHY
   ============================================================ */
body {
  font-family: var(--bh-font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--bh-text);
  background-color: var(--bh-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--bh-font-display) !important;
  line-height: 1.2;
  color: var(--bh-text);
}

h1, .h1, .bloghash-logo .site-title, .page-header .page-title {
  font-size: clamp(2rem, 4vw, 3.5rem) !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em;
}

h2, .h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem) !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em;
}

h3, .h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem) !important;
  font-weight: 600 !important;
}

p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--bh-text-muted);
  max-width: 72ch;
}

a {
  color: var(--bh-primary-light);
  text-decoration: none;
  transition: color var(--bh-transition);
}

a:hover {
  color: var(--bh-accent);
}

/* ============================================================
   SITE HEADER
   ============================================================ */
.site-header,
#masthead {
  background-color: var(--bh-surface) !important;
  border-bottom: 1px solid var(--bh-border) !important;
  box-shadow: var(--bh-shadow-sm) !important;
  transition: background-color var(--bh-transition), box-shadow var(--bh-transition);
}

html[data-darkmode="dark"] .site-header,
html[data-darkmode="dark"] #masthead {
  background-color: var(--bh-surface) !important;
  border-bottom-color: var(--bh-border) !important;
}

/* Sticky header enhancement */
.bloghash-sticky-header .site-header,
.bloghash-sticky-header #masthead {
  box-shadow: var(--bh-shadow-md) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Logo */
.bloghash-logo .site-title {
  font-family: var(--bh-font-display) !important;
  font-weight: 700 !important;
  font-size: 1.6rem !important;
  color: var(--bh-primary) !important;
  letter-spacing: -0.03em;
}

html[data-darkmode="dark"] .bloghash-logo .site-title {
  color: var(--bh-primary-light) !important;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.bloghash-nav ul li a {
  font-family: var(--bh-font-body) !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  color: var(--bh-text) !important;
  padding: 0.5rem 0.75rem !important;
  border-radius: var(--bh-radius) !important;
  transition: color var(--bh-transition), background-color var(--bh-transition) !important;
}

.bloghash-nav ul li a:hover,
.bloghash-nav ul li.current-menu-item > a,
.bloghash-nav ul li.current-menu-ancestor > a {
  color: var(--bh-primary-light) !important;
  background-color: rgba(59, 130, 246, 0.08) !important;
}

/* Dropdown menu */
.bloghash-nav ul li ul {
  border: 1px solid var(--bh-border) !important;
  border-radius: var(--bh-radius) !important;
  box-shadow: var(--bh-shadow-lg) !important;
  background-color: var(--bh-surface) !important;
  padding: 0.5rem !important;
  min-width: 220px !important;
}

.bloghash-nav ul li ul li a {
  border-radius: 0.5rem !important;
  font-size: 14px !important;
  padding: 0.5rem 0.875rem !important;
}

.bloghash-nav ul li ul li a:hover {
  background-color: rgba(59, 130, 246, 0.08) !important;
}

/* ============================================================
   TOPBAR
   ============================================================ */
#bloghash-topbar {
  background-color: var(--bh-primary) !important;
  border-bottom: none !important;
  font-size: 13px !important;
  padding: 0.35rem 0 !important;
}

#bloghash-topbar * {
  color: rgba(255,255,255,0.92) !important;
}

#bloghash-topbar a:hover {
  color: #ffffff !important;
  opacity: 1;
}

/* Crypto ticker */
#bloghash-topbar .ticker {
  animation: ticker 50s linear infinite;
}

/* ============================================================
   PAGE HEADER / BREADCRUMBS
   ============================================================ */
.page-header {
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.08), rgba(59, 130, 246, 0.04)) !important;
  border: 1px solid rgba(30, 64, 175, 0.10) !important;
  border-radius: 0 !important;
  padding: 2.5rem 0 !important;
}

.page-header .page-title {
  color: var(--bh-text) !important;
}

.bloghash-breadcrumbs,
.bloghash-breadcrumbs a {
  font-size: 13px !important;
  color: var(--bh-text-muted) !important;
}

.bloghash-breadcrumbs a:hover {
  color: var(--bh-primary-light) !important;
}

/* ============================================================
   MAIN CONTENT AREA
   ============================================================ */
.bloghash-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

#primary.content-area {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

/* ============================================================
   POST CARDS
   ============================================================ */
.bloghash-post-item {
  background-color: var(--bh-surface) !important;
  border: 1px solid var(--bh-border) !important;
  border-radius: var(--bh-radius-lg) !important;
  overflow: hidden;
  box-shadow: var(--bh-shadow-sm) !important;
  transition: transform var(--bh-transition), box-shadow var(--bh-transition), border-color var(--bh-transition) !important;
}

.bloghash-post-item:hover {
  transform: translateY(-4px) !important;
  box-shadow: var(--bh-shadow-lg) !important;
  border-color: rgba(59, 130, 246, 0.25) !important;
}

/* Post thumbnail */
.bloghash-post-thumb a,
.style-1 .bloghash-post-thumb {
  background: var(--bh-surface-2) !important;
  overflow: hidden;
}

.bloghash-post-thumb img {
  transition: transform 0.4s ease !important;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bloghash-post-item:hover .bloghash-post-thumb img {
  transform: scale(1.04) !important;
}

/* Post content area */
.bloghash-post-content {
  padding: 1.5rem !important;
}

/* Post categories */
.post-category .cat-links a,
.bloghash-post-item .cat-links a {
  font-size: 10px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  padding: 4px 10px !important;
  border-radius: var(--bh-radius-full) !important;
  background-color: rgba(30, 64, 175, 0.08) !important;
  color: var(--bh-primary-light) !important;
  border: 1px solid rgba(30, 64, 175, 0.12) !important;
  transition: background-color var(--bh-transition) !important;
}

.post-category .cat-links a:hover,
.bloghash-post-item .cat-links a:hover {
  background-color: var(--bh-primary-light) !important;
  color: #fff !important;
}

/* Post title */
.bloghash-post-item .entry-title,
.bloghash-post-item .entry-title a {
  font-family: var(--bh-font-display) !important;
  font-size: clamp(1rem, 1.5vw, 1.2rem) !important;
  font-weight: 600 !important;
  color: var(--bh-text) !important;
  line-height: 1.3 !important;
  transition: color var(--bh-transition) !important;
}

.bloghash-post-item .entry-title a:hover {
  color: var(--bh-primary-light) !important;
}

/* Entry meta */
.entry-meta,
.bloghash-post-item .entry-meta {
  font-size: 12px !important;
  color: var(--bh-text-faint) !important;
}

.entry-meta a {
  color: var(--bh-text-muted) !important;
}

.entry-meta a:hover {
  color: var(--bh-primary-light) !important;
}

/* ============================================================
   FEATURED / HERO POST STYLES
   ============================================================ */
.bloghash-hero-post .entry-title,
.bloghash-hero-post .entry-title a {
  font-size: clamp(1.4rem, 3vw, 2.2rem) !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
#secondary.widget-area {
  padding-left: 1.5rem;
}

.bloghash-widget {
  background-color: var(--bh-surface) !important;
  border: 1px solid var(--bh-border) !important;
  border-radius: var(--bh-radius-lg) !important;
  padding: 1.5rem !important;
  margin-bottom: 1.5rem !important;
  box-shadow: var(--bh-shadow-sm) !important;
}

.widget-title,
.bloghash-widget .widget-title {
  font-family: var(--bh-font-display) !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.07em !important;
  color: var(--bh-text) !important;
  padding-bottom: 0.75rem !important;
  margin-bottom: 1rem !important;
  border-bottom: 2px solid var(--bh-accent) !important;
}

.bloghash-widget.widget_block li a,
.widget.widget_block li a {
  font-size: 14px !important;
  color: var(--bh-text-muted) !important;
  line-height: 1.5;
  transition: color var(--bh-transition);
}

.bloghash-widget.widget_block li a:hover,
.widget.widget_block li a:hover {
  color: var(--bh-primary-light) !important;
}

/* Post list in sidebar */
.bloghash-post-list .entry-title {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: var(--bh-text) !important;
  line-height: 1.35 !important;
}

.bloghash-post-list .entry-title a:hover {
  color: var(--bh-primary-light) !important;
}

/* ============================================================
   SINGLE POST / ARTICLE
   ============================================================ */
.bloghash-entry .entry-content,
.bloghash-article .entry-content {
  font-size: 16px;
  line-height: 1.8;
  color: var(--bh-text);
}

.bloghash-entry .entry-content p,
.bloghash-article .entry-content p {
  font-size: 16px !important;
  margin-bottom: 1.5rem;
  color: var(--bh-text-muted);
  max-width: 72ch;
}

.bloghash-entry ol,
.bloghash-entry ul:not(.wp-block-latest-posts) {
  font-size: 16px !important;
  line-height: 1.8;
  color: var(--bh-text-muted);
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.bloghash-article h2 {
  margin-top: 2.5rem !important;
  margin-bottom: 0.75rem !important;
  padding-top: 0.5rem;
  border-top: 1px solid var(--bh-border);
}

.bloghash-article h3 {
  margin-top: 2rem !important;
  margin-bottom: 0.5rem !important;
}

/* Content links */
.content-area a:not(.bloghash-btn, .wp-block-button__link, .page-numbers, [class^="cat-"], [rel="tag"]) {
  font-size: inherit !important;
  color: var(--bh-primary-light);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(59, 130, 246, 0.35);
  transition: color var(--bh-transition), text-decoration-color var(--bh-transition);
}

.content-area a:not(.bloghash-btn, .wp-block-button__link, .page-numbers, [class^="cat-"], [rel="tag"]):hover {
  color: var(--bh-accent);
  text-decoration-color: rgba(247, 147, 26, 0.5);
}

/* Single post bottom spacing */
.single .entry-content > :last-child {
  margin-bottom: 4rem !important;
}

@media (min-width: 993px) {
  .single .entry-content > :last-child {
    margin-bottom: 8rem !important;
  }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.button,
.wp-block-button__link,
.searchable-button,
#mailpoet_form_3 .mailpoet_submit,
.subscribe-btn,
.btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.625rem 1.375rem !important;
  font-family: var(--bh-font-body) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #ffffff !important;
  background-color: var(--bh-accent) !important;
  border: none !important;
  border-radius: var(--bh-radius-full) !important;
  box-shadow: 0 2px 8px rgba(247, 147, 26, 0.30) !important;
  cursor: pointer;
  transition: transform var(--bh-transition), box-shadow var(--bh-transition), background-color var(--bh-transition) !important;
  overflow: hidden;
  text-decoration: none !important;
}

.button:hover,
.wp-block-button__link:hover,
.searchable-button:hover,
.subscribe-btn:hover,
.btn-primary:hover {
  background-color: var(--bh-accent-hover) !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(247, 147, 26, 0.40) !important;
}

.button:active,
.wp-block-button__link:active,
.subscribe-btn:active {
  transform: translateY(0) !important;
}

/* Shine animation */
.button::before,
.wp-block-button__link::before,
.subscribe-btn::before {
  content: "";
  position: absolute;
  width: 80px;
  height: 100%;
  background-image: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.35) 50%, transparent 100%) !important;
  top: 0;
  left: -100px;
  opacity: 0;
  transition: none;
}

.button:hover::before,
.wp-block-button__link:hover::before,
.subscribe-btn:hover::before {
  opacity: 1;
  animation: shine 1.5s ease-out infinite;
}

@keyframes shine {
  0%   { left: -100px; }
  60%  { left: 110%; }
  100% { left: 110%; }
}

/* Outline variant */
.wp-block-button.is-style-outline .wp-block-button__link {
  background-color: transparent !important;
  color: var(--bh-accent) !important;
  border: 2px solid var(--bh-accent) !important;
  box-shadow: none !important;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background-color: var(--bh-accent) !important;
  color: #fff !important;
}

/* CTA button (white variant used in hero sections) */
.cta-button {
  background: #ffffff !important;
  color: var(--bh-primary) !important;
  border: none;
  padding: 0.75rem 1.75rem;
  border-radius: var(--bh-radius-full);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: transform var(--bh-transition), box-shadow var(--bh-transition);
  text-decoration: none;
  display: inline-block;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(30, 64, 175, 0.25);
  color: var(--bh-primary) !important;
}

/* Specific overrides */
.wp-block-button__link {
  border-radius: 10px !important;
}

.searchable-button,
#mailpoet_form_3 .mailpoet_submit {
  padding: 14px 20px !important;
  border-radius: 10px !important;
}

.home-searchable {
  background: white !important;
  color: var(--bh-primary) !important;
  border: 2px solid var(--bh-border) !important;
  box-shadow: var(--bh-shadow-sm) !important;
}

.home-searchable:hover {
  color: var(--bh-primary) !important;
  box-shadow: var(--bh-shadow-md) !important;
}

/* ============================================================
   FOOTER
   ============================================================ */
#colophon.site-footer {
  background-color: #0f172a !important;
  border-top: 1px solid rgba(255,255,255,0.06) !important;
  color: #94a3b8;
}

.site-footer a {
  position: relative;
  transition: color var(--bh-transition);
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  border: none !important;
  padding: 0 !important;
  font-size: inherit !important;
  font-weight: 400 !important;
  display: inline !important;
  color: #94a3b8 !important;
}

.site-footer a:hover,
footer .wp-block-read-more:hover,
.last-line-div a:hover {
  color: #ffffff !important;
  text-decoration: underline;
}

footer .wp-block-button__link {
  padding: 0 !important;
  min-height: 2.5rem;
  text-align: left !important;
  justify-content: flex-start !important;
  background: transparent !important;
  color: #94a3b8 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  font-weight: 400 !important;
}

footer .wp-block-button__link:hover {
  text-decoration: underline;
  background: transparent !important;
  color: #ffffff !important;
}

footer li {
  border-radius: 0 !important;
}

/* Copyright bar */
.bloghash-copyright-layout-1 .bloghash-copyright-widget__text a {
  overflow: visible !important;
  color: #64748b !important;
}

.bloghash-copyright-layout-1 .bloghash-copyright-widget__text a:hover {
  color: #ffffff !important;
}

/* ============================================================
   SOCIAL LINKS
   ============================================================ */
.wp-block-social-links .wp-block-social-link.wp-social-link {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  color: #94a3b8 !important;
  padding: 0.25rem !important;
  border-radius: 0.25rem !important;
}

.wp-block-social-links .wp-block-social-link.wp-social-link:hover {
  color: #ffffff !important;
  background: rgba(255,255,255,0.08) !important;
  transform: scale(1.05);
}

.wp-block-social-links .wp-social-link svg {
  height: 1.4em !important;
  width: 1.4em !important;
}

/* ============================================================
   DARK MODE TOGGLE (Moon/Sun custom toggle)
   ============================================================ */
.bloghash-header-widgets .bloghash-darkmode.rounded-border,
.bloghash-header-widgets .bloghash-cart.rounded-border,
.bloghash-header-widgets .bloghash-search.rounded-border {
  width: 5.625em;
  height: 2.1em;
  background-color: #2b4360;
  border-radius: 6.25em;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0em -0.062em 0.062em rgba(0,0,0,0.25), 0em 0.062em 0.125em rgba(255,255,255,0.94);
  position: relative;
}

.bloghash-header-widgets .bloghash-darkmode {
  background-color: #3777bc;
  color: white !important;
}

/* Stars in light mode */
.bloghash-header-widgets .bloghash-darkmode.rounded-border::before,
.bloghash-header-widgets .bloghash-cart.rounded-border::before,
.bloghash-header-widgets .bloghash-search.rounded-border::before {
  content: "";
  position: absolute;
  width: 0.15em;
  height: 0.15em;
  top: 0.5em;
  left: 0.7em;
  background: white;
  border-radius: 50%;
  box-shadow: 0.1em 0.7em 0 0 white, 3em 0.2em 0 0 white, 1.3em 1.2em 0 0 white;
}

.bloghash-header-widgets .bloghash-darkmode.rounded-border::after,
.bloghash-header-widgets .bloghash-cart.rounded-border::after,
.bloghash-header-widgets .bloghash-search.rounded-border::after {
  content: "";
  position: absolute;
  width: 0.2em;
  height: 0.2em;
  top: 1.2em;
  right: 1em;
  background: white;
  border-radius: 50%;
  box-shadow: -3em -0.4em 0 0 white, 0 0 0 0 white;
}

html[data-darkmode="dark"] .bloghash-header-widgets .bloghash-darkmode.rounded-border,
html[data-darkmode="dark"] .bloghash-header-widgets .bloghash-cart.rounded-border,
html[data-darkmode="dark"] .bloghash-header-widgets .bloghash-search.rounded-border {
  background-color: #83cbd8;
}

/* Clouds in dark mode */
html[data-darkmode="dark"] .bloghash-header-widgets .bloghash-darkmode.rounded-border::before,
html[data-darkmode="dark"] .bloghash-header-widgets .bloghash-cart.rounded-border::before,
html[data-darkmode="dark"] .bloghash-header-widgets .bloghash-search.rounded-border::before {
  content: "";
  position: absolute;
  top: 0.3em;
  left: 6.0em;
  width: 0.5em;
  height: 0.6em;
  background: white;
  border-radius: 0.45em;
  opacity: 0.9;
  box-shadow: -0.3em -0.3em 0 0.15em white, -0.8em -0.4em 0 0.2em white,
              -1.5em -0.3em 0 0.15em white, -2em -0.2em 0 0.1em white;
}

html[data-darkmode="dark"] .bloghash-header-widgets .bloghash-darkmode.rounded-border::after,
html[data-darkmode="dark"] .bloghash-header-widgets .bloghash-cart.rounded-border::after,
html[data-darkmode="dark"] .bloghash-header-widgets .bloghash-search.rounded-border::after {
  content: "";
  position: absolute;
  top: 1.9em;
  right: 3.5em;
  width: 0.5em;
  height: 0.6em;
  background: white;
  border-radius: 0.45em;
  opacity: 0.9;
  box-shadow: -0.3em -0.3em 0 0.15em white, -0.8em -0.4em 0 0.2em white,
              -1.5em -0.3em 0 0.15em white, -2em -0.2em 0 0.1em white;
}

/* Dark mode moon icon */
html[data-darkmode="dark"] .bloghash-header-widgets .bloghash-header-widget .bloghash-darkmode span {
  display: inline-block;
  width: 1.05em;
  height: 1.05em;
  background: radial-gradient(circle at 70% 30%, var(--bloghash-primary) 50%, transparent 51%);
  border-radius: 50%;
  position: relative;
  color: #ECCA2F !important;
  filter: drop-shadow(0.062em 0.125em 0.125em rgba(0,0,0,0.25)) drop-shadow(0em 0.062em 0.125em rgba(0,0,0,0.25));
}

/* ============================================================
   HEADER NAV z-index fix
   ============================================================ */
.bloghash-nav.bloghash-header-element,
.bloghash-header-layout-1 .bloghash-header-widgets,
.bloghash-header-layout-2 .bloghash-header-widgets {
  z-index: 1000 !important;
}

/* Hamburger */
.bloghash-hamburger,
.hamburger-box {
  border-radius: 50% !important;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
  width: 1.8rem;
}

.bloghash-header-widgets a:not(.bloghash-btn),
.bloghash-logo a,
.bloghash-hamburger {
  border-radius: 50% !important;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.navigation .nav-links .page-numbers {
  font-family: var(--bh-font-body) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  border-radius: var(--bh-radius-full) !important;
  background-color: var(--bh-surface) !important;
  border: 1px solid var(--bh-border) !important;
  color: var(--bh-text) !important;
  transition: all var(--bh-transition) !important;
}

.navigation .nav-links .page-numbers:hover,
.navigation .nav-links .page-numbers.current {
  background-color: var(--bh-primary) !important;
  border-color: var(--bh-primary) !important;
  color: #fff !important;
}

/* ============================================================
   HOME SECTIONS (main-home-section, etc.)
   ============================================================ */
.main-home-section {
  border-radius: 2rem 2rem 0 0;
  font-family: var(--bh-font-body);
  background-color: #020617;
  color: #f8fafc;
  line-height: 1.6;
  overflow-x: hidden;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(37, 99, 235, 0.1) 0%, transparent 20%),
    radial-gradient(circle at 90% 80%, rgba(124, 58, 237, 0.1) 0%, transparent 20%);
}

.home-who-we-are,
.home-videos-sec {
  margin: 1.5rem 0;
  border-radius: 2rem !important;
}

.home-who-we-are p,
.home-videos-sec p,
.hero-width p {
  text-align: justify;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  padding: 180px 0 100px;
  text-align: center;
  position: relative;
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem) !important;
  margin-bottom: 30px;
  background: linear-gradient(to right, #fff, #00d2ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   SECTION TITLES
   ============================================================ */
.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  color: aliceblue;
  font-size: clamp(2rem, 4vw, 3.5rem) !important;
  margin-bottom: 15px;
}

.section-title p {
  color: #94a3b8;
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================================
   CONTENT CARDS (homepage custom sections)
   ============================================================ */
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.content-card {
  background: rgba(185, 185, 185, 0.07);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s ease;
  border: 1px solid rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  padding: 30px;
}

.content-card:hover {
  transform: translateY(-8px);
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.content-card h3 {
  font-size: 1.4rem !important;
  margin-bottom: 15px;
}

.content-card p {
  margin-bottom: 25px;
}

.card-link {
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.card-link:hover {
  gap: 12px;
}

/* ============================================================
   SECTIONS NAVIGATION CARDS
   ============================================================ */
.sections-nav { padding: 80px 0; }
.sections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.section-card {
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s ease;
  border: 1px solid rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
}

.section-card:hover {
  transform: translateY(-10px);
  border-color: rgba(124, 58, 237, 0.3);
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}

.card-icon {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
}

.blockchain-icon { background: linear-gradient(135deg, rgba(37,99,235,0.1), rgba(37,99,235,0.2)); color: #2563eb; }
.crypto-icon     { background: linear-gradient(135deg, rgba(124,58,237,0.1), rgba(124,58,237,0.2)); color: #7c3aed; }
.nft-icon        { background: linear-gradient(135deg, rgba(0,210,255,0.1), rgba(0,210,255,0.2)); color: #00d2ff; }

.card-content { padding: 30px; }
.card-content h3 { font-size: 1.4rem !important; margin-bottom: 15px; }
.card-content p { margin-bottom: 25px; }

/* ============================================================
   FEATURES SECTION
   ============================================================ */
.features { padding: 100px 0; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.feature-card {
  padding: 30px;
  border-radius: 15px;
  border: 1px solid rgba(255,255,255,0.05);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(124, 58, 237, 0.25);
  box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: aliceblue;
}

.feature-card h3 {
  color: aliceblue;
  font-size: 1.4rem !important;
  margin-bottom: 15px;
}

/* ============================================================
   FAQ SECTION
   ============================================================ */
.faq-grid { gap: 30px; margin: 40px 0; }

.faq-card {
  border-radius: 15px;
  padding: 30px;
  border: 1px solid rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.faq-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.faq-card h3 {
  font-size: 1.3rem !important;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.faq-card h3 i { font-size: 1.5rem; }
.faq-card p, .faq-card li { line-height: 1.7; margin-bottom: 15px; }
.faq-card ul, .faq-card ol { padding-left: 20px; margin: 15px 0; }

.faq-card a {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 15px;
  text-decoration: none;
}

.faq-card a:hover { text-decoration: underline; gap: 12px; }
.faq-card.security { border-left: 4px solid #f59e0b; }

/* ============================================================
   NFT SHOWCASE
   ============================================================ */
.nft-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin: 40px 0;
}

.nft-card {
  background: rgba(30, 41, 59, 0.7);
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.05);
  transition: all 0.3s ease;
}

.nft-card:hover { transform: translateY(-8px); border-color: #14b8a6; }

.nft-image {
  height: 250px;
  background: linear-gradient(45deg, rgba(20,184,166,0.1) 25%, transparent 25%,
    transparent 50%, rgba(20,184,166,0.1) 50%, rgba(20,184,166,0.1) 75%, transparent 75%, transparent);
  background-size: 20px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: #14b8a6;
}

.nft-content { padding: 20px; }
.nft-title { font-size: 1.3rem !important; margin-bottom: 10px; }
.nft-artist { display: flex; align-items: center; gap: 10px; color: #94a3b8; margin-bottom: 15px; }
.artist-avatar { width: 30px; height: 30px; border-radius: 50%; background: #14b8a6; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; }
.nft-stats { display: flex; justify-content: space-between; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 15px; }
.stat { text-align: center; }
.stat-value { font-weight: bold; color: #14b8a6; }
.stat-label { font-size: 0.75rem; color: #94a3b8; }

/* ============================================================
   BLOCKCHAIN VISUAL
   ============================================================ */
.blockchain-explanation { display: flex; align-items: center; gap: 50px; margin-bottom: 80px; }
.explanation-content { flex: 1; }
.explanation-visual { flex: 1; display: flex; justify-content: center; position: relative; }
.block-visual { display: flex; flex-direction: column; align-items: center; gap: 20px; }

.block {
  width: 200px; height: 80px;
  background: rgba(37,99,235,0.15);
  border: 2px solid #2563eb;
  border-radius: 10px;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  position: relative;
}

.block::after { content: ''; position: absolute; bottom: -22px; width: 2px; height: 20px; background: #2563eb; }
.block:last-child::after { display: none; }
.block .block-number { font-size: 1.2rem; font-weight: bold; color: #2563eb; }
.block .block-hash { font-size: 0.7rem; color: #94a3b8; max-width: 180px; overflow: hidden; text-overflow: ellipsis; }

/* ============================================================
   BITCOIN COIN ANIMATION
   ============================================================ */
.coin {
  font-size: 200px;
  width: 0.1em; height: 1em;
  background: linear-gradient(#faa504, #141001);
  margin: auto;
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  animation: rotate_4001510 7s infinite linear;
  transform-style: preserve-3d;
}

.coin .side, .coin:before, .coin:after {
  content: "";
  position: absolute;
  width: 1em; height: 1em;
  overflow: hidden;
  border-radius: 50%;
  right: -0.4em;
  text-align: center;
  line-height: 1;
  transform: rotateY(-90deg);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.coin .tails, .coin:after { left: -0.4em; transform: rotateY(90deg); }
.coin:before, .coin:after { background: linear-gradient(#faa504, #141001); transform: rotateY(90deg); }
.coin:after { transform: rotateY(-90deg); }

@keyframes rotate_4001510 { 100% { transform: rotateY(360deg); } }
.svg_back { transform: scaleX(-1); }

/* ============================================================
   NFT FRAME
   ============================================================ */
.framenft {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 230px; height: 300px;
  background-color: #f2b67b;
  border-radius: 5px;
}

.framenft svg { border: 2px solid black; max-width: 100%; max-height: 100%; border-radius: 3px; scale: 0.87; transition: transform 0.3s cubic-bezier(0.4, 1.55, 0.74, 0.55); }
.framenft:hover svg { transform: scale(1.11); }

/* ============================================================
   RESOURCE CARDS
   ============================================================ */
.resource-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }

.resource-card {
  background: var(--bh-accent);
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.05);
}

.resource-header { padding: 10px; background: rgba(37,99,235,0.2); border-bottom: 1px solid #2563eb; }
.resource-body { padding: 20px; }
.resource-body ul { list-style: none; margin: 20px 0; }
.resource-body li { color: aliceblue !important; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.05); display: flex; align-items: center; gap: 10px; }
.resource-body li:last-child { border-bottom: none; }

/* ============================================================
   CTA CARD
   ============================================================ */
.cta-card {
  background: linear-gradient(135deg, rgba(20,184,166,0.15), rgba(15,23,42,0.8));
  border-radius: 15px;
  padding: 40px;
  text-align: center;
  margin: 60px 0 30px;
  border: 1px solid rgba(20,184,166,0.3);
}

.cta-card h3 { font-size: 1.6rem !important; margin-bottom: 20px; }
.cta-card p { max-width: 600px; margin: 0 auto 30px; }
.cta-buttons { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }

/* ============================================================
   MISC COMPONENTS
   ============================================================ */
.card {
  box-shadow: 0 5px 20px 0 rgba(69, 67, 96, 0.08);
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
  margin-bottom: 4rem;
}

.card-img-top { width: 200px; height: auto; object-fit: contain; }
.card-title-logo, .card-header { font-size: 2rem !important; }

.blog-bottom-stick { border-radius: 2rem; box-shadow: 0 5px 20px 0 rgba(69,67,96,0.1); margin-top: 2rem; position: relative; }
.blog-bottom-img { position: absolute; right: 0; bottom: -10rem; box-shadow: 0 5px 20px 0 rgba(69,67,96,0.1); border-radius: 1rem; }

.subscription-page { width: 60%; margin: 0 auto !important; }
.last-line-div { display: grid; justify-content: end !important; align-items: end; grid-template-columns: repeat(2, 1fr); }
.privacy-item { display: flex; justify-content: end; }

.alignwide { margin-right: 0 !important; margin-left: 0 !important; }
.post-45 { padding: 0 !important; }

.wp-block-latest-posts__post-title { font-weight: 400; }
.link-no-list { list-style: none; }

.comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 20px 0; }
.step-bubble { background: rgba(20,184,166,0.12); color: #14b8a6; padding: 8px 15px; border-radius: 20px; margin: 8px 0; display: inline-block; font-size: 0.9rem; }
.process-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 15px 0; }
.process-flow > div { padding: 8px 12px; background: rgba(20,184,166,0.08); border-radius: 8px; font-size: 0.9rem; }
.lang-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin: 15px 0; }
.lang-card { background: rgba(20,184,166,0.08); padding: 10px; border-radius: 8px; text-align: center; font-size: 0.9rem; }
.warning-signs { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin: 15px 0; }
.warning-signs > div { display: flex; align-items: center; gap: 8px; color: #ef4444; font-size: 0.9rem; }
.note { font-size: 0.8rem; color: #94a3b8; font-style: italic; margin-top: 15px; }

.image-shadow { filter: drop-shadow(4px 4px 4px rgba(0,0,0,0.25)); }

#menu-item-1429 > a:nth-child(1),
#menu-item-60 > a:nth-child(1) { pointer-events: none !important; cursor: default !important; }

li { text-align: left !important; }

.more-about-btn { outline: none !important; border: none !important; }

.scientist-card .row { display: flex; align-items: center; }
.scientist-info { margin-left: 5rem; line-height: 2.5; }

.home-videos-sec .row { margin: 0 auto; }

#bloghash-topbar .bloghash-topbar-widget__text .bloghash-icon { margin-bottom: -1.5rem; }

.custom-faq .is-resized { margin-left: 0 !important; margin-right: 1rem !important; }
#featured_links { margin-top: 0rem !important; }
#pyml { margin-top: 0rem; }

body.bloghash-layout__boxed-separated:not(.page-template-template-bloghash-fullwidth):not(.page-template-elementor_header_footer) #page .entry-content .alignfull {
  margin-left: 0rem !important;
  margin-right: 0rem !important;
}

.who-we-col2 .wp-block-image.alignwide img { width: 50% !important; }
.bloghash-copyright-layout-1 .bloghash-copyright-widget__text a { overflow: visible !important; }

.btn-primary {
  background-color: var(--bh-accent) !important;
  padding: 12px 20px !important;
  border-radius: 10px !important;
  border: none !important;
  color: white !important;
  margin: 0 auto !important;
  margin-top: 2rem !important;
  margin-bottom: 2rem !important;
}

#mailpoet_form_3 {
  background: url(https://demo.top2percentscientists.com/wp-content/uploads/2024/11/main-bg.png) center / cover no-repeat !important;
  color: white !important;
}
#mailpoet_form_3 .mailpoet_validate_success { color: white !important; }

/* ============================================================
   ADSENSE-READY AD ZONES
   Proper spacing around ad units for AdSense compliance
   ============================================================ */
.ad-zone {
  display: block;
  text-align: center;
  margin: 2rem auto;
  padding: 0.5rem 0;
  clear: both;
  overflow: hidden;
}

.ad-zone-header {
  margin: 0 auto 1rem;
  max-width: 100%;
}

.ad-zone-in-content {
  margin: 2.5rem auto;
  padding: 1.5rem 0;
  border-top: 1px solid var(--bh-border);
  border-bottom: 1px solid var(--bh-border);
}

.ad-zone-sidebar {
  margin-bottom: 1.5rem;
  text-align: center;
}

/* Ensure content above/below ads is clearly separated */
.bloghash-entry .entry-content .ad-zone-in-content + * {
  margin-top: 2.5rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 992px) {
  .blog-bottom-img { display: none; }
  .subscription-page { width: 80%; }
  .single .entry-content > :last-child { margin-bottom: 3rem !important; }
  .blockchain-explanation { flex-direction: column; gap: 30px; }
  #secondary.widget-area { padding-left: 0; margin-top: 2rem; }
}

@media (max-width: 786px) {
  .top-date { display: none; }
  #bloghash-topbar > .bloghash-container > .bloghash-flex-row > div { margin: 0 auto; }
  #pyml { margin-top: 0rem; }
  .bloghash-featured-container { position: absolute; top: 352rem; }
}

@media (max-width: 760px) {
  .bloghash-featured-container { position: absolute; top: 362rem; }
}

@media (max-width: 680px) {
  .bloghash-featured-container { position: absolute; top: 378rem; }
}

@media (max-width: 599px) {
  .bloghash-featured-container { position: absolute; top: 402rem; }
  #pyml { margin-top: 0rem; }
}

@media (max-width: 500px) {
  .subscription-page { width: 100%; }
  #mailpoet_form_3 {
    background-image: url('https://demo.top2percentscientists.com/wp-content/uploads/2024/10/Morocco-Top-10-Researchers-2024.png');
  }
  .wp-block-heading, .page-header h1 { font-size: 2.2rem !important; }
  .wp-block-latest-posts__post-title { font-size: 1.6rem !important; }
}

@media (max-width: 445px) {
  .bloghash-featured-container { position: absolute; top: 436rem; }
  #pyml { margin-top: 0rem; }
}

/* ============================================================
   FOOTER WIDGET LINK FIX - Remove pill button style from footer nav links
   ============================================================ */
.site-footer .bloghash-widget a,
.site-footer .widget a,
#colophon .widget a,
#colophon .bloghash-nav ul li a,
.site-footer .wp-block-navigation a,
.site-footer ul li a {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  display: inline !important;
  font-weight: 400 !important;
  font-size: 14px !important;
  color: #94a3b8 !important;
  transform: none !important;
}

.site-footer .bloghash-widget a:hover,
.site-footer .widget a:hover,
#colophon .widget a:hover,
#colophon .bloghash-nav ul li a:hover {
  color: #ffffff !important;
  background: transparent !important;
  transform: none !important;
  text-decoration: underline;
}

/* ============================================================
   SECTION CARDS - Floating animation & card styles for sidebar widget
   ============================================================ */
@keyframes floating {
  0%   { transform: translateY(0px); }
  50%  { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

.section-card.floating {
  animation: floating 3s ease-in-out infinite;
}

.section-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s ease;
  backdrop-filter: blur(10px);
}

.section-card:hover {
  transform: translateY(-10px) !important;
  animation-play-state: paused;
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.section-card .card-icon {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.section-card .card-content {
  padding: 24px;
}

.section-card .card-content h3 {
  font-size: 1.3rem !important;
  font-weight: 600 !important;
  margin-bottom: 10px;
  color: #f8fafc;
}

.section-card .card-content p {
  font-size: 14px !important;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 20px;
}

.section-card .card-link {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.3s ease, color 0.3s ease;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
}

.section-card .card-link:hover {
  gap: 14px;
  color: #f7931a;
  background: transparent !important;
  transform: none !important;
}

/* ============================================================
   DEFAULT SIDEBAR - Clean up widget styles
   ============================================================ */
#secondary .sections-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

#secondary .section-card {
  border-radius: 14px;
}

#secondary .section-card .card-icon {
  height: 100px;
}



/* ============================================================
   HOMEPAGE - FORCE LIGHT/WHITE THEME THROUGHOUT
   ============================================================ */

/* Remove the dark navy section forcing everything to be dark */
.main-home-section {
  background-color: #ffffff !important;
  background-image: none !important;
  color: var(--bh-text) !important;
  border-radius: 0 !important;
}

/* Fix all text inside the dark section to be dark on white */
.main-home-section h1,
.main-home-section h2,
.main-home-section h3,
.main-home-section h4,
.main-home-section p,
.main-home-section li,
.main-home-section span {
  color: var(--bh-text) !important;
}

.main-home-section .section-title h2 {
  color: #0f172a !important;
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
}

.main-home-section .section-title p {
  color: var(--bh-text-muted) !important;
}

/* Hero heading - remove gradient text, use brand blue instead */
.hero h1 {
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  color: #1e40af !important;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem) !important;
}

.hero {
  padding: 80px 0 60px !important;
  background-color: #f8fafc !important;
}

/* Demystifying section text */
.main-home-section .hero p,
.main-home-section [class*="hero"] p {
  color: #475569 !important;
}

/* ============================================================
   SECTION CARDS - Light background versions
   ============================================================ */
.section-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06) !important;
  backdrop-filter: none !important;
}

.section-card:hover {
  border-color: rgba(30, 64, 175, 0.25) !important;
  box-shadow: 0 12px 32px rgba(30, 64, 175, 0.12) !important;
}

.section-card .card-content h3 {
  color: #0f172a !important;
}

.section-card .card-content p {
  color: #475569 !important;
}

.section-card .card-link {
  color: #1e40af !important;
}

.section-card .card-link:hover {
  color: #f7931a !important;
}

/* Card icons - light background tints */
.blockchain-icon {
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.06), rgba(59, 130, 246, 0.10)) !important;
}

.crypto-icon {
  background: linear-gradient(135deg, rgba(247, 147, 26, 0.06), rgba(247, 147, 26, 0.12)) !important;
}

.nft-icon {
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.06), rgba(20, 184, 166, 0.12)) !important;
}

/* ============================================================
   CONTENT CARDS - Light version
   ============================================================ */
.content-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  backdrop-filter: none !important;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05) !important;
}

.content-card:hover {
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.10) !important;
  border-color: rgba(30, 64, 175, 0.2) !important;
}

.content-card h3 {
  color: #0f172a !important;
}

.content-card p {
  color: #475569 !important;
}

/* ============================================================
   FEATURE CARDS - Light version
   ============================================================ */
.feature-card {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}

.feature-card:hover {
  border-color: rgba(30, 64, 175, 0.2) !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08) !important;
}

.feature-card h3 {
  color: #0f172a !important;
}

.feature-icon {
  color: #1e40af !important;
}

/* ============================================================
   "WHAT YOU'LL GAIN" SECTION - Light version
   ============================================================ */
.bloghash-icon-box,
[class*="icon-box"],
[class*="what-you"] {
  background: #ffffff !important;
  color: #0f172a !important;
}

/* ============================================================
   FAQ CARDS - Light version
   ============================================================ */
.faq-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05) !important;
  backdrop-filter: none !important;
}

.faq-card:hover {
  border-color: rgba(30, 64, 175, 0.2) !important;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.10) !important;
}

.faq-card h3 {
  color: #1e40af !important;
}

.faq-card p,
.faq-card li {
  color: #475569 !important;
}

/* ============================================================
   NFT CARDS - Light version
   ============================================================ */
.nft-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
}

.nft-card:hover {
  border-color: #14b8a6 !important;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.10) !important;
}

.nft-title {
  color: #0f172a !important;
}

/* ============================================================
   CTA CARD - Light version
   ============================================================ */
.cta-card {
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe) !important;
  border: 1px solid rgba(30, 64, 175, 0.15) !important;
}

.cta-card h3 {
  color: #1e40af !important;
}

.cta-card p {
  color: #475569 !important;
}

/* ============================================================
   BLOCKCHAIN VISUAL - Light version
   ============================================================ */
.block {
  background: rgba(30, 64, 175, 0.05) !important;
  border-color: #3b82f6 !important;
}

.block .block-number {
  color: #1e40af !important;
}

.block .block-hash {
  color: #94a3b8 !important;
}

.block::after {
  background: #3b82f6 !important;
}

/* ============================================================
   HOME PAGE BODY BACKGROUND
   ============================================================ */
body.home,
body.page-template-default {
  background-color: #f8fafc !important;
}

/* ============================================================
   REMOVE PINK / MAGENTA ACCENT COLOR ENTIRELY
   Replace all pink/magenta/rose with brand blue
   ============================================================ */

/* BlogHash theme uses --bloghash-primary which can be pink in some configs */
:root {
  --bloghash-primary: #1e40af !important;
}

/* Scroll to top button - was pink, now brand blue */
bloghash-scroll-top::before,
.bloghash-scroll-top::before {
  background-color: #1e40af !important;
}

/* Any remaining pink category pills */
.cat-links a[style*="background"],
.post-category a[style*="background"] {
  background-color: #1e40af !important;
}

/* Remove any pink from focus rings or highlights */
:focus-visible {
  outline-color: #1e40af !important;
}

/* ============================================================
   REMOVE SOCIAL MEDIA ICONS FROM HEADER
   ============================================================ */
.bloghash-header-widgets .bloghash-topbar-widget.bloghash-topbar-widgetsocials,
.bloghash-header-widgets .bloghash-header-widget.bloghash-header-widgetsocials,
.site-header .wp-block-social-links,
.site-header .bloghash-social-nav,
#masthead .bloghash-social-links,
#masthead [class*="social"],
.bloghash-header-layout-1 .bloghash-header-widgetsocials,
.bloghash-header-layout-2 .bloghash-header-widgetsocials,
.bloghash-header-container .bloghash-header-widgetsocials {
  display: none !important;
}

/* ============================================================
   PAGE HEADER - Light & professional
   ============================================================ */
.page-header {
  background: linear-gradient(135deg, #f0f4ff, #e8f0fe) !important;
  border-color: rgba(30, 64, 175, 0.08) !important;
}

.page-header .page-title {
  color: #0f172a !important;
}

/* ============================================================
   DARK MODE OVERRIDES (when user switches to dark, restore dark styles)
   ============================================================ */
html[data-darkmode="dark"] .main-home-section {
  background-color: #0d1117 !important;
  color: #e2e8f0 !important;
}

html[data-darkmode="dark"] .section-card {
  background: #161b22 !important;
  border-color: rgba(255,255,255,0.07) !important;
}

html[data-darkmode="dark"] .section-card .card-content h3 {
  color: #f1f5f9 !important;
}

html[data-darkmode="dark"] .section-card .card-content p {
  color: #94a3b8 !important;
}

html[data-darkmode="dark"] .content-card,
html[data-darkmode="dark"] .feature-card,
html[data-darkmode="dark"] .faq-card,
html[data-darkmode="dark"] .nft-card {
  background: #161b22 !important;
  border-color: rgba(255,255,255,0.07) !important;
}

html[data-darkmode="dark"] .main-home-section .section-title h2 {
  color: #f1f5f9 !important;
}

html[data-darkmode="dark"] body.home {
  background-color: #0d1117 !important;
}

html[data-darkmode="dark"] .hero {
  background-color: #0d1117 !important;
}

html[data-darkmode="dark"] .hero h1 {
  color: #60a5fa !important;
}

html[data-darkmode="dark"] .cta-card {
  background: linear-gradient(135deg, rgba(30,64,175,0.15), rgba(15,23,42,0.9)) !important;
}


/* ============================================================
   HOMEPAGE REDESIGN - Hero + Features
   ============================================================ */

/* --- Hero --- */
.bh-hero {
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 60%, #fefce8 100%);
  padding: 80px 24px 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #e2e8f0;
}

.bh-hero::before {
  content: "";
  position: absolute;
  top: -80px; right: -80px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(30,64,175,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.bh-hero::after {
  content: "";
  position: absolute;
  bottom: -60px; left: -60px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(247,147,26,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.bh-hero-inner {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.bh-hero-badge {
  display: inline-block;
  background: rgba(30,64,175,0.08);
  color: #1e40af;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 6px 16px;
  border-radius: 9999px;
  border: 1px solid rgba(30,64,175,0.15);
  margin-bottom: 24px;
}

.bh-hero-title {
  font-family: "Space Grotesk", "Inter", sans-serif !important;
  font-size: clamp(2rem, 4.5vw, 3.2rem) !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  color: #0f172a !important;
  margin-bottom: 20px !important;
  letter-spacing: -0.03em !important;
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
}

.bh-hero-accent {
  color: #1e40af;
  position: relative;
}

.bh-hero-sub {
  font-size: 1.1rem !important;
  color: #475569 !important;
  line-height: 1.75 !important;
  max-width: 600px;
  margin: 0 auto 36px !important;
}

.bh-hero-cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.bh-btn-primary {
  background: #1e40af;
  color: #ffffff !important;
  padding: 13px 28px;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(30,64,175,0.25);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
  display: inline-block;
}

.bh-btn-primary:hover {
  background: #1e3a8a !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(30,64,175,0.30);
  text-decoration: none !important;
}

.bh-btn-outline {
  background: transparent;
  color: #1e40af !important;
  padding: 12px 28px;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none !important;
  border: 2px solid rgba(30,64,175,0.3);
  transition: all 180ms ease;
  display: inline-block;
}

.bh-btn-outline:hover {
  background: rgba(30,64,175,0.06) !important;
  border-color: rgba(30,64,175,0.5);
  color: #1e40af !important;
  transform: translateY(-2px);
}

.bh-hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 20px 32px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(15,23,42,0.05);
  max-width: 380px;
  margin: 0 auto;
}

.bh-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.bh-stat-num {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e40af;
  line-height: 1;
}

.bh-stat-label {
  font-size: 11px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 4px;
}

.bh-stat-divider {
  width: 1px;
  height: 36px;
  background: #e2e8f0;
  flex-shrink: 0;
  margin: 0 4px;
}

/* --- Features --- */
.bh-features {
  background: #f8fafc;
  padding: 80px 24px;
  border-bottom: 1px solid #e2e8f0;
}

.bh-features-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.bh-section-head {
  text-align: center;
  margin-bottom: 56px;
}

.bh-section-tag {
  display: inline-block;
  background: rgba(247,147,26,0.10);
  color: #c05e00;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 14px;
  border-radius: 9999px;
  border: 1px solid rgba(247,147,26,0.20);
  margin-bottom: 16px;
}

.bh-section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem) !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin-bottom: 14px !important;
  line-height: 1.2 !important;
}

.bh-section-head p {
  color: #64748b !important;
  font-size: 16px !important;
  max-width: 560px;
  margin: 0 auto !important;
}

.bh-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.bh-feature-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 1px 4px rgba(15,23,42,0.04);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.bh-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(15,23,42,0.09);
  border-color: rgba(30,64,175,0.18);
}

.bh-feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  flex-shrink: 0;
}

.bh-feature-card h3 {
  font-size: 1.05rem !important;
  font-weight: 600 !important;
  color: #0f172a !important;
  margin-bottom: 8px !important;
}

.bh-feature-card p {
  font-size: 14px !important;
  color: #64748b !important;
  line-height: 1.65 !important;
  margin: 0 !important;
  max-width: 100%;
}

/* Dark mode */
html[data-darkmode="dark"] .bh-hero {
  background: linear-gradient(135deg, #0d1117 0%, #0f1a2e 60%, #1a1205 100%);
  border-bottom-color: rgba(255,255,255,0.06);
}

html[data-darkmode="dark"] .bh-hero-title { color: #f1f5f9 !important; }
html[data-darkmode="dark"] .bh-hero-sub { color: #94a3b8 !important; }
html[data-darkmode="dark"] .bh-hero-badge {
  background: rgba(59,130,246,0.12);
  color: #60a5fa;
  border-color: rgba(59,130,246,0.2);
}
html[data-darkmode="dark"] .bh-hero-stats {
  background: #161b22;
  border-color: rgba(255,255,255,0.07);
}
html[data-darkmode="dark"] .bh-features { background: #0d1117; border-bottom-color: rgba(255,255,255,0.05); }
html[data-darkmode="dark"] .bh-feature-card {
  background: #161b22;
  border-color: rgba(255,255,255,0.07);
}
html[data-darkmode="dark"] .bh-feature-card h3 { color: #f1f5f9 !important; }
html[data-darkmode="dark"] .bh-feature-card p { color: #94a3b8 !important; }
html[data-darkmode="dark"] .bh-section-head h2 { color: #f1f5f9 !important; }
html[data-darkmode="dark"] .bh-section-head p { color: #94a3b8 !important; }
html[data-darkmode="dark"] .bh-btn-outline { border-color: rgba(96,165,250,0.3); color: #60a5fa !important; }

/* Featured image fix */
.bloghash-post-thumb,
.bloghash-post-thumb a,
.bloghash-post-item .bloghash-post-thumb {
  display: block !important;
  overflow: hidden;
  background: #f1f5f9;
}

.bloghash-post-thumb img,
.bloghash-post-item .bloghash-post-thumb img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Responsive */
@media (max-width: 600px) {
  .bh-hero { padding: 60px 16px 52px; }
  .bh-hero-cta-row { flex-direction: column; align-items: center; }
  .bh-btn-primary, .bh-btn-outline { width: 100%; max-width: 280px; text-align: center; }
  .bh-features { padding: 56px 16px; }
  .bh-features-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   FOOTER FULL REDESIGN - Dark, professional, on-brand
   ============================================================ */
.site-footer,
#colophon {
  background: #0a0f1e !important;
  border-top: 1px solid rgba(255,255,255,0.06) !important;
  padding: 0 !important;
  color: #94a3b8 !important;
}

/* Footer widget area - remove white card boxes */
.site-footer .footer-widgets,
.site-footer .bloghash-footer-widgets,
#colophon .widget-area,
.footer-widget-area {
  background: transparent !important;
  padding: 60px 24px 40px !important;
  max-width: 1100px;
  margin: 0 auto;
  display: grid !important;
  grid-template-columns: 1.4fr 1fr 1fr !important;
  gap: 40px !important;
  align-items: start;
}

/* Remove the white card boxes from footer widgets */
.site-footer .widget,
#colophon .widget {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
}

/* Footer widget titles */
.site-footer .widget-title,
#colophon .widget-title,
.site-footer .widgettitle {
  font-size: 13px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.1em !important;
  color: #f1f5f9 !important;
  margin-bottom: 20px !important;
  padding-bottom: 12px !important;
  border-bottom: 1px solid rgba(255,255,255,0.08) !important;
}

/* Footer widget text */
.site-footer .widget p,
#colophon .widget p {
  color: #64748b !important;
  font-size: 14px !important;
  line-height: 1.7 !important;
}

/* Footer widget links - remove pill buttons, clean text links */
.site-footer .widget a,
#colophon .widget a {
  color: #64748b !important;
  font-size: 14px !important;
  text-decoration: none !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  display: inline !important;
  font-weight: 400 !important;
  transition: color 150ms ease !important;
}

.site-footer .widget a:hover,
#colophon .widget a:hover {
  color: #f1f5f9 !important;
  background: transparent !important;
  transform: none !important;
}

/* Footer nav lists - clean vertical stack */
.site-footer .widget ul,
#colophon .widget ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}

.site-footer .widget ul li,
#colophon .widget ul li {
  padding: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
}

/* Footer 1 - Brand description column */
.site-footer .widget:first-child p::before,
#colophon .widget:first-child::before {
  content: "";
}

/* Footer brand accent line */
.site-footer .widget:first-child,
#colophon .footer-widgets > .widget:first-child {
  border-left: 3px solid #1e40af !important;
  padding-left: 20px !important;
}

/* Email link in footer */
.site-footer .widget a[href^="mailto"],
#colophon .widget a[href^="mailto"] {
  color: #3b82f6 !important;
}

.site-footer .widget a[href^="mailto"]:hover {
  color: #60a5fa !important;
  text-decoration: underline !important;
}

/* Footer bottom bar (copyright) */
.site-info,
.bloghash-footer-bottom,
#colophon .site-info {
  background: #060a14 !important;
  border-top: 1px solid rgba(255,255,255,0.05) !important;
  padding: 18px 24px !important;
  text-align: center !important;
  color: #475569 !important;
  font-size: 13px !important;
}

.site-info a,
.bloghash-footer-bottom a {
  color: #3b82f6 !important;
  text-decoration: none !important;
}

.site-info a:hover {
  color: #60a5fa !important;
  text-decoration: underline !important;
}

/* Scroll to top button - brand blue */
.bloghash-scroll-top,
#bloghash-scroll-top {
  background: #1e40af !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(30,64,175,0.35) !important;
}

.bloghash-scroll-top:hover,
#bloghash-scroll-top:hover {
  background: #1e3a8a !important;
}

/* Responsive footer */
@media (max-width: 768px) {
  .site-footer .footer-widgets,
  .site-footer .bloghash-footer-widgets,
  #colophon .widget-area,
  .footer-widget-area {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
    padding: 48px 20px 32px !important;
  }
}