/* ============================================
   Tech Insider Dark Theme + Magazine Layout
   v2 — Clean overhaul
   ============================================ */

/* ---- CSS VARIABLES ---- */
:root {
  --ti-bg: #0d0d0d;
  --ti-surface: #161616;
  --ti-surface-2: #1c1c1c;
  --ti-surface-3: #252525;
  --ti-accent: #00c853;
  --ti-accent-hover: #c44299;
  --ti-accent-glow: rgba(159,54,123,0.3);
  --ti-cyan: #ffc107;
  --ti-cyan-glow: rgba(0,212,255,0.15);
  --ti-text: #e8e8e8;
  --ti-text-muted: #888;
  --ti-border: #222;
  --ti-radius: 6px;
  --ti-max-width: 1200px;
  --ti-font: "Exo 2", "Segoe UI", system-ui, sans-serif;
  /* Blocksy palette overrides */
  --theme-palette-color-1: #00c853 !important;
  --theme-palette-color-2: #c44299 !important;
  --theme-palette-color-3: #e8e8e8 !important;
  --theme-palette-color-4: #888888 !important;
  --theme-palette-color-5: #0d0d0d !important;
  --theme-palette-color-6: #161616 !important;
  --theme-palette-color-7: #1c1c1c !important;
  --theme-palette-color-8: #252525 !important;
  --theme-text-color: #e8e8e8 !important;
  --theme-link-initial-color: #00c853 !important;
  --theme-link-hover-color: #c44299 !important;
  --theme-border-color: #222 !important;
  --theme-headings-color: #ffffff !important;
}

/* ---- GLOBAL RESETS ---- */
*, *::before, *::after { box-sizing: border-box; }

body, html {
  background-color: var(--ti-bg) !important;
  color: var(--ti-text);
  font-family: var(--ti-font);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ti-accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--ti-accent-hover); }

/* Override ALL Blocksy backgrounds */
.site-main, .content-area, #main, .entries,
[data-prefix] .site-main, .ct-container,
[class*="ct-container"], .page .site-main,
.single .site-main, .archive .site-main,
.home .site-main, article.post, article.page,
.entry-content, .single .ct-container,
.page .ct-container, div[class*="ct-container"] {
  background: transparent !important;
  color: var(--ti-text);
}

.site-container, [class*="ct-container"] {
  max-width: var(--ti-max-width) !important;
}

/* ---- ANIMATIONS ---- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 20px var(--ti-accent-glow); }
  50% { box-shadow: 0 0 40px var(--ti-accent-glow), 0 0 60px var(--ti-cyan-glow); }
}
@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================
   HEADER
   ============================================ */
header[data-id="type-1"],
.ct-header,
[data-row="middle"],
[data-row="top"] {
  background-color: var(--ti-bg) !important;
  border-bottom: none !important;
  box-shadow: none !important;
  position: relative;
  z-index: 100;
}

/* Accent bar below header — thick and visible */
.ct-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ti-accent), #c44299, var(--ti-accent));
  z-index: 101;
}

[data-row="middle"] {
  background-color: var(--ti-bg) !important;
  padding: 12px 0 !important;
}

/* Force horizontal logo layout (override Blocksy data-logo="top") */
.site-branding[data-id="logo"] {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 12px !important;
}

/* Logo: eye icon same height as text */
.ct-header .site-logo-container img,
.ct-header .custom-logo,
header .site-logo-container img {
  max-height: 32px !important;
  width: 32px !important;
  height: 32px !important;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(0,212,255,0.4));
  transition: filter 0.3s ease;
  border-radius: 4px;
}

.ct-header .site-logo-container img:hover {
  filter: drop-shadow(0 0 18px rgba(0,212,255,0.6)) brightness(1.15);
}

.site-logo-container {
  display: inline-flex !important;
  align-items: center !important;
  flex-shrink: 0;
}

/* Site title text next to logo */
.ct-header .site-title,
.ct-header .site-title a {
  color: #fff !important;
  font-family: var(--ti-font) !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 3px !important;
  font-size: 20px !important;
  text-decoration: none !important;
  text-shadow: 0 0 20px rgba(159,54,123,0.2);
  white-space: nowrap;
}

/* Nav menu */
.ct-header nav a,
[data-id="menu"] a,
.ct-menu-link {
  color: #ccc !important;
  font-family: var(--ti-font);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 1.2px;
  transition: color 0.2s, text-shadow 0.2s;
}

.ct-header nav a:hover,
[data-id="menu"] a:hover,
.ct-menu-link:hover {
  color: #fff !important;
  text-shadow: 0 0 15px var(--ti-accent-glow);
}

/* ============================================
   MAGAZINE HOMEPAGE
   ============================================ */
