.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
 
body.contesimal-insights-blog {
  margin: 0;
  background: #0f0316;
  min-height: 100vh;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
}

.insights-root {
  background: #0f0316;
  min-height: 100vh;
}

.insights-hero {
  padding: 80px 24px 60px;
  background: linear-gradient(180deg, rgba(103, 60, 193, 0.18) 0%, transparent 100%);
  border-bottom: 1px solid rgba(103, 60, 193, 0.15);
  text-align: center;
}

.insights-hero-badge {
  display: inline-block;
  padding: 5px 16px;
  border-radius: 99px;
  background: rgba(255, 50, 93, 0.12);
  border: 1px solid rgba(255, 50, 93, 0.25);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ff325d;
  margin-bottom: 20px;
}

.insights-hero h1 {
  font-weight: 800;
  font-size: clamp(24px, 4vw, 48px);
  letter-spacing: -1.5px;
  color: #fff;
  margin: 0 0 16px;
  line-height: 1.1;
}

.insights-hero p {
  font-size: 18px;
  color: rgba(237, 228, 255, 0.6); 
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Shared content column (same width as Replit: 1200px + 24px gutters) */
.insights-layout-shell {
  box-sizing: border-box;
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.insights-filter-shell {
  padding-top: 32px;
  padding-bottom: 0;
}

/* Cards block: same outer shell as filters, Replit uses padding 40px 24px */
.insights-grid-shell {
  padding-top: 40px;
  padding-bottom: 40px;
}

.insights-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 20px 24px;
  border-radius: 16px;
  background: rgba(103, 60, 193, 0.06);
  border: 1px solid rgba(103, 60, 193, 0.15);
  box-sizing: border-box;
}

.insights-filter-bar,
.insights-filter-bar * {
  box-sizing: border-box;
}

.insights-search-label {
  display: block;
  width: 100%;
}

.insights-search-wrap {
  position: relative;
  flex: 1 1 200px;
  min-width: 0;
  max-width: 100%;
}

.insights-search-wrap svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(237, 228, 255, 0.35);
  pointer-events: none;
}

.insights-search-wrap input[type="search"] {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 10px 12px 10px 36px;
  border-radius: 10px;
  background: rgba(103, 60, 193, 0.08);
  border: 1px solid rgba(103, 60, 193, 0.25);
  color: #ede4ff;
  font-size: 14px;
  line-height: 1.35;
  outline: none;
  font-family: inherit;
  -webkit-appearance: none;
  appearance: none;
}

.insights-search-wrap input[type="search"]::-webkit-search-decoration,
.insights-search-wrap input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.insights-search-wrap input[type="search"]::placeholder {
  color: rgba(237, 228, 255, 0.35);
  opacity: 1;
}

.insights-search-wrap input[type="search"]:focus-visible {
  border-color: rgba(103, 60, 193, 0.55);
  box-shadow: 0 0 0 2px rgba(103, 60, 193, 0.2);
}

.insights-select-wrap {
  position: relative;
  flex: 0 1 auto;
  max-width: 100%;
}

/* Without JS: styled native <select>. With JS: hidden, custom UI below. */
.insights-dd-ui {
  display: none;
}

.insights-dd--enhanced .insights-dd-ui {
  display: block;
}

.insights-dd--enhanced select.insights-dd-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0);
  border: 0 !important;
}

.insights-select-wrap select.insights-dd-native {
  display: block;
  width: auto;
  min-width: min(100%, 9rem);
  max-width: 100%;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  padding: 10px 36px 10px 16px;
  border-radius: 10px;
  background-color: rgba(103, 60, 193, 0.08);
  border: 1px solid rgba(103, 60, 193, 0.3);
  color: #ede4ff;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='rgba(237,228,255,0.5)' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.insights-select-wrap select.insights-dd-native:focus-visible {
  border-color: rgba(103, 60, 193, 0.55);
  box-shadow: 0 0 0 2px rgba(103, 60, 193, 0.2);
  outline: none;
}

.insights-select-wrap select.insights-dd-native.insights-select--default {
  color: rgba(237, 228, 255, 0.5);
}

.insights-select-wrap select.insights-dd-native option {
  background: #12041f;
  color: #ede4ff;
}

/* Replit-style custom dropdown (when .insights-dd--enhanced) */
.insights-dd-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  background: rgba(103, 60, 193, 0.08);
  border: 1px solid rgba(103, 60, 193, 0.3);
  color: #ede4ff;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}

.insights-dd-toggle--default {
  color: rgba(237, 228, 255, 0.5);
}

.insights-dd-chevron {
  flex-shrink: 0;
  opacity: 0.6;
  transition: transform 0.15s;
}

.insights-dd--open .insights-dd-chevron {
  transform: rotate(180deg);
}

.insights-dd-toggle:focus-visible {
  outline: 2px solid rgba(103, 60, 193, 0.55);
  background: rgba(103, 60, 193, 0.12);
  outline-offset: 2px;
}

.insights-dd-toggle:hover,
.insights-dd-toggle:focus,
.insights-dd-toggle:focus-visible {
  background: rgba(103, 60, 193, 0.12);
}

.insights-dd-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 40;
  margin: 0;
  background: rgba(18, 4, 40, 0.98);
  border: 1px solid rgba(103, 60, 193, 0.3);
  border-radius: 12px;
  padding: 8px;
  min-width: 180px;
  max-width: min(100vw - 48px, 320px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  box-sizing: border-box;
}

.insights-dd-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 9px 14px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: rgba(237, 228, 255, 0.65);
  font-size: 14px;
  line-height: 1.35;
  cursor: pointer;
  font-family: inherit;
  margin: 0;
}

.insights-dd-option[aria-selected="true"] {
  background: rgba(103, 60, 193, 0.2);
  color: #ede4ff;
}

