* {
    box-sizing: border-box;
}

:root {
    --bg: #f3f4f7;
    --surface: #ffffff;
    --surface-soft: #fafafb;
    --text: #181818;
    --text-soft: #5f6670;
    --text-faint: #7b828c;
    --border: #e3e6eb;
    --border-strong: #d2d8e0;
    --dark: #111111;
    --dark-2: #1c1c1c;
    --shadow-soft: 0 10px 30px rgba(0,0,0,0.05);
    --shadow-card: 0 14px 40px rgba(0,0,0,0.07);
    --shadow-hover: 0 18px 45px rgba(0,0,0,0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --accent: #0b57d0;
    --accent-soft: #eaf2ff;
    --success-bg: #edf8f0;
    --success-text: #1f6b37;
    --warn-bg: #fff7e8;
    --warn-text: #9a6700;
}

html, body {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background:
        radial-gradient(circle at top, #ffffff 0%, #f5f6f8 38%, #eef1f5 100%);
    color: var(--text);
    line-height: 1.7;
}

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

a {
    color: inherit;
}

::selection {
    background: #dfeaff;
    color: #111;
}

/* -----------------------------------------
   Header
----------------------------------------- */

.site-header {
    background: linear-gradient(180deg, #121212 0%, #0c0c0c 100%);
    color: #fff;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.site-header-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: nowrap;
}

.site-header-top-row {
    display: contents;
}

.site-logo {
    flex: 0 0 auto;
	margin-left: 20px
}

.site-logo a {
    color: #fff;
    text-decoration: none;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.site-menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 12px;
    background: rgba(255,255,255,0.06);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    margin-left: auto;
}

.site-menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 999px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-menu-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.site-menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.site-menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.site-search-form {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 1 400px;
    min-width: 300px;
    margin-left: 110px;
    margin-right: 0;
}

.site-search-form input[type="search"] {
    min-width: 0;
    max-width: 320px;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-size: 14px;
    outline: none;
}

.site-search-form input[type="search"]::placeholder {
    color: rgba(255,255,255,0.65);
}

.site-search-form input[type="search"]:focus {
    border-color: rgba(255,255,255,0.35);
    background: rgba(255,255,255,0.12);
}

.site-search-form button {
    padding: 10px 14px;
    border: none;
    border-radius: 999px;
    background: #fff;
    color: #111;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    white-space: nowrap;
}

.site-search-form button:hover {
    background: #ececec;
}

.site-nav {
    display: flex;
    gap: 12px;
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: center;
    margin-right: auto;
    flex: 1 1 auto;
}

.site-nav a {
    color: rgba(255,255,255,0.92);
    text-decoration: none;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 999px;
    white-space: nowrap;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.site-nav a:hover {
    text-decoration: none;
    background: rgba(255,255,255,0.10);
    color: #fff;
    transform: translateY(-1px);
}

/* -----------------------------------------
   Single Post Page
----------------------------------------- */

.post-page {
    padding: 22px 20px 25px;
}

.post-breadcrumb-card {
    max-width: 1200px;
    margin: 0 auto 18px;
    padding: 16px 22px;
    background: rgba(255,255,255,0.92);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.5;
}

.post-breadcrumb-card a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.18s ease;
}

.post-breadcrumb-card a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.post-breadcrumb-card span {
    color: #92989F;
}

.post-breadcrumb-card .breadcrumb-current {
    color: #92989F;
    font-weight: 400;
    word-break: break-word;
}

.post-container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255,255,255,0.96);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 38px;
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(8px);
}

.post-label {
    display: inline-block;
    padding: 7px 12px;
    background: linear-gradient(180deg, #161616 0%, #0f0f0f 100%);
    color: #fff;
    border-radius: 999px;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.post-title {
    margin: 0 0 16px;
    font-size: 42px;
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.post-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    color: var(--text-faint);
    font-size: 14px;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.post-featured-image {
    margin-bottom: 28px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.post-featured-image img {
    width: 100%;
    border-radius: var(--radius-lg);
}

.post-excerpt {
    font-size: 22px;
    line-height: 1.7;
    color: #353c45;
    margin-bottom: 26px;
    padding-left: 18px;
    border-left: 4px solid #d9dee6;
}

.post-body {
    font-size: 18px;
    line-height: 1.95;
    color: #23272d;
}

.post-body a,
.post-block-text-content a,
.post-bullet-list a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid rgba(11,87,208,0.25);
    transition: color 0.18s ease, border-color 0.18s ease;
}

.post-body a:hover,
.post-block-text-content a:hover,
.post-bullet-list a:hover {
    color: #084298;
    border-color: rgba(8,66,152,0.45);
}

.post-video-section {
    margin-top: 18px;
}

.post-video-embed {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    margin-bottom: 18px;
    background: #000;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.post-video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.post-youtube-link {
    margin-top: 0;
}

.post-youtube-link a {
    display: inline-block;
    padding: 12px 18px;
    background: linear-gradient(180deg, #171717 0%, #101010 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    font-weight: bold;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.post-youtube-link a:hover {
    background: #222;
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(0,0,0,0.14);
}

.post-blocks {
    margin-top: 20px;
}

.post-block {
    margin-top: 13px;
    padding-top: 10px;
}

.post-block-text-content {
    font-size: 18px;
    line-height: 1.9;
    color: #262b31;
}

.post-block-image-wrap {
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.post-block-image-wrap img {
    max-width:100%; 
	height:auto;
    border-radius: var(--radius-lg);
}

.post-block-caption {
    margin-top: 12px;
    font-size: 14px;
    color: var(--text-soft);
}

.post-block-credit {
    margin-top: 6px;
    font-size: 13px;
    color: var(--text-faint);
}

/* -----------------------------------------
   Link Block
----------------------------------------- */

.post-block-link {
    margin-top: 14px;
}

.post-link-block {
    padding: 14px 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.04);
}

.post-link-main {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 14px;
    width: 100%;
}

.post-link-title {
    display: inline-block;
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
    text-decoration: none;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.post-link-title:hover {
    text-decoration: underline;
}

.post-link-description {
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.45;
    flex: 0 1 auto;
    min-width: 0;
}

.post-link-url {
    color: #0b57d0;
    font-size: 14px;
    line-height: 1.45;
    text-decoration: underline;
    word-break: break-word;
    font-weight: 600;
    flex: 1 1 220px;
    min-width: 0;
}

.post-link-url:hover {
    color: #084298;
}

.post-link-url:visited {
    color: #6a43c1;
}

@media (max-width: 700px) {
    .post-link-block {
        padding: 12px 14px;
    }

    .post-link-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .post-link-title {
        font-size: 18px;
        line-height: 1.28;
        margin: 0;
    }

    .post-link-description,
    .post-link-url {
        width: 100%;
        min-width: 0;
        margin: 0;
    }

    .post-link-description,
    .post-link-url {
        font-size: 13px;
        line-height: 1.4;
    }
}

/* -----------------------------------------
   Bullet Blocks
----------------------------------------- */

.post-block-bullet {
    margin: 30px 0;
    padding: 22px 22px 8px;
    background: linear-gradient(180deg, #fcfcfd 0%, #f7f8fa 100%);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.03);
}

.post-bullet-group {
    margin-bottom: 24px;
}

.post-bullet-group:last-child {
    margin-bottom: 0;
}

.post-bullet-heading {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text);
    letter-spacing: -0.01em;
}

.post-bullet-list {
    list-style: none;
    margin: 0;
    padding-left: 0;
}

.post-bullet-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    line-height: 1.72;
    color: #30353b;
}

.post-bullet-symbol {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    font-weight: bold;
    color: #111;
    flex-shrink: 0;
    margin-top: 1px;
}

/* -----------------------------------------
   Poll Blocks
----------------------------------------- */

.post-poll-box {
    margin: 34px 0;
    padding: 24px;
    background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
}

.post-poll-intro {
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-faint);
}

.post-poll-question {
    margin: 0 0 16px;
    font-size: 24px;
    line-height: 1.35;
    letter-spacing: -0.02em;
    color: var(--text);
}

.post-poll-form {
    margin-top: 10px;
}

.post-poll-option {
    margin-bottom: 10px;
}

.post-poll-option label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.post-poll-option label:hover {
    border-color: #c9d5ea;
    background: #fcfdff;
    box-shadow: 0 8px 18px rgba(0,0,0,0.04);
    transform: translateY(-1px);
}

.post-poll-option input[type="radio"] {
    margin-top: 3px;
    flex-shrink: 0;
}

.post-poll-option-text {
    flex: 1;
    color: #2d333a;
    line-height: 1.6;
}

.post-poll-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.post-poll-button,
.post-poll-submit {
    display: inline-block;
    padding: 12px 18px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(180deg, #171717 0%, #101010 100%);
    color: #fff;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.post-poll-button:hover,
.post-poll-submit:hover {
    background: #222;
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(0,0,0,0.14);
}

.post-poll-results-link {
    font-size: 14px;
    color: var(--accent);
    text-decoration: none;
    font-weight: bold;
}

.post-poll-results-link:hover {
    color: #084298;
    text-decoration: underline;
}

.post-poll-message {
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: bold;
}

.post-poll-message-success {
    background: var(--success-bg);
    color: var(--success-text);
    border: 1px solid #cfe7d5;
}

.post-poll-message-warning {
    background: var(--warn-bg);
    color: var(--warn-text);
    border: 1px solid #f0ddae;
}

.post-poll-results {
    margin-top: 18px;
    border-top: 1px solid var(--border);
    padding-top: 18px;
}

.post-poll-results-title {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 800;
    color: var(--text);
}

.post-poll-result-row {
    margin-bottom: 14px;
}

.post-poll-result-label {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    font-size: 14px;
    color: #30353b;
    margin-bottom: 6px;
}

.post-poll-result-bar {
    width: 100%;
    height: 12px;
    background: #e8edf3;
    border-radius: 999px;
    overflow: hidden;
}

.post-poll-result-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #111111 0%, #4f5d73 100%);
}

.post-poll-total-votes {
    margin-top: 10px;
    font-size: 13px;
    color: var(--text-faint);
}

/* -----------------------------------------
   Browse Pages / Articles / Reviews
----------------------------------------- */

.browse-page {
    padding: 22px 20px 25px;
}

.browse-container {
    max-width: 1200px;
    margin: 0 auto;
}

.browse-title {
    margin: 0 0 10px;
    font-size: 42px;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.browse-intro {
    margin: 0 0 32px;
    font-size: 18px;
    color: var(--text-soft);
    max-width: 1000px;
}

.browse-empty {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow-soft);
}

.browse-empty p {
    margin: 0;
    color: var(--text-soft);
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
    align-items: start;
}

.post-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--border-strong);
}

.post-card-image {
    display: block;
    max-width: 100%;
	height: 240px;
    overflow: hidden;
    background: #f5f5f5;
    text-decoration: none;
    line-height: 0;
    border-bottom: 1px solid #eef0f3;
	object-fit: contain;
}

.post-card-image img {
    padding: 8px;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.35s ease;
}

.post-card:hover .post-card-image img {
    transform: scale(1.03);
}

.post-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    background: #fff;
}

.post-card-meta {
    display: block;
    font-size: 13px;
    color: var(--text-faint);
    margin-bottom: 6px;
}

.post-card-title {
    margin: 0 0 10px;
    font-size: 24px;
    line-height: 1.22;
    letter-spacing: -0.02em;
}

.post-card-title a {
    text-decoration: none;
    color: var(--text);
}

.post-card-title a:hover {
    text-decoration: underline;
}

.post-card-category {
    display: block;
    font-size: 13px;
    color: var(--text-faint);
    margin-bottom: 12px;
}

.post-card-excerpt {
    margin: 0 0 8px;
    color: var(--text-soft);
    line-height: 1.68;
    flex: none;
}

.post-card-link {
    display: inline-block;
    text-decoration: none;
    color: var(--text);
    font-weight: bold;
    margin-top: 8px;
}

.post-card-link:hover {
    text-decoration: underline;
}

/* -----------------------------------------
   Home
----------------------------------------- */

.home-page {
    padding-bottom: 34px;
}

.home-hero {
    padding: 44px 20px 14px;
}

.home-container {
    max-width: 1200px;
    margin: 0 auto;
}

.home-hero-box {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fb 100%);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 34px 30px;
    box-shadow: var(--shadow-card);
}

.home-kicker {
    display: inline-block;
    padding: 6px 10px;
    background: linear-gradient(180deg, #161616 0%, #101010 100%);
    color: #fff;
    border-radius: 999px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 16px;
    letter-spacing: 0.05em;
}

.home-title {
    margin: 0 0 12px;
    font-size: 48px;
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.home-subtitle {
    margin: 0;
    font-size: 19px;
    color: var(--text-soft);
    max-width: 760px;
    line-height: 1.75;
}

.home-feature,
.home-section {
    padding: 20px 20px 0;
}

.section-heading {
    max-width: 1200px;
    margin: 0 auto 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.section-heading h2 {
    margin: 0;
    font-size: 31px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.section-heading a {
    text-decoration: none;
    font-weight: bold;
    color: var(--accent);
}

.section-heading a:hover {
    text-decoration: underline;
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    display: grid;
	/*  changing the img of slider   */
    grid-template-columns: minmax(650px, 320px) 1fr;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.feature-card-image {
    display: block;
    background: #f5f5f5;
    min-height: 100%;
    text-decoration: none;
    overflow: hidden;
    padding: 12px;
}

.feature-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 14px;
    transition: transform 0.35s ease;
}

.feature-card:hover .feature-card-image img {
    transform: scale(1.02);
}

.feature-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.feature-card-meta {
    display: block;
    font-size: 14px;
    color: var(--text-faint);
    margin-bottom: 6px;
}

.feature-card-title {
    margin: 0 0 10px;
    font-size: 35px;
    line-height: 1.18;
    letter-spacing: -0.03em;
}

.feature-card-title a {
    text-decoration: none;
    color: var(--text);
}

.feature-card-title a:hover {
    text-decoration: underline;
}

.feature-card-category {
    display: block;
    font-size: 13px;
    color: var(--text-faint);
    margin-bottom: 14px;
}

.feature-card-excerpt {
    margin: 0 0 20px;
    color: var(--text-soft);
    font-size: 17px;
    line-height: 1.75;
    flex: 1;
}

.feature-card-link {
    display: inline-block;
    font-weight: bold;
    text-decoration: none;
    color: var(--accent);
}

.feature-card-link:hover {
    text-decoration: underline;
}

/* -----------------------------------------
   Footer
----------------------------------------- */

.site-footer {
    background: linear-gradient(180deg, #121212 0%, #0d0d0d 100%);
    color: #fff;
    padding: 34px 20px 24px;
    margin-top: 44px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.site-footer-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 28px;
    margin-bottom: 26px;
}

.footer-column {
    min-width: 0;
}

.footer-title {
    margin: 0 0 14px;
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.01em;
}

.footer-text {
    margin: 0;
    color: rgba(255,255,255,0.72);
    font-size: 14px;
    line-height: 1.7;
    max-width: 320px;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.78);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.18s ease, opacity 0.18s ease;
}

.footer-links a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-bottom {
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 13px;
    color: rgba(255,255,255,0.62);
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }
}

@media (max-width: 640px) {
    .site-footer {
        padding: 28px 20px 22px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .footer-title {
        margin-bottom: 10px;
    }

    .footer-links li {
        margin-bottom: 8px;
    }
}

/* -----------------------------------------
   Responsive
----------------------------------------- */

@media (max-width: 1000px) {
    .post-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .feature-card {
        grid-template-columns: 1fr;
    }

    .feature-card-image {
        min-height: 260px;
    }

    .home-title {
        font-size: 38px;
    }

    .feature-card-title {
        font-size: 30px;
    }
}

@media (max-width: 700px) {
    .site-header-inner {
        align-items: stretch;
        flex-wrap: wrap;
        gap: 14px;
    }

    .site-header-top-row {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .site-logo {
        min-width: 0;
    }

    .site-logo a {
        font-size: 22px;
        display: inline-block;
    }

    .site-menu-toggle {
        display: inline-flex;
        flex: 0 0 auto;
    }

    .site-search-form {
        width: 100%;
        flex: 1 1 100%;
        min-width: 0;
        margin-left: 200;
        margin-top: 0;
        order: 2;
    }

    .site-search-form input[type="search"] {
        min-width: 0;
        width: 100%;
        max-width: none;
        flex: 1 1 100%;
    }

    .site-nav {
        display: none;
        width: 100%;
        order: 3;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        margin-left: 0;
        margin-right: 0;
        padding-top: 2px;
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav a {
        display: block;
        width: 100%;
        padding: 12px 14px;
        background: rgba(255,255,255,0.05);
        border: 1px solid rgba(255,255,255,0.08);
        border-radius: 12px;
    }

    .post-title {
        font-size: 32px;
    }

    .post-body,
    .post-block-text-content {
        font-size: 17px;
    }

    .post-container {
        padding: 24px;
        border-radius: 18px;
    }

    .post-breadcrumb-card {
        padding: 14px 16px;
        border-radius: 16px;
        gap: 8px;
        margin-bottom: 14px;
        font-size: 13px;
    }

    .post-excerpt {
        font-size: 19px;
    }

    .post-poll-question {
        font-size: 21px;
    }

    .post-link-block {
        padding: 14px 16px;
    }

    .post-link-main {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        width: 100%;
    }

    .post-link-title {
        font-size: 20px;
        line-height: 1.3;
        white-space: pre-line;
        margin: 0;
    }

    .post-link-description {
        min-width: 0;
        width: 100%;
        flex: none;
        font-size: 14px;
        line-height: 1.5;
        margin: 0;
    }

    .post-link-url {
        min-width: 0;
        width: 100%;
        flex: none;
        font-size: 14px;
        line-height: 1.45;
        margin: 0;
        word-break: break-word;
    }
}

@media (max-width: 680px) {
    .browse-title {
        font-size: 34px;
    }

    .browse-intro {
        font-size: 16px;
    }

    .post-grid {
        grid-template-columns: 1fr;
    }

    .post-card-image {
        height: 220px;
    }

    .home-hero-box {
        padding: 24px 20px;
        border-radius: 16px;
    }

    .home-title {
        font-size: 31px;
    }

    .home-subtitle {
        font-size: 17px;
    }

    .section-heading h2 {
        font-size: 26px;
    }

    .feature-card-body {
        padding: 22px;
    }

    .post-poll-box {
        padding: 18px;
    }

    .post-poll-option label {
        padding: 12px 14px;
    }
}

/* -----------------------------------------
   Homepage Layout Tweaks
----------------------------------------- */

.home-feature-primary {
    padding-top: 30px;
}

.home-hero-secondary {
    padding-top: 18px;
}

.home-hero-box-welcome {
    position: relative;
    overflow: hidden;
}

.home-hero-box-welcome::after {
    content: "";
    position: absolute;
    top: -40px;
    right: -40px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(11,87,208,0.08) 0%, rgba(11,87,208,0) 72%);
    pointer-events: none;
}

.home-welcome-note {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    color: var(--text-soft);
    font-size: 15px;
    line-height: 1.7;
    max-width: 760px;
}

.feature-card-madness {
    border-width: 1px;
}

.feature-card-madness .feature-card-title a:hover {
    text-decoration: underline;
}

/* -----------------------------------------
   Boxed Homepage Sections
----------------------------------------- */

.home-section-box {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fb 100%);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 26px 28px 30px;
    box-shadow: var(--shadow-card);
}

.section-heading-boxed {
    max-width: none;
    margin: 0 0 20px;
}

/* -----------------------------------------
   Home Split / Clown World
----------------------------------------- */

.home-split-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.95fr);
    gap: 24px;
    align-items: stretch;
}

.home-hero-box-clown {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 100%;
}

.section-heading-mini {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 16px;
    max-width: none;
}

.section-heading-mini h2 {
    margin: 0;
    font-size: 28px;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.tiny-section-link {
    font-size: 12px;
    line-height: 1;
    color: var(--accent);
    text-decoration: none;
    white-space: nowrap;
    font-weight: 600;
}

.tiny-section-link:hover {
    text-decoration: underline;
}

.clown-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.clown-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: var(--border-strong);
}

.clown-card-image {
    display: block;
    aspect-ratio: 16 / 13;
    background: #f3f3f3;
    overflow: hidden;
    text-decoration: none;
    line-height: 0;
}

.clown-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.clown-card:hover .clown-card-image img {
    transform: scale(1.03);
}

.clown-card-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.clown-card-meta {
    display: block;
    margin-bottom: 6px;
    color: var(--text-faint);
    font-size: 13px;
}

.clown-card-title {
    margin: 0 0 10px;
    font-size: 28px;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.clown-card-title a {
    color: var(--text);
    text-decoration: none;
}

.clown-card-title a:hover {
    text-decoration: underline;
}

.clown-card-excerpt {
    margin: 0 0 14px;
    color: var(--text-soft);
    line-height: 1.6;
    font-size: 15px;
    flex: 1;
}

.clown-card-link {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
    margin-top: auto;
}

.clown-card-link:hover {
    text-decoration: underline;
}

.clown-empty {
    margin-top: 12px;
}

@media (max-width: 980px) {
    .home-split-grid {
        grid-template-columns: 1fr;
    }

    .section-heading-mini h2 {
        font-size: 24px;
    }

    .clown-card-title {
        font-size: 24px;
    }
}

@media (max-width: 680px) {
    .home-section-box {
        padding: 22px 18px 24px;
        border-radius: 16px;
    }

    .section-heading-boxed {
        margin-bottom: 18px;
    }
}

/* -----------------------------------------
   Search Page
----------------------------------------- */

.search-hero-box {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fb 100%);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px;
    box-shadow: var(--shadow-card);
    margin-bottom: 26px;
}

.search-page-form {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
    margin-bottom: 16px;
}

.search-page-form input[type="search"] {
    flex: 1 1 320px;
    padding: 14px 16px;
    border: 1px solid #ccc;
    border-radius: 999px;
    font-size: 15px;
    background: #fff;
}

.search-page-form button {
    padding: 14px 18px;
    border: none;
    border-radius: 999px;
    background: #111;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
}

.search-page-form button:hover {
    background: #333;
}

.search-summary {
    margin: 0;
    color: var(--text-soft);
    font-size: 15px;
    line-height: 1.7;
}

.search-results-section {
    padding-top: 0;
}

mark {
    background: #fff1a8;
    color: inherit;
    padding: 0 2px;
    border-radius: 3px;
}
/* -----------------------------------------
   Phase 5 Rendering Engine
----------------------------------------- */

.post-body > *:first-child,
.post-block-text-content > *:first-child {
    margin-top: 0;
}

.post-body > *:last-child,
.post-block-text-content > *:last-child {
    margin-bottom: 0;
}

.post-body p,
.post-block-text-content p {
    margin: 0 0 18px;
}

.post-body h2,
.post-block-text-content h2 {
    margin: 34px 0 14px;
    font-size: 30px;
    line-height: 1.22;
    letter-spacing: -0.02em;
    color: var(--text);
}

.post-body h3,
.post-block-text-content h3 {
    margin: 26px 0 12px;
    font-size: 23px;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: #21262d;
}

.post-body ul,
.post-body ol,
.post-block-text-content ul,
.post-block-text-content ol {
    margin: 0 0 22px 24px;
    padding-left: 8px;
}

.post-body li,
.post-block-text-content li {
    margin-bottom: 8px;
    color: #2d333a;
}

.post-body strong,
.post-block-text-content strong {
    color: #161a20;
}

.post-body em,
.post-block-text-content em {
    color: #3b434c;
}

.post-body blockquote,
.post-block-text-content blockquote {
    position: relative;
    margin: 26px 0;
    padding: 18px 22px 18px 24px;
    background: linear-gradient(180deg, #fafbfc 0%, #f4f6f8 100%);
    border: 1px solid var(--border);
    border-left: 5px solid #cfd6de;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.04);
    color: #3b434c;
    font-style: italic;
}

.post-body blockquote::before,
.post-block-text-content blockquote::before {
    content: "“";
    position: absolute;
    top: 10px;
    left: 14px;
    font-size: 32px;
    line-height: 1;
    color: #c5ccd4;
    font-style: normal;
}

.post-body blockquote p,
.post-block-text-content blockquote p {
    margin: 0 0 12px;
}

.post-body blockquote p:last-child,
.post-block-text-content blockquote p:last-child {
    margin-bottom: 0;
}

.post-blocks {
    margin-top: 34px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}

.post-block {
    margin-top: 0;
    padding-top: 0;
}

.post-block + .post-block {
    margin-top: 26px;
}

.post-block-text {
    padding: 0;
}

.post-block-text-content {
    font-size: 18px;
    line-height: 1.95;
    color: #262b31;
}

@media (max-width: 700px) {
    .post-body h2,
    .post-block-text-content h2 {
        font-size: 25px;
        margin: 28px 0 12px;
    }

    .post-body h3,
    .post-block-text-content h3 {
        font-size: 21px;
        margin: 22px 0 10px;
    }

    .post-body blockquote,
    .post-block-text-content blockquote {
        margin: 22px 0;
        padding: 16px 16px 16px 20px;
        border-radius: 14px;
    }

    .post-body ul,
    .post-body ol,
    .post-block-text-content ul,
    .post-block-text-content ol {
        margin-left: 20px;
    }
}

/* -----------------------------------------
   Phase 8 Video Block Fix
----------------------------------------- */

.post-block-video {
    margin-top: 14px;
}

.post-block-video-wrap {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #000;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.post-block-video-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.post-block-video-fallback a {
    display: inline-block;
    padding: 12px 18px;
    background: linear-gradient(180deg, #171717 0%, #101010 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    font-weight: bold;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.post-block-video-fallback a:hover {
    background: #222;
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(0,0,0,0.14);
}

.post-block-video .post-block-caption {
    margin-top: 8px;
}

.post-block-video .post-block-credit {
    margin-top: 4px;
}


/* -----------------------------------------
   Phase 9 Link Block Admin Compatibility
----------------------------------------- */

.link-block-item {
    background: #fff;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.link-block-item.is-active {
    border-color: #cfd8e3;
    box-shadow: 0 10px 24px rgba(0,0,0,0.06);
}


/* -----------------------------------------
   Phase 10 Bullet Block Admin Compatibility
----------------------------------------- */

.bullet-block-item {
    background: #fff;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.bullet-block-item.is-active {
    border-color: #cfd8e3;
    box-shadow: 0 10px 24px rgba(0,0,0,0.06);
}


/* -----------------------------------------
   Phase 10 Bullet Block Frontend
----------------------------------------- */

.post-block-bullet {
    margin: 30px 0;
    padding: 22px 22px 8px;
    background: linear-gradient(180deg, #fcfcfd 0%, #f7f8fa 100%);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.03);
}

.post-bullet-group {
    margin-bottom: 24px;
}

.post-bullet-group:last-child {
    margin-bottom: 0;
}

.post-bullet-heading {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text);
    letter-spacing: -0.01em;
}

.post-bullet-list {
    list-style: none;
    margin: 0;
    padding-left: 0;
}

.post-bullet-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    line-height: 1.72;
    color: #30353b;
}

.post-bullet-symbol {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    font-weight: bold;
    color: #111;
    flex-shrink: 0;
    margin-top: 1px;
}

.post-bullet-list a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid rgba(11,87,208,0.25);
}

.post-bullet-list a:hover {
    color: #084298;
    border-color: rgba(8,66,152,0.45);
}


/* -----------------------------------------
   Phase 11 Poll Block Frontend
----------------------------------------- */

.post-block-poll {
    margin: 30px 0;
    padding: 24px;
    background: linear-gradient(180deg, #fcfcfd 0%, #f7f8fa 100%);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.03);
}

.post-poll-intro {
    color: var(--muted);
    font-size: 15px;
    margin-bottom: 10px;
}

.post-poll-question {
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 18px;
    letter-spacing: -0.01em;
}

.post-poll-options {
    display: grid;
    gap: 10px;
    margin-bottom: 16px;
}

.post-poll-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 14px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
}

.post-poll-option:hover {
    border-color: rgba(11,87,208,0.35);
    box-shadow: 0 6px 14px rgba(0,0,0,0.04);
}

.post-poll-submit {
    display: inline-block;
    border: 0;
    background: #111;
    color: #fff;
    border-radius: 999px;
    padding: 10px 18px;
    cursor: pointer;
    font-weight: 700;
    margin-right: 10px;
}

.post-poll-submit:hover {
    background: #333;
}

.post-poll-results-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.post-poll-results-link:hover {
    text-decoration: underline;
}

.post-poll-results {
    display: grid;
    gap: 14px;
}

.post-poll-result-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
}

.post-poll-bar {
    height: 12px;
    background: #e7e9ee;
    border-radius: 999px;
    overflow: hidden;
}

.post-poll-bar-fill {
    height: 100%;
    background: #111;
    border-radius: 999px;
}

.post-poll-total {
    color: var(--muted);
    font-size: 14px;
    margin-top: 4px;
}

/* -----------------------------------------
   Poll Block Polish Override
   Add this at the VERY BOTTOM of /assets/css/site.css
----------------------------------------- */

.post-block-poll {
    max-width: 720px;
    margin: 34px auto;
    padding: 28px;
    background:
        radial-gradient(circle at top left, rgba(11,87,208,0.08), transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: 0 16px 42px rgba(0,0,0,0.08);
}

.post-poll-intro {
    display: inline-block;
    margin-bottom: 12px;
    padding: 6px 10px;
    background: #111;
    color: #fff;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.post-poll-question {
    margin: 0 0 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
    font-size: 28px;
    line-height: 1.25;
    font-weight: 900;
    color: var(--text);
    letter-spacing: -0.03em;
}

.post-poll-form {
    margin: 0;
}

.post-poll-options {
    display: grid;
    gap: 12px;
    margin-bottom: 18px;
}

.post-poll-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(0,0,0,0.03);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.post-poll-option:hover {
    transform: translateY(-1px);
    border-color: var(--border-strong);
    box-shadow: 0 10px 24px rgba(0,0,0,0.07);
}

.post-poll-option input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #111;
    flex-shrink: 0;
}

.post-poll-option span {
    font-weight: 700;
    color: #242a31;
    line-height: 1.45;
}

.post-poll-submit {
    display: inline-block;
    border: 0;
    background: linear-gradient(180deg, #181818 0%, #0e0e0e 100%);
    color: #fff;
    border-radius: 999px;
    padding: 12px 20px;
    cursor: pointer;
    font-weight: 800;
    margin-right: 12px;
    box-shadow: 0 10px 22px rgba(0,0,0,0.12);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.post-poll-submit:hover {
    transform: translateY(-1px);
    background: #222;
    box-shadow: 0 14px 28px rgba(0,0,0,0.16);
}

.post-poll-results-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 800;
    border-bottom: 1px solid rgba(11,87,208,0.25);
}

.post-poll-results-link:hover {
    color: #084298;
    border-color: rgba(8,66,152,0.45);
}

.post-poll-results {
    display: grid;
    gap: 16px;
}

.post-poll-result-row {
    padding: 14px 16px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.03);
}

.post-poll-result-top {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    margin-bottom: 9px;
    font-size: 14px;
    font-weight: 800;
    color: #2d333a;
}

.post-poll-bar {
    height: 14px;
    background: #e8edf3;
    border-radius: 999px;
    overflow: hidden;
}

.post-poll-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #111 0%, #4f5d73 100%);
    border-radius: 999px;
}

.post-poll-total {
    margin-top: 4px;
    color: var(--text-faint);
    font-size: 14px;
    font-weight: 700;
}

@media (max-width: 700px) {
    .post-block-poll {
        max-width: 100%;
        padding: 20px;
        border-radius: 18px;
    }

    .post-poll-question {
        font-size: 23px;
    }

    .post-poll-result-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

/* -----------------------------------------
   Poll Block Final Width Fix
   Forces poll to stop looking skinny
----------------------------------------- */

.post-block-poll {
    display: block !important;
    width: 100% !important;
    max-width: 760px !important;
    min-width: 0 !important;
    margin: 34px auto !important;
    padding: 30px !important;
}

.post-block-poll * {
    box-sizing: border-box;
}

.post-poll-results {
    width: 100% !important;
}

.post-poll-result-row {
    width: 100% !important;
    display: block !important;
}

.post-poll-result-top {
    width: 100% !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.post-poll-bar {
    width: 100% !important;
}

.post-poll-options {
    width: 100% !important;
}

.post-poll-option {
    width: 100% !important;
}

@media (max-width: 700px) {
    .post-block-poll {
        max-width: 100% !important;
        padding: 20px !important;
    }

    .post-poll-result-top {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
}

/* -----------------------------------------
   Poll Block Premium Polish
   Cleaner, fuller, more modern poll card
----------------------------------------- */

.post-block-poll {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    max-width: 760px !important;
    margin: 32px auto 38px !important;
    padding: 34px !important;
    background:
        radial-gradient(circle at top left, rgba(11,87,208,0.10), transparent 32%),
        radial-gradient(circle at bottom right, rgba(0,0,0,0.045), transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
    border: 1px solid #dfe5ee !important;
    border-radius: 26px !important;
    box-shadow:
        0 24px 60px rgba(15, 23, 42, 0.10),
        inset 0 1px 0 rgba(255,255,255,0.95) !important;
    overflow: hidden !important;
}

.post-block-poll::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 5px;
    background: linear-gradient(90deg, #111 0%, #4f5d73 45%, #0b57d0 100%);
    opacity: 0.95;
}

.post-poll-intro {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 0 16px !important;
    padding: 7px 12px !important;
    background: #111 !important;
    color: #fff !important;
    border-radius: 999px !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.07em !important;
    box-shadow: 0 8px 18px rgba(0,0,0,0.14) !important;
}

.post-poll-question {
    margin: 0 0 22px !important;
    padding-bottom: 18px !important;
    border-bottom: 1px solid #e5e9f0 !important;
    font-size: 31px !important;
    line-height: 1.16 !important;
    font-weight: 950 !important;
    color: #15181d !important;
    letter-spacing: -0.04em !important;
}

.post-poll-results {
    display: grid !important;
    gap: 14px !important;
    width: 100% !important;
}

.post-poll-result-row {
    width: 100% !important;
    display: block !important;
    padding: 16px 18px !important;
    background: rgba(255,255,255,0.88) !important;
    border: 1px solid #e1e6ee !important;
    border-radius: 18px !important;
    box-shadow:
        0 10px 24px rgba(15, 23, 42, 0.055),
        inset 0 1px 0 rgba(255,255,255,0.96) !important;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease !important;
}

.post-poll-result-row:hover {
    transform: translateY(-1px) !important;
    border-color: #cfd8e6 !important;
    box-shadow:
        0 14px 30px rgba(15, 23, 42, 0.08),
        inset 0 1px 0 rgba(255,255,255,0.96) !important;
}

.post-poll-result-top {
    width: 100% !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 16px !important;
    margin-bottom: 10px !important;
    font-size: 15px !important;
    font-weight: 900 !important;
    color: #20252c !important;
}

.post-poll-result-top span:first-child {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.post-poll-result-top span:first-child::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #111;
    box-shadow: 0 0 0 4px rgba(17,17,17,0.08);
    flex: 0 0 auto;
}

.post-poll-bar {
    width: 100% !important;
    height: 15px !important;
    background: #e8edf4 !important;
    border-radius: 999px !important;
    overflow: hidden !important;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.06) !important;
}

.post-poll-bar-fill {
    height: 100% !important;
    background: linear-gradient(90deg, #111 0%, #303845 55%, #0b57d0 100%) !important;
    border-radius: 999px !important;
    box-shadow: 0 6px 16px rgba(11,87,208,0.22) !important;
}

.post-poll-total {
    display: inline-flex !important;
    align-items: center !important;
    margin-top: 8px !important;
    padding: 9px 12px !important;
    background: rgba(17,17,17,0.045) !important;
    border: 1px solid rgba(17,17,17,0.06) !important;
    border-radius: 999px !important;
    color: #5f6670 !important;
    font-size: 13px !important;
    font-weight: 900 !important;
}

.post-poll-options {
    display: grid !important;
    gap: 12px !important;
    width: 100% !important;
    margin-bottom: 18px !important;
}

.post-poll-option {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 16px 18px !important;
    background: rgba(255,255,255,0.88) !important;
    border: 1px solid #e1e6ee !important;
    border-radius: 18px !important;
    cursor: pointer !important;
    box-shadow:
        0 10px 24px rgba(15, 23, 42, 0.055),
        inset 0 1px 0 rgba(255,255,255,0.96) !important;
}

.post-poll-option:hover {
    transform: translateY(-1px) !important;
    border-color: #cfd8e6 !important;
    box-shadow:
        0 14px 30px rgba(15, 23, 42, 0.08),
        inset 0 1px 0 rgba(255,255,255,0.96) !important;
}

.post-poll-option input[type="radio"] {
    width: 19px !important;
    height: 19px !important;
    accent-color: #111 !important;
}

.post-poll-option span {
    font-size: 15px !important;
    font-weight: 900 !important;
    color: #20252c !important;
}

.post-poll-submit {
    padding: 13px 22px !important;
    border-radius: 999px !important;
    font-weight: 900 !important;
    box-shadow: 0 12px 24px rgba(0,0,0,0.15) !important;
}

@media (max-width: 700px) {
    .post-block-poll {
        max-width: 100% !important;
        padding: 24px !important;
        border-radius: 22px !important;
    }

    .post-poll-question {
        font-size: 25px !important;
    }

    .post-poll-result-top {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 4px !important;
    }
}

/* -----------------------------------------
   Poll Block Left Alignment Override
----------------------------------------- */

.post-block-poll {
    margin: 32px 0 38px !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    max-width: 760px !important;
}

/* -----------------------------------------
   Poll Block True Article-Flow Alignment
   Forces poll into the normal left content flow
----------------------------------------- */

.post-blocks {
    width: 100%;
    display: block !important;
}

.post-blocks .post-block-poll,
.post-container .post-block-poll,
.post-page .post-block-poll {
    display: block !important;
    float: none !important;
    clear: both !important;
    width: 100% !important;
    max-width: 760px !important;
    margin-top: 32px !important;
    margin-bottom: 38px !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    transform: none !important;
}

@media (max-width: 700px) {
    .post-blocks .post-block-poll,
    .post-container .post-block-poll,
    .post-page .post-block-poll {
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* -----------------------------------------
   Poll Feature Polish: Winner + Animation + Voted Badge
----------------------------------------- */

.post-poll-result-row.is-winner {
    border-color: rgba(11,87,208,0.35) !important;
    background:
        radial-gradient(circle at top left, rgba(11,87,208,0.08), transparent 34%),
        rgba(255,255,255,0.94) !important;
    box-shadow:
        0 16px 36px rgba(11,87,208,0.12),
        inset 0 1px 0 rgba(255,255,255,0.96) !important;
}

.post-poll-winner-badge {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #111;
    color: #fff;
    font-size: 11px;
    font-style: normal;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    vertical-align: middle;
}

.post-poll-bar-fill {
    width: 0;
    animation: pollBarGrow 0.9s ease-out forwards;
}

@keyframes pollBarGrow {
    from {
        width: 0;
    }
    to {
        width: var(--poll-width);
    }
}

.post-poll-total-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.post-poll-voted-badge {
    display: inline-flex;
    align-items: center;
    padding: 9px 12px;
    background: #edf8f0;
    color: #1f6b37;
    border: 1px solid #cfe7d5;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
    box-shadow: 0 8px 18px rgba(31,107,55,0.08);
}

@media (prefers-reduced-motion: reduce) {
    .post-poll-bar-fill {
        animation: none;
    }
}

@media (max-width: 700px) {
    .post-poll-winner-badge {
        margin-left: 0;
        margin-top: 5px;
    }

    .post-poll-result-top span:first-child {
        flex-wrap: wrap;
    }
}

/* -----------------------------------------
   Preserve Editor Spacing / Line Breaks
   Keeps natural Enter key line breaks and multiple spaces from the CMS editor.
----------------------------------------- */

.post-body,
.post-block-text-content {
    white-space: pre-line;
    overflow-wrap: anywhere;
    text-align: left;
    text-indent: 0;
}

.post-body p,
.post-block-text-content p {
    margin-top: 0;
    margin-left: 0;
    padding-left: 0;
    text-indent: 0;
}

/* 🔥 VIDEO BLOCK REDESIGN */

.video-caption-top {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 10px;
    color: #111;
}

.video-action-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.video-btn {
    display: inline-block;
    padding: 6px 100px;
    background: #111;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.2s ease;
}

.video-btn:hover {
    background: #333;
    transform: translateY(-1px);
}

.video-credit {
    font-size: 18px;
    color: #9D9D9D;
}

/* -----------------------------------------
   Video Block Layout Override - Article/Review Pages
   Caption top-left, video embed, bottom action row.
----------------------------------------- */

.post-block-video {
    margin: 30px 0;
}

.post-block-video-caption {
    display: block;
    margin: 0 0 12px;
    color: #222;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.45;
}

.post-block-video-wrap {
    margin: 0;
}

.post-block-video-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 14px;
}


.post-block-video-button:hover {
    background: #222;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(0,0,0,0.16);
}

.post-block-video-credit {
    color: var(--text-faint);
    font-size: 13px;
    line-height: 1.5;
}

.post-block-video-credit b {
    color: #222;
}

@media (max-width: 700px) {
    .post-block-video-caption {
        font-size: 15px;
    }

    .post-block-video-meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .post-block-video-button {
        width: 100%;
    }
}


/* Final text spacing fix: preserve Enter line breaks without preserving indentation */
.post-body,
.post-block-text-content {
    white-space: pre-line;
    overflow-wrap: anywhere;
    text-align: left;
    text-indent: 0;
}

.post-body p,
.post-block-text-content p {
    margin-top: 0;
    margin-left: 0;
    padding-left: 0;
    text-indent: 0;
}


/* -----------------------------------------
   Meme Video Layout Match
   Makes meme video blocks match article/review video layout.
   Source HTML uses:
   .post-video-section
   .post-video-embed
   .post-youtube-link
   .post-block-credit
----------------------------------------- */

.post-block:has(.post-video-section) {
    margin: 30px 0;
}

.post-block:has(.post-video-section) .post-video-section {
    margin: 0;
}

.post-block:has(.post-video-section) .post-video-embed {
    margin: 0;
}

.post-block:has(.post-video-section) .post-block-caption {
    margin: 10px 0 0;
    color: var(--text-soft);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
}

/* Turn the old separate YouTube paragraph into the left-side action button */
.post-block:has(.post-video-section) .post-youtube-link {
    display: inline-flex;
    margin: 20px 0 0;
    padding: 0;
    width: 32%;
    min-width: 260px;
    vertical-align: top;
}

.post-block:has(.post-video-section) .post-youtube-link a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px 28px;
    background: #111;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 8px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    border: 0;
    box-shadow: none;
    transition: all 0.2s ease;
}

.post-block:has(.post-video-section) .post-youtube-link a:hover {
    background: #222;
    color: #fff !important;
    transform: translateY(-1px);
}

/* Credits on same visual row, pushed right like articles/reviews */
.post-block:has(.post-video-section) .post-block-credit {
    float: right;
    margin: 22px 0 0 auto;
    color: #9D9D9D;
    font-size: 18px;
    line-height: 1.4;
    font-weight: 500;
    text-align: right;
}

.post-block:has(.post-video-section) .post-block-credit b {
    color: #9D9D9D;
    font-weight: 800;
}

/* Normalize "Credit:" text appearance even when generated without bold */
.post-block:has(.post-video-section) .post-block-credit {
    font-weight: 500;
}

/* Clear floats before the next block */
.post-block:has(.post-video-section)::after {
    content: "";
    display: block;
    clear: both;
}

@media (max-width: 700px) {
    .post-block:has(.post-video-section) .post-youtube-link {
        width: 100%;
        min-width: 0;
        display: flex;
    }

    .post-block:has(.post-video-section) .post-block-credit {
        float: none;
        width: 100%;
        margin-top: 12px;
        text-align: left;
        font-size: 15px;
    }
}


/* -----------------------------------------
   X / Twitter Embed Styling
   Article + Review video blocks using official X embed.
----------------------------------------- */

.post-x-embed {
    display: flex;
    justify-content: flex-start;
    width: 100%;
    margin: 0;
}

.post-x-embed .twitter-tweet,
.post-x-embed iframe {
    max-width: 560px !important;
    width: 100% !important;
    margin: 0 !important;
}

@media (max-width: 700px) {
    .post-x-embed {
        justify-content: center;
    }
}


/* -----------------------------------------
   X / Twitter Embed Width Override - Strong Version
   Targets both the original blockquote AND the rendered X iframe.
----------------------------------------- */

.post-block-video .post-x-embed {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
}

.post-block-video .post-x-embed .twitter-tweet,
.post-block-video .post-x-embed .twitter-tweet-rendered,
.post-block-video .post-x-embed iframe,
.post-x-embed .twitter-tweet,
.post-x-embed .twitter-tweet-rendered,
.post-x-embed iframe {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.post-block-video .post-x-embed iframe,
.post-x-embed iframe {
    display: block !important;
}

/* X sometimes injects a fixed-width rendered tweet wrapper */
.twitter-tweet-rendered {
    width: 100% !important;
    max-width: 100% !important;
}

/* Keep the action row aligned under the wider X embed */
.post-block-video .post-x-embed + .video-action-row {
    width: 100% !important;
}

@media (max-width: 700px) {
    .post-block-video .post-x-embed,
    .post-x-embed {
        width: 100% !important;
        max-width: 100% !important;
    }
}


/* -----------------------------------------
   X / Twitter Embed Styling - Articles, Reviews, Memes
   Strong width override for official X widgets.
----------------------------------------- */

.post-block-video .post-x-embed {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.post-block-video .post-x-embed .twitter-tweet,
.post-block-video .post-x-embed .twitter-tweet-rendered,
.post-block-video .post-x-embed iframe,
.post-x-embed .twitter-tweet,
.post-x-embed .twitter-tweet-rendered,
.post-x-embed iframe {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.post-block-video .post-x-embed iframe,
.post-x-embed iframe {
    display: block !important;
}

.twitter-tweet-rendered {
    width: 100% !important;
    max-width: 100% !important;
}


/* -----------------------------------------
   Post Share Buttons + YouTube-Style Popup
   Articles / Reviews
----------------------------------------- */

.post-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.post-header-row .post-label {
    margin-bottom: 0;
}

.post-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 96px;
    padding: 9px 18px;
    border: 0;
    border-radius: 999px;
    background: #111;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(0,0,0,0.12);
    transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.post-share-btn:hover {
    background: #333;
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(0,0,0,0.16);
}

.post-bottom-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.post-share-modal {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.post-share-modal.is-open {
    display: flex;
}

.post-share-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.62);
    backdrop-filter: blur(4px);
}

.post-share-card {
    position: relative;
    z-index: 1;
    width: min(520px, 100%);
    padding: 24px;
    border-radius: 22px;
    background: #202020;
    color: #fff;
    box-shadow: 0 26px 70px rgba(0,0,0,0.38);
}

.post-share-card h3 {
    margin: 0 0 18px;
    font-size: 20px;
    line-height: 1.2;
    text-align: center;
}

.post-share-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.post-share-close:hover {
    background: rgba(255,255,255,0.16);
}

.post-share-icons {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.post-share-icons a,
.post-share-icons button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 10px;
    border-radius: 999px;
    background: #fff;
    color: #111;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    border: 0;
    cursor: pointer;
    font-family: inherit;
}

.post-share-icons a:hover,
.post-share-icons button:hover {
    background: #efefef;
}

.post-share-copy-row {
    display: flex;
    gap: 8px;
    padding: 8px;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 14px;
    background: rgba(0,0,0,0.28);
}

.post-share-copy-row input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: none;
    background: transparent;
    color: #fff;
    font-size: 14px;
}

.post-share-copy-row button {
    border: 0;
    border-radius: 999px;
    padding: 9px 16px;
    background: #3ea6ff;
    color: #07111b;
    font-weight: 600;
    cursor: pointer;
}

.post-share-copy-row button:hover {
    background: #68bbff;
}

.post-share-copy-note {
    display: none;
    margin-top: 10px;
    color: #8de99b;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

.post-share-copy-note.is-visible {
    display: block;
}

@media (max-width: 700px) {
    .post-header-row {
        align-items: center;
    }

    .post-share-btn {
        min-width: 82px;
        padding: 8px 14px;
        font-size: 13px;
    }

    .post-share-icons {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .post-bottom-actions {
        justify-content: stretch;
    }

    .post-bottom-actions .post-share-btn {
        width: 100%;
    }
}


/* -----------------------------------------
   Share Button Arrow Polish
   Adds a clean animated arrow without changing PHP.
----------------------------------------- */

.post-share-btn {
    gap: 8px;
}

.post-share-btn::after {
    content: "⇗";
    display: inline-block;
    font-size: 16px;
    line-height: 1;
    transform: translateY(-1px);
    transition: transform 0.18s ease;
}

.post-share-btn:hover::after {
    transform: translate(3px, -4px);
}


/* -----------------------------------------
   Related Posts / More From The Abyss
   Added for article/review related content footer section
----------------------------------------- */

.related-posts-section {
    width: 100%;
    margin: 20px auto 30px auto;
    padding: 0;
}

.related-posts-inner {
    width: 100%;
}

.related-posts-title {
    font-size: 1.7rem;
    font-weight: 900;
    margin: 0 0 20px 0;
    color: var(--text);
    letter-spacing: -0.03em;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.related-post-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.related-post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--border-strong);
}

.related-post-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.related-post-image-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f5f5f5;
    border-bottom: 1px solid #eef0f3;
}

.related-post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.35s ease;
}

.related-post-card:hover .related-post-image {
    transform: scale(1.03);
}

.related-post-content {
    padding: 16px;
    background: #fff;
}

.related-post-category {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}

.related-post-card-title {
    font-size: 1.05rem;
    font-weight: 900;
    line-height: 1.25;
    margin: 0 0 8px 0;
    color: var(--text);
    letter-spacing: -0.02em;
}

.related-post-card-title:hover {
    text-decoration: underline;
}

.related-post-excerpt {
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--text-soft);
    margin: 0;
}

@media (max-width: 900px) {
    .related-posts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .related-posts-section {
        margin-top: 36px;
    }

    .related-posts-title {
        font-size: 1.4rem;
    }

    .related-posts-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .related-post-content {
        padding: 15px;
    }
}


/* -----------------------------------------
   Search Results Layout Polish
   Keeps search sections aligned and evenly spaced.
----------------------------------------- */

.search-page .browse-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.search-page .search-hero-box {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 34px auto;
}

.search-page .search-results-section {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 34px auto;
    padding: 0;
}

.search-page .search-results-section:last-of-type {
    margin-bottom: 0;
}

.search-page .home-section-box {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 28px 32px;
}

.search-page .section-heading-boxed {
    margin-bottom: 22px;
}

.search-page .post-grid {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

.search-page .post-card {
    min-width: 0;
}

@media (max-width: 1000px) {
    .search-page .post-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .search-page .search-hero-box {
        margin-bottom: 24px;
    }

    .search-page .search-results-section {
        margin-bottom: 24px;
    }

    .search-page .home-section-box {
        padding: 22px 18px 24px;
    }

    .search-page .post-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}


/* -----------------------------------------
   Header One-Line Desktop Fix
   Keeps logo + search + menu on one row after adding Viral Trends.
----------------------------------------- */

@media (min-width: 701px) {
    .site-header {
        padding: 18px 20px;
    }

    .site-header-inner {
        max-width: 1200px;
        margin: 0 auto;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        flex-wrap: nowrap;
    }

    .site-header-top-row {
        display: contents;
    }

    .site-logo {
        flex: 0 0 auto;
        min-width: 0;
    }

    .site-logo a {
        display: inline-block;
        white-space: nowrap;
        font-size: 24px;
        font-weight: 800;
    }

    .site-search-form {
        display: flex;
        align-items: center;
        gap: 8px;
        flex: 0 1 330px;
        min-width: 240px;
        margin-left: 100;
        margin-right: 0;
    }

    .site-search-form input[type="search"] {
        width: 100%;
        max-width: none;
        min-width: 0;
    }

    .site-search-form button {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .site-nav {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 8px;
        flex: 1 1 auto;
        min-width: 0;
        margin-left: 0;
        margin-right: 0;
        flex-wrap: nowrap;
        white-space: nowrap;
    }

    .site-nav a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
        font-size: 14px;
        font-weight: 700;
        padding: 8px 7px;
    }
}

@media (min-width: 701px) and (max-width: 1120px) {
    .site-header-inner {
        gap: 10px;
    }

    .site-logo a {
        font-size: 22px;
    }

    .site-search-form {
        flex-basis: 290px;
        min-width: 220px;
    }

    .site-nav {
        gap: 5px;
    }

    .site-nav a {
        font-size: 13px;
        padding: 7px 5px;
    }
}


/* -----------------------------------------
   Header + Browse Intro Final Alignment
   Moves search/menu cluster right, spreads menu links slightly,
   and widens the Viral Trends intro text area.
----------------------------------------- */

@media (min-width: 701px) {
    .site-header-inner {
        max-width: 1240px;
        margin: 0 auto;
        display: flex;
        align-items: center;
        gap: 14px;
        flex-wrap: nowrap;
    }

    .site-logo {
        flex: 0 0 auto;
    }

    .site-logo a {
        white-space: nowrap;
    }


/*  this is what moves the search back and forth   */
    .site-search-form {
        margin-left: 350px;
        margin-right: 0;
        flex: 0 1 300px;
        min-width: 200px;
    }

    .site-search-form input[type="search"] {
        max-width: none;
        width: 100%;
    }

    .site-nav {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 17px;
        flex: 1 1 auto;
        min-width: 0;
        margin-left: 22px;
        margin-right: 0;
        flex-wrap: nowrap;
        white-space: nowrap;
    }

    .site-nav a {
        padding-left: 7px;
        padding-right: 24px;
        font-weight: 700;
        white-space: nowrap;
    }

    .browse-intro {
        max-width: 1100px;
        font-size: 18px;
        line-height: 1.75;
    }
}

@media (min-width: 701px) and (max-width: 1120px) {
    .site-header-inner {
        max-width: 1180px;
        gap: 10px;
    }

    .site-search-form {
        margin-left: 20px;
        flex-basis: 310px;
        min-width: 230px;
    }

    .site-nav {
        margin-left: 12px;
        gap: 10px;
    }

    .site-nav a {
        font-size: 13px;
        padding-left: 5px;
        padding-right: 5px;
    }

    .browse-intro {
        max-width: 820px;
    }
}


/* -----------------------------------------
   Header Menu Pill Text Alignment Fix
   Keeps existing layout exactly as-is; only centers text inside hover pills.
----------------------------------------- */

@media (min-width: 701px) {
    .site-nav a {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        line-height: 1 !important;
        min-height: 34px !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        vertical-align: middle !important;
    }

    .site-nav a:hover {
        transform: none !important;
    }
}


/* -----------------------------------------
   FINAL Header Menu Text Center Fix
   Only fixes menu button vertical alignment.
   Keeps the current header layout, spacing, search position, and logo position.
----------------------------------------- */

@media (min-width: 701px) {
    .site-nav {
        align-items: center !important;
        line-height: 1 !important;
    }

    .site-nav a,
    .site-nav a:link,
    .site-nav a:visited {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;

        height: 34px !important;
        min-height: 34px !important;

        padding: 0 12px !important;
        margin: 0 !important;

        line-height: 34px !important;
        vertical-align: middle !important;

        border-radius: 999px !important;
        box-sizing: border-box !important;
    }

    .site-nav a:hover,
    .site-nav a:focus,
    .site-nav a.active,
    .site-nav .active {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;

        height: 34px !important;
        min-height: 34px !important;

        padding-top: 0 !important;
        padding-bottom: 0 !important;

        line-height: 34px !important;
        transform: none !important;
    }

    .site-nav a *,
    .site-nav b,
    .site-nav strong {
        line-height: 1 !important;
        display: inline-flex !important;
        align-items: center !important;
    }
}


/* -----------------------------------------
   Tiny Header Menu Left Shift
   Keeps everything else the same; only nudges the desktop menu slightly left.
----------------------------------------- */

@media (min-width: 701px) {
    .site-nav {
        transform: translateX(-18px) !important;
    }
}