.ti-magazine {
  max-width: var(--ti-max-width);
  margin: 0 auto;
  padding: 28px 20px 80px;
  animation: fadeIn 0.6s ease;
}

/* ---- SCROLLABLE TICKER ---- */
.ti-ticker {
  display: flex;
  align-items: stretch;
  background: var(--ti-surface);
  border: 1px solid var(--ti-border);
  border-radius: 8px;
  margin-bottom: 28px;
  overflow: hidden;
  position: relative;
}

.ti-ticker__label {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  background: var(--ti-accent);
  color: #fff;
  font-family: var(--ti-font);
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  white-space: nowrap;
  z-index: 2;
  position: relative;
  box-shadow: 4px 0 16px rgba(0,0,0,0.3);
}

.ti-ticker__label::after {
  content: "";
  position: absolute;
  right: -8px;
  top: 0;
  bottom: 0;
  width: 8px;
  background: linear-gradient(90deg, rgba(0,0,0,0.2), transparent);
}

.ti-ticker__track {
  flex: 1;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent);
}

.ti-ticker__content {
  display: flex;
  align-items: center;
  animation: tickerScroll 60s linear infinite;
  width: max-content;
}

.ti-ticker:hover .ti-ticker__content {
  animation-play-state: paused;
}

.ti-ticker__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  color: #aaa !important;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none !important;
  transition: color 0.2s;
}

.ti-ticker__item:hover {
  color: #fff !important;
}

.ti-ticker__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ti-accent);
  flex-shrink: 0;
}

/* ---- HERO ---- */
.ti-hero {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  margin-bottom: 56px;
  animation: fadeInUp 0.8s ease;
}

.ti-hero__main {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  min-height: 480px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}

.ti-hero__main::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  pointer-events: none;
  z-index: 3;
}

.ti-hero__link {
  display: block;
  position: relative;
  height: 100%;
  text-decoration: none !important;
}

.ti-hero__img {
  position: relative;
  height: 100%;
}

.ti-hero__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 8s ease;
}

.ti-hero__main:hover .ti-hero__img img {
  transform: scale(1.05);
}

.ti-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.4) 55%, rgba(0,0,0,0.92) 100%);
}

.ti-hero__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 36px;
  z-index: 2;
}

.ti-hero__title {
  color: #fff !important;
  font-family: var(--ti-font);
  font-weight: 800;
  font-size: 32px;
  line-height: 1.2;
  margin: 12px 0 14px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
  transition: color 0.3s;
}

.ti-hero__main:hover .ti-hero__title {
  color: var(--ti-accent-hover) !important;
}

.ti-hero__meta {
  display: flex;
  gap: 8px;
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  font-weight: 500;
}

/* Hero sidebar */
.ti-hero__sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ti-hero__side-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  flex: 1;
  min-height: 230px;
  display: block;
  text-decoration: none !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.ti-hero__side-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  pointer-events: none;
  z-index: 3;
}

.ti-hero__side-img {
  position: relative;
  height: 100%;
}

.ti-hero__side-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 6s ease;
}

.ti-hero__side-card:hover .ti-hero__side-img img {
  transform: scale(1.06);
}

.ti-hero__side-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  z-index: 2;
  background: linear-gradient(transparent, rgba(0,0,0,0.88));
}

.ti-hero__side-content h3 {
  color: #fff !important;
  font-family: var(--ti-font);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
  margin: 6px 0 4px;
  transition: color 0.3s;
}

.ti-hero__side-card:hover h3 {
  color: var(--ti-accent-hover) !important;
}

.ti-meta {
  color: rgba(255,255,255,0.5);
  font-size: 11px;
  font-weight: 500;
}

/* ---- BADGES ---- */
.ti-badge {
  display: inline-block;
  background: var(--ti-accent);
  color: #fff;
  font-family: var(--ti-font);
  font-weight: 700;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 3px;
  box-shadow: 0 2px 8px var(--ti-accent-glow);
}

.ti-badge--sm {
  font-size: 9px;
  padding: 3px 8px;
  letter-spacing: 0.8px;
}

/* ---- SECTION HEADERS ---- */
.ti-section {
  margin-bottom: 56px;
  animation: fadeInUp 0.6s ease both;
}

.ti-section:nth-child(3) { animation-delay: 0.2s; }
.ti-section:nth-child(4) { animation-delay: 0.4s; }

.ti-section__header {
  margin-bottom: 28px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
}

.ti-section__header::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--ti-border), transparent);
}

.ti-section__title {
  font-family: var(--ti-font);
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  color: #fff !important;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  white-space: nowrap;
  letter-spacing: 1.5px;
}