.insights-dd-option:hover,
.insights-dd-option:focus-visible {
  color: #ede4ff;
  outline: none;
  background: rgba(103, 60, 193, 0.2);
}

.insights-dd-option:focus-visible {
  background: rgba(103, 60, 193, 0.12);
}

.insights-btn-clear {
  flex: 0 0 auto;
  width: auto;
  max-width: 100%;
  margin: 0;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 50, 93, 0.3);
  background: transparent;
  color: #ff325d;
  font-size: 13px;
  line-height: 1.35;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.insights-btn-clear:focus-visible {
  outline: 2px solid rgba(255, 50, 93, 0.45);
  outline-offset: 2px;
}

.insights-btn-clear:hover {
  background: rgba(255, 50, 93, 0.45);
  color: #fff !important;
}

.insights-count {
  flex: 0 0 auto;
  margin-left: auto;
  font-size: 13px;
  line-height: 1.35;
  color: rgba(237, 228, 255, 0.4);
  white-space: nowrap;
}

.insights-results--loading {
  opacity: 0.45;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.insights-grid-inner {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

.insights-card {
  border-radius: 18px;
  overflow: hidden;
  background: rgba(26, 11, 38, 0.7);
  border: 1px solid rgba(64, 39, 116, 0.4);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.insights-card:hover {
  background: rgba(26, 11, 38, 1);
  border-color: rgba(103, 60, 193, 0.5);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(103, 60, 193, 0.15);
}

.insights-card-media {
  height: 180px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(103, 60, 193, 0.3) 0%, rgba(15, 3, 22, 0.8) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.insights-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.insights-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(103, 60, 193, 0.25), rgba(255, 50, 93, 0.1));
  pointer-events: none;
}

.insights-card-media span {
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(237, 228, 255, 0.3);
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 20px;
}

.insights-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.insights-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cat-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(103, 60, 193, 0.15);
  color: #a855f7;
  border: 1px solid rgba(103, 60, 193, 0.28);
}

.cat-badge--content-strategy {
  background: rgba(103, 60, 193, 0.13);
  color: #673cc1;
  border-color: rgba(103, 60, 193, 0.28);
}

.cat-badge--ai-technology {
  background: rgba(255, 50, 93, 0.12);
  color: #ff325d;
  border-color: rgba(255, 50, 93, 0.28);
}

.cat-badge--monetization {
  background: rgba(168, 85, 247, 0.13);
  color: #a855f7;
  border-color: rgba(168, 85, 247, 0.28);
}

.cat-badge--publishing {
  background: rgba(59, 130, 246, 0.13);
  color: #3b82f6;
  border-color: rgba(59, 130, 246, 0.28);
}

.cat-badge--social-media {
  background: rgba(16, 185, 129, 0.13);
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.28);
}

.insights-readtime {
  font-size: 12px;
  color: rgba(237, 228, 255, 0.35);
}

.insights-card-title {
  font-weight: 700;
  font-size: 18px;
  line-height: 1.35;
  color: rgba(237, 228, 255, 0.9);
  margin: 0;
  transition: color 0.15s;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.insights-card:hover .insights-card-title {
  color: #fff;
}

.insights-card-title a,
.insights-card-title a:hover {
  color: inherit !important;
  text-decoration: none;
}

.insights-card-excerpt {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(237, 228, 255, 0.5);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.insights-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(103, 60, 193, 0.15);
}

.insights-card-date {
  font-size: 12px;
  color: rgba(237, 228, 255, 0.35);
}

.insights-card-link {
  font-size: 13px;
  font-weight: 600;
  color: #a855f7 !important;
  text-decoration: none;
  transition: color 0.15s;
}

.insights-card:hover .insights-card-link {
  color: #ff325d !important;
}

.insights-empty {
  text-align: center;
  padding: 80px 0;
  color: rgba(237, 228, 255, 0.4);
}

.insights-empty p {
  font-size: 18px;
  margin: 0;
}

.insights-pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 60px;
}

.insights-pagination a,
.insights-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 18px;
  border-radius: 10px;
  border: 1px solid rgba(103, 60, 193, 0.3);
  background: transparent;
  color: rgba(237, 228, 255, 0.5);
  font-size: 14px;
  font-family: inherit;
  text-decoration: none;
  box-sizing: border-box;
}

.insights-pagination a:hover {
  color: #ede4ff;
}

.insights-pagination .current {
  background: rgba(103, 60, 193, 0.3);
  color: #ede4ff;
  font-weight: 700;
}

.insights-cta {
  border-top: 1px solid rgba(103, 60, 193, 0.15);
  padding: 80px 24px;
  text-align: center;
}

.insights-cta h2 {
  font-weight: 800;
  font-size: clamp(24px, 4vw, 40px);
  color: #fff;
  margin: 0 0 16px;
  letter-spacing: -1px;
}

.insights-cta p {
  color: rgba(237, 228, 255, 0.6);
  font-size: 17px;
  margin: 0 0 32px;
}

.insights-cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.insights-cta .btn-primary {
  height: 52px;
  padding: 0 36px;
  border-radius: 10px;
  background: #ff325d;
  color: #fff;
  border: none;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.insights-cta .btn-primary:hover {
  background: rgba(255, 50, 93, 0.45);
  color: #fff !important;
}

.insights-cta .btn-secondary {
  height: 52px;
  padding: 0 36px;
  border-radius: 10px;
  background: transparent;
  color: rgba(237, 228, 255, 0.8);
  border: 1px solid rgba(168, 85, 247, 0.35);
  font-weight: 500;
  font-size: 16px;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.insights-cta .btn-secondary:hover {
  background: rgba(168, 85, 247, 0.45);
  color: #fff !important;
}