.ti-section__accent {
  width: 3px;
  height: 22px;
  background: var(--ti-accent);
  border-radius: 2px;
  display: inline-block;
  box-shadow: 0 0 10px var(--ti-accent-glow);
}

/* ---- ARTICLE GRID ---- */
.ti-grid { display: grid; gap: 20px; }
.ti-grid--3 { grid-template-columns: repeat(3, 1fr); }

/* ---- ARTICLE CARDS ---- */
.ti-card {
  background: var(--ti-surface);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--ti-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  animation: fadeInUp 0.5s ease both;
}

.ti-card:nth-child(1) { animation-delay: 0.05s; }
.ti-card:nth-child(2) { animation-delay: 0.10s; }
.ti-card:nth-child(3) { animation-delay: 0.15s; }
.ti-card:nth-child(4) { animation-delay: 0.20s; }
.ti-card:nth-child(5) { animation-delay: 0.25s; }
.ti-card:nth-child(6) { animation-delay: 0.30s; }

.ti-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.5), 0 0 30px var(--ti-accent-glow);
  border-color: rgba(159,54,123,0.3);
}

.ti-card__link {
  display: flex;
  flex-direction: column;
  text-decoration: none !important;
  color: inherit;
  height: 100%;
}

.ti-card__img {
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
  background: var(--ti-surface-2);
}

.ti-card__img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 60%, rgba(0,0,0,0.2));
  pointer-events: none;
}

.ti-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.ti-card:hover .ti-card__img img {
  transform: scale(1.08);
}

/* Fallback for cards without images */
.ti-card__link:not(:has(.ti-card__img)) .ti-card__body,
.ti-card__body:first-child {
  padding-top: 24px;
}

.ti-card__body {
  padding: 18px 20px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ti-card__title {
  color: #fff !important;
  font-family: var(--ti-font);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.35;
  margin: 10px 0 10px;
  transition: color 0.2s;
}

.ti-card:hover .ti-card__title {
  color: var(--ti-accent-hover) !important;
}

.ti-card__excerpt {
  color: var(--ti-text-muted);
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 auto;
  padding-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ti-card__meta {
  display: flex;
  gap: 6px;
  align-items: center;
  color: #555;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-top: 1px solid var(--ti-border);
  padding-top: 12px;
  margin-top: auto;
}

/* ============================================
   SINGLE POST
   ============================================ */
.single .entry-title, .single h1 {
  color: #fff !important;
  font-family: var(--ti-font);
  font-weight: 800;
  font-size: 36px;
  line-height: 1.15;
}

.single .entry-content, .single .entry-content p {
  color: var(--ti-text) !important;
  font-size: 17px;
  line-height: 1.8;
}

.single .entry-content h2 {
  color: #fff !important;
  font-family: var(--ti-font);
  font-weight: 700;
  font-size: 24px;
  margin-top: 2.2em;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ti-accent);
}

.single .entry-content h3 {
  color: #fff !important;
  font-family: var(--ti-font);
  font-weight: 700;
  font-size: 20px;
}

.single .entry-content a { color: var(--ti-cyan); }
.single .entry-content a:hover { color: #fff; }

.single .entry-content blockquote {
  border-left: 3px solid var(--ti-accent);
  background: var(--ti-surface-2);
  padding: 20px 24px;
  margin: 2em 0;
  border-radius: 0 6px 6px 0;
  color: var(--ti-text);
  font-style: italic;
}

.single .entry-content code, .single .entry-content pre {
  background: var(--ti-surface-3);
  color: var(--ti-cyan);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 14px;
}

.single .entry-content pre {
  padding: 20px;
  overflow-x: auto;
  border: 1px solid var(--ti-border);
}

/* Page content styles (About, Terms, etc.) */
.page .entry-content h2 {
  color: #fff !important;
  font-family: var(--ti-font);
  font-weight: 700;
  font-size: 28px;
  margin-top: 1.5em;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ti-accent);
}

.page .entry-content h3,
.page .entry-content h4 {
  color: #fff !important;
  font-family: var(--ti-font);
  font-weight: 700;
}

.page .entry-content p {
  color: var(--ti-text) !important;
  font-size: 16px;
  line-height: 1.8;
}

.page .entry-content a { color: var(--ti-cyan); }
.page .entry-content a:hover { color: #fff; }

.page .entry-content ul {
  color: var(--ti-text);
}

.page .entry-content strong {
  color: #fff;
}

.page .wp-block-separator {
  border-color: var(--ti-border) !important;
  opacity: 0.5;
}

.single .entry-meta, .single .entry-meta a,
.single .entry-meta span {
  color: var(--ti-text-muted) !important;
  font-size: 13px;
}

.single .ct-category, .entry-card .ct-category,
article .ct-category {
  background: var(--ti-accent) !important;
  color: #fff !important;
  font-family: var(--ti-font);
  font-weight: 700;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 3px;
}

/* Hero section on single post */
[data-hero-section*="type-2"] .entry-hero {
  min-height: 400px !important;
}

.hero-section, [data-hero-section], .entry-hero {
  background: var(--ti-bg) !important;
}

/* Entry content text */
.entry-content p, .entry-content li,
.entry-content td, .entry-content th {
  color: var(--ti-text) !important;
}

.entry-content th {
  color: #fff !important;
  background: var(--ti-surface-2) !important;
}

.entry-content td, .entry-content table {
  border-color: var(--ti-border) !important;
}

/* ---- POST META BAR ---- */
.ti-post-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px 20px;
  background: var(--ti-surface);
  border: 1px solid var(--ti-border);
  border-radius: 10px;
  margin-bottom: 28px;
  animation: fadeInUp 0.5s ease;
}

.ti-post-meta-bar__item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ti-text-muted);
  font-size: 13px;
  font-family: var(--ti-font);
  font-weight: 500;
}

.ti-post-meta-bar__item svg {
  color: var(--ti-accent);
  flex-shrink: 0;
}

.ti-post-meta-bar__item:first-child {
  color: #fff;
  font-weight: 700;
}

/* ============================================
   SIDEBAR + WIDGETS
   ============================================ */
.ct-sidebar, aside { background: transparent !important; }

.ct-sidebar .ct-widget, aside .widget {
  background: var(--ti-surface) !important;
  border: 1px solid var(--ti-border);
  border-radius: 8px;
  padding: 22px;
  color: var(--ti-text);
}

.ct-sidebar .widget-title, aside .widget-title {
  color: #fff !important;
  font-family: var(--ti-font);
  font-weight: 800;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 2px solid var(--ti-accent);
  padding-bottom: 10px;
  margin-bottom: 16px;
}

.ct-sidebar a, aside a { color: var(--ti-text) !important; }
.ct-sidebar a:hover, aside a:hover { color: var(--ti-accent) !important; }

/* Newsletter */
.ct-newsletter-subscribe-container {
  background: var(--ti-surface) !important;
  border: 1px solid var(--ti-border) !important;
  border-radius: 10px !important;
  color: var(--ti-text) !important;
}

.ct-newsletter-subscribe-container h3 { color: #fff !important; }
.ct-newsletter-subscribe-container p { color: var(--ti-text-muted) !important; }

.ct-newsletter-subscribe-form input[type="email"],
.ct-newsletter-subscribe-form input[type="text"] {
  background: var(--ti-surface-2) !important;
  border: 1px solid var(--ti-border) !important;
  color: #fff !important;
  border-radius: 6px !important;
}

.ct-newsletter-subscribe-form button {
  background: var(--ti-accent) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 6px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
}

/* Related posts */
.ct-related-posts,
[data-prefix="single_blog_post"] .ct-related-posts { background: var(--ti-bg) !important; }
.ct-related-posts .ct-section-title, .ct-related-posts h2 { color: #fff !important; }

.ct-related-posts .entry-card, .ct-related-posts article {
  background: var(--ti-surface) !important;
  border: 1px solid var(--ti-border) !important;
  border-radius: 8px !important;
}

.ct-related-posts .entry-card .entry-title a { color: #fff !important; }
.ct-related-posts .entry-card .entry-meta, .ct-related-posts .entry-card .entry-meta * { color: var(--ti-text-muted) !important; }

/* Author box */
.ct-author-box {
  background: var(--ti-surface) !important;
  border: 1px solid var(--ti-border) !important;
  border-radius: 10px !important;
}
.ct-author-box .author-box-name a { color: #fff !important; }
.ct-author-box .author-box-content p { color: var(--ti-text-muted) !important; }

/* Post navigation */
.post-navigation, .ct-post-navigation { border-color: var(--ti-border) !important; }
.post-navigation a, .ct-post-navigation a { color: var(--ti-text) !important; }
.post-navigation a:hover, .ct-post-navigation a:hover { color: var(--ti-accent) !important; }

/* Share box */
.ct-share-box { border-color: var(--ti-border) !important; }

/* ============================================
   SEARCH
   ============================================ */
.ct-search-form input, .search-form input {
  background: var(--ti-surface) !important;
  color: #fff !important;
  border: 1px solid var(--ti-border);
  border-radius: 6px;
}

/* Search toggle in nav */
.ti-search-toggle-wrap {
  list-style: none !important;
  display: flex;
  align-items: center;
  margin-left: 12px !important;
}

.ti-search-toggle {
  background: none;
  border: 1px solid var(--ti-border);
  border-radius: 8px;
  padding: 6px 10px;
  color: #999;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  font-family: var(--ti-font);
  font-size: 12px;
}

.ti-search-toggle:hover {
  color: #fff;
  border-color: var(--ti-accent);
  box-shadow: 0 0 12px var(--ti-accent-glow);
}

/* Search overlay */
.ti-search-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(13,13,13,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.ti-search-overlay--open { opacity: 1; }

.ti-search-overlay__inner {
  width: 90%;
  max-width: 640px;
  position: relative;
}

.ti-search-overlay__close {
  position: absolute;
  top: -48px;
  right: 0;
  background: none;
  border: none;
  color: #666;
  font-size: 32px;
  cursor: pointer;
  transition: color 0.2s;
  line-height: 1;
}
.ti-search-overlay__close:hover { color: #fff; }

.ti-search-form__input {
  width: 100%;
  background: var(--ti-surface) !important;
  border: 2px solid var(--ti-border) !important;
  border-radius: 12px;
  padding: 18px 24px;
  font-size: 22px;
  font-family: var(--ti-font);
  font-weight: 500;
  color: #fff !important;
  outline: none;
  transition: border-color 0.3s;
}

.ti-search-form__input:focus {
  border-color: var(--ti-accent) !important;
  box-shadow: 0 0 30px var(--ti-accent-glow);
}

.ti-search-form__input::placeholder { color: #555; }

.ti-search-results {
  margin-top: 12px;
  max-height: 50vh;
  overflow-y: auto;
}

.ti-search-result {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--ti-surface);
  border: 1px solid var(--ti-border);
  border-radius: 10px;
  margin-bottom: 6px;
  text-decoration: none !important;
  transition: all 0.2s;
}

.ti-search-result:hover {
  background: var(--ti-surface-2);
  border-color: var(--ti-accent);
  transform: translateX(4px);
}

.ti-search-result__thumb {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.ti-search-result__title {
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 4px;
}

.ti-search-result__meta {
  display: flex;
  gap: 10px;
  font-size: 12px;
  color: #666;
}

.ti-search-result__cat {
  color: var(--ti-accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 10px;
}

.ti-search-noresult {
  padding: 24px;
  text-align: center;
  color: #555;
  font-size: 15px;
}

/* ============================================
   FOOTER
   ============================================ */
footer, .ct-footer, [data-row="bottom"] {
  background: var(--ti-bg) !important;
  border-top: none !important;
  color: #555;
}

/* Hide Blocksy built-in footer (using custom ti-footer instead) */footer.ct-footer { display: none !important; }

.ti-footer {
  background: var(--ti-surface);
  border-top: 3px solid var(--ti-accent);
  padding: 56px 0 0;
  margin-top: 0;
  font-family: var(--ti-font);
}

.ti-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}

.ti-footer__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.ti-footer__logo img {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 0 8px rgba(0,212,255,0.4));
}

.ti-footer__logo-text {
  font-family: var(--ti-font);
  font-weight: 900;
  font-size: 22px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #fff;
}

.ti-footer__title {
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 0 0 18px;
}

.ti-footer__text {
  color: #777;
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 16px;
}

.ti-footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ti-footer__links li { margin-bottom: 10px; }

.ti-footer__links a {
  color: #999 !important;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s;
}

.ti-footer__links a:hover { color: #fff !important; }

.ti-footer__address {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  color: #666;
  font-size: 13px;
}

.ti-footer__address svg { flex-shrink: 0; }

/* Footer bottom bar */
.ti-footer__bottom {
  max-width: 1200px;
  margin: 48px auto 0;
  padding: 20px 24px;
  border-top: 1px solid var(--ti-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #555;
  font-size: 12px;
}

.ti-footer__copyright {
  color: #555;
}

.ti-footer__bottom-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Language links */
.ti-footer__lang-links {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--ti-surface-2);
  border: 1px solid var(--ti-border);
  border-radius: 6px;
  overflow: hidden;
}

.ti-footer__lang-links a {
  padding: 6px 12px;
  color: #888 !important;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: all 0.2s;
}

.ti-footer__lang-links a:hover {
  color: #fff !important;
  background: var(--ti-surface-3);
}

.ti-footer__lang-links a.active {
  color: #fff !important;
  background: var(--ti-accent);
}

/* Social icons */
.ti-footer__social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: #666 !important;
  transition: color 0.2s;
}

.ti-footer__social:hover {
  color: #fff !important;
}

/* ============================================
   PAGINATION
   ============================================ */
.ct-pagination a, nav.pagination a {
  background: var(--ti-surface) !important;
  color: #fff !important;
  border: 1px solid var(--ti-border);
  border-radius: 6px;
  transition: all 0.2s;
}

.ct-pagination a:hover {
  background: var(--ti-accent) !important;
  border-color: var(--ti-accent);
}

.ct-pagination .current, nav.pagination .current {
  background: var(--ti-accent) !important;
  color: #fff !important;
  border-color: var(--ti-accent);
}

/* ============================================
   BREADCRUMBS
   ============================================ */
.ct-breadcrumbs, .ct-breadcrumbs a {
  color: var(--ti-text-muted) !important;
  font-size: 12px;
}

/* ============================================
   COMMENTS
   ============================================ */
.ct-comments-container, #comments {
  background: var(--ti-surface) !important;
  border-radius: 8px;
  padding: 24px;
  border: 1px solid var(--ti-border);
}

#comments .comment-author { color: #fff !important; }
#comments .comment-content p { color: var(--ti-text) !important; }

/* ============================================
   MOBILE MENU
   ============================================ */
.ct-panel.ct-header .ct-panel-content,
.ct-drawer-canvas .ct-panel {
  background: var(--ti-bg) !important;
}

.ct-panel .mobile-menu a {
  color: #fff !important;
  font-family: var(--ti-font);
}

/* ============================================
   ARCHIVE/CATEGORY PAGES
   ============================================ */
.archive .page-title, .search .page-title, .ct-archive-title {
  color: #fff !important;
  font-family: var(--ti-font) !important;
}

.archive .page-description, .search .page-description {
  color: var(--ti-text-muted) !important;
}

.entries > article, .ct-archive-list article {
  background: var(--ti-surface) !important;
  border: 1px solid var(--ti-border) !important;
  border-radius: 8px !important;
  margin-bottom: 20px;
}

.entries > article .entry-title a { color: #fff !important; font-family: var(--ti-font) !important; }
.entries > article .entry-excerpt p { color: var(--ti-text-muted) !important; }
.entries > article .entry-meta, .entries > article .entry-meta * { color: #666 !important; }

/* Hide Blocksy default blog output if it leaks through */
.home .site-main > .ct-container { display: none !important; }

/* ============================================
   INDUSTRY NEWS RSS FEED
   ============================================ */
.ti-rss-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.ti-rss-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  background: var(--ti-surface);
  border: 1px solid var(--ti-border);
  border-radius: 10px;
  text-decoration: none !important;
  transition: all 0.3s;
  border-left: 3px solid transparent;
}

.ti-rss-item:hover {
  border-left-color: var(--ti-cyan);
  background: var(--ti-surface-2);
  transform: translateX(4px);
}

.ti-rss-item__source {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ti-cyan);
}

.ti-rss-item__title {
  color: #fff;
  font-family: var(--ti-font);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ti-rss-item:hover .ti-rss-item__title {
  color: var(--ti-cyan);
}

.ti-rss-item__date {
  font-size: 11px;
  color: #555;
  margin-top: auto;
}

@media (max-width: 999px) {
  .ti-rss-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 599px) {
  .ti-rss-grid { grid-template-columns: 1fr; }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 999px) {
  .ti-hero { grid-template-columns: 1fr; }
  .ti-hero__main { min-height: 350px; }
  .ti-hero__sidebar { flex-direction: row; }
  .ti-hero__side-card { min-height: 200px; }
  .ti-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .single .entry-title, .single h1 { font-size: 28px; }
}

@media (max-width: 768px) {
  .ti-footer__inner {
    grid-template-columns: 1fr 1fr !important;
    gap: 28px;
  }
  .ti-footer__bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .ti-footer__bottom-right {
    justify-content: center;
  }
}

@media (max-width: 599px) {
  .ti-hero__title { font-size: 24px; }
  .ti-hero__sidebar { flex-direction: column; }
  .ti-grid--3 { grid-template-columns: 1fr; }
  .ti-magazine { padding: 16px 12px 40px; }
  .single .entry-title, .single h1 { font-size: 22px; }

  .ti-ticker__label { padding: 10px 14px; font-size: 10px; }
  .ti-ticker__item { padding: 10px 18px; font-size: 12px; }

  .ti-post-meta-bar { gap: 10px; padding: 12px 14px; }
  .ti-post-meta-bar__item { font-size: 12px; }

  .ti-card__excerpt {
    -webkit-line-clamp: 2;
  }

  .ti-footer__inner {
    grid-template-columns: 1fr !important;
    gap: 24px;
  }

  .ti-footer__logo-text {
    font-size: 18px;
  }

  /* Compact header on mobile */
  .ct-header .site-title,
  .ct-header .site-title a {
    font-size: 16px !important;
    letter-spacing: 2px !important;
  }

  .ct-header .site-logo-container img {
    max-height: 24px !important;
    width: 24px !important;
    height: 24px !important;
  }
}

/* ============================================
   AUTHOR CARD (bottom of single posts)
   ============================================ */
.ti-author-card {
  display: flex;
  gap: 20px;
  padding: 28px;
  background: var(--ti-surface);
  border: 1px solid var(--ti-border);
  border-radius: 12px;
  margin: 48px 0 32px;
  transition: border-color 0.3s;
}

.ti-author-card:hover {
  border-color: rgba(159,54,123,0.3);
}

.ti-author-card__avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--ti-surface-3);
  flex-shrink: 0;
}

.ti-author-card__info {
  flex: 1;
  min-width: 0;
}

.ti-author-card__name {
  font-family: var(--ti-font);
  font-weight: 800;
  font-size: 18px;
  color: #fff;
  margin: 0 0 2px;
}

.ti-author-card__name a {
  color: #fff !important;
  text-decoration: none;
}

.ti-author-card__name a:hover {
  color: var(--ti-accent) !important;
}

.ti-author-card__role {
  font-size: 13px;
  color: var(--ti-accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.ti-author-card__bio {
  color: var(--ti-text-muted);
  font-size: 14px;
  line-height: 1.65;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ti-author-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  color: var(--ti-accent) !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s, gap 0.2s;
}

.ti-author-card__link:hover {
  color: #fff !important;
  gap: 10px;
}

@media (max-width: 599px) {
  .ti-author-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
  }
  .ti-author-card__avatar {
    width: 64px;
    height: 64px;
  }
}

/* ============================================
   AUTHOR ARCHIVE PAGE
   ============================================ */
.ti-author-page {
  max-width: var(--ti-max-width);
  margin: 0 auto;
  padding: 0 20px 80px;
}

.ti-author-hero {
  padding: 48px 0 40px;
  border-bottom: 1px solid var(--ti-border);
  margin-bottom: 48px;
}

.ti-author-hero__inner {
  max-width: 800px;
}

.ti-author-hero__main {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 20px;
}

.ti-author-hero__avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--ti-surface-3);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.ti-author-hero__name {
  font-family: var(--ti-font);
  font-weight: 900;
  font-size: 36px;
  color: #fff !important;
  margin: 0 0 4px;
  line-height: 1.1;
}

.ti-author-hero__role {
  font-size: 14px;
  color: var(--ti-accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.ti-author-hero__stats {
  display: flex;
  gap: 20px;
  color: var(--ti-text-muted);
  font-size: 13px;
}

.ti-author-hero__stats span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.ti-author-hero__stats svg {
  color: var(--ti-accent);
}

.ti-author-hero__bio {
  color: var(--ti-text-muted);
  font-size: 15px;
  line-height: 1.75;
  margin: 0 0 16px;
}

.ti-author-hero__tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ti-author-tag {
  display: inline-block;
  background: var(--ti-surface-2);
  color: var(--ti-text-muted);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid var(--ti-border);
}

.ti-author-content {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
}

.ti-author-section-title {
  font-family: var(--ti-font);
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  color: #fff !important;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 28px;
  letter-spacing: 1.5px;
}

.ti-author-pagination {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.ti-author-pagination a,
.ti-author-pagination span {
  padding: 8px 14px;
  background: var(--ti-surface);
  border: 1px solid var(--ti-border);
  border-radius: 6px;
  color: #fff;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s;
}

.ti-author-pagination a:hover {
  background: var(--ti-accent);
  border-color: var(--ti-accent);
}

.ti-author-pagination .current {
  background: var(--ti-accent);
  border-color: var(--ti-accent);
}

/* Author sidebar */
.ti-author-sidebar__title {
  font-family: var(--ti-font);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ti-accent);
  margin: 0 0 20px;
}

.ti-author-sidebar__card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--ti-surface);
  border: 1px solid var(--ti-border);
  border-radius: 10px;
  margin-bottom: 10px;
  text-decoration: none !important;
  transition: all 0.2s;
}

.ti-author-sidebar__card:hover {
  border-color: var(--ti-accent);
  background: var(--ti-surface-2);
}

.ti-author-sidebar__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.ti-author-sidebar__name {
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}

.ti-author-sidebar__role {
  color: var(--ti-text-muted);
  font-size: 12px;
}

@media (max-width: 999px) {
  .ti-author-content {
    grid-template-columns: 1fr;
  }
  .ti-author-sidebar {
    order: -1;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
  }
  .ti-author-sidebar__card {
    flex: 1;
    min-width: 200px;
  }
}

@media (max-width: 599px) {
  .ti-author-hero__main {
    flex-direction: column;
    text-align: center;
  }
  .ti-author-hero__avatar {
    width: 90px;
    height: 90px;
  }
  .ti-author-hero__name {
    font-size: 28px;
  }
  .ti-author-hero__stats {
    justify-content: center;
  }
  .ti-author-hero__tags {
    justify-content: center;
  }
}

/* ============================================
   ABOUT PAGE - COVERS GRID
   ============================================ */
.ti-about-covers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 24px 0 8px;
}

.ti-about-cover {
  background: var(--ti-surface);
  border: 1px solid var(--ti-border);
  border-radius: 12px;
  padding: 24px 16px;
  text-align: center;
  transition: border-color 0.3s, transform 0.3s;
}

.ti-about-cover:hover {
  border-color: rgba(159,54,123,0.4);
  transform: translateY(-2px);
}

.ti-about-cover__icon {
  font-size: 32px;
  margin-bottom: 10px;
}

.ti-about-cover__title {
  color: #fff !important;
  font-family: var(--ti-font);
  font-weight: 700;
  font-size: 14px;
  margin: 0 0 8px;
}

.ti-about-cover__desc {
  color: var(--ti-text-muted);
  font-size: 12px;
  line-height: 1.5;
  margin: 0;
}

/* ============================================
   ABOUT PAGE - TEAM CARDS
   ============================================ */
.ti-about-team {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 32px 0;
}

.ti-about-team__card {
  display: flex;
  gap: 20px;
  padding: 28px;
  background: var(--ti-surface);
  border: 1px solid var(--ti-border);
  border-radius: 12px;
  transition: border-color 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.ti-about-team__card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ti-accent), #c44299, var(--ti-cyan));
  opacity: 0;
  transition: opacity 0.3s;
}

.ti-about-team__card:hover {
  border-color: rgba(159,54,123,0.3);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.ti-about-team__card:hover::before {
  opacity: 1;
}

.ti-about-team__photo-wrap {
  position: relative;
  flex-shrink: 0;
}

.ti-about-team__avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--ti-border);
  position: relative;
  z-index: 1;
}

.ti-about-team__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(159,54,123,0.15), transparent 70%);
  z-index: 0;
}

.ti-about-team__card:hover .ti-about-team__avatar {
  border-color: rgba(159,54,123,0.5);
}

.ti-about-team__text {
  flex: 1;
  min-width: 0;
}

.ti-about-team__name {
  color: #fff;
  font-family: var(--ti-font);
  font-weight: 700;
  font-size: 18px;
  margin: 0 0 4px;
  text-decoration: none;
  display: block;
  transition: color 0.2s;
}

a.ti-about-team__name:hover {
  color: var(--ti-cyan);
}

.ti-about-team__role {
  color: var(--ti-accent);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.ti-about-team__bio {
  color: var(--ti-text-muted);
  font-size: 13px;
  line-height: 1.7;
  margin: 0;
}

/* ============================================
   ABOUT PAGE - STATS
   ============================================ */
.ti-about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 24px 0;
}

.ti-about-stat {
  text-align: center;
  padding: 28px 16px;
  background: var(--ti-surface);
  border: 1px solid var(--ti-border);
  border-radius: 12px;
  transition: border-color 0.3s;
}

.ti-about-stat:hover {
  border-color: rgba(0,212,255,0.3);
}

.ti-about-stat__number {
  color: var(--ti-cyan);
  font-family: var(--ti-font);
  font-weight: 800;
  font-size: 42px;
  line-height: 1;
  margin-bottom: 8px;
}

.ti-about-stat__label {
  color: var(--ti-text-muted);
  font-size: 14px;
  font-weight: 500;
}

/* ============================================
   ABOUT PAGE - RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .ti-about-covers {
    grid-template-columns: repeat(2, 1fr);
  }
  .ti-about-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .ti-about-team {
    grid-template-columns: 1fr;
  }
  .ti-about-team__card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .ti-about-covers {
    grid-template-columns: repeat(2, 1fr);
  }
  .ti-about-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .ti-about-covers {
    grid-template-columns: 1fr;
  }
  .ti-about-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .ti-about-stat__number {
    font-size: 32px;
  }
}

/* Fix sidebar card text overlay */
.ti-hero__side-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  z-index: 2;
}
.ti-hero__side-info h3 {
  font-size: 14px !important;
  font-weight: 700;
  color: #fff !important;
  margin: 6px 0 4px;
  line-height: 1.3;
}
.ti-hero__side-date {
  font-size: 12px;
  color: #a0aec0;
}
.ti-hero__side-info .ti-badge--sm {
  font-size: 10px;
  padding: 2px 6px;
  background: #00c853;
  color: #0f1923;
  border-radius: 3px;
  font-weight: 700;
  text-transform: uppercase;
}
